/* Layout: majalah-brutalis — bilah atas, judul besar + tumpukan kotak angka, blok bernomor (01 Ringkasan, 02 Kalender, 03 Daftar). */
:root {
  --cream: #f4ecdd;
  --paper: #fbf7ef;
  --ink: #15130f;
  --muted: #6d665b;
  --rule: #15130f;
  --accent: #ec5b2b;      /* oranye: kursor judul, hari ini */
  --peach: #f6c7b3;       /* kami berkunjung */
  --mint: #cbe6d2;        /* kunjungan tamu */
  --butter: #f6e09c;      /* tersedia */
  --lavender: #d8cdf4;
  --pink: #f4c6da;
  --sky: #c6e1f1;
  --danger: #c2361a;
  --ok: #1f7a4d;

  --f-display: "Abril Fatface", "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

  --bw: 2px;
  --gap: clamp(14px, 2.2vw, 24px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 15px/1.5 var(--f-body);
  color: var(--ink);
  background: var(--cream);
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: inherit; }

.frame {
  max-width: 1320px;
  margin: 0 auto;
  padding-block: clamp(10px, 2vw, 24px) 32px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid;
  gap: var(--gap);
}

/* ---------- Teks kecil ---------- */
.eyebrow, .mono-note, .label {
  font: 500 11px/1.3 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}
.eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; }
.eyebrow .dash { width: 28px; height: 2px; background: var(--ink); flex: none; }
.muted { color: var(--muted); }

/* ---------- Tombol & chip ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 6px 14px;
  border: var(--bw) solid var(--ink); background: var(--paper); border-radius: 0;
  font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s, box-shadow .1s, background .15s;
}
.btn:hover { background: #fff; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2b2722; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
.btn-ghost:hover { background: transparent; }
.btn-danger { color: var(--danger); border-color: var(--danger); box-shadow: 3px 3px 0 var(--danger); }
.btn-icon { width: 40px; padding: 0; font-size: 18px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px;
  border: var(--bw) solid var(--ink); background: var(--paper);
  font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}

/* ---------- Bilah atas ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  padding: 8px; border: var(--bw) solid var(--ink); background: var(--paper);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark {
  min-width: 44px; height: 40px; padding: 0 8px; display: grid; place-items: center; flex: none;
  background: var(--ink); color: var(--paper); font: 400 18px/1 var(--f-display); letter-spacing: .04em;
}
.brand-text { display: grid; line-height: 1.1; min-width: 0; }
.brand-text b { font: 700 14px/1.1 var(--f-body); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-text small { font: 500 9.5px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.tabs { display: flex; gap: 4px; }
.tab {
  padding: 9px 14px; font: 600 12px/1 var(--f-body); text-decoration: none; border: var(--bw) solid transparent;
}
.tab:hover { border-color: var(--ink); }
.tab.is-on { background: var(--ink); color: var(--paper); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auth { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; min-height: 36px;
  background: var(--lavender); border: var(--bw) solid var(--ink);
}
.user-chip .av { width: 26px; height: 26px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 12px/1 var(--f-mono); }
.user-chip b { font: 600 13px/1.1 var(--f-body); }
.user-chip small { font: 500 11px/1.1 var(--f-body); color: var(--muted); }

/* ---------- Pembuka ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  border: var(--bw) solid var(--ink); background: var(--paper);
}
.hero-main { padding: clamp(18px, 3vw, 40px); display: grid; gap: 18px; align-content: center; min-width: 0; }
.headline {
  margin: 0;
  font: 400 clamp(44px, 8.5vw, 120px)/.9 var(--f-display);
  text-transform: uppercase; letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.caret {
  display: inline-block; width: .42em; height: .78em; margin-left: .06em; vertical-align: -.02em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.lede { margin: 0; max-width: 52ch; font-size: 16px; color: var(--muted); }
.hero-stack { display: grid; border-left: var(--bw) solid var(--ink); }
.stat-box {
  display: grid; gap: 6px; align-content: center; text-align: left;
  padding: 16px 18px; border: 0; border-bottom: var(--bw) solid var(--ink); min-width: 0;
}
.stat-box:last-child { border-bottom: 0; }
button.stat-box { cursor: pointer; }
button.stat-box:hover .value { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.stat-box .label { color: var(--ink); }
.stat-box .value { font: 400 clamp(30px, 3.6vw, 42px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.stat-box .sub { font: 500 11px/1.35 var(--f-mono); color: var(--ink); opacity: .75; overflow-wrap: anywhere; }
.bg-peach { background: var(--peach); }
.bg-mint { background: var(--mint); }
.bg-butter { background: var(--butter); }
.bg-lavender { background: var(--lavender); }
.bg-pink { background: var(--pink); }
.bg-sky { background: var(--sky); }

/* ---------- Blok bernomor ---------- */
.block { display: grid; gap: 12px; min-width: 0; }
.block-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  border-top: var(--bw) solid var(--ink); padding-top: 12px;
}
.block-head h2 { margin: 0; font: 400 clamp(22px, 2.6vw, 30px)/1.1 var(--f-display); display: flex; align-items: baseline; gap: 12px; }
.idx { font: 600 13px/1 var(--f-mono); color: var(--accent); letter-spacing: .04em; }

