:root {
  --bg: #f4f4f4;
  --panel: #ffffff;
  --surface: #f9f9f9;
  --surface-strong: #e8e8e8;
  --text: #161616;
  --muted: #525252;
  --subtle: #6f6f6f;
  --line: #d8d8d8;
  --line-strong: #8d8d8d;
  --blue: #0f62fe;
  --blue-dark: #0043ce;
  --blue-soft: #edf5ff;
  --sidebar: #161616;
  --danger: #da1e28;
  --ok: #24a148;
  --warn: #b28600;
  --shadow: 0 20px 60px rgba(22, 22, 22, .08);
  --radius: 2px;
  --font: "IBM Plex Sans", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(22, 22, 22, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 22, 22, .035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  letter-spacing: .1px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button,
input,
select,
textarea {
  max-width: 100%;
}
img,
svg {
  max-width: 100%;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

.muted { color: var(--muted); }
.tiny { font-size: 12px; line-height: 1.45; }
.error { color: var(--danger); }
.success { color: var(--ok); }

.eyebrow {
  margin: 20px 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.btn {
  min-height: 40px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--surface-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.danger {
  border-color: #ffb3b8;
  background: #fff5f5;
  color: var(--danger);
}
.btn.danger:hover { background: #ffe5e8; }
.btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,.28);
  color: #f4f4f4;
}
.btn.ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.5);
}
.btn.subtle { margin-top: 12px; background: var(--surface); }
.btn:disabled { opacity: .52; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; min-width: 0; }
.field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.field label em { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea,
.filters input, .filters select, .search-line input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid transparent;
  border-bottom-color: var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  outline: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.field input:hover, .field select:hover, .field textarea:hover,
.filters input:hover, .filters select:hover, .search-line input:hover {
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus,
.filters input:focus, .filters select:focus, .search-line input:focus {
  border-color: var(--line);
  border-bottom-color: var(--blue);
  box-shadow: inset 0 -1px 0 var(--blue);
  background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:disabled, .field select:disabled, .field textarea:disabled {
  background: #eeeeee;
  color: var(--subtle);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
}
.form-grid .wide { grid-column: span 2; }
.form-grid .full { grid-column: 1 / -1; }

.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  background:
    linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.74)),
    url("/assets/brand-texture.png") center / cover no-repeat,
    var(--bg);
}
.brand-hero {
  min-height: 100dvh;
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.hero-copy { max-width: 760px; }
.logo-mark {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
}
.brand-logo {
  display: block;
  object-fit: contain;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-logo {
  width: min(380px, 100%);
  height: auto;
  padding: 14px 18px;
  box-shadow: 0 12px 40px rgba(22,22,22,.06);
}
.side-logo {
  width: 72px;
  height: 46px;
  padding: 5px;
  flex: 0 0 auto;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.95);
}
.customer-logo {
  width: min(320px, 100%);
  height: auto;
  padding: 12px 16px;
}
.brand-hero h1 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}
.brand-hero p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 580px;
}
.brand-intro {
  margin-top: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.brand-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 920px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
}
.brand-chip {
  min-height: 124px;
  padding: 20px;
  border-right: 1px solid var(--line);
}
.brand-chip:last-child { border-right: 0; }
.brand-chip b { display: block; margin-bottom: 10px; color: var(--text); }
.brand-chip span { color: var(--muted); line-height: 1.65; }
.brand-chip a { font-weight: 600; }
.auth-card {
  margin: clamp(20px, 3vw, 40px);
  padding: 32px;
  align-self: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth-card h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; }
.auth-card .muted { margin-bottom: 24px; line-height: 1.6; }
.login-contact {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 7px;
}

.layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--sidebar);
  color: white;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.side-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 6px 18px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.side-brand .logo-mark {
  width: 42px;
  height: 42px;
  font-size: 18px;
}
.side-brand b { display: block; line-height: 1.35; font-weight: 600; }
.side-brand span { color: #c6c6c6; font-size: 12px; }
.nav { display: grid; gap: 2px; }
.nav button {
  position: relative;
  min-height: 44px;
  background: transparent;
  color: #c6c6c6;
  border: 0;
  text-align: left;
  padding: 12px 12px 12px 16px;
  border-radius: var(--radius);
  transition: background .18s ease, color .18s ease;
}
.nav button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: transparent;
}
.nav button.active,
.nav button:hover {
  background: #262626;
  color: white;
}
.nav button.active::before { background: var(--blue); }
.side-foot {
  margin-top: auto;
  color: #c6c6c6;
  font-size: 13px;
  display: grid;
  gap: 10px;
}

.main {
  min-width: 0;
  padding: 24px;
}
.topbar {
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.topbar > div:first-child {
  min-width: 180px;
  flex-shrink: 0;
}
.topbar h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 500;
}
.toast {
  flex: 1;
  max-width: min(920px, 100%);
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  color: #002d9c;
  border-radius: var(--radius);
  padding: 12px 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}
