:root {
  --primary: #f6f6f6;
  --secondary: #7a7a7a;
  --accent: #ff2a7f;
  --neutral: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --line: #2a2a2a;
  --line-strong: #3f3f3f;
  --ok: #f6f6f6;
  --error: #ff6f9f;
}

body.admin-view .table-contact-copy-btn {
  min-width: 66px;
  width: 100%;
  max-width: 100%;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact {
  font-weight: 800;
  background: #fecaca !important;
  border-color: #dc2626 !important;
  color: #7f1d1d !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact:hover {
  background: #fca5a5 !important;
  border-color: #b91c1c !important;
  color: #7f1d1d !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-1 {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #7f1d1d !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-2 {
  background: #ffedd5 !important;
  border-color: #f97316 !important;
  color: #7c2d12 !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-3 {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #78350f !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-4 {
  background: #ecfccb !important;
  border-color: #84cc16 !important;
  color: #365314 !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-5 {
  background: #d1fae5 !important;
  border-color: #10b981 !important;
  color: #064e3b !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-6 {
  background: #cffafe !important;
  border-color: #06b6d4 !important;
  color: #164e63 !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-7 {
  background: #dbeafe !important;
  border-color: #3b82f6 !important;
  color: #1e3a8a !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-8 {
  background: #ede9fe !important;
  border-color: #8b5cf6 !important;
  color: #4c1d95 !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-1:hover {
  background: #fecaca !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-2:hover {
  background: #fed7aa !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-3:hover {
  background: #fde68a !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-4:hover {
  background: #d9f99d !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-5:hover {
  background: #a7f3d0 !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-6:hover {
  background: #a5f3fc !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-7:hover {
  background: #bfdbfe !important;
}

body.admin-view .mobile-contact-copy-btn.is-duplicate-contact.duplicate-contact-color-8:hover {
  background: #ddd6fe !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--primary);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 42, 127, 0.22), transparent 28%),
    radial-gradient(circle at 85% 4%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 35% 90%, rgba(255, 42, 127, 0.14), transparent 26%),
    var(--neutral);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.045) 0,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.3;
  mix-blend-mode: soft-light;
  animation: scanShift 14s linear infinite;
  z-index: 0;
}

html[lang="ko"] body,
html[lang="ko"] input,
html[lang="ko"] textarea,
html[lang="ko"] select,
html[lang="ko"] button {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Inter", "Segoe UI", sans-serif;
}

html[lang="zh"] body,
html[lang="zh"] input,
html[lang="zh"] textarea,
html[lang="zh"] select,
html[lang="zh"] button {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Inter", "Segoe UI", sans-serif;
}

body::after {
  content: "";
  position: fixed;
  width: min(52vw, 620px);
  aspect-ratio: 1;
  right: -12vw;
  top: -20vh;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 42, 127, 0.24), transparent 60%);
  filter: blur(8px);
  animation: pulseGlow 9s ease-in-out infinite;
  z-index: 0;
}

@keyframes scanShift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(12px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.52;
  }
  50% {
    transform: scale(1.07);
    opacity: 0.88;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes strobeFlicker {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 42, 127, 0);
  }
  42% {
    text-shadow: 0 0 18px rgba(255, 42, 127, 0.48);
  }
  44% {
    text-shadow: 0 0 6px rgba(255, 42, 127, 0.22);
  }
  46% {
    text-shadow: 0 0 20px rgba(255, 42, 127, 0.54);
  }
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 42, 127, 0.6);
  text-underline-offset: 3px;
}

.container {
  width: min(1180px, 94vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.landing-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 0;
}

.language-switcher {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.language-switcher label {
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.language-switcher select {
  min-width: 150px;
  width: auto;
  padding: 8px 10px;
  font-size: 13px;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 18px;
  align-items: start;
}

.hero-card,
.form-card,
.admin-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025),
    0 26px 42px rgba(0, 0, 0, 0.55);
  animation: riseIn 0.75s ease both;
}

.hero-card,
.form-card,
.admin-card,
input,
select,
textarea,
button,
.stat,
.table-wrap,
.tag {
  border-radius: 0;
}

.hero-card {
  position: relative;
  min-height: 650px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 26px rgba(255, 42, 127, 0.92);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -32%;
  width: 64%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 42, 127, 0.2), transparent 68%);
  pointer-events: none;
}