/* Ringkasan */
.vitals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: var(--bw) solid var(--ink); }
.vital { padding: 14px; display: grid; gap: 14px; border-right: var(--bw) solid var(--ink); min-width: 0; }
.vital:last-child { border-right: 0; }
.vital-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.vital-ico { width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--f-mono); }
.vital .chip { min-height: 24px; padding: 3px 6px; font-size: 10px; background: var(--paper); }
.vital-num { font: 400 clamp(34px, 4vw, 52px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.vital-lbl { font: 600 12.5px/1.25 var(--f-body); }

/* Bilah staff/admin */
.staffbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 12px 14px; border: var(--bw) solid var(--ink); background: var(--lavender);
}
.staffbar .hint { margin: 0; flex: 1 1 280px; font-weight: 500; }
.staff-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; border: var(--bw) solid var(--ink); background: var(--paper); }
.seg-btn { border: 0; background: transparent; padding: 8px 12px; min-height: 36px; font: 600 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.seg-btn + .seg-btn { border-left: var(--bw) solid var(--ink); }
.seg-btn.is-on { background: var(--ink); color: var(--paper); }
.slot-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; width: 100%; padding-top: 10px; border-top: 1.5px dashed var(--ink); }
.slot-bar span { font: 600 12px/1 var(--f-mono); text-transform: uppercase; margin-right: auto; }

/* Saringan */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px;
  border: var(--bw) solid var(--ink); background: var(--paper); cursor: pointer;
  font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em;
}
.fchip.is-on { background: var(--ink); color: var(--paper); }
.sw { width: 12px; height: 12px; border: 1.5px solid currentColor; display: inline-block; }
.sw-keluar { background: var(--peach); }
.sw-masuk { background: var(--mint); }
.sw-open { background: var(--butter); border-style: dashed; }