.toast.error-bg {
  border-left-color: var(--danger);
  background: #fff1f1;
  color: var(--danger);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.panel-head {
  min-height: 64px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h2 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 600;
}
.panel-body { padding: 18px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
  gap: 18px;
  align-items: start;
  min-width: 0;
}
.split > * { min-width: 0; }
.detail-panel { position: sticky; top: 18px; }
.single-detail .detail-panel {
  position: static;
  max-width: none;
}
.single-detail .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.filters .filter-action { min-height: 44px; }
.table-wrap { overflow: auto; }
table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
tr:hover td { background: var(--blue-soft); }
tr.selected td { background: #e0edff; }

.order-card-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}
.order-card {
  width: 100%;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.order-card:hover,
.order-card.selected {
  border-color: var(--line-strong);
  border-left-color: var(--blue);
  background: var(--blue-soft);
}
.order-card:active { transform: translateY(1px); }
.order-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.order-card-main b {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}
.order-card-main span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}
.order-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}
.order-card-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}
.order-card-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #b8d3ff;
  border-radius: 999px;
  font-size: 12px;
  background: var(--blue-soft);
  color: #002d9c;
  white-space: nowrap;
  font-weight: 600;
}
.badge.done { background: #defbe6; border-color: #a7f0ba; color: var(--ok); }
.badge.warn { background: #fcf4d6; border-color: #f1c21b; color: var(--warn); }
.badge.gray { background: #eeeeee; border-color: var(--line); color: var(--muted); }

.order-form { display: grid; gap: 16px; }
.form-section {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
}
.form-section h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.attachment-section { margin-top: 16px; }
.upload-form { margin-top: 14px; }
.upload-box {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.file-selected {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.file-selected.has-file {
  color: var(--orange);
  font-weight: 600;
}
.customer-summary,
.customer-orders { margin-bottom: 16px; }
.customer-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.metric strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-order-list { padding: 0; }

.detail-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.attachment-list { display: grid; gap: 10px; }
.attachment {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 9px;
  background: white;
}
.attachment-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
}
.pill.public {
  color: #002d9c;
  background: var(--blue-soft);
  border-color: #b8d3ff;
}

.customer-shell { min-height: 100dvh; background: var(--bg); }
.customer-hero {
  padding: 38px 22px 82px;
  background:
    linear-gradient(90deg, rgba(22,22,22,.92), rgba(38,38,38,.76)),
    url("/assets/brand-texture.png") center / cover no-repeat,
    #161616;
  color: white;
}
.customer-hero .eyebrow { color: #78a9ff; }
.customer-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.customer-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}
.customer-contact {
  color: #e0e0e0;
  line-height: 1.85;
  text-align: right;
}
.customer-contact a { color: white; font-weight: 600; }
.customer-brand-intro {
  color: #e0e0e0;
  margin-top: 8px;
  font-size: 14px;
}
.customer-main {
  max-width: 1120px;
  margin: -46px auto 48px;
  padding: 0 18px;
  display: grid;
  gap: 16px;
}
.search-card {
  padding: 20px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.search-card h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; }
.search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.progress {
  display: grid;
  grid-template-columns: repeat(8, minmax(76px, 1fr));
  gap: 6px;
  margin: 14px 0 18px;
}
.step {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 6px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.step.on {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.info-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: var(--surface);
}
.info-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

@media (max-width: 1480px) {
  .split { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .filters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .order-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body { background-size: 24px 24px; }
  .auth-shell { grid-template-columns: 1fr; }
  .brand-hero {
    min-height: auto;
    padding: 28px;
    gap: 24px;
  }
  .brand-hero h1 { font-size: 32px; }
  .brand-strip { display: none; }
  .auth-card { margin: 18px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
  }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main { padding: 16px; }
  .topbar { flex-direction: column; }
  .form-grid, .filters, .info-grid, .progress { grid-template-columns: 1fr; }
  .form-grid .wide, .form-grid .full { grid-column: auto; }
  .search-line { grid-template-columns: 1fr; }
  .customer-hero-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .customer-contact { text-align: left; }
  table { min-width: 760px; }
  .order-card-grid { grid-template-columns: 1fr; }
  .customer-metrics { grid-template-columns: 1fr; }
  .single-detail .form-grid { grid-template-columns: 1fr; }
}

/* Login page replacement based on the 4177 reference page. */
.login-page-shell {
  --login-bg: #f8f5f1;
  --login-surface: #ffffff;
  --login-text: #1f2329;
  --login-muted: #6b7280;
  --login-line: #e5e0d9;
  --login-accent: #ff7a00;
  --login-accent-deep: #e95e00;
  --login-accent-soft: #fff0dd;
  --login-shadow: 0 26px 70px rgba(70, 55, 40, 0.13);
  --login-shadow-card: 0 18px 45px rgba(80, 66, 48, 0.11);
  --login-radius-xl: 28px;
  --login-radius-lg: 18px;
  --login-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.86fr);
  gap: clamp(28px, 4.5vw, 68px);
  align-items: center;
  padding: clamp(22px, 3.7vw, 56px) clamp(26px, 6vw, 96px);
  overflow-x: hidden;
  color: var(--login-text);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.95), transparent 32%),
    radial-gradient(circle at 72% 26%, rgba(255, 122, 0, 0.08), transparent 30%),
    linear-gradient(135deg, #f6efe7 0%, #fbfaf8 44%, #f2eee8 100%);
}

.login-page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .4;
  background:
    linear-gradient(90deg, rgba(95, 75, 54, .04) 1px, transparent 1px),
    linear-gradient(rgba(95, 75, 54, .025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 58% 40%, #000 0%, transparent 64%);
}

.login-page-shell svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-page-shell .brand-panel {
  position: relative;
  min-height: min(760px, calc(100dvh - 44px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(0px, 12vw, 210px);
  isolation: isolate;
}

.login-page-shell .ambient-ring {
  position: absolute;
  border: 1px solid rgba(120, 105, 88, .08);
  border-radius: 50%;
  pointer-events: none;
}

.login-page-shell .ring-one {
  width: 680px;
  height: 680px;
  right: -210px;
  top: -150px;
  box-shadow:
    inset 0 0 0 22px rgba(120,105,88,.018),
    inset 0 0 0 44px rgba(120,105,88,.018),
    inset 0 0 0 66px rgba(120,105,88,.018),
    inset 0 0 0 88px rgba(120,105,88,.016);
}

.login-page-shell .ring-two {
  width: 520px;
  height: 520px;
  right: -110px;
  bottom: -180px;
  box-shadow:
    inset 0 0 0 18px rgba(120,105,88,.018),
    inset 0 0 0 36px rgba(120,105,88,.018),
    inset 0 0 0 54px rgba(120,105,88,.018);
}

.login-page-shell .interior-scene {
  position: absolute;
  left: clamp(-70px, -4vw, -20px);
  bottom: 0;
  width: clamp(240px, 25vw, 390px);
  height: clamp(410px, 54vw, 640px);
  opacity: .9;
  z-index: -1;
}

.login-page-shell .interior-scene::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(230,221,211,.4));
  clip-path: polygon(0 17%, 100% 0, 100% 100%, 0 100%);
}

.login-page-shell .cabinet {
  position: absolute;
  left: 0;
  top: 12%;
  width: 58%;
  height: 61%;
  border: 1px solid rgba(160,143,124,.34);
  background: linear-gradient(90deg, rgba(255,255,255,.52), rgba(231,221,210,.58));
  box-shadow: 28px 0 70px rgba(116,92,68,.08);
}

.login-page-shell .cabinet span {
  position: absolute;
  left: 12%;
  width: 76%;
  height: 1px;
  background: rgba(160,143,124,.3);
}
.login-page-shell .cabinet span:nth-child(1) { top: 26%; }
.login-page-shell .cabinet span:nth-child(2) { top: 52%; }
.login-page-shell .cabinet span:nth-child(3) { top: 76%; }
.login-page-shell .cabinet i {
  position: absolute;
  left: 18%;
  top: 34%;
  width: 60%;
  height: 34%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,122,0,.13), transparent 15%),
    linear-gradient(90deg, transparent 45%, rgba(170,145,115,.18) 46% 54%, transparent 55%);
  border-radius: 50% 50% 8px 8px;
}

.login-page-shell .sofa {
  position: absolute;
  left: 4%;
  bottom: 21%;
  width: 77%;
  height: 18%;
  border-radius: 48px 48px 18px 18px;
  background: linear-gradient(180deg, #fbf7f2, #e2d7ca);
  box-shadow: 0 26px 48px rgba(102,80,60,.16);
}
.login-page-shell .sofa::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 52%;
  height: 1px;
  background: rgba(155,135,115,.22);
}

.login-page-shell .plant {
  position: absolute;
  left: 33%;
  bottom: 31%;
  width: 2px;
  height: 120px;
  background: rgba(191,129,70,.34);
  transform: rotate(-7deg);
}
.login-page-shell .plant::before,
.login-page-shell .plant::after {
  content: "";
  position: absolute;
  bottom: 32px;
  width: 62px;
  height: 1px;
  background: rgba(191,129,70,.25);
  transform-origin: left center;
}
.login-page-shell .plant::before { transform: rotate(-34deg); }
.login-page-shell .plant::after { transform: rotate(32deg); }

.login-page-shell .table {
  position: absolute;
  left: 10%;
  bottom: 12%;
  width: 86%;
  height: 7%;
  border-radius: 50%;
  background: linear-gradient(180deg, #d7c9b8, #9e8872);
  box-shadow: 0 18px 34px rgba(83,66,49,.18);
}
.login-page-shell .table::before,
.login-page-shell .table::after {
  content: "";
  position: absolute;
  top: 70%;
  width: 2px;
  height: 86px;
  background: rgba(108,87,66,.34);
}
.login-page-shell .table::before { left: 30%; }
.login-page-shell .table::after { right: 30%; }

.login-page-shell .vase {
  position: absolute;
  bottom: 19.5%;
  border-radius: 48% 48% 14px 14px;
  background: linear-gradient(180deg, #fff8ee, #bea88f);
}
.login-page-shell .vase-one { left: 51%; width: 32px; height: 58px; }
.login-page-shell .vase-two { left: 66%; width: 42px; height: 44px; }

.login-page-shell .login-brand-header { margin-bottom: clamp(42px, 6vw, 92px); }
.login-page-shell .login-wordmark {
  display: flex;
  align-items: baseline;
  gap: 16px;
  letter-spacing: 4px;
  line-height: 1;
}
.login-page-shell .login-wordmark span {
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 800;
  color: #383532;
  text-shadow: 0 1px 0 #fff;
}
.login-page-shell .login-wordmark strong {
  font-size: clamp(30px, 2.4vw, 42px);
  color: var(--login-accent);
  letter-spacing: 2px;
}
.login-page-shell .login-brand-header p {
  margin: 12px 0 0 78px;
  color: #74706d;
  font-size: clamp(14px, 1.1vw, 18px);
  letter-spacing: 1px;
}

.login-page-shell .login-hero-copy h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(38px, 4.6vw, 76px);
  line-height: 1.13;
  font-weight: 800;
  color: #202225;
}
.login-page-shell .login-hero-copy h1 span {
  color: var(--login-accent);
  white-space: nowrap;
}
.login-page-shell .subtitle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.login-page-shell .subtitle-row i,
.login-page-shell .login-heading i {
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--login-accent), #ffb15d);
}
.login-page-shell .subtitle-row p {
  margin: 0;
  color: #54565a;
  font-size: clamp(17px, 1.3vw, 22px);
}
.login-page-shell .brand-note {
  margin: 22px 0 0;
  color: #5d626b;
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 500;
}

.login-page-shell .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: clamp(18px, 2.2vw, 36px);
  max-width: 810px;
  margin-top: clamp(28px, 4vw, 60px);
}
.login-page-shell .feature-card {
  min-height: 212px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: var(--login-radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  box-shadow: var(--login-shadow-card);
  backdrop-filter: blur(18px);
  text-align: center;
  transition: transform 260ms var(--login-ease), box-shadow 260ms var(--login-ease);
}
.login-page-shell .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(80,66,48,.15);
}
.login-page-shell .icon-badge {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--login-accent);
  background: radial-gradient(circle, #fff9f1 0 40%, #ffead1 41% 100%);
}
.login-page-shell .icon-badge svg { width: 34px; height: 34px; stroke-width: 1.7; }
.login-page-shell .feature-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #202225;
}
.login-page-shell .feature-card p {
  margin: 0;
  color: #666b73;
  font-size: 14px;
  line-height: 1.65;
}
.login-page-shell .feature-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--login-accent);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.login-page-shell .value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 810px;
  margin-top: clamp(24px, 3vw, 44px);
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: var(--login-radius-lg);
  background: rgba(255,255,255,.66);
  box-shadow: 0 16px 38px rgba(80,66,48,.08);
  backdrop-filter: blur(18px);
}
.login-page-shell .value-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: 0 18px;
  color: var(--login-accent);
}
.login-page-shell .value-item + .value-item { border-left: 1px solid #ddd7cf; }
.login-page-shell .value-item svg { width: 38px; height: 38px; flex: 0 0 auto; }
.login-page-shell .value-item span {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #6a6f77;
  font-size: 14px;
  white-space: nowrap;
}
.login-page-shell .value-item strong { color: #23262b; font-size: 17px; }

.login-page-shell .login-panel {
  position: relative;
  display: grid;
  place-items: center;
}
.login-page-shell .login-card {
  width: min(100%, 500px);
  min-height: 560px;
  padding: clamp(30px, 3.5vw, 50px);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: var(--login-radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.86)),
    radial-gradient(circle at 12% 10%, rgba(255,122,0,.06), transparent 34%);
  box-shadow: var(--login-shadow);
  backdrop-filter: blur(22px);
}
.login-page-shell .login-heading h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.12;
}
.login-page-shell .login-heading p {
  margin: 18px 0 26px;
  color: var(--login-muted);
  font-size: 16px;
  line-height: 1.6;
}
.login-page-shell .form-field { margin-top: 20px; }
.login-page-shell .form-field label {
  display: block;
  margin-bottom: 12px;
  color: #1f2329;
  font-size: 17px;
  font-weight: 700;
}
.login-page-shell .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 54px;
  border: 1px solid #dcdfe5;
  border-radius: 8px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.login-page-shell .input-wrap:focus-within {
  border-color: var(--login-accent);
  box-shadow: 0 0 0 4px rgba(255,122,0,.12);
}
.login-page-shell .input-wrap > svg {
  width: 24px;
  height: 24px;
  margin-left: 18px;
  color: #a6abb3;
  flex: 0 0 auto;
}
.login-page-shell .input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--login-text);
  background: transparent;
  font-size: 16px;
}
.login-page-shell .input-wrap input::placeholder { color: #b5bac2; }
.login-page-shell .icon-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: 6px;
  border: 0;
  border-radius: 8px;
  color: #9fa5ae;
  background: transparent;
}
.login-page-shell .icon-button:hover,
.login-page-shell .icon-button:focus-visible {
  color: var(--login-accent);
  background: var(--login-accent-soft);
  outline: 0;
}
.login-page-shell .icon-button svg { width: 22px; height: 22px; }
.login-page-shell .eye-closed { display: none; }
.login-page-shell .icon-button.is-visible .eye-open { display: none; }
.login-page-shell .icon-button.is-visible .eye-closed { display: block; }