.hero-label {
  margin: 0 0 12px;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-team-name {
  margin: -4px 0 12px;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd6e8;
}

.hero-title {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  max-width: 9.2ch;
  text-wrap: balance;
}

.hero-card .hero-title {
  animation: strobeFlicker 4.8s steps(1, end) infinite;
}

.hero-title span {
  display: block;
}

.hero-title .nowrap-text {
  white-space: nowrap;
}

.hero-title.hero-title-inline-short {
  max-width: 12.6ch;
}

.hero-title.hero-title-inline-short span {
  display: inline-block;
  margin-right: 0.24em;
}

.hero-title.hero-title-inline-short span:last-child {
  margin-right: 0;
}

.hero-copy {
  color: var(--primary);
  opacity: 0.88;
  margin: 18px 0 22px;
  line-height: 1.5;
  max-width: 34ch;
  font-size: clamp(24px, 1.42vw, 31px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.delivery-note {
  margin: 0;
  max-width: 40ch;
  padding: 10px 12px;
  border: 1px solid rgba(255, 42, 127, 0.55);
  background: rgba(255, 42, 127, 0.08);
  font-family: "Archivo", sans-serif;
  font-size: clamp(11px, 0.82vw, 13px);
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
  color: #ffd6e8;
}

.quick-edit-highlight {
  margin-top: 12px;
  max-width: 42ch;
  padding: 12px;
  border: 1px solid rgba(112, 218, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(0, 178, 255, 0.16), rgba(255, 42, 127, 0.12)),
    rgba(12, 12, 16, 0.88);
  display: grid;
  gap: 8px;
}

.quick-edit-kicker {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #89dfff;
}

.quick-edit-copy {
  margin: 0;
  color: rgba(246, 246, 246, 0.92);
  font-size: 13px;
  line-height: 1.45;
}

.quick-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(112, 218, 255, 0.7);
  background: rgba(112, 218, 255, 0.16);
  color: #d9f5ff;
  text-decoration: none;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.quick-edit-link:hover {
  background: rgba(112, 218, 255, 0.24);
  border-color: rgba(112, 218, 255, 0.9);
  transform: translateY(-1px);
}

.hero-list {
  margin: 0;
  padding-left: 18px;
  color: var(--secondary);
  line-height: 1.7;
}

.hero-list li + li {
  margin-top: 4px;
}

.form-card {
  padding: 28px;
  animation-delay: 0.08s;
}

.section-title,
.admin-title {
  margin: 0 0 8px;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(34px, 2.4vw, 46px);
  line-height: 0.95;
  max-width: 12ch;
  text-wrap: balance;
}

.section-subtitle {
  margin: 0 0 18px;
  color: var(--secondary);
  font-size: clamp(14px, 1.2vw, 16px);
}

.edit-flow-wrap {
  margin-bottom: 18px;
}

.edit-flow-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.edit-access-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

#active-edit-badge {
  margin: 8px 0 0;
  color: #ffd9ea;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 7px;
}

.field-inline-note {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 12px;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 11px 12px;
  background: rgba(8, 8, 8, 0.88);
  color: var(--primary);
}

input::placeholder,
textarea::placeholder {
  color: #616161;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(255, 42, 127, 0.24);
  outline-offset: 0;
}

input.is-locked-field,
textarea.is-locked-field,
select.is-locked-field {
  pointer-events: none;
  cursor: not-allowed;
  background: rgba(28, 28, 28, 0.88);
  color: #9a9a9a;
  border-color: #3a3a3a;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

#rawDriveLink {
  min-height: 78px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.date-input {
  min-height: 45px;
}

.date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: none;
  opacity: 0.82;
}

.date-input.date-empty {
  color: #6f7682;
}

.date-input.date-empty::-webkit-datetime-edit {
  color: #6f7682;
}

.date-input.date-empty:focus {
  color: var(--primary);
}

.date-input.date-empty:focus::-webkit-datetime-edit {
  color: var(--primary);
}

.date-input:not(.date-empty) {
  color: var(--primary);
}

.photo-color-sample-grid {
  margin: 10px 0 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.photo-color-card {
  appearance: none;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
  color: var(--primary);
  padding: 6px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, background 0.14s ease;
}

.photo-color-card:hover {
  border-color: var(--accent);
  background: rgba(255, 42, 127, 0.09);
  transform: translateY(-1px);
}

.photo-color-card:focus-visible {
  outline: 2px solid rgba(255, 42, 127, 0.32);
  outline-offset: 0;
}

.photo-color-card.is-selected {
  border-color: var(--accent);
  background: rgba(255, 42, 127, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 42, 127, 0.28), 0 0 18px rgba(255, 42, 127, 0.2);
}

.photo-color-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.photo-color-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-color-thumb-team {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 42, 127, 0.28), transparent 62%),
    radial-gradient(circle at 85% 80%, rgba(0, 184, 255, 0.25), transparent 66%),
    rgba(10, 10, 12, 0.95);
}

.photo-color-thumb-team span {
  font-family: "Archivo Black", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #f5f5f5;
  line-height: 1.25;
}

.photo-color-card-name {
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-code-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.photo-code-input {
  text-transform: uppercase;
  text-align: center;
  font-family: "Archivo", sans-serif;
  letter-spacing: 0.03em;
}

.selected-codes-box {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
}

.selected-codes-title {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 14px;
}

.selected-codes-list {
  min-height: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-code-empty {
  color: var(--secondary);
  font-size: 14px;
}

.selected-code-chip {
  border: 1px solid rgba(255, 42, 127, 0.6);
  background: rgba(255, 42, 127, 0.12);
  color: var(--primary);
  padding: 4px 8px;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 1200px) {
  .landing-grid {
    grid-template-columns: 1.07fr 1fr;
  }

  .hero-card {
    min-height: 780px;
  }

  .hero-title {
    font-size: clamp(52px, 4.4vw, 72px);
    max-width: 9.3ch;
  }

  .hero-copy {
    font-size: clamp(30px, 1.6vw, 39px);
    max-width: 36ch;
  }
}

.btn {
  border: 1px solid rgba(255, 42, 127, 0.7);
  background: var(--accent);
  color: #0a0a0a;
  padding: 12px 18px;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 0 28px rgba(255, 42, 127, 0.26);
}

.btn-small {
  padding: 10px 12px;
  font-size: 11px;
}

.btn:hover {
  background: #ff4d95;
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(255, 42, 127, 0.48);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 42, 127, 0.08);
}

.notice {
  margin-top: 12px;
  font-size: 13px;
}

.notice.ok {
  color: var(--ok);
}

.notice.error {
  color: var(--error);
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .edit-flow-actions,
  .edit-access-row {
    grid-template-columns: 1fr;
  }
}

.admin-shell {
  padding: 26px 0 34px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-heading {
  max-width: 760px;
}

.admin-title {
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  max-width: none;
}

.admin-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  border: 1px solid var(--line-strong);
  padding: 6px 10px;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.02);
}

.admin-card {
  padding: 20px;
}

.admin-login-form {
  margin: 0;
}

.admin-login-form .toolbar {
  margin-bottom: 8px;
}

.admin-login-form .toolbar-field {
  min-width: 240px;
}

.remember-login-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.remember-login-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.remember-login-toggle span {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.team-tabs-wrap {
  margin: 8px 0 12px;
}

.team-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.team-tab-btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--secondary);
  padding: 8px 12px;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.team-tab-btn.active {
  border-color: rgba(255, 42, 127, 0.75);
  color: var(--primary);
  background: rgba(255, 42, 127, 0.14);
}

.mobile-admin-tabs {
  display: none;
}

.mobile-admin-tab-btn {
  border: 1px solid #111;
  background: #ececec;
  color: #111;
  min-height: 36px;
  padding: 6px 10px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.mobile-admin-tab-btn.is-active {
  background: #f5f500;
}

.stats {
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat {
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.stat p {
  margin: 0;
  color: var(--secondary);
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 7px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.02em;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-field {
  min-width: 220px;
}

.toolbar-field input {
  margin-top: 0;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.toolbar-count strong {
  color: var(--primary);
  font-family: "Archivo Black", sans-serif;
  letter-spacing: -0.01em;
}

.toolbar label {
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.62);
  max-height: 68vh;
}

.compact-table-wrap {
  max-height: 48vh;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1020px;
}

.compact-table {
  min-width: 920px;
}

.compact-table .stt-col {
  width: 52px;
  min-width: 52px;
  text-align: center;
  white-space: nowrap;
}

.compact-table .quick-actions-col {
  width: 128px;
  min-width: 128px;
}

.main-quick-btn {
  width: 100%;
  padding: 7px 10px;
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.row-album-toggle {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 42, 127, 0.12);
  color: var(--primary);
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.row-album-toggle.is-closed {
  background: rgba(255, 255, 255, 0.05);
  color: var(--secondary);
  cursor: not-allowed;
}

th,
td {
  border-bottom: 1px solid #1f1f1f;
  padding: 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #101010;
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--secondary);
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

tbody tr:hover td {
  background: rgba(255, 42, 127, 0.06);
}

td input,
td textarea {
  margin-top: 8px;
  padding: 9px 10px;
  font-size: 13px;
}

td textarea {
  min-height: 72px;
}

.tag {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tag.pending {
  color: var(--secondary);
  border-color: #3a3a3a;
  background: rgba(255, 255, 255, 0.02);
}

.tag.done {
  color: var(--primary);
  border-color: rgba(255, 42, 127, 0.7);
  background: rgba(255, 42, 127, 0.14);
}

.mini-field {
  min-width: 220px;
}

.code-open-wrap {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.code-link-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.code-open-link {
  display: inline-block;
  border: 1px solid rgba(255, 42, 127, 0.45);
  background: rgba(255, 42, 127, 0.09);
  color: var(--primary);
  padding: 3px 6px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.code-open-link-alt {
  min-width: 20px;
  text-align: center;
  padding: 3px 5px;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.code-open-link-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.code-open-link:hover {
  border-color: rgba(255, 42, 127, 0.75);
  background: rgba(255, 42, 127, 0.17);
}

.row-selected td {
  background: rgba(255, 42, 127, 0.08) !important;
}

.customer-main-row {
  cursor: pointer;
}

.row-meta {
  margin-top: 4px;
  line-height: 1.25;
}

.inline-editor-row td {
  background: rgba(255, 255, 255, 0.015) !important;
  padding: 12px;
}

.inline-editor-shell {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding: 12px;
}

.inline-editor-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.inline-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inline-editor-grid .field {
  margin-bottom: 0;
}

.inline-editor-grid .full-col {
  grid-column: 1 / -1;
}

.inline-editor-grid textarea {
  min-height: 88px;
}

.inline-editor-grid textarea[name="selectedPhotoCodes"] {
  min-height: 72px;
}

.inline-code-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-code-actions .btn {
  padding: 8px 12px;
  font-size: 11px;
}

.inline-code-actions .inline-bundle-message {
  margin: 0;
}

.inline-editor-grid textarea[name="rawDriveLink"] {
  min-height: 86px;
}

.inline-code-review-layout {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 14px;
  align-items: start;
}

.inline-code-left,
.inline-code-right {
  min-width: 0;
}

.inline-review-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-review-panel.is-placeholder {
  min-height: 210px;
  justify-content: center;
}

.inline-review-stage-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.preview-nav-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.inline-review-stage-link {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.inline-review-stage-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inline-review-meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--secondary);
}

.inline-review-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preview-code-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: var(--primary);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  cursor: pointer;
}

.preview-code-btn:hover:not(:disabled) {
  border-color: rgba(255, 42, 127, 0.7);
  background: rgba(255, 42, 127, 0.14);
}

.preview-code-btn.is-readonly {
  cursor: default;
}

.preview-code-btn.is-readonly:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.preview-code-btn.is-active {
  border-color: rgba(255, 42, 127, 0.85);
  background: rgba(255, 42, 127, 0.2);
}

.preview-code-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.preview-code-btn.edit-code-input {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.preview-code-btn.edit-code-input::-webkit-outer-spin-button,
.preview-code-btn.edit-code-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.inline-review-note {
  margin: 0;
}

.team-pick-static {
  margin-top: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  min-height: 72px;
  display: grid;
  place-items: center;
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.editor-actions-inline {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-actions-inline .muted {
  margin: 0;
}

.check-wrap {
  display: grid;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.check-item input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.muted {
  color: var(--secondary);
  font-size: 12px;
}

@media (max-width: 1024px) {
  .inline-code-review-layout {
    grid-template-columns: 1fr;
  }

  .inline-review-panel {
    min-height: 0;
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 0;
    justify-content: flex-start;
  }

  .language-switcher {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: clamp(34px, 8.2vw, 52px);
    max-width: 9.2ch;
  }

  .hero-title.hero-title-inline-short {
    max-width: 13.2ch;
  }

  .hero-copy {
    max-width: 30ch;
    font-size: clamp(24px, 4.7vw, 34px);
  }

  .section-title {
    max-width: 12ch;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .landing-shell {
    padding: 16px 0;
  }

  .hero-card,
  .form-card,
  .admin-card {
    padding: 20px;
  }

  .language-switcher {
    margin-bottom: 10px;
  }

  .language-switcher select {
    min-width: 120px;
    font-size: 12px;
  }

  .hero-label {
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: clamp(30px, 10.5vw, 42px);
    line-height: 0.97;
    max-width: 9.4ch;
  }

  .hero-title.hero-title-inline-short {
    max-width: 13.8ch;
  }

  .hero-copy {
    margin: 14px 0 16px;
    font-size: clamp(16px, 5.8vw, 24px);
    line-height: 1.45;
    max-width: 28ch;
  }

  .delivery-note {
    font-size: 11px;
    line-height: 1.4;
  }

  .quick-edit-copy {
    font-size: 12px;
  }

  .quick-edit-link {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .section-title {
    font-size: clamp(28px, 10vw, 40px);
    line-height: 0.96;
    margin-bottom: 10px;
  }

  .section-subtitle {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .photo-color-sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .photo-color-card {
    padding: 5px;
  }

  .photo-color-card-name {
    font-size: 12px;
  }

  .photo-code-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
  }

  .toolbar-field {
    width: 100%;
    min-width: 100%;
  }

  .toolbar-right {
    justify-content: space-between;
    margin-left: 0;
  }

  .inline-editor-grid {
    grid-template-columns: 1fr;
  }

  .inline-editor-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Admin layout matching provided wireframe */
body.admin-view {
  background: #cfd1d4;
  color: #111;
}

body.admin-view::before,
body.admin-view::after {
  display: none;
}

body.admin-view .container {
  width: min(1680px, 96vw);
}

body.admin-view a {
  color: #111;
  text-decoration-color: #444;
}

body.admin-view .admin-shell {
  padding: 18px 0 22px;
}

body.admin-view .admin-card {
  background: #e8e8e9;
  border: 1px solid #d3d3d3;
  box-shadow: none;
}

body.admin-view .admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

body.admin-view .admin-title {
  font-family: "Archivo", sans-serif;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.08;
}

body.admin-view .admin-heading .muted {
  color: #444;
  line-height: 1.4;
  margin: 0;
}

body.admin-view #logout-btn {
  min-height: 34px;
  min-width: 116px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #f0f0f0;
  border: 1px solid #333;
  color: #111;
}

body.admin-view #logout-btn:hover {
  background: #e8e8e8;
}

body.admin-view .stats {
  display: none;
}

body.admin-view .team-tab-btn {
  border-color: #111;
  color: #111;
  background: #ececec;
}

body.admin-view .team-tabs-wrap {
  display: block;
}

body.admin-view .team-tabs-wrap.hidden {
  display: none !important;
}

body.admin-view .admin-scope-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 12px;
}

body.admin-view .admin-scope-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

body.admin-view .admin-scope-input {
  display: grid;
  gap: 6px;
}

body.admin-view .admin-scope-label {
  color: #111;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.admin-view .admin-scope-switch select {
  width: min(380px, 100%);
  min-width: 260px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid #111;
  background: #ececec;
  color: #111;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

body.admin-view .team-tab-btn.active {
  border-color: #111;
  color: #111;
  background: #f5f500;
}

body.admin-view #dashboard-toolbar .mobile-filter-toggle-wrap {
  display: none;
}

body.admin-view .toolbar label {
  color: #1f1f1f;
  font-size: 12px;
  letter-spacing: 0.12em;
}

body.admin-view #dashboard-toolbar .toolbar-right {
  display: none !important;
}

body.admin-view .admin-login-form .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.admin-view .admin-login-form .remember-login-toggle {
  color: #222;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-family: "Inter", sans-serif;
}

body.admin-view .admin-login-form .remember-login-toggle input {
  accent-color: #111;
}

body.admin-view .admin-login-form .remember-login-toggle span {
  font-size: 13px;
  letter-spacing: 0;
}

body.admin-view .search-by-id {
  min-width: 0;
}

body.admin-view .search-scope-field {
  min-width: 0;
}

body.admin-view .sort-field {
  min-width: 0;
}

body.admin-view .month-field {
  min-width: 0;
}

body.admin-view .search-action-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.admin-view .sort-field select {
  max-width: none;
  min-height: 44px;
  font-size: 16px;
}

body.admin-view .search-scope-field select {
  max-width: none;
  min-height: 44px;
  font-size: 16px;
}

body.admin-view .search-action-field .search-submit-btn {
  min-width: 118px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 18px;
}

body.admin-view .search-action-field label {
  display: none;
  margin-bottom: 6px;
  white-space: nowrap;
  color: #333;
}

body.admin-view #search-input-label {
  display: none;
}

body.admin-view .search-by-id label {
  display: inline-block;
  padding: 0;
  color: #333;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

body.admin-view .search-by-id input {
  max-width: none;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.2;
}

body.admin-view .toolbar-field select,
body.admin-view .toolbar-field input {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
}

body.admin-view input,
body.admin-view select,
body.admin-view textarea {
  box-sizing: border-box;
  border-color: #111;
  color: #111;
  background: #f6f6f6;
  padding: 0 12px;
}

body.admin-view textarea {
  padding: 10px 12px;
}

body.admin-view .toolbar {
  gap: 12px;
  align-items: flex-end;
}

body.admin-view .dashboard-table-controls {
  margin-bottom: 10px;
}

body.admin-view #dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 8px;
  align-items: end;
  margin-bottom: 0;
}

body.admin-view #dashboard-toolbar .toolbar-left {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1.15fr 1.45fr auto minmax(210px, 0.95fr);
  gap: 12px;
  align-items: end;
}

body.admin-view .toolbar-field {
  min-width: 0;
}

body.admin-view .toolbar-field label {
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
  line-height: 1.2;
}

body.admin-view .toolbar-meta-row .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

body.admin-view .toolbar-meta-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.admin-view .toolbar-meta-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.admin-view .toolbar-count {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

body.admin-view .btn {
  border-color: #111;
  background: #ecec32;
  color: #111;
  box-shadow: none;
}

body.admin-view .btn:hover {
  background: #f4f46a;
}

body.admin-view .btn-outline {
  background: #ecec32;
  color: #111;
  border-color: #111;
}

body.admin-view .dashboard-main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

body.admin-view .dashboard-main-layout.final-links-mode {
  grid-template-columns: 1fr;
}

body.admin-view .dashboard-main-layout.final-links-mode .dashboard-detail-pane {
  display: none;
}

body.admin-view .dashboard-table-pane,
body.admin-view .dashboard-detail-pane {
  min-width: 0;
}

body.admin-view .dashboard-table-pane {
  display: flex;
  flex-direction: column;
}

body.admin-view .table-wrap {
  max-height: none;
  border: 2px solid #111;
  background: #d7d7d7;
}

body.admin-view .compact-table-wrap {
  max-height: 620px;
  overflow-y: auto;
  overflow-x: auto;
  overscroll-behavior: contain;
}

body.admin-view .mobile-customer-list {
  display: none;
}

body.admin-view .compact-table {
  width: 100%;
  min-width: 1220px;
  table-layout: fixed;
}

body.admin-view .compact-table.is-archive-table {
  min-width: 980px;
}

body.admin-view .compact-table.is-final-links-table {
  min-width: 760px;
}

body.admin-view .compact-table th:nth-child(1),
body.admin-view .compact-table td:nth-child(1) {
  width: 5%;
}

body.admin-view .compact-table th:nth-child(2),
body.admin-view .compact-table td:nth-child(2) {
  width: 21%;
}

body.admin-view .compact-table th:nth-child(3),
body.admin-view .compact-table td:nth-child(3) {
  width: 20%;
}

body.admin-view .compact-table th:nth-child(4),
body.admin-view .compact-table td:nth-child(4) {
  width: 9%;
}

body.admin-view .compact-table th:nth-child(5),
body.admin-view .compact-table td:nth-child(5) {
  width: 9%;
}

body.admin-view .compact-table th:nth-child(6),
body.admin-view .compact-table td:nth-child(6) {
  width: 16%;
}

body.admin-view .compact-table th:nth-child(7),
body.admin-view .compact-table td:nth-child(7) {
  width: 11%;
}

body.admin-view .compact-table th:nth-child(8),
body.admin-view .compact-table td:nth-child(8) {
  width: 9%;
}

body.admin-view .compact-table.is-archive-table th:nth-child(1),
body.admin-view .compact-table.is-archive-table td:nth-child(1) {
  width: 8%;
}

body.admin-view .compact-table.is-archive-table th:nth-child(2),
body.admin-view .compact-table.is-archive-table td:nth-child(2) {
  width: 22%;
}

body.admin-view .compact-table.is-archive-table th:nth-child(3),
body.admin-view .compact-table.is-archive-table td:nth-child(3) {
  width: 45%;
}

body.admin-view .compact-table.is-archive-table th:nth-child(4),
body.admin-view .compact-table.is-archive-table td:nth-child(4) {
  width: 25%;
}

body.admin-view .compact-table.is-final-links-table th:nth-child(1),
body.admin-view .compact-table.is-final-links-table td:nth-child(1) {
  width: 72%;
}

body.admin-view .compact-table.is-final-links-table th:nth-child(2),
body.admin-view .compact-table.is-final-links-table td:nth-child(2) {
  width: 28%;
}

body.admin-view .customer-info-cell {
  vertical-align: middle;
}

body.admin-view .customer-name-cell {
  vertical-align: middle;
}

body.admin-view .customer-info-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin-view .customer-name-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin-view th {
  background: #131418;
  color: #f3f3f3;
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 16px;
  line-height: 1.22;
  padding: 10px 8px;
  position: sticky;
  top: 0;
  z-index: 3;
}

body.admin-view td {
  background: #ececec;
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  color: #111;
  font-size: 15px;
  line-height: 1.24;
  padding: 8px;
}

body.admin-view .compact-table td:nth-child(4),
body.admin-view .compact-table td:nth-child(5) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin-view .compact-table td:nth-child(7),
body.admin-view .compact-table td:nth-child(8) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin-view .row-album-toggle {
  border: 1px solid #111;
  background: #ecec32;
  color: #111;
  min-height: 34px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.admin-view .row-album-toggle.is-closed {
  background: #d8d8d8;
  color: #666;
  opacity: 1;
}

body.admin-view tbody tr:nth-child(even) td,
body.admin-view tbody tr:hover td {
  background: #e4e4e4;
}

body.admin-view .row-state-video td {
  background: #ffb1b1 !important;
  color: #1a0000;
}

body.admin-view tbody tr.row-state-video:hover td,
body.admin-view tbody tr.row-state-video:nth-child(even) td {
  background: #ffb1b1 !important;
}

body.admin-view .row-state-video.row-selected td {
  background: #ff9e9e !important;
}

body.admin-view .row-state-edited td {
  background: #ffd8a8 !important;
  color: #4d2d00;
}

body.admin-view tbody tr.row-state-edited:hover td,
body.admin-view tbody tr.row-state-edited:nth-child(even) td {
  background: #ffd8a8 !important;
}

body.admin-view .row-state-edited.row-selected td {
  background: #ffc98b !important;
}

body.admin-view .row-state-done td {
  background: #d9eefc !important;
  color: #0c2d48;
}

body.admin-view tbody tr.row-state-done:hover td,
body.admin-view tbody tr.row-state-done:nth-child(even) td {
  background: #d9eefc !important;
}

body.admin-view .row-state-done.row-selected td {
  background: #c7e6fb !important;
}

body.admin-view .row-state-deleted td {
  background: #ece7f8 !important;
  color: #312e81;
}

body.admin-view tbody tr.row-state-deleted:hover td,
body.admin-view tbody tr.row-state-deleted:nth-child(even) td {
  background: #ece7f8 !important;
}

body.admin-view .row-state-deleted.row-selected td {
  background: #ddd6fe !important;
}

body.admin-view .row-selected td {
  background: #fffdd6 !important;
}

body.admin-view .stt-col {
  width: 70px;
  min-width: 70px;
  text-align: center;
}

body.admin-view .stt-select-col {
  width: 96px;
  min-width: 96px;
}

body.admin-view .row-restore-customer-btn {
  min-height: 32px;
  min-width: 110px;
}

body.admin-view .row-select-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

body.admin-view .row-select-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #111;
}

body.admin-view .row-select-label .row-select-stt {
  font-weight: 700;
  line-height: 1;
}

body.admin-view .row-select-label.row-select-label-head .row-select-stt {
  font-size: 14px;
}

body.admin-view .row-select-label.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.admin-view .batch-download-panel {
  border: 2px solid #111;
  background: #f2f2f2;
  padding: 10px;
  margin: 0 0 10px;
}

body.admin-view .batch-download-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

body.admin-view .batch-download-title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.admin-view .batch-download-subtitle {
  margin: 0;
  color: #333;
  font-size: 13px;
}

body.admin-view .batch-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

body.admin-view .batch-download-actions .btn {
  min-height: 34px;
}

body.admin-view .batch-download-note {
  margin: 8px 0 0;
  color: #444;
  font-size: 12px;
  line-height: 1.4;
}

body.admin-view .batch-selection-list {
  margin-top: 8px;
  display: block;
  max-height: 112px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

body.admin-view .batch-selected-stt-row {
  display: flex;
  align-items: center;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #111;
  background: #fff;
  min-height: 44px;
}

body.admin-view .batch-selected-stt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #ecec32;
  color: #111;
  font-size: 12px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

body.admin-view .batch-download-log {
  margin: 8px 0 0;
  border: 1px solid #111;
  background: #fff;
  padding: 8px;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.35;
  font-family: "Consolas", "Courier New", monospace;
}

body.admin-view .detail-editor-wrap .inline-editor-shell {
  background: transparent;
  border: 0;
  padding: 0;
}

body.admin-view .panel-section {
  margin-top: 8px;
}

body.admin-view .inline-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.admin-view .inline-edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.admin-view .inline-identifier-drive-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

body.admin-view .inline-identifier-drive-row .wire-pill {
  width: 100%;
  min-height: 36px;
  justify-content: center;
  padding: 0 10px;
  white-space: nowrap;
}

body.admin-view .inline-identifier-pill {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.03em;
}

body.admin-view .inline-drive-toggle-btn {
  min-height: 36px;
  white-space: nowrap;
}

body.admin-view .inline-edit-field-full {
  grid-column: 1 / -1;
}

body.admin-view .inline-edit-label {
  color: #222;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.admin-view .inline-edit-field input,
body.admin-view .inline-edit-field textarea {
  border: 1px solid #111;
  border-radius: 12px;
  background: #f5f500;
  color: #111;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  padding: 8px 10px;
}

body.admin-view .inline-edit-field textarea {
  min-height: 68px;
  resize: vertical;
}

body.admin-view .inline-drive-edit-wrap textarea[name="rawDriveLink"] {
  min-height: 84px;
}

body.admin-view .inline-drive-edit-note {
  margin: 0;
  color: #2f2f2f;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

body.admin-view .panel-section-title {
  margin: 0 0 6px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #222;
}

body.admin-view .panel-section-note {
  margin: 0 0 8px;
  color: #3a3a3a;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

body.admin-view .panel-preview-section {
  margin-top: 0;
}

body.admin-view .panel-confirm-section .inline-status-controls,
body.admin-view .panel-confirm-section .inline-status-readonly {
  border-width: 2px;
  background: #f7f7f2;
}

body.admin-view .inline-editor-top {
  margin-bottom: 8px;
}

body.admin-view .inline-code-review-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

body.admin-view .inline-review-panel {
  border: 0;
  background: #e7e79b;
  border-radius: 34px;
  padding: 8px;
}

body.admin-view .inline-review-stage-link {
  border: 0;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  aspect-ratio: 16 / 7;
  width: 94%;
  margin: 0 auto;
}

body.admin-view .inline-review-note {
  margin: 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.2;
  font-family: "Inter", sans-serif;
  padding: 96px 0;
}

body.admin-view .inline-review-meta,
body.admin-view .inline-review-note,
body.admin-view .muted {
  color: #222;
}

body.admin-view .preview-code-btn,
body.admin-view .code-open-link,
body.admin-view .team-pick-static {
  border: 0;
  background: #ecec32;
  color: #111;
  border-radius: 999px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

body.admin-view .preview-code-btn.is-active {
  background: #121418;
  color: #ecec32;
}

body.admin-view .preview-code-btn.is-readonly {
  opacity: 0.78;
}

body.admin-view .preview-code-btn.is-readonly:hover {
  background: #ecec32;
  color: #111;
}

body.admin-view .preview-code-btn.edit-code-input {
  font-weight: 700;
  letter-spacing: 0.05em;
}

body.admin-view .preview-code-btn.edit-code-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #121418;
}

body.admin-view .inline-editor-form.is-team-editing .preview-code-btn.is-editable {
  background: #121418;
  color: #ecec32;
  box-shadow: inset 0 0 0 1px #ecec32;
}

body.admin-view .inline-code-pill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

body.admin-view .inline-code-pills {
  max-height: 172px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

body.admin-view .inline-code-pills .team-pick-static {
  min-height: 36px;
}

body.admin-view .wire-action-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.admin-view .wire-action-grid.wire-action-grid-limited {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-view .wire-action-grid-main {
  margin-top: 0;
}

body.admin-view .inline-download-log-wrap {
  margin-top: 8px;
  border: 1px solid #111;
  background: #f2f2f2;
  border-radius: 8px;
  padding: 8px 10px;
}

body.admin-view .inline-download-log-title {
  margin: 0 0 6px;
  color: #222;
  font-size: 12px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.admin-view .inline-bundle-message {
  margin: 0;
  white-space: pre-wrap;
  max-height: 120px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.35;
  color: #111;
  font-family: "Consolas", "Courier New", monospace;
}

body.admin-view .inline-status-controls,
body.admin-view .inline-status-readonly {
  margin-top: 0;
  border: 1px solid #111;
  background: #f2f2f2;
  border-radius: 8px;
  padding: 8px 10px;
}

body.admin-view .inline-status-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.admin-view .inline-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

body.admin-view .inline-status-checks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.admin-view .inline-status-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

body.admin-view .inline-status-check input {
  width: 16px;
  height: 16px;
}

body.admin-view .inline-status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.admin-view .inline-status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 12px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.admin-view .inline-status-tag.processing,
body.admin-view .inline-status-tag.photo {
  background: #ecec32;
  color: #111;
}

body.admin-view .inline-status-tag.video {
  background: #ff9800;
  color: #111;
}

body.admin-view .inline-status-tag.done {
  background: #ff6fb5;
  color: #111;
}

body.admin-view .inline-status-readonly {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.admin-view .inline-progress-pill {
  min-width: 170px;
  pointer-events: none;
  text-transform: none;
  letter-spacing: 0.01em;
}

body.admin-view .inline-progress-pill.processing,
body.admin-view .inline-progress-pill.photo {
  background: #ecec32;
  color: #111;
}

body.admin-view .inline-progress-pill.video {
  background: #ff9800;
  color: #111;
}

body.admin-view .inline-progress-pill.done {
  background: #ff6fb5;
  color: #111;
}

body.admin-view .inline-edit-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.admin-view .inline-message {
  display: block;
  margin: 0;
  color: #111;
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

body.admin-view .wire-pill {
  min-height: 34px;
  border-radius: 999px;
  font-size: 14px;
  padding: 6px 12px;
  text-transform: none;
  letter-spacing: 0;
  font-family: "Inter", sans-serif;
}

body.admin-view .wire-color-pill:disabled {
  opacity: 1;
  cursor: default;
  color: #111;
}

body.admin-view .inline-pill-grid input,
body.admin-view .inline-pill-grid select {
  background: #f5f500;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 8px 14px;
}

body.admin-view .inline-pill-grid .field,
body.admin-view .field {
  margin-bottom: 0;
}

body.admin-view .inline-pill-grid .field label,
body.admin-view .field-label,
body.admin-view .field label {
  color: #333;
  letter-spacing: 0.05em;
  font-size: 12px;
}

body.admin-view .inline-code-actions {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.admin-view .inline-code-actions .btn {
  border-radius: 999px;
}

body.admin-view textarea[name="selectedPhotoCodes"],
body.admin-view textarea[name="rawDriveLink"],
body.admin-view textarea[name="internalNote"],
body.admin-view input[name="deliveryLink"] {
  border: 0;
  border-radius: 24px;
  background: #f5f500;
}

body.admin-view .status-line {
  margin-top: 10px;
}

body.admin-view .tag {
  border-color: #111;
  color: #111;
  background: #ecec32;
  white-space: nowrap;
  min-width: 94px;
  text-align: center;
}

body.admin-view .tag.processing,
body.admin-view .tag.photo {
  border-color: #111;
  color: #111;
  background: #ecec32;
}

body.admin-view .tag.video {
  border-color: #111;
  color: #111;
  background: #ff9800;
}

body.admin-view .tag.done {
  border-color: #111;
  color: #111;
  background: #ff6fb5;
}

body.admin-view .editor-actions-inline .btn {
  border-radius: 999px;
}

body.admin-view .field,
body.admin-view .status-line,
body.admin-view .editor-actions-inline {
  display: none !important;
}

@media (min-width: 1180px) {
  body.admin-view {
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
  }

  body.admin-view .admin-shell {
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    padding: 8px 0 10px;
    overflow: hidden;
  }

  body.admin-view .container {
    width: calc(100vw - 20px);
    max-width: none;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  body.admin-view #admin-top-info-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 4px 10px;
    margin-bottom: 8px;
    flex: 0 0 auto;
  }

  body.admin-view .admin-header {
    margin-bottom: 0;
    align-items: center;
  }

  body.admin-view .admin-heading {
    max-width: none;
    min-width: 0;
  }

  body.admin-view .admin-title {
    font-size: clamp(20px, 1.5vw, 26px);
    line-height: 1.06;
    margin-bottom: 0;
  }

  body.admin-view .admin-heading .muted {
    display: none;
  }

  body.admin-view .admin-scope-switch {
    margin-bottom: 0;
    justify-self: end;
    align-self: center;
  }

  body.admin-view .admin-scope-row {
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  body.admin-view .admin-scope-input {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.admin-view .admin-scope-label {
    display: none;
  }

  body.admin-view .admin-scope-switch select {
    width: auto;
    min-width: 220px;
    min-height: 34px;
    font-size: 14px;
    padding: 0 10px;
  }

  body.admin-view #logout-btn {
    min-height: 34px;
    min-width: 104px;
    padding: 0 10px;
  }

  body.admin-view #dashboard-section {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  body.admin-view #mobile-list-pane {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  body.admin-view #mobile-list-pane > .admin-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 8px;
  }

  body.admin-view #mobile-account-pane {
    display: none !important;
  }

  body.admin-view .dashboard-main-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    gap: 10px;
  }

  body.admin-view .dashboard-table-pane,
  body.admin-view .dashboard-detail-pane {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  body.admin-view .dashboard-table-pane {
    display: flex;
    flex-direction: column;
    border: 1px solid #c9c9c9;
    background: #ececec;
    padding: 6px;
  }

  body.admin-view .dashboard-detail-pane {
    border: 1px solid #c9c9c9;
    background: #ececec;
    padding: 8px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.admin-view .dashboard-table-controls {
    margin-bottom: 6px;
  }

  body.admin-view #dashboard-toolbar .toolbar-left {
    gap: 8px;
    grid-template-columns: max-content max-content max-content max-content minmax(220px, 1fr) max-content max-content;
  }

  body.admin-view #dashboard-toolbar .toolbar-left .record-view-field,
  body.admin-view #dashboard-toolbar .toolbar-left .filter-field,
  body.admin-view #dashboard-toolbar .toolbar-left .sort-field,
  body.admin-view #dashboard-toolbar .toolbar-left .search-scope-field,
  body.admin-view #dashboard-toolbar .toolbar-left .month-field {
    width: max-content;
    min-width: 0;
  }

  body.admin-view #dashboard-toolbar .toolbar-left .record-view-field select,
  body.admin-view #dashboard-toolbar .toolbar-left .filter-field select,
  body.admin-view #dashboard-toolbar .toolbar-left .sort-field select,
  body.admin-view #dashboard-toolbar .toolbar-left .search-scope-field select,
  body.admin-view #dashboard-toolbar .toolbar-left .month-field select {
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding-right: 28px;
  }

  body.admin-view #dashboard-toolbar .toolbar-left .search-by-id {
    min-width: 220px;
    width: 100%;
  }

  body.admin-view #dashboard-toolbar .toolbar-left .search-action-field .search-submit-btn {
    width: auto;
    min-width: 0;
    padding: 0 12px;
  }

  body.admin-view #dashboard-toolbar .toolbar-left .toolbar-field label {
    margin-bottom: 4px;
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  body.admin-view #dashboard-toolbar .toolbar-field select,
  body.admin-view #dashboard-toolbar .toolbar-field input {
    min-height: 34px;
    font-size: 13px;
    padding: 0 8px;
  }

  body.admin-view #dashboard-toolbar .search-action-field .search-submit-btn {
    min-height: 34px;
    min-width: 64px;
    font-size: 12px;
    padding: 0 8px;
  }

  body.admin-view .toolbar-meta-row {
    min-height: 34px;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
  }

  body.admin-view .toolbar-count {
    min-height: 34px;
    font-size: 11px;
    margin-right: 4px;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  body.admin-view .toolbar-meta-row .btn {
    min-height: 34px;
    min-width: 70px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  body.admin-view #dashboard-toolbar #logout-btn {
    min-width: 90px;
  }

  body.admin-view .batch-download-panel {
    margin: 0 0 6px;
    padding: 7px;
  }

  body.admin-view .batch-download-note {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.2;
  }

  body.admin-view .batch-selection-list {
    max-height: 64px;
  }

  body.admin-view .compact-table-wrap {
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
  }

  body.admin-view .detail-editor-wrap,
  body.admin-view .inline-editor-form,
  body.admin-view .detail-editor-wrap .inline-editor-shell {
    height: auto;
    min-height: 0;
  }

  body.admin-view .detail-editor-wrap .inline-editor-shell {
    display: block;
    align-content: normal;
    gap: 0;
    padding: 0;
  }

  body.admin-view .panel-section {
    margin-top: 0;
    min-height: auto;
  }

  body.admin-view .panel-section-title {
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  body.admin-view .panel-section-note {
    display: block;
  }

  body.admin-view .inline-review-panel {
    padding: 8px;
    border-radius: 34px;
  }

  body.admin-view .inline-review-stage-link {
    border-radius: 22px;
    aspect-ratio: 16 / 7;
    width: 94%;
    margin: 0 auto;
  }

  body.admin-view .inline-review-note {
    font-size: 16px;
    line-height: 1.2;
    padding: 96px 0;
  }

  body.admin-view .inline-code-pill-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0;
  }

  body.admin-view .preview-code-btn {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 14px;
  }

  body.admin-view .inline-code-pills {
    max-height: 172px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
  }

  body.admin-view .inline-edit-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 8px;
  }

  body.admin-view .inline-edit-field-full {
    grid-column: 1 / -1;
  }

  body.admin-view .inline-edit-label {
    font-size: 12px;
  }

  body.admin-view .inline-edit-field input,
  body.admin-view .inline-edit-field textarea {
    min-height: 36px;
    font-size: 13px;
    padding: 6px 9px;
    border-radius: 12px;
  }

  body.admin-view .inline-edit-field textarea {
    min-height: 68px;
    max-height: none;
    resize: vertical;
  }

  body.admin-view .wire-action-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-view .wire-pill {
    min-height: 34px;
    font-size: 14px;
    padding: 6px 12px;
    letter-spacing: 0;
  }

  body.admin-view .inline-status-controls,
  body.admin-view .inline-status-readonly {
    padding: 8px 10px;
  }

  body.admin-view .inline-status-check {
    font-size: 14px;
  }

  body.admin-view .inline-status-check input {
    width: 16px;
    height: 16px;
  }

  body.admin-view .inline-status-tag {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (min-width: 1180px) and (max-width: 1440px) {
  body.admin-view .dashboard-main-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  body.admin-view #dashboard-toolbar {
    grid-template-columns: 1fr;
  }

  body.admin-view #dashboard-toolbar .toolbar-left {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
  }

  body.admin-view #dashboard-toolbar .toolbar-left .record-view-field,
  body.admin-view #dashboard-toolbar .toolbar-left .filter-field,
  body.admin-view #dashboard-toolbar .toolbar-left .sort-field,
  body.admin-view #dashboard-toolbar .toolbar-left .month-field,
  body.admin-view #dashboard-toolbar .toolbar-left .search-scope-field {
    grid-column: span 3;
  }

  body.admin-view #dashboard-toolbar .toolbar-left .search-by-id {
    grid-column: span 9;
  }

  body.admin-view #dashboard-toolbar .toolbar-left .search-action-field {
    grid-column: span 2;
  }

  body.admin-view #dashboard-toolbar .toolbar-left .toolbar-meta-field {
    grid-column: span 4;
  }
}

@media (max-width: 900px) {
  body.admin-view .container {
    width: min(100%, 100vw);
    padding: 0 8px;
  }

  body.admin-view .mobile-admin-tabs {
    display: none !important;
  }

  body.admin-view .mobile-admin-tab-btn {
    min-height: 34px;
    font-size: 13px;
    padding: 6px 10px;
  }

  body.admin-view .admin-shell {
    padding: 10px 0 14px;
  }

  body.admin-view .admin-card {
    padding: 12px;
  }

  body.admin-view #mobile-account-pane {
    display: none !important;
  }

  body.admin-view .batch-download-panel {
    display: none !important;
  }

  body.admin-view .stats {
    display: none;
  }

  body.admin-view .stat {
    border: 1px solid #111;
    background: #ececec;
    padding: 8px;
  }

  body.admin-view .stat p {
    color: #222;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  body.admin-view .stat strong {
    margin-top: 4px;
    color: #111;
    font-size: clamp(18px, 6vw, 24px);
  }

  body.admin-view .admin-header {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }

  body.admin-view .admin-title {
    font-size: 21px;
    line-height: 1.1;
    margin-bottom: 4px;
  }

  body.admin-view .admin-heading .muted {
    font-size: 12px;
    line-height: 1.35;
  }

  body.admin-view .admin-scope-switch {
    gap: 6px;
    margin-bottom: 9px;
  }

  body.admin-view .admin-scope-label {
    font-size: 11px;
  }

  body.admin-view .admin-scope-row {
    width: 100%;
    align-items: flex-end;
  }

  body.admin-view .admin-scope-input {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.admin-view .admin-scope-switch select {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    font-size: 12px;
  }

  body.admin-view .admin-scope-row #logout-btn {
    min-height: 32px;
    min-width: 104px;
    padding: 0 10px;
  }

  body.admin-view .team-tab-btn {
    font-size: 12px;
    padding: 6px 9px;
  }

  body.admin-view .toolbar {
    gap: 8px;
    margin-bottom: 8px;
  }

  body.admin-view #dashboard-toolbar {
    grid-template-columns: 1fr;
  }

  body.admin-view #dashboard-toolbar .mobile-filter-toggle-wrap {
    display: inline-flex;
    width: auto;
    margin-left: auto;
    flex: 0 0 auto;
  }

  body.admin-view #dashboard-toolbar .mobile-filter-toggle-btn {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.admin-view #dashboard-toolbar .mobile-filter-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.admin-view #dashboard-toolbar .mobile-filter-toggle-btn.is-open {
    background: #f4f46a;
  }

  body.admin-view #dashboard-toolbar .toolbar-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    border: 1px solid #111;
    background: #dcdcdc;
    padding: 10px;
  }

  body.admin-view #dashboard-toolbar .toolbar-meta-field {
    width: 100%;
    order: -1;
  }

  body.admin-view #dashboard-toolbar:not(.is-mobile-filters-open) .toolbar-left {
    border: 0;
    background: transparent;
    padding: 0;
  }

  body.admin-view #dashboard-toolbar:not(.is-mobile-filters-open) .toolbar-left .toolbar-field:not(.toolbar-meta-field) {
    display: none;
  }

  body.admin-view #dashboard-toolbar .toolbar-meta-row {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
  }

  body.admin-view #dashboard-toolbar .toolbar-meta-row .btn {
    min-height: 34px;
    padding: 0 9px;
    font-size: 13px;
    white-space: nowrap;
  }

  body.admin-view #dashboard-toolbar .toolbar-count {
    min-height: 34px;
    margin-right: 2px;
    color: #b30000;
    font-weight: 700;
    letter-spacing: 0;
  }

  body.admin-view #dashboard-toolbar .toolbar-count strong,
  body.admin-view #dashboard-toolbar .toolbar-count span {
    color: #b30000;
  }

  body.admin-view #dashboard-toolbar #refresh-btn,
  body.admin-view #dashboard-toolbar #logout-btn {
    flex: 0 0 auto;
  }

  body.admin-view .admin-login-form .toolbar-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  body.admin-view .admin-login-form .remember-login-toggle {
    flex: 1;
    min-width: 0;
  }

  body.admin-view .admin-login-form .remember-login-toggle span {
    font-size: 12px;
    line-height: 1.25;
  }

  body.admin-view .search-by-id {
    min-width: 0;
    width: 100%;
  }

  body.admin-view .search-scope-field {
    min-width: 0;
    width: 100%;
  }

  body.admin-view .sort-field {
    min-width: 0;
    width: 100%;
  }

  body.admin-view .month-field {
    min-width: 0;
    width: 100%;
  }

  body.admin-view .search-action-field {
    min-width: 0;
    width: 100%;
  }

  body.admin-view .sort-field select {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    font-size: 14px;
  }

  body.admin-view .search-scope-field select {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    font-size: 14px;
  }

  body.admin-view .month-field select {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    font-size: 14px;
  }

  body.admin-view .search-action-field .search-submit-btn {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    font-size: 15px;
  }

  body.admin-view .search-action-field label {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body.admin-view .search-by-id label {
    font-size: 11px;
    padding: 0;
    margin-bottom: 6px;
  }

  body.admin-view .search-by-id input {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    font-size: 15px;
  }

  body.admin-view .compact-table-wrap {
    display: none;
  }

  body.admin-view .mobile-customer-list {
    display: grid;
    gap: 8px;
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 2px;
  }

  body.admin-view .mobile-customer-empty {
    margin: 0;
    padding: 14px 10px;
    border: 2px dashed #111;
    background: #ececec;
  }

  body.admin-view .mobile-customer-card {
    border: 1px solid #111;
    background: #ececec;
    padding: 9px 10px;
    cursor: pointer;
  }

  body.admin-view .mobile-customer-card.is-selected {
    background: #fffdd6;
  }

  body.admin-view .mobile-customer-card.is-admin-edited {
    background: #ffb1b1;
    border-color: #6f0000;
  }

  body.admin-view .mobile-customer-card.is-admin-edited.is-selected {
    background: #ff8f8f;
  }

  body.admin-view .mobile-customer-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  body.admin-view .mobile-customer-info {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  body.admin-view .mobile-customer-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 1px;
  }

  body.admin-view .mobile-customer-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 22px;
    padding: 2px 6px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #f5f500;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
  }

  body.admin-view .mobile-row-select {
    width: auto;
    min-width: 56px;
    justify-content: flex-start;
    flex: 0 0 auto;
    gap: 5px;
  }

  body.admin-view .mobile-row-select .row-select-stt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid #d1dced;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
  }

  body.admin-view .mobile-row-select input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }

  body.admin-view .mobile-customer-main {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.admin-view .mobile-customer-sub {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.admin-view .mobile-customer-folder-info {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.admin-view .mobile-customer-line {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 1px;
  }

  body.admin-view .mobile-customer-line + .mobile-customer-line {
    margin-top: 2px;
  }

  body.admin-view .mobile-customer-line-mid .mobile-customer-main {
    flex: 1 1 auto;
  }

  body.admin-view .mobile-customer-line-top .tag,
  body.admin-view .mobile-customer-line-bottom .tag {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #111;
    background: #f5f500;
    color: #111;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body.admin-view .mobile-customer-line-top .tag.processing,
  body.admin-view .mobile-customer-line-top .tag.photo,
  body.admin-view .mobile-customer-line-bottom .tag.processing,
  body.admin-view .mobile-customer-line-bottom .tag.photo {
    background: #f5f500;
    color: #111;
  }

  body.admin-view .mobile-customer-line-top .tag.video,
  body.admin-view .mobile-customer-line-bottom .tag.video {
    background: #ff9800;
    color: #111;
  }

  body.admin-view .mobile-customer-line-top .tag.done,
  body.admin-view .mobile-customer-line-bottom .tag.done {
    background: #ff6fb5;
    color: #111;
  }

  body.admin-view .mobile-meta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid #111;
    background: #f5f500;
    color: #111;
    font-size: 13px;
    line-height: 1.1;
    font-family: "Inter", sans-serif;
    font-weight: 600;
  }

  body.admin-view .mobile-customer-line-mid .mobile-meta-chip,
  body.admin-view .mobile-customer-line-bottom .mobile-meta-chip {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 13px;
    border: 1px solid #111;
    background: #f5f500;
    color: #111;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    width: auto;
    flex: 0 0 auto;
  }

  body.admin-view .mobile-customer-line-bottom .row-album-toggle,
  body.admin-view .mobile-contact-copy-btn {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid #111;
    background: #f5f500;
    color: #111;
    font-size: 13px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    width: auto;
  }

  body.admin-view .mobile-contact-copy-btn[disabled] {
    background: #d7d7d7;
    color: #666;
    border-color: #666;
    cursor: not-allowed;
  }

  body.admin-view .mobile-customer-progress {
    display: flex;
    justify-content: flex-start;
  }

  body.admin-view .mobile-customer-progress .tag {
    font-size: 12px;
    padding: 5px 8px;
    line-height: 1.1;
    white-space: nowrap;
    margin: 0;
  }

  body.admin-view .dashboard-detail-pane {
    margin-top: 8px;
  }

  body.admin-view .mobile-archive-album .row-album-toggle {
    min-width: 72px;
  }

  body.admin-view .mobile-final-album .row-album-toggle {
    min-width: 72px;
  }

  body.admin-view .mobile-account-card {
    padding: 10px;
  }

  body.admin-view .mobile-account-card #admin-top-info-block {
    display: grid;
    gap: 8px;
  }

  body.admin-view .mobile-account-card .admin-header {
    margin-bottom: 0;
  }

  body.admin-view .mobile-account-card .admin-scope-switch {
    margin-bottom: 0;
  }

  body.admin-view .mobile-account-card .team-tabs-wrap {
    margin: 8px 0 0;
  }

  body.admin-view .inline-review-panel {
    border-radius: 18px;
  }

  body.admin-view .inline-review-note {
    padding: 24px 0;
    font-size: 13px;
  }

  body.admin-view .inline-code-pill-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  body.admin-view .preview-code-btn,
  body.admin-view .team-pick-static {
    min-height: 24px;
    font-size: 11px;
    padding: 3px 5px;
  }

  body.admin-view .preview-code-btn.edit-code-input {
    font-size: 11px;
    padding: 0 5px;
    letter-spacing: 0.03em;
  }

  body.admin-view .wire-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-view .wire-pill {
    min-height: 32px;
    font-size: 13px;
    padding: 6px 10px;
  }

  body.admin-view .inline-download-log-wrap {
    padding: 7px 8px;
  }

  body.admin-view .inline-bundle-message {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  body.admin-view .wire-action-grid.wire-action-grid-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  body.admin-view .mobile-customer-inline {
    gap: 6px;
  }

  body.admin-view .mobile-customer-progress .tag {
    display: inline-flex;
    width: fit-content;
  }

  body.admin-view .inline-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
}

/* TailAdmin style refresh */
body.admin-view {
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.14), transparent 36%),
    radial-gradient(circle at 88% 0%, rgba(99, 102, 241, 0.12), transparent 34%),
    #f1f5f9;
  color: #0f172a;
}

