/* SIKAMPUS STIE Wikara — tema warna diambil dari logo (biru, kuning, merah) */
:root {
  --primary: #00009b;
  --primary-700: #00006e;
  --primary-600: #0a0ab8;
  --primary-100: #e3e5ff;
  --primary-50: #f2f3ff;
  --accent: #f5c400;
  --accent-50: #fff8d6;
  --red: #d70a1a;
  --red-50: #fdeced;
  --green: #0b8a4a;
  --green-50: #e6f6ee;
  --amber: #b26a00;
  --amber-50: #fff3dc;
  --sky: #0369a1;
  --sky-50: #e4f3fc;
  --ink: #12142b;
  --ink-2: #3c3f5c;
  --muted: #6b6f8a;
  --line: #e3e5ef;
  --line-2: #eef0f6;
  --bg: #f5f6fb;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 18, 60, .05), 0 4px 16px rgba(16, 18, 60, .05);
  --shadow-lg: 0 12px 40px rgba(16, 18, 60, .16);
  --sidebar-w: 268px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.muted { color: var(--muted); } .small { font-size: .82rem; } .nowrap { white-space: nowrap; }
.text-right { text-align: right; } .text-center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px }
.inline { display: inline; }
.hidden { display: none !important; }
.flex { display: flex; gap: 10px; align-items: center; } .flex-wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; }
.stack > * + * { margin-top: 16px; }