.login-page-shell .actions {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.login-page-shell .primary-button,
.login-page-shell .secondary-button {
  min-height: 52px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  transition: transform 220ms var(--login-ease), box-shadow 220ms var(--login-ease), background 220ms ease;
}
.login-page-shell .primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #ff8e1f, #f26b00);
  box-shadow: 0 14px 28px rgba(255,122,0,.25);
}
.login-page-shell .primary-button.is-loading {
  pointer-events: none;
  opacity: .86;
}
.button-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .72s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.login-page-shell .primary-button:hover,
.login-page-shell .primary-button:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ff8110, #dc5d00);
  box-shadow: 0 18px 36px rgba(255,122,0,.32);
  outline: 0;
}
.login-page-shell .secondary-button {
  border: 1px solid var(--login-accent);
  color: var(--login-accent-deep);
  background: rgba(255,255,255,.75);
}
.login-page-shell .secondary-button:hover,
.login-page-shell .secondary-button:focus-visible {
  transform: translateY(-1px);
  background: #fff4e9;
  box-shadow: 0 12px 24px rgba(255,122,0,.12);
  outline: 0;
}
.login-page-shell .divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0 16px;
  color: #a2a8b0;
}
.login-page-shell .divider::before,
.login-page-shell .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dfe2e6;
}
.login-page-shell .divider span { font-size: 15px; }
.login-page-shell .form-status {
  min-height: 22px;
  margin: -8px 0 14px;
  color: var(--login-accent-deep);
  font-size: 14px;
}
.login-page-shell .form-status.error { color: var(--danger); }
.login-page-shell .form-status.success { color: var(--ok); }
.login-page-shell .contact-block { color: #777d86; }
.login-page-shell .phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-page-shell .phone-row svg {
  width: 22px;
  height: 22px;
  color: var(--login-accent);
}
.login-page-shell .phone-row strong {
  font-size: 23px;
  letter-spacing: 1px;
  color: #30333a;
}
.login-page-shell .contact-block p {
  margin: 8px 0 0 34px;
  font-size: 15px;
}

@media (max-height: 760px) and (min-width: 900px) {
  .login-page-shell {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .login-page-shell .login-wordmark span { font-size: 34px; }
  .login-page-shell .login-wordmark strong { font-size: 30px; }
  .login-page-shell .login-brand-header { margin-bottom: 36px; }
  .login-page-shell .login-hero-copy h1 {
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.08;
  }
  .login-page-shell .subtitle-row { margin-top: 14px; }
  .login-page-shell .brand-note { margin-top: 16px; font-size: 16px; }
  .login-page-shell .feature-grid { margin-top: 26px; gap: 18px; }
  .login-page-shell .feature-card {
    min-height: 178px;
    padding: 22px 18px 18px;
  }
  .login-page-shell .icon-badge {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }
  .login-page-shell .icon-badge svg { width: 29px; height: 29px; }
  .login-page-shell .feature-card h2 { font-size: 18px; }
  .login-page-shell .feature-card p,
  .login-page-shell .feature-card a { font-size: 13px; }
  .login-page-shell .value-strip {
    margin-top: 20px;
    padding: 16px 18px;
  }
  .login-page-shell .value-item svg { width: 30px; height: 30px; }
  .login-page-shell .value-item strong { font-size: 15px; }
  .login-page-shell .value-item span { font-size: 12px; }
  .login-page-shell .login-card {
    min-height: auto;
    padding: 34px 40px;
  }
  .login-page-shell .login-heading h2 { font-size: 36px; }
  .login-page-shell .login-heading p {
    margin: 14px 0 20px;
    font-size: 14px;
  }
  .login-page-shell .form-field { margin-top: 16px; }
  .login-page-shell .form-field label {
    margin-bottom: 8px;
    font-size: 15px;
  }
  .login-page-shell .input-wrap { height: 48px; }
  .login-page-shell .actions {
    margin-top: 22px;
    gap: 12px;
  }
  .login-page-shell .primary-button,
  .login-page-shell .secondary-button {
    min-height: 48px;
    font-size: 16px;
  }
  .login-page-shell .divider { margin: 20px 0 12px; }
  .login-page-shell .phone-row strong { font-size: 20px; }
}

@media (max-width: 1180px) {
  .login-page-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .login-page-shell .brand-panel {
    min-height: auto;
    padding-left: clamp(20px, 10vw, 110px);
    padding-right: clamp(20px, 6vw, 80px);
  }
  .login-page-shell .login-card { max-width: 560px; }
  .login-page-shell .interior-scene { opacity: .45; }
}

@media (max-width: 760px) {
  .login-page-shell {
    grid-template-columns: 1fr;
    padding: 24px 16px 36px;
    background: linear-gradient(135deg, #f8f3ec 0%, #fff 100%);
  }
  .login-page-shell .brand-panel { padding: 12px 0 0; }
  .login-page-shell .login-brand-header {
    margin-bottom: 40px;
    text-align: center;
  }
  .login-page-shell .login-wordmark {
    justify-content: center;
    gap: 10px;
  }
  .login-page-shell .login-wordmark span {
    font-size: 32px;
    letter-spacing: 2px;
  }
  .login-page-shell .login-wordmark strong { font-size: 28px; }
  .login-page-shell .login-brand-header p {
    margin-left: 0;
    font-size: 14px;
  }
  .login-page-shell .login-hero-copy { text-align: center; }
  .login-page-shell .login-hero-copy h1 { font-size: 38px; }
  .login-page-shell .subtitle-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .login-page-shell .brand-note {
    font-size: 15px;
    line-height: 1.7;
  }
  .login-page-shell .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }
  .login-page-shell .feature-card {
    min-height: auto;
    padding: 28px 24px;
  }
  .login-page-shell .value-strip {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 18px;
  }
  .login-page-shell .value-item {
    justify-content: flex-start;
    padding: 18px 4px;
  }
  .login-page-shell .value-item + .value-item {
    border-left: 0;
    border-top: 1px solid #e3ddd5;
  }
  .login-page-shell .value-item span { white-space: normal; }
  .login-page-shell .login-card {
    min-height: auto;
    padding: 30px 22px;
    border-radius: 22px;
  }
  .login-page-shell .login-heading h2 { font-size: 34px; }
  .login-page-shell .phone-row strong { font-size: 20px; }
  .login-page-shell .interior-scene,
  .login-page-shell .ambient-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .login-page-shell *,
  .login-page-shell *::before,
  .login-page-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* BAUNIS premium admin dashboard */
:root {
  --admin-bg: #f8f5f1;
  --admin-bg-soft: #fbfaf8;
  --admin-panel: #ffffff;
  --admin-text: #1f2329;
  --admin-muted: #6b7280;
  --admin-line: #ece7df;
  --admin-line-strong: #e5e7eb;
  --admin-orange: #ff7a00;
  --admin-orange-deep: #ff6a00;
  --admin-orange-soft: #fff2e4;
  --admin-yellow: #f5a623;
  --admin-green: #55b879;
  --admin-shadow: 0 18px 48px rgba(80, 66, 48, .10);
  --admin-shadow-soft: 0 10px 26px rgba(80, 66, 48, .075);
}

.layout {
  min-height: 100dvh;
  grid-template-columns: 240px minmax(0, 1fr);
  background:
    radial-gradient(circle at 78% 4%, rgba(255, 122, 0, .07), transparent 26%),
    linear-gradient(135deg, var(--admin-bg) 0%, var(--admin-bg-soft) 58%, #f3eee7 100%);
  color: var(--admin-text);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.layout svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.sidebar {
  width: 240px;
  padding: 24px 16px 18px;
  background:
    radial-gradient(circle at 80% 90%, rgba(255,122,0,.13), transparent 24%),
    linear-gradient(150deg, #151515 0%, #25211d 100%);
  box-shadow: 12px 0 42px rgba(0,0,0,.18);
}

.side-brand {
  display: grid;
  gap: 10px;
  padding: 6px 8px 22px;
}

.side-wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.side-wordmark span {
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 4px;
}

.side-wordmark strong {
  color: var(--admin-orange);
  font-size: 15px;
  letter-spacing: 1px;
}

.side-brand b {
  color: #fff;
  font-size: 15px;
}

.side-brand span {
  color: rgba(255,255,255,.58);
  font-size: 12px;
}

.nav {
  gap: 10px;
  padding-top: 6px;
}

.nav button {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 12px 16px;
  color: rgba(255,255,255,.84);
  font-size: 15px;
  font-weight: 600;
}

.nav button::before { display: none; }

.nav button:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.nav button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--admin-orange), #b84b00);
  box-shadow: 0 12px 28px rgba(255,106,0,.32), inset 0 1px 0 rgba(255,255,255,.22);
}

.side-foot {
  gap: 12px;
}

.sidebar-sketch {
  position: relative;
  height: 118px;
  opacity: .24;
  margin-bottom: 4px;
}

.sidebar-sketch span {
  position: absolute;
  left: 34px;
  right: 24px;
  bottom: 20px;
  height: 36px;
  border: 1px solid rgba(255,122,0,.55);
  border-radius: 16px 16px 4px 4px;
}

.sidebar-sketch i {
  position: absolute;
  left: 6px;
  bottom: 16px;
  width: 36px;
  height: 70px;
  border: 1px solid rgba(255,122,0,.55);
  border-radius: 40px 40px 0 0;
}

.sidebar-sketch b {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 34px;
  height: 74px;
  border-bottom: 1px solid rgba(255,122,0,.55);
  border-right: 1px solid rgba(255,122,0,.45);
  transform: skewY(-18deg);
}

.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.side-user span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.side-foot .btn.ghost {
  min-height: 48px;
  justify-content: flex-start;
  border-radius: 8px;
  border-color: rgba(255,255,255,.22);
  padding: 12px 16px;
}

.side-foot .btn.ghost:hover {
  border-color: var(--admin-orange);
  color: #fff;
  background: rgba(255,122,0,.08);
}

.main {
  padding: 26px 22px 0;
}

.topbar {
  min-height: 84px;
  align-items: center;
  border-bottom: 0;
  padding: 0 2px 20px;
  margin-bottom: 0;
}

.topbar h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
}

.topbar .muted {
  font-size: 16px;
  color: var(--admin-muted);
}

.stats-row {
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  gap: 0;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--admin-shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
}

.stat-card {
  min-width: 140px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--admin-line);
}

.stat-card:last-child { border-right: 0; }

.stat-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--admin-orange), var(--admin-orange-deep));
}