body.admin-view .admin-card {
  background: #ffffff;
  border: 1px solid #dce5f2;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.admin-view .admin-title {
  color: #0f172a;
}

body.admin-view .admin-heading .muted,
body.admin-view .muted {
  color: #64748b;
}

body.admin-view .btn,
body.admin-view .btn-outline,
body.admin-view .row-album-toggle,
body.admin-view .mobile-contact-copy-btn,
body.admin-view .mobile-filter-toggle-btn {
  border-radius: 999px;
  border: 1px solid #d0dcf0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #1e293b;
  font-weight: 700;
}

body.admin-view .btn:hover,
body.admin-view .btn-outline:hover,
body.admin-view .row-album-toggle:hover,
body.admin-view .mobile-contact-copy-btn:hover,
body.admin-view .mobile-filter-toggle-btn:hover {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
}

body.admin-view .toolbar-field select,
body.admin-view .toolbar-field input,
body.admin-view .inline-edit-field input,
body.admin-view .inline-edit-field textarea {
  border: 1px solid #d1dced;
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
}

body.admin-view .toolbar-field select:focus,
body.admin-view .toolbar-field input:focus,
body.admin-view .inline-edit-field input:focus,
body.admin-view .inline-edit-field textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

body.admin-view #dashboard-toolbar .toolbar-count {
  color: #dc2626;
}

