/* Kantor Clarysa — gaya tampilan. Warna dasar: marun Clarysa dan kuningan. */
:root {
  --bg: #F6F1EC; --surface: #FFFFFF; --surface-2: #FAF6F2; --ink: #26161A; --ink-2: #57434A; --muted: #7F6B72; --line: #E8DDD5; --line-2: #D9CABF;
  --maroon: #6E1F31; --maroon-2: #8A2A40; --maroon-soft: #F5E6E9; --on-maroon: #FFFFFF;
  --brass: #94672A; --brass-soft: #F6EBD6; --brass-line: #E4CD9F;
  --side-bg: #3B111B; --side-ink: #F4E6E0; --side-muted: #C9A7AE; --side-acc: #DDB06A; --side-hi: rgba(221, 176, 106, .15);
  --ok: #26734A; --ok-bg: #E2F1E7; --warn: #8F5D0E; --warn-bg: #FBEFD5; --bad: #B0261D; --bad-bg: #FBE4E1;
  --info: #2D5B88; --info-bg: #E2ECF6; --pend: #9E4C0C; --pend-bg: #FCE9D7; --neu: #675C61; --neu-bg: #EEE8E5; --vio: #643A93; --vio-bg: #EEE5F7;
  --shadow: 0 1px 2px rgba(59, 17, 27, .06), 0 6px 20px rgba(59, 17, 27, .05);
  --r: 16px; --r-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #130A0D; --surface: #1D1216; --surface-2: #25181D; --ink: #F3E9E5; --ink-2: #D1C0C3; --muted: #A38F95; --line: #382830; --line-2: #4A3740;
    --maroon: #A93A55; --maroon-2: #BF4865; --maroon-soft: #3A1A23; --on-maroon: #FFFFFF;
    --brass: #DDB06A; --brass-soft: #33271A; --brass-line: #5E4A2A;
    --side-bg: #0E0608; --side-ink: #F1E3DE; --side-muted: #A98D94;
    --ok: #82D3A2; --ok-bg: #16301F; --warn: #EDC26B; --warn-bg: #33270F; --bad: #F2918A; --bad-bg: #3A1714;
    --info: #92BBE8; --info-bg: #14263A; --pend: #F4A86A; --pend-bg: #3A2313; --neu: #B8ADB1; --neu-bg: #2A2226; --vio: #C9A9EE; --vio-bg: #2A1E3A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; text-wrap: balance; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
a { color: var(--maroon); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.eyebrow { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brass); }
:focus-visible { outline: 2.5px solid var(--brass); outline-offset: 2px; border-radius: 6px; }

/* ---------- brand, boot, login ---------- */
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #DDB06A; color: #3B111B; font-weight: 800; font-size: 19px; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand b { display: block; font-size: 15px; letter-spacing: .01em; }
.brand small { display: block; font-size: 12px; opacity: .75; }
.brand.big .mark { width: 44px; height: 44px; font-size: 23px; border-radius: 12px; }
.brand.big b { font-size: 17px; }
.boot { min-height: 100dvh; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; color: var(--muted); }
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(120% 70% at 50% -10%, #5A1A2A 0%, #3B111B 55%, #24090F 100%); }
.auth-card { width: min(420px, 100%); background: var(--surface); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.auth-card h1 { font-size: 22px; margin-top: 6px; }
.auth-card .sub { color: var(--ink-2); }
.auth-card .hint { font-size: 13px; color: var(--muted); text-align: center; }
.auth-foot { color: #C9A7AE; font-size: 12.5px; letter-spacing: .04em; }
.noscript { padding: 24px; text-align: center; }

/* ---------- kerangka ---------- */
.shell { min-height: 100dvh; }
.side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); background: var(--side-bg); color: var(--side-ink); display: flex; flex-direction: column; z-index: 40;
  transform: translateX(-102%); transition: transform .22s ease; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
body.drawer-open .side { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .4); }
.scrim { position: fixed; inset: 0; background: rgba(20, 6, 10, .5); z-index: 39; }
.side-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 14px 12px 18px; }
.side .icon-btn { color: var(--side-ink); }
.menu { flex: 1; overflow-y: auto; padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 14px; }
.room-t { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); padding: 0 10px 6px; }
.nav-i { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--side-ink); text-decoration: none; font-weight: 500; }
.nav-i:hover { background: rgba(255, 255, 255, .06); }
.nav-i.on { background: var(--side-hi); color: var(--side-acc); font-weight: 700; }
.nav-i span { flex: 1; min-width: 0; }
.badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #DDB06A; color: #3B111B; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.side-f { border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px 14px 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-f .btn, .side-f .btn.ghost { color: var(--side-ink); border-color: rgba(255, 255, 255, .16); }
.side-f .btn:hover { background: rgba(255, 255, 255, .08); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b, .who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.who small { font-size: 12px; color: var(--side-muted); }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; background: var(--maroon-soft); color: var(--maroon); flex: none; }
.side .av { background: rgba(221, 176, 106, .2); color: var(--side-acc); }
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.top-t { flex: 1; min-width: 0; }
.top-t small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.top-t h1 { font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.icon-btn.sm { width: 32px; height: 32px; }
.view { max-width: 1180px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 16px; outline: none; }
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.bn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 10px; }
.bn.on { color: var(--maroon); }
.bn .ico { width: 23px; height: 23px; }
.bn .badge { position: absolute; top: 0; left: calc(50% + 6px); }
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: 100dvh; width: auto; transform: none; transition: none; }
  .scrim, .only-m, .bnav { display: none !important; }
  .view { padding-bottom: 40px; padding-top: 22px; }
  .top { padding-top: 14px; padding-bottom: 14px; }
}