.stat-card.box > span { background: linear-gradient(135deg, #ffc049, #f5a623); }
.stat-card.done > span { background: linear-gradient(135deg, #7bd99a, #55b879); }

.stat-card p {
  margin: 0 0 4px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 600;
}

.stat-card strong {
  font-size: 20px;
  color: #111827;
  margin-right: 4px;
}

.stat-card em {
  color: #111827;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.split {
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
}

.split > .panel:first-child {
  align-self: start;
}

.panel {
  border: 1px solid rgba(230, 224, 216, .9);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--admin-shadow-soft);
}

.panel-head {
  min-height: auto;
  padding: 22px 24px 14px;
  border-bottom: 0;
}

.panel-head h2 {
  font-size: 20px;
  font-weight: 800;
}

.filters {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 20px;
  padding: 0 24px 22px;
  border-bottom: 1px solid var(--admin-line);
  background: transparent;
}

.filters input,
.filters select,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 42px;
  border: 1px solid var(--admin-line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.filters input:focus,
.filters select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--admin-orange);
  box-shadow: 0 0 0 4px rgba(255,122,0,.12);
}

.filters .btn {
  min-height: 42px;
  border-radius: 8px;
}

.filters .filter-action {
  grid-column: span 2;
}

.btn {
  border-radius: 8px;
}

.btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--admin-orange), var(--admin-orange-deep));
  box-shadow: 0 10px 22px rgba(255,106,0,.2);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #ff8c1f, #e95e00);
}