body.admin-view #dashboard-toolbar .toolbar-count strong,
body.admin-view #dashboard-toolbar .toolbar-count span {
  color: #dc2626;
}

body.admin-view .compact-table-wrap {
  display: block !important;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: #ffffff;
}

body.admin-view .mobile-customer-list {
  display: none !important;
}

body.admin-view .mobile-customer-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}

body.admin-view .mobile-customer-card {
  border: 1px solid #dbe4f0;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 11px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.admin-view .mobile-customer-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.12);
}

body.admin-view .mobile-customer-card.is-selected {
  background: #eff6ff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}

body.admin-view .mobile-customer-card.is-state-video {
  background: #fff1f2;
  border-color: #fca5a5;
}

body.admin-view .mobile-customer-card.is-state-video.is-selected {
  background: #ffe4e6;
  border-color: #fb7185;
}

body.admin-view .mobile-customer-card.is-state-edited {
  background: #fff7ed;
  border-color: #fdba74;
}

body.admin-view .mobile-customer-card.is-state-edited.is-selected {
  background: #ffedd5;
  border-color: #fb923c;
}

body.admin-view .mobile-customer-card.is-state-done {
  background: #eff6ff;
  border-color: #93c5fd;
}

body.admin-view .mobile-customer-card.is-state-done.is-selected {
  background: #dbeafe;
  border-color: #60a5fa;
}

body.admin-view .mobile-customer-folder-info,
body.admin-view .mobile-customer-main {
  color: #0f172a;
}

body.admin-view .mobile-customer-line {
  gap: 7px;
}

body.admin-view .mobile-customer-line-top .tag,
body.admin-view .mobile-customer-line-bottom .tag,
body.admin-view .mobile-meta-chip,
body.admin-view .mobile-contact-copy-btn,
body.admin-view .row-album-toggle {
  border: 1px solid #d1dced;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
}

body.admin-view .mobile-customer-line-top .tag.processing,
body.admin-view .mobile-customer-line-top .tag.photo,
body.admin-view .mobile-customer-line-bottom .tag.processing,
body.admin-view .mobile-customer-line-bottom .tag.photo {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

body.admin-view .mobile-customer-line-top .tag.video,
body.admin-view .mobile-customer-line-bottom .tag.video {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

body.admin-view .mobile-customer-line-top .tag.done,
body.admin-view .mobile-customer-line-bottom .tag.done {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

body.admin-view .panel-section {
  border: 1px solid #dde6f2;
  border-radius: 16px;
  background: #f8fbff;
  padding: 10px;
}

body.admin-view .panel-section-title {
  color: #334155;
  letter-spacing: 0.04em;
}

body.admin-view .compact-table th {
  background: #e9f1ff;
  color: #1e3a8a;
  border-bottom: 1px solid #ccd9ef;
  border-right: 1px solid #d9e4f4;
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.admin-view .compact-table td {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #edf2f7;
  color: #0f172a;
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.admin-view .customer-info-line,
body.admin-view .customer-name-line {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.admin-view .compact-table td .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid #d1dced;
  border-radius: 999px;
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

body.admin-view tbody tr:nth-child(even) td {
  background: #f8fbff;
}

body.admin-view tbody tr:hover td {
  background: #eef4ff;
}

body.admin-view .inline-review-panel {
  background: linear-gradient(180deg, #eef4ff, #e0ecff);
  border: 1px solid #dbe6fb;
}

body.admin-view .inline-review-stage-link {
  background: rgba(255, 255, 255, 0.7);
}

body.admin-view .preview-code-btn,
body.admin-view .code-open-link,
body.admin-view .team-pick-static {
  border: 1px solid #d1dced;
  background: #f8fafc;
  color: #1e293b;
  border-radius: 999px;
}

body.admin-view .preview-code-btn.is-active,
body.admin-view .inline-editor-form.is-team-editing .preview-code-btn.is-editable {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: none;
}

body.admin-view .wire-pill {
  border-radius: 999px;
}

body.admin-view .inline-status-controls,
body.admin-view .inline-status-readonly {
  border: 1px solid #dbe5f2;
  background: #f8fbff;
  border-radius: 14px;
}

body.admin-view .inline-progress-pill.processing,
body.admin-view .inline-progress-pill.photo {
  background: #fef3c7;
  color: #92400e;
}

body.admin-view .inline-progress-pill.video {
  background: #dbeafe;
  color: #1d4ed8;
}

body.admin-view .inline-progress-pill.done {
  background: #dcfce7;
  color: #166534;
}

body.admin-view .detail-editor-wrap .panel-section-title,
body.admin-view .detail-editor-wrap .inline-edit-label,
body.admin-view .detail-editor-wrap .inline-edit-field input,
body.admin-view .detail-editor-wrap .inline-edit-field textarea,
body.admin-view .detail-editor-wrap .wire-pill,
body.admin-view .detail-editor-wrap .inline-status-check span,
body.admin-view .detail-editor-wrap .inline-progress-pill {
  text-transform: uppercase;
}

body.admin-view .detail-editor-wrap .inline-edit-field input,
body.admin-view .detail-editor-wrap .inline-edit-field textarea {
  font-family: "Archivo", "Inter", sans-serif;
  letter-spacing: 0.03em;
}

@media (min-width: 901px) and (orientation: portrait) {
  body.admin-view {
    min-height: 100%;
    height: auto;
    overflow: auto;
  }

  body.admin-view .admin-shell,
  body.admin-view .container,
  body.admin-view #dashboard-section,
  body.admin-view #mobile-list-pane,
  body.admin-view #mobile-list-pane > .admin-card {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.admin-view .dashboard-main-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    height: auto;
  }

  body.admin-view .dashboard-detail-pane {
    grid-row: 1;
    grid-column: 1;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  body.admin-view .dashboard-table-pane {
    grid-row: 2;
    grid-column: 1;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  body.admin-view .dashboard-table-pane .compact-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
  }

  body.admin-view #dashboard-toolbar .toolbar-meta-field {
    position: sticky;
    top: 10px;
    z-index: 60;
  }

  body.admin-view .compact-table-wrap {
    display: block !important;
  }

  body.admin-view .mobile-customer-list {
    display: none !important;
  }
}

@media (min-width: 901px) and (orientation: landscape) {
  body.admin-view .dashboard-main-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    height: 100%;
  }

  body.admin-view .dashboard-table-pane {
    grid-row: 1;
    grid-column: 1;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.admin-view .dashboard-detail-pane {
    grid-row: 1;
    grid-column: 2;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.admin-view .dashboard-table-pane .compact-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
  }
}

@media (max-width: 900px) {
  body.admin-view .compact-table-wrap {
    display: none !important;
  }

  body.admin-view .mobile-customer-list {
    display: grid !important;
    gap: 10px;
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 3px;
  }
}

@media (min-width: 901px) and (orientation: portrait) {
  body.admin-view #dashboard-toolbar .toolbar-left {
    grid-template-columns: minmax(92px, 0.68fr) minmax(92px, 0.68fr) minmax(96px, 0.7fr) minmax(96px, 0.7fr) minmax(
        148px,
        1fr
      ) minmax(58px, auto) minmax(280px, 1.2fr);
    gap: 6px;
    align-items: end;
  }

  body.admin-view #dashboard-toolbar .toolbar-field label {
    margin-bottom: 3px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  body.admin-view #dashboard-toolbar .toolbar-field select,
  body.admin-view #dashboard-toolbar .toolbar-field input {
    min-height: 30px;
    font-size: 12px;
    padding: 0 7px;
  }

  body.admin-view #dashboard-toolbar .search-action-field .search-submit-btn,
  body.admin-view #dashboard-toolbar .toolbar-meta-row .btn {
    min-height: 30px;
    min-width: 68px;
    padding: 0 8px;
    font-size: 11px;
  }

  body.admin-view #dashboard-toolbar .toolbar-meta-row {
    min-height: 30px;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  body.admin-view #dashboard-toolbar .toolbar-count {
    min-height: 30px;
    margin-right: 2px;
    font-size: 10px;
    white-space: nowrap;
  }

  body.admin-view #dashboard-toolbar #refresh-btn,
  body.admin-view #dashboard-toolbar #logout-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.admin-view .detail-editor-wrap .inline-editor-shell {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  body.admin-view .detail-editor-wrap .panel-section {
    margin-top: 0;
    padding: 8px;
  }

  body.admin-view .detail-editor-wrap .panel-section-title {
    margin-bottom: 4px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  body.admin-view .detail-editor-wrap .panel-codes-section .inline-code-pills {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  body.admin-view .detail-editor-wrap .panel-codes-section .inline-code-pill-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 4px;
  }

  body.admin-view .detail-editor-wrap .panel-codes-section .inline-code-pill-grid .team-pick-static {
    grid-column: 1 / -1;
  }

  body.admin-view .detail-editor-wrap .panel-codes-section .preview-code-btn,
  body.admin-view .detail-editor-wrap .panel-codes-section .code-open-link,
  body.admin-view .detail-editor-wrap .panel-codes-section .team-pick-static {
    min-height: 26px;
    font-size: 11px;
    padding: 3px 6px;
  }

  body.admin-view .detail-editor-wrap .panel-edit-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 6px;
  }

  body.admin-view .detail-editor-wrap .panel-edit-section .inline-edit-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  body.admin-view .detail-editor-wrap .panel-edit-section .inline-edit-field {
    gap: 3px;
  }

  body.admin-view .detail-editor-wrap .panel-edit-section .inline-edit-field input {
    min-height: 30px;
    font-size: 12px;
    padding: 0 7px;
  }

  body.admin-view .detail-editor-wrap .panel-edit-section .inline-identifier-drive-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body.admin-view .detail-editor-wrap .panel-edit-section .inline-drive-toggle-btn {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  body.admin-view .detail-editor-wrap .panel-edit-section .inline-identifier-drive-row .wire-pill {
    min-height: 30px;
    font-size: 11px;
    padding: 0 7px;
  }

  body.admin-view .detail-editor-wrap .panel-edit-section .inline-edit-actions {
    margin-top: 0;
    gap: 4px;
    flex-wrap: nowrap;
  }

  body.admin-view .detail-editor-wrap .panel-edit-section .inline-team-save-btn {
    min-height: 30px;
    min-width: 84px;
    padding: 0 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  body.admin-view .detail-editor-wrap .panel-actions-section .wire-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  body.admin-view .detail-editor-wrap .panel-actions-section .wire-pill {
    min-height: 30px;
    font-size: 11px;
    padding: 0 6px;
    white-space: nowrap;
  }

  body.admin-view .detail-editor-wrap .panel-confirm-section .inline-status-controls,
  body.admin-view .detail-editor-wrap .panel-confirm-section .inline-status-readonly {
    padding: 6px 8px;
  }

  body.admin-view .detail-editor-wrap .panel-confirm-section .inline-status-controls {
    gap: 4px;
  }

  body.admin-view .detail-editor-wrap .panel-confirm-section .inline-status-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
  }

  body.admin-view .detail-editor-wrap .panel-confirm-section .inline-status-checks {
    gap: 8px;
    flex-wrap: nowrap;
  }

  body.admin-view .detail-editor-wrap .panel-confirm-section .inline-status-check {
    font-size: 11px;
    gap: 4px;
    white-space: nowrap;
  }

  body.admin-view .detail-editor-wrap .panel-confirm-section .inline-status-check input {
    width: 14px;
    height: 14px;
  }

  body.admin-view .detail-editor-wrap .panel-confirm-section .inline-complete-submit-btn,
  body.admin-view .detail-editor-wrap .panel-confirm-section .inline-progress-pill {
    min-height: 30px;
    min-width: 90px;
    font-size: 11px;
    padding: 0 9px;
    white-space: nowrap;
  }
}
