/* =========================================================
   DepoTask — gaya antarmuka
   Konsep: buku tabungan tugas + cap verifikasi guru
   ========================================================= */
:root {
  --ink: #1B2A4A; --ink-2: #263A63; --ink-3: #34507F;
  --paper: #F5F6FA; --surface: #FFFFFF; --surface-2: #F0F2F8;
  --line: #E1E5EE; --text: #1B2A4A; --muted: #66708A;
  --accent: #F2B705; --accent-ink: #3A2C00;
  --ok: #0E8A7E; --ok-bg: #E2F4F1;
  --rev: #C9423B; --rev-bg: #FBE9E7;
  --wait: #A86600; --wait-bg: #FFF3D6;
  --side: #1B2A4A; --side-text: #C9D2E6;
  --shadow: 0 1px 2px rgba(27, 42, 74, .06), 0 8px 24px -12px rgba(27, 42, 74, .18);
  --r-l: 18px; --r-m: 12px; --r-s: 8px;
  --f-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1525; --surface: #162036; --surface-2: #1C2842; --line: #273350;
    --text: #E7EBF4; --muted: #98A2BA; --side: #0A1120; --side-text: #AEB8D0;
    --ok-bg: rgba(14, 138, 126, .18); --rev-bg: rgba(201, 66, 59, .18); --wait-bg: rgba(242, 183, 5, .14);
    --ok: #3CC2B3; --rev: #F07068; --wait: #F2B705; --ink-3: #8FB0E8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1525; --surface: #162036; --surface-2: #1C2842; --line: #273350;
  --text: #E7EBF4; --muted: #98A2BA; --side: #0A1120; --side-text: #AEB8D0;
  --ok-bg: rgba(14, 138, 126, .18); --rev-bg: rgba(201, 66, 59, .18); --wait-bg: rgba(242, 183, 5, .14);
  --ok: #3CC2B3; --rev: #F07068; --wait: #F2B705; --ink-3: #8FB0E8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 15px/1.55 var(--f-body); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
small { font-size: .82em; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .pad { padding: 16px; }
.right { text-align: right; } .num { text-align: right; font-variant-numeric: tabular-nums; } .nowrap { white-space: nowrap; }
.inline { display: inline; }
.ic { flex: none; }

/* ---------- Layout ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 256px; background: var(--side); color: var(--side-text);
  display: flex; flex-direction: column; padding: 20px 14px; z-index: 40; transition: transform .25s ease;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 4px 8px 22px; color: #fff; }
.brand b { font-family: var(--f-display); font-size: 1.3rem; display: block; line-height: 1.1; }
.brand small { color: var(--side-text); display: block; font-size: .75rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-m); font-weight: 500; position: relative; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar nav a.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.sidebar nav a.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.sidebar nav a span { flex: 1; }
.pill { font-style: normal; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; }
.pill.light { background: rgba(255,255,255,.9); color: var(--ink); }
.side-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 6px 0; }
.me { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.me span { min-width: 0; } .me b { display: block; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { color: var(--side-text); }
.logout { padding: 8px; border-radius: 10px; color: var(--side-text); } .logout:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.main { margin-left: 256px; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 32px;
  background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-text { flex: 1; min-width: 0; }
.page-title { font-size: 1.3rem; }
.page-sub { margin: 1px 0 0; color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.content { padding: 28px 32px 56px; max-width: 1320px; }
.icon-btn.only-m { display: none; }
.scrim { display: none; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer;
  font: 600 .92rem/1 var(--f-body); padding: 11px 16px; border-radius: 10px; transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
:root[data-theme="dark"] .btn-primary { background: #3B5B95; } :root[data-theme="dark"] .btn-primary:hover { background: #4769A8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: #3B5B95; } }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px rgba(242, 183, 5, .8); }
.btn-accent:hover { background: #FFC61A; }
.btn-onink { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.btn-onink:hover { background: rgba(255, 255, 255, .18); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ok { background: var(--ok); color: #fff; } .btn-ok:hover { filter: brightness(1.08); }
.btn-rev { background: var(--surface); color: var(--rev); border-color: color-mix(in srgb, var(--rev) 40%, transparent); }
.btn-rev:hover { background: var(--rev-bg); }
.btn-sm { padding: 8px 12px; font-size: .84rem; } .btn-lg { padding: 14px 18px; font-size: 1rem; }
.btn-block { width: 100%; } .btn-icon { padding: 10px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: inherit; border-radius: 10px; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.danger { color: var(--rev); }
.link { color: var(--ink-3); font-weight: 600; font-size: .88rem; } .link:hover { text-decoration: underline; }
.link-btn { border: 0; background: none; color: var(--ink-3); font: 600 .84rem var(--f-body); cursor: pointer; padding: 0; }
.link-btn.danger { color: var(--rev); }
.back { display: inline-block; color: var(--muted); font-weight: 600; margin-bottom: 14px; } .back:hover { color: var(--text); }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .88rem; }
input:not([type=checkbox]):not([type=range]):not([type=file]), select, textarea {
  font: 400 .95rem var(--f-body); color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--ink-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink-3) 20%, transparent); }
textarea { resize: vertical; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace !important; font-size: .85rem !important; }
select { width: auto; cursor: pointer; }
.form label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-form { flex-direction: row; } .row-form input { flex: 1; }
.pw { position: relative; display: block; } .pw input { padding-right: 104px !important; }
.pw .link-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.meter { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--rev); transition: width .2s, background .2s; }

/* ---------- Cards & grid ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); min-width: 0; }
.pad-l { padding: 22px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; }
.card-head.flat { padding: 0 0 12px; }
.card-head h3, .card-title { font-size: 1.08rem; display: flex; align-items: center; gap: 8px; }
.card-title { margin-bottom: 14px; }
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.g-2-1 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.g-detail { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button { border: 0; background: none; font: 600 .86rem var(--f-body); color: var(--muted); padding: 8px 12px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg a:hover, .seg button:hover { color: var(--text); }
.seg .on { background: var(--ink); color: #fff; }
.seg em { font-style: normal; font-size: .75rem; opacity: .75; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.search input { border: 0 !important; box-shadow: none !important; padding: 9px 0 !important; background: transparent !important; min-width: 180px; }

/* ---------- Alert / toast ---------- */
.alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--r-m); margin-bottom: 18px; font-weight: 500; border: 1px solid; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert-error { background: var(--rev-bg); color: var(--rev); border-color: color-mix(in srgb, var(--rev) 30%, transparent); }
.alert-warn { background: var(--wait-bg); color: var(--wait); border-color: color-mix(in srgb, var(--wait) 35%, transparent); }
.alert-x { border: 0; background: none; font-size: 1.3rem; color: inherit; cursor: pointer; line-height: 1; padding: 0 2px; }
.toast-zone { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast {
  display: flex; gap: 12px; align-items: flex-start; width: min(360px, calc(100vw - 40px)); background: var(--ink); color: #fff;
  padding: 14px 16px; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); animation: toastIn .35s cubic-bezier(.2, .9, .3, 1.2);
}
.toast b { display: block; } .toast small { color: #C9D2E6; display: block; }
.toast .t-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* ---------- Avatars ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; }
.avatar-i { background: hsl(var(--h) 55% 88%); color: hsl(var(--h) 45% 28%); font-weight: 700; font-size: .85rem; }
.avatar.sm { width: 34px; height: 34px; font-size: .75rem; } .avatar.lg { width: 52px; height: 52px; font-size: 1rem; }
.avatar.xl { width: 112px; height: 112px; font-size: 2rem; border: 4px solid var(--surface); }
.top-me { margin-left: 4px; }

/* ---------- Notifications ---------- */
.notif-wrap { position: relative; }
.dot { position: absolute; top: 3px; right: 2px; background: var(--rev); color: #fff; font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--paper); }
.dot.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.4); } }
.notif-pop { position: absolute; right: 0; top: 50px; width: 380px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(15, 25, 50, .4); overflow: hidden; animation: popIn .18s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.np-list { max-height: 400px; overflow-y: auto; }
.np-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.np-item:hover { background: var(--surface-2); }
.np-item.unread { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.np-item b { font-size: .88rem; display: block; } .np-item small { color: var(--muted); display: block; font-size: .8rem; }
.np-item .np-txt small:first-of-type { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-foot { display: block; text-align: center; padding: 12px; font-weight: 600; font-size: .86rem; color: var(--ink-3); }
.n-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-3); }
.n-submit, .n-resubmit { background: var(--wait-bg); color: var(--wait); }
.n-review { background: var(--ok-bg); color: var(--ok); }
.n-chat { background: color-mix(in srgb, var(--ink-3) 14%, transparent); color: var(--ink-3); }
.notif-full { list-style: none; margin: 0; padding: 0; }
.notif-full a { display: flex; gap: 14px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.notif-full li:last-child a { border-bottom: 0; }
.notif-full a:hover { background: var(--surface-2); }
.notif-full .unread a { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.notif-full .unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--rev); border-radius: 50%; margin-left: 8px; vertical-align: middle; }
.n-txt { flex: 1; min-width: 0; } .n-txt small { display: block; color: var(--muted); }
.n-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); white-space: nowrap; }

