/* =====================================================================
   Portal Dosen — tema & tata letak
   ===================================================================== */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --text: #111827;
  --muted: #5b6577;
  --border: #e2e6ee;
  --accent: #4338ca;
  --accent-soft: #eef0ff;
  --on-accent: #ffffff;
  --nas: #dc2626;
  --int: #2563eb;
  --ok: #15803d;
  --warn: #b45309;
  --hero-1: #1e1b4b;
  --hero-2: #4338ca;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
  --radius: 14px;
  --side: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1016; --surface: #151a23; --surface-2: #1c2330; --text: #e8ecf3; --muted: #97a1b3;
    --border: #283040; --accent: #a5b4fc; --accent-soft: rgba(165,180,252,.12); --on-accent: #0c1016;
    --nas: #f87171; --int: #60a5fa; --ok: #4ade80; --warn: #fbbf24;
    --hero-1: #111033; --hero-2: #312e81;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1016; --surface: #151a23; --surface-2: #1c2330; --text: #e8ecf3; --muted: #97a1b3;
  --border: #283040; --accent: #a5b4fc; --accent-soft: rgba(165,180,252,.12); --on-accent: #0c1016;
  --nas: #f87171; --int: #60a5fa; --ok: #4ade80; --warn: #fbbf24;
  --hero-1: #111033; --hero-2: #312e81;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Shell ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 30;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; text-decoration: none; color: var(--text); }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: #fff;
}
.brand-logo svg { width: 20px; height: 20px; }
.brand b { display: block; font-size: 16px; font-weight: 800; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; }

.nav { display: grid; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav .count {
  margin-left: auto; font-size: 11px; font-weight: 700; min-width: 20px; text-align: center;
  padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
}
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.theme-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px;
  padding: 9px 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted);
}
.side-foot p { margin: 0; font-size: 11px; color: var(--muted); padding: 0 4px; }

.topbar { display: none; }
.bottomnav { display: none; }

.main { margin-left: var(--side); min-height: 100vh; }
.page { width: 100%; max-width: none; margin: 0; padding: 24px 24px 64px; }

@media (max-width: 960px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: 72px; }
  .page { padding: 16px 16px 40px; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 30; padding: 10px 16px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .topbar .brand { padding: 0; }
  .topbar .theme-btn { width: auto; padding: 8px; }
  .topbar .theme-btn span { display: none; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottomnav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative;
    padding: 6px 2px; border-radius: 10px; text-decoration: none; color: var(--muted);
    font-size: 11px; font-weight: 600;
  }
  .bottomnav a svg { width: 22px; height: 22px; }
  .bottomnav a[aria-current="page"] { color: var(--accent); }
  .bottomnav .count {
    position: absolute; top: 2px; left: calc(50% + 6px); font-size: 10px; font-weight: 700;
    padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  }
}

/* ---------- Page header ---------- */
.phead {
  background: radial-gradient(900px 300px at 90% -20%, rgba(255,255,255,.14), transparent 60%),
              linear-gradient(135deg, var(--hero-1), var(--hero-2));
  color: #fff; border-radius: 20px; padding: 24px; margin-bottom: 16px;
}
.phead .eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; opacity: .8; }
.phead h1 { margin: 4px 0 6px; font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.phead .lead { margin: 0; max-width: 680px; opacity: .88; font-size: 15px; }
.year-badge {
  display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16);
}
.year-badge.riwayat { background: rgba(148,163,184,.3); }
.year-badge.berjalan { background: rgba(250,204,21,.28); }
.year-badge.mendatang { background: rgba(74,222,128,.28); }

