/* =========================================================
   巨人企业管理系统 · 设计系统
   ========================================================= */
:root {
  --bg: #f1f5fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #0f1e35;
  --ink-2: #26364f;
  --muted: #68768b;
  --muted-2: #94a3b8;
  --line: #e4eaf3;
  --line-2: #eef2f8;
  --brand: #1d4ed8;
  --brand-2: #0ea5e9;
  --brand-soft: #e8efff;
  --sidebar: #0b1628;
  --sidebar-2: #101f38;
  --green: #15803d;
  --green-soft: #e8f7ee;
  --amber: #b45309;
  --amber-soft: #fff4e2;
  --red: #b91c1c;
  --red-soft: #fdecec;
  --blue: #1d4ed8;
  --blue-soft: #e9efff;
  --purple: #6d28d9;
  --purple-soft: #f1ebfe;
  --gray: #64748b;
  --gray-soft: #eef2f7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 30, 53, .04), 0 10px 28px -18px rgba(15, 30, 53, .28);
  --shadow-lg: 0 20px 60px -20px rgba(9, 22, 42, .34);
  --sidebar-w: 248px;
  --topbar-h: 62px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 13px; color: var(--ink); }
::selection { background: #c7d8ff; }
.hidden { display: none !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c8d2e2; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aebbd0; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* =========================================================
   登录页
   ========================================================= */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  background: #0a1424;
}
.login-brand {
  position: relative;
  overflow: hidden;
  padding: 56px 64px;
  color: #e6efff;
  background:
    radial-gradient(800px 500px at 85% 10%, rgba(14, 165, 233, .28), transparent 60%),
    radial-gradient(700px 600px at 5% 95%, rgba(37, 99, 235, .32), transparent 62%),
    linear-gradient(140deg, #0a1424 10%, #0d1e39 55%, #0a2036 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 187, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 187, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 25%, transparent 78%);
  pointer-events: none;
}
.login-brand::after {
  content: "";
  position: absolute; right: -140px; top: 16%;
  width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, .25);
  box-shadow: 0 0 0 60px rgba(56, 189, 248, .05), 0 0 0 120px rgba(56, 189, 248, .03);
  pointer-events: none;
}
.brand-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 23px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, #2b6bf3, #0ea5e9);
  box-shadow: 0 10px 26px -8px rgba(14, 165, 233, .7);
}
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: .3px; }
.brand-sub { font-size: 12px; color: #8fa6c6; margin-top: 3px; letter-spacing: .5px; }
.login-headline { position: relative; z-index: 1; max-width: 560px; margin: 32px 0; }
.login-headline h1 {
  font-size: 40px; line-height: 1.24; margin: 0 0 18px; font-weight: 700; letter-spacing: -.5px;
  background: linear-gradient(100deg, #ffffff 20%, #a9d4ff 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-headline p { color: #9fb4d1; font-size: 14px; line-height: 1.9; margin: 0; }
.login-points { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; max-width: 560px; }
.login-point { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #c2d4ea; }
.login-point i { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(56, 189, 248, .13); color: #5fc7fb; }
.brand-foot { position: relative; z-index: 1; color: #7287a5; font-size: 12px; letter-spacing: .4px; }

.login-side { background: #f7f9fd; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card {
  width: 100%; max-width: 378px;
  background: #fff; border-radius: 20px; padding: 38px 36px 32px;
  box-shadow: 0 30px 70px -34px rgba(9, 22, 42, .4);
  border: 1px solid #eef2f9;
}
.login-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.2px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }
.login-field .input { height: 44px; }
.login-error { color: var(--red); font-size: 12.5px; min-height: 18px; margin: 2px 0 10px; }
.demo-title { margin: 22px 0 10px; font-size: 11.5px; color: var(--muted-2); letter-spacing: 1px; }
.demo-accounts { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-chip {
  border: 1px solid var(--line); background: #fbfcfe; color: var(--ink-2);
  border-radius: 999px; padding: 7px 12px; font-size: 12px; display: flex; align-items: center; gap: 7px;
  transition: .18s;
}
.demo-chip:hover { border-color: #b9cdf6; background: var(--brand-soft); color: var(--brand); }
.demo-chip span { color: var(--muted-2); font-size: 11px; }
.login-legal { margin-top: 26px; text-align: center; color: var(--muted-2); font-size: 11px; line-height: 1.8; }

/* =========================================================
   应用框架
   ========================================================= */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none;
  background: linear-gradient(180deg, var(--sidebar) 0%, #0c1a2f 100%);
  color: #a8b8ce;
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  display: flex; flex-direction: column;
  transition: transform .24s ease;
}
.sidebar-logo { display: flex; align-items: center; gap: 11px; padding: 20px 20px 18px; }
.sidebar-logo .mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(145deg, #2b6bf3, #0ea5e9); color: #fff; font-weight: 700; font-size: 19px;
  box-shadow: 0 8px 22px -8px rgba(14, 165, 233, .8);
}
.sidebar-logo .t { line-height: 1.3; }
.sidebar-logo .t b { display: block; color: #f2f7ff; font-size: 14px; letter-spacing: .3px; }
.sidebar-logo .t span { font-size: 10.5px; color: #6f86a6; letter-spacing: .6px; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 6px 12px 22px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(148, 187, 255, .18); background-clip: content-box; }
.nav-group { margin-top: 14px; }
.nav-group-title { font-size: 10.5px; letter-spacing: 1.2px; color: #5d7293; padding: 0 10px 7px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px; margin-bottom: 2px;
  font-size: 13px; color: #a6b6cc; position: relative; transition: .16s;
}
.nav-item svg { flex: none; opacity: .82; }
.nav-item:hover { background: rgba(120, 165, 235, .1); color: #e9f2ff; }
.nav-item.active { background: linear-gradient(90deg, rgba(45, 108, 245, .28), rgba(14, 165, 233, .1)); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: #38bdf8; }
.nav-badge { margin-left: auto; background: rgba(239, 68, 68, .9); color: #fff; font-size: 10.5px; border-radius: 999px; padding: 1px 7px; min-width: 19px; text-align: center; }
.sidebar-foot { padding: 14px 18px 18px; border-top: 1px solid rgba(120, 160, 220, .12); font-size: 11px; color: #63799a; line-height: 1.7; }
.sidebar-foot b { color: #a9bdd7; font-weight: 600; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); flex: none; position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 26px;
}
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 9px; width: 36px; height: 36px; place-items: center; color: var(--ink-2); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.crumb b { color: var(--ink); font-weight: 600; font-size: 14px; }
.crumb .sep { color: #cbd5e1; }
.topbar-spacer { flex: 1; }
.topbar-date { font-size: 12px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }
.topbar-ai {
  display: flex; align-items: center; gap: 7px; border: 1px solid #dbe7ff; background: linear-gradient(180deg, #f4f8ff, #edf4ff);
  color: #1e4fd6; border-radius: 10px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; transition: .18s;
}
.topbar-ai:hover { border-color: #b9cdf6; box-shadow: 0 6px 16px -10px rgba(29, 78, 216, .6); }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #1d4ed8, #0ea5e9); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(29, 78, 216, .5);
}
.user-chip .u-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.user-chip .u-role { font-size: 11px; color: var(--muted-2); }
.logout-btn { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 9px; height: 34px; padding: 0 11px; font-size: 12px; transition: .18s; }
.logout-btn:hover { color: var(--red); border-color: #f3c8c8; background: #fff7f7; }

.view { padding: 24px 26px 60px; max-width: 1560px; width: 100%; margin: 0 auto; }

/* 页面通用头部 */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 21px; font-weight: 700; letter-spacing: -.3px; margin: 0 0 5px; }
.page-desc { color: var(--muted); font-size: 12.5px; margin: 0; line-height: 1.7; max-width: 760px; }
.page-head-actions { margin-left: auto; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.section-head { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; }
.section-head h3 { margin: 0; font-size: 14.5px; letter-spacing: -.1px; }
.section-head .sub { color: var(--muted-2); font-size: 11.5px; }
.section-head .right { margin-left: auto; display: flex; gap: 8px; }

/* =========================================================
   基础组件
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: .16s; user-select: none;
}
.btn:hover { border-color: #c8d6ea; background: #f9fbfe; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #2e63ea, #1d4ed8); border-color: #1d4ed8; color: #fff; box-shadow: 0 8px 18px -10px rgba(29, 78, 216, .75); }
.btn.primary:hover { background: linear-gradient(180deg, #3b70f2, #2255e2); }
.btn.dark { background: #12213a; border-color: #12213a; color: #fff; }
.btn.dark:hover { background: #1b2f4f; }
.btn.danger { background: #fff; border-color: #f1c6c6; color: var(--red); }
.btn.danger:hover { background: #fff5f5; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--gray-soft); color: var(--ink); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 11.5px; border-radius: 7px; gap: 4px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.icon { width: 34px; padding: 0; }
.btn.block { width: 100%; }
.btn.loading { pointer-events: none; opacity: .7; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 11.5px; line-height: 1.7;
  background: var(--gray-soft); color: var(--gray); white-space: nowrap; font-weight: 500;
  border: 1px solid transparent;
}
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.purple { background: var(--purple-soft); color: var(--purple); }
.badge.gray { background: var(--gray-soft); color: var(--gray); }
.badge.outline { background: #fff; border-color: var(--line); color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.money { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-weight: 600; color: var(--ink); }
.money.neg { color: var(--red); }
.money.pos { color: var(--green); }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex.between { justify-content: space-between; }
.flex.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.divider { height: 1px; background: var(--line-2); margin: 14px 0; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-hd { padding: 15px 18px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-hd h3 { margin: 0; font-size: 14px; letter-spacing: -.1px; }
.card-hd .sub { font-size: 11.5px; color: var(--muted-2); }
.card-hd .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-bd { padding: 15px 18px 18px; }
.card-bd.flush { padding: 12px 0 0; }
.card-foot { padding: 11px 18px; border-top: 1px solid var(--line-2); background: #fcfdff; display: flex; align-items: center; gap: 8px; }

.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.main-side { grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); }
.grid.side-main { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.85fr); }

/* KPI 卡片 */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: .18s; cursor: default;
}
.kpi[data-link] { cursor: pointer; }
.kpi[data-link]:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(15, 30, 53, .38); border-color: #d5e0f0; }
.kpi::after { content: ""; position: absolute; right: -24px; top: -30px; width: 88px; height: 88px; border-radius: 50%; background: currentColor; opacity: .05; }
.kpi-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.kpi-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.kpi-ico.green { background: var(--green-soft); color: var(--green); }
.kpi-ico.amber { background: var(--amber-soft); color: var(--amber); }
.kpi-ico.red { background: var(--red-soft); color: var(--red); }
.kpi-ico.purple { background: var(--purple-soft); color: var(--purple); }
.kpi-val { font-size: 24px; font-weight: 700; letter-spacing: -.6px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi-val small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.kpi-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.trend-up { color: var(--green); } .trend-down { color: var(--red); }

/* =========================================================
   表格
   ========================================================= */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.table th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px;
  padding: 10px 14px; background: #f7f9fd; border-bottom: 1px solid var(--line);
  white-space: nowrap; letter-spacing: .2px;
}
.table th:first-child { padding-left: 18px; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table td:first-child { padding-left: 18px; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #f8faff; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .cell-main { font-weight: 600; color: var(--ink); }
.table .cell-sub { color: var(--muted-2); font-size: 11px; margin-top: 2px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table-empty { padding: 46px 20px; text-align: center; color: var(--muted-2); font-size: 12.5px; }

/* 工具栏 */
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: #fff; }
.toolbar .search { position: relative; }
.toolbar .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.toolbar .search input { width: 230px; padding-left: 33px; }
.toolbar select { min-width: 120px; }
.toolbar .count { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.input, .select, .textarea {
  width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; padding: 0 11px; outline: none; transition: .16s; color: var(--ink);
}
.textarea { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: #80a6f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.input::placeholder, .textarea::placeholder { color: #a9b4c6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

.pager { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-2); background: #fcfdff; }
.pager .info { color: var(--muted); font-size: 12px; }
.pager .pages { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pager .page-ind { font-size: 12px; color: var(--ink-2); min-width: 70px; text-align: center; }
.pager select { height: 30px; width: auto; }

/* 筛选 chips */
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 6px;
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { font-size: 11px; opacity: .7; }

/* 进度条 */
.bar { height: 6px; border-radius: 999px; background: #edf1f7; overflow: hidden; min-width: 54px; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2e63ea, #38bdf8); transition: width .5s; }
.bar.green > span { background: linear-gradient(90deg, #16a34a, #4ade80); }
.bar.amber > span { background: linear-gradient(90deg, #d97706, #fbbf24); }
.bar.red > span { background: linear-gradient(90deg, #dc2626, #f87171); }
.progress-cell { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.progress-cell .pct { font-size: 11.5px; color: var(--muted); width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* =========================================================
   工作台
   ========================================================= */
.hello { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.hello h1 { font-size: 23px; margin: 0; letter-spacing: -.4px; }
.hello p { margin: 0; color: var(--muted); font-size: 12.5px; }
.hello .right { margin-left: auto; display: flex; gap: 8px; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quick {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--ink-2); transition: .16s;
}
.quick:hover { border-color: #b9cdf6; background: #f6f9ff; color: var(--brand); }
.quick i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); }

.task-list { display: flex; flex-direction: column; }
.task-row { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-bottom: 1px solid var(--line-2); }
.task-row:last-child { border-bottom: 0; }
.task-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--brand); }
.task-dot.high { background: var(--amber); } .task-dot.urgent { background: var(--red); } .task-dot.low { background: #94a3b8; }
.task-main { min-width: 0; flex: 1; }
.task-main .t { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-main .s { color: var(--muted-2); font-size: 11px; margin-top: 2px; display: flex; gap: 8px; }
.task-due { font-size: 11.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.task-due.over { color: var(--red); font-weight: 600; }

.todo-list { display: flex; flex-direction: column; gap: 10px; }
.todo-item {
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; background: #fcfdff;
  display: flex; align-items: center; gap: 10px; transition: .16s; cursor: pointer;
}
.todo-item:hover { border-color: #c9d8f1; background: #f7faff; }
.todo-item .badge { flex: none; }
.todo-item .t { font-weight: 600; font-size: 12.5px; }
.todo-item .s { color: var(--muted-2); font-size: 11px; margin-top: 2px; }
.todo-item .amt { margin-left: auto; text-align: right; font-size: 12px; font-weight: 600; white-space: nowrap; }

.proj-list { display: flex; flex-direction: column; gap: 12px; }
.proj-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; align-items: center; }
.proj-row .t { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-row .s { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.proj-row .bar { margin-top: 6px; }
.proj-row .pct { text-align: right; font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* 简易柱状图 */
.chart { display: flex; align-items: flex-end; gap: 16px; height: 170px; padding: 8px 4px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart-bars { display: flex; align-items: flex-end; gap: 5px; height: 100%; width: 100%; justify-content: center; }
.chart-bar { width: 16px; max-width: 24px; border-radius: 5px 5px 2px 2px; min-height: 3px; transition: height .4s; position: relative; }
.chart-bar.in { background: linear-gradient(180deg, #38bdf8, #2e63ea); }
.chart-bar.out { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.chart-label { font-size: 10.5px; color: var(--muted-2); }
.legend { display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-right: 5px; }

.stack-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #eef2f8; }
.stack-bar span { display: block; height: 100%; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.stack-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-right: 5px; }
.stack-legend b { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.account-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.account-row:last-child { border-bottom: 0; }
.account-row .bank { font-size: 12.5px; font-weight: 600; }
.account-row .no { font-size: 11px; color: var(--muted-2); }
.account-row .bal { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.account-row .bal b { font-size: 13px; }
.account-row .bal span { display: block; font-size: 10.5px; color: var(--muted-2); }

.log-list { display: flex; flex-direction: column; }
.log-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 12px; }
.log-row:last-child { border-bottom: 0; }
.log-row .who { font-weight: 600; color: var(--ink-2); flex: none; }
.log-row .what { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row .when { margin-left: auto; color: var(--muted-2); font-size: 11px; flex: none; }

/* =========================================================
   项目全景
   ========================================================= */
.panorama-hero {
  background:
    radial-gradient(600px 220px at 92% -10%, rgba(14, 165, 233, .28), transparent 70%),
    linear-gradient(120deg, #0d1e39, #123259 60%, #0f2f4d);
  border-radius: 16px; color: #e8f2ff; padding: 22px 24px; margin-bottom: 16px;
  position: relative; overflow: hidden; box-shadow: 0 20px 50px -30px rgba(9, 22, 42, .6);
}
.panorama-hero::after {
  content: ""; position: absolute; right: -60px; bottom: -110px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, .22); box-shadow: 0 0 0 50px rgba(56, 189, 248, .04);
}
.ph-top { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.ph-top h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.3px; }
.ph-meta { display: flex; gap: 18px; flex-wrap: wrap; color: #9db4d4; font-size: 12px; }
.ph-meta b { color: #dce9fa; font-weight: 500; }
.ph-right { margin-left: auto; display: flex; gap: 8px; }
.ph-right .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #e8f2ff; }
.ph-right .btn:hover { background: rgba(255, 255, 255, .16); }
.ph-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: 20px; background: rgba(255, 255, 255, .1); border-radius: 12px; overflow: hidden; position: relative; z-index: 1; }
.ph-stat { padding: 12px 14px; background: rgba(9, 24, 46, .5); }
.ph-stat .l { font-size: 11px; color: #8fa8c9; }
.ph-stat .v { font-size: 18px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.ph-stat .v small { font-size: 11px; color: #8fa8c9; font-weight: 500; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 4px; overflow-x: auto; background: #fff; border-radius: 12px 12px 0 0; }
.tab {
  padding: 12px 15px; font-size: 12.5px; color: var(--muted); border: 0; background: transparent;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: .15s; font-weight: 500;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tab .n { font-size: 10.5px; background: var(--gray-soft); border-radius: 999px; padding: 0 6px; margin-left: 5px; color: var(--muted); }
.tab.active .n { background: var(--brand-soft); color: var(--brand); }
.tab-panel { padding: 18px; }

.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 13px; }
.folder-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: #fcfdff; transition: .16s; }
.folder-card:hover { border-color: #c9d8f1; background: #f8faff; }
.folder-card .fh { display: flex; align-items: center; gap: 9px; }
.folder-card .fi { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #fff5da; color: #ca8a04; }
.folder-card .ft { font-weight: 600; font-size: 12.5px; }
.folder-card .fs { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.folder-files { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.file-line { display: flex; align-items: center; gap: 7px; font-size: 11.5px; padding: 5px 6px; border-radius: 7px; color: var(--ink-2); }
.file-line:hover { background: #eef4ff; }
.file-line .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-line .sz { color: var(--muted-2); font-size: 10.5px; }
.upload-btn { margin-top: 9px; }

/* 时间线 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 5px; bottom: 5px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 18px 8px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid #b9cdf6; }
.tl-item.done::before { border-color: var(--green); background: var(--green); }
.tl-item.active::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.tl-item.reject::before { border-color: var(--red); background: var(--red); }
.tl-t { font-size: 12.5px; font-weight: 600; }
.tl-s { font-size: 11px; color: var(--muted-2); margin-top: 3px; line-height: 1.6; }

/* =========================================================
   详情抽屉 / 弹窗
   ========================================================= */
.overlay {
  position: fixed; inset: 0; background: rgba(8, 18, 33, .46); backdrop-filter: blur(2px);
  z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: #fff; border-radius: 16px; width: 560px; max-width: 100%; max-height: 88vh;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s ease;
  border: 1px solid rgba(255, 255, 255, .6);
}
@keyframes pop { from { transform: scale(.97) translateY(6px); opacity: 0; } }
.modal.wide { width: 760px; }
.modal.narrow { width: 420px; }
.modal-hd { padding: 17px 20px 13px; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line-2); }
.modal-hd h3 { margin: 0; font-size: 15.5px; letter-spacing: -.2px; }
.modal-hd .sub { color: var(--muted-2); font-size: 11.5px; margin-top: 3px; }
.modal-hd .x { margin-left: auto; border: 0; background: transparent; color: var(--muted-2); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.modal-hd .x:hover { background: var(--gray-soft); color: var(--ink); }
.modal-bd { padding: 18px 20px; overflow-y: auto; }
.modal-ft { padding: 13px 20px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; justify-content: flex-end; background: #fcfdff; border-radius: 0 0 16px 16px; }
.modal-ft .left { margin-right: auto; display: flex; gap: 8px; }

.overlay.drawer-wrap { justify-content: flex-end; padding: 0; }
.modal.drawer { width: 620px; max-width: 96vw; height: 100%; max-height: 100vh; border-radius: 0; animation: slide .22s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: .6; } }
.modal.drawer .modal-hd { border-radius: 0; }
.modal.drawer .modal-ft { border-radius: 0; }

/* 详情内容 */
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; }
.detail-item { background: #fff; padding: 10px 13px; min-width: 0; }
.detail-item .k { font-size: 11px; color: var(--muted-2); }
.detail-item .v { font-size: 12.5px; margin-top: 3px; word-break: break-word; line-height: 1.5; }
.detail-item.full { grid-column: 1 / -1; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--red); margin-left: 2px; }
.field .hint { font-size: 11px; color: var(--muted-2); margin-top: 5px; line-height: 1.5; }
.field .input, .field .select { height: 38px; }
.form-error { margin-top: 12px; color: var(--red); font-size: 12px; background: var(--red-soft); padding: 9px 11px; border-radius: 8px; }

/* =========================================================
   审批 / 提醒 / 资金 / AI
   ========================================================= */
.approval-list { display: flex; flex-direction: column; gap: 11px; }
.approval-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; display: flex; gap: 13px; align-items: flex-start; transition: .16s; }
.approval-card:hover { border-color: #cddbf0; box-shadow: 0 10px 26px -22px rgba(15, 30, 53, .5); }
.approval-card .ac-main { flex: 1; min-width: 0; }
.approval-card .ac-t { font-weight: 600; font-size: 13px; }
.approval-card .ac-s { color: var(--muted-2); font-size: 11.5px; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.approval-card .ac-amt { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.approval-card .ac-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.step-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); background: var(--panel-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

.reminder-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.reminder-card { border: 1px solid var(--line); border-left: 3px solid var(--muted-2); border-radius: 11px; padding: 13px 15px; background: #fff; transition: .16s; }
.reminder-card:hover { box-shadow: 0 12px 30px -24px rgba(15, 30, 53, .55); }
.reminder-card.urgent { border-left-color: var(--red); }
.reminder-card.important { border-left-color: var(--amber); }
.reminder-card.normal { border-left-color: var(--brand); }
.reminder-card .rh { display: flex; align-items: center; gap: 8px; }
.reminder-card .rt { font-weight: 600; font-size: 12.5px; }
.reminder-card .rd { color: var(--muted); font-size: 11.5px; line-height: 1.7; margin-top: 6px; }
.reminder-card .rf { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--muted-2); }
.reminder-card .rf a { margin-left: auto; color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }

.account-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 13px; }
.account-card { border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px; background: linear-gradient(180deg, #fff, #fbfcff); box-shadow: var(--shadow); }
.account-card .ah { display: flex; align-items: center; gap: 9px; }
.account-card .ah .ico { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.account-card .an { font-weight: 600; font-size: 13px; }
.account-card .ac { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.account-card .ab { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; }
.account-card .ab .v { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.account-card .ab .l { font-size: 11px; color: var(--muted-2); padding-bottom: 3px; }
.account-card .af { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); }
.account-card .af .diff { margin-left: auto; font-weight: 600; }
.account-card .af .diff.ok { color: var(--green); }
.account-card .af .diff.bad { color: var(--red); }

.import-box { display: grid; gap: 13px; }
.csv-hint { font-size: 11.5px; color: var(--muted); line-height: 1.7; background: var(--panel-soft); border: 1px dashed var(--line); border-radius: 9px; padding: 10px 12px; }
.csv-hint code { background: #eef2f9; border-radius: 4px; padding: 1px 5px; font-size: 11px; color: #334155; }

.ai-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.chat-card { display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 480px; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(180deg, #fbfcff, #f7f9fd); }
.msg { display: flex; gap: 10px; max-width: 82%; }
.msg .m-avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .m-avatar { background: #e8f0ff; color: #1e40af; }
.msg .bubble { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 12.5px; line-height: 1.85; box-shadow: 0 6px 18px -18px rgba(15, 30, 53, .4); }
.msg.user .bubble { background: linear-gradient(180deg, #2e63ea, #1d4ed8); border-color: #1d4ed8; color: #fff; }
.msg .bubble table { width: 100%; border-collapse: collapse; margin-top: 9px; font-size: 11.5px; }
.msg .bubble th, .msg .bubble td { padding: 5px 8px; border-bottom: 1px solid #eef2f8; text-align: left; }
.msg .bubble th { color: var(--muted); font-weight: 600; background: #f8fafc; }
.chat-foot { padding: 13px 16px; border-top: 1px solid var(--line); background: #fff; display: flex; gap: 9px; align-items: flex-end; }
.chat-foot .textarea { min-height: 40px; max-height: 110px; height: 40px; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 13px; background: #fff; }
.suggest-chip { border: 1px solid var(--line); background: #fbfcff; border-radius: 999px; padding: 5px 11px; font-size: 11.5px; color: var(--muted); }
.suggest-chip:hover { border-color: #b9cdf6; color: var(--brand); background: #f4f8ff; }
.ai-side { display: flex; flex-direction: column; gap: 12px; }
.ai-side .card-bd { font-size: 12px; line-height: 1.8; color: var(--muted); }
.ai-side b { color: var(--ink); }

/* 任务详情 */
.task-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.task-head h2 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.3px; }
.task-head .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.comment:last-child { border-bottom: 0; }
.comment .c-avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 600; }
.comment .c-body { flex: 1; min-width: 0; }
.comment .c-h { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.comment .c-h b { font-size: 12px; }
.comment .c-h span { color: var(--muted-2); font-size: 10.5px; }
.comment .c-t { font-size: 12.5px; margin-top: 4px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; }

/* 状态空 */
.empty { padding: 42px 20px; text-align: center; color: var(--muted-2); }
.empty .e-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--panel-soft); color: #a7b6ca; display: grid; place-items: center; margin: 0 auto 10px; }
.empty p { margin: 0; font-size: 12.5px; }
.empty .sub { font-size: 11.5px; margin-top: 4px; color: #a7b6ca; }

.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 37%, #eef2f7 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 7px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.spinner { width: 17px; height: 17px; border: 2px solid #cfe0ff; border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page { padding: 70px 20px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12.5px; }

/* Toast */
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 300; display: flex; flex-direction: column; gap: 9px; align-items: flex-end; }
.toast {
  display: flex; align-items: flex-start; gap: 9px; background: #0f1e35; color: #eef4ff;
  border-radius: 10px; padding: 11px 14px; font-size: 12.5px; max-width: 380px;
  box-shadow: 0 18px 40px -18px rgba(9, 22, 42, .7); animation: toastin .2s ease;
}
.toast.success { background: #0d3b24; }
.toast.error { background: #451717; }
.toast .ti { flex: none; margin-top: 1px; }
@keyframes toastin { from { transform: translateY(8px); opacity: 0; } }
.toast.out { animation: toastout .2s ease forwards; }
@keyframes toastout { to { transform: translateY(6px); opacity: 0; } }

/* 侧栏遮罩 */
.sidebar-mask { display: none; position: fixed; inset: 0; background: rgba(8, 18, 33, .4); z-index: 39; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1360px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .grid.main-side, .grid.side-main, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .grid.c2 { grid-template-columns: minmax(0, 1fr); }
  .ai-wrap { grid-template-columns: minmax(0, 1fr); }
  .chat-card { height: 620px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .sidebar-mask.show { display: block; }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar-date { display: none; }
  .view { padding: 18px 16px 50px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-side { background: #0a1424; min-height: 100vh; padding: 22px; }
  .login-card { background: #fff; }
  .page-head-actions { margin-left: 0; width: 100%; }
  .toolbar .search input { width: 100%; }
  .toolbar .search { flex: 1; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .modal.drawer { width: 100%; max-width: 100vw; }
  .user-chip .u-role { display: none; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .topbar-ai span { display: none; }
  .reminder-list { grid-template-columns: minmax(0, 1fr); }
  .toolbar { padding: 12px; }
  .card-bd { padding: 13px; }
}
