:root {
  --ink: #0c1927;
  --ink-2: #3d4a5c;
  --ink-3: #6b7686;
  --ink-4: #9aa4b1;
  --navy: #10233a;
  --teal: #007b7f;
  --teal-dark: #00666a;
  --teal-soft: #ecf4f3;
  --bronze: #8a6b3e;
  --canvas: #f2f4f3;
  --surface: #ffffff;
  --sunken: #e9edeb;
  --line-1: #e8ecea;
  --line-2: #dde3e0;
  --line-3: #cfd7d3;
  --red: #b42318;
  --green: #1a7f45;
  --amber: #96650b;
  --blue: #1e56c8;
  --shadow-sm: 0 1px 2px rgba(12, 25, 39, .04), 0 1px 1px rgba(12, 25, 39, .03);
  --shadow-md: 0 4px 16px rgba(12, 25, 39, .07), 0 1px 3px rgba(12, 25, 39, .05);
  --shadow-lg: 0 24px 60px rgba(12, 25, 39, .18);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --sidebar: 228px;
  --topbar: 54px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --serif: "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); text-decoration: none; }
::selection { background: #cfe8e6; }
.app-loading { display: flex; align-items: center; justify-content: center; height: 100vh; color: var(--ink-4); letter-spacing: .1em; }

/* ---------- 登录 ---------- */
.auth { display: grid; grid-template-columns: 1.05fr .95fr; height: 100vh; background: var(--surface); }
.auth-brand {
  position: relative; overflow: hidden; padding: 56px 60px; color: #fff;
  background: linear-gradient(145deg, #0b2b31 0%, #0a4448 48%, #10233a 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand::after {
  content: ""; position: absolute; right: -140px; bottom: -180px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(138, 107, 62, .45), transparent 62%);
}
.auth-brand .logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .32em; font-size: 13px; }
.auth-brand .logo i { width: 26px; height: 26px; border-radius: 7px; background: #fff; display: inline-block; position: relative; }
.auth-brand .logo i::before { content: ""; position: absolute; inset: 6px 9px 5px; background: var(--teal); border-radius: 1px; }
.auth-brand h1 { font-family: var(--serif); font-size: 42px; line-height: 1.3; margin: 0 0 18px; font-weight: 600; letter-spacing: .06em; }
.auth-brand p { color: rgba(255, 255, 255, .68); max-width: 380px; margin: 0; font-size: 13px; line-height: 1.9; }
.auth-brand .foot { font-size: 11px; color: rgba(255, 255, 255, .42); letter-spacing: .18em; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-box { width: 100%; max-width: 336px; }
.auth-box h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: .02em; }
.auth-box .sub { color: var(--ink-3); margin: 0 0 28px; }
.auth-switch { margin-top: 20px; text-align: center; color: var(--ink-3); }
.auth-switch button { background: none; border: 0; color: var(--teal); cursor: pointer; padding: 0 4px; }
.auth-note { margin-top: 26px; font-size: 11px; color: var(--ink-4); text-align: center; line-height: 1.8; }

/* ---------- 表单控件 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.input, .select, textarea.input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; outline: none; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 84px; line-height: 1.7; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 123, 127, .1); }
.input::placeholder { color: var(--ink-4); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; cursor: pointer;
  color: var(--ink-2); transition: background .16s var(--ease), border-color .16s var(--ease), transform .1s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: #f7f9f8; border-color: var(--line-3); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-3); }
.btn-ghost:hover { background: var(--sunken); }
.btn-danger { color: var(--red); border-color: #f0d5d2; }
.btn-danger:hover { background: #fdf4f3; }
.btn-block { width: 100%; height: 40px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 骨架 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar); background: #fff; border-right: 1px solid var(--line-1);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 22px; }
.brand i { width: 26px; height: 26px; border-radius: 7px; background: var(--teal); position: relative; flex: none; }
.brand i::after { content: ""; position: absolute; inset: 6px 9px 5px; background: #fff; border-radius: 1px; }
.brand b { font-family: var(--serif); font-size: 17px; letter-spacing: .18em; font-weight: 600; }
.brand span { font-size: 9px; letter-spacing: .22em; color: var(--ink-4); display: block; margin-top: -2px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: 10px; letter-spacing: .18em; color: var(--ink-4); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 13px; transition: background .14s var(--ease), color .14s var(--ease);
}
.nav a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; opacity: .72; }
.nav a:hover { background: #f6f8f7; }
.nav a.active { background: var(--teal-soft); color: var(--teal-dark); font-weight: 500; }
.nav a.active svg { opacity: 1; }
.sidebar .spacer { flex: 1; }
.side-user { border-top: 1px solid var(--line-1); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: .04em;
}
.side-user .meta { min-width: 0; }
.side-user .meta b { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .meta span { font-size: 10px; color: var(--ink-4); }
.side-user .out { margin-left: auto; border: 0; background: none; color: var(--ink-4); cursor: pointer; font-size: 11px; }
.side-user .out:hover { color: var(--red); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar); flex: none; display: flex; align-items: center; gap: 14px; padding: 0 26px;
  background: rgba(242, 244, 243, .86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-1); position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: .02em; }
.search {
  margin-left: 8px; flex: 1; max-width: 380px; height: 32px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; background: #fff; border: 1px solid var(--line-1); border-radius: 999px; color: var(--ink-4);
}
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: 12px; }
.search svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.content { padding: 22px 26px 56px; max-width: 1480px; width: 100%; }

/* ---------- 通用块 ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.page-head h2 { font-family: var(--serif); font-size: 24px; margin: 0; letter-spacing: .04em; font-weight: 600; }
.page-head .desc { color: var(--ink-3); font-size: 12px; margin-bottom: 3px; }
.page-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line-1); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; margin: 0 0 10px; }
.section-title b { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; background: var(--sunken); color: var(--ink-2); white-space: nowrap;
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.empty { padding: 44px; text-align: center; color: var(--ink-4); font-size: 12px; }

/* ---------- 工作台 ---------- */
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.metric { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-1); border-radius: var(--r-md); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.metric::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--line-2); }
.metric.teal::before { background: var(--teal); }
.metric.amber::before { background: var(--amber); }
.metric.red::before { background: var(--red); }
.metric.bronze::before { background: var(--bronze); }
.metric span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.metric b { display: block; font-size: 26px; font-weight: 600; margin-top: 6px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.metric b small { font-size: 12px; font-weight: 400; color: var(--ink-4); margin-left: 4px; }
.metric i { position: absolute; right: 16px; top: 16px; font-style: normal; font-size: 10px; color: var(--ink-4); }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.list { padding: 6px 4px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm); cursor: pointer; }
.list-row:hover { background: #f7f9f8; }
.list-row .datebox {
  width: 42px; height: 44px; flex: none; border: 1px solid var(--line-2); border-radius: 9px; text-align: center;
  background: #fff; padding-top: 4px;
}
.list-row .datebox b { display: block; font-size: 16px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.list-row .datebox span { font-size: 9px; color: var(--ink-4); letter-spacing: .06em; }
.list-row .txt { min-width: 0; }
.list-row .txt b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .txt span { font-size: 11px; color: var(--ink-3); }
.list-row .tail { margin-left: auto; font-size: 11px; color: var(--ink-4); text-align: right; white-space: nowrap; }

/* ---------- 看板 ---------- */
.tabs { display: inline-flex; padding: 3px; background: #fff; border: 1px solid var(--line-1); border-radius: 10px; gap: 2px; }
.tabs button { border: 0; background: none; height: 28px; padding: 0 14px; border-radius: 7px; color: var(--ink-3); cursor: pointer; font-size: 12px; }
.tabs button.active { background: var(--sunken); color: var(--ink); font-weight: 500; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(216px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: stretch; }
.kcol { background: #eef1f0; border: 1px solid var(--line-1); border-radius: var(--r-md); padding: 10px; min-height: 58vh; display: flex; flex-direction: column; }
.kanban::-webkit-scrollbar, .table-wrap::-webkit-scrollbar { height: 8px; width: 8px; }
.kanban::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb { background: #ccd6d3; border-radius: 99px; }
.kanban::-webkit-scrollbar-thumb:hover, .table-wrap::-webkit-scrollbar-thumb:hover { background: #b3c1bd; }
.kanban::-webkit-scrollbar-track, .table-wrap::-webkit-scrollbar-track { background: transparent; }
.kcol.drag-over { background: #e4efed; border-color: #b9d6d3; }
.kcol-head { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.kcol-head span.count { margin-left: auto; font-size: 10px; color: var(--ink-4); background: rgba(255, 255, 255, .7); padding: 0 6px; border-radius: 999px; }
.case-card {
  background: #fff; border: 1px solid var(--line-1); border-radius: 10px; padding: 11px 12px 10px 14px;
  margin-bottom: 8px; cursor: grab; position: relative; box-shadow: var(--shadow-sm); transition: box-shadow .16s var(--ease), transform .16s var(--ease);
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.case-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-3); }
.case-card.s-收案登记::before { background: #7c93a8; }
.case-card.s-冲突检索::before { background: var(--amber); }
.case-card.s-立案准备::before { background: #b08900; }
.case-card.s-办理中::before { background: var(--blue); }
.case-card.s-待开庭::before { background: #c2410c; }
.case-card.s-已结案::before { background: var(--green); }
.case-card.s-已归档::before { background: var(--bronze); }
.case-card .t { font-family: var(--serif); font-size: 14px; line-height: 1.45; margin-bottom: 4px; font-weight: 600; }
.case-card .no { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: -.01em; }
.case-card .row { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.case-card .foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line-1); font-size: 10.5px; color: var(--ink-4); }
.case-card .foot .amt { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.case-card .due { color: var(--amber); }
.case-card .due.urgent { color: var(--red); font-weight: 500; }
.mini-avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--sunken); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow: auto; border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; background: #fff; }
table.data th {
  text-align: left; font-weight: 500; color: var(--ink-3); font-size: 11px; letter-spacing: .04em;
  padding: 10px 12px; background: #fafbfb; border-bottom: 1px solid var(--line-1); white-space: nowrap; position: sticky; top: 0;
}
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-1); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover td { background: #f8faf9; }
table.data td.name { font-weight: 500; font-family: var(--serif); font-size: 13px; }
table.data td.mono { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 日历 ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line-1); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.cal .dow { padding: 9px 10px; font-size: 11px; color: var(--ink-4); background: #fafbfb; border-bottom: 1px solid var(--line-1); letter-spacing: .1em; }
.cal .day { min-height: 96px; padding: 7px 8px; border-right: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); position: relative; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.out { background: #fbfcfc; color: var(--ink-4); }
.cal .day .d { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cal .day.today .d { background: var(--teal); color: #fff; border-radius: 999px; padding: 1px 6px; display: inline-block; }
.ev { margin-top: 4px; font-size: 10.5px; padding: 2px 6px; border-radius: 5px; background: var(--teal-soft); color: var(--teal-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.hearing { background: #fdf1ec; color: #b33c11; }
.ev.due { background: #fdf7e8; color: var(--amber); }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl-group { margin-bottom: 22px; }
.tl-group > .label { font-size: 11px; color: var(--ink-4); letter-spacing: .12em; margin-bottom: 10px; position: relative; }
.tl-group > .label::before { content: ""; position: absolute; left: -22px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); }
.tl-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-1); }
.tl-item .date { font-family: var(--mono); font-size: 11px; color: var(--ink-3); width: 76px; flex: none; }
.tl-item .body b { font-size: 13px; font-weight: 500; display: block; }
.tl-item .body span { font-size: 11px; color: var(--ink-3); }

/* ---------- 抽屉 / 弹窗 ---------- */
.scrim { position: fixed; inset: 0; background: rgba(12, 25, 39, .28); backdrop-filter: blur(2px); z-index: 60; animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0 } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 94vw); background: #fff; z-index: 61;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .24s var(--ease);
}
@keyframes slide { from { transform: translateX(24px); opacity: .4 } }
.drawer-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line-1); }
.drawer-head .eyebrow { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }
.drawer-head h3 { font-family: var(--serif); font-size: 20px; margin: 5px 0 8px; font-weight: 600; }
.drawer-head .close { position: absolute; right: 16px; top: 16px; }
.drawer-body { padding: 18px 22px; overflow: auto; flex: 1; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--line-1); display: flex; gap: 8px; background: #fbfcfc; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 9px 12px; font-size: 12.5px; margin-bottom: 20px; }
.kv dt { color: var(--ink-4); font-size: 12px; }
.kv dd { margin: 0; color: var(--ink); }
.progress { height: 5px; background: var(--sunken); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.modal { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(680px, 94vw); max-height: 88vh; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: pop .2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98) } }
.modal-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--line-1); display: flex; align-items: center; }
.modal-head h3 { font-size: 15px; margin: 0; }
.modal-body { padding: 18px 22px; overflow: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-1); display: flex; justify-content: flex-end; gap: 8px; background: #fbfcfc; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--sunken); color: var(--ink); }
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- 会员 ---------- */
.member-hero { display: flex; align-items: center; gap: 28px; padding: 26px 28px; margin-bottom: 18px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(120deg, #0c2f33, #0f4a4c 60%, #17323f); position: relative; overflow: hidden; }
.member-hero::after { content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); }
.member-hero .plan { font-family: var(--serif); font-size: 30px; letter-spacing: .08em; }
.member-hero .sub { color: rgba(255, 255, 255, .64); font-size: 12px; margin-top: 4px; }
.member-hero .right { margin-left: auto; text-align: right; }
.member-hero .right b { display: block; font-size: 30px; font-variant-numeric: tabular-nums; font-weight: 600; }
.member-hero.admin { background: linear-gradient(120deg, #1b222d, #2d3a2f 60%, #3b3226); }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.plan-card { padding: 16px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: #fff; }
.plan-card b { display: block; font-size: 14px; }
.plan-card span { font-size: 11px; color: var(--ink-4); }
.plan-card i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--teal); display: block; margin-top: 8px; }
.code-list { display: flex; flex-wrap: wrap; gap: 8px; }
.code-chip { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border: 1px dashed var(--line-3); border-radius: 7px; background: #fafbfb; cursor: pointer; }
.code-chip:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 10px; font-size: 12px; opacity: 0; pointer-events: none; transition: all .22s var(--ease); z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #7a1d16; }

@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .sidebar { display: none; }
  .content { padding: 16px; }
}