/* ---------- elemen umum ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); min-width: 0; }
.card.narrow { max-width: 760px; width: 100%; }
.sub-card { border: 1px solid var(--brass-line); background: var(--brass-soft); border-radius: 12px; padding: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-h.wrap { flex-wrap: wrap; align-items: flex-end; }
.grid2 { display: grid; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 900px) { .grid2 { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: start; } }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hello { padding: 2px 2px 0; }
.hello h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.note { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.note .ico { width: 17px; height: 17px; margin-top: 1px; }
.note.warn { color: var(--warn); background: var(--warn-bg); padding: 8px 10px; border-radius: 10px; }
.empty { text-align: center; color: var(--muted); padding: 22px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty .ico { width: 34px; height: 34px; opacity: .6; }
.empty b { color: var(--ink-2); }
.empty p { max-width: 380px; font-size: 13.5px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 30px 4px; }
.spin { width: 18px; height: 18px; border: 2.5px solid var(--line-2); border-top-color: var(--maroon); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-card { border-color: var(--bad); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--brass-soft); color: var(--brass); border: 1px solid var(--brass-line); vertical-align: 1px; }

/* tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 650; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn[aria-busy=true] { opacity: .7; cursor: progress; }
.btn.primary { background: var(--maroon); border-color: var(--maroon); color: var(--on-maroon); }
.btn.primary:hover { background: var(--maroon-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.sm .ico { width: 17px; height: 17px; }
.btn.big { min-height: 56px; width: 100%; font-size: 17px; border-radius: 14px; }
.btn.big .ico { width: 24px; height: 24px; }
.btn.wide { width: 100%; }
.btn.danger { color: var(--bad); }
.btn.armed { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.lnk { border: 0; background: none; padding: 0; color: var(--maroon); font-weight: 700; cursor: pointer; text-align: left; }

/* formulir */
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.frow > .f { flex: 1 1 180px; }
.f > span:first-child { font-size: 13px; font-weight: 650; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea, .in {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 16px; }
textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 25%, transparent); }
.in.sm { min-height: 34px; padding: 4px 10px; font-size: 14px; width: auto; }
input[type=file] { font-size: 14px; max-width: 100%; }
.frow { display: flex; flex-wrap: wrap; gap: 12px; }
.frow.end { align-items: flex-end; }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.pw-t { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.form-err { color: var(--bad); background: var(--bad-bg); padding: 8px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.ck { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ck input, .pola input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--maroon); }
fieldset.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
fieldset.chips legend { font-size: 13px; font-weight: 650; color: var(--ink-2); padding: 0; margin-bottom: 7px; width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; }
.chip.sm span { min-height: 32px; padding: 0 11px; font-size: 13px; }
.chip input:checked + span { background: var(--maroon); border-color: var(--maroon); color: var(--on-maroon); }
.chip input:focus-visible + span { outline: 2.5px solid var(--brass); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; }
.days-ck { display: flex; flex-wrap: wrap; gap: 6px; }

/* kode status */
.kd { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--neu-bg); color: var(--neu); }
.kd-H, .kd-W { background: var(--ok-bg); color: var(--ok); }
.kd-T, .kd-M { background: var(--warn-bg); color: var(--warn); }
.kd-A { background: var(--bad-bg); color: var(--bad); }
.kd-P, .kd-B { background: var(--pend-bg); color: var(--pend); }
.kd-D, .kd-I, .kd-C { background: var(--info-bg); color: var(--info); }
.kd-S, .kd-X { background: var(--vio-bg); color: var(--vio); }
.st { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.st-menunggu { background: var(--pend-bg); color: var(--pend); }
.st-disetujui { background: var(--ok-bg); color: var(--ok); }
.st-ditolak { background: var(--bad-bg); color: var(--bad); }
.st-dibatalkan { background: var(--neu-bg); color: var(--neu); }

/* ubin angka */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { --c: var(--line-2); display: flex; flex-direction: column; gap: 2px; padding: 11px 12px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); border-top: 3px solid var(--c); text-align: left; color: inherit; text-decoration: none; font: inherit; min-width: 0; }
button.tile, a.tile { cursor: pointer; }
button.tile:hover, a.tile:hover { border-color: var(--c); }
.tile.on { background: color-mix(in srgb, var(--c) 12%, var(--surface)); border-color: var(--c); }
.tile span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; line-height: 1.3; }
.tile b { font-size: 26px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile small { font-size: 12px; color: var(--muted); }
.t-H, .t-hadir { --c: var(--ok); } .t-T, .t-telat { --c: var(--warn); } .t-I, .t-izin, .t-C { --c: var(--info); } .t-A, .t-alpa { --c: var(--bad); }
.t-P, .t-B, .t-belum, .t-cek { --c: var(--pend); } .t-semua { --c: var(--brass); }

/* kartu absen */
.absen-card { border-color: var(--brass-line); }
.ac-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ac-h h2 { font-size: 18px; margin: 2px 0; }
.ac-h .muted { font-size: 13.5px; }
.clock { text-align: right; line-height: 1; }
.clock b { display: block; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--maroon); letter-spacing: -.02em; }
.clock small { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.ac-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ac-step { padding: 11px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.ac-step .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.ac-step b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ac-step small { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.ac-step.done { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.ac-step.done b { color: var(--ok); }
.ac-st { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.ac-done { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 700; background: var(--ok-bg); padding: 12px 14px; border-radius: 12px; }
.ac-act { display: flex; flex-direction: column; gap: 8px; }
.sheet { border: 1.5px dashed var(--brass-line); background: var(--brass-soft); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sh-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sh-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px 10px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.sh-step > .ico { margin-top: 1px; color: var(--muted); }
.sh-step > .btn { grid-column: 2; justify-self: start; }
.sh-step p { font-size: 13.5px; color: var(--ink-2); }
.sh-step.ok > .ico { color: var(--ok); }
.sh-step.warn > .ico { color: var(--warn); }
.sh-step.warn p { color: var(--warn); }
.sh-step .f { margin-top: 8px; }
#foto-pv { display: block; width: 120px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; margin-top: 8px; border: 1px solid var(--line); }
.howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 14px; }

/* daftar hari */
.days { list-style: none; margin: 0; padding: 0; }
.days li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); }
.days .d { text-align: center; line-height: 1.1; }
.days .d b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.days .d small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.days .m { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.days .m small { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.days .j { font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.list li:first-child { border-top: 0; }

/* pengumuman */
.umum { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.umum:first-of-type { border-top: 0; padding-top: 0; }
.umum.penting { border-left: 3px solid var(--brass); padding-left: 12px; }
.umum p { color: var(--ink-2); font-size: 14.5px; }
.um-row { border-top: 1px solid var(--line); padding-top: 4px; }
.um-row:first-of-type { border-top: 0; }
.um-row .umum { border-top: 0; }
.um-row.off { opacity: .6; }

/* pengajuan */
.aju { padding: 13px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.card > .aju:first-of-type, h2 + .aju { border-top: 0; padding-top: 0; }
.aju-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.aju-t { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.aju .pre { font-size: 14.5px; }
.aju-c { font-size: 13.5px; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.aju small { font-size: 12px; }
.aju-wrap { border-top: 1px solid var(--line); padding-top: 14px; }
.aju-wrap:first-of-type { border-top: 0; padding-top: 0; }
.aju-wrap .aju { border-top: 0; padding-top: 4px; }
.aju-who { font-size: 15px; }
.lamp { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lamp-links { display: inline-flex; flex-wrap: wrap; gap: 12px; font-size: 14px; font-weight: 600; }
.putus { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; background: var(--surface-2); border: 1px solid var(--line); padding: 12px; border-radius: 12px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; align-self: flex-start; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-selected=true] { background: var(--surface); color: var(--maroon); box-shadow: var(--shadow); }

/* daftar orang (HRD) */
.people { list-style: none; margin: 0; padding: 0; }
.person { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.person:first-child { border-top: 0; padding-top: 2px; }
.p-h { display: flex; align-items: center; gap: 10px; }
.p-n { flex: 1; min-width: 0; }
.p-n b { font-size: 15px; }
.p-n small { display: block; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.p-b { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; padding-left: 44px; }
.p-b em { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.p-b b { font-variant-numeric: tabular-nums; }
.p-k { font-size: 13px; color: var(--ink-2); padding-left: 44px; overflow-wrap: anywhere; }
.p-a { display: flex; gap: 6px; padding-left: 38px; flex-wrap: wrap; }
.flag { color: var(--warn); font-weight: 600; font-size: 13px; }
.people .person .muted { font-size: 13px; }
.fotos { display: flex; gap: 10px; flex-wrap: wrap; padding-left: 44px; }
.fotos figure { margin: 0; width: 130px; }
.fotos img { width: 130px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.fotos figcaption { font-size: 12px; color: var(--muted); margin-top: 3px; }
.fotos .miss { font-size: 12.5px; color: var(--muted); padding: 10px; border: 1px dashed var(--line-2); border-radius: 10px; }
.kor { margin-left: 44px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.people.compact .person { padding: 9px 0; }
.acc { font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.acc.ok { color: var(--ok); font-weight: 650; }
.acc .ico { width: 15px; height: 15px; }
.filters .in { width: auto; flex: 1 1 200px; }
.filters select.in { flex: 0 1 200px; }
.handoff { background: var(--ok-bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.handoff pre { margin: 0; white-space: pre-wrap; font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); padding: 10px 12px; border-radius: 9px; width: 100%; overflow-wrap: anywhere; }
@media (max-width: 520px) { .p-b, .p-k, .fotos { padding-left: 0; } .p-a { padding-left: 0; } .kor { margin-left: 0; } .p-h .acc { display: none; } }

/* lokasi & pola */
.loks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lok { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.lok:first-child { border-top: 0; }
.libur li { padding: 7px 0; }

/* tabel */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.tbl { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl td { font-variant-numeric: tabular-nums; }
.tbl .r { text-align: right; }
.rekap th, .rekap td { text-align: center; white-space: nowrap; }
.rekap thead th { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: normal; min-width: 64px; vertical-align: bottom; line-height: 1.25; }
.rekap .stick { position: sticky; left: 0; background: var(--surface); text-align: left; z-index: 1; min-width: 150px; box-shadow: 1px 0 0 var(--line); }
.rekap tbody tr.on .stick, .rekap tbody tr.on td { background: var(--brass-soft); }
.rekap td.bad { color: var(--bad); font-weight: 700; }
.rekap .z { color: var(--line-2); }
.rekap tfoot td, .rekap tfoot th { border-bottom: 0; background: var(--surface-2); }
.pola input[type=time] { min-height: 36px; padding: 4px 8px; font-size: 15px; }
.pola th, .pola td { padding: 5px 6px; }

/* slip & data diri */
.slip { border-top: 1px solid var(--line); padding: 10px 0; }
.slip summary { cursor: pointer; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.slip-d { padding: 10px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.slip-d h4 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.thp { font-size: 16px; } .thp b { color: var(--maroon); font-size: 20px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; overflow-wrap: anywhere; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: #2A1418; color: #FFF5F0; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: min(92vw, 520px); text-align: center; }
.toast.err { background: #8E1F18; }
@media (min-width: 1024px) { .toast { bottom: 28px; } }
body:not(.in-shell) .toast { bottom: 24px; }
@media (prefers-reduced-motion: reduce) { .side { transition: none; } .spin { animation-duration: 2s; } }
