:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #34d399;
  --accent: #06b6d4;
  --radar: #f59e0b;
  --radar-dark: #d97706;
  --navy: #0c1222;
  --navy-2: #111a2e;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: rgba(148, 163, 184, .18);
  --border-strong: rgba(148, 163, 184, .28);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .04);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, .03), 0 12px 32px rgba(15, 23, 42, .07);
  --shadow-lg: 0 4px 8px rgba(15, 23, 42, .04), 0 24px 54px rgba(15, 23, 42, .12);
  --radius: 16px;
  --radius-sm: 11px;
  --sidebar-w: 252px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

/* ── Shell ── */
.radar-shell { min-height: 100vh; }
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); z-index: 50;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.sidebar-brand { padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-brand img { height: 32px; width: auto; max-width: 190px; object-fit: contain; }
.brand-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #6ee7b7; letter-spacing: .04em; }
.brand-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.15); }
.side-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.nav-group-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(148,163,184,.55); padding: 14px 12px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px;
  color: rgba(226,232,240,.72); font-size: 13.5px; font-weight: 600; margin-bottom: 3px;
  transition: .16s ease; position: relative;
}
.nav-item .mdi { font-size: 19px; opacity: .9; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(5,150,105,.95), rgba(4,120,87,.95));
  color: #fff; box-shadow: 0 8px 20px rgba(5,150,105,.24);
}
.nav-item.active .mdi { opacity: 1; }
.nav-badge { margin-left: auto; font-size: 10.5px; font-weight: 800; background: rgba(245,158,11,.16); color: #fbbf24; border: 1px solid rgba(245,158,11,.28); padding: 1px 7px; border-radius: 999px; }
.sidebar-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.04); }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); flex: 0 0 auto; }
.user-mini-name { font-size: 12.5px; font-weight: 700; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mini-role { font-size: 10.5px; color: rgba(148,163,184,.72); margin-top: 2px; }
.sidebar-foot-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 12px; color: rgba(148,163,184,.78); padding: 8px; border-radius: 9px; }
.sidebar-foot-link:hover { background: rgba(255,255,255,.05); color: #e2e8f0; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; background: rgba(244,247,251,.86);
  backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border);
}
.topbar-inner { max-width: 1320px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 21px; }
.page-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.page-sub { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.content { max-width: 1320px; margin: 0 auto; padding: 24px 28px 60px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 15px; border-radius: 11px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; transition: .18s ease; white-space: nowrap;
}
.btn .mdi { font-size: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; box-shadow: 0 6px 16px rgba(5,150,105,.2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(5,150,105,.26); }
.btn-amber { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; box-shadow: 0 6px 16px rgba(245,158,11,.22); }
.btn-amber:hover { transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: rgba(5,150,105,.4); color: var(--primary-dark); background: #f8fdfb; }
.btn-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.btn-danger:hover { background: #fee2e2; }
.btn-sm { min-height: 33px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.btn-icon { width: 38px; height: 38px; padding: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Cards ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.section { margin-bottom: 22px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-title .mdi { color: var(--radar-dark); font-size: 19px; }
.section-desc { font-size: 12px; color: var(--faint); margin-top: 3px; }
.section-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 17px 18px; box-shadow: var(--shadow-sm); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-icon { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; }
.stat-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.stat-value { font-size: 27px; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; line-height: 1; }
.stat-hint { font-size: 11px; color: var(--faint); margin-top: 6px; }
.tone-amber { background: rgba(245,158,11,.11); color: #d97706; }
.tone-green { background: rgba(5,150,105,.09); color: var(--primary); }
.tone-blue { background: rgba(59,130,246,.09); color: #2563eb; }
.tone-cyan { background: rgba(6,182,212,.1); color: #0891b2; }
.tone-rose { background: rgba(244,63,94,.09); color: #e11d48; }

/* ── Filters ── */
.filters { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.search-wrap { position: relative; flex: 1; min-width: 190px; max-width: 330px; }
.search-wrap .mdi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 17px; }
.input, .textarea {
  width: 100%; border: 1.5px solid rgba(148,163,184,.2); background: #fff; color: var(--text);
  border-radius: 11px; font-size: 13px; outline: none; transition: .18s ease;
}
.input { height: 40px; padding: 0 13px; }
.search-wrap .input { padding-left: 37px; }
.input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(5,150,105,.09); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { min-height: 92px; padding: 11px 13px; resize: vertical; line-height: 1.7; }
.field { margin-bottom: 15px; }
.field-label { display: block; font-size: 12px; font-weight: 800; color: var(--text-2); margin-bottom: 7px; }
.field-hint { font-size: 11px; color: var(--faint); margin-top: 5px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-2);
  font-size: 12px; font-weight: 700; transition: .15s ease; user-select: none;
}
.chip:hover { border-color: rgba(5,150,105,.35); color: var(--primary-dark); }
.chip.active { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.chip.amber.active { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.chip .mdi { font-size: 14px; }

/* Custom select */
.select-wrap { position: relative; min-width: 132px; }
.select-btn {
  width: 100%; height: 40px; padding: 0 32px 0 13px; border-radius: 11px; border: 1.5px solid rgba(148,163,184,.2);
  background: #fff; color: var(--text-2); font-size: 12.5px; font-weight: 700; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.select-btn > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-btn:hover { border-color: rgba(5,150,105,.35); }
.select-btn .chevron { color: var(--faint); font-size: 16px; transition: .18s ease; }
.select-btn.open .chevron { transform: rotate(180deg); }
.select-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 5px; max-height: 280px; overflow-y: auto;
}
.select-option { padding: 9px 11px; border-radius: 8px; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.select-option:hover { background: #f8fafc; color: var(--text); }
.select-option.active { background: #ecfdf5; color: #047857; font-weight: 800; }

/* 自绘复选框 */
.check {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(148,163,184,.45);
  background: #fff; display: inline-grid; place-items: center; color: #fff; font-size: 13px;
  flex: 0 0 auto; transition: .15s ease;
}
.check.on { background: var(--primary); border-color: var(--primary); box-shadow: 0 2px 6px rgba(5,150,105,.2); }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* Toggle */
.toggle { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #e2e8f0; border: 0; padding: 0; transition: .2s ease; flex: 0 0 auto; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s ease; }
.toggle.on { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.toggle.on::after { transform: translateX(18px); }
.toggle.sm { width: 36px; height: 21px; }
.toggle.sm::after { width: 15px; height: 15px; }
.toggle.sm.on::after { transform: translateX(15px); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.badge-green { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-blue { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-gray { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.badge-rose { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.badge-cyan { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }

/* Item cards */
.item-list { display: flex; flex-direction: column; gap: 10px; }
.item-card { display: block; padding: 17px 19px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: .18s ease; }
.item-card:hover { border-color: rgba(245,158,11,.35); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.item-title { font-size: 14.5px; font-weight: 800; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.item-meta .sep { color: #cbd5e1; }
.item-words { color: #b45309; font-weight: 700; }
.item-foot { display: flex; align-items: center; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.item-budget { font-size: 12px; font-weight: 800; color: var(--primary-dark); }

/* Panels / tables */
.panel-head { padding: 16px 19px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-title { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.panel-title .mdi { color: var(--faint); font-size: 17px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .04em; color: var(--faint); font-weight: 800; padding: 11px 14px; background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(226,232,240,.75); color: var(--text-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfdff; }
.row-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--muted); display: inline-grid; place-items: center; font-size: 15px; }
.icon-btn:hover { color: var(--primary-dark); border-color: rgba(5,150,105,.3); background: #f8fdfb; }
.icon-btn.danger:hover { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 0 4px; }
.pager-info { font-size: 12px; color: var(--faint); min-width: 90px; text-align: center; }

/* Empty / loading */
.empty { padding: 46px 20px; text-align: center; color: var(--faint); font-size: 13px; }
.empty .mdi { display: block; font-size: 42px; color: #cbd5e1; margin-bottom: 10px; }
.loading { padding: 60px 20px; text-align: center; color: var(--faint); font-size: 13px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #d1fae5; border-top-color: var(--primary); animation: spin .7s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal / drawer */
.overlay { position: fixed; inset: 0; background: rgba(10,15,30,.48); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: 100%; max-width: 680px; max-height: calc(100vh - 40px); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.modal.wide { max-width: 860px; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-title { font-size: 16px; font-weight: 800; }
.modal-sub { font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 9px; background: #fbfdff; }
.icon-btn.modal-close { border: 0; background: transparent; font-size: 20px; }

/* Detail */
.detail-hero { padding: 24px; background: linear-gradient(135deg, #fffdf7, #ffffff 60%); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.detail-title { font-size: 21px; font-weight: 800; line-height: 1.45; letter-spacing: -.02em; }
.detail-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.info-cell { background: #fff; padding: 13px 15px; }
.info-label { font-size: 10.5px; letter-spacing: .05em; color: var(--faint); font-weight: 800; text-transform: uppercase; }
.info-value { font-size: 13px; color: var(--text-2); margin-top: 5px; line-height: 1.6; word-break: break-word; }
.content-body { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.95; color: var(--text-2); max-height: 62vh; overflow-y: auto; padding: 20px; }
.content-body::-webkit-scrollbar { width: 7px; }
.content-body::-webkit-scrollbar-thumb { background: #dbe3ec; border-radius: 10px; }
.status-row { display: flex; gap: 7px; flex-wrap: wrap; }
.status-btn { min-height: 37px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 12.5px; font-weight: 700; }
.status-btn.active { background: #fffbeb; border-color: #fcd34d; color: #b45309; }

/* Source cards */
.source-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.source-card { padding: 17px 18px; }
.source-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.source-name { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.status-dot.ok { background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.12); }
.status-dot.fail { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.source-status { font-size: 11px; color: var(--faint); margin-top: 7px; line-height: 1.6; word-break: break-all; }
.source-actions { display: flex; align-items: center; gap: 9px; margin-top: 13px; flex-wrap: wrap; }
.mini-input { width: 74px; height: 34px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--border); font-size: 12px; color: var(--text-2); background: #fff; }
.channel-list { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 5px; max-height: 220px; overflow-y: auto; }
.channel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-2); padding: 4px 0; }

/* WeCom */
.status-hero { display: flex; align-items: center; gap: 16px; padding: 20px; flex-wrap: wrap; }
.status-orb { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 27px; flex: 0 0 auto; }
.status-orb.ok { background: rgba(5,150,105,.1); color: var(--primary); }
.status-orb.off { background: rgba(148,163,184,.12); color: var(--faint); }
.status-hero-text { flex: 1; min-width: 180px; }
.status-hero-title { font-size: 16px; font-weight: 800; }
.status-hero-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; word-break: break-all; }

/* Login / no access */
.gate-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse 70% 50% at 15% 0%, rgba(5,150,105,.08), transparent 55%), var(--bg); }
.gate-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 38px 32px; text-align: center; box-shadow: var(--shadow-md); }
.gate-card img { height: 52px; width: auto; margin: 0 auto 18px; display: block; }
.gate-card .gate-icon { font-size: 48px; color: var(--radar); margin-bottom: 8px; }
.gate-title { font-size: 21px; font-weight: 800; }
.gate-sub { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 10px 0 22px; }
.gate-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 11px; font-size: 13px; z-index: 200; box-shadow: var(--shadow-md); max-width: calc(100vw - 32px); text-align: center; }
.toast.error { background: #991b1b; }
.fade-enter-active, .fade-leave-active { transition: opacity .18s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .source-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(10,15,30,.45); z-index: 45; }
  .main { margin-left: 0; }
  .menu-btn { display: grid; place-items: center; }
  .topbar-inner { padding: 11px 16px; gap: 10px; }
  .page-title { font-size: 16px; }
  .content { padding: 18px 16px 48px; }
  .detail-title { font-size: 18px; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats { gap: 9px; }
  .stat { padding: 14px; border-radius: 14px; }
  .stat-value { font-size: 23px; margin-top: 8px; }
  .stat-icon { width: 33px; height: 33px; font-size: 17px; }
  .stat-hint { display: none; }
  .item-card { padding: 14px 15px; border-radius: 14px; }
  .item-title { font-size: 13.5px; }
  .filters { gap: 7px; }
  .search-wrap { max-width: none; flex: 0 0 100%; }
  .select-wrap { flex: 0 0 calc(50% - 4px); min-width: 0; }
  .select-btn { font-size: 12px; padding-left: 11px; }
  .filters .chip { flex: 0 0 auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .modal { max-height: calc(100vh - 20px); border-radius: 16px; }
  .overlay { padding: 10px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .detail-hero { padding: 18px; }
  .content-body { padding: 16px; font-size: 13px; max-height: none; }
  .hide-mobile { display: none !important; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-actions { width: 100%; }
  .panel-head { padding: 13px 15px; }
}
