/* ==========================================================================
   厨玛特 CHUMATE · 售后服务管理平台  —  Admin Dashboard Stylesheet
   Premium / luxury visual system : deep navy · champagne gold · warm ivory
   ========================================================================== */

:root {
  /* Deep navy */
  --navy-900: #0B1E36;
  --navy-800: #0E2340;
  --navy-700: #16304F;
  --navy-600: #1E3E62;
  --navy-500: #2C567F;

  /* Champagne gold */
  --gold-600: #9C7A3C;
  --gold-500: #C6A15B;
  --gold-400: #D4B273;
  --gold-300: #E8CE96;
  --gold-200: #F0DFC0;
  --gold-100: #F7EFDF;
  --gold-050: #FBF6EC;

  /* Warm neutrals */
  --ivory: #F7F4EE;
  --ivory-2: #FBF9F5;
  --white: #FFFFFF;
  --ink: #1A2433;
  --muted: #6B7686;
  --muted-2: #9AA3AE;

  --line: #E8E2D6;
  --line-soft: #F0EBE1;

  --shadow-sm: 0 3px 14px rgba(14, 35, 64, .05);
  --shadow: 0 8px 32px rgba(14, 35, 64, .06);
  --shadow-lg: 0 18px 56px rgba(11, 30, 54, .16);
  --shadow-gold: 0 10px 34px rgba(198, 161, 91, .18);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --font-cn: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans CJK SC', sans-serif;
  --font-serif: Georgia, 'Times New Roman', 'Songti SC', serif;

  --sidebar-w: 250px;
  --topbar-h: 72px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-cn);
  color: var(--ink);
  background: var(--ivory);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #DCD3C2; border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-400); background-clip: content-box; }

.serif { font-family: var(--font-serif); }
.gold { color: var(--gold-500); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.center { text-align: center; }
.right { text-align: right; }

/* Small caps / eyebrow labels */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.eyebrow-light { color: var(--gold-300); }

/* ==========================================================================
   LOGIN  — full screen luxury split
   ========================================================================== */

#login-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--ivory-2);
}