.btn.danger {
  color: #f04438;
  border-color: #ffb4aa;
  background: #fff7f5;
  box-shadow: none;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-card-list {
  gap: 12px;
  padding: 18px 16px 20px;
}

.order-card {
  border: 1px solid #eeeeee;
  border-left: 1px solid #eeeeee;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(80,66,48,.055);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 18px;
}

.order-card:hover {
  background: #fff;
  border-color: #ffd1a3;
  transform: translateY(-1px);
}

.order-card.selected {
  border-color: #eee3d8;
  border-left-color: var(--admin-orange);
  background: linear-gradient(120deg, #fffaf5 0%, #fffdfb 72%);
  box-shadow: 0 14px 32px rgba(80,66,48,.08);
}

.order-card-main {
  margin: 0;
  align-items: center;
  justify-content: flex-start;
}

.order-card-main > div {
  min-width: 0;
}

.order-avatar {
  display: none;
}

.order-card-main b {
  font-size: 18px;
  font-weight: 800;
}

.order-card-main span:not(.order-avatar) {
  color: var(--admin-muted);
  overflow-wrap: anywhere;
}

.order-card-grid {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px 22px;
  padding-left: 20px;
  border-left: 1px solid var(--admin-line);
}

.order-card-grid span {
  color: var(--admin-muted);
  font-size: 12px;
}

.order-card-grid strong {
  color: #111827;
  font-weight: 700;
}

.badge {
  align-self: start;
  min-width: 64px;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff1df;
  color: var(--admin-orange-deep);
}

.badge.warn { background: #fff1df; color: var(--admin-orange-deep); }
.badge.done { background: #e9f8ef; color: #229a57; }
.badge.gray { background: #eeeeee; color: #525252; }

.detail-panel {
  top: 18px;
  max-height: calc(100dvh - 36px);
  overflow: auto;
}

.detail-panel .panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}

.detail-panel .panel-body {
  padding: 0 18px 18px;
}

.order-form {
  gap: 14px;
}

.form-section {
  border-radius: 12px;
  border-color: #eeeeee;
  box-shadow: 0 8px 20px rgba(80,66,48,.045);
}

.form-section h3 {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.detail-panel .form-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px 14px;
}

.detail-panel .form-grid .wide,
.detail-panel .form-grid .full {
  grid-column: 1 / -1;
}

.toast {
  position: fixed;
  right: 24px;
  top: 18px;
  z-index: 20;
  max-width: 360px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  box-shadow: var(--admin-shadow);
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 25, 19, .28);
  backdrop-filter: blur(8px);
}

.confirm-dialog {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 122, 0, .16);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #fffaf5 100%);
  box-shadow: 0 26px 70px rgba(80, 66, 48, .22);
}

.confirm-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ffb05f, var(--admin-orange));
}

