/* ==========================================================================
   线上报告交付平台 · 全局样式
   浅灰蓝底 #F8FAFC + 纯白卡片 #FFFFFF + 深海军蓝 #1E3A8A
   ========================================================================== */

:root {
  --bg: #F8FAFC;
  --bg-deep: #EEF2F8;
  --card: #FFFFFF;
  --navy: #1E3A8A;
  --navy-600: #24479C;
  --navy-700: #1B327A;
  --navy-50: #EFF4FF;
  --navy-100: #DCE6FB;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --line: #E2E8F0;
  --line-soft: #EDF2F7;
  --success: #047857;
  --success-bg: #ECFDF5;
  --warn: #B45309;
  --warn-bg: #FFF7ED;
  --danger: #B91C1C;
  --danger-bg: #FEF2F2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); text-decoration: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
[hidden] { display: none !important; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ------------------------------- 品牌 ---------------------------------- */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #2B52B8 0%, #1E3A8A 55%, #172554 100%);
  box-shadow: 0 6px 16px rgba(30, 58, 138, .28);
}
.brand-mark .icon { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 15px; color: var(--ink); letter-spacing: .01em; }
.brand-text small { font-size: 9.5px; letter-spacing: .18em; color: var(--muted-2); text-transform: uppercase; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(219, 234, 254, .7); }
.brand-light .brand-mark { background: rgba(255, 255, 255, .14); box-shadow: none; }

/* ------------------------------- 按钮 ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 9px; cursor: pointer;
  padding: 10px 16px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(30, 58, 138, .22); }
.btn-primary:hover:not(:disabled) { background: var(--navy-600); }
.btn-subtle { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-subtle:hover:not(:disabled) { border-color: #CBD5E1; background: #F8FAFC; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: rgba(30, 58, 138, .06); color: var(--navy); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: #FECACA; }
.btn-danger:hover:not(:disabled) { background: #FEE2E2; }
.btn-success { background: var(--success-bg); color: var(--success); border-color: #A7F3D0; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 7px; gap: 4px; }
.btn-block { width: 100%; }
.btn .icon { width: 16px; height: 16px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1;
  display: grid; place-items: center;
}
.icon-btn:hover { background: #F1F5F9; color: var(--ink); }

/* ------------------------------- 徽标 ---------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: #F1F5F9; color: var(--muted); border: 1px solid transparent; white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); border-color: #D1FAE5; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: #FDE68A; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: #FECACA; }
.badge-info { background: var(--navy-50); color: var(--navy); border-color: var(--navy-100); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tag {
  display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 10.5px;
  background: #F1F5F9; color: var(--muted); font-weight: 600; vertical-align: 1px;
}

/* ------------------------------- 表单 ---------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.field-label .req { color: #DC2626; font-weight: 700; }
.field-hint { font-size: 12px; color: var(--muted-2); line-height: 1.55; }
.field input, .field textarea, .field select, .input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #A8B4C4; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 58, 138, .1);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; }

/* ------------------------------- 登录页 -------------------------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }
.auth-visual {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; padding: 44px 52px; color: #fff;
  background: radial-gradient(120% 90% at 12% 8%, #2E56BE 0%, #1E3A8A 45%, #142B66 100%);
}
.auth-visual::before,
.auth-visual::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-visual::before { width: 460px; height: 460px; right: -170px; top: -130px; background: radial-gradient(circle, rgba(147, 197, 253, .28), transparent 68%); }
.auth-visual::after { width: 520px; height: 520px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgba(59, 130, 246, .22), transparent 70%); }
.auth-copy { position: relative; z-index: 1; max-width: 460px; }
.auth-copy h2 { font-size: 38px; line-height: 1.28; color: #fff; letter-spacing: -.02em; }
.auth-copy > p { margin-top: 18px; color: rgba(219, 234, 254, .82); font-size: 14.5px; line-height: 1.9; }
.auth-points { margin-top: 30px; display: flex; flex-direction: column; gap: 13px; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: rgba(239, 246, 255, .94); font-size: 13.5px; }
.auth-points .icon { width: 17px; height: 17px; color: #93C5FD; }
.auth-foot { position: relative; z-index: 1; color: rgba(191, 219, 254, .6); font-size: 12px; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 25px; letter-spacing: -.02em; }
.auth-card > .muted { margin: 8px 0 28px; font-size: 13.5px; }
.auth-card .field-label { font-size: 12.5px; }
.auth-card .field input { padding: 11px 13px; }
.auth-hint { margin-top: 16px; font-size: 12px; color: var(--muted-2); line-height: 1.7; }

/* ------------------------------- 用户前台 ------------------------------ */
.user-shell { min-height: 100vh; background: var(--bg); }
.user-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px;
  background: var(--navy-50); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy);
}
.user-chip::before {
  content: attr(data-initial); width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 11.5px;
}
.user-main { max-width: 1040px; margin: 0 auto; padding: 30px 24px 72px; }
.user-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.user-hero h1 { font-size: 26px; letter-spacing: -.02em; }
.user-hero .muted { margin-top: 6px; font-size: 13.5px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.seg {
  display: inline-flex; gap: 4px; padding: 4px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
  margin-bottom: 20px; max-width: 100%; overflow-x: auto;
}
.seg-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent;
  padding: 9px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.seg-btn:hover { color: var(--navy); }
.seg-btn.is-active { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(30, 58, 138, .2); }
.seg-btn.is-active .badge { background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent; }

.panel { display: flex; flex-direction: column; gap: 18px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px 24px; }
.card-head { padding: 18px 24px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 15.5px; }
.card-body { padding: 22px 24px; }

.status-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.status-card.is-pending { border-color: #FDE68A; background: linear-gradient(180deg, #FFFDF5, #fff); }
.status-card.is-done { border-color: #A7F3D0; background: linear-gradient(180deg, #F5FEFB, #fff); }
.status-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.status-card.is-pending .status-ico { background: var(--warn-bg); color: var(--warn); }
.status-card.is-done .status-ico { background: var(--success-bg); color: var(--success); }
.status-main { flex: 1; min-width: 200px; }
.status-main strong { display: block; font-size: 15px; }
.status-main span { font-size: 12.5px; color: var(--muted); }
.status-side { display: flex; gap: 8px; flex-wrap: wrap; }

.kv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.kv { min-width: 0; padding-bottom: 12px; border-bottom: 1px dashed var(--line-soft); }
.kv-k { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.kv-v { font-size: 14px; color: var(--ink); word-break: break-word; white-space: pre-wrap; }

.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.report-card:hover { border-color: #C7D5EE; box-shadow: var(--shadow); }
.report-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; flex: none; }
.report-info { flex: 1; min-width: 0; }
.report-info strong { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--muted); }
.report-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #CBD5E1; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty-ico { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; }
.empty h3 { font-size: 15px; margin-bottom: 6px; color: var(--ink-2); }
.empty p { font-size: 13px; color: var(--muted-2); }

.divider { height: 1px; background: var(--line-soft); margin: 20px 0; border: 0; }

/* ------------------------------- 管理后台 ------------------------------ */
.admin-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 22px 16px; background: #fff; border-right: 1px solid var(--line);
}
.sidebar .brand { padding: 0 8px 20px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  cursor: pointer; text-align: left; transition: background .15s, color .15s;
}
.nav-item .icon { color: var(--muted); width: 17px; height: 17px; }
.nav-item:hover { background: #F5F8FD; color: var(--navy); }
.nav-item:hover .icon { color: var(--navy); }
.nav-item.is-active { background: var(--navy-50); color: var(--navy); font-weight: 650; }
.nav-item.is-active .icon { color: var(--navy); }
.side-foot { border-top: 1px solid var(--line-soft); padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-user { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.side-user strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.side-user small { font-size: 11px; color: var(--muted-2); }

.admin-body { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 30px; background: rgba(248, 250, 252, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.admin-title h1 { font-size: 20px; letter-spacing: -.02em; }
.admin-title .muted { font-size: 12.5px; margin-top: 3px; }
.admin-main { padding: 24px 30px 60px; display: flex; flex-direction: column; gap: 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.stat-label .icon { width: 15px; height: 15px; color: var(--navy); opacity: .75; }
.stat-value { font-size: 27px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; line-height: 1.15; }
.stat-value small { font-size: 12px; font-weight: 600; color: var(--muted-2); margin-left: 4px; letter-spacing: 0; }
.stat-foot { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.toolbar .input { width: auto; min-width: 200px; flex: 1 1 200px; max-width: 300px; padding: 8px 12px; }
.toolbar select.input { flex: 0 0 auto; min-width: 132px; padding-right: 30px; }
.toolbar .spacer { flex: 1; }

.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
table.data th {
  text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); padding: 11px 16px; background: #FBFCFE; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tbody tr:hover { background: #FBFCFE; }
table.data tbody tr:last-child td { border-bottom: 0; }
.cell-strong { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.cell-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.cell-stack { display: flex; flex-direction: column; gap: 4px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 11.5px;
  cursor: pointer; max-width: 100%; text-align: left; transition: border-color .15s, background .15s;
}
.chip:hover { border-color: #BFD0ED; background: var(--navy-50); color: var(--navy); }
.chip .chip-title { max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.meter { font-size: 11.5px; color: var(--muted); }
.email-error { color: var(--danger); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.upload-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.field-list { display: flex; flex-direction: column; }
.field-item { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.field-item:last-child { border-bottom: 0; }
.field-item.is-off { background: #FAFBFD; }
.field-item.is-off .field-name { color: var(--muted-2); }
.field-order { display: flex; flex-direction: column; gap: 2px; }
.order-btn {
  width: 22px; height: 18px; border: 1px solid var(--line); border-radius: 5px; background: #fff;
  color: var(--muted); font-size: 10px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.order-btn:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.order-btn:disabled { opacity: .35; cursor: not-allowed; }
.field-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.field-help { font-size: 12px; color: var(--muted); margin-top: 2px; }
.field-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.field-item .grow { flex: 1; min-width: 0; }

.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #EEF2F8 25%, #F6F9FC 37%, #EEF2F8 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.loading-row { padding: 40px; text-align: center; color: var(--muted-2); font-size: 13px; }

/* ------------------------------- 弹窗 ---------------------------------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .46); backdrop-filter: blur(2px); animation: fade .16s ease; }
.modal {
  position: relative; width: 100%; max-width: 540px; max-height: 88vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .18s ease;
}
.modal.modal-lg { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; background: #FCFDFF; border-radius: 0 0 16px 16px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

/* ------------------------------- 提示 ---------------------------------- */
.toast-root { position: fixed; right: 20px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 40px)); }
.toast {
  padding: 12px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 13px;
  border: 1px solid var(--line); border-left: 3px solid var(--navy); box-shadow: var(--shadow);
  animation: slideIn .2s ease; line-height: 1.6;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: #DC2626; }
.toast.out { opacity: 0; transform: translateX(10px); transition: opacity .25s, transform .25s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------- 响应式 -------------------------------- */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-wrap { min-height: 100vh; }
}

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; height: auto; flex-direction: row; align-items: center;
    padding: 10px 14px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line);
    overflow-x: auto; z-index: 30;
  }
  .sidebar .brand { padding: 0; flex: none; }
  .sidebar .brand-text { display: none; }
  .side-nav { flex-direction: row; margin: 0; gap: 4px; flex: 1; overflow: visible; }
  .nav-item { padding: 8px 11px; white-space: nowrap; }
  .nav-item span { font-size: 12.5px; }
  .side-foot { border-top: 0; padding: 0; flex: none; }
  .side-user { display: none; }
  .admin-topbar { position: static; padding: 16px 18px; }
  .admin-main { padding: 18px; }
}

@media (max-width: 720px) {
  .user-main { padding: 22px 16px 56px; }
  .user-topbar { padding: 12px 16px; }
  .user-topbar .brand-text small { display: none; }
  .user-hero h1 { font-size: 21px; }
  .card-pad, .card-body, .card-head { padding: 16px 18px; }
  .status-card { padding: 16px 18px; }
  .kv-list { grid-template-columns: 1fr; gap: 12px; }
  .report-card { flex-wrap: wrap; padding: 16px; }
  .report-info { flex-basis: calc(100% - 58px); }
  .report-actions { width: 100%; }
  .report-actions .btn { flex: 1; }
  .stat-grid { gap: 10px; }
  .stat-card { padding: 14px 16px; }
  .stat-value { font-size: 23px; }
  .seg { width: 100%; }
  .seg-btn { flex: 1; justify-content: center; }
  .admin-topbar { flex-wrap: wrap; }
  .modal { max-height: 92vh; }
  .toast-root { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

@media (max-width: 460px) {
  .brand-text strong { font-size: 14px; }
  .user-chip { font-size: 12px; padding-right: 9px; }
  .field-row { grid-template-columns: 1fr; }
}