/* ---------- Kalender ---------- */
.cal-card { border: var(--bw) solid var(--ink); background: var(--paper); min-width: 0; }
.month-nav { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: var(--bw) solid var(--ink); flex-wrap: wrap; }
.month-title { margin: 0 6px; font: 400 clamp(24px, 3vw, 34px)/1 var(--f-display); text-transform: uppercase; min-width: 8ch; }
#today { margin-left: auto; }
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: var(--bw) solid var(--ink); background: var(--ink); color: var(--paper); }
.cal-head span { padding: 8px; font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; }
.cal-head .wk { color: var(--butter); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day {
  position: relative; min-width: 0; min-height: 124px; padding: 8px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  display: flex; flex-direction: column; gap: 6px; background: var(--paper);
  transition: opacity .15s;
}
.day:nth-child(7n) { border-right: 0; }
.cal > .day:nth-last-child(-n+7) { border-bottom: 0; }
.day.out { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(21,19,15,.05) 6px 7px), var(--cream); }
.day.out > * { opacity: .4; }
.day .num { display: flex; justify-content: space-between; align-items: center; gap: 4px; font: 600 13px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.day .num b { min-width: 24px; padding: 4px 3px; text-align: center; }
.day .num .wkno { font: 500 9.5px/1 var(--f-mono); color: var(--muted); letter-spacing: .08em; }
.day.today .num b { background: var(--accent); color: #fff; }
.day.clickable { cursor: pointer; }
.day.clickable:hover { background: #fff; }
.day.dim > *:not(.num) { opacity: .15; }

.slot-open {
  flex: 1; display: grid; place-items: center; text-align: center; padding: 6px;
  border: 1.5px dashed var(--ink); background: var(--butter);
  font: 600 11px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em;
}
.slot-open .plus { display: block; font: 400 22px/1 var(--f-display); }
.day.clickable:hover .slot-open { border-style: solid; }

.ev {
  flex: 1; min-width: 0; display: grid; align-content: start; gap: 4px;
  padding: 7px 8px; border: 1.5px solid var(--ink); font-size: 13px; line-height: 1.2;
  box-shadow: 2px 2px 0 var(--ink);
}
.ev-keluar { background: var(--peach); }
.ev-masuk { background: var(--mint); }
.ev .t { font: 600 9.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.ev .c { font-weight: 700; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev .h { font: 500 11px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }

.cal.slot-mode .day:not(.out) { cursor: pointer; }
.cal.slot-mode .day.sel { background: var(--lavender); box-shadow: inset 0 0 0 3px var(--ink); }
.cal.slot-mode .day.sel .num b::after { content: " ✓"; }

/* Beberapa jadwal dalam satu tanggal */
.evs { flex: 1; display: grid; gap: 5px; align-content: start; min-width: 0; }
.evs .ev { flex: none; padding: 5px 7px; gap: 2px; box-shadow: 1.5px 1.5px 0 var(--ink); }
.evs .ev .c { -webkit-line-clamp: 2; font-size: 12.5px; }
.ev.off { opacity: .2; }
.ev-more { font: 600 10.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 0; }
.slot-add {
  display: block; padding: 4px 6px; text-align: center; border: 1.5px dashed var(--ink); background: var(--butter);
  font: 600 10.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em;
}
.day.clickable:hover .slot-add { border-style: solid; }
.dots { display: none; }
.dot { width: 9px; height: 9px; border: 1.5px solid var(--ink); display: inline-block; }
.dot-keluar { background: var(--peach); }
.dot-masuk { background: var(--mint); }
.dot.off { opacity: .2; }

.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.day-ev {
  width: 100%; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 0;
  padding: 0; text-align: left; cursor: pointer; background: #fff; border: var(--bw) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.day-ev:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.day-time { align-self: stretch; display: grid; place-items: center; border-right: var(--bw) solid var(--ink); font: 600 13px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.day-ev.t-masuk .day-time { background: var(--mint); }
.day-ev.t-keluar .day-time { background: var(--peach); }
.day-body { display: grid; gap: 4px; padding: 9px 10px; min-width: 0; }
.day-body b { font: 700 14px/1.25 var(--f-body); overflow-wrap: anywhere; }
.day-body small { font: 500 11px/1.3 var(--f-mono); color: var(--muted); }
.day-go { padding: 0 12px; font: 600 16px/1 var(--f-mono); }

/* ---------- Daftar ---------- */
.sched-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.sched-item {
  width: 100%; height: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr); text-align: left;
  border: var(--bw) solid var(--ink); background: var(--paper); cursor: pointer; padding: 0;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.sched-item:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.sched-date { display: grid; align-content: center; justify-items: center; gap: 2px; border-right: var(--bw) solid var(--ink); padding: 10px 4px; }
.sched-item.t-keluar .sched-date { background: var(--peach); }
.sched-item.t-masuk .sched-date { background: var(--mint); }
.sched-item.t-open .sched-date { background: var(--butter); }
.sched-date b { font: 400 30px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.sched-date small { font: 600 10px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; }
.sched-body { min-width: 0; display: grid; gap: 4px; align-content: start; padding: 10px 12px; }
.sched-body .c { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.sched-body .meta { font: 500 11.5px/1.35 var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.tag { justify-self: start; font: 600 10px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 6px; border: 1.5px solid var(--ink); }
.tag-keluar { background: var(--peach); }
.tag-masuk { background: var(--mint); }
.tag-open { background: var(--butter); border-style: dashed; }
.empty { grid-column: 1 / -1; padding: 22px; border: var(--bw) dashed var(--ink); background: var(--paper); font-weight: 500; }

.foot { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-top: 12px; border-top: var(--bw) solid var(--ink); font-size: 13px; }

/* ---------- Dialog ---------- */
.dlg {
  width: min(580px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: 0; border: var(--bw) solid var(--ink); color: var(--ink); background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}
.dlg::backdrop { background: rgba(21, 19, 15, .55); }
.dlg-inner { display: grid; gap: 16px; padding: 20px; margin: 0; }
.dlg-head { display: grid; gap: 8px; padding-right: 48px; position: relative; padding-bottom: 14px; border-bottom: var(--bw) solid var(--ink); }
.dlg-head h3 { margin: 0; font: 400 28px/1.05 var(--f-display); text-wrap: balance; overflow-wrap: anywhere; }
.dlg-x { position: absolute; top: -4px; right: 0; }
.dlg-body { display: grid; gap: 12px; min-width: 0; }
.dlg-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.dlg-foot .left { margin-right: auto; }

.detail { margin: 0; display: grid; border: var(--bw) solid var(--ink); }
.detail div { display: grid; grid-template-columns: 130px minmax(0, 1fr); border-bottom: 1.5px solid var(--ink); }
.detail div:last-child { border-bottom: 0; }
.detail dt { padding: 9px 10px; font: 600 10.5px/1.5 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; background: var(--cream); border-right: 1.5px solid var(--ink); }
.detail dd { margin: 0; padding: 9px 10px; overflow-wrap: anywhere; white-space: pre-line; }
.byline { font: 500 11px/1.4 var(--f-mono); color: var(--muted); margin: 0; }
.note { margin: 0; padding: 10px 12px; background: var(--butter); border: 1.5px dashed var(--ink); font-weight: 500; }

/* Detail visit */
.map-link { display: inline-block; font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; padding: 7px 10px; background: var(--ink); color: var(--paper); text-decoration: none; margin-bottom: 6px; }
.map-link:hover { background: var(--accent); }
.url { display: block; font: 400 11.5px/1.35 var(--f-mono); color: var(--muted); word-break: break-all; }
.handle { font: 600 13px/1.3 var(--f-mono); }

/* ---------- Formulir ---------- */
.form { display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font: 600 10.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 42px; padding: 9px 11px;
  border: var(--bw) solid var(--ink); border-radius: 0; background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--accent); }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.type-opt label { display: grid; gap: 4px; height: 100%; padding: 12px; border: var(--bw) solid var(--ink); background: #fff; }
.type-opt label b { font: 700 14px/1.2 var(--f-body); }
.type-opt label small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.type-opt input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.type-opt input:checked + label { box-shadow: 4px 4px 0 var(--ink); }
.type-opt.keluar input:checked + label { background: var(--peach); }
.type-opt.masuk input:checked + label { background: var(--mint); }

.pj-box { display: grid; gap: 2px; padding: 10px 12px; border: var(--bw) solid var(--ink); background: var(--lavender); }
.pj-box span { font: 600 10.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; }
.pj-box b { font: 700 16px/1.25 var(--f-body); }
.pj-box small { font-size: 12px; color: var(--muted); }

.notice { margin: 0; padding: 10px 12px; border: var(--bw) solid; font-size: 14px; font-weight: 500; }
.notice-error { border-color: var(--danger); color: var(--danger); background: #fde9e3; }
.notice-ok { border-color: var(--ok); color: var(--ok); background: #e3f3e9; }

.users { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.users li { display: flex; align-items: center; gap: 10px; padding: 10px; border: var(--bw) solid var(--ink); flex-wrap: wrap; background: #fff; }
.users li .u { margin-right: auto; min-width: 0; display: grid; }
.users li .u small { font: 500 11px/1.3 var(--f-mono); color: var(--muted); }
.section-title { margin: 0; font: 400 20px/1.1 var(--f-display); }
.divider { border: 0; border-top: var(--bw) solid var(--ink); margin: 4px 0; width: 100%; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 50;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 32px);
  padding: 11px 16px; background: var(--ink); color: var(--paper);
  font: 600 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 4px 4px 0 var(--accent);
}

/* ---------- Pemasangan ---------- */
.page-install .install { max-width: 540px; margin: 6vh auto 0; border: var(--bw) solid var(--ink); padding: 24px; background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.install-head { display: grid; gap: 10px; }
.install-head .display { margin: 0; font: 400 clamp(34px, 6vw, 52px)/.95 var(--f-display); text-transform: uppercase; }

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .vitals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vital { border-bottom: var(--bw) solid var(--ink); }
  .vital:nth-child(3n) { border-right: 0; }
  .vital:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stack { border-left: 0; border-top: var(--bw) solid var(--ink); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-box { border-bottom: 0; border-right: var(--bw) solid var(--ink); }
  .stat-box:last-child { border-right: 0; }
  .tabs { order: 3; width: 100%; }
  .tab { flex: 1; text-align: center; }
}
@media (max-width: 640px) {
  .hero-stack { grid-template-columns: 1fr; }
  .stat-box { border-right: 0; border-bottom: var(--bw) solid var(--ink); }
  .stat-box:last-child { border-bottom: 0; }
  .chip-period { display: none; }
  .user-chip .who-txt { display: none; }
  .vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vital, .vital:nth-child(3n) { border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
  .vital:nth-child(2n) { border-right: 0; }
  .vital:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
  .vital:nth-last-child(2) { border-bottom: var(--bw) solid var(--ink); }
  .month-nav { gap: 8px; }
  .month-title { flex: 1; text-align: center; margin: 0; font-size: 22px; min-width: 0; }
  #today { margin-left: 0; flex-basis: 100%; }
  .cal-head span { padding: 7px 0; text-align: center; font-size: 10px; letter-spacing: .04em; }
  .day { min-height: 62px; padding: 4px 3px; gap: 4px; align-items: center; }
  .day .num { justify-content: center; font-size: 12px; }
  .day .num .wkno { display: none; }
  .evs { display: none; }
  .dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 40px; }
  .ev { padding: 0; border: 0; box-shadow: none; background: none; flex: none; }
  .ev .c, .ev .h { display: none; }
  .ev .t { font-size: 0; width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--ink); }
  .ev .t::before { font: 700 13px/1 var(--f-mono); }
  .ev-keluar .t { background: var(--peach); }
  .ev-keluar .t::before { content: "↗"; }
  .ev-masuk .t { background: var(--mint); }
  .ev-masuk .t::before { content: "↙"; }
  .slot-open { flex: none; width: 24px; height: 24px; padding: 0; font-size: 0; }
  .slot-open .plus { font-size: 16px; }
  .row2, .types { grid-template-columns: 1fr; }
  .detail div { grid-template-columns: 1fr; }
  .detail dt { border-right: 0; border-bottom: 1.5px solid var(--ink); padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