.confirm-icon.notice {
  background: linear-gradient(135deg, #f8b84e, #ff7a00);
}

.confirm-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirm-copy {
  min-width: 0;
}

.confirm-copy h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  color: #111827;
}

.confirm-copy p {
  margin: 0;
  color: #2f3338;
  line-height: 1.65;
}

.confirm-copy span {
  display: block;
  margin-top: 8px;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.55;
}

.confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.btn.danger-solid {
  border-color: var(--admin-orange);
  background: var(--admin-orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 122, 0, .22);
}

.btn.danger-solid:hover {
  border-color: #e56d00;
  background: #e56d00;
}

@media (max-width: 1320px) {
  .split {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
    max-height: none;
  }

  .detail-panel .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 920px) {
  .layout {
    width: 100%;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr);
    overflow-x: hidden;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    height: auto;
    padding: 16px;
    overflow: hidden;
  }

  .nav {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar { display: none; }

  .nav button {
    flex: 0 0 auto;
  }

  .sidebar-sketch {
    display: none;
  }

  .side-foot {
    grid-template-columns: 1fr 1fr;
  }

  .side-user {
    grid-column: 1 / -1;
  }

  .main {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    padding: 18px 14px;
    overflow-x: hidden;
  }

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

  .stats-row {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
  }

  .filters,
  .order-card,
  .order-card-grid,
  .detail-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .filters .filter-action {
    grid-column: auto;
  }

  .order-card {
    gap: 14px;
  }

  .order-card-main {
    gap: 10px;
  }

  .order-card-grid {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--admin-line);
    padding-top: 12px;
  }
}

@media (max-width: 520px) {
  .order-card-list {
    padding: 12px 10px 14px;
  }

  .order-card {
    padding: 14px;
    border-radius: 12px;
  }

  .order-avatar {
    display: none;
  }

  .order-card-main b {
    font-size: 17px;
  }

  .order-card-main span:not(.order-avatar) {
    font-size: 14px;
    line-height: 1.55;
  }
}

/* Premium customer order progress query page */
.customer-luxury-shell {
  --cq-dark: #161412;
  --cq-dark-2: #26211d;
  --cq-dark-3: #3a332d;
  --cq-bg: #f8f5f1;
  --cq-bg-soft: #fbfaf8;
  --cq-panel: #ffffff;
  --cq-text: #1f2329;
  --cq-muted: #6b7280;
  --cq-line: #ece4da;
  --cq-orange: #ff7a00;
  --cq-orange-deep: #ff6a00;
  --cq-orange-soft: #fff1e3;
  --cq-shadow: 0 28px 80px rgba(70, 55, 40, .16);
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--cq-text);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,122,0,.08), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--cq-bg) 46%, var(--cq-bg-soft) 100%);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.customer-luxury-shell svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.customer-luxury-shell .customer-hero {
  position: relative;
  box-sizing: border-box;
  min-height: 520px;
  padding: 48px clamp(22px, 6vw, 82px) 160px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 34%, rgba(255,230,200,.22), transparent 24%),
    linear-gradient(105deg, rgba(22,20,18,.98) 0%, rgba(38,33,29,.93) 54%, rgba(58,51,45,.9) 100%);
}

.customer-luxury-shell .customer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .23;
  background:
    repeating-radial-gradient(ellipse at 38% 7%, transparent 0 34px, rgba(255,255,255,.16) 35px, transparent 36px),
    linear-gradient(100deg, transparent 0 45%, rgba(255,122,0,.16) 72%, transparent 100%);
}

.customer-luxury-shell .customer-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 98px;
  background: linear-gradient(0deg, rgba(255,122,0,.28), transparent 58%);
  filter: blur(18px);
  transform: translateY(40px);
}

.customer-ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.08);
}

.customer-ambient-a {
  width: 680px;
  height: 680px;
  left: 24%;
  top: -280px;
}

.customer-ambient-b {
  width: 520px;
  height: 520px;
  right: -120px;
  bottom: -210px;
}

.customer-room-scene {
  position: absolute;
  right: clamp(10px, 5vw, 86px);
  bottom: 44px;
  width: min(50vw, 680px);
  height: 360px;
  opacity: .64;
}

.room-wall {
  position: absolute;
  inset: 0 0 46px 18%;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  background-size: 92px 100%;
  border-left: 1px solid rgba(255,255,255,.08);
}

.room-shelf {
  position: absolute;
  right: 0;
  top: 0;
  width: 112px;
  bottom: 48px;
  background: rgba(0,0,0,.16);
  border-left: 1px solid rgba(255,255,255,.08);
}

.room-shelf span {
  display: block;
  height: 33%;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.room-sofa {
  position: absolute;
  right: 96px;
  bottom: 58px;
  width: 310px;
  height: 82px;
  border-radius: 42px 42px 16px 16px;
  background: linear-gradient(180deg, rgba(255,245,235,.7), rgba(126,105,87,.55));
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.room-sofa::before,
.room-sofa::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 82px;
  height: 42px;
  border-radius: 18px;
  background: rgba(22,20,18,.48);
}

.room-sofa::before { left: 34px; }
.room-sofa::after { right: 48px; }

.room-table {
  position: absolute;
  right: 300px;
  bottom: 32px;
  width: 156px;
  height: 34px;
  border-radius: 50%;
  background: rgba(240,220,196,.56);
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.room-lamp {
  position: absolute;
  right: 474px;
  bottom: 52px;
  width: 2px;
  height: 96px;
  background: rgba(255,205,150,.4);
}

.room-lamp::before {
  content: "";
  position: absolute;
  left: -28px;
  top: -28px;
  width: 58px;
  height: 30px;
  border-radius: 50% 50% 8px 8px;
  background: rgba(255,190,120,.22);
  box-shadow: 0 0 44px rgba(255,122,0,.28);
}

.customer-luxury-shell .customer-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 42px;
}

.customer-wordmark {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
}

.customer-wordmark span {
  color: #f8f1e7;
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 800;
  letter-spacing: 4px;
}

.customer-wordmark strong {
  color: var(--cq-orange);
  font-size: clamp(24px, 2.3vw, 36px);
  letter-spacing: 2px;
}

.customer-slogan {
  margin: 12px 0 42px;
  color: rgba(255,255,255,.78);
  letter-spacing: 3px;
}

.customer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #83d5ff;
  font-weight: 700;
  margin-bottom: 24px;
}