.login-left {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 18% -8%, rgba(44, 86, 127, .40), transparent 62%),
    radial-gradient(700px 700px at 100% 110%, rgba(198, 161, 91, .14), transparent 58%),
    linear-gradient(158deg, #0E2340 0%, #0B1E36 58%, #08172A 100%);
  color: #F5EFE2;
  padding: 64px 72px 48px;
  display: flex;
  flex-direction: column;
}
.login-left::before {
  /* subtle gold hairline frame */
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(198, 161, 91, .22);
  border-radius: 4px;
  pointer-events: none;
}
.login-left::after {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  right: -260px; bottom: -320px;
  border: 1px solid rgba(198, 161, 91, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(198, 161, 91, .035), 0 0 0 140px rgba(198, 161, 91, .025);
  pointer-events: none;
}
.login-brand { position: relative; z-index: 1; }
.brand-wordmark {
  font-size: 40px; font-weight: 900; letter-spacing: .16em;
  color: #F5EFE2; line-height: 1.3; white-space: nowrap;
}
.brand-wordmark sup {
  font-size: 13px; font-weight: 700; color: var(--gold-400);
  vertical-align: super; letter-spacing: 0; margin-left: 3px;
  font-family: Georgia, serif;
}
.login-caption {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-family: var(--font-serif);
}

.login-hero {
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-bottom: auto;
  max-width: 600px;
  animation: fadeUp .8s .15s both;
}
.login-hero h1 {
  /* 避免 1440–1920px 桌面宽度下末字「台」单字悬挂：
     字号随视口收敛、字距收紧，并强制单行（左栏仅在 >980px 可见，安全）。 */
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 0 0 22px;
  color: #F7F1E4;
  white-space: nowrap;
}
.login-hero h1 .dot { color: var(--gold-400); margin: 0 .18em; }
.login-rule {
  width: 64px; height: 2px;
  background: linear-gradient(90deg, var(--gold-400), rgba(212,178,115,0));
  border: none; margin: 0 0 22px;
}
.login-slogan {
  font-size: 15px;
  color: #B9C7D8;
  letter-spacing: .08em;
  margin: 0 0 40px;
  font-weight: 300;
}
.login-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.login-features li { display: flex; align-items: flex-start; gap: 16px; }
.login-features .fi {
  flex: none;
  width: 38px; height: 38px;
  border: 1px solid rgba(212, 178, 115, .45);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--gold-300);
  font-size: 17px;
  background: rgba(198, 161, 91, .08);
}
.login-features b { display: block; font-weight: 500; font-size: 15px; color: #EFE7D6; letter-spacing: .04em; }
.login-features span { font-size: 12.5px; color: #93A6BC; }
.login-foot {
  position: relative; z-index: 1;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--gold-400);
  text-transform: uppercase;
  padding-top: 22px;
  border-top: 1px solid rgba(198, 161, 91, .22);
}

.login-right {
  display: grid;
  place-items: center;
  padding: 48px;
  position: relative;
  background:
    radial-gradient(600px 500px at 85% 10%, rgba(198,161,91,.08), transparent 60%),
    var(--ivory-2);
}
.login-card {
  width: 100%;
  max-width: 430px;
  animation: fadeUp .8s .25s both;
}
.login-card .lc-eyebrow { font-family: var(--font-serif); letter-spacing: .28em; font-size: 11px; color: var(--gold-500); text-transform: uppercase; }
.login-card h2 { font-size: 29px; font-weight: 600; letter-spacing: .05em; margin: 12px 0 6px; }
.login-card .lc-sub { color: var(--muted); font-size: 13px; margin: 0 0 34px; }
.login-card .lc-sub b { color: var(--navy-700); font-weight: 600; }

.role-tabs { display: flex; gap: 10px; margin-bottom: 26px; }
.role-tab {
  flex: 1;
  padding: 11px 6px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: .06em;
  transition: all .22s ease;
}
.role-tab:hover { border-color: var(--gold-400); color: var(--gold-600); }
.role-tab.active {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--gold-200);
  border-color: var(--navy-700);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-bottom: 9px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  color: var(--ink);
  font-size: 14px;
}
.input::placeholder, .textarea::placeholder { color: #B4B9C2; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, .14);
}
.textarea { resize: vertical; min-height: 92px; line-height: 1.7; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7686' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input.sm, .select.sm { padding: 8px 11px; font-size: 13px; }
.input[type=date] { min-height: 42px; }

.btn-login {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--gold-200);
  font-size: 15px;
  letter-spacing: .24em;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(11, 30, 54, .22);
  transition: all .25s ease;
}
.btn-login:hover { color: #FFF8E9; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 30, 54, .3); }
.btn-login:disabled { opacity: .6; transform: none; }
.login-error {
  min-height: 20px;
  color: #A4443C;
  font-size: 12.5px;
  margin-top: 12px;
  text-align: center;
}
.login-demo {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px dashed var(--gold-400);
  border-radius: var(--radius-sm);
  background: var(--gold-050);
  font-size: 12px;
  color: #7A6A4C;
  line-height: 1.9;
}
.login-demo b { color: var(--gold-600); }
.login-demo code { font-family: var(--font-serif); color: var(--navy-700); background: #fff; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }

/* ==========================================================================
   SHELL
   ========================================================================== */

#app-shell { display: none; min-height: 100vh; }
#app-shell.on { display: block; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 40;
  background:
    radial-gradient(420px 300px at 0% 0%, rgba(44, 86, 127, .28), transparent 60%),
    linear-gradient(175deg, #102742 0%, #0B1E36 55%, #08172A 100%);
  border-right: 1px solid rgba(198, 161, 91, .28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212,178,115,.5) 30%, rgba(212,178,115,.15) 70%, transparent);
  pointer-events: none;
}
.sb-brand { padding: 30px 26px 10px; }
.sb-brand .brand-wordmark { font-size: 28px; letter-spacing: .14em; }
.sb-caption {
  margin: 10px 0 0 4px;
  font-family: var(--font-serif);
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.sb-rule { height: 1px; margin: 22px 26px 8px; background: linear-gradient(90deg, rgba(212,178,115,.55), rgba(212,178,115,.05)); }

.sb-nav { flex: 1; overflow-y: auto; padding: 6px 14px 24px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(212,178,115,.25); background-clip: content-box; }
.sb-group {
  font-size: 10px;
  letter-spacing: .26em;
  color: rgba(169, 187, 208, .55);
  text-transform: uppercase;
  padding: 20px 14px 8px;
  font-weight: 600;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 11px 14px;
  margin: 2px 0;
  border: none;
  background: transparent;
  color: #B9C7D8;
  font-size: 14px;
  letter-spacing: .04em;
  border-radius: 9px;
  text-align: left;
  transition: all .2s ease;
}
.nav-item .ni { font-size: 16px; width: 20px; text-align: center; filter: grayscale(.2); }
.nav-item:hover { background: rgba(255,255,255,.05); color: #F3E9D5; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(198,161,91,.20), rgba(198,161,91,.03));
  color: var(--gold-200);
  font-weight: 600;
}
.nav-item.active::before {
  content: "";
  position: absolute; left: -14px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  box-shadow: 0 0 12px rgba(212,178,115,.7);
}
.nav-item .nav-badge {
  margin-left: auto;
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--gold-300);
  background: rgba(198,161,91,.16);
  padding: 1px 8px;
  border-radius: 20px;
}
.nav-item.nav-parent { cursor: default; color: #D9E4F0; font-weight: 600; }
.nav-item.nav-parent:hover { background: transparent; color: #D9E4F0; }
.nav-item.nav-parent.active { background: transparent; }
.nav-item.nav-parent.active::before { display: none; }
.nav-item.nav-child { padding-left: 34px; font-size: 13px; color: #9FB0C4; }
.nav-item.nav-child .ni { font-size: 13px; width: 18px; }
.nav-item.nav-child:hover { color: #F3E9D5; }
.nav-item.nav-child.active::before { left: -14px; }
.sidebar.collapsed .nav-item.nav-child { display: none; }
@media (max-width: 1200px) { .nav-item.nav-child { display: none; } .sidebar.open .nav-item.nav-child { display: flex; } }
.sb-bottom { padding: 16px 26px 22px; border-top: 1px solid rgba(255,255,255,.06); }
.sb-bottom .sb-status { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #8FA2B8; letter-spacing: .06em; }
.sb-bottom .sb-copy { margin-top: 8px; font-family: var(--font-serif); font-size: 10px; letter-spacing: .18em; color: rgba(212,178,115,.6); }

.main-wrap { margin-left: var(--sidebar-w); min-height: 100vh; }

.topbar {
  height: var(--topbar-h);
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 34px;
  background: rgba(251, 249, 245, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .hamburger { display: none; border: none; background: transparent; font-size: 20px; color: var(--navy-800); padding: 6px; }
.crumb { font-size: 13px; color: var(--muted); letter-spacing: .05em; }
.crumb b { color: var(--ink); font-weight: 600; }
.crumb .sep { color: var(--gold-500); margin: 0 9px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.tb-date { font-size: 12.5px; color: var(--muted); letter-spacing: .05em; }
.health { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #3E7C68; background: rgba(62,124,104,.08); padding: 6px 13px; border-radius: 20px; border: 1px solid rgba(62,124,104,.18); }
.health .dot { width: 7px; height: 7px; border-radius: 50%; background: #58A98C; box-shadow: 0 0 0 3px rgba(88,169,140,.18); animation: pulse 2.4s infinite; }
.health.bad { color: #A4443C; background: rgba(164,68,60,.08); border-color: rgba(164,68,60,.2); }
.health.bad .dot { background: #C2655C; box-shadow: 0 0 0 3px rgba(194,101,92,.18); }
.bell { position: relative; border: none; background: transparent; font-size: 18px; color: var(--navy-700); padding: 6px; }
.bell .unread { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 10px; background: var(--gold-500); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-family: var(--font-serif); }
.tb-user { display: flex; align-items: center; gap: 11px; padding-left: 20px; border-left: 1px solid var(--line); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-400), var(--gold-600));
  color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold-300);
  flex: none;
}
.avatar.sm { width: 30px; height: 30px; font-size: 12px; box-shadow: none; }
.avatar.navy { background: linear-gradient(150deg, #2C567F, #0B1E36); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(44,86,127,.35); }
.tb-user .u-name { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.tb-user .u-role { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.btn-logout { border: none; background: transparent; color: var(--muted); font-size: 12.5px; padding: 6px; margin-left: 2px; }
.btn-logout:hover { color: #A4443C; }

.page { padding: 30px 34px 60px; max-width: 1600px; animation: fadeUp .45s both; }
.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.module-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.module-tab {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--white); color: var(--muted);
  border-radius: 100px; padding: 10px 22px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .2s ease; letter-spacing: .04em;
}
.module-tab .mt-ic { font-size: 14px; }
.module-tab:hover { border-color: var(--gold-400); color: var(--navy-800); }
.module-tab.on {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-200); border-color: var(--navy-800);
  box-shadow: 0 6px 18px rgba(14,35,64,.18);
}
.page-head .ph-text h1 { font-size: 25px; font-weight: 600; letter-spacing: .05em; margin: 4px 0 4px; }
.page-head .ph-text p { margin: 0; color: var(--muted); font-size: 13px; }
.page-head .ph-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy-700);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: all .2s ease;
}
.btn:hover { border-color: var(--gold-400); color: var(--gold-600); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--gold-200);
  border-color: var(--navy-700);
  box-shadow: 0 6px 18px rgba(11,30,54,.16);
}
.btn.primary:hover { color: #FFF8E9; box-shadow: 0 10px 26px rgba(11,30,54,.26); transform: translateY(-1px); }
.btn.gold-outline { border-color: var(--gold-500); color: var(--gold-600); background: transparent; }
.btn.gold-outline:hover { background: var(--gold-050); }
.btn.gold-fill { background: linear-gradient(160deg, var(--gold-400), var(--gold-600)); color: #fff; border-color: transparent; }
.btn.gold-fill:hover { color: #fff; box-shadow: var(--shadow-gold); }
.btn.sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn.xs { padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
.btn.danger { color: #A4443C; }
.btn.danger:hover { border-color: #C98B84; background: #FBF1F0; }
.btn-link { border: none; background: transparent; color: var(--navy-600); padding: 2px 4px; font-size: 12.5px; }
.btn-link:hover { color: var(--gold-600); text-decoration: underline; }
.btn-link.danger { color: #A4443C; }
.btn-group { display: inline-flex; gap: 2px; }

/* ==========================================================================
   CARDS / PANELS
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; gap: 14px; padding: 19px 24px; border-bottom: 1px solid var(--line-soft); }
.card-head h3 { font-size: 15.5px; font-weight: 600; letter-spacing: .04em; margin: 0; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-head .ch-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-head .ch-mark { width: 4px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, var(--gold-300), var(--gold-600)); }

.grid { display: grid; gap: 20px; }
.kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: 1.75fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 1.75fr; }
.span2 { grid-column: span 2; }

/* KPI cards */
.kpi {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.kpi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300), transparent); }
.kpi:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(14,35,64,.10); }
.kpi.dispatch-tab { cursor: pointer; }
.kpi.dispatch-tab.active { border-color: var(--gold-500); box-shadow: 0 0 0 2px rgba(198,161,91,.35), var(--shadow); }
.kpi.dispatch-tab.active::before { height: 3px; }
.kpi.dispatch-tab .kpi-foot { color: var(--gold-600); }
.kpi .kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kpi .kpi-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; font-family: var(--font-serif); }
.kpi .kpi-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: var(--gold-050);
  border: 1px solid var(--gold-100);
  display: grid; place-items: center;
  font-size: 17px; color: var(--gold-600);
}
.kpi .kpi-num { font-family: var(--font-serif); font-size: 32px; line-height: 1.15; margin-top: 12px; color: var(--navy-900); letter-spacing: .01em; }
.kpi .kpi-num .unit { font-size: 15px; color: var(--muted); margin-left: 4px; font-family: var(--font-cn); }
.kpi .kpi-foot { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.kpi .kpi-foot .up { color: #3E7C68; }
.kpi .kpi-foot .down { color: #A4443C; }

/* ==========================================================================
   CHARTS (hand-drawn SVG)
   ========================================================================== */
.chart-wrap { position: relative; width: 100%; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart-svg .axis-label { fill: var(--muted-2); font-size: 11px; font-family: var(--font-serif); }
.chart-svg .line-path { fill: none; stroke: var(--gold-500); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 3px 5px rgba(198,161,91,.28)); }
.chart-svg .dot { fill: #fff; stroke: var(--gold-500); stroke-width: 2; cursor: pointer; transition: r .15s; }
.chart-svg .dot:hover { r: 6; fill: var(--gold-500); }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--navy-900); color: #F5EFE2;
  padding: 8px 12px; border-radius: 8px; font-size: 12px;
  box-shadow: var(--shadow-lg); white-space: nowrap;
  border: 1px solid rgba(212,178,115,.4);
  transform: translate(-50%, -130%);
  opacity: 0; transition: opacity .15s;
}
.chart-tip.on { opacity: 1; }
.chart-tip b { color: var(--gold-300); font-family: var(--font-serif); font-size: 14px; }

.hbar-row { display: grid; grid-template-columns: 86px 1fr 46px; align-items: center; gap: 12px; margin: 13px 0; font-size: 12.5px; }
.hbar-row .hb-label { color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 9px; background: #F1ECE2; border-radius: 20px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.hbar-fill.navy { background: linear-gradient(90deg, #2C567F, #1E3E62); }
.hbar-row .hb-val { font-family: var(--font-serif); color: var(--navy-800); font-weight: 600; text-align: right; }
.star-bar .hbar-fill { background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); }
.star-label { color: var(--gold-500); letter-spacing: 1px; font-size: 13px; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Distribution donut-ish simple */
.dist-mini { display: flex; flex-direction: column; gap: 4px; }

/* ==========================================================================
   TABLES
   ========================================================================== */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--ivory-2);
  white-space: nowrap;
}
table.tbl tbody td { padding: 15px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl tbody tr { transition: background .18s ease; }
table.tbl tbody tr:hover { background: linear-gradient(90deg, rgba(198,161,91,.08), rgba(198,161,91,.02)); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl td .t-main { font-weight: 600; color: var(--ink); }
table.tbl td .t-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
table.tbl .num { font-family: var(--font-serif); font-size: 15px; color: var(--navy-800); }
table.tbl .actions { white-space: nowrap; }
table.tbl .row-check { width: 16px; height: 16px; accent-color: var(--gold-500); cursor: pointer; }
.tbl-empty { text-align: center; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 11.5px; letter-spacing: .03em; white-space: nowrap; border: 1px solid transparent; }
.pill .pd { width: 6px; height: 6px; border-radius: 50%; }
.pill.gold { background: var(--gold-050); color: var(--gold-600); border-color: var(--gold-200); }
.pill.navy { background: rgba(44,86,127,.09); color: var(--navy-600); border-color: rgba(44,86,127,.18); }
.pill.green { background: rgba(62,124,104,.10); color: #3E7C68; border-color: rgba(62,124,104,.2); }
.pill.purple { background: rgba(122,107,168,.10); color: #7A6BA8; border-color: rgba(122,107,168,.2); }
.pill.gray { background: #F1F2F4; color: #7C8695; border-color: #E4E7EB; }
.pill.red { background: rgba(164,68,60,.09); color: #A4443C; border-color: rgba(164,68,60,.2); }
.pill.solid-gold { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: #fff; }
.pill.vip { background: linear-gradient(150deg, #23395A, #0B1E36); color: var(--gold-300); border-color: var(--gold-600); font-family: var(--font-serif); letter-spacing: .1em; }

/* Status text colors */
.st-待受理 { color: #B8863B; }
.st-已派单, .st-已接单, .st-维修中 { color: #2C567F; }
.st-待验收 { color: #7A6BA8; }
.st-已完成 { color: #3E7C68; }
.st-已取消 { color: #9AA3AE; }

.prio-紧急 { color: #A4443C; font-weight: 600; }
.prio-高 { color: #B8863B; font-weight: 600; }
.prio-普通 { color: var(--muted); }
.prio-低 { color: var(--muted-2); }

/* ==========================================================================
   TOOLBAR / FILTERS
   ========================================================================== */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 15px 18px; margin-bottom: 20px;
}
.toolbar .spacer { flex: 1; }
.search-box { position: relative; flex: 0 1 260px; min-width: 190px; }
.search-box .input { padding-left: 36px; }
.search-box::before { content: "🔍"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: .55; }
.toolbar .select { width: auto; min-width: 128px; }
.filter-label { font-size: 12px; color: var(--muted); white-space: nowrap; }

.toggle-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); font-size: 13px; color: var(--muted); cursor: pointer; user-select: none;
  transition: all .2s;
}
.toggle-chip:hover { border-color: var(--gold-400); }
.toggle-chip.on { background: var(--gold-050); border-color: var(--gold-400); color: var(--gold-600); font-weight: 600; }
.toggle-chip .sw { width: 30px; height: 17px; border-radius: 20px; background: #D9DDE3; position: relative; transition: background .2s; flex: none; }
.toggle-chip .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle-chip.on .sw { background: var(--gold-500); }
.toggle-chip.on .sw::after { left: 15px; }

/* Status chips row */
.chip-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.status-chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 22px;
  padding: 8px 16px; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.status-chip b { font-family: var(--font-serif); font-size: 14px; color: var(--navy-700); }
.status-chip:hover { border-color: var(--gold-400); }
.status-chip.on { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: var(--gold-200); border-color: var(--navy-700); }
.status-chip.on b { color: var(--gold-300); }

/* Summary strip */
.summary-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 20px; overflow: hidden;
}
.summary-strip .ss-item { flex: 1; min-width: 130px; padding: 15px 20px; border-right: 1px solid var(--line-soft); }
.summary-strip .ss-item:last-child { border-right: none; }
.summary-strip .ss-label { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.summary-strip .ss-val { font-family: var(--font-serif); font-size: 22px; color: var(--navy-900); margin-top: 3px; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 18px 4px 4px; font-size: 13px; }
.pagination .pg-info { margin-right: auto; color: var(--muted); }
.pg-btn { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; color: var(--navy-700); }
.pg-btn:hover:not(:disabled) { border-color: var(--gold-400); color: var(--gold-600); }
.pg-btn.on { background: var(--navy-800); color: var(--gold-200); border-color: var(--navy-800); }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ==========================================================================
   MODALS & DRAWERS
   ========================================================================== */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(9, 20, 36, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; pointer-events: none; }
.overlay.on { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed; z-index: 70; top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(.98);
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100vh - 60px);
  background: var(--ivory-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  opacity: 0; transition: all .28s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.modal.on { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.modal.wide { width: min(760px, calc(100vw - 36px)); }
.modal .m-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.modal .m-head h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: .04em; }
.modal .m-head .m-eyebrow { font-size: 10.5px; letter-spacing: .2em; color: var(--gold-500); text-transform: uppercase; font-family: var(--font-serif); }
.modal .m-close { margin-left: auto; border: none; background: transparent; font-size: 20px; color: var(--muted); line-height: 1; padding: 4px 8px; border-radius: 8px; }
.modal .m-close:hover { background: var(--ivory); color: var(--ink); }
.modal .m-body { padding: 24px 26px; overflow-y: auto; }
.modal .m-foot { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: 12px; color: var(--muted); margin: -4px 0 14px; }
.form-section-title { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); font-family: var(--font-serif); margin: 22px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); grid-column: 1 / -1; }

/* Tag input */
.tag-input { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 8px 10px; min-height: 44px; }
.tag-input:focus-within { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(198,161,91,.14); }
.tag-input .ti-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--gold-050); border: 1px solid var(--gold-200); color: var(--gold-600); padding: 3px 9px; border-radius: 20px; font-size: 12px; }
.tag-input .ti-tag button { border: none; background: transparent; color: var(--gold-600); font-size: 13px; line-height: 1; padding: 0; }
.tag-input input { border: none; outline: none; flex: 1; min-width: 110px; background: transparent; padding: 4px; }

/* Drawer */
.drawer {
  position: fixed; z-index: 70; top: 0; right: 0; bottom: 0;
  width: 520px; max-width: 100vw;
  background: var(--ivory-2);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 56px rgba(11,30,54,.18);
  transform: translateX(102%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  pointer-events: none;
}
.drawer.on { transform: translateX(0); pointer-events: auto; }
.drawer.wide { width: 620px; }
.drawer .d-head { padding: 24px 26px 20px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #F3E9D5; position: relative; }
.drawer .d-head .d-eyebrow { font-family: var(--font-serif); font-size: 10.5px; letter-spacing: .22em; color: var(--gold-300); text-transform: uppercase; }
.drawer .d-head h2 { margin: 8px 0 6px; font-size: 21px; font-weight: 600; letter-spacing: .04em; }
.drawer .d-head .d-sub { font-size: 12.5px; color: #AFC0D4; }
.drawer .d-close { position: absolute; top: 20px; right: 20px; border: 1px solid rgba(212,178,115,.35); background: rgba(255,255,255,.06); color: var(--gold-200); width: 32px; height: 32px; border-radius: 8px; font-size: 17px; }
.drawer .d-close:hover { background: rgba(255,255,255,.14); }
.drawer .d-body { flex: 1; overflow-y: auto; padding: 24px 26px 40px; }
.drawer .d-foot { padding: 14px 26px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: var(--white); }

.d-section { margin-bottom: 26px; }
.d-section h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); font-family: var(--font-serif); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.d-section h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.kv { min-width: 0; }
.kv .k { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.kv .v { font-size: 14px; color: var(--ink); margin-top: 3px; word-break: break-word; }
.kv .v.big { font-family: var(--font-serif); font-size: 18px; color: var(--navy-800); }
.info-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; }
.timeline li { position: relative; padding: 0 0 22px 26px; border-left: 1px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--gold-400); }
.timeline li.done::before { background: var(--gold-500); }
.timeline li .tl-time { font-size: 11.5px; color: var(--muted); font-family: var(--font-serif); }
.timeline li .tl-title { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 2px 0; }
.timeline li .tl-desc { font-size: 12.5px; color: var(--muted); }
.timeline li.pending { opacity: .6; }

/* Change logs mini timeline */
.mini-log { list-style: none; padding: 0; margin: 0; }
.mini-log li { padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.mini-log li:last-child { border-bottom: none; }
.mini-log .ml-time { font-family: var(--font-serif); color: var(--muted); font-size: 11px; }

/* Thumbnails */
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; border-radius: 8px; border: 1px solid var(--line); background: var(--ivory); display: grid; place-items: center; font-size: 26px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Confirm box */
.confirm-box { text-align: center; padding: 8px 6px; }
.confirm-box .cb-icon { font-size: 40px; }
.confirm-box h3 { margin: 12px 0 8px; font-size: 18px; }
.confirm-box p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* ==========================================================================
   REVIEWS (dedicated rich module)
   ========================================================================== */
.review-hero {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 20px;
}
.review-hero .rh-score {
  padding: 30px 34px; text-align: center;
  background: linear-gradient(165deg, var(--navy-800), var(--navy-900));
  color: #F5EFE2; position: relative;
}
.review-hero .rh-score::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(212,178,115,.22); border-radius: 8px; pointer-events: none; }
.rh-score .rh-eyebrow { font-family: var(--font-serif); font-size: 10.5px; letter-spacing: .24em; color: var(--gold-300); text-transform: uppercase; }
.rh-score .rh-num { font-family: var(--font-serif); font-size: 66px; line-height: 1.1; margin: 6px 0 2px; color: #FFF6E4; }
.rh-score .rh-stars { color: var(--gold-400); font-size: 20px; letter-spacing: 4px; }
.rh-score .rh-total { font-size: 12px; color: #9FB2C8; margin-top: 10px; letter-spacing: .05em; }
.review-hero .rh-side { display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; gap: 0; }
.rh-metric { padding: 26px 22px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; justify-content: center; }
.rh-metric .rm-val { font-family: var(--font-serif); font-size: 30px; color: var(--navy-900); }
.rh-metric .rm-label { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; margin-top: 4px; }
.rh-dist { padding: 18px 24px; }
.rh-dist .hbar-row { grid-template-columns: 52px 1fr 34px; margin: 7px 0; gap: 9px; }

.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.review-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s;
  animation: fadeUp .4s both;
}
.review-card::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--gold-300), transparent 70%); opacity: 0; transition: opacity .2s; }
.review-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(14,35,64,.10); }
.review-card:hover::before { opacity: 1; }
.review-card.featured { border-color: var(--gold-300); }
.rc-top { display: flex; align-items: center; gap: 12px; }
.rc-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 600; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold-200); }
.rc-who { min-width: 0; }
.rc-who .rc-name { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rc-who .rc-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-featured { margin-left: auto; border: none; background: transparent; font-size: 18px; color: #D8CEBA; padding: 4px; }
.rc-featured.on { color: var(--gold-500); filter: drop-shadow(0 2px 4px rgba(198,161,91,.4)); }
.rc-stars { color: var(--gold-500); font-size: 17px; letter-spacing: 3px; margin: 14px 0 8px; }
.rc-stars .off { color: #DCD3C2; }
.rc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.rc-tag { font-size: 11px; color: var(--gold-600); background: var(--gold-050); border: 1px solid var(--gold-100); padding: 3px 9px; border-radius: 6px; }
.rc-quote { border-left: 3px solid var(--gold-400); background: var(--gold-050); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 13px; color: #4A5462; line-height: 1.85; position: relative; }
.rc-quote::before { content: "“"; font-family: var(--font-serif); font-size: 30px; color: var(--gold-300); position: absolute; top: -6px; left: 8px; opacity: .6; }
.rc-quote span { padding-left: 14px; display: block; }
.rc-reply { margin-top: 14px; background: #F6F8FA; border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: #56606E; line-height: 1.75; }
.rc-reply .rr-label { color: var(--gold-600); font-weight: 600; font-size: 11px; letter-spacing: .1em; margin-bottom: 4px; }
.rc-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.rc-foot .rcf-info { font-size: 11.5px; color: var(--muted); }
.rc-foot .rcf-actions { margin-left: auto; display: flex; gap: 6px; }

/* Latest review mini cards on dashboard */
.mini-review { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.mini-review:last-child { border-bottom: none; }
.mini-review .mr-top { display: flex; align-items: center; gap: 9px; }
.mini-review .mr-name { font-size: 13px; font-weight: 600; }
.mini-review .mr-stars { margin-left: auto; color: var(--gold-500); font-size: 13px; letter-spacing: 1px; }
.mini-review .mr-content { font-size: 12.5px; color: var(--muted); margin: 8px 0; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-review .mr-reply { font-size: 11.5px; color: #3E7C68; }

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; position: relative;
  transition: transform .22s, box-shadow .22s;
  animation: fadeUp .4s both;
}
.product-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300), transparent); }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(14,35,64,.11); }
.pc-visual { height: 138px; background: linear-gradient(160deg, #F3EFE6, #FBF9F5); display: grid; place-items: center; font-size: 62px; position: relative; border-bottom: 1px solid var(--line-soft); }
.pc-visual .pc-cat { position: absolute; top: 12px; left: 14px; font-size: 10.5px; letter-spacing: .12em; color: var(--gold-600); background: var(--white); border: 1px solid var(--gold-200); padding: 3px 10px; border-radius: 20px; }
.pc-visual .pc-status { position: absolute; top: 12px; right: 14px; }
.pc-body { padding: 18px 20px; }
.pc-name { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.pc-model { font-family: var(--font-serif); font-size: 12px; color: var(--muted); margin-top: 3px; }
.pc-sn { font-size: 11px; color: var(--muted-2); margin-top: 3px; font-family: var(--font-serif); letter-spacing: .04em; }
.pc-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.pc-price { font-family: var(--font-serif); font-size: 22px; color: var(--navy-900); }
.pc-price small { font-size: 12px; color: var(--muted); font-family: var(--font-cn); }
.pc-stock { font-size: 12px; color: var(--muted); }
.pc-stock b { font-family: var(--font-serif); font-size: 16px; color: var(--navy-800); }
.pc-stock.low b { color: #B8863B; }
.pc-customer { font-size: 11.5px; color: var(--muted); margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.pc-actions { display: flex; gap: 8px; padding: 0 20px 18px; }
.pc-actions .btn { flex: 1; }
.stock-adjust { display: flex; gap: 6px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.stock-adjust .input { padding: 6px 8px; text-align: center; }
.stock-adjust .btn { padding: 6px 10px; }

/* ==========================================================================
   DISPATCH
   ========================================================================== */
.dispatch-order { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.dispatch-order:last-child { border-bottom: none; }
.dispatch-order .do-main { flex: 1; min-width: 0; }
.dispatch-order .do-no { font-family: var(--font-serif); font-size: 13px; color: var(--navy-800); }
.dispatch-order .do-title { font-size: 13.5px; font-weight: 600; margin: 2px 0; }
.dispatch-order .do-meta { font-size: 11.5px; color: var(--muted); }
.eng-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.eng-card .ec-top { display: flex; align-items: center; gap: 12px; }
.eng-card .ec-name { font-size: 15px; font-weight: 600; }
.eng-card .ec-skills { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.eng-card .ec-stats { display: flex; justify-content: space-between; margin: 16px 0 7px; font-size: 12px; color: var(--muted); }
.eng-card .ec-stats b { font-family: var(--font-serif); color: var(--navy-800); font-size: 15px; }
.load-track { height: 8px; background: #F1ECE2; border-radius: 20px; overflow: hidden; }
.load-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--navy-500), var(--gold-500)); transition: width .7s; }
.load-fill.high { background: linear-gradient(90deg, #B8863B, #A4443C); }
.ec-status-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.rec-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--white); }
.rec-rank { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-size: 14px; flex: none; }
.rec-item .rec-main { flex: 1; }
.rec-item .rec-name { font-size: 14px; font-weight: 600; }
.rec-item .rec-reason { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rec-score { font-family: var(--font-serif); font-size: 22px; color: var(--gold-600); }

/* ==========================================================================
   SETTINGS
   ========================================================================== */
.settings-flow { display: flex; flex-direction: column; gap: 20px; }
.settings-row { display: grid; gap: 20px; align-items: start; }
.settings-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1280px) { .settings-row.two { grid-template-columns: 1fr; } }
.setting-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; align-self: start; }
.setting-block .sb-head { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.setting-block .sb-head .ic { color: var(--gold-600); }
.setting-block .sb-body { padding: 20px 22px; font-size: 13px; color: #4A5462; line-height: 1.9; }
.setting-block code { font-family: var(--font-serif); background: var(--gold-050); color: var(--navy-700); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--gold-100); }
.api-group { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.api-group summary { padding: 12px 16px; background: var(--ivory-2); cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; display: flex; align-items: center; gap: 10px; }
.api-group summary::-webkit-details-marker { display: none; }
.api-group summary::before { content: "▸"; color: var(--gold-500); transition: transform .2s; }
.api-group[open] summary::before { transform: rotate(90deg); }
.api-group .api-list { padding: 8px 16px 14px; font-size: 12px; }
.api-line { padding: 5px 0; border-bottom: 1px dashed var(--line-soft); font-family: var(--font-serif); }
.api-line:last-child { border-bottom: none; }
.api-line .m { display: inline-block; min-width: 48px; color: var(--gold-600); font-weight: 700; }
.api-line .p { color: var(--navy-700); }
/* 云端接口列表（系统设置）：方法徽标 + 可点击链接 */
.cloud-list .api-line {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  border-bottom: 1px dashed var(--line-soft);
  transition: background .18s ease;
}
.cloud-list .api-line.clickable { cursor: pointer; }
.cloud-list .api-line.clickable:hover { background: var(--gold-050); }
.cloud-list .api-line .m {
  min-width: 62px; text-align: center; font-size: 11px; font-weight: 700;
  border-radius: 100px; padding: 3px 0; letter-spacing: .5px;
}
.cloud-list .api-line .m.get { background: rgba(105,140,110,.14); color: #4F7A5C; }
.cloud-list .api-line .m.post { background: rgba(14,35,64,.10); color: var(--navy-800); }
.cloud-list .api-line .m.put { background: rgba(198,161,91,.20); color: #A8863F; }
.cloud-list .api-line .m.del { background: rgba(164,68,60,.12); color: #A4443C; }
.cloud-list .api-line .p { flex: 1; min-width: 0; word-break: break-all; font-size: 12px; }
.cloud-list .api-line .p.link { color: var(--gold-600); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(198,161,91,.4); text-underline-offset: 3px; }
.cloud-list .api-line .p.dim { color: var(--muted); }
.api-open { flex: none; font-size: 13px; color: var(--gold-600); text-decoration: none; width: 22px; text-align: center; }
.api-open.dim { color: var(--line); }
.cloud-list .api-line.clickable:hover .p.link { text-decoration-color: var(--gold-500); }
.prod-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--ivory-2); display: inline-flex; align-items: center; justify-content: center; }
.prod-thumb.prod-empty { color: var(--muted); font-size: 18px; opacity: .5; }
.prod-img { width: 180px; height: 180px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.img-upload { display: flex; align-items: flex-start; gap: 14px; }
.img-preview { width: 96px; height: 96px; border: 1px dashed var(--gold-300); border-radius: 10px; background: var(--ivory-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .img-empty { font-size: 11px; color: var(--muted); text-align: center; padding: 0 8px; }
.img-actions { display: flex; flex-direction: column; gap: 8px; }
.placement-grid { margin-bottom: 4px; }
.placement-card {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); padding: 16px 18px; cursor: pointer;
  transition: all .2s ease;
}
.placement-card:hover { border-color: var(--gold-400); box-shadow: 0 8px 24px rgba(14,35,64,.08); }
.placement-card.active { border-color: var(--gold-500); box-shadow: 0 0 0 2px rgba(198,161,91,.3), var(--shadow); }
.placement-card .pc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-050); border: 1px solid var(--gold-200); display: grid; place-items: center; font-size: 20px; flex: none; }
.placement-card .pc-main { flex: 1; min-width: 0; }
.placement-card .pc-name { font-size: 14px; font-weight: 600; color: var(--navy-900); }
.placement-card .pc-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.placement-card .pc-count { font-family: var(--font-serif); font-size: 24px; color: var(--navy-800); }
.placement-card .pc-count span { font-size: 12px; color: var(--muted); font-family: var(--font-cn); }
.placement-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.placement-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--white);
  border-radius: 100px; padding: 7px 14px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: all .18s ease; white-space: nowrap;
}
.placement-chip .pc-ic { font-size: 13px; }
.placement-chip .pc-n {
  font-family: var(--font-serif); font-size: 11px; color: var(--navy-800);
  background: rgba(14,35,64,.08); border-radius: 20px; padding: 1px 7px;
}
.placement-chip:hover { border-color: var(--gold-400); color: var(--navy-800); }
.placement-chip.active {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-200); border-color: var(--navy-800);
  box-shadow: 0 5px 14px rgba(14,35,64,.18);
}
.placement-chip.active .pc-n { background: rgba(198,161,91,.25); color: var(--gold-100); }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.faq-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all .2s ease;
}
.faq-card:hover { border-color: var(--gold-400); box-shadow: 0 8px 24px rgba(14,35,64,.08); }
.faq-card.off { opacity: .55; background: var(--ivory-2); }
.faq-card .fc-top { display: flex; gap: 8px; align-items: center; }
.faq-card .fc-q { font-size: 14px; font-weight: 700; color: var(--navy-900); line-height: 1.5; }
.faq-card .fc-a { font-size: 12.5px; color: #4A5566; line-height: 1.8; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.faq-card .fc-actions { display: flex; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px; }
.faq-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.faq-filter-row .status-chip { background: var(--white); border: 1px solid var(--line); }
.faq-filter-row .status-chip.on {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-200); border-color: var(--navy-800);
}
.hotline-preview {
  display: flex; align-items: center;
  border: 1px dashed var(--gold-300); border-radius: var(--radius-sm);
  background: var(--gold-050); padding: 12px 16px;
  font-family: SimSun, "Songti SC", "宋体", serif; font-size: 20px; letter-spacing: 2px; color: var(--navy-800);
}
.notice-cards-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; margin-bottom: 18px; }
.notice-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); padding: 16px 18px; cursor: pointer;
  display: flex; flex-direction: column; gap: 7px;
  transition: all .2s ease; min-width: 0;
}
.notice-card:hover { border-color: var(--gold-400); box-shadow: 0 10px 28px rgba(14,35,64,.10); transform: translateY(-2px); }
.notice-card.active {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 2px rgba(198,161,91,.30), var(--shadow);
}
.notice-card .nc-top { display: flex; align-items: center; justify-content: space-between; }
.notice-card .nc-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--gold-050); border: 1px solid var(--gold-200); display: grid; place-items: center; font-size: 18px; flex: none; }
.notice-card .nc-count { font-family: var(--font-serif); font-size: 24px; color: var(--navy-800); white-space: nowrap; }
.notice-card .nc-unit { font-size: 11px; color: var(--muted); font-family: var(--font-cn); margin-left: 3px; }
.notice-card .nc-name { font-size: 14px; font-weight: 700; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-card .nc-desc { font-size: 11.5px; color: var(--muted); flex: 1; line-height: 1.5; }
.notice-card .nc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.notice-card .nc-tags .pill { font-size: 10.5px; padding: 2px 9px; }
@media (max-width: 1400px) { .notice-cards-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .notice-cards-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .notice-cards-row { grid-template-columns: 1fr; } }
.notice-mini-card { cursor: pointer; transition: all .2s ease; }
.notice-mini-card:hover { border-color: var(--gold-400); box-shadow: 0 10px 28px rgba(14,35,64,.10); transform: translateY(-2px); }
.notice-mini-card .card-pad { display: flex; flex-direction: column; gap: 7px; height: 100%; }
.nmc-top { display: flex; align-items: center; justify-content: space-between; }
.nmc-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--gold-050); border: 1px solid var(--gold-200); display: grid; place-items: center; font-size: 18px; }
.nmc-count { font-family: var(--font-serif); font-size: 20px; color: var(--navy-800); }
.nmc-name { font-size: 14.5px; font-weight: 700; color: var(--navy-900); }
.nmc-desc { font-size: 12px; color: var(--muted); flex: 1; }
.nmc-tags { display: flex; gap: 6px; }
.nmc-tags .pill { font-size: 10.5px; padding: 2px 9px; }
.pc-grid { display: flex; flex-direction: column; gap: 8px; }
.placement-cell {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--white); padding: 8px 14px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: all .18s ease;
}
.placement-cell .pc-ic { font-size: 13px; }
.placement-cell .pc-n {
  margin-left: auto; font-family: var(--font-serif); font-size: 11px; color: var(--navy-800);
  background: rgba(14,35,64,.08); border-radius: 20px; padding: 1px 8px;
}
.placement-cell:hover { border-color: var(--gold-400); color: var(--navy-800); }
.placement-cell.active {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-200); border-color: var(--navy-800);
  box-shadow: 0 5px 14px rgba(14,35,64,.18);
}
.placement-cell.active .pc-n { background: rgba(198,161,91,.25); color: var(--gold-100); }
@media (max-width: 1280px) { .notice-cards-row { grid-template-columns: 1fr 1fr; } .placement-grid { grid-column: span 2; } }
@media (max-width: 900px) { .notice-cards-row { grid-template-columns: 1fr; } .placement-grid { grid-column: auto; } }
.dict-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dict-col-head { margin-bottom: 10px; }
.dict-col-head h4 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .03em; }
.dict-list { border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 260px; overflow-y: auto; margin-bottom: 12px; }
.dict-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.dict-row:last-child { border-bottom: none; }
.dict-name { font-size: 13px; font-weight: 500; }
.dict-actions { display: flex; gap: 6px; flex: none; }
.dict-add-form { border-top: 1px dashed var(--line); padding-top: 12px; }
@media (max-width: 760px) { .dict-cols { grid-template-columns: 1fr; } }
.state-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.state-flow .sf-node { background: var(--ivory-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font-size: 12px; }
.state-flow .sf-node.end { border-color: var(--gold-300); color: var(--gold-600); }
.state-flow .sf-arrow { color: var(--gold-500); }
.demo-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.demo-table th, .demo-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.demo-table th { color: var(--muted); font-size: 11px; letter-spacing: .1em; }

/* Expandable audit detail */
.audit-detail { background: var(--ivory-2); font-size: 12px; }
.audit-detail .ad-inner { padding: 14px 18px; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-col { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.ba-col .ba-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ba-col pre { margin: 0; font-size: 11.5px; white-space: pre-wrap; word-break: break-all; color: #4A5462; font-family: var(--font-serif); }

/* ==========================================================================
   TOASTS / LOADING / EMPTY
   ========================================================================== */
#toast-host { position: fixed; top: 22px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; pointer-events: none; }
.toast {
  min-width: 260px; max-width: 420px;
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start;
  animation: toastIn .35s cubic-bezier(.2,.8,.2,1) both;
  font-size: 13px; color: var(--ink);
}
.toast.out { animation: toastOut .3s both; }
.toast .t-ic { font-size: 17px; flex: none; }
.toast.success { border-left-color: #3E7C68; } .toast.success .t-ic { color: #3E7C68; }
.toast.error { border-left-color: #A4443C; } .toast.error .t-ic { color: #A4443C; }
.toast.warn { border-left-color: #B8863B; } .toast.warn .t-ic { color: #B8863B; }
.toast .t-title { font-weight: 600; margin-bottom: 2px; }
.toast .t-msg { color: var(--muted); font-size: 12.5px; line-height: 1.65; white-space: pre-line; }

.skeleton { background: linear-gradient(90deg, #F0EBE1 25%, #F8F4EC 50%, #F0EBE1 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
.sk-line { height: 13px; margin: 9px 0; }
.sk-card { height: 118px; border-radius: var(--radius); }
.sk-row { height: 46px; border-radius: 8px; margin: 8px 0; }

.empty-state { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty-state .es-ic { font-size: 46px; opacity: .5; }
.empty-state h4 { margin: 14px 0 6px; font-size: 15px; color: var(--ink); font-weight: 600; }
.empty-state p { font-size: 13px; margin: 0; }
.empty-state .btn { margin-top: 18px; }

.inline-loading { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 40px; color: var(--muted); font-size: 13px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--gold-200); border-top-color: var(--gold-600); border-radius: 50%; animation: spin .8s linear infinite; }

/* ==========================================================================
   MISC
   ========================================================================== */
.stars-display { color: var(--gold-500); letter-spacing: 2px; }
.stars-display .off { color: #DCD3C2; }
.hairline { height: 1px; background: linear-gradient(90deg, var(--gold-400), transparent); border: none; margin: 18px 0; }
.divider-text { text-align: center; font-family: var(--font-serif); font-size: 11px; letter-spacing: .24em; color: var(--gold-500); text-transform: uppercase; margin: 22px 0; display: flex; align-items: center; gap: 14px; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-count { font-family: var(--font-serif); color: var(--gold-600); }
.detail-json { font-family: var(--font-serif); font-size: 11.5px; color: var(--muted); }
.mono { font-family: var(--font-serif); letter-spacing: .02em; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(88,169,140,.18); } 50% { box-shadow: 0 0 0 6px rgba(88,169,140,.05); } }
@keyframes drawLine { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
.chart-svg .line-path.animate { stroke-dasharray: 2000; animation: drawLine 1.4s ease-out both; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1400px) {
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  :root { --sidebar-w: 74px; }
  .sb-brand { padding: 22px 14px 8px; }
  .sb-brand .brand-wordmark { font-size: 23px; }
  .sb-caption, .sb-group, .nav-item .ni + .ni-text, .sb-bottom, .sb-rule { display: none; }
  .nav-item { justify-content: center; padding: 13px 0; }
  .nav-item .ni { font-size: 19px; width: auto; }
  .nav-item.active::before { left: -14px; }
  .sb-nav { padding: 16px 14px; }
  .nav-badge { display: none; }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-2-1, .g-1-2 { grid-template-columns: 1fr; }
  .review-hero { grid-template-columns: 240px 1fr; }
  .review-hero .rh-side { grid-template-columns: repeat(3, 1fr); }
  .rh-dist { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 980px) {
  .review-list { grid-template-columns: 1fr; }
  .settings-row.two { grid-template-columns: 1fr; }
  .g2, .g3 { grid-template-columns: 1fr; }
  #login-view { grid-template-columns: 1fr; overflow-y: auto; }
  .login-left { display: none; }
  .login-right { padding: 40px 24px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --sidebar-w: 0px; --topbar-h: 62px; }
  .sidebar { transform: translateX(-100%); transition: transform .3s; width: 250px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar.open .sb-caption, .sidebar.open .sb-group, .sidebar.open .sb-bottom, .sidebar.open .sb-rule { display: block; }
  .sidebar.open .nav-item { justify-content: flex-start; padding: 11px 14px; }
  .sidebar.open .nav-item .ni { font-size: 16px; width: 20px; }
  .sidebar.open .sb-brand .brand-wordmark { font-size: 28px; }
  .main-wrap { margin-left: 0; }
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar .hamburger { display: block; }
  .tb-date, .tb-user .u-role, .tb-user .u-name { display: none; }
  .tb-user { padding-left: 8px; }
  .topbar-right { gap: 12px; }
  .page { padding: 20px 16px 50px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-head .ph-actions { margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .review-hero { grid-template-columns: 1fr; }
  .review-hero .rh-score { padding: 24px; }
  .toolbar .search-box { flex: 1 1 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .ba-grid { grid-template-columns: 1fr; }
  #toast-host { right: 12px; left: 12px; }
  .toast { min-width: 0; width: 100%; }
}