/* ---------- Layout ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  background: linear-gradient(180deg, var(--primary) 0%, #00007a 55%, #000055 100%);
  color: #dfe2ff; display: flex; flex-direction: column; transition: transform .25s ease;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand img { width: 46px; height: 46px; background: #fff; border-radius: 50%; padding: 2px; }
.brand b { display: block; color: #fff; font-size: 1.05rem; letter-spacing: .06em; }
.brand small { color: var(--accent); font-weight: 600; font-size: .75rem; letter-spacing: .02em; }
.nav { flex: 1; overflow-y: auto; padding: 10px 10px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(223,226,255,.55); padding: 16px 12px 6px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; color: #dfe2ff; font-weight: 500; font-size: .9rem; margin: 1px 0; }
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.nav a.active { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.nav a.active .ic { color: var(--primary); }
.nav a .ic { color: rgba(223,226,255,.75); }
.nav .count { margin-left: auto; background: var(--accent); color: var(--ink); border-radius: 99px; font-size: .7rem; padding: 0 7px; font-weight: 700; }
.sidebar-foot { padding: 12px 18px; font-size: .72rem; color: rgba(223,226,255,.5); border-top: 1px solid rgba(255,255,255,.08); }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  height: 62px; padding: 0 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .menu-btn { display: none; }
.topbar-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--primary-50); color: var(--primary); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip-accent { background: var(--accent-50); color: #7a5b00; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--line-2); }
.icon-btn .ic { width: 20px; height: 20px; }
.dot-count { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.user-btn { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 12px; font: inherit; color: inherit; text-align: left; }
.user-btn:hover { background: var(--line-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-100); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.user-meta b { display: block; font-size: .86rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { color: var(--muted); font-size: .74rem; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 50; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--line-2); text-decoration: none; }
.notif-menu { width: 360px; max-width: calc(100vw - 24px); padding: 0; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex !important; gap: 10px; padding: 11px 14px !important; border-radius: 0 !important; border-bottom: 1px solid var(--line-2); align-items: flex-start !important; }
.notif-item.unread { background: var(--primary-50); }
.notif-item .t { font-weight: 600; font-size: .85rem; } .notif-item .m { font-size: .8rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item .w { font-size: .72rem; color: var(--muted); }
.notif-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.k-tagihan { background: var(--red-50); color: var(--red); } .k-pembelajaran { background: var(--sky-50); color: var(--sky); }
.k-penilaian { background: var(--green-50); color: var(--green); } .k-info, .k-akademik { background: var(--primary-50); color: var(--primary); }
.k-kegiatan { background: var(--accent-50); color: #7a5b00; } .k-mutu { background: #f1e8ff; color: #6d28d9; } .k-sistem { background: var(--line-2); color: var(--ink-2); }

.content { flex: 1; padding: 24px; max-width: 1400px; width: 100%; }
.footer { padding: 16px 24px; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--line); background: #fff; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; display: flex; align-items: center; gap: 10px; }
.page-head h1 .ic { width: 26px; height: 26px; color: var(--primary); }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 720px; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.card-head h2 .ic, .card-head h3 .ic { color: var(--primary); }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: #fafbfe; border-radius: 0 0 var(--radius) var(--radius); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.hero {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 24px 26px; color: #fff; margin-bottom: 20px;
  background: radial-gradient(1200px 300px at 100% 0%, rgba(245,196,0,.28), transparent 60%), linear-gradient(120deg, var(--primary) 0%, #1b1bc4 100%);
}
.hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 240px; height: 240px; background: url("../img/logo.png") center/contain no-repeat; opacity: .12; }
.hero h1 { color: #fff; font-size: 1.5rem; margin-bottom: 4px; }
.hero p { color: #d8dbff; margin: 0; }
.hero .chip { background: rgba(255,255,255,.16); color: #fff; }

.stat { display: flex; gap: 14px; align-items: center; padding: 18px; }
.stat-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat-ico .ic { width: 22px; height: 22px; }
.stat-val { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-lbl { color: var(--muted); font-size: .8rem; }
.bg-primary { background: var(--primary-50); color: var(--primary); } .bg-accent { background: var(--accent-50); color: #8a6700; }
.bg-red { background: var(--red-50); color: var(--red); } .bg-green { background: var(--green-50); color: var(--green); } .bg-sky { background: var(--sky-50); color: var(--sky); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; line-height: 1.2; white-space: nowrap; transition: background .15s, box-shadow .15s; text-decoration: none !important; }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); box-shadow: 0 4px 14px rgba(0,0,155,.25); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #ffd21f; }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary-100); }
.btn-outline:hover { background: var(--primary-50); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 7px 9px; }
.btn-ghost:hover { background: var(--line-2); }
.btn-ghost.danger { color: var(--red); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--line-2); }
.btn-sm { padding: 6px 11px; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.badge-success { background: var(--green-50); color: var(--green); }
.badge-warning { background: var(--amber-50); color: var(--amber); }
.badge-danger { background: var(--red-50); color: var(--red); }
.badge-info { background: var(--sky-50); color: var(--sky); }
.badge-muted { background: var(--line-2); color: var(--ink-2); }
.badge-primary { background: var(--primary-50); color: var(--primary); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--muted); }
.dot-perkuliahan { background: var(--primary); } .dot-krs { background: var(--sky); } .dot-ujian { background: var(--red); } .dot-libur { background: var(--green); } .dot-pmb { background: var(--accent); } .dot-wisuda { background: #7c3aed; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 11px 14px; background: #fafbfe; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover { background: #fafbff; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .actions-col { text-align: right; white-space: nowrap; width: 1%; }
.table input.input, .table select.input { padding: 6px 8px; min-width: 70px; }
.table-compact td, .table-compact th { padding: 7px 10px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: var(--line); display: block; margin: 0 auto 10px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .label { display: block; font-weight: 600; font-size: .83rem; margin-bottom: 6px; color: var(--ink-2); }
.field .req { color: var(--red); }
.field .help { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .9rem; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,0,155,.12); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-section { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); font-weight: 800; margin: 8px 0 -4px; grid-column: 1 / -1; padding-top: 10px; border-top: 1px dashed var(--line); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .input { width: auto; min-width: 150px; padding: 8px 11px; }
.search-box { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.search-box .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box .input { padding-left: 36px; width: 100%; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; }
.scale span { display: grid; place-items: center; min-width: 46px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; font-size: .85rem; text-align: center; }
.scale small { display: block; font-weight: 500; font-size: .65rem; color: var(--muted); }
.scale input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.scale input:checked + span small { color: #d8dbff; }
.scale input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,0,155,.2); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; font-size: .9rem; }
.alert .ic { margin-top: 2px; }
.alert-success { background: var(--green-50); border-color: #b9e6cf; color: #075e33; }
.alert-error, .alert-danger { background: var(--red-50); border-color: #f6c3c7; color: #8f0610; }
.alert-warning { background: var(--amber-50); border-color: #f5d9a6; color: #7a4800; }
.alert-info { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-700); }
.alert .close { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: .88rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--primary); border-color: var(--primary); }

/* ---------- Misc components ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 20px; border-bottom: 1px solid var(--line-2); display: flex; gap: 12px; align-items: center; }
.list > li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.progress.green > span { background: var(--green); } .progress.accent > span { background: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.req-list li { gap: 12px; }
.req-ok, .req-no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.req-ok { background: var(--green-50); color: var(--green); } .req-no { background: var(--red-50); color: var(--red); }
.sched { display: flex; gap: 12px; align-items: center; }
.sched-time { min-width: 62px; text-align: center; padding: 6px; border-radius: 10px; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: .78rem; line-height: 1.3; }
.week { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; }
.week-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.slot { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 10px; padding: 10px; margin-bottom: 8px; font-size: .82rem; }
.slot b { display: block; font-size: .84rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 92px; padding: 6px; font-size: .74rem; background: #fff; }
.cal .dow { min-height: auto; font-weight: 700; text-align: center; background: #fafbfe; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cal .out { background: #fafbfe; color: #b5b8cc; }
.cal .today { background: var(--primary-50); }
.cal .num { font-weight: 700; margin-bottom: 4px; display: block; }
.cal .ev { display: block; padding: 2px 6px; border-radius: 6px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; background: var(--primary); }
.ev-krs { background: var(--sky) !important; } .ev-ujian { background: var(--red) !important; } .ev-libur { background: var(--green) !important; } .ev-pmb { background: var(--accent) !important; color: var(--ink) !important; } .ev-wisuda { background: #7c3aed !important; } .ev-lainnya { background: var(--ink-2) !important; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.book { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.book:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.book-cover { aspect-ratio: 3/4; background: linear-gradient(150deg, var(--primary) 0%, #2a2ad0 100%); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; position: relative; }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-cover img.book-logo { inset: 36px 10px auto auto; width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 1px; object-fit: contain; }
.book-cover .t { font-weight: 800; font-size: .92rem; line-height: 1.25; position: relative; }
.book-cover .j { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--ink); font-size: .65rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; }
.book-body { padding: 10px 12px; font-size: .8rem; }
.book-body b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; }
.reader { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.pager .pages { display: flex; gap: 4px; }
.pager a, .pager span.cur { min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.pager span.cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.code-box { font-family: ui-monospace, Menlo, monospace; font-size: 2rem; font-weight: 800; letter-spacing: .3em; padding: 14px 20px; background: var(--accent-50); border: 2px dashed var(--accent); border-radius: 14px; text-align: center; color: var(--ink); }
.att { display: inline-flex; gap: 2px; }
.att label input { display: none; }
.att label span { display: inline-grid; place-items: center; width: 32px; height: 30px; border: 1px solid var(--line); border-radius: 7px; font-weight: 700; font-size: .78rem; cursor: pointer; color: var(--muted); }
.att label input:checked + span.H { background: var(--green); color: #fff; border-color: var(--green); }
.att label input:checked + span.I { background: var(--sky); color: #fff; border-color: var(--sky); }
.att label input:checked + span.S { background: var(--amber); color: #fff; border-color: var(--amber); }
.att label input:checked + span.A { background: var(--red); color: #fff; border-color: var(--red); }
.grade { font-weight: 800; font-size: 1.05rem; }
.install-banner { display: none; }

/* ---------- SPMI: pohon folder & rak file ---------- */
.tree { padding: 6px 12px 14px; }
.tree details { margin: 4px 0 4px 0; }
.tree details details { margin-left: 18px; padding-left: 12px; border-left: 2px solid var(--line); }
.tree summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary:hover { background: var(--line-2); }
.tree summary .caret { transition: transform .15s; color: var(--muted); }
.tree details[open] > summary .caret { transform: rotate(90deg); }
.tree .fname { font-weight: 700; }
.tree .fhidden { opacity: .5; }
.tree .fcount { margin-left: auto; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.tree .slots { margin: 2px 0 6px 30px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.slot-row { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line-2); font-size: .86rem; }
.slot-row:last-child { border-bottom: 0; }
.slot-row .grow, .tree summary .fname { min-width: 0; overflow-wrap: anywhere; }
.card-head { flex-wrap: wrap; }
.slot-row:hover { background: #fafbff; }
.sdot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--line); }
.sdot.kosong { background: #c9ccdb; } .sdot.menunggu_review { background: var(--accent); } .sdot.disetujui { background: var(--green); } .sdot.revisi { background: var(--red); }
.stackbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line-2); }
.stackbar span { display: block; height: 100%; }
.stackbar .b-ok { background: var(--green); } .stackbar .b-wait { background: var(--accent); } .stackbar .b-rev { background: var(--red); } .stackbar .b-empty { background: #d4d7e5; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .76rem; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.mini-actions { display: flex; gap: 2px; }
.mini-actions .btn { padding: 4px 7px; }
.sticky { position: sticky; top: 78px; }
.jenis-spmi { background: linear-gradient(120deg, var(--primary), #2b2bd6); color: #fff; }
.jenis-spme { background: linear-gradient(120deg, #0b6b3e, #0b8a4a); color: #fff; }
.jenis-head { padding: 18px 20px; border-radius: var(--radius) var(--radius) 0 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.jenis-head b { font-size: 1.3rem; letter-spacing: .04em; } .jenis-head small { opacity: .8; display: block; }
.preview { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* ---------- Guest (login/PMB) ---------- */
.guest { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.guest-art { background: radial-gradient(800px 400px at 0% 100%, rgba(245,196,0,.25), transparent 60%), linear-gradient(140deg, var(--primary) 0%, #00006e 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.guest-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 520px; height: 520px; background: url("../img/logo.png") center/contain no-repeat; opacity: .08; }
.guest-art h1 { font-size: 2.3rem; color: #fff; max-width: 480px; letter-spacing: -.02em; }
.guest-art p { color: #d8dbff; max-width: 460px; font-size: 1rem; }
.guest-art .feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; position: relative; z-index: 1; }
.guest-art .feat div { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.08); padding: 10px 12px; border-radius: 12px; font-size: .86rem; }
.guest-art .feat .ic { color: var(--accent); }
.guest-form { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.guest-box { width: 100%; max-width: 400px; }
.guest-box .logo { width: 84px; height: 84px; margin-bottom: 16px; }
.btn-google { background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; padding: 13px 18px; width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.btn-google:hover { background: #f8f9fc; }
.btn-google .ic { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.public-wrap { max-width: 920px; margin: 0 auto; padding: 24px 16px 60px; }
.public-top { background: var(--primary); color: #fff; }
.public-top .inner { max-width: 920px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.public-top img { width: 42px; height: 42px; background: #fff; border-radius: 50%; padding: 2px; }
.public-top a { color: #fff; }

/* ---------- Print ---------- */
.print-only { display: none; }
/* ---------- Log aktivitas ---------- */
.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; color: inherit; min-width: 0; }
.bar:hover { text-decoration: none; } .bar:hover .bar-col { filter: brightness(1.12); }
.bar-n { font-size: .68rem; color: var(--muted); font-weight: 600; }
.bar-col { width: 100%; max-width: 34px; min-height: 2px; background: var(--primary); border-radius: 6px 6px 2px 2px; display: flex; flex-direction: column; overflow: hidden; }
.bar-gagal { display: block; background: var(--red); width: 100%; flex: none; }
.bar-lbl { font-size: .7rem; color: var(--muted); } .bar-lbl.today { color: var(--primary); font-weight: 800; }
.row-gagal td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.log-ket { min-width: 220px; max-width: 420px; overflow-wrap: anywhere; }
.log-diff { width: 100%; border-collapse: collapse; font-size: .86rem; }
.log-diff th, .log-diff td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; overflow-wrap: anywhere; }
.log-diff th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.log-diff .dari { color: var(--red); text-decoration: line-through; text-decoration-color: rgba(215,10,26,.35); }
.log-diff .ke { color: var(--green); font-weight: 600; }
.log-json { background: var(--line-2); border-radius: 10px; padding: 12px 14px; font-size: .8rem; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }

/* ---------- Sidebar: portal & menu accordion ---------- */
.brand-link { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand-link:hover { text-decoration: none; }
.portal-switch { margin: 10px 10px 2px; }
.ps-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; font: inherit; cursor: pointer; text-align: left; }
.ps-btn:hover { background: rgba(255,255,255,.12); }
.ps-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--pc), var(--pc2)); box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.ps-ico .ic { width: 18px; height: 18px; color: #fff; }
.ps-txt { flex: 1; min-width: 0; line-height: 1.25; }
.ps-txt b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-txt small { color: rgba(223,226,255,.7); font-size: .72rem; }
.ps-chev { color: rgba(223,226,255,.7); flex: none; }
.ps-menu { left: 0; right: 0; min-width: 0; top: calc(100% + 6px); }
.ps-menu a { gap: 10px; }
.ps-menu a b { font-size: .86rem; }
.ps-menu a.cur { background: var(--primary-50); }
.ps-dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.ps-dot .ic { color: #fff; width: 16px; height: 16px; }
.chip-portal { background: color-mix(in srgb, var(--pc) 10%, #fff); color: var(--pc); }

.nav-link { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; color: #dfe2ff; font-weight: 500; font-size: .9rem; margin: 1px 0; }
.nav-link:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.nav-link.active { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.nav-link .ic { color: rgba(223,226,255,.75); flex: none; }
.nav-link.active .ic { color: var(--primary); }
.nav-link > span:first-of-type { flex: 1; min-width: 0; }
.nav-link .ext { width: 14px; height: 14px; opacity: .6; }
.nav-link.is-nonaktif, .nav-link.is-sembunyi { opacity: .5; }
.nav-link.is-nonaktif[aria-disabled] { cursor: not-allowed; }
.nav-link.is-nonaktif[aria-disabled]:hover { background: none; color: #dfe2ff; }
.nav-lock { margin-left: auto; display: inline-flex; }
.nav-lock .ic { width: 14px; height: 14px; }
.nav-group { margin: 2px 0; }
.nav-cat { width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: #fff; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; text-align: left; letter-spacing: .01em; }
.nav-cat:hover { background: rgba(255,255,255,.08); }
.nav-cat > span { flex: 1; min-width: 0; }
.nav-cat .ic { color: var(--accent); flex: none; }
.nav-cat .chev { color: rgba(223,226,255,.6); width: 16px; height: 16px; transition: transform .2s ease; }
.nav-group.open > .nav-cat { background: rgba(255,255,255,.06); }
.nav-group.open > .nav-cat .chev { transform: rotate(180deg); }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.nav-group.open > .nav-cat .nav-dot { display: none; }
.nav-items { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .22s ease; }
.js .nav-group:not(.open) > .nav-items { grid-template-rows: 0fr; }
.nav-inner { overflow: hidden; min-height: 0; padding-left: 12px; margin-left: 20px; border-left: 1px solid rgba(255,255,255,.12); }
.js .nav-group:not(.open) > .nav-items > .nav-inner { visibility: hidden; }
.nav-group.lvl-1 > .nav-cat { font-size: .82rem; font-weight: 600; color: #e9ebff; padding: 7px 10px; }
.nav-group.lvl-1 > .nav-cat .ic:not(.chev) { color: rgba(245,196,0,.75); width: 16px; height: 16px; }
.nav-group .nav-link { font-size: .86rem; padding: 7px 10px; }
@media (prefers-reduced-motion: reduce) { .nav-items, .nav-cat .chev { transition: none; } }

/* ---------- Halaman pilih portal & login portal ---------- */
.pp-wrap { min-height: 100vh; background: radial-gradient(900px 420px at 100% 0%, rgba(245,196,0,.16), transparent 60%), linear-gradient(180deg, #f4f5fc, #eef0fa); }
.pp-head { max-width: 1120px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.pp-brand:hover { text-decoration: none; }
.pp-brand img { background: #fff; border-radius: 50%; padding: 2px; box-shadow: var(--shadow); }
.pp-brand b { display: block; letter-spacing: .06em; color: var(--primary); }
.pp-brand small { color: var(--muted); font-size: .8rem; }
.pp-main { max-width: 1120px; margin: 0 auto; padding: 18px 20px 60px; }
.pp-main h1 { font-size: 1.9rem; letter-spacing: -.02em; margin: 10px 0 4px; }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 22px; }
.portal-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.portal-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--pc), var(--pc2)); }
.portal-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(18,20,43,.12); text-decoration: none; }
.pc-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pc), var(--pc2)); color: #fff; }
.pc-ico .ic { width: 24px; height: 24px; }
.pc-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pc-body b { font-size: 1.1rem; }
.pc-sub { color: var(--pc); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.pc-desc { color: var(--ink-2); font-size: .88rem; }
.pc-untuk { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.pc-untuk .ic { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.pc-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--pc); font-size: .9rem; }
.pc-go .ic { width: 16px; height: 16px; transition: transform .15s; }
.portal-card:hover .pc-go .ic { transform: translateX(3px); }
.pp-public { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 28px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pp-public a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.portal-art { background: radial-gradient(800px 400px at 0% 100%, rgba(255,255,255,.14), transparent 60%), linear-gradient(140deg, var(--pc) 0%, color-mix(in srgb, var(--pc) 70%, #000) 100%); }
.portal-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.15); font-weight: 600; font-size: .82rem; margin-bottom: 14px; }
.portal-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pc), var(--pc2)); color: #fff; margin-bottom: 14px; box-shadow: 0 8px 22px color-mix(in srgb, var(--pc) 35%, transparent); }
.portal-mark .ic { width: 28px; height: 28px; }
.portal-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.portal-mini a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); font-size: .74rem; font-weight: 600; text-align: center; }
.portal-mini a .ic { color: var(--pc); }
.portal-mini a:hover { border-color: var(--pc); text-decoration: none; background: color-mix(in srgb, var(--pc) 6%, #fff); }

/* ---------- Beranda portal utama ---------- */
.news-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-mini a { display: flex; gap: 12px; color: var(--ink); align-items: center; }
.news-mini a:hover { text-decoration: none; }
.news-mini a:hover b { color: var(--primary); }
.nm-img { width: 92px; height: 66px; border-radius: 10px; background: var(--primary-50) center/cover no-repeat; flex: none; }
.news-mini small { display: block; color: var(--muted); font-size: .74rem; }
.news-mini b { font-size: .86rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Registrasi anggota portal ---------- */
.member-card { position: relative; border-radius: 18px; padding: 22px; color: #fff; background: radial-gradient(500px 220px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--pc), color-mix(in srgb, var(--pc) 60%, #000)); overflow: hidden; max-width: 460px; box-shadow: 0 14px 30px color-mix(in srgb, var(--pc) 30%, transparent); }
.member-card::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 190px; height: 190px; background: url("../img/logo.png") center/contain no-repeat; opacity: .12; }
.member-card .mc-top { display: flex; align-items: center; gap: 10px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.member-card .mc-top img { width: 34px; height: 34px; background: #fff; border-radius: 50%; padding: 2px; }
.member-card .mc-name { font-size: 1.25rem; font-weight: 800; margin: 18px 0 2px; }
.member-card .mc-no { font-family: ui-monospace, Menlo, monospace; font-size: 1.05rem; letter-spacing: .12em; }
.member-card .mc-meta { display: flex; gap: 22px; margin-top: 16px; font-size: .78rem; opacity: .9; }
.member-card .mc-meta b { display: block; font-size: .9rem; }
.reg-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.reg-steps span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--line-2); color: var(--muted); font-size: .8rem; font-weight: 600; }
.reg-steps span.done { background: var(--green-50); color: var(--green); }
.reg-steps span.cur { background: var(--primary-50); color: var(--primary); }

/* ---------- Pengaturan menu ---------- */
.menu-admin .grp-title { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--line-2); font-weight: 700; font-size: .85rem; }
.menu-admin .grp-title.sub { background: #f7f8fc; font-weight: 600; padding-left: 34px; }
.menu-admin .row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 272px minmax(0, 1.2fr); gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.menu-admin .row.is-nonaktif { background: #fffbea; }
.menu-admin .row.is-sembunyi { background: #f5f5f8; }
.menu-admin .row .lbl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.menu-admin .row .lbl .ic { color: var(--primary); flex: none; }
.menu-admin .row code { font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; }
.menu-admin .row .input { padding: 7px 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.seg input:checked + span.on { background: var(--green-50); color: var(--green); }
.seg input:checked + span.off { background: var(--accent-50); color: #8a6700; }
.seg input:checked + span.hide { background: var(--line); color: var(--ink-2); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: -2px; }
.seg .ic { width: 13px; height: 13px; }
@media (max-width: 900px) {
  .menu-admin .row { grid-template-columns: 1fr; gap: 6px; }
  .news-mini { grid-template-columns: 1fr; }
  .portal-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-main h1 { font-size: 1.5rem; }
}

@media print {
  .sidebar, .topbar, .footer, .no-print, .page-head .actions, .install-banner { display: none !important; }
  .main { margin: 0; } .content { padding: 0; } body { background: #fff; font-size: 12px; }
  .card { box-shadow: none; border: 0; } .print-only { display: block; }
  .table th, .table td { padding: 5px 8px; }
}
.kop { display: flex; align-items: center; gap: 16px; border-bottom: 3px double var(--ink); padding-bottom: 10px; margin-bottom: 16px; }
.kop img { width: 70px; height: 70px; }
.kop h2 { margin: 0; font-size: 1.15rem; } .kop p { margin: 0; font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sticky { position: static; }
  .tree { padding: 6px 6px 12px; }
  .tree .slots { margin-left: 4px; }
  .tree details details { margin-left: 6px; padding-left: 8px; }
  .tree summary { flex-wrap: wrap; padding: 8px 6px; }
  .tree .fcount { margin-left: 28px; width: 100%; }
  .slot-row { flex-wrap: wrap; padding: 9px 10px; }
  .slot-row .grow { flex-basis: calc(100% - 24px); }
  .slot-row .badge { margin-left: 20px; }
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .overlay { position: fixed; inset: 0; background: rgba(10,10,40,.45); z-index: 35; }
  .main { margin-left: 0; }
  .topbar { padding: 0 12px; }
  .topbar .menu-btn { display: inline-grid; }
  .user-meta { display: none; }
  .content { padding: 16px 14px 90px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .guest { grid-template-columns: 1fr; }
  .guest-art { padding: 28px 22px; }
  .guest-art h1 { font-size: 1.6rem; }
  .guest-art .feat { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
  .install-banner.show { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 14px; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); }
}
@media (max-width: 600px) {
  .bars { gap: 3px; height: 150px; } .bar-n { font-size: .6rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .stat { padding: 14px; gap: 10px; } .stat-ico { width: 38px; height: 38px; } .stat-val { font-size: 1.15rem; }
  .page-head h1 { font-size: 1.2rem; }
  .card-body { padding: 16px; }
  .topbar-title .chip { display: none; }
  .hero { padding: 20px; } .hero h1 { font-size: 1.2rem; }
}