.customer-luxury-shell .customer-hero h1 {
  margin: 0;
  color: #fff8ec;
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 1px;
}

.customer-lead {
  margin: 22px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(17px, 1.5vw, 22px);
}

.customer-luxury-shell .customer-brand-intro {
  margin-top: 14px;
  color: rgba(255,255,255,.78);
  font-size: clamp(16px, 1.35vw, 20px);
}

.customer-luxury-shell .customer-contact {
  display: grid;
  gap: 20px;
  padding-top: 18px;
  text-align: left;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.customer-contact div,
.customer-contact button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.customer-contact button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.customer-contact button:hover {
  color: var(--cq-orange);
}

.customer-luxury-shell .customer-main {
  max-width: 1200px;
  margin: -108px auto 0;
  padding: 0 24px 64px;
  gap: 34px;
}

.customer-luxury-shell .search-card {
  position: relative;
  z-index: 3;
  padding: 34px 36px 0;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(255,255,255,.96);
  box-shadow: var(--cq-shadow);
  overflow: hidden;
}

.search-card-head h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
}

.search-card-head p {
  margin: 0;
  color: var(--cq-muted);
  font-size: 16px;
}

.customer-luxury-shell .search-line {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
}

.customer-search-input {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border: 1px solid rgba(255,122,0,.5);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.customer-search-input:focus-within {
  border-color: var(--cq-orange);
  box-shadow: 0 0 0 5px rgba(255,122,0,.12);
}

.customer-search-input svg {
  color: #a6abb3;
  width: 24px;
  height: 24px;
}

.customer-search-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 20px;
  background: transparent;
}

.customer-search-button {
  min-height: 62px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cq-orange), var(--cq-orange-deep));
  box-shadow: 0 18px 34px rgba(255,106,0,.26);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.customer-search-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 24px 44px rgba(255,106,0,.32);
}

.customer-message {
  margin: 16px 0 0;
  font-weight: 700;
}

.query-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 34px -36px 0;
  padding: 26px 34px;
  border-top: 1px solid var(--cq-line);
  background: linear-gradient(180deg, #fff, #fcfaf7);
}

.query-benefits article {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  padding: 0 26px;
  border-right: 1px solid var(--cq-line);
}

.query-benefits article:last-child {
  border-right: 0;
}

.query-benefits article > span,
.query-step > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--cq-orange);
  background: var(--cq-orange-soft);
  border: 1px solid #f5dcc8;
}

.query-benefits h3,
.query-step h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.query-benefits p,
.query-step p {
  margin: 0;
  color: var(--cq-muted);
}

.query-steps {
  padding-top: 2px;
}

.query-steps h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 24px;
  font-size: 24px;
}

.query-steps h2 span {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cq-orange), transparent);
}

.query-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px;
}

.query-step {
  position: relative;
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--cq-line);
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 32px rgba(70,55,40,.07);
}

.query-step:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -34px;
  color: var(--cq-orange);
  font-size: 28px;
}

.query-step em {
  color: var(--cq-orange-deep);
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
}

.customer-result-card {
  border-radius: 24px;
  border: 1px solid var(--cq-line);
  background: rgba(255,255,255,.96);
  box-shadow: var(--cq-shadow);
  padding: 28px;
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.result-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.result-head p {
  margin: 0;
  color: var(--cq-muted);
}

.result-head span {
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--cq-orange-soft);
  color: var(--cq-orange-deep);
  font-weight: 800;
}

.result-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 26px;
}

.result-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #a1a1aa;
  font-weight: 700;
}

.result-step::before {
  content: "";
  position: absolute;
  left: -50%;
  top: 17px;
  width: 100%;
  height: 3px;
  background: #e7e2dc;
  z-index: 0;
}

.result-step:first-child::before {
  display: none;
}

.result-step.done::before,
.result-step.current::before {
  background: var(--cq-orange);
}

.result-step i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ece8e2;
  color: #7c7c84;
  font-style: normal;
}

.result-step.done i,
.result-step.current i {
  background: var(--cq-orange);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255,122,0,.24);
}

.result-step.current span {
  color: var(--cq-orange-deep);
}

.result-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
}

.result-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-luxury-shell .info-item {
  border-radius: 14px;
  border-color: var(--cq-line);
  background: #fffdfb;
  padding: 14px 16px;
  font-weight: 800;
}

.visible-files {
  border: 1px solid var(--cq-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fff9f2);
  padding: 18px;
}

.result-content > .visible-files:not(.customer-files-real) {
  display: none;
}

.visible-files h3 {
  margin: 0 0 14px;
}

.visible-files > div,
.visible-file-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--cq-line);
}

.visible-file-item {
  align-items: center;
}

.visible-file-item div {
  min-width: 0;
}

.visible-file-item b {
  display: block;
  color: var(--cq-text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.visible-file-item span,
.visible-file-item p,
.visible-file-empty em {
  color: var(--cq-muted);
  font-size: 13px;
  line-height: 1.5;
}

.visible-file-item p {
  margin: 4px 0 0;
}

.visible-file-item a {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 122, 0, .32);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--cq-orange-deep);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: #fff8f0;
}

.visible-file-item a:hover {
  background: var(--cq-orange);
  color: #fff;
}

.visible-file-empty {
  display: grid !important;
  justify-content: start !important;
}

.visible-files strong {
  color: #229a57;
}