/* ---------- Tags & badges ---------- */
.tag { font-style: normal; display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-menunggu { background: var(--wait-bg); color: var(--wait); }
.b-diverifikasi { background: var(--ok-bg); color: var(--ok); }
.b-revisi { background: var(--rev-bg); color: var(--rev); }
.late { color: var(--rev); font-style: normal; font-weight: 600; } .ontime { color: var(--ok); font-style: normal; font-weight: 600; }
.t-late, .t-urgent { color: var(--rev); font-weight: 600; } .t-soon { color: var(--wait); font-weight: 600; } .t-ok { color: var(--muted); }

/* ---------- STEMPEL (elemen khas) ---------- */
.stamp {
  --c: var(--ok); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  font: 800 .8rem var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--c);
  border: 2.5px solid var(--c); border-radius: 8px; padding: 6px 10px 5px; transform: rotate(-7deg);
  box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 3.5px var(--c);
  mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,.75) 61%, #000 75%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,.75) 61%, #000 75%);
}
.stamp em { font-style: normal; font-size: .7em; letter-spacing: .06em; margin-top: 3px; opacity: .9; }
.stamp-rev { --c: var(--rev); transform: rotate(5deg); }
.stamp.sm { font-size: .68rem; padding: 5px 8px 4px; }
.stamp.big { position: absolute; top: 22px; right: 24px; font-size: 1.15rem; padding: 10px 16px 8px; border-width: 3px; }
.stamp.slam { animation: slam .55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes slam { 0% { opacity: 0; transform: scale(2.4) rotate(-18deg); } 60% { opacity: 1; } 100% { transform: scale(1) rotate(-7deg); } }
.stamp-rev.slam { animation-name: slamRev; }
@keyframes slamRev { 0% { opacity: 0; transform: scale(2.4) rotate(18deg); } 100% { transform: scale(1) rotate(5deg); } }

/* ---------- Passbook hero (murid) ---------- */
.passbook, .hero-guru {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; color: #fff; margin-bottom: 20px;
  background: var(--ink); border-radius: 22px; padding: 30px 34px; overflow: hidden; isolation: isolate;
}
.passbook::before, .hero-guru::before { /* garis-garis buku tabungan */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(180deg, transparent 0 33px, rgba(255, 255, 255, .055) 33px 34px);
}
.passbook::after, .hero-guru::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
:root[data-theme="dark"] .passbook, :root[data-theme="dark"] .hero-guru { background: #1B2A4A; }
.pb-hello { margin: 0 0 4px; color: #C9D2E6; font-weight: 500; }
.pb-title { font-size: 1.15rem; font-weight: 600; color: #DDE3F0; font-family: var(--f-body); }
.pb-balance { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 14px; flex-wrap: wrap; }
.pb-num { font: 800 clamp(3.4rem, 7vw, 5rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.pb-of { color: #C9D2E6; font-size: 1.05rem; }
.pb-bar { height: 8px; background: rgba(255, 255, 255, .12); border-radius: 8px; overflow: hidden; max-width: 520px; }
.pb-bar i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 8px; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { width: 0; } }
.pb-actions { display: flex; gap: 16px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.pb-rank { display: inline-flex; gap: 8px; align-items: center; color: #DDE3F0; font-weight: 500; font-size: .92rem; }
.ring {
  --p: 0; width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0);
}
.ring > div { width: 132px; height: 132px; border-radius: 50%; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring b { font: 800 2.6rem/1 var(--f-display); } .ring small { color: #C9D2E6; max-width: 90px; line-height: 1.25; margin-top: 4px; }
.hero-guru h2.pb-title { font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--f-display); color: #fff; }
.hg-sub { color: #C9D2E6; margin: 8px 0 0; }
.hg-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; box-shadow: var(--shadow); }
.stat b { font: 800 1.75rem/1 var(--f-display); display: block; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; font-size: .55em; color: var(--muted); font-weight: 600; }
.stat small { color: var(--muted); font-weight: 500; }
.st-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.c-wait { background: var(--wait-bg); color: var(--wait); } .c-rev { background: var(--rev-bg); color: var(--rev); }
.c-ok { background: var(--ok-bg); color: var(--ok); } .c-score { background: color-mix(in srgb, var(--accent) 22%, transparent); color: #8A6600; }
.c-ink { background: color-mix(in srgb, var(--ink-3) 15%, transparent); color: var(--ink-3); }
:root[data-theme="dark"] .c-score { color: var(--accent); }

/* ---------- Ledger (buku setoran) ---------- */
.ledger { list-style: none; margin: 0; padding: 0 10px 10px; }
.ledger a { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: var(--r-m); border-bottom: 1px dashed var(--line); }
.ledger li:last-child a { border-bottom: 0; }
.ledger a:hover { background: var(--surface-2); }
.lg-main { flex: 1; min-width: 0; } .lg-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-main small { color: var(--muted); }
.lg-stamp { flex: none; min-width: 100px; text-align: right; }
.ficon { flex: none; width: 40px; height: 46px; border-radius: 6px 12px 6px 6px; display: grid; place-items: center; font: 800 .62rem var(--f-body); color: #fff; letter-spacing: .04em; position: relative; }
.f-pdf { background: #D2483F; } .f-doc { background: #2F62C9; } .f-xls { background: #1C8A55; } .f-ppt { background: #D2732B; } .f-img { background: #8C4FD0; } .f-zip { background: #5D6880; }

.due-list { list-style: none; margin: 0; padding: 0 12px 12px; }
.due-list li { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-bottom: 1px dashed var(--line); }
.due-list li:last-child { border-bottom: 0; }
.due-date { width: 46px; text-align: center; border-radius: 10px; padding: 5px 0; background: var(--surface-2); flex: none; }
.due-date b { display: block; font: 800 1.2rem/1 var(--f-display); } .due-date small { color: var(--muted); font-weight: 600; }
.d-late, .d-urgent { background: var(--rev-bg); color: var(--rev); } .d-soon { background: var(--wait-bg); color: var(--wait); }
.d-late small, .d-urgent small, .d-soon small { color: inherit; }
.due-main { flex: 1; min-width: 0; } .due-main b { display: block; font-size: .92rem; } .due-main small { color: var(--muted); }

.feedback-card blockquote { margin: 0 22px 10px; padding: 14px 16px; background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; font-size: .95rem; }
.feedback-card .muted, .feedback-card > .link { margin: 0 22px; display: block; }
.feedback-card > .link { margin-bottom: 18px; }
.pad-l.feedback-card blockquote { margin: 0; }
.score-big { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.score-big b { font: 800 3rem/1 var(--f-display); color: var(--ok); } .score-big small { color: var(--muted); font-weight: 600; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 44px 24px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic { color: var(--ink-3); opacity: .6; margin-bottom: 4px; }
.empty h3 { color: var(--text); font-size: 1.1rem; } .empty p { margin: 0 0 8px; max-width: 380px; }
.empty.sm { padding: 24px; }

/* ---------- Task cards ---------- */
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.task-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.due { display: inline-flex; gap: 5px; align-items: center; font-size: .82rem; }
.task-card h3 { font-size: 1.15rem; }
.tc-desc { color: var(--muted); margin: 0; font-size: .9rem; flex: 1; }
.tc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.tc-meta dt, .kv dt { font-size: .76rem; color: var(--muted); font-weight: 600; } .tc-meta dd, .kv dd { margin: 0; font-weight: 600; font-size: .88rem; }
.tc-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.tc-foot form { margin-left: auto; }
.tc-progress small { color: var(--muted); display: block; margin-top: 6px; }

/* ---------- Bars ---------- */
.pl-bar, .rk-bar { display: block; height: 8px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.pl-bar i, .rk-bar i { display: block; height: 100%; width: var(--w); background: var(--ink-3); border-radius: 8px; animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; }
.progress-list { list-style: none; margin: 0; padding: 0 12px 12px; }
.progress-list a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 64px; gap: 18px; align-items: center; padding: 12px 10px; border-radius: 12px; }
.progress-list a:hover { background: var(--surface-2); }
.pl-main b { display: block; } .pl-main small { color: var(--muted); }
.pl-n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; } .pl-n b { color: var(--text); font-size: 1.05rem; }

/* ---------- Charts ---------- */
.chart-box { position: relative; height: 260px; padding: 0 18px 18px; }
.chart-box.donut { height: 200px; max-width: 220px; margin: 0 auto; }
.donut-c { position: absolute; inset: 0 0 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-c b { font: 800 1.9rem/1 var(--f-display); } .donut-c small { color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: .9rem; } .legend b { margin-left: auto; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.lg-ok { background: var(--ok); } .lg-wait { background: var(--accent); } .lg-rev { background: var(--rev); }

/* ---------- Ranking ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; padding: 8px 22px 0; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.pod b { font-size: .92rem; margin-top: 6px; } .pod small { color: var(--muted); font-size: .76rem; }
.pod-step { width: 100%; margin-top: 10px; border-radius: 12px 12px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 10px; gap: 2px; }
.pod-step span { font: 800 1.6rem/1 var(--f-display); } .pod-step em { font-style: normal; font-size: .78rem; font-weight: 600; opacity: .85; }
.pod-1 .pod-step { height: 112px; background: var(--accent); color: var(--accent-ink); }
.pod-2 .pod-step { height: 84px; background: color-mix(in srgb, var(--ink-3) 22%, var(--surface)); }
.pod-3 .pod-step { height: 64px; background: color-mix(in srgb, #C77D3A 22%, var(--surface)); }
.pod-1 .avatar { box-shadow: 0 0 0 3px var(--accent); }
.rank-list { list-style: none; margin: 0; padding: 0 12px 14px; border-top: 1px solid var(--line); }
.rank-list li { display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) 110px 30px; gap: 12px; align-items: center; padding: 10px; border-bottom: 1px dashed var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rk { color: var(--muted); font-weight: 700; text-align: center; }
.rk-name b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rk-name small { color: var(--muted); }
.rk-n { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Feed ---------- */
.feed { list-style: none; margin: 0; padding: 0 10px 10px; }
.feed a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; }
.feed a:hover { background: var(--surface-2); }
.feed span:nth-child(2) { flex: 1; min-width: 0; } .feed small { display: block; color: var(--muted); }
.feed span:nth-child(2) > small:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.feed li.fresh a { animation: fresh 2.5s ease-out; }
@keyframes fresh { from { background: color-mix(in srgb, var(--accent) 30%, transparent); } }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ok); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: none; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ledger-table th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 600; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger-table td { padding: 12px 16px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.ledger-table tbody tr:last-child td { border-bottom: 0; }
.ledger-table tbody tr:hover { background: var(--surface-2); }
.ledger-table th.num { text-align: right; }
.row-wait td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.cell-task { display: flex; align-items: center; gap: 12px; } .cell-task b { display: block; } .cell-task small { color: var(--muted); }
.cell-task .ficon { width: 34px; height: 40px; }
.t-title { font-weight: 600; }

/* ---------- Submission detail ---------- */
.sub-card { position: relative; }
.sub-title { font-size: 1.55rem; margin: 10px 0 16px; padding-right: 150px; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 18px; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); flex-wrap: wrap; }
.file-row > div { flex: 1; min-width: 140px; } .file-row b { display: block; word-break: break-all; font-size: .9rem; } .file-row small { color: var(--muted); }
.note { background: var(--surface-2); padding: 12px 14px; border-radius: 12px; margin: 14px 0 0; font-size: .92rem; }
.student-line { display: flex; align-items: center; gap: 14px; padding-right: 150px; }
.student-line b { display: block; font-size: 1.05rem; } .student-line small { color: var(--muted); }
.preview { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.preview iframe { width: 100%; height: 560px; border: 0; display: block; } .preview img { display: block; margin: 0 auto; max-height: 600px; }

.score-row { display: flex; align-items: center; gap: 14px; }
.score-row input[type=range] { flex: 1; accent-color: var(--ok); height: 6px; }
.score-row input[type=number] { width: 90px !important; font: 800 1.4rem var(--f-display) !important; text-align: center; }
.score-field > label { margin-bottom: 8px; display: block; font-weight: 600; font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 6px 12px; font: 500 .82rem var(--f-body); cursor: pointer; }
.chip:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 480px; position: sticky; top: 88px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head div { flex: 1; } .chat-head b { display: block; } .chat-head small { color: var(--muted); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background:
  radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--muted) 18%, transparent) 1px, transparent 0) 0 0 / 18px 18px; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); max-width: 240px; font-size: .9rem; }
.msg { max-width: 82%; padding: 9px 13px 6px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; animation: msgIn .25s ease-out; word-wrap: break-word; white-space: pre-wrap; }
.msg.mine { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 16px 16px 4px 16px; }
:root[data-theme="dark"] .msg.mine { background: #3B5B95; border-color: #3B5B95; }
.msg time { display: block; text-align: right; font-size: .7rem; opacity: .65; margin-top: 2px; }
.msg-day { align-self: center; font-size: .74rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; margin: 8px 0; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { resize: none; max-height: 140px; border-radius: 14px; }

/* ---------- Upload ---------- */
.dropzone {
  position: relative; display: flex !important; flex-direction: column; align-items: center; gap: 6px !important; text-align: center;
  border: 2px dashed var(--line); border-radius: 16px; padding: 28px 16px; cursor: pointer; transition: border-color .15s, background .15s; background: var(--surface-2);
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--ink-3); background: color-mix(in srgb, var(--ink-3) 7%, var(--surface)); }
.dropzone.has { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.dz-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--ink-3); box-shadow: var(--shadow); }
.dz-main { font-weight: 500 !important; } .dz-sub { color: var(--muted); font-weight: 500; font-size: .8rem; }
.dz-file { font-weight: 700; color: var(--ok); word-break: break-all; }
.up-progress { position: relative; height: 30px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.up-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ok); transition: width .2s; }
.up-progress span { position: relative; display: grid; place-items: center; height: 100%; font-weight: 700; font-size: .84rem; mix-blend-mode: difference; color: #fff; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: 20px; width: min(540px, calc(100vw - 24px)); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.modal[open] { animation: modalIn .22s cubic-bezier(.2, .9, .3, 1.1); }
.modal::backdrop { background: rgba(14, 21, 37, .55); backdrop-filter: blur(3px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 1.2rem; }
.modal .form { padding: 20px 22px 22px; }

/* ---------- Profile ---------- */
.profile-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
.profile-card { text-align: center; padding-bottom: 22px; overflow: hidden; }
.pc-cover { height: 110px; background: var(--ink); position: relative; }
.pc-cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 21px, rgba(255, 255, 255, .07) 21px 22px); }
.pc-photo { margin-top: -58px; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 1; }
.photo-drop { position: relative; cursor: pointer; display: inline-block; border-radius: 50%; }
.photo-drop:hover .avatar { filter: brightness(.9); }
.photo-cam { position: absolute; right: 4px; bottom: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; border: 3px solid var(--surface); }
.photo-actions { display: flex; gap: 8px; }
.pc-name { font-size: 1.45rem; margin-top: 12px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 22px; border: 1px solid var(--line); border-radius: 14px; }
.pc-stats div { padding: 12px 6px; } .pc-stats div + div { border-left: 1px solid var(--line); }
.pc-stats dt { font-size: .74rem; color: var(--muted); font-weight: 600; } .pc-stats dd { margin: 2px 0 0; font: 800 1.5rem var(--f-display); }
.profile-card > p, .profile-card > form { padding: 0 22px; }

/* ---------- Auth ---------- */
.login-page { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-art { background: var(--ink); color: #fff; position: relative; overflow: hidden; display: flex; }
.login-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(255, 255, 255, .05) 39px 40px); }
.login-art::after { content: ""; position: absolute; left: 64px; top: 0; bottom: 0; width: 2px; background: rgba(242, 183, 5, .5); }
.la-inner { position: relative; z-index: 1; padding: 48px 56px 48px 96px; display: flex; flex-direction: column; justify-content: space-between; width: 100%; }
.brand.light { padding: 0; }
.login-art h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 700; max-width: 520px; line-height: 1.12; }
.paper-stack { position: relative; height: 170px; max-width: 460px; }
.paper { position: absolute; inset: 0; background: #fff; border-radius: 16px; }
.paper.p3 { transform: rotate(-5deg) translate(-10px, 14px); opacity: .25; } .paper.p2 { transform: rotate(-2deg) translate(-4px, 6px); opacity: .5; }
.paper.p1 { display: flex; align-items: center; gap: 14px; padding: 22px; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.paper.p1 b { display: block; } .paper.p1 small { color: #66708A; }
.paper.p1 .stamp { position: absolute; right: 18px; top: -22px; font-size: 1rem; padding: 9px 14px 7px; background: rgba(255, 255, 255, .92); --surface: #fff; animation: slam .7s .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-title { font-size: 1.9rem; }
.auth-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-page .auth-card { padding: 30px; display: flex; flex-direction: column; gap: 14px; max-width: 460px; }

/* ---------- Theme toggle ---------- */
.t-sun { display: none; }
:root[data-theme="dark"] .t-sun { display: inline; } :root[data-theme="dark"] .t-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-sun { display: inline; } :root:not([data-theme="light"]) .t-moon { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .g-2-1, .g-detail, .profile-grid { grid-template-columns: 1fr; }
  .chat { position: static; height: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .4); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(14, 21, 37, .5); z-index: 35; }
  .main { margin-left: 0; }
  .icon-btn.only-m { display: inline-grid; }
  .topbar { padding: 0 12px; height: 60px; }
  .page-title { font-size: 1.12rem; }
  .page-sub { display: none; }
  .content { padding: 18px 16px 48px; }
  .passbook, .hero-guru { grid-template-columns: 1fr; padding: 24px 22px 24px 26px; }
  .pb-right { display: none; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .row2, .kv { grid-template-columns: 1fr; }
  .search input { min-width: 0; }
  .toolbar { align-items: stretch; } .toolbar .search { flex: 1; }
  .sub-title, .student-line { padding-right: 0; }
  .stamp.big { position: static; margin-bottom: 12px; }
  .progress-list a { grid-template-columns: 1fr 64px; } .progress-list .pl-bar { grid-column: 1 / -1; grid-row: 2; }
  .rank-list li { grid-template-columns: 22px 34px minmax(0, 1fr) 30px; } .rk-bar { display: none; }
  .ledger-table th, .ledger-table td { padding: 10px; }
  .top-me { display: none; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn-row-2 { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: 1fr; }
  .lg-main b { white-space: normal; }
  .lg-stamp { min-width: 0; }
  .ledger .badge { font-size: .7rem; padding: 3px 8px; }
  .ledger a { gap: 10px; padding: 12px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Tambahan v2: sidebar, login, impor ---------- */
.nav-group-label { font-size: .74rem; font-weight: 600; color: color-mix(in srgb, var(--side-text) 70%, transparent); padding: 16px 12px 6px; }
.side-foot form { margin: 0; }
.logout { border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.copyright { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--muted); line-height: 1.35; }
.copyright strong { font-weight: 700; }
.copy-badge { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; flex: none; background: var(--surface-2); color: var(--muted); }
.side-copyright { color: color-mix(in srgb, var(--side-text) 75%, transparent); padding: 12px 6px 0; }
.side-copyright .copy-badge { background: rgba(255, 255, 255, .08); color: var(--side-text); }
.login-copyright { margin-top: 28px; justify-content: center; }
.login-role-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .9rem; }
.role-chip { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .78rem; padding: 4px 11px; border-radius: 99px; }
.login-form .auth-card .form { margin-top: 18px; }
.login-switch { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.login-switch a { color: var(--ink-3); font-weight: 600; }
.login-switch a:hover { text-decoration: underline; }
.form label small.muted { font-weight: 500; }
.hint-box { background: var(--wait-bg); color: var(--text); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: .9rem; margin: 0 0 14px; }
.card-desc { color: var(--muted); font-size: .9rem; margin: -6px 0 16px; max-width: 70ch; }
.g-import { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.dropzone.dz-compact { padding: 20px 16px; }
.dz-compact .dz-ic { width: 44px; height: 44px; border-radius: 13px; }
.pill-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font: 700 .75rem var(--f-body); margin-left: 6px; vertical-align: middle; }
.card-head.wrap { flex-wrap: wrap; }
.btn-danger { background: var(--rev); color: #fff; } .btn-danger:hover { filter: brightness(1.08); }
.b-netral { background: var(--surface-2); color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .86em; }
.th-check { width: 40px; } .th-check input { width: 17px; height: 17px; accent-color: var(--ink); cursor: pointer; }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 16px 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.bulk-count { font-weight: 700; margin-right: auto; }
.import-result { margin-bottom: 20px; border-left: 5px solid var(--ok); }
.ir-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: 12px; }
.ir { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.ir b { display: block; font: 800 1.7rem/1 var(--f-display); } .ir small { color: var(--muted); font-weight: 600; }
.ir-ok b { color: var(--ok); } .ir-up b { color: var(--ink-3); } .ir-skip b { color: var(--wait); }
.ir-detail { margin-top: 14px; } .ir-detail summary { cursor: pointer; font-weight: 600; color: var(--ink-3); }
.ir-detail ul { margin: 10px 0; padding-left: 20px; font-size: .9rem; max-height: 220px; overflow: auto; }
@media (max-width: 1100px) { .g-import { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ir-stats { grid-template-columns: repeat(3, 1fr); } .ir b { font-size: 1.35rem; } }

.ledger-table .cell-task b { white-space: nowrap; }
@media (max-width: 860px) { .ledger-table .cell-task small { white-space: nowrap; } }