.years { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.years button {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 104px;
  padding: 7px 14px; border-radius: 12px; cursor: pointer;
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.28);
}
.years button b { font-size: 18px; font-weight: 800; line-height: 1.15; }
.years button span { font-size: 11px; opacity: .8; }
.years button:hover { border-color: rgba(255,255,255,.6); }
.years button[aria-pressed="true"] { background: #fff; color: #1e1b4b; border-color: #fff; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 8px 12px; }
.stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.stat span { font-size: 12px; opacity: .85; }
@media (max-width: 640px) {
  .phead { padding: 18px 16px; border-radius: 16px; }
  .phead .lead { display: none; }
  .years button span { font-size: 10px; white-space: nowrap; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(n+4) { display: none; }
  .years button { min-width: 0; flex: 1; }
}

/* ---------- Notice ---------- */
.notice {
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid #f59e0b; border-radius: 10px; font-size: 13px; color: var(--muted); margin-bottom: 12px;
}
.notice strong { color: var(--text); }

/* ---------- Toolbar ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 20; margin: 0 -24px; padding: 12px 24px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); display: grid; gap: 10px;
}
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spacer { flex: 1; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; color: var(--muted);
}
.search input { border: 0; outline: 0; background: transparent; padding: 10px 0; width: 100%; min-width: 0; color: var(--text); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg button {
  border: 0; background: transparent; cursor: pointer; padding: 7px 12px; border-radius: 8px;
  font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

select { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px; cursor: pointer; max-width: min(100%, 240px); min-width: 0; text-overflow: ellipsis; }
.toolbar { grid-template-columns: minmax(0, 1fr); }
.toolbar .filters, .toolbar .row { min-width: 0; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: 10px;
  padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.filter-toggle { display: none; }
.filter-toggle .n { background: var(--accent); color: var(--on-accent); border-radius: 999px; font-size: 11px; padding: 0 6px; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--c, var(--muted)); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chip {
  --c: var(--muted); flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); white-space: nowrap;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-color: var(--c); color: var(--text); }
.chip .n { font-weight: 500; opacity: .7; }

@media (max-width: 960px) {
  .toolbar { margin: 0 -16px; padding: 10px 16px; top: 57px; }
}
@media (max-width: 760px) {
  .filter-toggle { display: inline-flex; }
  .toolbar .filters { display: none; }
  .toolbar.open .filters { display: grid; gap: 10px; }
  .toolbar .filters .row > select { flex: 1 1 45%; max-width: none; }
  .toolbar .filters .seg { width: 100%; }
  .toolbar .filters .seg button { flex: 1; justify-content: center; }
}

.result-info { margin: 14px 0 10px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- Status badges ---------- */
.st { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.st.resmi { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.st.estimasi { background: color-mix(in srgb, #f59e0b 18%, transparent); color: var(--warn); }
.st.open { background: color-mix(in srgb, var(--int) 15%, transparent); color: var(--int); }

/* ---------- Calendar grid ---------- */
.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1200px) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .months { grid-template-columns: 1fr; } }
.month { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.month header { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px 8px; border-bottom: 1px solid var(--border); }
.month h3 { margin: 0; font-size: 16px; font-weight: 800; }
.month h3 em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); margin-left: 4px; }
.month header span { font-size: 12px; color: var(--muted); font-weight: 600; }
.month ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.month .empty { padding: 14px; color: var(--muted); font-size: 13px; }
.month.now { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent), var(--shadow); }
@media (max-width: 640px) { .month.is-empty { display: none; } }

.ev {
  display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; width: 100%;
  padding: 8px; border-radius: 10px; cursor: pointer; border: 0; background: transparent; text-align: left;
}
.ev:hover, .ev:focus-visible { background: var(--surface-2); outline: none; }
.day {
  --c: var(--muted); border-radius: 9px; text-align: center; padding: 4px 0; line-height: 1.1; font-weight: 800; font-size: 17px;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c);
}
.day small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ev.buka .day, .ev.final .day { background: transparent; border: 1.5px dashed currentColor; }
.ev.final .day { border-style: solid; }
.ev.buka .ev-title, .ev.final .ev-title { font-weight: 600; }
.ev.lewat { opacity: .6; }
.ev.has-thumb { grid-template-columns: 44px 1fr 40px; }
.ev .thumb { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); }

