:root {
  --ink: #18231f;
  --ink-soft: #3f4b46;
  --muted: #7b8580;
  --brand: #1d5143;
  --brand-deep: #153d34;
  --brand-light: #dfece6;
  --sage: #91ada2;
  --paper: #f1f2ee;
  --card: #fbfcf9;
  --white: #ffffff;
  --amber: #dd945f;
  --amber-light: #f8e9dc;
  --danger: #b85f59;
  --line: #e2e5df;
  --line-strong: #d4d9d2;
  --shadow-sm: 0 6px 24px rgba(25, 44, 36, .05);
  --shadow-lg: 0 28px 80px rgba(18, 46, 37, .13);
  --serif: "Songti SC", STSong, SimSun, serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(76, 137, 119, .2);
  outline-offset: 2px;
}
.hidden { display: none !important; }
.overline {
  margin: 0 0 8px;
  color: #9a7452;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}
.overline.light { color: #e7cdb8; }
.subtle { color: var(--muted); }

/* Brand */
.brand-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 19px 19px 19px 6px;
  background: rgba(255,255,255,.1);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
  font-family: var(--serif);
  font-size: 26px;
}
.brand-mark::after {
  position: absolute;
  width: 7px;
  height: 7px;
  right: 7px;
  bottom: 7px;
  border-radius: 50%;
  background: #e7b07d;
  content: "";
}
.brand-mark.small {
  width: 42px;
  height: 42px;
  border-radius: 14px 14px 14px 5px;
  background: rgba(255,255,255,.12);
  font-size: 19px;
}
.brand-mark.small::after { width: 5px; height: 5px; right: 5px; bottom: 5px; }
.brand-lockup b { display: block; color: #fff; font-family: var(--serif); font-size: 20px; letter-spacing: .17em; }
.brand-lockup small { display: block; margin-top: 4px; color: rgba(255,255,255,.48); font-size: 8px; font-weight: 650; letter-spacing: .18em; }
.brand-lockup.dark b { color: var(--ink); }
.brand-lockup.dark small { color: var(--muted); }

/* Login */
.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(520px, 1.08fr) minmax(460px, .92fr);
  background: #f8f8f5;
}
.login-art {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(38px, 5vw, 72px) clamp(42px, 6vw, 92px);
  flex-direction: column;
  background:
    radial-gradient(circle at 83% 17%, rgba(98, 152, 134, .42), transparent 25%),
    radial-gradient(circle at 5% 86%, rgba(232, 170, 113, .15), transparent 29%),
    linear-gradient(145deg, #1c5345 0%, #153d34 52%, #102f28 100%);
  color: #fff;
}
.login-art::before {
  position: absolute;
  width: 460px;
  height: 460px;
  right: -240px;
  bottom: -250px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 85px rgba(255,255,255,.018), 0 0 0 170px rgba(255,255,255,.014);
  content: "";
}
.login-brand-row { position: relative; z-index: 2; display: flex; align-items: center; gap: 15px; }
.login-story { position: relative; z-index: 2; margin: auto 0; }
.login-story h1 {
  max-width: 670px;
  margin: 14px 0 24px;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 74px);
  font-weight: 500;
  letter-spacing: .035em;
  line-height: 1.24;
}
.story-copy { color: rgba(255,255,255,.64); font-size: 15px; letter-spacing: .06em; line-height: 2; }
.story-metrics { display: flex; margin-top: 52px; gap: clamp(24px, 4vw, 55px); }
.story-metrics div { display: flex; min-width: 110px; flex-direction: column; gap: 6px; }
.story-metrics strong { color: #e6b589; font-family: Georgia, serif; font-size: 13px; font-weight: 500; }
.story-metrics span { color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .08em; }
.login-footnote { position: relative; z-index: 2; margin: 0; color: rgba(255,255,255,.38); font-size: 10px; letter-spacing: .12em; }
.crystal-orbit { position: absolute; width: 310px; height: 310px; right: -35px; top: 12%; opacity: .88; transform: rotate(9deg); }
.orbit-ring { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; inset: 34px; }
.ring-two { border-style: dashed; opacity: .58; inset: 63px; transform: rotate(35deg); }
.crystal-orbit i {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: radial-gradient(circle at 31% 25%, #fff 0, #bad8cf 29%, #508979 67%, #285f51 100%);
  box-shadow: 0 9px 20px rgba(3,24,18,.3), inset -3px -4px 8px rgba(10,57,45,.35);
}
.crystal-orbit i:nth-of-type(1) { left: 21px; top: 74px; }
.crystal-orbit i:nth-of-type(2) { left: 104px; top: 15px; width: 22px; height: 22px; }
.crystal-orbit i:nth-of-type(3) { right: 51px; top: 45px; width: 35px; height: 35px; background: radial-gradient(circle at 32% 24%, #fff, #f0d5bd 33%, #cf8f62 70%, #9a6543); }
.crystal-orbit i:nth-of-type(4) { right: 6px; top: 132px; }
.crystal-orbit i:nth-of-type(5) { right: 35px; bottom: 41px; width: 24px; height: 24px; }
.crystal-orbit i:nth-of-type(6) { left: 112px; bottom: 5px; width: 34px; height: 34px; }
.crystal-orbit i:nth-of-type(7) { left: 29px; bottom: 58px; width: 23px; height: 23px; background: radial-gradient(circle at 32% 24%, #fff, #ded1e8 33%, #9f80af 70%, #72587c); }
.crystal-orbit i:nth-of-type(8) { left: 2px; top: 153px; width: 34px; height: 34px; }
.orbit-core { position: absolute; display: grid; inset: 108px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: rgba(255,255,255,.72); font-family: var(--serif); font-size: 26px; box-shadow: inset 0 0 26px rgba(255,255,255,.07); }
.login-panel { position: relative; display: grid; padding: 48px; place-items: center; background: radial-gradient(circle at 100% 0, #eef3ef 0, transparent 32%), #f8f8f5; }
.login-meta { position: absolute; top: 42px; right: 48px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.secure-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #6ea68e; box-shadow: 0 0 0 4px rgba(110,166,142,.11); vertical-align: 1px; }
.login-card { width: min(400px, 100%); }
.mobile-brand { display: none; }
.welcome-pill { display: inline-flex; height: 25px; padding: 0 10px; align-items: center; border-radius: 20px; background: var(--brand-light); color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.login-card h2 { margin: 20px 0 6px; font-family: var(--serif); font-size: 39px; font-weight: 650; letter-spacing: .04em; }
.login-card > .subtle { margin: 0 0 22px; font-size: 13px; }
.auth-mode-switch { display: grid; padding: 4px; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 12px; background: #e9ede8; }
.auth-mode-switch button { height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.auth-mode-switch button.active { background: #fff; color: var(--brand); box-shadow: 0 3px 12px rgba(24,35,31,.08); }
.field-label { display: block; margin: 20px 0 9px; font-size: 12px; font-weight: 700; }
.input-shell { display: flex; height: 55px; padding: 0 15px; align-items: center; border: 1px solid #dce0da; border-radius: 13px; background: rgba(255,255,255,.78); transition: .2s; }
.input-shell:focus-within { border-color: #75a293; box-shadow: 0 0 0 4px rgba(48,105,88,.08); background: #fff; }
.input-shell > span { padding-right: 14px; border-right: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.input-shell input { width: 100%; height: 100%; min-width: 0; padding: 0 13px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.input-shell input::placeholder { color: #adb3af; }
.code-field { position: relative; padding-right: 7px; }
.code-field .code-icon { width: 31px; padding-right: 13px; color: var(--muted); text-align: center; }
.code-field input { padding-right: 102px; }
.text-button { position: absolute; right: 7px; height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--brand-light); color: var(--brand); font-size: 11px; font-weight: 750; }
.primary-button { display: flex; width: 100%; height: 55px; margin-top: 27px; padding: 0 18px 0 21px; align-items: center; justify-content: space-between; border: 0; border-radius: 13px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 750; box-shadow: 0 15px 26px rgba(29,81,67,.18); transition: transform .2s, background .2s; }
.primary-button:hover { background: var(--brand-deep); transform: translateY(-1px); }
.primary-button i { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.12); font-style: normal; }
.dev-hint { min-height: 17px; margin: 9px 0 -10px; color: #a36e45; font-size: 11px; }
.login-note { display: flex; margin-top: 22px; align-items: flex-start; gap: 9px; color: #8b938f; font-size: 10px; line-height: 1.65; }
.login-note span { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-size: 9px; }
.login-note p { margin: 0; }
.login-copyright { position: absolute; right: 48px; bottom: 33px; margin: 0; color: #a4aaa6; font-size: 9px; letter-spacing: .06em; }

/* Shared shell */
.toast { position: fixed; z-index: 99; top: 22px; left: 50%; display: flex; min-height: 44px; padding: 0 17px; align-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #183c32; color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, -18px); transition: .25s; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; z-index: 10; top: 0; display: flex; height: 100vh; min-height: 620px; padding: 27px 18px 20px; flex-direction: column; background: linear-gradient(180deg, #173f35 0%, #12362e 100%); color: #fff; }
.side-brand { display: flex; padding: 0 8px 25px; align-items: center; gap: 13px; }
.workspace-card { display: flex; min-height: 64px; margin: 0 2px 26px; padding: 12px; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.055); }
.workspace-gem { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: rgba(231,176,125,.14); color: #e7b07d; font-size: 17px; }
.workspace-card div { min-width: 0; }
.workspace-card small, .workspace-card b { display: block; }
.workspace-card small { margin-bottom: 4px; color: rgba(255,255,255,.4); font-size: 8px; }
.workspace-card b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-chevron { margin-left: auto; color: rgba(255,255,255,.35); }
.nav-label { margin: 0 12px 10px; color: rgba(255,255,255,.3); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.sidebar nav {
  display: grid;
  overflow-y: auto;
  min-height: 0;
  margin-right: -5px;
  padding-right: 5px;
  flex: 1;
  align-content: start;
  gap: 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.sidebar nav button { position: relative; display: flex; width: 100%; min-height: 54px; padding: 8px 11px; align-items: center; gap: 11px; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.56); text-align: left; transition: .2s; }
.sidebar nav button::before { position: absolute; width: 3px; height: 18px; left: -2px; border-radius: 4px; background: #e5a671; content: ""; opacity: 0; transform: scaleY(.5); transition: .2s; }
.sidebar nav button:hover { background: rgba(255,255,255,.045); color: #fff; }
.sidebar nav button.active { background: rgba(255,255,255,.095); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.045); }
.sidebar nav button.active::before { opacity: 1; transform: scaleY(1); }
.nav-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: rgba(255,255,255,.055); color: #d6b08b; font-size: 16px; }
.active .nav-icon { background: rgba(229,166,113,.12); color: #f1bf93; }
.nav-copy { display: block; min-width: 0; }
.nav-copy b, .nav-copy small { display: block; }
.nav-copy b { font-size: 11px; font-weight: 650; }
.nav-copy small { margin-top: 3px; color: rgba(255,255,255,.3); font-size: 8px; }
.sidebar nav em { display: none; min-width: 19px; height: 19px; margin-left: auto; padding: 0 5px; border-radius: 10px; background: #d97568; color: #fff; font-size: 9px; font-style: normal; line-height: 19px; text-align: center; }
.sidebar nav em.visible { display: block; }
.side-foot { display: flex; margin: auto 2px 0; padding: 17px 7px 0; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-avatar { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #dfece6; color: var(--brand); font-family: var(--serif); font-size: 15px; }
.admin-avatar.mini { width: 35px; height: 35px; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; }
.side-user { min-width: 0; }
.side-user b, .side-user span { display: block; }
.side-user b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.side-user span { margin-top: 4px; color: rgba(255,255,255,.38); font-size: 8px; }
.status-dot { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #84cbb5; box-shadow: 0 0 0 3px rgba(132,203,181,.09); vertical-align: 1px; }
.side-foot button { width: 28px; height: 28px; margin-left: auto; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.45); font-size: 15px; }
.side-foot button:hover { background: rgba(255,255,255,.06); color: #fff; }
.main { min-width: 0; }
.topbar { position: sticky; z-index: 8; top: 0; display: flex; height: 92px; padding: 0 clamp(22px, 3.2vw, 46px); align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(216,221,214,.85); background: rgba(243,244,240,.88); backdrop-filter: blur(18px); }
.page-heading h1 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 650; letter-spacing: .03em; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.today { margin-right: 14px; color: var(--muted); font-size: 10px; }
.icon-button { position: relative; display: grid; width: 39px; height: 39px; margin-right: 4px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.66); color: var(--ink-soft); }
.icon-button:hover { background: #fff; border-color: var(--line-strong); }
.icon-button i { position: absolute; width: 6px; height: 6px; right: 7px; top: 7px; border: 1px solid var(--paper); border-radius: 50%; background: var(--amber); }
.admin-copy b, .admin-copy small { display: block; white-space: nowrap; }
.admin-copy b { font-size: 10px; }
.admin-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.content { max-width: 1540px; margin: 0 auto; padding: 27px clamp(22px, 3.2vw, 46px) 48px; }

/* Dashboard */
.hero-card { position: relative; display: grid; overflow: hidden; min-height: 220px; padding: 32px 35px; grid-template-columns: minmax(0, 1fr) 280px; border-radius: 20px; background: linear-gradient(122deg, #1a4b3e 0%, #23604f 62%, #2c6a58 100%); color: #fff; box-shadow: 0 18px 45px rgba(28,78,64,.14); }
.hero-card::before { position: absolute; width: 400px; height: 400px; right: -180px; top: -210px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.018), 0 0 0 120px rgba(255,255,255,.014); content: ""; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .overline { color: #e6b183; }
.hero-copy h2 { margin: 10px 0 9px; font-family: var(--serif); font-size: clamp(26px, 3vw, 37px); font-weight: 500; letter-spacing: .04em; }
.hero-copy > p:not(.overline) { margin: 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.75; }
.hero-actions { display: flex; margin-top: 27px; gap: 9px; }
.hero-button { min-height: 38px; padding: 0 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 10px; font-weight: 700; }
.hero-button.primary { border-color: #f0bf92; background: #e9ac78; color: #173a31; }
.hero-button:hover { background: rgba(255,255,255,.17); }
.hero-button.primary:hover { background: #f0bb8d; }
.hero-aside { position: relative; z-index: 2; display: flex; padding-left: 38px; align-items: center; justify-content: center; border-left: 1px solid rgba(255,255,255,.1); }
.hero-summary { display: grid; width: 170px; height: 170px; padding: 25px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 13px rgba(255,255,255,.018); text-align: center; }
.hero-summary span, .hero-summary small { display: block; color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .08em; }
.hero-summary strong { display: block; margin: 5px 0; font-family: Georgia, serif; font-size: 31px; font-weight: 500; }
.metric-grid { display: grid; margin-top: 17px; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 13px; }
.metric-card, .panel { border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); }
.metric-card { position: relative; min-height: 132px; padding: 19px 20px; border-radius: 16px; }
.metric-card::after { position: absolute; height: 2px; right: 20px; bottom: -1px; left: 20px; border-radius: 4px; background: var(--accent, var(--brand)); content: ""; opacity: .55; }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-label { color: var(--muted); font-size: 10px; }
.metric-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--accent-soft, var(--brand-light)); color: var(--accent, var(--brand)); font-size: 14px; }
.metric-card strong { display: block; margin-top: 14px; font-family: Georgia, var(--serif); font-size: 25px; font-weight: 550; letter-spacing: -.02em; }
.metric-card small { display: block; margin-top: 5px; color: #9ba39f; font-size: 9px; }
.dashboard-grid { display: grid; margin-top: 17px; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr); gap: 17px; }
.panel { padding: 21px; border-radius: 17px; }
.panel-head { display: flex; margin-bottom: 20px; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-head h3 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 650; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.panel-head > span { color: var(--muted); font-size: 9px; }
.chart-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.chart-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.bar-chart { display: flex; height: 222px; padding: 20px 5px 25px; align-items: flex-end; gap: clamp(10px, 2vw, 22px); border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 47px, #edf0eb 48px); }
.bar-column { display: flex; height: 100%; min-width: 0; flex: 1; align-items: center; justify-content: flex-end; flex-direction: column; gap: 8px; }
.bar-value { color: var(--brand); font-family: Georgia, serif; font-size: 8px; opacity: 0; transform: translateY(4px); transition: .2s; white-space: nowrap; }
.bar-column:hover .bar-value { opacity: 1; transform: translateY(0); }
.bar { width: min(34px, 66%); min-height: 4px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #78a595, #245d4d); box-shadow: 0 7px 15px rgba(35,92,76,.14); transition: filter .2s; }
.bar-column:hover .bar { filter: brightness(1.08); }
.bar-label { color: var(--muted); font-size: 8px; white-space: nowrap; transform: translateY(26px); }
.status-overview { display: grid; min-height: 222px; place-items: center; }
.donut { position: relative; display: grid; width: 138px; height: 138px; place-items: center; border-radius: 50%; background: var(--donut); transform: rotate(-90deg); }
.donut::before { position: absolute; border-radius: 50%; background: var(--card); content: ""; inset: 17px; }
.donut-center { position: relative; z-index: 1; text-align: center; transform: rotate(90deg); }
.donut-center strong, .donut-center span { display: block; }
.donut-center strong { font-family: Georgia, serif; font-size: 25px; font-weight: 550; }
.donut-center span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.status-legend { display: grid; width: 100%; margin-top: 15px; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.legend-row { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.legend-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--status-color); }
.legend-row b { color: var(--ink); }
.dashboard-lower { display: grid; margin-top: 17px; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr); gap: 17px; }
.activity-panel { padding: 0; overflow: hidden; }
.activity-panel .panel-head { margin: 0; padding: 21px; border-bottom: 1px solid var(--line); }
.activity-list { display: grid; }
.activity-item { display: flex; width: 100%; min-height: 66px; padding: 13px 20px; align-items: center; gap: 11px; border: 0; border-bottom: 1px solid #edf0eb; background: transparent; text-align: left; }
.activity-item:last-child { border-bottom: 0; }
.activity-item:hover { background: #f5f7f3; }
.activity-dot { width: 8px; height: 8px; flex: 0 0 auto; border: 2px solid var(--card); border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-light); }
.activity-item div { min-width: 0; flex: 1; }
.activity-item b, .activity-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item b { font-size: 10px; }
.activity-item span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.activity-item time { color: #a2aaa6; font-size: 8px; white-space: nowrap; }

/* Operations intelligence dashboard */
.operations-content {
  --ops-hairline: rgba(40, 91, 74, .11);
  --ops-glow: rgba(69, 130, 108, .11);
  position: relative;
  isolation: isolate;
  max-width: 1600px;
}
.operations-content::before {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: '';
  inset: 0 18px 0;
  background-image:
    linear-gradient(rgba(33, 81, 67, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 81, 67, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 88%);
}
.ops-hero {
  position: relative;
  overflow: hidden;
  padding: 19px 30px 24px;
  border: 1px solid rgba(217, 180, 134, .17);
  border-radius: 22px 22px 22px 7px;
  background:
    radial-gradient(circle at 88% -15%, rgba(216,174,119,.2), transparent 32%),
    radial-gradient(circle at 9% 115%, rgba(100,170,144,.2), transparent 36%),
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(125deg, #0c2923 0%, #123b31 48%, #1d5143 100%);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.018), 0 28px 70px rgba(12,44,35,.2);
  color: #fff;
}
.ops-hero::before {
  position: absolute;
  z-index: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(137,230,196,.72), transparent);
  box-shadow: 0 0 18px rgba(111,210,173,.34);
  content: '';
  inset: 0 0 auto;
  animation: ops-scan 7s ease-in-out infinite;
}
.ops-hero::after {
  position: absolute;
  width: 470px;
  height: 470px;
  right: -280px;
  bottom: -340px;
  border: 1px solid rgba(224,185,138,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(255,255,255,.018), 0 0 0 116px rgba(255,255,255,.011);
  content: '';
}
@keyframes ops-scan {
  0%, 12% { opacity: 0; transform: translateX(-60%); }
  35%, 68% { opacity: .8; }
  88%, 100% { opacity: 0; transform: translateX(72%); }
}
.ops-system-line {
  position: relative;
  z-index: 1;
  display: flex;
  padding-bottom: 13px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.085);
  color: rgba(255,255,255,.36);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .18em;
}
.ops-system-line span:last-child { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.52); }
.ops-system-line i { width: 5px; height: 5px; border-radius: 50%; background: #7ed0ae; box-shadow: 0 0 0 4px rgba(126,208,174,.09), 0 0 13px rgba(126,208,174,.7); animation: ops-pulse 2.2s ease-in-out infinite; }
@keyframes ops-pulse { 50% { box-shadow: 0 0 0 7px rgba(126,208,174,0), 0 0 18px rgba(126,208,174,.82); } }
.ops-hero-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.ops-hero-head .overline { margin-top: 25px; color: #deb083; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.ops-hero-head h2 { margin: 9px 0 8px; font-family: var(--serif); font-size: clamp(28px, 3vw, 39px); font-weight: 520; letter-spacing: .045em; text-shadow: 0 12px 34px rgba(0,0,0,.2); }
.ops-hero-head > div:first-child > p:last-child { margin: 0; color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.8; }
.ops-live { position: relative; display: grid; min-width: 210px; margin-top: 24px; padding: 12px 45px 12px 36px; grid-template-columns: 1fr; border: 1px solid rgba(155,213,192,.14); border-radius: 13px 13px 13px 4px; background: linear-gradient(135deg, rgba(255,255,255,.072), rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.ops-live > i { position: absolute; width: 7px; height: 7px; margin: 6px 0 0 -20px; border-radius: 50%; background: #7ed0ae; box-shadow: 0 0 0 4px rgba(126,208,174,.1), 0 0 14px rgba(126,208,174,.5); }
.ops-live span { font-size: 10px; font-weight: 760; letter-spacing: .08em; }
.ops-live time { margin-top: 5px; color: rgba(255,255,255,.39); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; letter-spacing: .04em; }
.ops-live button { position: absolute; width: 31px; height: 31px; top: 11px; right: 9px; margin: 0; border: 1px solid rgba(255,255,255,.11); border-radius: 9px 9px 9px 3px; background: rgba(255,255,255,.055); color: rgba(255,255,255,.68); transition: transform .25s, background .25s, color .25s; }
.ops-live button:hover { background: rgba(255,255,255,.12); color: #fff; }
.ops-live button:hover { transform: rotate(22deg); }
.ops-intel-strip { position: relative; z-index: 1; display: grid; margin-top: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(255,255,255,.08); border-radius: 13px 13px 13px 4px; background: rgba(3,22,17,.17); }
.ops-intel-strip > span { position: relative; min-width: 0; padding: 12px 15px; border-right: 1px solid rgba(255,255,255,.07); }
.ops-intel-strip > span:last-child { border-right: 0; }
.ops-intel-strip small, .ops-intel-strip b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-intel-strip small { color: rgba(255,255,255,.28); font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; font-weight: 700; letter-spacing: .15em; }
.ops-intel-strip b { margin-top: 5px; color: rgba(255,255,255,.78); font-size: 9px; font-weight: 630; }
.range-console { position: relative; z-index: 1; display: flex; min-height: 53px; margin-top: 14px; padding-top: 15px; align-items: center; gap: 11px; border-top: 1px solid rgba(255,255,255,.085); }
.range-console-label { margin-right: 2px; color: rgba(255,255,255,.26); font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; }
.range-presets { display: flex; padding: 4px; flex-wrap: wrap; gap: 3px; border: 1px solid rgba(255,255,255,.075); border-radius: 11px 11px 11px 4px; background: rgba(3,22,17,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.range-presets button { min-height: 31px; padding: 0 12px; border: 0; border-radius: 7px 7px 7px 2px; background: transparent; color: rgba(255,255,255,.51); font-size: 8px; font-weight: 720; white-space: nowrap; }
.range-presets button:hover { color: #fff; }
.range-presets button.active { background: linear-gradient(135deg, #f6eee2, #e7ddce); box-shadow: 0 5px 18px rgba(4,23,18,.24), inset 0 1px 0 #fff; color: #234d41; }
.custom-range { display: flex; align-items: center; gap: 7px; }
.custom-range label { display: flex; height: 38px; padding: 0 9px; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.11); border-radius: 9px 9px 9px 3px; background: rgba(255,255,255,.05); }
.custom-range label span { color: rgba(255,255,255,.38); font-size: 8px; }
.custom-range input { width: 110px; border: 0; outline: 0; background: transparent; color: #fff; color-scheme: dark; font-size: 9px; }
.custom-range > i { color: rgba(255,255,255,.28); font-style: normal; }
.custom-range > button { height: 38px; padding: 0 12px; border: 0; border-radius: 9px 9px 9px 3px; background: linear-gradient(135deg, #e4b17d, #c98c58); color: #15382f; font-size: 9px; font-weight: 800; }
.range-caption { display: flex; min-width: 150px; margin-left: auto; align-items: flex-end; flex-direction: column; }
.range-caption span { font-family: "SFMono-Regular", Georgia, var(--serif); font-size: 10px; font-variant-numeric: tabular-nums; }
.range-caption small { margin-top: 5px; color: rgba(255,255,255,.36); font-size: 7px; }
.ops-metric-grid { grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; }
.ops-metric-card { overflow: hidden; min-height: 205px; padding: 14px 17px 16px; border-color: rgba(37,81,67,.12); border-radius: 15px 15px 15px 5px; background: radial-gradient(circle at 95% 0, var(--accent-soft), transparent 36%), linear-gradient(145deg, rgba(255,255,255,.96), rgba(246,248,244,.92)); box-shadow: inset 0 1px 0 #fff, 0 15px 40px rgba(25,55,44,.075); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.ops-metric-card:hover { border-color: color-mix(in srgb, var(--accent) 28%, transparent); box-shadow: inset 0 1px 0 #fff, 0 22px 46px rgba(25,55,44,.12); transform: translateY(-3px); }
.ops-metric-card::before { position: absolute; width: 36px; height: 1px; right: 0; top: 0; background: var(--accent); box-shadow: 0 0 14px var(--accent); content: ''; opacity: .58; }
.ops-metric-card::after { right: 0; bottom: 0; left: 0; height: 2px; border-radius: 0; background: linear-gradient(90deg, var(--accent), transparent 72%); opacity: .42; }
.metric-card-index { display: flex; margin-bottom: 12px; align-items: center; justify-content: space-between; color: #a0aaa5; font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; font-weight: 700; letter-spacing: .13em; }
.metric-card-index i { width: 22px; height: 1px; background: var(--accent); opacity: .4; }
.ops-metric-card .metric-label { display: flex; align-items: center; gap: 6px; color: #63706a; font-size: 9px; font-weight: 680; }
.ops-metric-card .metric-label i { display: inline-grid; width: 14px; height: 14px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: #a0a7a3; font-size: 7px; font-style: normal; cursor: help; }
.ops-metric-card .metric-icon { width: auto; min-width: 34px; height: 25px; padding: 0 7px; border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 7px 7px 7px 2px; background: color-mix(in srgb, var(--accent-soft) 75%, white); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.ops-metric-card > strong { margin-top: 12px; font-family: "DIN Alternate", "SF Pro Display", Inter, sans-serif; font-size: clamp(24px, 2.2vw, 32px); font-weight: 620; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.metric-sparkline { display: block; width: 100%; height: 34px; margin-top: 9px; overflow: visible; }
.metric-spark-area { opacity: .8; }
.metric-spark-line { fill: none; stroke: var(--spark-color); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.metric-foot { display: flex; margin-top: 7px; align-items: center; justify-content: space-between; gap: 7px; }
.metric-foot > small { overflow: hidden; max-width: 54%; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.metric-change { display: inline-flex; min-height: 21px; padding: 0 7px; align-items: center; border: 1px solid rgba(52,112,94,.08); border-radius: 6px 6px 6px 2px; background: #e6f1ec; color: #34705e; font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; font-weight: 800; white-space: nowrap; }
.metric-change.down { background: #f6e9e7; color: #a05f58; }
.metric-change.flat { background: #eff0ed; color: #7d8580; }
.metric-change.new { background: #f5ecdf; color: #946b3f; }
.trend-panel { position: relative; overflow: hidden; margin-top: 16px; padding: 0; border-color: rgba(36,81,66,.12); border-radius: 19px 19px 19px 6px; background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(244,247,243,.95)); box-shadow: 0 22px 54px rgba(25,55,44,.085); }
.trend-panel::before { position: absolute; z-index: 2; width: 150px; height: 2px; top: 0; left: 0; background: linear-gradient(90deg, #295f4e, rgba(213,164,111,.7), transparent); content: ''; }
.trend-head { display: flex; min-height: 103px; padding: 21px 23px 18px; align-items: flex-end; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--ops-hairline); background: linear-gradient(90deg, rgba(231,239,234,.55), transparent 44%); }
.trend-head .overline { margin-bottom: 7px; color: #9b7250; font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; }
.trend-head h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 650; letter-spacing: .03em; }
.trend-head > div:first-child > span { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; }
.trend-switch { display: flex; padding: 4px; flex-wrap: wrap; gap: 3px; border: 1px solid rgba(38,82,68,.06); border-radius: 10px 10px 10px 3px; background: #edf0eb; }
.trend-switch button { min-height: 31px; padding: 0 11px; border: 0; border-radius: 7px 7px 7px 2px; background: transparent; color: var(--muted); font-size: 8px; font-weight: 750; }
.trend-switch button.active { background: #fff; box-shadow: 0 4px 14px rgba(26,43,36,.1); color: var(--brand); }
.trend-visual { min-width: 0; padding: 20px 23px 15px; background-image: linear-gradient(rgba(42,84,70,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(42,84,70,.025) 1px, transparent 1px); background-size: 28px 28px; }
.trend-summary { display: flex; gap: 0; }
.trend-summary span { min-width: 135px; padding: 0 21px; border-right: 1px solid var(--ops-hairline); }
.trend-summary span:first-child { padding-left: 0; }
.trend-summary span:last-child { border-right: 0; }
.trend-summary small, .trend-summary strong { display: block; }
.trend-summary small { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; letter-spacing: .05em; }
.trend-summary strong { margin-top: 6px; font-family: "DIN Alternate", "SF Pro Display", Inter, sans-serif; font-size: 18px; font-variant-numeric: tabular-nums; }
.trend-canvas { overflow-x: auto; }
.trend-chart-svg { display: block; width: 100%; min-width: 680px; height: 310px; overflow: visible; }
.trend-grid line { stroke: #dfe6e0; stroke-width: 1; stroke-dasharray: 3 6; }
.trend-grid text, .trend-point text { fill: #8d9993; font-size: 8px; font-family: "SFMono-Regular", Inter, sans-serif; }
.trend-area { fill: url(#trendArea); }
.trend-line { fill: none; stroke: var(--trend-color); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; filter: drop-shadow(0 5px 8px rgba(30,78,64,.16)); animation: trend-draw 1.3s ease forwards; }
@keyframes trend-draw { to { stroke-dashoffset: 0; } }
.trend-point circle { fill: #f9fbf8; stroke: var(--trend-color); stroke-width: 2.5; transition: r .18s, fill .18s; }
.trend-point:hover circle { r: 7; fill: var(--trend-color); }
.operations-grid { display: grid; margin-top: 16px; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: 16px; }
.operations-grid > .panel, .ops-activity-grid > .panel { border-color: rgba(36,81,66,.11); border-radius: 18px 18px 18px 6px; background: rgba(251,252,249,.94); box-shadow: 0 17px 42px rgba(25,55,44,.065); backdrop-filter: blur(12px); }
.panel-code { margin: 0 0 5px !important; color: #a27855 !important; font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px !important; font-weight: 750; letter-spacing: .13em; }
.operations-grid .panel-head > span { font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; letter-spacing: .07em; }
.health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.health-grid > div { position: relative; overflow: hidden; min-height: 122px; padding: 18px; border: 1px solid rgba(38,82,68,.095); border-radius: 13px 13px 13px 4px; background: linear-gradient(145deg, rgba(249,251,248,.98), rgba(238,243,239,.86)); }
.health-grid > div::before { position: absolute; right: 13px; top: 12px; color: rgba(39,91,73,.19); content: attr(data-code); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.health-grid > div::after { position: absolute; height: 1px; right: 15px; bottom: 12px; left: 15px; background: linear-gradient(90deg, rgba(43,99,80,.27), transparent); content: ''; }
.health-grid span, .health-grid strong, .health-grid small { display: block; }
.health-grid span { color: var(--muted); font-size: 8px; }
.health-grid strong { margin-top: 13px; font-family: "DIN Alternate", "SF Pro Display", Inter, sans-serif; font-size: 25px; font-variant-numeric: tabular-nums; }
.health-grid small { margin-top: 6px; color: #9ba39f; font-size: 7px; }
.status-panel .status-overview { display: grid; min-height: 245px; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 20px; }
.status-panel .status-legend { margin: 0; grid-template-columns: 1fr; }
.donut-shell { position: relative; display: grid; width: 150px; height: 150px; place-items: center; border: 1px solid rgba(40,91,74,.1); border-radius: 50%; box-shadow: inset 0 0 0 7px rgba(43,95,77,.025), 0 0 0 7px rgba(43,95,77,.018); }
.donut-shell::before, .donut-shell::after { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #d29a66; box-shadow: 0 0 8px rgba(210,154,102,.65); content: ''; }
.donut-shell::before { top: 10px; right: 28px; }
.donut-shell::after { bottom: 22px; left: 15px; background: #5d927e; box-shadow: 0 0 8px rgba(93,146,126,.65); }
.donut-shell .donut { width: 126px; height: 126px; box-shadow: 0 12px 28px rgba(25,55,44,.09); }
.donut-shell .donut::before { inset: 15px; }
.donut-center strong { font-family: "DIN Alternate", "SF Pro Display", Inter, sans-serif; font-variant-numeric: tabular-nums; }
.status-panel .legend-row { padding-bottom: 6px; border-bottom: 1px solid rgba(40,91,74,.07); font-family: "SFMono-Regular", Inter, sans-serif; font-size: 8px; }
.ops-activity-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.ops-activity-grid .activity-panel .panel-head { padding: 19px 20px 17px; background: linear-gradient(90deg, rgba(234,240,236,.62), transparent); }
.ops-activity-grid .activity-item { position: relative; min-height: 66px; }
.ops-activity-grid .activity-item::after { position: absolute; width: 0; height: 1px; right: 0; bottom: -1px; left: auto; background: linear-gradient(90deg, transparent, #4e8b74); content: ''; transition: width .3s ease; }
.ops-activity-grid .activity-item:hover::after { width: 100%; right: auto; left: 0; }
.activity-seq { width: 18px; flex: 0 0 auto; color: #a2aaa6 !important; font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px !important; }
.ops-activity-grid .activity-item > strong { color: var(--brand); font-family: "DIN Alternate", "SF Pro Display", Inter, sans-serif; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ops-activity-grid .activity-item:disabled { cursor: default; opacity: 1; }
.ops-activity-grid .activity-item:disabled:hover { background: transparent; }
.order-dot { background: #527f70; box-shadow: 0 0 0 3px #e4eee9; }

/* Full-screen operations command center */
body.operations-mode { background: #061712; }
.operations-mode .main {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(53,126,101,.13), transparent 29%),
    radial-gradient(circle at 18% 72%, rgba(198,143,83,.055), transparent 24%),
    #061712;
}
.operations-mode .admin-experience-banner {
  border-bottom: 1px solid rgba(226,174,108,.16);
  background: linear-gradient(90deg, #1b2a20, #2a2a1c 48%, #1b2a20);
  color: #d9ad75;
  box-shadow: 0 0 28px rgba(211,158,93,.05);
}
.operations-mode .topbar {
  border-bottom-color: rgba(111,201,166,.12);
  background: rgba(5,24,19,.88);
  box-shadow: 0 12px 42px rgba(0,0,0,.2);
  backdrop-filter: blur(22px) saturate(125%);
}
.operations-mode .page-heading .overline { color: #b88b5d; }
.operations-mode .page-heading h1 { color: #edf6f1; text-shadow: 0 0 28px rgba(110,211,173,.1); }
.operations-mode .today { color: rgba(213,231,223,.5); font-family: "SFMono-Regular", Consolas, monospace; }
.operations-mode .icon-button {
  border-color: rgba(116,210,174,.15);
  background: rgba(13,48,38,.72);
  color: #8bc9b2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018), 0 0 24px rgba(72,160,127,.06);
}
.operations-mode .icon-button:hover { border-color: rgba(116,210,174,.3); background: rgba(18,65,51,.86); }
.operations-mode .admin-avatar { border: 1px solid rgba(112,206,170,.12); background: linear-gradient(145deg, #173f34, #0d2c24); color: #a6ddc8; }
.operations-mode .admin-copy b { color: #dcebe5; }
.operations-mode .admin-copy small { color: rgba(220,235,229,.42); }
.operations-mode .operations-content {
  --ink: #e5f1eb;
  --ink-soft: #a9c0b6;
  --muted: #718b80;
  --card: #0b251e;
  --line: rgba(110,196,164,.1);
  --line-strong: rgba(113,205,170,.2);
  --ops-hairline: rgba(106,204,166,.11);
  --ops-glow: rgba(85,209,161,.14);
  color: #e5f1eb;
}
.operations-mode .operations-content::before {
  inset: 0 18px 0;
  background-image:
    linear-gradient(rgba(93,193,155,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,193,155,.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 0, rgba(87,205,160,.09), transparent 43%);
  background-size: 30px 30px, 30px 30px, auto;
  mask-image: linear-gradient(to bottom, #000 0, rgba(0,0,0,.85) 78%, transparent 100%);
}
.operations-mode .operations-content::after {
  position: absolute;
  z-index: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 7%, rgba(95,230,178,.08) 28%, rgba(95,230,178,.34) 50%, rgba(95,230,178,.08) 72%, transparent 93%);
  box-shadow: 0 0 20px rgba(95,230,178,.08);
  content: '';
  inset: 0 22px auto;
  animation: ops-board-scan 10s linear infinite;
}
.operations-mode .operations-content > * { position: relative; z-index: 1; }
@keyframes ops-board-scan {
  from { opacity: 0; transform: translateY(0); }
  8% { opacity: 1; }
  92% { opacity: .7; }
  to { opacity: 0; transform: translateY(1180px); }
}
.operations-mode .ops-hero {
  border-color: rgba(113,225,180,.2);
  background:
    radial-gradient(circle at 84% -14%, rgba(221,168,100,.2), transparent 29%),
    radial-gradient(circle at 10% 120%, rgba(81,222,165,.18), transparent 36%),
    linear-gradient(rgba(103,217,174,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,217,174,.055) 1px, transparent 1px),
    linear-gradient(125deg, #071f19 0%, #0c3026 50%, #124538 100%);
  background-size: auto, auto, 27px 27px, 27px 27px, auto;
  box-shadow: inset 0 0 0 6px rgba(98,210,167,.02), 0 0 0 1px rgba(0,0,0,.35), 0 30px 78px rgba(0,0,0,.36), 0 0 55px rgba(56,171,129,.06);
}
.operations-mode .ops-system-line { border-color: rgba(105,215,173,.12); color: rgba(134,206,178,.4); }
.operations-mode .ops-system-line span:last-child { color: #83d6b7; }
.operations-mode .ops-live {
  border-color: rgba(116,228,184,.21);
  background: linear-gradient(135deg, rgba(67,160,124,.13), rgba(6,31,24,.32));
  box-shadow: inset 0 1px 0 rgba(134,229,192,.09), 0 0 30px rgba(77,203,154,.06);
}
.operations-mode .ops-intel-strip, .operations-mode .range-presets {
  border-color: rgba(109,218,175,.12);
  background: rgba(2,22,16,.43);
  box-shadow: inset 0 1px 0 rgba(131,226,189,.045), 0 15px 30px rgba(0,0,0,.09);
}
.operations-mode .ops-intel-strip > span { border-color: rgba(113,216,175,.09); }
.operations-mode .ops-intel-strip small { color: rgba(137,213,184,.42); }
.operations-mode .ops-intel-strip b { color: #dcece5; }
.operations-mode .range-console { border-top-color: rgba(104,212,169,.11); }
.operations-mode .range-console-label { color: rgba(130,207,178,.44); }
.operations-mode .range-presets button { color: rgba(210,232,223,.55); }
.operations-mode .range-presets button:hover { background: rgba(90,200,158,.08); color: #dff7ee; }
.operations-mode .range-presets button.active {
  border: 1px solid rgba(226,186,135,.55);
  background: linear-gradient(135deg, #f0dcc2, #cfa06d);
  box-shadow: 0 0 25px rgba(221,167,101,.15), inset 0 1px 0 rgba(255,255,255,.65);
  color: #15352c;
}
.operations-mode .range-caption span { color: #e7f2ed; }
.operations-mode .range-caption small { color: rgba(204,229,219,.36); }
.operations-mode .custom-range label { border-color: rgba(108,215,172,.14); background: rgba(4,31,23,.62); }
.operations-mode .custom-range label span { color: rgba(167,215,197,.44); }
.operations-mode .custom-range input { color: #dbede6; }

.operations-mode .ops-metric-card {
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 13%, transparent), transparent 38%),
    linear-gradient(rgba(104,214,171,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104,214,171,.025) 1px, transparent 1px),
    linear-gradient(145deg, rgba(13,43,34,.96), rgba(6,27,21,.96));
  background-size: auto, 22px 22px, 22px 22px, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 48px rgba(0,0,0,.25), 0 0 28px color-mix(in srgb, var(--accent) 5%, transparent);
}
.operations-mode .ops-metric-card:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 25px 55px rgba(0,0,0,.34), 0 0 34px color-mix(in srgb, var(--accent) 9%, transparent);
}
.operations-mode .metric-card-index { color: rgba(142,192,173,.42); }
.operations-mode .ops-metric-card .metric-label { color: #8ea89e; }
.operations-mode .ops-metric-card .metric-label i { border-color: rgba(132,205,177,.19); color: rgba(179,220,204,.55); }
.operations-mode .ops-metric-card .metric-icon { border-color: color-mix(in srgb, var(--accent) 34%, transparent); background: color-mix(in srgb, var(--accent) 10%, rgba(4,24,18,.85)); color: var(--accent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 8%, transparent); }
.operations-mode .ops-metric-card > strong { color: #f0f8f4; text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 17%, transparent); }
.operations-mode .metric-spark-area { opacity: .95; }
.operations-mode .metric-spark-line { filter: drop-shadow(0 0 5px var(--spark-color)); }
.operations-mode .metric-foot > small { color: rgba(181,207,197,.38); }
.operations-mode .metric-change { border-color: rgba(103,219,173,.13); background: rgba(59,150,116,.15); color: #7ed7b5; }
.operations-mode .metric-change.down { border-color: rgba(223,132,125,.13); background: rgba(151,70,67,.16); color: #e59992; }
.operations-mode .metric-change.flat { border-color: rgba(137,164,153,.1); background: rgba(115,139,130,.12); color: #93a99f; }
.operations-mode .metric-change.new { border-color: rgba(228,173,110,.14); background: rgba(155,108,55,.16); color: #e5b67e; }

.operations-mode .trend-panel, .operations-mode .operations-grid > .panel, .operations-mode .ops-activity-grid > .panel {
  border-color: rgba(104,210,169,.13);
  background: linear-gradient(145deg, rgba(10,38,30,.97), rgba(5,25,19,.97));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 22px 58px rgba(0,0,0,.28), 0 0 38px rgba(67,183,140,.035);
}
.operations-mode .trend-panel::before { background: linear-gradient(90deg, #64d3aa, #e0aa6c, transparent); box-shadow: 0 0 14px rgba(101,211,170,.24); }
.operations-mode .trend-head, .operations-mode .ops-activity-grid .activity-panel .panel-head {
  border-color: rgba(105,207,168,.1);
  background: linear-gradient(90deg, rgba(48,126,96,.11), transparent 48%);
}
.operations-mode .trend-head h3, .operations-mode .panel-head h3 { color: #e8f3ee; }
.operations-mode .trend-head > div:first-child > span, .operations-mode .panel-head p { color: #718b80; }
.operations-mode .trend-head .overline, .operations-mode .panel-code { color: #cf9c65 !important; }
.operations-mode .trend-switch { border-color: rgba(100,203,163,.1); background: rgba(3,23,17,.72); }
.operations-mode .trend-switch button { color: #6f897f; }
.operations-mode .trend-switch button:hover { color: #b9d5ca; }
.operations-mode .trend-switch button.active { border: 1px solid rgba(105,218,175,.22); background: rgba(42,112,86,.23); box-shadow: 0 0 20px rgba(85,209,161,.08); color: #7addb7; }
.operations-mode .trend-visual {
  background-color: rgba(1,17,12,.14);
  background-image: linear-gradient(rgba(93,200,158,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(93,200,158,.04) 1px, transparent 1px);
}
.operations-mode .trend-summary span { border-color: rgba(107,207,168,.11); }
.operations-mode .trend-summary small { color: #6f887e; }
.operations-mode .trend-summary strong { color: #e7f4ee; }
.operations-mode .trend-grid line { stroke: rgba(114,209,172,.13); }
.operations-mode .trend-grid text, .operations-mode .trend-point text { fill: #617b71; }
.operations-mode .trend-line { filter: drop-shadow(0 0 7px var(--trend-color)) drop-shadow(0 5px 12px rgba(0,0,0,.25)); }
.operations-mode .trend-point circle { fill: #08271e; filter: drop-shadow(0 0 4px var(--trend-color)); }

.operations-mode .operations-grid .panel-head > span { color: rgba(141,188,170,.46); }
.operations-mode .health-grid > div {
  border-color: rgba(101,202,162,.11);
  background:
    linear-gradient(rgba(102,207,165,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102,207,165,.025) 1px, transparent 1px),
    linear-gradient(145deg, rgba(18,58,45,.74), rgba(7,31,24,.74));
  background-size: 20px 20px, 20px 20px, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.operations-mode .health-grid > div::before { color: rgba(102,211,168,.28); }
.operations-mode .health-grid > div::after { background: linear-gradient(90deg, rgba(92,219,168,.52), transparent); box-shadow: 0 0 10px rgba(92,219,168,.08); }
.operations-mode .health-grid span { color: #7e998e; }
.operations-mode .health-grid strong { color: #edf7f2; }
.operations-mode .health-grid small { color: rgba(172,203,190,.38); }
.operations-mode .donut-shell { border-color: rgba(104,211,168,.17); box-shadow: inset 0 0 0 7px rgba(78,192,148,.025), 0 0 0 7px rgba(78,192,148,.018), 0 0 30px rgba(68,198,148,.06); }
.operations-mode .donut-shell .donut { box-shadow: 0 12px 32px rgba(0,0,0,.27), 0 0 24px rgba(74,203,153,.05); }
.operations-mode .donut-shell .donut::before { background: #08231b; }
.operations-mode .donut-center strong { color: #eef8f3; }
.operations-mode .donut-center span { color: #728c81; }
.operations-mode .status-panel .legend-row { border-color: rgba(107,205,167,.09); color: #80998f; }
.operations-mode .status-panel .legend-row b { color: #dcebe5; }

.operations-mode .activity-panel .panel-head { border-bottom-color: rgba(101,203,163,.1); }
.operations-mode .activity-item { border-bottom-color: rgba(103,202,163,.075); color: #dfece6; }
.operations-mode .activity-item:hover { background: rgba(48,128,97,.1); }
.operations-mode .activity-item b { color: #dcebe5; }
.operations-mode .activity-item span, .operations-mode .activity-item time { color: #6e887e; }
.operations-mode .activity-seq { color: rgba(124,181,159,.42) !important; }
.operations-mode .ops-activity-grid .activity-item > strong { color: #e1b37b; text-shadow: 0 0 14px rgba(225,179,123,.1); }
.operations-mode .activity-dot { border-color: #08231b; box-shadow: 0 0 0 3px rgba(217,148,95,.1), 0 0 10px rgba(217,148,95,.3); }
.operations-mode .order-dot { background: #62d2a8; box-shadow: 0 0 0 3px rgba(98,210,168,.08), 0 0 11px rgba(98,210,168,.38); }
.operations-mode .link-button { color: #78cdae; }
.operations-mode .link-button:hover { color: #a0e4ca; }
.operations-mode .empty { color: #6f887e; }
.operations-mode .empty strong { color: #dcebe5; }

/* Audience intelligence / China geo command center */
.dashboard-tab-shell {
  display: flex;
  min-height: 62px;
  margin-bottom: 12px;
  padding: 6px;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(104,211,168,.14);
  border-radius: 14px 14px 14px 4px;
  background: linear-gradient(90deg, rgba(12,49,39,.96), rgba(5,26,20,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 34px rgba(0,0,0,.2);
}
.dashboard-tabs { display: flex; min-width: 470px; gap: 4px; }
.dashboard-tabs button {
  position: relative;
  display: grid;
  min-width: 220px;
  padding: 8px 18px 8px 45px;
  grid-template-columns: 1fr;
  border: 1px solid transparent;
  border-radius: 9px 9px 9px 3px;
  background: transparent;
  color: rgba(195,218,208,.48);
  text-align: left;
  transition: border-color .22s, background .22s, color .22s;
}
.dashboard-tabs button:hover { border-color: rgba(103,215,171,.12); background: rgba(79,172,136,.06); color: #b9d6cb; }
.dashboard-tabs button.active { border-color: rgba(109,224,178,.22); background: linear-gradient(125deg, rgba(59,149,113,.24), rgba(20,78,60,.12)); box-shadow: inset 0 0 20px rgba(93,212,165,.035), 0 0 24px rgba(80,198,152,.035); color: #edf8f3; }
.dashboard-tabs button::after { position: absolute; width: 38px; height: 1px; right: 0; bottom: 0; background: linear-gradient(90deg, #68d7ad, transparent); content: ''; opacity: 0; }
.dashboard-tabs button.active::after { opacity: .8; }
.dashboard-tabs button > span { position: absolute; left: 16px; top: 14px; color: rgba(113,215,176,.35); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.dashboard-tabs button.active > span { color: #dfab70; text-shadow: 0 0 12px rgba(223,171,112,.35); }
.dashboard-tabs b, .dashboard-tabs small { display: block; }
.dashboard-tabs b { font-family: var(--serif); font-size: 13px; font-weight: 650; letter-spacing: .07em; }
.dashboard-tabs small { margin-top: 3px; color: rgba(157,195,180,.34); font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; font-weight: 700; letter-spacing: .12em; }
.dashboard-tab-status { display: grid; min-width: 220px; padding: 0 16px 0 38px; place-content: center start; border-left: 1px solid rgba(103,209,168,.09); }
.dashboard-tab-status > i { position: absolute; width: 7px; height: 7px; margin: 14px 0 0 -20px; border-radius: 50%; background: #66d7ad; box-shadow: 0 0 0 5px rgba(102,215,173,.08), 0 0 14px rgba(102,215,173,.48); animation: ops-pulse 2.2s ease-in-out infinite; }
.dashboard-tab-status span, .dashboard-tab-status b { display: block; }
.dashboard-tab-status span { color: rgba(116,207,173,.38); font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; letter-spacing: .12em; }
.dashboard-tab-status b { margin-top: 4px; color: #9bc9b7; font-size: 8px; font-weight: 650; }

.insights-hero {
  position: relative;
  overflow: hidden;
  padding: 17px 22px 0;
  border: 1px solid rgba(104,216,172,.19);
  border-radius: 17px 17px 17px 5px;
  background:
    radial-gradient(circle at 77% -35%, rgba(217,163,100,.17), transparent 34%),
    linear-gradient(rgba(95,208,164,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,208,164,.045) 1px, transparent 1px),
    linear-gradient(120deg, rgba(11,49,39,.98), rgba(5,26,20,.98));
  background-size: auto, 25px 25px, 25px 25px, auto;
  box-shadow: inset 0 0 0 5px rgba(94,207,164,.018), 0 22px 54px rgba(0,0,0,.27), 0 0 42px rgba(57,174,131,.045);
}
.insights-hero::before { position: absolute; width: 35%; height: 1px; top: 0; left: 3%; background: linear-gradient(90deg, transparent, #6bd6ad, transparent); box-shadow: 0 0 15px rgba(107,214,173,.3); content: ''; animation: insights-header-scan 6s ease-in-out infinite; }
@keyframes insights-header-scan { 50% { left: 62%; } }
.insights-hero-head { display: flex; padding: 12px 0 10px; align-items: center; justify-content: space-between; gap: 22px; }
.insights-hero-head .overline { color: #c49463; font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; letter-spacing: .15em; }
.insights-hero-head h2 { margin: 5px 0 3px; font-family: var(--serif); font-size: clamp(23px, 2.2vw, 31px); font-weight: 530; letter-spacing: .08em; }
.insights-hero-head > div:first-child > p:last-child { margin: 0; color: #78968a; font-size: 9px; }
.insights-hero-head .ops-live { margin-top: 0; }
.insight-kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(102,211,169,.11); border-radius: 11px 11px 11px 3px; background: rgba(2,20,15,.46); }
.insight-kpi-strip > div { position: relative; min-height: 78px; padding: 9px 15px; border-right: 1px solid rgba(103,210,169,.09); }
.insight-kpi-strip > div:last-child { border-right: 0; }
.insight-kpi-strip > div::after { position: absolute; height: 1px; right: 14px; bottom: 9px; left: 14px; background: linear-gradient(90deg, rgba(102,215,172,.36), transparent); content: ''; }
.insight-kpi-strip span, .insight-kpi-strip small, .insight-kpi-strip strong, .insight-kpi-strip p { display: block; }
.insight-kpi-strip span { color: rgba(119,204,172,.35); font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; letter-spacing: .12em; }
.insight-kpi-strip small { margin-top: 5px; color: #748e84; font-size: 7px; }
.insight-kpi-strip strong { margin-top: 1px; color: #eff8f4; font-family: "DIN Alternate", "SF Pro Display", Inter, sans-serif; font-size: 19px; font-weight: 590; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(103,216,173,.1); }
.insight-kpi-strip p { overflow: hidden; margin: 3px 0 0; color: rgba(157,188,176,.37); font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.insights-range-console { min-height: 46px; margin-top: 7px; padding: 8px 0 10px; }
.insights-range-console .range-presets button { min-height: 27px; padding: 0 10px; }

.insights-command-grid { display: grid; margin-top: 12px; grid-template-columns: minmax(225px, .72fr) minmax(440px, 1.7fr) minmax(250px, .82fr); align-items: stretch; gap: 11px; }
.insights-side-column { display: grid; min-width: 0; grid-template-rows: auto 1fr; gap: 11px; }
.insight-panel { position: relative; overflow: hidden; min-width: 0; border: 1px solid rgba(102,211,169,.13); border-radius: 13px 13px 13px 4px; background: linear-gradient(145deg, rgba(10,39,31,.97), rgba(4,23,17,.98)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 16px 42px rgba(0,0,0,.24), 0 0 26px rgba(67,184,140,.025); }
.insight-panel::before { position: absolute; z-index: 2; width: 44px; height: 1px; top: 0; left: 0; background: linear-gradient(90deg, #65d4aa, transparent); box-shadow: 0 0 11px rgba(101,212,170,.22); content: ''; }
.insight-panel-head { display: flex; min-height: 75px; padding: 14px 15px 11px; align-items: flex-start; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(103,209,168,.09); background: linear-gradient(90deg, rgba(47,124,94,.1), transparent 54%); }
.insight-panel-head p, .insight-panel-head h3, .insight-panel-head span { margin: 0; }
.insight-panel-head p { color: #c89561; font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; font-weight: 700; letter-spacing: .13em; }
.insight-panel-head h3 { margin-top: 5px; color: #e5f2ec; font-family: var(--serif); font-size: 14px; font-weight: 650; letter-spacing: .04em; }
.insight-panel-head span { display: block; overflow: hidden; max-width: 310px; margin-top: 4px; color: #667f75; font-size: 6px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.insight-panel-head > b { padding: 6px 7px; border: 1px solid rgba(105,211,170,.11); border-radius: 6px 6px 6px 2px; color: rgba(130,199,174,.45); font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; letter-spacing: .08em; white-space: nowrap; }

.gender-panel { min-height: 325px; }
.audience-donut-wrap { display: grid; padding: 20px 10px 15px; place-items: center; }
.audience-donut { position: relative; display: grid; width: 138px; height: 138px; place-items: center; border-radius: 50%; background: var(--audience-donut); filter: drop-shadow(0 0 14px rgba(97,212,168,.12)); }
.audience-donut::before { position: absolute; border: 1px solid rgba(104,214,171,.14); border-radius: 50%; box-shadow: 0 0 0 8px rgba(82,195,151,.025), 0 0 30px rgba(83,205,157,.08); content: ''; inset: -9px; }
.audience-donut::after { position: absolute; border-radius: 50%; background: radial-gradient(circle, #0b2b22, #061c16); box-shadow: inset 0 0 22px rgba(89,199,157,.07); content: ''; inset: 20px; }
.audience-donut > div { position: relative; z-index: 1; text-align: center; }
.audience-donut strong, .audience-donut span { display: block; }
.audience-donut strong { color: #f0f8f4; font-family: "DIN Alternate", "SF Pro Display", Inter, sans-serif; font-size: 25px; font-weight: 600; }
.audience-donut span { margin-top: 3px; color: #6d897e; font-size: 7px; }
.audience-legend { display: grid; padding: 0 15px 14px; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.audience-legend > div { display: grid; min-width: 0; padding: 6px 0; grid-template-columns: 7px minmax(0,1fr) auto; align-items: center; gap: 5px; border-bottom: 1px solid rgba(101,205,165,.075); color: #769085; font-size: 7px; }
.audience-legend i { width: 5px; height: 5px; border-radius: 50%; background: var(--legend-color); box-shadow: 0 0 8px color-mix(in srgb, var(--legend-color) 65%, transparent); }
.audience-legend b { color: #dcebe5; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.audience-legend small { grid-column: 2 / 4; color: rgba(118,144,133,.45); font-size: 6px; }
.age-bars { display: grid; padding: 15px; gap: 12px; }
.age-bars > div { display: grid; grid-template-columns: minmax(0,1fr) 34px; gap: 4px 8px; }
.age-bars > div > div { display: flex; grid-column: 1 / 3; align-items: center; justify-content: space-between; }
.age-bars span, .age-bars b, .age-bars small { font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; }
.age-bars span { color: #819a90; }
.age-bars b { color: #dcebe5; font-size: 8px; }
.age-bars > div > i, .province-list > div > i, .city-ranking section > i { display: block; overflow: hidden; height: 4px; border-radius: 4px; background: rgba(101,200,161,.08); }
.age-bars em, .province-list em, .city-ranking em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #357b61, #65d4aa); box-shadow: 0 0 8px rgba(101,212,170,.3); }
.age-bars small { color: #9a7652; text-align: right; }

.china-map-panel { min-height: 690px; }
.china-map-panel .insight-panel-head { position: relative; z-index: 4; }
.china-map-stage { position: relative; display: grid; min-height: 555px; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 52% 46%, rgba(55,151,113,.14), transparent 48%), linear-gradient(rgba(83,185,146,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(83,185,146,.035) 1px, transparent 1px); background-size: auto, 26px 26px, 26px 26px; }
.china-map-stage::before { position: absolute; z-index: 3; height: 1px; top: 0; right: 8%; left: 8%; background: linear-gradient(90deg, transparent, rgba(109,225,180,.65), transparent); box-shadow: 0 0 15px rgba(109,225,180,.26); content: ''; animation: map-scan 7s linear infinite; }
@keyframes map-scan { from { opacity: 0; transform: translateY(5px); } 8%, 88% { opacity: .72; } to { opacity: 0; transform: translateY(530px); } }
.map-radar { position: absolute; width: 440px; height: 440px; border: 1px solid rgba(101,212,170,.045); border-radius: 50%; box-shadow: 0 0 0 70px rgba(101,212,170,.015), 0 0 0 140px rgba(101,212,170,.009); }
.map-radar::before, .map-radar::after { position: absolute; background: rgba(105,214,173,.05); content: ''; }
.map-radar::before { width: 1px; top: 0; bottom: 0; left: 50%; }
.map-radar::after { height: 1px; right: 0; top: 50%; left: 0; }
.china-map-visual { position: relative; z-index: 4; width: 94%; aspect-ratio: 760 / 570; transform: translateX(0); transition: width .28s cubic-bezier(.22,.72,.22,1), transform .28s cubic-bezier(.22,.72,.22,1); }
.china-map-stage.card-open .china-map-visual { width: 54%; }
.china-map-stage.card-dock-right .china-map-visual { transform: translateX(-42%); }
.china-map-visual > img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0,0,0,.28)); }
.china-map-hit-layer { position: absolute; z-index: 2; width: 100%; height: 100%; inset: 0; overflow: visible; }
.province-hit { fill: rgba(101,212,170,.001); stroke: rgba(101,212,170,0); stroke-width: 1.15; vector-effect: non-scaling-stroke; cursor: crosshair; pointer-events: all; transition: fill .2s ease, stroke .2s ease, filter .2s ease; }
.province-hit:hover, .province-hit.active, .province-hit:focus { fill: rgba(101,212,170,.15); stroke: rgba(244,195,139,.98); filter: drop-shadow(0 0 4px rgba(228,173,112,.65)) drop-shadow(0 0 10px rgba(101,212,170,.38)); outline: none; }
.china-map-visual .city-node { position: absolute; z-index: 3; width: 0; height: 0; pointer-events: none; }
.china-map-visual .city-node > i { position: absolute; display: grid; width: var(--node-size); height: var(--node-size); place-items: center; border: 1px solid rgba(246,215,174,.9); border-radius: 50%; background: #e4ad70; box-shadow: 0 0 8px rgba(228,173,112,.72); transform: translate(-50%, -50%); }
.china-map-visual .city-node > i::before { position: absolute; border: 1px solid rgba(102,215,173,.62); border-radius: 50%; background: rgba(102,215,173,.08); content: ''; inset: -65%; animation: city-ripple 2.5s ease-out infinite; animation-delay: var(--node-delay); }
.china-map-visual .city-node > i > em { width: 3px; height: 3px; border-radius: 50%; background: #fff3df; box-shadow: 0 0 6px #fff; }
.china-map-visual .city-node > span { position: absolute; min-width: max-content; left: calc(var(--node-size) / 2 + 5px); top: -5px; color: #b4d3c6; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; line-height: 1; text-shadow: -1px -1px 0 #031610, 1px -1px 0 #031610, -1px 1px 0 #031610, 1px 1px 0 #031610; }
.province-hover-card { position: absolute; z-index: 6; width: min(250px, 42%); max-height: calc(100% - 56px); top: 50%; padding: 14px; overflow: hidden; border: 1px solid rgba(139,229,194,.28); border-radius: 14px 14px 14px 4px; background: radial-gradient(circle at 100% 0, rgba(224,169,109,.13), transparent 36%), linear-gradient(145deg, rgba(8,42,33,.91), rgba(3,20,15,.94)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 48px rgba(0,0,0,.42), 0 0 28px rgba(79,193,150,.1); opacity: 0; visibility: hidden; pointer-events: auto; transform-origin: center; transition: opacity .18s ease, transform .22s cubic-bezier(.22,.72,.22,1), visibility .18s; -webkit-backdrop-filter: blur(18px) saturate(135%); backdrop-filter: blur(18px) saturate(135%); }
.province-hover-card::before { position: absolute; width: 40%; height: 1px; top: -1px; left: 14px; background: linear-gradient(90deg, #67d8ad, rgba(103,216,173,0)); box-shadow: 0 0 10px rgba(103,216,173,.5); content: ''; }
.province-hover-card.dock-right { right: 12px; left: auto; transform: translate(10px, -50%) scale(.985); }
.province-hover-card.visible.dock-right { opacity: 1; visibility: visible; transform: translate(0, -50%) scale(1); }
.province-card-signal, .province-card-signal > span, .province-card-title, .province-card-metrics, .province-city-head, .province-city-row > span { display: flex; align-items: center; }
.province-card-signal { padding-bottom: 9px; justify-content: space-between; border-bottom: 1px solid rgba(111,216,175,.11); }
.province-card-signal > span { gap: 6px; color: rgba(134,218,185,.56); font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; letter-spacing: .12em; }
.province-card-signal i { width: 5px; height: 5px; border-radius: 50%; background: #6de0b4; box-shadow: 0 0 10px rgba(109,224,180,.88); animation: signal-pulse 1.8s ease-in-out infinite; }
.province-card-signal > b { padding: 3px 6px; border: 1px solid rgba(226,174,117,.22); border-radius: 5px 5px 5px 2px; background: rgba(226,174,117,.08); color: #dfad70; font-size: 6px; font-weight: 650; }
.province-card-title { min-width: 0; padding: 12px 1px 11px; justify-content: space-between; gap: 10px; }
.province-card-title > div { min-width: 0; }
.province-card-title h4 { margin: 0; color: #f0f7f3; font-family: var(--serif); font-size: 21px; font-weight: 620; letter-spacing: .04em; }
.province-card-title p { overflow: hidden; margin: 4px 0 0; color: #718f83; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.province-card-title > span { color: #f0bb7d; font-family: "DIN Alternate", Inter, sans-serif; font-size: 24px; line-height: .9; text-align: right; text-shadow: 0 0 18px rgba(228,173,112,.2); }
.province-card-title > span small { display: block; margin-top: 5px; color: rgba(214,232,224,.56); font-family: Inter, sans-serif; font-size: 6px; font-weight: 500; }
.province-card-metrics { display: grid; padding: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid rgba(106,214,171,.1); border-radius: 8px 8px 8px 3px; background: rgba(96,195,158,.035); }
.province-card-metrics > div { padding: 2px 8px; border-right: 1px solid rgba(110,214,174,.09); }
.province-card-metrics > div:last-child { border-right: 0; }
.province-card-metrics small, .province-card-metrics b { display: block; }
.province-card-metrics small { color: #668176; font-size: 6px; }
.province-card-metrics b { margin-top: 4px; color: #deebe5; font-family: "DIN Alternate", Inter, sans-serif; font-size: 14px; }
.province-city-head { margin-top: 11px; padding: 0 1px 6px; justify-content: space-between; color: rgba(112,202,167,.55); font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; letter-spacing: .08em; }
.province-city-head b { color: rgba(225,174,117,.58); font-size: 6px; }
.province-city-list { display: grid; max-height: 222px; overflow-x: hidden; overflow-y: auto; gap: 3px; scrollbar-color: rgba(104,212,170,.24) transparent; scrollbar-width: thin; }
.province-city-row { display: grid; min-height: 32px; padding: 0 8px; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; gap: 7px; border: 1px solid rgba(113,207,171,.07); border-radius: 6px 6px 6px 2px; background: rgba(255,255,255,.025); }
.province-city-row.has-transactions { border-color: rgba(226,174,117,.18); background: linear-gradient(90deg, rgba(101,212,170,.055), rgba(226,174,117,.06)); }
.province-city-row > span { min-width: 0; gap: 7px; }
.province-city-row i { color: rgba(108,203,166,.34); font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; font-style: normal; }
.province-city-row b { overflow: hidden; color: #bcd3ca; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.province-city-row em { color: #f0bb7d; font-family: "DIN Alternate", Inter, sans-serif; font-size: 9px; font-style: normal; text-align: right; white-space: nowrap; }
.province-city-empty { display: grid; min-height: 70px; padding: 12px; place-content: center; border: 1px dashed rgba(105,210,168,.12); border-radius: 7px; background: rgba(255,255,255,.018); text-align: center; }
.province-city-empty b { color: #acc5bb; font-size: 7px; }
.province-city-empty span { margin-top: 4px; color: #5c776d; font-size: 6px; }
.province-card-hint { display: flex; margin-top: 9px; align-items: center; gap: 6px; color: rgba(111,145,132,.62); font-size: 5px; }
.province-card-hint i { width: 4px; height: 4px; border-radius: 50%; background: #65d4aa; box-shadow: 0 0 8px rgba(101,212,170,.52); }
.china-map-svg { position: relative; z-index: 2; display: block; width: 94%; height: 540px; overflow: visible; }
.china-province { fill: url(#provinceFill); stroke: rgba(111,221,179,.58); stroke-width: .72; vector-effect: non-scaling-stroke; transition: fill .2s, stroke .2s; }
.china-province:hover { fill: #19503f; stroke: #82e5bf; }
.china-map-provinces { filter: url(#mapGlow) drop-shadow(0 18px 20px rgba(0,0,0,.28)); }
.city-point { fill: #e4ad70; stroke: #f6d7ae; stroke-width: 1.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px #e4ad70); }
.city-ripple { fill: rgba(102,215,173,.11); stroke: rgba(102,215,173,.55); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: city-ripple 2.5s ease-out infinite; animation-delay: var(--node-delay); }
@keyframes city-ripple { from { opacity: .85; transform: scale(.45); } to { opacity: 0; transform: scale(1.45); } }
.city-node text { fill: #b4d3c6; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; paint-order: stroke; stroke: rgba(3,22,16,.95); stroke-width: 3px; stroke-linejoin: round; }
.map-coordinate { position: absolute; z-index: 3; display: grid; left: 15px; bottom: 16px; padding-left: 10px; border-left: 1px solid rgba(104,214,171,.32); }
.map-coordinate span, .map-coordinate b { display: block; font-family: "SFMono-Regular", Consolas, monospace; }
.map-coordinate span { color: rgba(110,200,166,.36); font-size: 6px; letter-spacing: .12em; }
.map-coordinate b { margin-top: 4px; color: #708e82; font-size: 7px; }
.map-legend { position: absolute; z-index: 3; display: flex; right: 15px; bottom: 17px; align-items: center; gap: 6px; color: #758f84; font-size: 7px; }
.map-legend i { width: 6px; height: 6px; border-radius: 50%; background: #e4ad70; box-shadow: 0 0 9px rgba(228,173,112,.6); }
.map-empty { position: absolute; z-index: 1; display: grid; top: 14px; right: 14px; padding: 9px 12px; place-items: center; border: 1px solid rgba(106,212,170,.12); border-radius: 9px 9px 9px 3px; background: rgba(5,27,21,.72); pointer-events: none; }
.map-empty b { color: #dcebe5; font-size: 9px; }
.map-empty span { margin-top: 4px; color: #6e887e; font-size: 7px; }
.map-foot { display: flex; min-height: 59px; padding: 0 16px; align-items: center; gap: 18px; border-top: 1px solid rgba(103,209,168,.09); color: #6d867c; font-size: 7px; }
.map-foot span { display: flex; align-items: center; gap: 6px; }
.map-foot i { width: 5px; height: 5px; border: 1px solid #65d4aa; border-radius: 50%; }
.map-foot span:nth-child(2) i { border-color: #dfad70; }
.map-foot b { margin-left: auto; color: #9ab8ac; font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; }

.city-ranking { display: grid; padding: 10px 14px 14px; gap: 8px; }
.city-ranking > div { display: grid; min-height: 40px; grid-template-columns: 21px minmax(0, 1fr) 26px; align-items: center; gap: 7px; }
.city-ranking > div > span { color: rgba(111,197,165,.37); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; }
.city-ranking section { min-width: 0; }
.city-ranking header { display: flex; margin-bottom: 5px; align-items: center; justify-content: space-between; gap: 6px; }
.city-ranking header b { color: #cfe1da; font-size: 8px; }
.city-ranking header small { overflow: hidden; color: #607a70; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.city-ranking > div > strong { color: #dfad70; font-family: "DIN Alternate", Inter, sans-serif; font-size: 11px; text-align: right; }
.city-ranking section > i { height: 3px; }
.city-ranking em { background: linear-gradient(90deg, #355e9f, #65d4aa); }
.province-list { display: grid; padding: 12px 14px 14px; gap: 11px; }
.province-list header { display: flex; margin-bottom: 5px; align-items: center; justify-content: space-between; }
.province-list header span { color: #859d93; font-size: 7px; }
.province-list header b { color: #d9e8e1; font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; }
.province-list > div > i { height: 3px; }
.province-list small { display: block; margin-top: 4px; color: rgba(123,151,140,.42); font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; text-align: right; }
.insight-empty { display: grid !important; min-height: 120px !important; padding: 18px; grid-template-columns: 1fr !important; place-content: center; text-align: center; }
.insight-empty b { color: #ccded6; font-size: 9px; }
.insight-empty span { margin-top: 4px; color: #617b71; font-size: 7px; }

.audience-signal-strip { display: grid; min-height: 110px; margin-top: 11px; padding: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(300px, 1.5fr); align-items: stretch; gap: 1px; border: 1px solid rgba(102,211,169,.12); border-radius: 13px 13px 13px 4px; background: rgba(5,25,19,.95); box-shadow: 0 14px 38px rgba(0,0,0,.22); }
.audience-signal-strip > div { display: grid; padding: 8px 15px; align-content: center; border-right: 1px solid rgba(103,209,168,.08); }
.audience-signal-strip span, .audience-signal-strip b, .audience-signal-strip small { display: block; }
.audience-signal-strip > div > span { color: rgba(112,199,166,.36); font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; letter-spacing: .12em; }
.audience-signal-strip > div > b { margin-top: 5px; color: #e2eee8; font-family: var(--serif); font-size: 15px; }
.audience-signal-strip > div > small { margin-top: 4px; color: #637e73; font-size: 6px; }
.audience-signal-strip > p { display: flex; margin: 0; padding: 12px 16px; align-items: center; gap: 7px; color: #6e897e; font-size: 7px; line-height: 1.6; }
.audience-signal-strip > p > i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #65d4aa; box-shadow: 0 0 12px rgba(101,212,170,.46); }
.audience-signal-strip > p > span { color: #c69665; font-family: "SFMono-Regular", Consolas, monospace; font-size: 6px; white-space: nowrap; }

/* Tables and form controls */
.table-panel { margin-top: 0; padding: 0; overflow: hidden; }
.content > .table-panel { margin-top: 0; }
.dashboard-lower .table-panel { margin: 0; }
.table-toolbar { display: flex; min-height: 72px; padding: 15px 20px; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.table-toolbar h3 { margin: 0; font-family: var(--serif); font-size: 17px; }
.toolbar-title { display: flex; align-items: center; gap: 10px; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; }
.toolbar-button, .upload-button { display: inline-flex; min-height: 39px; padding: 0 14px; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-size: 9px; font-weight: 750; white-space: nowrap; }
.toolbar-button:hover, .upload-button:hover { background: var(--brand-deep); }
.catalog-switch { display: flex; padding: 12px 20px 0; gap: 4px; border-bottom: 1px solid var(--line); background: #fafbf8; }
.catalog-switch button { min-width: 88px; height: 38px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 10px; font-weight: 750; }
.catalog-switch button.active { border-bottom-color: var(--brand); color: var(--brand); }
.count-pill { display: inline-flex; min-width: 23px; height: 20px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-light); color: var(--brand); font-size: 9px; font-weight: 750; }
.search { width: min(260px, 42vw); height: 39px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #f7f8f5; font-size: 10px; }
.search:focus { border-color: #7fa597; background: #fff; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.data-table th { height: 40px; padding: 0 15px; background: #f5f6f3; color: #909994; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-align: left; white-space: nowrap; }
.data-table td { height: 62px; padding: 10px 15px; border-top: 1px solid #eaede8; vertical-align: middle; }
.data-table tbody tr { transition: background .18s; }
.data-table tbody tr:hover { background: #f7f8f5; }
.cell-person, .product-cell { display: flex; align-items: center; gap: 10px; }
.cell-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #e4eee9; color: var(--brand); font-family: var(--serif); font-size: 12px; font-weight: 700; }
.cell-avatar.order { background: var(--amber-light); color: #a6673d; font-family: Georgia, serif; font-size: 10px; }
.cell-title { font-size: 10px; font-weight: 750; }
.cell-sub { margin-top: 4px; color: var(--muted); font-size: 8px; }
.money { color: var(--brand); font-family: Georgia, serif; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge { display: inline-flex; min-height: 22px; padding: 4px 8px; align-items: center; border: 1px solid #dce8e2; border-radius: 7px; background: #edf4f0; color: var(--brand); font-size: 8px; font-weight: 700; white-space: nowrap; }
.badge.warn { border-color: #f0dfca; background: #fbf1e4; color: #9d6c3d; }
.badge.danger { border-color: #efd8d5; background: #f9e9e7; color: var(--danger); }
.badge.muted { border-color: #e1e3e0; background: #efefed; color: #767d79; }
.link-button { min-height: 30px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; color: var(--brand); font-size: 9px; font-weight: 750; white-space: nowrap; }
.link-button:hover { background: var(--brand-light); }
.danger-link { color: var(--danger); }
.danger-link:hover { background: #f9e9e7; }
.compact-select, .compact-input { height: 31px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fff; font-size: 9px; }
.compact-input { width: 68px; padding: 0 8px; }
.compact-select { max-width: 112px; padding: 0 24px 0 8px; }
.row-actions { display: flex; align-items: center; gap: 3px; }
.readonly-banner { display: flex; margin-bottom: 16px; padding: 12px 15px; align-items: center; gap: 9px; border: 1px solid #dfd6c7; border-radius: 12px; background: #fbf6ee; color: #795f47; font-size: 11px; line-height: 1.6; }
.readonly-banner::before { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #eee0cc; content: "阅"; font-size: 9px; font-weight: 800; }
.access-pending-card { max-width: 760px; margin: 28px auto 0; padding: 28px; }
.access-pending-head { display: flex; align-items: center; gap: 13px; }
.access-pending-head .cell-avatar { width: 48px; height: 48px; font-size: 18px; }
.access-pending-head > div { min-width: 0; flex: 1; }
.access-pending-head p { margin: 0 0 4px; color: var(--muted); font-size: 7px; font-weight: 750; letter-spacing: .16em; }
.access-pending-head h2 { margin: 0; font-family: var(--serif); font-size: 21px; }
.access-pending-head div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.access-pending-card .readonly-banner { margin: 22px 0 0; }
.access-pending-grid { display: grid; margin-top: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.access-pending-grid span { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf7; }
.access-pending-grid small, .access-pending-grid b { display: block; }
.access-pending-grid small { color: var(--muted); font-size: 8px; }
.access-pending-grid b { margin-top: 6px; color: var(--ink); font-size: 11px; }
.access-pending-foot { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.access-pending-foot strong, .access-pending-foot span { display: block; }
.access-pending-foot strong { font-size: 11px; }
.access-pending-foot span { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.staff-list { display: grid; padding: 18px; gap: 14px; }
.staff-card { padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.staff-card.fixed { background: #f7faf7; }
.staff-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.staff-identity { display: flex; align-items: center; gap: 11px; }
.staff-identity .cell-avatar { width: 38px; height: 38px; }
.staff-meta { display: grid; grid-template-columns: minmax(160px, 1fr) 150px 120px; gap: 12px; margin-top: 16px; }
.staff-meta label, .staff-password { display: grid; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.staff-meta input, .staff-meta select, .staff-password input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; font-size: 11px; }
.permission-title { margin: 19px 0 9px; color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.permission-module { display: flex; min-height: 46px; padding: 8px 10px; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #f9faf7; }
.permission-module > span { font-size: 10px; font-weight: 700; }
.permission-module > span small { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; font-weight: 500; }
.permission-module.view-only { border-color: #dbcdb9; background: #fbf6ee; }
.permission-checks { display: flex; gap: 9px; }
.permission-checks label { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; }
.permission-checks input { accent-color: var(--brand); }
.staff-actions { display: grid; margin-top: 13px; grid-template-columns: minmax(180px, 1fr) auto; align-items: end; gap: 12px; }
.staff-actions .toolbar-button { height: 40px; }
.material-thumb { width: 36px; height: 36px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(42,66,56,.12)); }
.work-thumb { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 9px; object-fit: cover; }
.material-placeholder, .work-placeholder { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px dashed var(--line-strong); border-radius: 10px; background: #f2f3ef; color: var(--brand); }
.work-placeholder { width: 44px; height: 44px; background: var(--brand-light); }
.color-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.color-cell i { width: 23px; height: 23px; flex: 0 0 auto; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.color-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }
.empty { padding: 62px 20px; color: var(--muted); font-size: 10px; text-align: center; }
.empty strong { display: block; margin-bottom: 7px; color: var(--ink); font-family: var(--serif); font-size: 18px; }
.loading-card { display: grid; min-height: 260px; place-items: center; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--muted); font-size: 10px; }
.loading-card span { display: flex; align-items: center; gap: 9px; }
.loading-card i { width: 13px; height: 13px; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Blind box operations */
.blind-admin { display: grid; gap: 17px; }
.blind-control-card { display: grid; overflow: hidden; min-height: 235px; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .7fr); border-radius: 19px; background: linear-gradient(135deg, #173f35, #234f43); color: #fff; box-shadow: var(--shadow-sm); }
.blind-control-main { position: relative; overflow: hidden; padding: 28px 31px; }
.blind-control-main::after { position: absolute; width: 260px; height: 260px; right: -105px; bottom: -150px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.018); content: ''; }
.blind-title-row { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.blind-title-row h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 600; }
.blind-title-row p { margin: 7px 0 0; color: rgba(255,255,255,.55); font-size: 9px; }
.blind-title-row .round-base-styles { max-width: 760px; color: rgba(255,255,255,.68); line-height: 1.6; }
.blind-title-row .badge { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; }
.blind-progress { position: relative; z-index: 1; height: 8px; margin-top: 28px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.1); }
.blind-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d89b61, #f0d3a0); box-shadow: 0 0 16px rgba(238,201,145,.28); }
.blind-live-metrics { position: relative; z-index: 1; display: grid; margin-top: 23px; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.blind-live-metrics div { padding-right: 12px; border-right: 1px solid rgba(255,255,255,.1); }
.blind-live-metrics div:last-child { border-right: 0; }
.blind-live-metrics strong, .blind-live-metrics span { display: block; }
.blind-live-metrics strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.blind-live-metrics span { margin-top: 5px; color: rgba(255,255,255,.43); font-size: 8px; }
.blind-control-side { display: flex; padding: 24px; justify-content: center; flex-direction: column; gap: 12px; border-left: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.09); }
.setting-switch { display: grid; min-height: 63px; padding: 12px 13px; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.045); cursor: pointer; }
.setting-switch > div b, .setting-switch > div span { display: block; }
.setting-switch > div b { font-size: 10px; }
.setting-switch > div span { margin-top: 4px; color: rgba(255,255,255,.38); font-size: 8px; }
.setting-switch input, .mini-switch input { position: absolute; opacity: 0; pointer-events: none; }
.apple-switch { position: relative; width: 42px; height: 24px; border-radius: 20px; background: rgba(255,255,255,.18); transition: .2s; }
.apple-switch::after { position: absolute; width: 19px; height: 19px; top: 2.5px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.2); content: ''; transition: .2s; }
.setting-switch input:checked + .apple-switch { background: #d39a63; }
.setting-switch input:checked + .apple-switch::after { transform: translateX(17px); }
.setting-switch input:disabled + .apple-switch { opacity: .35; }
.blind-actions { display: grid; margin-top: 3px; grid-template-columns: 1fr 1fr; gap: 8px; }
.blind-actions .toolbar-button, .skip-button { min-height: 38px; padding: 0 10px; border-radius: 10px; font-size: 8px; }
.blind-actions .toolbar-button { background: #d2935c; }
.skip-button { border: 1px solid rgba(255,255,255,.16); background: transparent; color: rgba(255,255,255,.72); }
.blind-admin-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr); gap: 17px; }
.blind-board-panel { min-width: 0; }
.admin-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-board { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #f8f9f6; }
.admin-board:last-child:nth-child(odd) { grid-column: 1 / -1; }
.admin-board-head { display: flex; margin-bottom: 10px; align-items: center; justify-content: space-between; }
.admin-board-head b { color: var(--brand); font-family: Georgia, serif; font-size: 9px; letter-spacing: .1em; }
.admin-board-head span { color: var(--muted); font-size: 7px; }
.admin-box-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; }
.admin-box { position: relative; display: grid; min-width: 0; aspect-ratio: 1; padding: 3px; place-items: center; border: 1px solid #dce4df; border-radius: 7px; background: #fff; color: #8b9691; }
.admin-box span { position: absolute; left: 4px; top: 3px; font-family: Georgia, serif; font-size: 6px; }
.admin-box i { font-size: 11px; font-style: normal; }
.admin-box.opened { border-color: #9fbcaf; background: #e3efe9; color: var(--brand); }
.admin-box.locked { border-color: #e6c69e; background: #fbf0e2; color: #a86e3c; }
.admin-box em { position: absolute; display: grid; width: 13px; height: 13px; right: -4px; top: -5px; place-items: center; border: 1px solid #fff; border-radius: 50%; background: #b78347; color: #fff; font-size: 6px; font-style: normal; }
.round-history-list { display: grid; gap: 8px; }
.round-history-item { display: grid; padding: 11px; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: #f8f9f6; }
.round-number { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: var(--brand-light); color: var(--brand); font-family: Georgia, serif; font-size: 12px; }
.round-history-item b, .round-history-item div span { display: block; }
.round-history-item b { font-size: 9px; }
.round-history-item div span { margin-top: 4px; color: var(--muted); font-size: 7px; }
.base-schedule-panel { overflow: hidden; }
.schedule-notice { display: flex; margin-bottom: 14px; padding: 12px 14px; align-items: flex-start; gap: 11px; border-radius: 11px; background: #edf4f0; }
.schedule-notice b { flex: 0 0 auto; color: var(--brand); font-size: 9px; }
.schedule-notice span { color: var(--muted); font-size: 8px; line-height: 1.55; }
.base-schedule-list { display: grid; gap: 10px; }
.base-schedule-row { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9f6; }
.base-schedule-head { display: flex; margin-bottom: 11px; align-items: flex-end; justify-content: space-between; gap: 12px; }
.base-schedule-head label, .base-style-selects label { min-width: 0; color: var(--muted); font-size: 7px; }
.base-schedule-head label span, .base-style-selects label span { display: block; margin-bottom: 5px; }
.base-schedule-head input, .base-style-selects select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fff; font-size: 8px; }
.base-schedule-head input:focus, .base-style-selects select:focus { border-color: #7fa597; box-shadow: 0 0 0 3px rgba(71,120,103,.08); }
.base-style-selects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.base-schedule-row p { margin: 10px 0 0; color: var(--muted); font-size: 7px; line-height: 1.55; }
.base-schedule-actions { display: flex; margin-top: 14px; align-items: center; justify-content: space-between; }
.compact-empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: 11px; color: var(--muted); font-size: 9px; text-align: center; }
.gift-config-panel { overflow: hidden; }
.next-round-fields { display: grid; margin-bottom: 18px; grid-template-columns: minmax(180px, .4fr) minmax(0, 1fr); align-items: stretch; gap: 13px; }
.next-round-fields > label { padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 8px; }
.next-round-fields input { display: block; width: 100%; height: 36px; margin-top: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 10px; }
.gift-guidance { padding: 14px; border-radius: 11px; background: #edf4f0; }
.gift-guidance b, .gift-guidance span { display: block; }
.gift-guidance b { color: var(--brand); font-size: 9px; }
.gift-guidance span { margin-top: 6px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.gift-table-head, .gift-editor-row { display: grid; grid-template-columns: 1.1fr 95px 72px 60px 1.4fr 44px 45px; align-items: center; gap: 7px; }
.gift-table-head { padding: 0 7px 8px; color: var(--muted); font-size: 7px; }
.gift-editor { display: grid; gap: 7px; }
.gift-editor-row { padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #f8f9f6; }
.gift-editor-row > input, .gift-editor-row > select { width: 100%; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fff; font-size: 8px; }
.mini-switch { position: relative; display: block; cursor: pointer; }
.mini-switch span { position: relative; display: block; width: 34px; height: 20px; border-radius: 14px; background: #ccd2ce; transition: .2s; }
.mini-switch span::after { position: absolute; width: 16px; height: 16px; top: 2px; left: 2px; border-radius: 50%; background: #fff; content: ''; transition: .2s; }
.mini-switch input:checked + span { background: var(--brand); }
.mini-switch input:checked + span::after { transform: translateX(14px); }
.gift-config-actions { display: flex; margin-top: 14px; align-items: center; justify-content: space-between; }
.danger-text { color: var(--danger) !important; font-weight: 750; }
.audit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.audit-list > div { display: flex; min-height: 53px; padding: 11px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #f8f9f6; }
.audit-list > div > i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #d0925d; box-shadow: 0 0 0 4px var(--amber-light); }
.audit-list b, .audit-list small { display: block; }
.audit-list b { font-size: 8px; }
.audit-list small { margin-top: 4px; color: var(--muted); font-size: 7px; }

/* Support */
.split-support { display: grid; height: calc(100vh - 150px); min-height: 580px; grid-template-columns: 340px minmax(0, 1fr); overflow: hidden; padding: 0; }
.ticket-list { overflow: auto; border-right: 1px solid var(--line); background: #fafbf8; }
.ticket-list-title { position: sticky; z-index: 2; top: 0; display: flex; height: 66px; padding: 0 17px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(250,251,248,.94); backdrop-filter: blur(10px); }
.ticket-list-title b { font-family: var(--serif); font-size: 14px; }
.ticket-item { position: relative; display: block; width: 100%; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.ticket-item::before { position: absolute; width: 3px; left: 0; top: 13px; bottom: 13px; border-radius: 3px; background: var(--brand); content: ""; opacity: 0; }
.ticket-item:hover { background: #f4f7f3; }
.ticket-item.active { background: #eaf2ed; }
.ticket-item.active::before { opacity: 1; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-top b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-item p { overflow: hidden; margin: 7px 0 0; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.chat { display: flex; min-width: 0; flex-direction: column; background: #f5f6f3; }
.chat-head { display: flex; height: 66px; padding: 0 19px; flex: 0 0 auto; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--card); }
.chat-head h3 { margin: 0; font-size: 11px; }
.chat-messages { display: flex; overflow: auto; padding: 22px; flex: 1; flex-direction: column; gap: 13px; background-image: radial-gradient(#daddd8 .6px, transparent .6px); background-size: 16px 16px; }
.bubble { max-width: min(72%, 520px); padding: 10px 13px; align-self: flex-start; border: 1px solid #e5e8e3; border-radius: 5px 13px 13px; background: #fff; box-shadow: 0 5px 14px rgba(33,45,39,.045); font-size: 10px; line-height: 1.65; }
.bubble.service { align-self: flex-end; border-color: var(--brand); border-radius: 13px 5px 13px 13px; background: var(--brand); color: #fff; }
.bubble time { display: block; margin-top: 5px; color: #a2a6a3; font-size: 7px; }
.bubble.service time { color: rgba(255,255,255,.5); }
.reply-box { display: flex; padding: 13px; flex: 0 0 auto; gap: 9px; border-top: 1px solid var(--line); background: var(--card); }
.reply-box textarea { height: 64px; padding: 10px 12px; flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #f8f9f6; font-size: 10px; }
.reply-box textarea:focus { border-color: #7fa597; background: #fff; }
.reply-box button { width: 68px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; }

/* Drawer */
.drawer { position: fixed; z-index: 40; inset: 0; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(14,31,25,.34); backdrop-filter: blur(3px); }
.drawer aside { position: absolute; overflow: auto; width: min(620px, 96vw); padding: 33px; top: 0; right: 0; bottom: 0; background: var(--paper); box-shadow: -20px 0 70px rgba(17,38,30,.18); animation: slideIn .24s ease-out; }
@keyframes slideIn { from { transform: translateX(24px); opacity: .65; } }
.drawer-close { position: absolute; display: grid; width: 32px; height: 32px; top: 19px; right: 21px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--muted); font-size: 17px; }
.detail-title { margin: 6px 0 25px; font-family: var(--serif); font-size: 25px; }
.detail-block { margin: 13px 0; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.detail-block h4 { margin: 0 0 13px; font-size: 11px; }
.detail-row { display: flex; margin: 9px 0; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.detail-row b { color: var(--ink); text-align: right; }
.customization-detail { padding: 19px; }
.blind-order-product { display: grid; overflow: hidden; margin-bottom: 14px; padding: 13px; grid-template-columns: 150px minmax(0, 1fr); align-items: stretch; gap: 15px; border: 1px solid #e4ddcf; border-radius: 15px; background: linear-gradient(135deg, #fffdfa, #f4f0e8); box-shadow: 0 11px 28px rgba(78,61,40,.07); }
.blind-product-photo { position: relative; display: grid; overflow: hidden; min-height: 142px; place-items: center; border: 1px solid rgba(148,122,88,.14); border-radius: 12px; background: radial-gradient(circle at 38% 28%, #fff, #eee9df 72%, #e2ded5); }
.blind-product-photo img { display: block; width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 9px 13px rgba(49,57,52,.16)); }
.blind-product-mini-ring { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.98), rgba(255,255,255,.08) 66%); }
.blind-product-mini-ring::before { position: absolute; border: 1px solid rgba(130,105,73,.26); border-radius: 50%; content: ''; inset: 17%; box-shadow: 0 0 0 3px rgba(255,255,255,.44); }
.blind-mini-gem { position: absolute; aspect-ratio: 1; }
.blind-mini-gem img, .blind-mini-gem .production-image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; object-fit: contain; border-radius: 50%; color: #315f52; font-family: var(--serif); font-size: 7px; filter: drop-shadow(0 2px 2px rgba(35,52,45,.25)); }
.blind-mini-gem.is-charm img, .blind-mini-gem.is-charm .production-image-placeholder { border-radius: 20%; }
.blind-product-photo > small { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 999px; background: rgba(35,75,63,.86); color: #fff; font-size: 6px; font-weight: 800; letter-spacing: .08em; }
.blind-product-photo.is-empty > span { color: #9a9389; font-family: var(--serif); font-size: 12px; }
.blind-product-copy { display: flex; min-width: 0; padding: 4px 0; justify-content: center; flex-direction: column; }
.blind-product-overline { color: #9a7452; font-size: 7px; font-weight: 850; letter-spacing: .15em; }
.blind-product-copy h5 { margin: 7px 0 5px; font-family: var(--serif); font-size: 18px; font-weight: 650; }
.blind-product-copy p { margin: 0; color: #748079; font-size: 8px; line-height: 1.65; }
.blind-product-copy > small { margin-top: 8px; color: #958d83; font-size: 7px; }
.blind-product-tags { display: flex; margin-top: 10px; flex-wrap: wrap; gap: 5px; }
.blind-product-tags i { padding: 4px 7px; border: 1px solid #ded8cd; border-radius: 999px; background: rgba(255,255,255,.65); color: #596860; font-size: 7px; font-style: normal; font-weight: 700; }
.production-design { overflow: hidden; margin: 0 -3px 18px; padding: 17px; border: 1px solid #dce5df; border-radius: 15px; background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(239,244,240,.9)); box-shadow: 0 12px 32px rgba(43,72,62,.07); }
.production-design-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.production-design-head > div span, .production-design-head > div b { display: block; }
.production-design-head > div span { margin-bottom: 5px; color: #73847d; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.production-design-head > div b { font-family: var(--serif); font-size: 15px; }
.production-design-head em { padding: 5px 8px; border: 1px solid #cedfd7; border-radius: 999px; background: #edf5f1; color: #416b5d; font-size: 7px; font-style: normal; font-weight: 800; white-space: nowrap; }
.order-design-stage { position: relative; width: min(390px, 94%); aspect-ratio: 1; margin: 13px auto 5px; border-radius: 50%; background: radial-gradient(circle at 38% 31%, #fffefa 0, #f8f4ec 42%, #e9eee9 72%, #dfe7e2 100%); box-shadow: inset 0 0 0 1px rgba(69,93,83,.08), inset 0 -17px 36px rgba(59,80,70,.08), 0 18px 38px rgba(38,59,51,.09); }
.order-design-glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 66%); }
.order-design-string { position: absolute; inset: 15%; border: 2px solid rgba(121,103,75,.3); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.42), inset 0 0 11px rgba(81,70,52,.08); }
.order-design-gem { position: absolute; aspect-ratio: 1; transform-origin: center; }
.order-design-image { position: absolute; display: block; inset: 0; transform-origin: 50% 50%; }
.order-design-image img, .order-design-image .production-image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; object-fit: contain; border-radius: 50%; color: #365f55; font-family: var(--serif); font-size: 10px; filter: drop-shadow(0 3px 3px rgba(28,43,37,.25)) saturate(1.06) contrast(1.04); }
.order-design-gem.is-charm .order-design-image img, .order-design-gem.is-charm .order-design-image .production-image-placeholder { border-radius: 20%; }
.order-design-gem > i { position: absolute; z-index: 3; display: grid; min-width: 17px; height: 17px; padding: 0 3px; top: -7px; right: -7px; place-items: center; border: 1px solid rgba(255,255,255,.84); border-radius: 999px; background: #315f52; box-shadow: 0 3px 8px rgba(37,68,59,.24); color: #fff; font-size: 6px; font-style: normal; font-weight: 800; letter-spacing: -.03em; }
.order-design-center { position: absolute; display: flex; inset: 35%; align-items: center; justify-content: center; flex-direction: column; border: 1px solid rgba(72,104,92,.12); border-radius: 50%; background: rgba(255,255,255,.68); box-shadow: 0 8px 22px rgba(46,73,63,.07); backdrop-filter: blur(5px); color: #315f52; }
.order-design-center strong { font-family: Georgia, serif; font-size: 20px; line-height: 1; }
.order-design-center strong small { margin-left: 2px; font-size: 8px; font-weight: 500; }
.order-design-center > span { margin-top: 6px; color: #849089; font-size: 7px; letter-spacing: .08em; }
.production-direction { display: flex; margin: 8px 0 13px; align-items: center; justify-content: space-between; color: #718078; font-size: 8px; }
.production-direction b { color: #315f52; font-size: 8px; }
.production-direction span:first-child i { display: inline-grid; width: 20px; height: 20px; margin-right: 4px; place-items: center; border-radius: 50%; background: #315f52; color: #fff; font-style: normal; font-weight: 800; }
.production-meta { display: grid; padding: 11px 0; border-top: 1px solid #e1e8e3; border-bottom: 1px solid #e1e8e3; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.production-meta span { min-width: 0; }
.production-meta span:not(:last-child) { border-right: 1px solid #e1e8e3; }
.production-meta small, .production-meta b { display: block; }
.production-meta small { margin-bottom: 5px; color: #89938e; font-size: 7px; }
.production-meta b { overflow: hidden; padding-right: 4px; color: #34453e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.production-sequence-title { display: flex; margin: 13px 0 9px; align-items: center; justify-content: space-between; }
.production-sequence-title span { color: #34453e; font-size: 9px; font-weight: 800; }
.production-sequence-title small { color: #8d9691; font-size: 7px; }
.production-sequence { display: flex; overflow-x: auto; padding: 1px 1px 8px; gap: 8px; scroll-snap-type: x proximity; }
.production-sequence-item { width: 88px; padding: 8px; flex: 0 0 88px; scroll-snap-align: start; border: 1px solid #e2e8e4; border-radius: 10px; background: rgba(255,255,255,.82); }
.sequence-thumb { position: relative; display: grid; width: 100%; aspect-ratio: 1; margin-bottom: 7px; place-items: center; border-radius: 8px; background: radial-gradient(circle at 38% 30%, #fff, #ece9e2); }
.sequence-thumb img, .sequence-thumb .production-image-placeholder { display: grid; width: 82%; height: 82%; place-items: center; object-fit: contain; border-radius: 50%; color: #315f52; font-family: var(--serif); }
.sequence-thumb i { position: absolute; display: grid; min-width: 18px; height: 18px; padding: 0 3px; top: 4px; left: 4px; place-items: center; border-radius: 999px; background: #315f52; color: #fff; font-size: 6px; font-style: normal; font-weight: 800; }
.production-sequence-item > b, .production-sequence-item > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-sequence-item > b { color: #34453e; font-size: 8px; }
.production-sequence-item > small { margin-top: 4px; color: #89938e; font-size: 7px; }
.production-design-warning { display: flex; margin-bottom: 16px; padding: 13px; flex-direction: column; gap: 6px; border: 1px solid #ead8c0; border-radius: 11px; background: #fff8ed; color: #916b3f; font-size: 8px; line-height: 1.55; }
.production-design-warning b { color: #72502d; font-size: 9px; }
.materials-summary-head { display: flex; margin-top: 2px; padding: 10px 0 7px; justify-content: space-between; border-bottom: 1px solid var(--line); color: #86918b; font-size: 8px; font-weight: 700; }
.blind-materials-head { margin-top: 0; }
.blind-material-list { display: grid; gap: 0; }
.blind-material-row { display: grid; min-height: 64px; padding: 9px 0; align-items: center; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 11px; border-bottom: 1px solid #e7e9e4; }
.blind-material-thumb { display: grid; overflow: hidden; width: 46px; height: 46px; place-items: center; border: 1px solid #e2e4df; border-radius: 12px; background: radial-gradient(circle at 38% 28%, #fff, #ece9e2); color: #315f52; font-family: var(--serif); font-size: 13px; }
.blind-material-thumb img { display: block; width: 84%; height: 84%; object-fit: contain; }
.blind-material-row > span:nth-child(2) b, .blind-material-row > span:nth-child(2) small { display: block; }
.blind-material-row > span:nth-child(2) b { color: #34453e; font-size: 9px; }
.blind-material-row > span:nth-child(2) small { margin-top: 5px; color: #8b948f; font-size: 7px; }
.blind-material-row > em { min-width: 46px; padding: 6px 9px; border-radius: 999px; background: #e8f0ec; color: #315f52; font-size: 8px; font-style: normal; font-weight: 850; text-align: center; }
.material-summary-row { align-items: center; }
.material-summary-row b { display: flex; min-width: 130px; align-items: center; justify-content: flex-end; gap: 22px; }
.material-summary-row b i { min-width: 35px; color: #64756d; font-style: normal; font-weight: 700; text-align: right; }
.order-total-row { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.detail-note { width: 100%; height: 82px; padding: 11px; resize: vertical; }
.badge.logistics-pending { border-color: #eadfce; background: #faf2e6; color: #946d3c; }
.badge.logistics-preparing { border-color: #d9e6e0; background: #edf4f0; color: #477063; }
.badge.logistics-in_transit { border-color: #dce3ed; background: #edf1f7; color: #586d8b; }
.badge.logistics-delivered { border-color: #cfe2d9; background: #e6f1ec; color: #315f52; }
.badge.logistics-exception { border-color: #ebd4cf; background: #f8e9e6; color: #98584e; }
.delivery-summary { display: grid; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.delivery-summary > div { min-width: 0; }
.delivery-summary span, .delivery-summary b { display: block; }
.delivery-summary > div > span { margin-bottom: 6px; color: var(--muted); font-size: 8px; }
.delivery-summary b { overflow: hidden; color: var(--ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.delivery-latest { margin: 12px 0 4px; padding: 11px 12px; border-radius: 9px; background: var(--brand-light); color: #48685e; font-size: 9px; line-height: 1.55; }
.detail-timeline { display: grid; margin-top: 11px; gap: 0; }
.detail-timeline > div { position: relative; display: grid; min-height: 43px; grid-template-columns: 15px 1fr; gap: 8px; }
.detail-timeline > div:not(:last-child)::after { position: absolute; top: 15px; bottom: -3px; left: 4px; width: 1px; background: #dce5e0; content: ''; }
.detail-timeline i { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 3px; border: 2px solid #8caaa0; border-radius: 50%; background: #fff; }
.detail-timeline b, .detail-timeline small { display: block; }
.detail-timeline b { color: var(--ink-soft); font-size: 9px; }
.detail-timeline small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.logistics-editor .compact-input { width: min(230px, 58%); }
.logistics-editor .detail-note { margin-top: 12px; }
.order-workbench { display: grid; gap: 18px; }
.after-sale-panel { overflow: hidden; }
.after-sale-panel .panel-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.after-sale-list { display: grid; }
.after-sale-row { display: grid; min-height: 66px; padding: 10px 18px; align-items: center; grid-template-columns: 32px minmax(0, 1fr) auto 90px; gap: 11px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.after-sale-row:hover { background: #f7faf7; }
.after-sale-row > span:nth-child(2) b, .after-sale-row > span:nth-child(2) small { display: block; }
.after-sale-row > span:nth-child(2) b { font-size: 10px; }
.after-sale-row > span:nth-child(2) small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.after-sale-row time { color: var(--muted); font-size: 8px; text-align: right; }
.cell-avatar.after-sale { background: #f5ead8; color: #9a6e38; }
.workflow-action { width: 100%; min-height: 38px; margin: 0 0 13px; border: 1px solid #c9ddd5; border-radius: 10px; background: linear-gradient(180deg, #edf6f2, #dfece7); color: var(--brand); font-size: 9px; font-weight: 800; }
.after-sale-editor .compact-input { width: min(260px, 64%); }
.after-sale-editor .detail-note + .detail-note { margin-top: 9px; }
.drawer .primary-button { justify-content: center; }
.editor-form { padding-bottom: 24px; }
.image-editor { display: grid; margin-bottom: 18px; padding: 14px; grid-template-columns: 132px 1fr; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.image-preview { display: grid; overflow: hidden; height: 124px; place-items: center; border-radius: 12px; background: radial-gradient(circle at 36% 28%, #fff, #e8e5dd); color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.image-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.work-preview img { object-fit: contain; }
.image-editor p { margin: 9px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.upload-button { min-height: 34px; cursor: pointer; }
.visually-hidden { position: absolute !important; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid label { color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea { display: block; width: 100%; min-height: 40px; margin-top: 6px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fff; color: var(--ink); font: inherit; font-weight: 500; }
.form-grid textarea { min-height: 88px; padding-top: 10px; resize: vertical; line-height: 1.6; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #7fa597; box-shadow: 0 0 0 3px rgba(71,120,103,.08); }
.form-grid input:disabled, .form-grid select:disabled { background: #f1f2ef; color: var(--muted); }
.span-2 { grid-column: 1 / -1; }
.check-row { display: flex; margin: 18px 0 0; padding: 13px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #f7f8f5; color: var(--ink-soft); font-size: 9px; line-height: 1.5; }
.check-row input { accent-color: var(--brand); }
.editor-fieldset { margin: 18px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.editor-fieldset legend { padding: 0 7px; color: var(--ink-soft); font-size: 9px; font-weight: 800; }
.color-tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.color-tag-picker label, .material-pick { cursor: pointer; }
.color-tag-picker input, .material-pick > input { position: absolute; overflow: hidden; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.color-tag-picker span { display: block; min-width: 52px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #f7f6f2; color: var(--muted); font-size: 8px; font-weight: 700; text-align: center; }
.color-tag-picker input:checked + span { border-color: var(--brand); background: #e5eeea; color: var(--brand); box-shadow: 0 0 0 2px rgba(54,95,85,.07); }
.material-picker-grid { display: grid; max-height: 350px; overflow-y: auto; padding: 2px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.material-pick-card { display: grid; min-height: 116px; padding: 8px 7px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #f9f7f2; text-align: center; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.material-pick-card img { width: 57px; height: 57px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(35,46,41,.14)); }
.material-pick-card b { width: 100%; overflow: hidden; color: var(--ink-soft); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.material-pick-card small { color: var(--muted); font-size: 7px; }
.material-pick input:checked + .material-pick-card { border-color: var(--brand); background: #edf3f0; box-shadow: 0 0 0 2px rgba(54,95,85,.08); transform: translateY(-1px); }
.editor-switches { display: grid; margin-top: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.editor-switches .check-row { min-height: 76px; margin: 0; align-items: flex-start; }
.editor-switches .check-row span, .editor-switches .check-row b, .editor-switches .check-row small { display: block; }
.editor-switches .check-row b { color: var(--ink); font-size: 9px; }
.editor-switches .check-row small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.editor-form .primary-button { margin-top: 14px; }
.editor-form .primary-button:disabled { cursor: wait; opacity: .58; }

@media (max-width: 1200px) {
  .insights-command-grid { grid-template-columns: 1fr 1fr; }
  .china-map-panel { grid-column: 1 / -1; grid-row: 1; }
  .insights-side-column { grid-row: 2; }
  .insights-side-column.right { grid-column: 2; }
  .audience-signal-strip { grid-template-columns: repeat(3, 1fr); }
  .audience-signal-strip > p { grid-column: 1 / -1; border-top: 1px solid rgba(103,209,168,.08); }
}

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 224px minmax(0, 1fr); }
  .sidebar { padding-right: 13px; padding-left: 13px; }
  .hero-card { grid-template-columns: 1fr 220px; }
  .dashboard-grid, .dashboard-lower { grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .ops-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .range-console { align-items: flex-start; flex-wrap: wrap; }
  .range-caption { align-items: flex-start; flex: 1 0 100%; }
  .data-table { min-width: 760px; }
  .admin-box-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 960px) {
  .permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-meta { grid-template-columns: 1fr 1fr; }
  .operations-grid { grid-template-columns: 1fr; }
  .trend-head { align-items: flex-start; flex-direction: column; }
  .dashboard-tab-status { display: none; }
  .dashboard-tabs { width: 100%; min-width: 0; }
  .dashboard-tabs button { min-width: 0; flex: 1; }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; padding: 34px 25px; }
  .login-meta { display: none; }
  .mobile-brand { display: flex; margin-bottom: 48px; align-items: center; gap: 12px; }
  .mobile-brand .brand-mark { background: var(--brand); }
  .login-copyright { right: 25px; bottom: 24px; left: 25px; text-align: center; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; width: 100%; height: 66px; min-height: 0; padding: 7px 10px; right: 0; bottom: 0; top: auto; background: rgba(19,55,47,.96); backdrop-filter: blur(16px); }
  .side-brand, .workspace-card, .nav-label, .side-foot { display: none; }
  .sidebar nav { display: flex; overflow-x: auto; overflow-y: hidden; height: 100%; margin-right: 0; padding-right: 0; align-items: center; justify-content: flex-start; gap: 2px; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar nav button { width: 70px; min-height: 52px; padding: 4px 0; flex: 0 0 70px; justify-content: center; flex-direction: column; gap: 1px; border-radius: 10px; }
  .sidebar nav button::before { width: 16px; height: 2px; left: 50%; top: -2px; transform: translateX(-50%) scaleX(.5); }
  .sidebar nav button.active::before { transform: translateX(-50%) scaleX(1); }
  .nav-icon { width: 24px; height: 23px; background: transparent; font-size: 14px; }
  .active .nav-icon { background: transparent; }
  .nav-copy b { font-size: 8px; }
  .nav-copy small { display: none; }
  .sidebar nav em { position: absolute; min-width: 15px; height: 15px; padding: 0 4px; top: 3px; right: 18%; font-size: 7px; line-height: 15px; }
  .topbar { height: 78px; padding: 0 18px; }
  .page-heading h1 { font-size: 21px; }
  .top-actions .today, .admin-copy { display: none; }
  .content { padding: 18px 14px 84px; }
  .hero-card { min-height: 240px; padding: 26px; grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ops-hero { padding: 23px 20px 19px; }
  .ops-hero-head { flex-direction: column; }
  .ops-live { width: 100%; margin-top: 0; }
  .ops-intel-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-intel-strip > span:nth-child(2) { border-right: 0; }
  .ops-intel-strip > span:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.07); }
  .range-console { display: grid; }
  .range-console-label { display: none; }
  .range-presets { width: 100%; }
  .custom-range { flex-wrap: wrap; }
  .ops-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-summary { gap: 12px; }
  .trend-summary span { min-width: 0; flex: 1; }
  .ops-activity-grid { grid-template-columns: 1fr; }
  .insight-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-kpi-strip > div:nth-child(2) { border-right: 0; }
  .insight-kpi-strip > div:nth-child(-n+2) { border-bottom: 1px solid rgba(103,210,169,.09); }
  .insights-command-grid { grid-template-columns: 1fr; }
  .china-map-panel { grid-column: 1; grid-row: 1; min-height: 620px; }
  .insights-side-column, .insights-side-column.right { grid-column: 1; grid-row: auto; }
  .china-map-stage { min-height: 500px; }
  .china-map-svg { height: 490px; }
  .china-map-visual { width: 90%; }
  .audience-signal-strip { grid-template-columns: 1fr; }
  .audience-signal-strip > div { border-right: 0; border-bottom: 1px solid rgba(103,209,168,.08); }
  .audience-signal-strip > p { grid-column: 1; }
  .metric-card { min-height: 125px; padding: 16px; }
  .dashboard-grid, .dashboard-lower { grid-template-columns: 1fr; gap: 12px; }
  .blind-control-card, .blind-admin-grid { grid-template-columns: 1fr; }
  .blind-control-side { border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
  .gift-table-head { display: none; }
  .base-style-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-editor-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-list { grid-template-columns: 1fr 1fr; }
  .table-panel { overflow: hidden; }
  .table-scroll { overflow-x: auto; }
  .split-support { height: auto; min-height: 650px; grid-template-columns: 1fr; }
  .ticket-list { max-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat { min-height: 480px; }
}

@media (max-width: 480px) {
  .login-card h2 { font-size: 34px; }
  .permission-grid, .staff-meta, .staff-actions { grid-template-columns: 1fr; }
  .staff-head { flex-direction: column; }
  .access-pending-card { margin-top: 0; padding: 20px; }
  .access-pending-grid { grid-template-columns: 1fr; }
  .hero-copy h2 { font-size: 25px; }
  .hero-actions { flex-wrap: wrap; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card strong { font-size: 21px; }
  .range-presets { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .range-presets::-webkit-scrollbar { display: none; }
  .range-presets button { flex: 0 0 auto; }
  .custom-range label { width: calc(50% - 12px); }
  .custom-range label input { width: 100%; min-width: 0; }
  .custom-range > button { width: 100%; }
  .ops-system-line { gap: 12px; font-size: 6px; letter-spacing: .1em; }
  .ops-hero-head .overline { margin-top: 20px; }
  .ops-hero-head h2 { font-size: 27px; }
  .dashboard-tab-shell { min-height: 0; }
  .dashboard-tabs button { padding: 9px 8px 9px 34px; }
  .dashboard-tabs button > span { left: 10px; }
  .dashboard-tabs small { display: none; }
  .insights-hero { padding: 15px 14px 0; }
  .insights-hero-head { align-items: flex-start; flex-direction: column; }
  .insights-hero-head .ops-live { width: 100%; }
  .china-map-stage { min-height: 420px; }
  .china-map-svg { width: 100%; height: 410px; }
  .china-map-visual { width: 100%; }
  .map-coordinate, .map-legend { display: none; }
  .ops-intel-strip > span { padding: 11px 10px; }
  .ops-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-metric-card { min-height: 184px; padding: 13px 13px 14px; }
  .ops-metric-card:last-child { grid-column: 1 / -1; }
  .ops-metric-card > strong { overflow: hidden; font-size: clamp(19px, 5.4vw, 24px); text-overflow: ellipsis; white-space: nowrap; }
  .metric-sparkline { height: 28px; }
  .metric-foot { align-items: flex-start; flex-direction: column; }
  .metric-foot > small { display: none; }
  .trend-switch { width: 100%; }
  .trend-switch button { flex: 1 0 30%; }
  .trend-visual { padding-right: 14px; padding-left: 14px; }
  .trend-summary { display: grid; grid-template-columns: repeat(3, 1fr); }
  .trend-summary strong { font-size: 12px; }
  .health-grid { grid-template-columns: 1fr 1fr; }
  .status-panel .status-overview { grid-template-columns: 1fr; }
  .bar-chart { gap: 7px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions { width: 100%; flex-wrap: wrap; }
  .toolbar-actions .search { flex: 1; }
  .search { width: 100%; }
  .drawer aside { padding: 30px 20px; }
  .blind-order-product { grid-template-columns: 120px minmax(0, 1fr); gap: 11px; }
  .blind-product-photo { min-height: 120px; }
  .image-editor { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .material-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .editor-switches { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .admin-boards, .next-round-fields, .audit-list { grid-template-columns: 1fr; }
  .base-style-selects { grid-template-columns: 1fr; }
  .base-schedule-head, .base-schedule-actions { align-items: stretch; flex-direction: column; }
  .blind-live-metrics { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.admin-experience-banner { padding: 8px 24px; background: #fff3dd; color: #825b27; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-align: center; }