.visible-files em {
  color: var(--cq-orange-deep);
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 900px) {
  .customer-luxury-shell .customer-hero {
    min-height: auto;
    padding: 30px 20px 124px;
  }

  .customer-luxury-shell .customer-hero-inner {
    grid-template-columns: 1fr;
  }

  .customer-room-scene {
    opacity: .18;
    width: 100vw;
    right: -40vw;
  }

  .customer-luxury-shell .customer-contact {
    font-size: 15px;
    padding-top: 0;
  }

  .customer-luxury-shell .customer-main {
    margin-top: -82px;
    padding: 0 16px 42px;
  }

  .customer-luxury-shell .search-card {
    border-radius: 24px;
    padding: 24px 20px 0;
  }

  .customer-luxury-shell .search-line,
  .query-benefits,
  .query-step-grid,
  .result-content,
  .result-info-grid {
    grid-template-columns: 1fr;
  }

  .query-benefits {
    margin-left: -20px;
    margin-right: -20px;
    padding: 18px 20px;
  }

  .query-benefits article {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--cq-line);
    padding: 18px 0;
  }

  .query-benefits article:last-child {
    border-bottom: 0;
  }

  .query-step-grid {
    gap: 16px;
  }

  .query-step:not(:last-child)::after {
    display: none;
  }

  .result-progress {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .result-step {
    display: flex;
    justify-content: flex-start;
  }

  .result-step::before {
    display: none;
  }

  .visible-file-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .visible-file-item a {
    width: 100%;
    text-align: center;
  }
}

/* Cross-browser and zoom resilience */
.layout,
.main,
.panel,
.split,
.topbar,
.table-wrap,
.order-card,
.detail-panel,
.customer-shell,
.customer-main,
.search-card {
  min-width: 0;
}

.topbar,
.panel-head,
.row-actions,
.btn-row {
  flex-wrap: wrap;
}

.topbar {
  max-width: 100%;
}

.topbar > * {
  min-width: 0;
}

.topbar > div:first-child {
  flex: 1 1 260px;
}

.topbar h1,
.panel-head h2,
.side-brand b,
.order-card-main b,
.order-card-main span,
.field label,
td,
th {
  overflow-wrap: anywhere;
}

.stats-row {
  flex: 1 1 360px;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card {
  min-width: 0;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: max-content;
  min-width: min(980px, calc(100vw - 32px));
}

.filters {
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
}

.filters .filter-action {
  min-width: 0;
}

.btn,
.customer-search-button {
  white-space: normal;
}

@media (max-width: 1100px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-card {
    order: -1;
    width: min(520px, calc(100vw - 32px));
    justify-self: center;
    margin: 18px 16px 0;
  }

  .login-page-shell .login-panel {
    order: -1;
    width: 100%;
    padding: 18px 16px 0;
  }

  .login-page-shell .login-card {
    width: min(560px, 100%);
    min-height: auto;
  }

  .brand-hero {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .login-page-shell .brand-panel {
    min-height: auto;
  }

  .brand-hero h1 {
    max-width: 780px;
  }

  .layout {
    grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
  }

  .sidebar {
    padding: 16px 12px;
  }

  .topbar {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .brand-hero {
    min-height: auto;
    padding: 28px 18px;
  }

  .auth-card {
    width: auto;
    max-width: calc(100vw - 28px);
    margin: 14px;
    padding: 22px 18px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-head .btn,
  .panel-head button {
    width: 100%;
  }

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

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

}

@media (max-width: 420px) {
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .filters {
    padding-left: 14px;
    padding-right: 14px;
  }

  .customer-luxury-shell .customer-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .customer-luxury-shell .search-card {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Showroom-style login page */
.login-page-shell {
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  padding: 54px clamp(28px, 7.5vw, 150px) 42px clamp(28px, 8.5vw, 160px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03) 0 52%, rgba(0,0,0,.08) 52% 100%),
    url("/assets/login-mtds-bg.png") center / cover no-repeat,
    #1c2024;
}

.login-page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 26%, rgba(0,0,0,.16)),
    radial-gradient(circle at 74% 48%, rgba(0,0,0,.08), transparent 32%);
  mask-image: none;
}

.login-page-shell::after {
  display: none;
}

.login-page-shell .ambient-ring,
.login-page-shell .login-hero-copy,
.login-page-shell .feature-grid,
.login-page-shell .value-strip {
  display: none;
}

.login-page-shell .brand-panel {
  min-height: 100%;
  justify-content: flex-start;
  padding: 0;
  z-index: 1;
}

.login-page-shell .login-brand-header {
  position: relative;
  margin: 0;
  width: max-content;
  padding-top: 2px;
}

.login-page-shell .login-brand-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;
  width: 38px;
  height: 3px;
  background: var(--login-accent);
}

.login-page-shell .login-wordmark {
  align-items: baseline;
  gap: 10px;
}

.login-page-shell .login-wordmark span {
  color: rgba(34,36,38,.82);
  font-size: clamp(27px, 2.2vw, 36px);
  letter-spacing: -1px;
}

.login-page-shell .login-wordmark strong {
  color: var(--login-accent);
  font-size: clamp(18px, 1.2vw, 22px);
}

.login-page-shell .login-brand-header p {
  display: none;
}

.login-page-shell .interior-scene {
  display: none;
}

.login-page-shell .login-panel {
  z-index: 2;
  justify-self: end;
  width: min(100%, 392px);
}

.login-page-shell .login-card {
  width: 100%;
  min-height: auto;
  padding: 30px 32px 26px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 6px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
}

.login-page-shell .login-heading h2 {
  font-size: 24px;
  text-align: center;
}

.login-page-shell .login-heading i {
  display: none;
}

.login-page-shell .login-heading p {
  margin: 10px 0 20px;
  text-align: center;
  font-size: 13px;
}

.login-page-shell .form-field {
  margin-top: 14px;
}

.login-page-shell .form-field label {
  margin-bottom: 7px;
  font-size: 14px;
}

.login-page-shell .input-wrap {
  height: 46px;
  border-radius: 4px;
  background: rgba(255,255,255,.94);
}

.login-page-shell .actions {
  gap: 10px;
  margin-top: 20px;
}

.login-page-shell .primary-button,
.login-page-shell .secondary-button {
  min-height: 46px;
  border-radius: 4px;
  font-size: 15px;
}

.login-page-shell .divider {
  margin: 16px 0 10px;
}

.login-page-shell .contact-block {
  text-align: center;
}

.login-page-shell .phone-row {
  justify-content: center;
}

.login-page-shell .phone-row strong {
  font-size: 20px;
}

.login-copyright {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  color: var(--login-accent);
  font-size: 11px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255,255,255,.7);
}

@media (max-width: 1100px) {
  .login-page-shell {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 30px 18px 50px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.28), rgba(22,24,28,.42)),
      url("/assets/login-mtds-bg.png") center / cover no-repeat,
      #1c2024;
  }

  .login-page-shell .brand-panel {
    position: fixed;
    left: 22px;
    top: 24px;
    min-height: 0;
  }

  .login-page-shell .login-panel {
    order: 0;
    justify-self: center;
    padding: 0;
  }
}

@media (max-width: 560px) {
  .login-page-shell {
    align-items: start;
    padding-top: 86px;
  }

  .login-page-shell .brand-panel {
    left: 20px;
    top: 24px;
  }

  .login-page-shell .login-wordmark span {
    font-size: 26px;
  }

  .login-page-shell .login-card {
    padding: 24px 20px 22px;
  }
}