/* Poster di dialog detail */
.dhead.with-img { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.poster { margin: 0; }
.poster a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.poster img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; }
.poster figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
@media (max-width: 640px) {
  .dhead.with-img { grid-template-columns: 1fr; }
  .poster img { max-height: 260px; margin: 0 auto; }
}

/* Galeri poster (beranda) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.card.gcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.gcard .gimg { aspect-ratio: 3 / 4; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.gcard .gimg img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.gcard .gbody { padding: 10px 12px 12px; display: grid; gap: 4px; }
.gcard .gbody .ev-title { font-size: 13px; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.ev-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ev-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  --c: var(--muted); font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 13%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--text));
}
.star { color: #f59e0b; font-size: 13px; }

/* ---------- List view ---------- */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list table { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th, .list td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.list th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.list tbody tr { cursor: pointer; }
.list tbody tr:hover { background: var(--surface-2); }
.list tr.lewat td { opacity: .6; }
.list .date { white-space: nowrap; font-weight: 700; }
.cd { font-size: 12px; color: var(--muted); font-weight: 500; }
.scope { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
@media (max-width: 760px) {
  .list thead { display: none; }
  .list tr { display: grid; padding: 10px 4px; border-bottom: 1px solid var(--border); }
  .list td { border: 0; padding: 3px 12px; }
}

/* ---------- Cards / sections ---------- */
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section h2 { font-size: 18px; margin: 0; }
.section-head a { font-size: 13px; font-weight: 600; text-decoration: none; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  box-shadow: var(--shadow); text-align: left; cursor: pointer; display: block; width: 100%; color: inherit; text-decoration: none;
}
.card:hover { border-color: var(--accent); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px; }
.kpi .ico.h { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.kpi .ico.l { background: color-mix(in srgb, #0d9488 18%, transparent); color: #0d9488; }
.kpi b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--muted); }

.feed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.feed-item {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; width: 100%;
  padding: 12px 14px; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; cursor: pointer;
}
.feed-item:last-child { border-bottom: 0; }
.feed-item:hover { background: var(--surface-2); }
.feed-item .day { font-size: 18px; padding: 6px 0; }
.feed-item .right { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.feed-item .right b { display: block; color: var(--text); font-size: 13px; }
.feed-item .right b.soon { color: var(--nas); }
.mod-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; }
.mod-tag.hibah { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.mod-tag.lomba { background: color-mix(in srgb, #0d9488 18%, transparent); color: #0d9488; }
@media (max-width: 520px) {
  .feed-item { grid-template-columns: 46px 1fr; }
  .feed-item .right { grid-column: 2; text-align: left; }
  .feed-item .right b { display: inline; margin-right: 6px; }
}
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state svg { width: 40px; height: 40px; opacity: .5; }
.empty-state h3 { color: var(--text); margin: 8px 0 4px; }

.hello h1 { margin: 0; font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; letter-spacing: -.01em; }
.hello p { margin: 4px 0 0; }
.global-search { margin: 16px 0 4px; max-width: 640px; }

.rolling-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }

/* ---------- Dialog ---------- */
dialog {
  border: 0; padding: 0; border-radius: 18px; width: min(780px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
dialog::backdrop { background: rgba(10,12,20,.55); backdrop-filter: blur(2px); }
.dlg { padding: 22px; position: relative; }
.dlg .close {
  position: absolute; right: 14px; top: 12px; border: 0; background: var(--surface-2);
  width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted);
}
.dlg h2 { margin: 6px 44px 4px 0; font-size: 21px; line-height: 1.25; }
.dlg .org { color: var(--muted); margin: 0 0 12px; }
.dlg dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 14px 0; font-size: 14px; }
.dlg dt { color: var(--muted); font-weight: 600; }
.dlg dd { margin: 0; }
.dlg .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 560px) {
  dialog { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .dlg { padding: 18px 16px 24px; }
  .dlg dl { grid-template-columns: 1fr; gap: 2px; }
  .dlg dd { margin-bottom: 8px; }
}
.hist-title { font-size: 15px; margin: 18px 0 8px; }
.hist-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.hist { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.hist th, .hist td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.hist th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.hist tr:last-child td { border-bottom: 0; }
.hist tr.lewat td { color: var(--muted); }
.hist tr.sel td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.hist a { font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hist a:hover { text-decoration: underline; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
  transition: .2s; z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 960px) { .toast { bottom: 86px; } }

.foot { color: var(--muted); font-size: 12px; margin-top: 40px; }
.foot code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

@media print {
  .sidebar, .topbar, .bottomnav, .toolbar, .notice { display: none !important; }
  .main { margin: 0; }
  .month { break-inside: avoid; box-shadow: none; }
}

/* =====================================================================
   Bimbingan Tugas Akhir
   ===================================================================== */
.ta-phead { padding-bottom: 0; }
.ta-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ta-phead .back { color: #fff; opacity: .85; text-decoration: none; font-size: 13px; font-weight: 600; }
.ta-phead .back:hover { opacity: 1; text-decoration: underline; }
.seg-hero { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.seg-hero button { color: rgba(255,255,255,.85); padding: 5px 12px; }
.seg-hero button[aria-pressed="true"] { background: #fff; color: #1e1b4b; }
.hero-actions { margin-top: 14px; }
.btn.on-hero { background: #fff; color: #1e1b4b; }
.btn.hero-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn.hero-ghost:hover { background: rgba(255,255,255,.18); filter: none; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.sm svg { width: 14px; height: 14px; }
.btn.danger { background: #dc2626; color: #fff; }
.ta-tabs { display: flex; gap: 4px; margin: 18px -8px 0; overflow-x: auto; scrollbar-width: none; }
.ta-tabs a {
  color: rgba(255,255,255,.78); text-decoration: none; font-weight: 700; font-size: 13.5px; white-space: nowrap;
  padding: 10px 12px 12px; border-bottom: 3px solid transparent;
}
.ta-tabs a:hover { color: #fff; }
.ta-tabs a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.ta-tabs a span { font-size: 11px; background: rgba(255,255,255,.18); padding: 1px 7px; border-radius: 999px; margin-left: 2px; }
.ta-card-head { padding-bottom: 20px; }
.ta-card-head:has(.ta-tabs) { padding-bottom: 0; }
.ta-card-head h1 { margin-bottom: 2px; }
.ta-card-head .meta { margin: 0; opacity: .85; font-size: 13.5px; }
.ta-card-head .judul { margin: 8px 0 0; font-size: 15px; font-weight: 600; max-width: 820px; line-height: 1.45; }

.card.static { cursor: default; }
.card.static:hover { border-color: var(--border); }
button.card { font: inherit; }
.kpi .ico.w { background: color-mix(in srgb, #f59e0b 20%, transparent); color: var(--warn); }
.kpi .ico.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.ta-kpis { margin-top: 4px; }

.pill {
  display: inline-flex; align-items: center; font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; vertical-align: middle;
}
.pill.warn { background: color-mix(in srgb, #f59e0b 18%, transparent); color: var(--warn); }
.pill.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill.info { background: color-mix(in srgb, var(--int) 14%, transparent); color: var(--int); }
.pill.teal { background: color-mix(in srgb, #0d9488 16%, transparent); color: #0d9488; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.warn-t { color: var(--warn); }
.tahap {
  --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap;
  padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 13%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--text));
}
.tahap .dot { width: 7px; height: 7px; }

.pbar { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; min-width: 40px; }
.pbar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.pbar.sm { height: 5px; width: 80px; flex: none; }

.babbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; min-width: 132px; }
.babbar span {
  position: relative; overflow: hidden; text-align: center; font-size: 11px; font-weight: 800; line-height: 20px; height: 20px;
  border-radius: 5px; background: var(--surface-2); color: var(--muted);
}
.babbar span::before { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; width: var(--p); background: color-mix(in srgb, var(--accent) 60%, transparent); }
.babbar span.part { color: var(--text); }
.babbar span.cur { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.babbar span.acc { background: var(--ok); color: #fff; }
.babbar span.acc::before { display: none; }
:root[data-theme="dark"] .babbar span.acc { color: #0c1016; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .babbar span.acc { color: #0c1016; } }
.babbar.big { gap: 6px; }
.babbar.big span { height: 46px; line-height: 1.1; padding-top: 7px; font-size: 15px; border-radius: 9px; }
.babbar.big span small { display: block; font-size: 10px; font-weight: 700; opacity: .85; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 10px; height: 10px; border-radius: 3px; background: var(--surface-2); display: inline-block; }
.lg.acc { background: var(--ok); }
.lg.cur { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.lg.part { background: linear-gradient(to top, color-mix(in srgb, var(--accent) 60%, transparent) 30%, var(--surface-2) 30%); }

/* Pipeline tahap */
.pipeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.pipe {
  --c: var(--muted); text-align: left; cursor: pointer; border: 1px solid var(--border); background: var(--surface);
  border-radius: 12px; padding: 10px 12px; border-top: 4px solid var(--c); box-shadow: var(--shadow); color: var(--text);
}
.pipe b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.pipe span { font-size: 12px; color: var(--muted); line-height: 1.25; display: block; }
.pipe[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 12%, var(--surface)); border-color: var(--c); }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .pipeline { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .pipe { flex: 0 0 120px; }
}

.ta-filter { margin-bottom: 10px; }
.ta-filter .search { flex: 1 1 240px; }

/* Tabel monitoring */
.ta-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ta-table .tr {
  display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.25fr) 150px minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: start;
  padding: 12px 16px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none;
}
.ta-table .tr:last-child { border-bottom: 0; }
.ta-table a.tr:hover { background: var(--surface-2); }
.ta-table .th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); font-weight: 700; padding: 9px 16px; }
.ta-table .tr > span { display: grid; gap: 4px; min-width: 0; align-content: start; }
.ta-table small { font-size: 12px; }
.c-mhs b { font-size: 14px; }
.c-mhs .judul { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); line-height: 1.35; }
.c-tahap { justify-items: start; }
.c-tahap small { color: var(--muted); font-weight: 600; }
.c-prog b, .c-akt b { font-size: 13px; }
@media (max-width: 900px) {
  .ta-table .th { display: none; }
  .ta-table .tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; }
  .c-mhs { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ta-table .tr { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .c-bab .babbar { max-width: 260px; }
}

/* Papan kanban */
.board-hint { font-size: 13px; margin: 0 0 10px; }
.board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px;
  overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; align-items: start;
}
.col {
  --c: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 10px;
  display: grid; gap: 8px; scroll-snap-align: start; min-height: 160px; border-top: 4px solid var(--c);
}
.col.over { outline: 2px dashed var(--c); outline-offset: 2px; background: color-mix(in srgb, var(--c) 8%, var(--surface-2)); }
.col header { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.col h3 { margin: 0; font-size: 13.5px; flex: 1; }
.col .n { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 0 8px; }
.col-body { display: grid; gap: 8px; }
.col-empty { color: var(--muted); font-size: 12px; text-align: center; margin: 14px 0; }
.col-add {
  display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed var(--border); background: transparent;
  border-radius: 10px; padding: 8px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px;
}
.col-add:hover { border-color: var(--accent); color: var(--accent); }
.kb {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px;
  box-shadow: var(--shadow); display: grid; gap: 6px; cursor: grab;
}
.kb:hover { border-color: var(--accent); }
.kb.dragging { opacity: .5; }
.kb-link { color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.3; }
.kb-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kb-link:focus-visible { outline: none; }
.kb-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.kb-sub { font-size: 12px; margin-top: -4px; }
.kb-judul { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb .babbar { min-width: 0; }
.kb .babbar span { height: 18px; line-height: 18px; font-size: 10px; }
.kb-prog { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.kb-prog .pbar { flex: 1; }
.kb-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; }
.kb-move { margin-left: auto; display: inline-flex; gap: 2px; position: relative; z-index: 1; }
.kb-move button {
  width: 26px; height: 24px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font-size: 16px; line-height: 1; color: var(--muted); padding: 0;
}
.kb-move button:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.kb-move button:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) { .board { grid-auto-columns: 82%; margin: 0 -16px; padding: 0 16px 12px; } }

/* Ringkasan kartu */
.ta-sum { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.sum-main { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; }
.ring {
  --p: 0; width: 110px; height: 110px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 77%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0);
}
.ring b { font-size: 24px; font-weight: 800; line-height: 1; }
.ring span { font-size: 11px; color: var(--muted); }
.sum-pos { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.sum-pos .muted { font-size: 12px; }
.sum-pos b { font-size: 18px; }
.sum-kv { display: grid; gap: 7px; font-size: 13px; }
.sum-kv > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sum-kv > div > span:first-child { color: var(--muted); }
.sum-kv select { max-width: 200px; }
@media (max-width: 860px) { .ta-sum { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .sum-main { grid-template-columns: 1fr; justify-items: center; }
  .sum-bab { width: 100%; }
  .sum-pos { justify-content: center; text-align: center; }
  .legend { justify-content: center; }
}
.notice.ok-n { border-left-color: var(--ok); }
.notice.warn-n { border-left-color: #f59e0b; }
.ta .notice { margin: 0 0 12px; }

/* Tab dalam kartu */
.ttabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 20px 0 14px; overflow-x: auto; scrollbar-width: none; }
.ttabs button {
  border: 0; background: transparent; cursor: pointer; padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.ttabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.ttabs button span { font-size: 11px; background: var(--surface-2); padding: 1px 7px; border-radius: 999px; }

/* Ceklist */
.ck-toolbar { margin-bottom: 12px; }
.seg .n { background: var(--warn); color: #fff; border-radius: 999px; font-size: 10.5px; padding: 0 6px; }
.ck-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: start; }
.ck-nav { position: sticky; top: 16px; display: grid; gap: 2px; }
.ck-nav p { margin: 10px 8px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ck-nav p:first-child { margin-top: 0; }
.ck-nav button {
  display: flex; justify-content: space-between; gap: 8px; border: 0; background: transparent; cursor: pointer; text-align: left;
  padding: 6px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text);
}
.ck-nav button:hover { background: var(--surface-2); }
.ck-nav button small { color: var(--muted); font-weight: 600; }
.ck-nav button.cur { background: var(--accent-soft); color: var(--accent); }
.ck-nav button.acc small { color: var(--ok); }
@media (max-width: 860px) {
  .ck-layout { grid-template-columns: minmax(0, 1fr); }
  .ck-nav { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .ck-nav p { display: none; }
  .ck-nav button { flex: none; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 12px; }
}
.ck-group { font-size: 15px; margin: 22px 0 8px; }
.ck-group.first { margin-top: 0; }
.ck-group small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.ck-sec { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.ck-sec.is-acc { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.ck-sec summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; cursor: pointer; list-style: none; border-radius: 12px;
}
.ck-sec summary::-webkit-details-marker { display: none; }
.ck-sec summary::before { content: "▸"; color: var(--muted); font-size: 12px; transition: transform .15s; }
.ck-sec[open] summary::before { transform: rotate(90deg); }
.ck-sec summary:hover { background: var(--surface-2); }
.ck-kode { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 6px; }
.ck-judul { font-weight: 700; font-size: 14.5px; flex: 1 1 160px; }
.ck-count { font-size: 12px; color: var(--muted); font-weight: 700; }
.ck-items { padding: 0 14px 4px; display: grid; }
.ck-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.ck-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.45; }
.ck-label input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ok); flex: none; cursor: pointer; }
.ck-item.done .ck-label span { color: var(--muted); }
.ck-tools { display: flex; gap: 4px; align-items: flex-start; }
.ico-btn {
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  cursor: pointer; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; padding: 0; flex: none;
}
.ico-btn:hover { color: var(--accent); border-color: var(--accent); }
.ico-btn.ok { color: var(--ok); }
.ico-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.ck-hint { grid-column: 1 / -1; margin: 2px 0 0 28px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; }
.ck-rev {
  grid-column: 1 / -1; margin: 4px 0 0 28px; font-size: 12.5px; padding: 7px 10px; border-radius: 8px;
  background: color-mix(in srgb, #f59e0b 13%, transparent); border-left: 3px solid #f59e0b;
}
.ck-item.rev-fixed .ck-rev { background: color-mix(in srgb, var(--int) 10%, transparent); border-left-color: var(--int); }
.ck-item.rev .ck-label span { color: var(--text); font-weight: 600; }
.ck-inline { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px 28px; }
.ck-sec > .ck-inline { margin: 0 14px 12px; }
.ck-inline input { flex: 1 1 220px; min-width: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.ck-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px 14px 12px; font-size: 12.5px; }
.ck-foot:empty { display: none; }

/* Formulir */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.fld { display: grid; gap: 4px; font-size: 13px; min-width: 0; }
.fld > span { font-weight: 600; color: var(--muted); font-size: 12px; }
.fld.wide { grid-column: 1 / -1; }
.fld input, .fld textarea, .fld select {
  width: 100%; max-width: none; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 8px 10px; font-size: 14px;
}
.fld textarea { resize: vertical; font: inherit; color: inherit; line-height: 1.45; }
.fld input:focus, .fld textarea:focus, .fld select:focus, .ck-inline input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
textarea { font: inherit; color: inherit; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Logbook */
.lb { display: grid; gap: 12px; }
.lb-form h3, .sub-grid h3, .ta-onboard h3, .ta-onboard h2 { margin: 0 0 10px; font-size: 16px; }
.lb-form .actions, .ta-onboard .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.lb-list { display: grid; gap: 8px; }
.lb-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.lb-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lb-body p { margin: 4px 0 0; font-size: 13.5px; white-space: pre-line; }
.lb-next { color: var(--accent); font-weight: 600; }

/* Substansi */
.sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.sub-grid .fld + .fld { margin-top: 10px; }
.sub-note { font-size: 12.5px; margin: -4px 0 12px; }
.sub-ro { margin-bottom: 12px; }
.sub-ro span { font-size: 12px; font-weight: 600; color: var(--muted); }
.sub-ro p { margin: 2px 0 0; font-size: 14px; white-space: pre-line; }
.rubrik { display: grid; gap: 8px; }
.rub-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rub-row b { display: block; font-size: 13.5px; }
.rub-row small { font-size: 12px; }
.seg.rub button { min-width: 34px; justify-content: center; }
.seg.rub button:disabled { cursor: default; }
.seg.rub button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.saved-ind { font-size: 12px; min-height: 18px; margin: 8px 0 0; }
@media (max-width: 760px) { .sub-grid { grid-template-columns: minmax(0, 1fr); } }

/* Riwayat */
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 2px solid var(--border); display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; margin-left: -12px; }
.timeline b { font-weight: 600; font-size: 13.5px; display: block; }
.timeline small { font-size: 12px; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); margin-top: 3px; }
.tl-dot.teal { background: #0d9488; }

/* Riwayat lulus, pedoman, onboarding, beranda */
a.feed-item { color: inherit; text-decoration: none; }
.ar-item .judul { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ar-item .day { font-size: 18px; }
.ped-sec { margin-bottom: 10px; }
.ped-sec h3 { margin: 0 0 8px; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ped-sec ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14px; }
.ped-sec li small { display: block; font-size: 12.5px; }
.ta-onboard { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ta-onboard-side { display: grid; gap: 12px; }
.ta-onboard p { margin: 0 0 12px; font-size: 13.5px; }
.pick { display: grid; gap: 6px; }
.pick .btn { justify-content: space-between; }
.steps-ol { margin: 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 4px; }
@media (max-width: 860px) { .ta-onboard { grid-template-columns: minmax(0, 1fr); } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.steps p { margin: 4px 0 0; font-size: 13px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.ta-empty svg { width: 44px; height: 44px; }
.ta-promo { display: flex; gap: 14px; align-items: center; }
.ta-promo .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ta-promo b { display: block; }
.ta-promo .muted { font-size: 13px; }
.ta-feed .day { font-size: 17px; }

@media print {
  .ta-phead { background: none; color: var(--text); padding: 0; }
  .hero-actions, .ta-tabs, .seg-hero, .ck-tools, .ck-foot, .ck-toolbar, .ck-nav, .ttabs { display: none !important; }
  .ck-layout { grid-template-columns: 1fr; }
}
.empty-state .btn svg { width: 16px; height: 16px; opacity: 1; }
.ta-table .tr { grid-template-columns: minmax(0, 2fr) minmax(0, 1.15fr) 150px minmax(0, .9fr) minmax(0, 1.2fr); }
.c-tahap .tahap { white-space: normal; max-width: 100%; line-height: 1.3; }
.ta-table .pills .pill { white-space: normal; }
@media (max-width: 900px) { .ta-table .tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .ta-table .tr { grid-template-columns: minmax(0, 1fr); } }
.ta .seg { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 520px) {
  .ta .hero-actions { gap: 8px; }
  .ta .hero-actions .btn { padding: 7px 11px; font-size: 12.5px; }
  .ta-filter .seg { width: 100%; }
  .ta-filter .seg button { flex: 1; justify-content: center; }
  .ta-filter select { flex: 1; max-width: none; }
}

/* ---------- Bimbingan TA: mode online ---------- */
.akun { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.akun-nama { font-weight: 700; color: #fff; opacity: .92; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.85); }
.sync:empty { display: none; }
.sync::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.sync[data-sync="kirim"]::before { background: #facc15; }
.sync[data-sync="luring"]::before { background: #f87171; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.auth { max-width: 520px; margin: 0 auto; display: grid; gap: 14px; }
.auth .seg { justify-self: start; }
.auth .actions { display: flex; gap: 10px; }
.auth .btn { min-width: 120px; }
.auth-server { font-size: 12px; margin: 0; }
.auth-server code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.fld .seg { justify-self: start; }
.kode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Progres per pembimbing ---------- */
.pemb-seg { margin: 10px 0 2px; }
.pemb-seg button small { opacity: .7; font-weight: 500; }
.auth-pass { border-top: 1px solid var(--line, rgba(127,127,127,.25)); padding-top: 12px; }
.auth-pass summary { cursor: pointer; font-weight: 600; font-size: 13px; margin-bottom: 10px; }

/* ---------- Bulk actions ---------- */
.bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; padding: 10px 12px; border: 1px solid rgba(239,68,68,.28); border-radius: 12px; background: rgba(239,68,68,.06); font-size: 13px; }
.bulkbar[hidden] { display: none; }
.admin-table { min-width: 760px; }
.admin-table td, .admin-table th { vertical-align: top; }
.admin-table .nowrap { white-space: nowrap; }
.admin-pager { justify-content: center; align-items: center; gap: 11px; margin-top: 14px; }
.admin-tabs a.is-active { font-weight: 800; }
.admin-head .kpis { margin-bottom: 8px; }

/* KPI di dalam header admin tetap memakai warna teks gelap */
.admin-head .kpi b { color: var(--text); }
.admin-head .kpi span { color: var(--muted); }

.chkbtn { width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--accent); font-size: 13px; font-weight: 800; line-height: 1; display: inline-grid; place-items: center; vertical-align: middle; cursor: pointer; padding: 0; }
.chkbtn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Layout utama: penuh, tanpa batas lebar kontainer */
.container { width: 100%; max-width: none; }
