/* ==========================================================================
   一方 YIFANG · Platform (PC Web Admin)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body.adm {
  font-family: var(--font-sans);
  background: var(--adm-bg);
  color: var(--adm-ink);
  -webkit-font-smoothing: antialiased;
  font-size: 13.5px;
  line-height: 1.5;
  overflow: hidden;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================ Boot veil ============================ */
.adm-boot {
  position: fixed; inset: 0; z-index: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: #15181d; color: #cfc8b8;
  transition: opacity 260ms ease, visibility 260ms ease;
}
.adm-boot.out { opacity: 0; visibility: hidden; }
.adm-boot-mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(158deg, #2b2f38, #16181e);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.12);
}
.adm-boot-mark span { font-family: var(--font-serif); font-size: 21px; font-weight: 600; color: #f3e8cf; }
.adm-boot-txt { font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: #6f6a5e; }

/* ============================ Login ============================ */
.adm-login {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: 1fr 480px;
  background: #f4f5f7;
}
.adm-login-art {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 55% at 78% 8%, rgba(194,160,97,0.24) 0%, rgba(194,160,97,0) 62%),
    radial-gradient(60% 50% at 8% 96%, rgba(63,107,91,0.20) 0%, rgba(63,107,91,0) 66%),
    linear-gradient(158deg, #1c1f26 0%, #12141a 54%, #0c0e12 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 56px 60px;
  color: #f2eee3;
}
.adm-login-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.045) 0.5px, transparent 0.5px);
  background-size: 3px 3px; opacity: 0.55;
}
.adm-login-brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.adm-mark {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: linear-gradient(158deg, #2b2f38, #16181e);
  display: grid; place-items: center; position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.12), 0 10px 24px -14px rgba(0,0,0,0.9);
}
.adm-mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 76% 14%, rgba(216,189,138,0.5), transparent 62%);
}
.adm-mark span { font-family: var(--font-serif); font-size: 20px; color: #f3e8cf; position: relative; z-index: 1; font-weight: 600; }
.adm-login-brand b { font-size: 16px; letter-spacing: 0.06em; font-weight: 600; display: block; }
.adm-login-brand small { font-size: 10.5px; letter-spacing: 0.22em; color: #7e7a6e; text-transform: uppercase; }

.adm-login-copy { position: relative; z-index: 1; max-width: 520px; }
.adm-login-copy h1 {
  font-family: var(--font-serif); font-size: 40px; line-height: 1.34;
  letter-spacing: 0.02em; font-weight: 500; color: #f5f1e6;
}
.adm-login-copy p { margin-top: 18px; font-size: 13.5px; line-height: 1.9; color: #a8a396; max-width: 420px; }
.adm-login-stats { display: flex; gap: 40px; margin-top: 44px; position: relative; z-index: 1; }
.adm-login-stats div b {
  display: block; font-family: var(--font-num); font-size: 26px; font-weight: 650;
  letter-spacing: -0.02em; color: #f0e6cd; font-variant-numeric: tabular-nums;
}
.adm-login-stats div span { font-size: 11px; color: #7e7a6e; letter-spacing: 0.06em; }
.adm-login-foot { position: relative; z-index: 1; font-size: 11px; color: #625f57; letter-spacing: 0.04em; }

.adm-login-form {
  background: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: 0 56px; border-left: 1px solid var(--adm-line);
}
.adm-login-form h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.adm-login-form > p { font-size: 12.5px; color: var(--adm-muted); margin-top: 7px; }
.adm-login-form form { margin-top: 34px; }
.adm-login-form .fg { margin-bottom: 16px; }
.adm-login-form label { display: block; font-size: 12px; font-weight: 600; color: #4b5260; margin-bottom: 7px; }
.adm-login-form input {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 7px;
  border: 1px solid #d8dce3; background: #fdfdfe; outline: none; font-size: 13.5px;
  transition: border-color 150ms, box-shadow 150ms;
}
.adm-login-form input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(194,160,97,0.18); background: #fff; }
.adm-login-form .row2 { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 22px; }
.adm-login-form .row2 label { display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: 12px; color: #5d6472; margin: 0; cursor: pointer; }
.adm-login-form .row2 input[type=checkbox] { width: 14px; height: 14px; accent-color: #1a1d23; }
.adm-login-form .row2 a { font-size: 12px; color: var(--gold-700); }
.adm-btn-login {
  width: 100%; height: 46px; border-radius: 7px; font-size: 14px; font-weight: 600;
  background: linear-gradient(168deg, #232730, #14161c); color: #f6f2e8;
  box-shadow: 0 1px 2px rgba(18,20,26,0.2);
  transition: transform 130ms, background 130ms;
}
.adm-btn-login:active { transform: scale(0.99); }
.adm-login-tip { margin-top: 20px; font-size: 11.5px; color: #9aa0ab; line-height: 1.8; text-align: center; }

/* ============================ Shell ============================ */
.adm-shell { display: grid; grid-template-columns: 218px 1fr; height: 100vh; }
.adm-shell.collapsed { grid-template-columns: 60px 1fr; }

/* ---- Sidebar ---- */
.adm-side {
  background: var(--adm-sidebar);
  display: flex; flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.045);
}
.adm-side-top {
  height: 60px; flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,0.055);
}
.adm-side-top .adm-mark { width: 30px; height: 30px; border-radius: 8px; }
.adm-side-top .adm-mark span { font-size: 15px; }
.adm-side-brand { min-width: 0; }
.adm-side-brand b { display: block; font-size: 13px; color: #edeaE1; letter-spacing: 0.05em; font-weight: 600; white-space: nowrap; }
.adm-side-brand small { display: block; font-size: 9px; color: #6a6a63; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.collapsed .adm-side-brand { display: none; }

.adm-nav { flex: 1; overflow-y: auto; padding: 10px 8px 20px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.adm-nav::-webkit-scrollbar { width: 4px; }
.adm-nav::-webkit-scrollbar-thumb { background: #33373f; border-radius: 3px; }

.adm-nav-group { margin-top: 14px; }
.adm-nav-group:first-child { margin-top: 2px; }
.adm-nav-label {
  padding: 0 10px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #5c6068; margin-bottom: 6px; white-space: nowrap;
}
.collapsed .adm-nav-label { text-align: center; font-size: 8px; letter-spacing: 0; opacity: 0.5; }

.adm-nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 36px; padding: 0 10px; border-radius: 7px;
  color: #a2a7b1; font-size: 13px; font-weight: 500;
  transition: background 140ms, color 140ms;
  position: relative; white-space: nowrap;
}
.adm-nav-item:hover { background: var(--adm-sidebar-hover); color: #e6e3da; }
.adm-nav-item.on { background: rgba(194,160,97,0.14); color: #edd9a8; }
.adm-nav-item.on::before {
  content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px;
  width: 2.5px; border-radius: 0 2px 2px 0; background: var(--gold-500);
}
.adm-nav-item .ico { color: inherit; opacity: 0.86; }
.adm-nav-item .nbadge {
  margin-left: auto; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 4px;
  background: rgba(255,255,255,0.1); color: #b9bdc6; font-size: 10px; font-weight: 650;
  display: grid; place-items: center; line-height: 17px;
}
.adm-nav-item.on .nbadge { background: rgba(194,160,97,0.24); color: #f0dcae; }
.collapsed .adm-nav-item { justify-content: center; padding: 0; }
.collapsed .adm-nav-item span.lbl, .collapsed .adm-nav-item .nbadge { display: none; }

.adm-side-foot { flex: none; padding: 10px 8px 12px; border-top: 1px solid rgba(255,255,255,0.055); }
.adm-user {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px; border-radius: 7px; transition: background 140ms;
}
.adm-user:hover { background: var(--adm-sidebar-hover); }
.adm-user .av {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(150deg, #d3b478, #a8843f); color: #241d0f;
  font-size: 11.5px; font-weight: 700;
}
.adm-user .uinfo { min-width: 0; text-align: left; }
.adm-user .uinfo b { display: block; font-size: 12px; color: #e2dfd6; font-weight: 600; white-space: nowrap; }
.adm-user .uinfo small { display: block; font-size: 10px; color: #6f7279; white-space: nowrap; }
.collapsed .adm-user .uinfo { display: none; }
.collapsed .adm-user { justify-content: center; }

/* ---- Main ---- */
.adm-main { display: flex; flex-direction: column; overflow: hidden; background: var(--adm-bg); }

.adm-top {
  height: 58px; flex: none; background: #fff;
  border-bottom: 1px solid var(--adm-line);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
}
.adm-crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #8b919c; }
.adm-crumb b { color: var(--adm-ink); font-weight: 600; font-size: 14px; }
.adm-crumb .sep { color: #c9ced6; }
.adm-top-spacer { flex: 1; }

.adm-search {
  display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px;
  border-radius: 7px; background: #f4f5f7; border: 1px solid transparent;
  width: 208px; transition: all 150ms; color: #9aa0ab;
}
.adm-search:focus-within { background: #fff; border-color: #d8dce3; box-shadow: 0 0 0 3px rgba(20,22,26,0.04); }
.adm-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 12.5px; color: var(--adm-ink); }
.adm-search input::placeholder { color: #a8aeb8; }

.adm-icon-btn {
  width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center;
  color: #5d6472; position: relative; transition: background 140ms;
}
.adm-icon-btn:hover { background: #f1f2f4; }
.adm-icon-btn .dot {
  position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 1.5px #fff;
}

/* 返回用户端 */
.adm-back-app {
  display: inline-flex; align-items: center; gap: 5px; height: 32px;
  padding: 0 12px 0 10px; margin-left: 4px;
  border: 1px solid var(--adm-line); border-radius: 7px;
  background: #fff; color: #4a505c;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: background 140ms, border-color 140ms, color 140ms;
}
.adm-back-app:hover { background: #fdf9ef; border-color: #e6d8b8; color: var(--gold-700); }
.adm-back-app svg { flex: none; }
@media (max-width: 900px) { .adm-back-app span { display: none; } .adm-back-app { padding: 0 8px; } }

.adm-body { flex: 1; overflow-y: auto; padding: 22px 24px 40px; }
.adm-body::-webkit-scrollbar { width: 9px; }
.adm-body::-webkit-scrollbar-thumb { background: #d3d7dd; border-radius: 5px; border: 2px solid var(--adm-bg); }
.adm-body::-webkit-scrollbar-track { background: transparent; }

/* ============================ Page head ============================ */
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.pg-head h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.pg-head .sub { font-size: 12.5px; color: var(--adm-muted); margin-top: 5px; }
.pg-actions { display: flex; align-items: center; gap: 8px; }

/* ============================ Buttons ============================ */
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: all 140ms;
}
.b:active { transform: scale(0.985); }
.b-primary { background: #1a1d23; color: #f6f2e8; box-shadow: 0 1px 2px rgba(18,20,26,0.18); }
.b-primary:hover { background: #262a32; }
.b-gold { background: linear-gradient(168deg, #d3b478, #b8944c); color: #241d0f; }
.b-gold:hover { filter: brightness(1.04); }
.b-ghost { background: #fff; color: #3d434f; border: 1px solid #d8dce3; }
.b-ghost:hover { border-color: #bcc2cb; background: #fcfcfd; }
.b-soft { background: #f1f2f4; color: #3d434f; }
.b-soft:hover { background: #e9ebee; }
.b-danger { background: #fff; color: var(--danger); border: 1px solid #f0d5d2; }
.b-danger:hover { background: #fdf4f3; }
.b-sm { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 6px; gap: 4px; }
.b-xs { height: 22px; padding: 0 7px; font-size: 11px; border-radius: 5px; }
.b-link { height: auto; padding: 0; color: var(--gold-700); font-weight: 600; font-size: 12px; }
.b-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ============================ Cards ============================ */
.panel {
  background: #fff; border: 1px solid var(--adm-line); border-radius: 9px;
  box-shadow: 0 1px 1px rgba(20,22,26,0.02);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid #eef0f3;
}
.panel-head h3 { font-size: 13.5px; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.panel-head .hint { font-size: 11.5px; color: #9aa0ab; }
.panel-body { padding: 16px; }
.panel-body.tight { padding: 12px 16px; }
.panel-body.flush { padding: 0; }

/* ============================ KPI ============================ */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: #fff; border: 1px solid var(--adm-line); border-radius: 9px;
  padding: 15px 16px 14px; position: relative; overflow: hidden;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-top .lb { font-size: 11.5px; font-weight: 550; color: var(--adm-muted); letter-spacing: 0.01em; }
.kpi-top .ic {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: #f4f5f7; color: #6f7684; flex: none;
}
.kpi-num {
  font-family: var(--font-num); font-size: 27px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1; margin-top: 12px; font-variant-numeric: tabular-nums;
}
.kpi-num small { font-size: 13px; font-weight: 600; color: #9aa0ab; margin-left: 3px; letter-spacing: 0; }
.kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 650; font-size: 11.5px; }
.delta.up { color: #b0453c; }   /* 中国市场：增长用红 */
.delta.down { color: #3f7a56; }
/* 运营指标语义色：优先于方向色，好绿坏红 */
.delta.good { color: #3f7a56; }
.delta.bad { color: #b0453c; }
.kpi-foot .cmp { color: #9aa0ab; }

/* ============================ Grids ============================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }

/* ============================ Table ============================ */
.tbl-wrap { overflow-x: auto; }
.tbl { font-size: 12.5px; }
.tbl th {
  text-align: left; font-size: 11px; font-weight: 650; letter-spacing: 0.04em;
  text-transform: uppercase; color: #8b919c;
  padding: 9px 14px; background: #fafbfc;
  border-bottom: 1px solid var(--adm-line); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.tbl td {
  padding: 11px 14px; border-bottom: 1px solid #f0f2f4;
  color: #333a45; vertical-align: middle;
}
.tbl tbody tr { transition: background 120ms; }
.tbl tbody tr:hover { background: #fafbfc; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tbl .muted { color: #8b919c; }
.tbl .name { font-weight: 600; color: #1f242c; }
.tbl .actions { display: flex; gap: 8px; justify-content: flex-end; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .yes { display: inline-flex; align-items: center; justify-content: center; color: #3f7a56; }
.tbl .yes svg { display: block; }
.tbl-check { width: 14px; height: 14px; accent-color: #1a1d23; cursor: pointer; }

.cell-user { display: flex; align-items: center; gap: 9px; }
.cell-user .av {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 650; color: #5d5545;
  background: linear-gradient(150deg, #ede8dc, #d9d2c1);
}
.cell-user .av.vip { background: linear-gradient(150deg, #e5cf9f, #c2a061); color: #2c2413; }
.cell-user .cu-info b { display: block; font-size: 12.5px; font-weight: 600; color: #1f242c; line-height: 1.3; }
.cell-user .cu-info small { display: block; font-size: 10.5px; color: #9aa0ab; line-height: 1.3; }

/* ============================ Tag / pill ============================ */
.t {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
}
.t .d { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.t.ok { background: var(--ok-bg); color: var(--ok); }
.t.warn { background: var(--warn-bg); color: var(--warn); }
.t.danger { background: var(--danger-bg); color: var(--danger); }
.t.info { background: var(--info-bg); color: var(--info); }
.t.neutral { background: #f1f2f4; color: #6f7684; }
.t.gold { background: var(--gold-100); color: var(--gold-700); }
.t.jade { background: #e8f0eb; color: #3f6b5b; }

/* ============================ Filter bar ============================ */
.fbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid #eef0f3;
}
.fbar .grow { flex: 1; }
.fld {
  height: 31px; padding: 0 10px; border-radius: 6px;
  border: 1px solid #d8dce3; background: #fff; font-size: 12.5px; color: #333a45;
  outline: none; transition: border-color 140ms, box-shadow 140ms;
  min-width: 0;
}
.fld:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(194,160,97,0.15); }
select.fld { padding-right: 26px; appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f7684' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 10 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; cursor: pointer; }
.fsearch {
  display: flex; align-items: center; gap: 6px; height: 31px; padding: 0 10px;
  border-radius: 6px; border: 1px solid #d8dce3; background: #fff; width: 210px;
  color: #9aa0ab; transition: border-color 140ms, box-shadow 140ms;
}
.fsearch:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(194,160,97,0.15); }
.fsearch input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 12.5px; color: #333a45; }

.seg {
  display: inline-flex; gap: 2px; padding: 2px; border-radius: 6px; background: #f1f2f4;
}
.seg button {
  height: 25px; padding: 0 10px; border-radius: 5px; font-size: 11.5px; font-weight: 600;
  color: #6f7684; transition: all 140ms;
}
.seg button.on { background: #fff; color: #1f242c; box-shadow: 0 1px 2px rgba(20,22,26,0.08); }

/* ============================ Pagination ============================ */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-top: 1px solid #eef0f3; font-size: 12px; color: #8b919c;
}
.pager-btns { display: flex; align-items: center; gap: 3px; }
.pg {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 5px;
  font-size: 12px; font-weight: 550; color: #5d6472;
  display: grid; place-items: center; transition: all 130ms;
}
.pg:hover { background: #f1f2f4; }
.pg.on { background: #1a1d23; color: #f5f1e6; }
.pg[disabled] { opacity: 0.35; pointer-events: none; }

/* ============================ Charts (pure SVG) ============================ */
.chart-box { position: relative; width: 100%; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.chart-legend i {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #6f7684;
}
.chart-legend i::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.chart-legend i.l1 { color: #c2a061; }
.chart-legend i.l2 { color: #3f6b5b; }
.chart-legend i.l3 { color: #47698a; }

.bar-h { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.bar-h .lab { width: 76px; flex: none; color: #5d6472; }
.bar-h .trk { flex: 1; height: 7px; border-radius: 4px; background: #f1f2f4; overflow: hidden; }
.bar-h .fil { height: 100%; border-radius: 4px; transition: width 900ms cubic-bezier(0.22,0.61,0.36,1); }
.bar-h .val { width: 46px; flex: none; text-align: right; font-variant-numeric: tabular-nums; color: #333a45; font-weight: 600; }

/* ============================ Timeline / feed ============================ */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f2f4f6; }
.feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-item:first-child { padding-top: 0; }
.feed-dot {
  width: 22px; height: 22px; border-radius: 6px; flex: none; display: grid; place-items: center;
  margin-top: 1px;
}
.feed-dot.ok { background: var(--ok-bg); color: var(--ok); }
.feed-dot.warn { background: var(--warn-bg); color: var(--warn); }
.feed-dot.info { background: var(--info-bg); color: var(--info); }
.feed-dot.gold { background: var(--gold-100); color: var(--gold-700); }
.feed-dot.neutral { background: #f1f2f4; color: #6f7684; }
.feed-main b { display: block; font-size: 12.5px; font-weight: 600; color: #1f242c; line-height: 1.45; }
.feed-main p { font-size: 11.5px; color: #8b919c; margin-top: 3px; line-height: 1.55; }

/* ============================ Task queue ============================ */
.task-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f2f4f6; }
.task-row:last-child { border-bottom: 0; }
.task-thumb {
  width: 40px; height: 40px; border-radius: 6px; overflow: hidden; flex: none; background: #f1f2f4;
}
.task-thumb img { width: 100%; height: 100%; object-fit: cover; }
.task-main { flex: 1; min-width: 0; }
.task-main b { display: block; font-size: 12.5px; font-weight: 600; color: #1f242c; }
.task-main small { font-size: 11px; color: #9aa0ab; display: block; margin-top: 2px; }
.prog { height: 4px; border-radius: 2px; background: #f1f2f4; overflow: hidden; margin-top: 6px; }
.prog i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #d3b478, #a8843f); transition: width 800ms ease; }

/* ============================ Key-value ============================ */
.kv { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f2f4f6; font-size: 12.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: #8b919c; flex: none; }
.kv .v { color: #1f242c; font-weight: 550; text-align: right; word-break: break-all; }

/* ============================ Modal ============================ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16,18,22,0.44);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 180ms;
  backdrop-filter: blur(2px);
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto;
  background: #fff; border-radius: 11px;
  box-shadow: 0 24px 60px -20px rgba(16,18,22,0.4);
  transform: translateY(8px) scale(0.99); transition: transform 200ms cubic-bezier(0.22,0.61,0.36,1);
}
.modal-mask.open .modal { transform: none; }
.modal.wide { max-width: 720px; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 18px 20px 14px; border-bottom: 1px solid #eef0f3;
}
.modal-head h3 { font-size: 15px; font-weight: 650; }
.modal-head p { font-size: 11.5px; color: #8b919c; margin-top: 4px; }
.modal-body { padding: 18px 20px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 13px 20px; border-top: 1px solid #eef0f3; background: #fafbfc;
  border-radius: 0 0 11px 11px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.fg-adm label { display: block; font-size: 11.5px; font-weight: 650; color: #4b5260; margin-bottom: 6px; }
.fg-adm .fld { width: 100%; }
.fg-adm textarea.fld { height: auto; padding: 9px 10px; line-height: 1.6; resize: vertical; min-height: 74px; }
.fg-adm .help { font-size: 11px; color: #9aa0ab; margin-top: 5px; line-height: 1.5; }

/* ============================ Toast ============================ */
.adm-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 14px);
  z-index: 400; padding: 10px 16px; border-radius: 8px;
  background: rgba(20,22,28,0.94); color: #f5f1e6;
  font-size: 12.5px; font-weight: 550;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: all 200ms cubic-bezier(0.22,0.61,0.36,1);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.adm-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ Empty ============================ */
.adm-empty { text-align: center; padding: 48px 20px; }
.adm-empty .ic { margin: 0 auto 10px; color: #c9ced6; }
.adm-empty h4 { font-size: 13px; font-weight: 650; color: #5d6472; }
.adm-empty p { font-size: 12px; color: #9aa0ab; margin-top: 4px; }

/* ============================ Misc ============================ */
.mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.muted { color: #8b919c; }
.dim { color: #a8aeb8; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.tr { text-align: right; }
.tc { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.hr { height: 1px; background: #eef0f3; border: 0; margin: 14px 0; }
.small { font-size: 11.5px; }
.hidden { display: none !important; }

/* ============================ Responsive ============================ */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .adm-shell, .adm-shell.collapsed { grid-template-columns: 60px 1fr; }
  .adm-side-brand { display: none; }
  .adm-nav-label { text-align: center; font-size: 8px; letter-spacing: 0; opacity: 0.5; }
  .adm-nav-item { justify-content: center; padding: 0; }
  .adm-nav-item span.lbl, .adm-nav-item .nbadge { display: none; }
  .adm-user .uinfo { display: none; }
  .adm-user { justify-content: center; }
  .adm-login { grid-template-columns: 1fr; }
  .adm-login-art { display: none; }
  .adm-search { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
