/* DATE Kasablanka 16 — tema mengikuti logo: navy malam, emas-oranye (aksi utama), teal (sorotan).
   Font Epilogue (judul) + Inter (isi). Mendukung mode terang & gelap (ikut pengaturan HP). */
:root {
  /* Merek (tetap di kedua mode) */
  --navy: #14103a;
  --navy-2: #1e1856;
  --navy-deep: #0d0a28;
  --gold: #f5a524;
  --gold-light: #fcd27b;
  --orange: #ee7d3b;
  --teal-bright: #2dd4bf;
  --grad-cta: linear-gradient(135deg, #f9c552 0%, #f5a524 45%, #ee7d3b 100%);
  --grad-brand: linear-gradient(90deg, #2dd4bf 0%, #f5a524 100%);
  --grad-hero: radial-gradient(130% 110% at 0% 0%, rgba(45, 212, 191, 0.20), transparent 55%),
               radial-gradient(110% 100% at 100% 100%, rgba(245, 165, 36, 0.18), transparent 55%),
               linear-gradient(160deg, #221b5e 0%, #14103a 60%, #0f0c2e 100%);
  --on-cta: #1b1240;

  /* Mode terang */
  --ink: #17123d;          /* judul & teks tegas */
  --text: #3b3858;
  --muted: #6f6c8a;
  --bg: #f3f2f9;
  --surface: #ffffff;
  --surface-2: #f8f7fc;
  --field: #ffffff;
  --line: rgba(23, 18, 61, 0.09);
  --line-strong: rgba(23, 18, 61, 0.18);
  --brand: #0b7a72;        /* teal gelap: link, ikon, status aktif */
  --brand-soft: #e1f5f2;
  --accent: #e8891f;
  --accent-soft: #fff2dc;
  --btn-bg: var(--navy);
  --btn-bg-hover: var(--navy-2);
  --ok: #15803d;
  --ok-soft: #e3f5ea;
  --warn: #b45309;
  --warn-soft: #fdf0d9;
  --bad: #c0262d;
  --bad-soft: #fde9ea;
  --info-soft: #eceaf5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 18, 61, 0.04), 0 12px 32px -20px rgba(23, 18, 61, 0.35);
  --shadow-lg: 0 24px 60px -28px rgba(13, 10, 40, 0.65);
  --font-head: 'Epilogue', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f2ff;
    --text: #d3d0ea;
    --muted: #9b97bd;
    --bg: #0b0920;
    --surface: #151236;
    --surface-2: #1b1742;
    --field: #100d2c;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.17);
    --brand: #2dd4bf;
    --brand-soft: rgba(45, 212, 191, 0.13);
    --accent: #f5a524;
    --accent-soft: rgba(245, 165, 36, 0.13);
    --btn-bg: #2a2370;
    --btn-bg-hover: #352c88;
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.13);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.13);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.13);
    --info-soft: rgba(255, 255, 255, 0.07);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 14px 34px -22px rgba(0, 0, 0, 0.8);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0 0 8px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 30px; letter-spacing: -0.02em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.nowrap-row { flex-wrap: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.eyebrow { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.page-head .eyebrow { color: var(--brand); }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; color: #fff;
  background: linear-gradient(100deg, #100c2f 0%, #1c1652 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px -16px rgba(0, 0, 0, 0.6);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 12px;
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad-brand); opacity: 0.85; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; object-fit: contain; filter: drop-shadow(0 0 8px rgba(245, 165, 36, 0.25)); }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; line-height: 1.05; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10px; letter-spacing: 0.16em; opacity: 0.7; text-transform: uppercase; }
.topbar .spacer { flex: 1; }
.topnav { display: none; gap: 2px; }
.topnav a { color: rgba(255, 255, 255, 0.72); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 12px; text-decoration: none; border-radius: 999px; }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.topnav a.active { color: var(--on-cta); background: var(--grad-cta); }
.icon-btn { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; position: relative; border-radius: 12px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 2px #14103a; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--navy-2); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; overflow: hidden; }
.topbar .avatar { box-shadow: 0 0 0 2px rgba(245, 165, 36, 0.55); }
.avatar.lg { width: 84px; height: 84px; font-size: 30px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.light { background: var(--brand-soft); color: var(--brand); }

/* ---------- Bottom nav (mobile) ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line);
  display: flex; padding: 0 6px env(safe-area-inset-bottom); height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px -22px rgba(13, 10, 40, 0.5);
}
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; position: relative; }
.bottomnav a svg { width: 22px; height: 22px; padding: 0; transition: transform .15s; }
.bottomnav a.active { color: var(--ink); }
.bottomnav a.active svg { color: var(--brand); transform: translateY(-1px); }
.bottomnav a.active::before { content: ''; position: absolute; top: 0; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad-brand); }

/* ---------- Layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 20px 16px 32px; }
.page-head { margin: 4px 0 18px; }
.page-head h1 { margin-bottom: 4px; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.duty-chips .chip { white-space: normal; }
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .topnav { display: flex; }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.main-side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .container { padding: 32px 24px 48px; }
  h1 { font-size: 38px; }
}

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.pad-lg { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
.card.dark { background: var(--grad-hero); color: rgba(255, 255, 255, 0.84); border-color: rgba(255, 255, 255, 0.06); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.card.dark h1, .card.dark h2, .card.dark h3 { color: #fff; }
.card.dark .eyebrow { color: var(--gold-light); }
.card.dark .muted { color: rgba(255, 255, 255, 0.62); }
.card.dark a:not(.btn) { color: var(--teal-bright); }
.card.accent { background: linear-gradient(135deg, #0f766e 0%, #0b5f74 100%); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.card.accent h3 { color: #fff; }
.card.callout { border-left: 4px solid var(--brand); background: linear-gradient(90deg, var(--brand-soft), var(--surface) 70%); }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.card.dark .divider { background: rgba(255, 255, 255, 0.12); }

/* ---------- Hero next date ---------- */
.hero-date { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: #fff; line-height: 1.05; letter-spacing: -0.02em; margin: 6px 0 10px; }
@media (min-width: 760px) { .hero-date { font-size: 40px; } }
.meta-line { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.meta-line svg { width: 16px; height: 16px; flex: none; margin-top: 3px; opacity: 0.85; color: var(--teal-bright); }
.duty-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; white-space: nowrap; background: transparent; color: var(--text); }
.chip b { font-weight: 700; letter-spacing: 0.06em; font-size: 10.5px; text-transform: uppercase; opacity: 0.7; }
.card.dark .chip { border-color: rgba(255, 255, 255, 0.22); color: #fff; background: rgba(255, 255, 255, 0.04); }
.chip.me { background: var(--grad-cta); border-color: transparent; color: var(--on-cta); font-weight: 600; }
.card.dark .chip.me { background: var(--grad-cta); border-color: transparent; color: var(--on-cta); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--info-soft); color: var(--text); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.accent { background: var(--brand-soft); color: var(--brand); }
.badge.dark { background: var(--navy); color: #fff; }
.badge.gold { background: var(--grad-cta); color: var(--on-cta); }
.badge.light { background: #fff; color: #0b5f74; }
.card.dark .badge.ok { background: rgba(74, 222, 128, 0.16); color: #86efac; }
.card.dark .badge.bad { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }
.card.dark .badge.warn { background: rgba(251, 191, 36, 0.16); color: #fcd34d; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; cursor: pointer;
  border: 1px solid transparent; background: var(--btn-bg); color: #fff; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s, filter .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.sm svg { width: 14px; height: 14px; }
.badge svg { width: 12px; height: 12px; }
.list > li > svg, .small > svg, h3 > svg { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.avatar svg { width: 15px; height: 15px; }
.btn:hover { background: var(--btn-bg-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.outline:hover { background: var(--surface-2); border-color: var(--ink); }
.btn.accent { background: var(--grad-cta); color: var(--on-cta); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(238, 125, 59, 0.75); }
.btn.accent:hover { filter: brightness(1.05) saturate(1.05); box-shadow: 0 10px 24px -10px rgba(238, 125, 59, 0.9); }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: #ecebf5; }
.btn.ghost-light { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.card.dark .btn.outline { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.card.dark .btn.outline:hover { background: rgba(255, 255, 255, 0.1); }
.card.dark .btn:not(.accent):not(.outline):not(.light):not(.ok):not(.danger):not(.ghost-light) { background: rgba(255, 255, 255, 0.12); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.sm { min-height: 34px; padding: 6px 13px; font-size: 11px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.link { background: none; border: 0; color: var(--brand); padding: 0 4px; min-height: 0; letter-spacing: 0.04em; box-shadow: none; }
.btn.link:hover { background: none; text-decoration: underline; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }

/* ---------- Forms ---------- */
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.input, input:not([type]), input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=url], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); border-radius: var(--radius-sm); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; flex-wrap: nowrap; }
.seg button { border: 0; background: var(--surface); color: var(--text); padding: 6px 9px; font-size: 11.5px; font-weight: 600; cursor: pointer; border-right: 1px solid var(--line); white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--navy); color: #fff; }
.seg button.on.ok { background: var(--ok); color: #fff; }
.seg button.on.bad { background: var(--bad); color: #fff; }
.seg button.on.warn { background: var(--warn); color: #fff; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.stepper button { width: 36px; height: 36px; border: 0; background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.stepper span { min-width: 34px; text-align: center; font-weight: 700; }
.card.dark .stepper { border-color: rgba(255, 255, 255, 0.3); }
.card.dark .stepper button { background: transparent; color: #fff; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.list > li:last-child { border-bottom: 0; }
.list.compact > li { padding: 8px 0; }
.rem { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-left: 3px solid var(--line-strong); background: var(--surface-2); margin-bottom: 8px; color: inherit; text-decoration: none !important; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.rem:hover { filter: brightness(0.98); }
.rem.urgent { border-color: var(--bad); background: var(--bad-soft); }
.rem.warn { border-color: var(--gold); background: var(--warn-soft); }
.rem.info { border-color: var(--brand); background: var(--brand-soft); }
.rem .ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: var(--surface); border-radius: 50%; color: var(--brand); }
.rem .ico svg { width: 16px; height: 16px; }
.rem strong { color: var(--ink); display: block; font-size: 14px; }
.date-block { width: 54px; flex: none; text-align: center; border: 1px solid var(--line-strong); padding: 6px 0 5px; background: var(--surface); border-radius: 12px; }
.date-block .d { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.date-block .m { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.date-block.past { opacity: 0.55; }
.date-block.mine { border-color: transparent; background: var(--grad-cta); }
.date-block.mine .d, .date-block.mine .m { color: var(--on-cta); }

/* ---------- Stats ---------- */
.ring { width: 112px; height: 112px; flex: none; }
.ring text { font-family: var(--font-head); font-weight: 700; }
.stat { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.bar { height: 8px; background: var(--info-soft); position: relative; min-width: 60px; border-radius: 999px; overflow: hidden; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad-brand); border-radius: 999px; }
.bar.ok > i { background: var(--ok); } .bar.warn > i { background: var(--gold); } .bar.bad > i { background: var(--bad); }

/* ---------- DATE acronym (D · A · T · E) ---------- */
/* Jumlah kolom mengikuti lebar KARTU (bukan layar): di kolom samping desktop tetap 2x2. */
.about-card { container-type: inline-size; }
.acro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 14px; }
@container (max-width: 240px) { .acro { grid-template-columns: minmax(0, 1fr); } }
@container (min-width: 680px) { .acro { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.acro-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); min-width: 0; }
.acro-item b { font-family: var(--font-head); font-size: 34px; font-weight: 700; line-height: 1; flex: none; width: 30px; text-align: center; }
.acro-item.l0 b { color: #fcd27b; } .acro-item.l1 b { color: #f5a524; } .acro-item.l2 b { color: #5eead4; } .acro-item.l3 b { color: #2dd4bf; }
.acro-words { min-width: 0; display: grid; gap: 6px; }
.acro-words span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; overflow-wrap: break-word; }
.acro-words em { display: block; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, 0.62); overflow-wrap: break-word; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px; border-bottom: 1px solid var(--line-strong); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.dim td { opacity: 0.55; }
table.t td.cell { text-align: center; font-weight: 700; padding: 6px 4px; min-width: 30px; }
.c-H { color: var(--ok); } .c-T { color: var(--bad); } .c-C { color: var(--warn); } .c-N { color: var(--muted); opacity: .6; } .c-0 { color: var(--muted); opacity: .45; }
.sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 1; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tabs a, .tabs button { flex: 1 0 auto; padding: 9px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 0; background: none; border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none !important; text-align: center; transition: background .15s, color .15s; }
.tabs .on { color: #fff; background: var(--navy); }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.admin-nav a { flex: none; padding: 8px 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none !important; border-radius: 999px; }
.admin-nav a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) {
  .tabs .on, .admin-nav a.on, .seg button.on:not(.ok):not(.bad):not(.warn) { background: #f4f2ff; color: #14103a; border-color: #f4f2ff; }
}

/* ---------- Modal & toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(8, 6, 24, 0.6); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; animation: up .2s ease-out; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .modal-back { align-items: center; } .modal { padding: 26px; border-radius: 20px; } .modal.wide { max-width: 860px; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h2 { margin: 0; }
.nclose { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.nclose:hover { color: var(--ink); background: var(--surface-2); }
.modal-x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; font-size: 14px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); animation: up .2s; pointer-events: auto; width: 100%; border-radius: 12px; }
.toast.err { background: #b42318; }
.toast.ok { background: #15803d; }
@media (min-width: 760px) { #toast { bottom: 24px; } }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--navy-deep); }
.auth-hero { color: #fff; padding: calc(32px + env(safe-area-inset-top)) 24px 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 38vh;
  background: radial-gradient(120% 90% at 10% 0%, rgba(45, 212, 191, 0.16), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(245, 165, 36, 0.14), transparent 60%), #100c2f; }
.logo-full { width: min(220px, 62vw); height: auto; border-radius: 18px; box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7); }
.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; }
.auth-hero h1 { color: #fff; font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.auth-hero p { color: rgba(255, 255, 255, 0.7); max-width: 460px; }
.auth-card { background: var(--bg); padding: 28px 22px calc(28px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; margin-top: -18px; position: relative; }
.auth-card .inner { max-width: 400px; margin: 0 auto; }
@media (min-width: 860px) {
  .auth-wrap { grid-template-columns: 1.2fr 1fr; }
  .auth-hero { min-height: 100vh; padding: 64px; } .auth-hero h1 { font-size: 64px; }
  .logo-full { width: min(380px, 70%); border-radius: 26px; }
  .auth-card { display: flex; align-items: center; padding: 48px; border-radius: 0; margin-top: 0; }
  .auth-card .inner { width: 100%; }
}
body.auth { padding-bottom: 0; }

/* ---------- Pasang aplikasi ---------- */
.install-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none !important; }
.install-link:hover { border-color: var(--brand); }
.install-link svg { color: var(--brand); flex: none; }
.install-link b { display: block; font-size: 14px; }
.install-link small { display: block; color: var(--muted); font-size: 12px; }
.install-block { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px; margin-top: 14px; box-shadow: var(--shadow); }
.install-block h3 { display: flex; align-items: center; gap: 8px; }
.install-block h3 svg { color: var(--brand); }
.steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.step-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--grad-cta); color: var(--on-cta); font-weight: 700; font-size: 12px; display: grid; place-items: center; margin-top: 1px; }
.kbd { display: inline-flex; vertical-align: -4px; padding: 2px 4px; border-radius: 6px; border: 1px solid var(--line-strong); color: #0a84ff; background: var(--surface-2); }

/* ---------- Misc ---------- */
.slot-day { margin-bottom: 14px; }
.slot-day h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 9px 12px; cursor: pointer; font-weight: 600; font-size: 13.5px; border-radius: var(--radius-sm); }
.slot:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty svg { width: 32px; height: 32px; opacity: 0.4; margin: 0 auto 8px; }
.poll-opt { display: block; width: 100%; text-align: left; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: 10px 12px; margin-bottom: 6px; cursor: pointer; position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.poll-opt .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-soft); z-index: 0; }
.poll-opt span { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; }
.poll-opt.sel { border-color: var(--brand); }
.poll-opt.mine { border-color: var(--brand); font-weight: 700; }
.celebrate { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.celebrate:last-child { border-bottom: 0; }
.celebrate .when { width: 46px; flex: none; text-align: center; font-weight: 700; font-family: var(--font-head); color: var(--ink); line-height: 1; }
.celebrate .when small { display: block; font-family: var(--font-body); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 2px; }
.celebrate.today { background: var(--accent-soft); margin: 0 -8px; padding: 8px; border-radius: 12px; }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--brand-soft); border: 1px solid var(--line); border-left: 4px solid var(--brand); margin-bottom: 16px; border-radius: var(--radius); }
.banner svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.copybox { display: flex; gap: 6px; }
.copybox input { font-size: 12.5px; font-family: ui-monospace, Consolas, monospace; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--gold); border-right-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-box { background: rgba(255, 255, 255, 0.08); padding: 14px; margin-top: 12px; border-radius: 12px; }
.card:not(.dark) .result-box { background: var(--surface-2); }
.pre { white-space: pre-line; }
details > summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.todo-area { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.duty-grid select { min-width: 120px; min-height: 36px; padding: 5px 8px; font-size: 13px; }
.duty-grid td.changed select { border-color: var(--accent); background: var(--accent-soft); }
.photo-pick { position: relative; cursor: pointer; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-pick .cam { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; background: var(--grad-cta); color: var(--on-cta); border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--surface); }
.photo-pick .cam svg { width: 14px; height: 14px; }
