
:root {
  --teal-900: #0B3C49;
  --teal-800: #134E5C;
  --teal-700: #155867;
  --primary: #0E5E6F;
  --primary-dark: #0B4A57;
  --amber: #F2A541;
  --ground: #F6F3EE;
  --surface: #FFFFFF;
  --ink: #1B2A33;
  --ink-2: #3E4D55;
  --muted: #5B6B73;
  --line: #EAE4DA;
  --line-2: #DDD6CB;
  --soft: #EFEBE4;
  --ok-bg: #DDF1E6;   --ok-fg: #1E6B45;
  --warn-bg: #FDEBD3; --warn-fg: #8A4B0F;
  --bad-bg: #FBE1E1;  --bad-fg: #A4262C;
  --info-bg: #DCEEF2; --info-fg: #0B4A57;
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--ground); color: var(--ink); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

/* ---------- boot & spinner ---------- */
.boot { min-height: 100vh; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons & form ---------- */
.btn { height: 46px; padding: 0 20px; border-radius: 12px; border: none; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-amber { background: var(--amber); color: var(--teal-900); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.btn-danger { background: var(--surface); border: 1px solid var(--line-2); color: var(--bad-fg); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.input { height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; background: #FBFAF7; width: 100%; }
.input:focus { border-color: var(--primary); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(14, 94, 111, .15); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.note { border-radius: 12px; padding: 11px 14px; font-size: 13px; }
.note-warn { background: var(--warn-bg); color: #7A420D; }
.note-info { background: var(--info-bg); color: var(--info-fg); }
.note-bad { background: var(--bad-bg); color: var(--bad-fg); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip-warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip-bad { background: var(--bad-bg); color: var(--bad-fg); }
.chip-soft { background: var(--soft); color: var(--ink-2); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: flex; }
.auth-side { width: 42%; max-width: 560px; background: var(--teal-900); padding: 52px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; color: #fff; }
.auth-side::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--amber); right: -150px; bottom: -130px; opacity: .9; }
.auth-side::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 2px solid #2E6B78; right: 90px; bottom: 120px; }
.auth-side > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--amber); color: var(--teal-900); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.brand-name { font-weight: 700; font-size: 17px; color: #fff; }
.brand-sub { font-size: 13px; color: #A9C6CC; }
.auth-hero h1 { font-size: 42px; line-height: 1.12; font-weight: 800; margin-bottom: 18px; }
.auth-hero p { color: #C3DADE; max-width: 400px; font-size: 16px; }
.auth-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; max-width: 420px; }
.auth-pills span { border: 1px solid #3D7582; color: #E4EFF1; border-radius: 999px; padding: 7px 14px; font-size: 13px; }
.auth-foot { font-size: 12px; color: #8FB3BA; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 22px; padding: 34px 38px; box-shadow: 0 20px 50px rgba(11, 60, 73, .10); display: flex; flex-direction: column; gap: 18px; }
.tabs { display: flex; background: #F1ECE4; border-radius: 12px; padding: 4px; gap: 4px; }
.tabs button { flex: 1; height: 42px; border: none; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.auth-card h2 { font-size: 25px; font-weight: 800; }
.auth-card .lead { color: var(--muted); font-size: 14px; margin-top: 4px; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 248px; flex-shrink: 0; background: var(--teal-900); padding: 28px 18px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 0 8px; }
.side .brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 14px; }
.nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-main { flex: 1 1 auto; min-height: 0; padding: 2px; margin: -2px; scroll-padding: 12px 0; }
.nav-main.fade-bottom { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.nav-main.fade-top { -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to top, #000 calc(100% - 40px), transparent); }
.nav-main.fade-both { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.nav button:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.nav-label { color: #7FA6AE; font-size: 12px; font-weight: 700; padding: 16px 14px 6px; }
.nav button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; border: none; background: transparent; color: #D6E6E9; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; width: 100%; }
.nav button:hover { background: #134E5C; }
.nav button.on { background: var(--teal-700); color: #fff; font-weight: 600; }
.nav button .grow { flex: 1; }
.nav .count { background: var(--amber); color: var(--teal-900); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 800; }
.nav .soon { font-size: 11px; color: #7FA6AE; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.me { display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: 14px; background: var(--teal-800); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: var(--teal-900); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.me-name { color: #fff; font-size: 13px; font-weight: 700; }
.me-sub { color: #A9C6CC; font-size: 12px; }
.main { flex: 1; min-width: 0; padding: 34px 44px 60px; display: flex; flex-direction: column; gap: 24px; }
.topbar { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head .eyebrow { color: var(--muted); font-size: 14px; }
.page-head h1 { font-size: 30px; font-weight: 800; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card-title { font-size: 17px; font-weight: 800; }
.section-head h2 { font-size: 20px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- dashboard mahasiswa ---------- */
.banner { background: var(--primary); color: #fff; border-radius: 20px; padding: 22px 26px; display: flex; align-items: center; gap: 22px; }
.banner-date { width: 70px; height: 70px; border-radius: 16px; background: var(--amber); color: var(--teal-900); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; }
.banner-date b { font-size: 26px; line-height: 1; }
.banner-date small { font-size: 12px; }
.banner-sub { font-size: 13px; color: #CFE3E7; font-weight: 600; }
.banner-title { font-size: 19px; font-weight: 700; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.menu-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.menu-card.is-joined { border-color: #BFE3CF; }
.menu-top { display: flex; justify-content: space-between; align-items: flex-start; }
.fitur { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fitur li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.fitur svg { flex-shrink: 0; margin-top: 2px; }
.wait { min-height: 46px; border-radius: 12px; background: var(--ground); color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.banner-welcome { position: relative; overflow: hidden; }
.banner-welcome::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--amber); right: -50px; top: -70px; opacity: .9; }
.banner-welcome > div { position: relative; z-index: 1; }
.nav-hint { margin: 14px 4px 0; padding: 14px; border: 1px dashed #3D7582; border-radius: 12px; color: #A9C6CC; font-size: 12px; line-height: 1.5; }
.menu-icon { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.menu-card h3 { font-size: 18px; font-weight: 800; }
.menu-card p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.menu-card .body { flex: 1; }
.menu-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.link-btn { background: none; border: none; color: var(--primary); font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 0; }
.howto { border: 1.5px dashed #D5CBBB; border-radius: 16px; padding: 16px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 14px; }
.howto h3 { font-size: 15px; font-weight: 700; }
.step { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.step span { width: 24px; height: 24px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h3 { color: var(--ink); font-size: 18px; }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat b { display: block; font-size: 28px; font-weight: 800; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.req-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.req { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid #F0EBE3; border-radius: 14px; }
.req .who { flex: 1; min-width: 0; }
.req .name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req .detail { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.req .time { font-size: 12px; color: var(--muted); }
.req .acts { display: flex; gap: 8px; flex-shrink: 0; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--ground); padding: 10px 12px; }
th:first-child { border-radius: 10px 0 0 10px; }
th:last-child { border-radius: 0 10px 10px 0; }
td { padding: 12px; border-bottom: 1px solid #F0EBE3; vertical-align: top; }
td .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.search { max-width: 280px; height: 40px; }

/* ---------- toast & modal ---------- */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.bad { background: var(--bad-fg); }
.modal-back { position: fixed; inset: 0; background: rgba(11, 60, 73, .45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 40; }
.modal { background: #fff; border-radius: 20px; padding: 28px; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.modal h3 { font-size: 20px; font-weight: 800; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

/* ---------- responsif ---------- */
@media (max-width: 1100px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .auth { flex-direction: column; }
  .auth-side { width: 100%; max-width: none; padding: 28px 24px; gap: 22px; }
  .auth-hero h1 { font-size: 28px; }
  .auth-hero p, .auth-pills, .auth-foot { display: none; }
  .auth-main { padding: 24px 16px 40px; }
  .auth-card { padding: 26px 22px; }
  .side { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .side { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(11, 60, 73, .45); }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--teal-900); color: #fff; position: sticky; top: 0; z-index: 20; }
  .topbar button { background: none; border: none; color: #fff; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .shell { flex-direction: column; }
  .main { padding: 22px 16px 48px; }
  .page-head h1 { font-size: 24px; }
  .stats { grid-template-columns: 1fr; }
  .req { flex-wrap: wrap; }
  .req .acts { width: 100%; justify-content: flex-end; }
  .banner { padding: 18px; gap: 16px; }
}
@media (max-width: 640px) {
  .menu-grid, .grid-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition: none !important; }
}


/* ---------- bimbingan skripsi ---------- */
.h1-judul { font-size: 24px; line-height: 1.3; }
.timeline-wrap { overflow-x: auto; padding-bottom: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(96px, 1fr)); min-width: calc(var(--n) * 100px); }
.tl-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 4px; }
.tl-step::before { content: ''; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: var(--line-2); z-index: 0; }
.tl-step:first-child::before { display: none; }
.tl-step.selesai::before, .tl-step.aktif::before { background: var(--primary); }
.tl-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: #fff; color: var(--muted); border: 2px solid var(--line-2); box-sizing: border-box; }
.tl-step.selesai .tl-dot { background: var(--primary); color: #fff; border: none; }
.tl-step.aktif .tl-dot { background: var(--amber); color: var(--teal-900); border: 4px solid var(--warn-bg); }
.tl-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.tl-step.belum .tl-name { color: var(--muted); font-weight: 600; }
.tl-date { font-size: 12px; color: var(--muted); min-height: 16px; }
.ditem { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid #F0EBE3; border-radius: 14px; }
.ditem-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.file-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-top: 4px; text-decoration: none; max-width: 100%; }
.file-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.file-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; }
.td-judul { max-width: 340px; font-size: 13px; line-height: 1.45; }
.detail-strong { color: var(--ink-2); font-weight: 600; }
.label { font-size: 13px; font-weight: 600; }
.riwayat { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.riw { display: flex; gap: 10px; }
.riw-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 5px; flex-shrink: 0; }
a.chip { text-decoration: none; }

/* ---------- status studi & warna nilai ---------- */
.chip-biru { background: #DCEFFB; color: #155A86; }
.chip-kuning { background: #FFF3B8; color: #6E5500; }
.chip-oranye { background: #FFDDBF; color: #8F4200; }
.chip-merah { background: #F9CFCF; color: #9A1F24; }
.chip-cream { background: #FBF0D9; color: #7A5A12; }
.stat-studi .stat-status { font-size: 22px; display: flex; align-items: center; gap: 8px; }
.sdot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; flex-shrink: 0; border: 3px solid transparent; box-sizing: border-box; }
.sdot-biru { background: #5AAEE3; border-color: #5AAEE3; }
.sdot-kuning { background: #F2C200; border-color: #F2C200; }
.sdot-oranye { background: #F07F16; border-color: #F07F16; }
.sdot-merah { background: #D93A3A; border-color: #D93A3A; }
.sdot-abu { background: #A8A59C; border-color: #A8A59C; }
.sdot-netral { background: var(--line-2); border-color: var(--line-2); }
.sdot-kosong { background: transparent; }
tr.st-row td:first-child { box-shadow: inset 4px 0 0 var(--st-garis); }
tr.st-row td { background: var(--st-latar); }
.st-row-biru { --st-latar: #F1F8FD; --st-garis: #5AAEE3; }
.st-row-kuning { --st-latar: #FFFBE5; --st-garis: #F2C200; }
.st-row-oranye { --st-latar: #FFF3E8; --st-garis: #F07F16; }
.st-row-merah { --st-latar: #FDEEEE; --st-garis: #D93A3A; }
.st-row-abu { --st-latar: #F6F5F2; --st-garis: #A8A59C; }
.peringatan { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 16px; background: var(--st-latar); box-shadow: inset 5px 0 0 var(--st-garis); }
.peringatan .sdot { width: 22px; height: 22px; border-width: 4px; margin-top: 2px; }
.peringatan-isi { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.peringatan-judul { font-weight: 800; font-size: 15px; }
.peringatan p { font-size: 14px; color: var(--ink-2); }
.me-name .sdot { width: 12px; height: 12px; border-width: 2px; margin-left: 4px; vertical-align: 0; }
.legenda-studi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; font-size: 13px; }
.leg { display: inline-flex; align-items: center; gap: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stat-studi.st-biru { background: #EAF6FD; border-color: #C6E4F6; }
.stat-studi.st-kuning { background: #FFF9DB; border-color: #F3E39A; }
.stat-studi.st-oranye { background: #FFEEDD; border-color: #F5C89E; }
.stat-studi.st-merah { background: #FDE6E6; border-color: #F0B5B5; }
.stat-studi .chip { margin-top: 6px; }
tr.row-d td { background: #FDF6E7; }
tr.row-e td { background: #FDECEC; }
tr.row-t td { background: #F4F2EE; }
.riw-nilai { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rn { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; background: var(--ok-bg); color: var(--ok-fg); }
.rn small { font-weight: 500; opacity: .8; }
.rn-d { background: #FBF0D9; color: #7A5A12; }
.rn-e { background: var(--bad-bg); color: var(--bad-fg); }
.rn-t { background: var(--soft); color: var(--ink-2); }
.rn-x { border: none; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 0 0 2px; opacity: .6; }
.rn-x:hover { opacity: 1; }
.hapus-mk { font-size: 15px; }
.hapus-mk-link { font-size: 12px; padding: 4px 0 0; }

/* ---------- profil & foto ---------- */
.avatar-img { object-fit: cover; padding: 0; background: var(--soft); display: block; }
.avatar-sm { width: 36px; height: 36px; font-size: 12px; }
.avatar-xs { width: 22px; height: 22px; display: inline-block; vertical-align: middle; border-radius: 50%; object-fit: cover; }
.who-row { display: flex; align-items: center; gap: 10px; }
button.me { border: none; width: 100%; cursor: pointer; font: inherit; color: inherit; }
button.me:hover, button.me.on { background: var(--teal-700); }
.foto-card { align-items: center; text-align: center; }
.foto-besar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(11, 60, 73, .15); }
.foto-kosong { display: flex; align-items: center; justify-content: center; background: var(--amber); color: var(--teal-900); font-weight: 800; font-size: 48px; }
.detail-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foto-detail { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(11, 60, 73, .15); flex-shrink: 0; }
.foto-detail.foto-kosong { font-size: 36px; }
.detail-head h1 { font-size: 28px; font-weight: 800; }

/* ---------- pesan ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.chat-msgs { height: 56vh; min-height: 300px; overflow-y: auto; padding: 12px 20px; background: var(--ground); display: flex; flex-direction: column; gap: 8px; }
.chat-kosong { margin: auto; color: var(--muted); font-size: 14px; text-align: center; }
.bubble-row { display: flex; }
.bubble-row.saya { justify-content: flex-end; }
.bubble { max-width: 76%; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 14px; }
.bubble-row.saya .bubble { background: var(--primary); color: #fff; border-color: var(--primary); border-radius: 16px 16px 4px 16px; }
.bubble-row.saya .bubble a { color: #fff; }
.bubble-isi { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.bubble-waktu { font-size: 11px; opacity: .7; margin-top: 4px; text-align: right; }
.chat-input { display: flex; gap: 10px; align-items: flex-end; padding: 0 20px 18px; }
.chat-input .textarea { flex: 1; min-height: 46px; max-height: 160px; }
.pesan-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.thread-list { display: flex; flex-direction: column; gap: 6px; max-height: 72vh; overflow-y: auto; }
.thread { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: none; background: none; border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; color: inherit; }
.thread:hover { background: var(--ground); }
.thread.on { background: var(--info-bg); }
.thread-isi { flex: 1; min-width: 0; }
.thread-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.thread-cup { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .count { background: var(--amber); color: var(--teal-900); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 800; }
.pesan-kembali { display: none; }
@media (max-width: 900px) {
  .pesan-grid { grid-template-columns: 1fr; }
  .pesan-grid.ada-thread .thread-list { display: none; }
  .pesan-kembali { display: inline-block; margin-bottom: 8px; }
  .chat-msgs { height: 60vh; }
}

/* ---------- notifikasi ---------- */
.notif { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F0EBE3; }
.notif:last-child { border-bottom: none; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); margin-top: 6px; flex-shrink: 0; }
.notif.baru .notif-dot { background: var(--amber); }
.notif-isi { font-size: 13px; color: var(--ink-2); margin-top: 4px; max-height: 7.5em; overflow: hidden; }
.tg-steps { margin: 0; padding-left: 20px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- validasi instrumen ---------- */
.timeline-sm { grid-template-columns: repeat(var(--n), minmax(80px, 1fr)); min-width: calc(var(--n) * 84px); }
.timeline-sm .tl-step::before { top: 14px; }
.timeline-sm .tl-dot { width: 30px; height: 30px; font-size: 12px; }
.timeline-sm .tl-step.aktif .tl-dot { border-width: 3px; }
.timeline-sm .tl-name { font-size: 12px; }
.timeline-sm .tl-date { font-size: 11px; }
.hasil-validasi { background: var(--ok-bg); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hv-label { font-size: 12px; font-weight: 700; color: var(--ok-fg); }
.hv-kes { font-size: 16px; font-weight: 800; color: var(--ok-fg); }
.summary { cursor: pointer; font-weight: 600; }
.versi { padding: 10px 0; border-top: 1px solid #F0EBE3; font-size: 13px; }
.versi:first-of-type { margin-top: 8px; }

/* ---------- kelola kurikulum ---------- */
.sort-btn { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-transform: inherit; }
.sort-btn:hover, .sort-btn.on { color: var(--ink); }
.sort-ico { font-size: 10px; opacity: .7; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.chip-hapus { gap: 4px; }
.tabs-kecil button { height: 34px; font-size: 13px; }
.hasil-validator { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: #FBFAF7; }
.tl-oleh { font-size: 11px; opacity: .8; }
.dosen-list { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.dosen-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.bd-bagian { border-top: 1px solid var(--line); padding-top: 10px; }
.bd-bagian summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; }
.bd-bagian summary::-webkit-details-marker { display: none; }
.bd-bagian summary::after { content: '▾'; color: var(--muted); margin-left: 8px; }
.bd-bagian[open] summary::after { content: '▴'; }
.bd-bagian summary .chip { margin-left: auto; }
.bd-item { padding: 8px 0; border-bottom: 1px dashed #EDE7DD; }
.bd-item:last-child { border-bottom: none; }
.bd-nama { font-size: 13px; }
.card-ingat { border-color: #F5C89E; background: #FFF8F0; }
.luar-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #F0EBE3; }
.luar-item:last-of-type { border-bottom: none; }
.po-hasil { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.po-item { align-items: flex-start; font-size: 13px; line-height: 1.5; }
.modal { max-height: 90vh; overflow-y: auto; }
.skip-list { margin: 8px 0 0; padding-left: 18px; }
.chip-violet { background: #E6E3F5; color: #3D348B; }
.card-col { display: flex; flex-direction: column; gap: 18px; }
.kur-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1; align-content: start; }
.kur-stats div { background: var(--ground); border-radius: 12px; padding: 10px 12px; }
.kur-stats b { display: block; font-size: 20px; font-weight: 800; }
.kur-stats span { font-size: 12px; color: var(--muted); }
.format { background: var(--ground); border-radius: 14px; padding: 14px 16px; }
.format-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.format table { font-size: 13px; background: #fff; border-radius: 10px; }
.format th { background: #fff; font-family: ui-monospace, Menlo, monospace; }
.upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload-btn { cursor: pointer; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.preview { border-top: 1px solid var(--line); padding-top: 16px; }
.preview-table { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 0; }
.preview-table th { position: sticky; top: 0; border-radius: 0; }
.row-bad td { background: var(--bad-bg); color: var(--bad-fg); }
.kur-pick { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.kur-pick .field { flex: 1; min-width: 220px; }

/* ---------- tahap 2: bimbingan akademik ---------- */
.muted-sm { font-size: 13px; color: var(--muted); }
.muted-cell { color: var(--muted); font-weight: 600; white-space: nowrap; }
.chip-info { background: var(--info-bg); color: var(--info-fg); }
.note-ok { background: var(--ok-bg); color: var(--ok-fg); }
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid #E6DFD3; overflow-x: auto; }
.tabbar button { background: none; border: none; border-bottom: 2.5px solid transparent; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabbar button.on { border-bottom-color: var(--primary); color: var(--ink); font-weight: 700; }
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat small { font-size: 15px; color: var(--muted); font-weight: 600; }
.stat-bad { background: var(--bad-bg); border-color: #F3C7C7; }
.stat-bad span, .stat-bad b { color: var(--bad-fg); }
.stat-ok { background: var(--ok-bg); border-color: #BFE3CF; }
.stat-ok span, .stat-ok b { color: var(--ok-fg); }
.stat-link { text-align: left; cursor: pointer; font: inherit; }
.bar { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.bar-lg { height: 8px; margin-top: 6px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.card-stack { display: flex; flex-direction: column; gap: 14px; }
.sem-top { display: flex; justify-content: space-between; font-size: 13px; }
.sem-top span:first-child { font-weight: 600; }
.sem-top span:last-child { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.input-sm { height: 38px; padding: 0 10px; border-radius: 10px; font-size: 14px; }
.textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.savebar { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--teal-900); color: #E4EFF1; border-radius: 16px; padding: 14px 18px; font-size: 13px; }
.savebar .btn { flex-shrink: 0; background: var(--amber); color: var(--teal-900); }
.narrow { max-width: 620px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.info-grid span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.info-grid b { font-size: 15px; overflow-wrap: anywhere; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.section-title { font-size: 20px; font-weight: 800; margin-top: 6px; }
.jitem { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #F0EBE3; }
.jitem:last-child { border-bottom: none; }
.date-block { width: 50px; height: 50px; border-radius: 13px; background: var(--info-bg); color: var(--primary); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; }
.date-block b { font-size: 18px; line-height: 1; }
.date-block small { font-size: 11px; }
.date-block.off { background: var(--soft); color: var(--muted); }
.jbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jtitle { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.jmeta { font-size: 13px; color: var(--muted); }
.jnote { margin-top: 6px; background: var(--ground); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--ink-2); }
.jacts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.jside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.link-btn.danger { color: var(--bad-fg); font-size: 13px; }
details.card summary { cursor: pointer; list-style: none; }
details.card summary::after { content: ' ▾'; color: var(--muted); }
details[open].card summary { margin-bottom: 8px; }
@media (max-width: 1100px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .savebar { flex-direction: column; align-items: stretch; top: 72px; }
}

/* Adaptasi nama panjang, sidebar dan tata letak mobile. */
.side{width:292px;padding:28px 22px}.side .brand-name{font-size:16px;line-height:1.45}.brand-mark{flex-shrink:0}
.auth-side{max-width:620px;width:44%}.auth-hero h1{font-size:clamp(32px,3.2vw,48px)}
.service-grid{align-items:stretch}.service-card{display:flex;flex-direction:column}.service-card .btn{margin-top:auto}
.demo-bar{background:#fff1d3;border-bottom:1px solid #e4d3ab;padding:10px 20px;color:#664519;font-size:13px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center}
.demo-bar button{border:1px solid #dcc49c;background:#fffaf0;padding:5px 12px;border-radius:8px;cursor:pointer;color:#604821;font-size:12px}
@media(max-width:900px){.side{width:250px}.auth-side{padding:36px}.auth-hero h1{font-size:36px}}
@media(max-width:720px){.auth-side{width:100%;max-width:none}.side{width:280px}.auth-card{padding:26px}.demo-bar{font-size:12px}}
