/* ==========================================================================
   AZFIZAYN - Agenda pribadi
   Sistem desain v0.2 (17 Oktober 2026), diperluas v0.7 (20 Oktober 2026)

   Aturan keamanan (CSP):
   - Semua gaya ada di file ini. Tidak ada style="..." atau <style> di HTML.
   - Nilai dinamis (lebar bar, posisi blok jam) diisi JavaScript lewat
     custom property: el.style.setProperty('--p', '40%').

   Konsep: "papan operasi pribadi" - kalender matriks meniru laporan
   utilisasi harian. Setiap bidang hidup = satu baris status.
   ========================================================================== */

/* ---------- Font (self-host, lisensi OFL - assets/fonts/OFL-Barlow.txt) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }

/* ---------- Token: tema terang ---------- */
:root {
  color-scheme: light;
  --page: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --surface-3: #e6ebf0;
  --line: #dde3e9;
  --line-2: #c6cfd8;
  --ink: #15202b;
  --ink-2: #4b5866;
  --ink-3: #5c6876;
  --accent: #eda100;             /* kuning alat berat: hari ini, merek, menu aktif */
  --accent-wash: rgba(237, 161, 0, 0.13);
  --accent-ink: #15202b;
  --focus: #15202b;
  --backdrop: rgba(15, 21, 28, 0.42);
  --shadow-overlay: 0 28px 64px -24px rgba(15, 23, 32, 0.38), 0 2px 8px rgba(15, 23, 32, 0.08);
  --shadow-pop: 0 12px 32px -12px rgba(15, 23, 32, 0.3), 0 1px 3px rgba(15, 23, 32, 0.1);

  /* Warna modul (palet tervalidasi: CVD aman, urutan baris berdekatan) */
  --m-agenda: #2a78d6;
  --m-latihan: #eb6834;
  --m-project: #1baf7a;
  --m-fokus: #6250d6;
  --m-santai: #c2368c;           /* v0.7: santai & game (merah muda, aman CVD terhadap 4 warna lain) */

  /* Tingkat intensitas sel (OKLCH, teks >= 4.5:1) */
  --cell-ink-dark: #15202b;
  --cell-ink-light: #ffffff;
  --agenda-1: #e5f0fe; --agenda-2: #b9d7fe; --agenda-3: #67a7f9; --agenda-4: #0961bd;
  --latihan-1: #fee9e2; --latihan-2: #fec5b1; --latihan-3: #f18157; --latihan-4: #a83a00;
  --project-1: #dbf6e7; --project-2: #a8e4c5; --project-3: #53bc8e; --project-4: #027650;
  --fokus-1: #ecedfe; --fokus-2: #cecfff; --fokus-3: #9996fe; --fokus-4: #5b47cd;
  --santai-1: #fce8f2; --santai-2: #f8c2dd; --santai-3: #e87ab6; --santai-4: #a62676;
  --ink-l1: var(--cell-ink-dark); --ink-l2: var(--cell-ink-dark); --ink-l3: var(--cell-ink-dark); --ink-l4: var(--cell-ink-light);

  /* Warna identitas project (penanda kecil saja) */
  --pc-0: #2a78d6; --pc-1: #eb6834; --pc-2: #1baf7a; --pc-3: #eda100;
  --pc-4: #e87ba4; --pc-5: #008300; --pc-6: #6250d6; --pc-7: #e34948;

  /* Status (selalu dengan ikon + label) */
  --good: #0ca30c; --good-ink: #006300;
  --warn: #fab219; --warn-ink: #7a4f00;
  --crit: #d03b3b; --crit-ink: #b42c2c;
  --warn-wash: #fff4dc; --crit-wash: #fdeaea; --good-wash: #e7f6e7;

  --font: "Barlow", "Bahnschrift", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Barlow Semi Condensed", "Bahnschrift SemiCondensed", "Barlow", system-ui, sans-serif;

  --rail-w: 15.5rem;
  --radius-s: 4px;
  --radius: 7px;
  --radius-l: 12px;
}

/* ---------- Token: tema gelap (ikut sistem, kecuali dipaksa terang) ---------- */
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0f151c; --surface: #18212b; --surface-2: #1d2733; --surface-3: #263241;
    --line: #2a3644; --line-2: #3a4858;
    --ink: #e9eef3; --ink-2: #b3bfcb; --ink-3: #8f9cab;
    --accent-wash: rgba(237, 161, 0, 0.15); --focus: #e9eef3;
    --backdrop: rgba(4, 8, 12, 0.6);
    --shadow-overlay: 0 28px 64px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-pop: 0 12px 32px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --m-agenda: #3987e5; --m-latihan: #d95926; --m-project: #199e70; --m-fokus: #9085e9; --m-santai: #d3569f;
    --cell-ink-dark: #0e151c; --cell-ink-light: #e9eef3;
    --agenda-1: #28394f; --agenda-2: #305481; --agenda-3: #3e87e0; --agenda-4: #85baff;
    --latihan-1: #4c3026; --latihan-2: #79412d; --latihan-3: #d55c2d; --latihan-4: #fd9976;
    --project-1: #203f31; --project-2: #176145; --project-3: #279d71; --project-4: #7bcba6;
    --fokus-1: #36344e; --fokus-2: #504a7f; --fokus-3: #8177d4; --fokus-4: #b2adfa;
    --santai-1: #4a2e3c; --santai-2: #763c5c; --santai-3: #c85898; --santai-4: #f196c6;
    --ink-l1: var(--cell-ink-light); --ink-l2: var(--cell-ink-light); --ink-l3: var(--cell-ink-dark); --ink-l4: var(--cell-ink-dark);
    --pc-0: #3987e5; --pc-1: #d95926; --pc-2: #199e70; --pc-3: #c98500;
    --pc-4: #d55181; --pc-5: #008300; --pc-6: #9085e9; --pc-7: #e66767;
    --good-ink: #3ccf3c; --warn-ink: #fab219; --crit-ink: #f07b7b;
    --warn-wash: #3a2f14; --crit-wash: #3d2020; --good-wash: #16331d;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f151c; --surface: #18212b; --surface-2: #1d2733; --surface-3: #263241;
  --line: #2a3644; --line-2: #3a4858;
  --ink: #e9eef3; --ink-2: #b3bfcb; --ink-3: #8f9cab;
  --accent-wash: rgba(237, 161, 0, 0.15); --focus: #e9eef3;
  --backdrop: rgba(4, 8, 12, 0.6);
  --shadow-overlay: 0 28px 64px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-pop: 0 12px 32px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --m-agenda: #3987e5; --m-latihan: #d95926; --m-project: #199e70; --m-fokus: #9085e9; --m-santai: #d3569f;
  --cell-ink-dark: #0e151c; --cell-ink-light: #e9eef3;
  --agenda-1: #28394f; --agenda-2: #305481; --agenda-3: #3e87e0; --agenda-4: #85baff;
  --latihan-1: #4c3026; --latihan-2: #79412d; --latihan-3: #d55c2d; --latihan-4: #fd9976;
  --project-1: #203f31; --project-2: #176145; --project-3: #279d71; --project-4: #7bcba6;
  --fokus-1: #36344e; --fokus-2: #504a7f; --fokus-3: #8177d4; --fokus-4: #b2adfa;
  --santai-1: #4a2e3c; --santai-2: #763c5c; --santai-3: #c85898; --santai-4: #f196c6;
  --ink-l1: var(--cell-ink-light); --ink-l2: var(--cell-ink-light); --ink-l3: var(--cell-ink-dark); --ink-l4: var(--cell-ink-dark);
  --pc-0: #3987e5; --pc-1: #d95926; --pc-2: #199e70; --pc-3: #c98500;
  --pc-4: #d55181; --pc-5: #008300; --pc-6: #9085e9; --pc-7: #e66767;
  --good-ink: #3ccf3c; --warn-ink: #fab219; --crit-ink: #f07b7b;
  --warn-wash: #3a2f14; --crit-wash: #3d2020; --good-wash: #16331d;
}

/* Kelas modul: setiap elemen bertanda modul memakai ramp-nya sendiri */
.mod-agenda  { --c: var(--m-agenda);  --c1: var(--agenda-1);  --c2: var(--agenda-2);  --c3: var(--agenda-3);  --c4: var(--agenda-4); }
.mod-latihan { --c: var(--m-latihan); --c1: var(--latihan-1); --c2: var(--latihan-2); --c3: var(--latihan-3); --c4: var(--latihan-4); }
.mod-project { --c: var(--m-project); --c1: var(--project-1); --c2: var(--project-2); --c3: var(--project-3); --c4: var(--project-4); }
.mod-fokus   { --c: var(--m-fokus);   --c1: var(--fokus-1);   --c2: var(--fokus-2);   --c3: var(--fokus-3);   --c4: var(--fokus-4); }
.mod-santai  { --c: var(--m-santai);  --c1: var(--santai-1);  --c2: var(--santai-2);  --c3: var(--santai-3);  --c4: var(--santai-4); }
.mod-catatan { --c: var(--ink-3);     --c1: var(--surface-3); --c2: var(--line-2);    --c3: var(--ink-3);     --c4: var(--ink-2); }
.mod-libur   { --c: var(--crit); }
.pc-0 { --pc: var(--pc-0); } .pc-1 { --pc: var(--pc-1); } .pc-2 { --pc: var(--pc-2); } .pc-3 { --pc: var(--pc-3); }
.pc-4 { --pc: var(--pc-4); } .pc-5 { --pc: var(--pc-5); } .pc-6 { --pc: var(--pc-6); } .pc-7 { --pc: var(--pc-7); }

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: clamp(14px, calc(8px + 0.36vw), 17px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.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; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.ico { width: 1.25rem; height: 1.25rem; flex: none; }
.noscript { padding: 2rem; font-size: 1.1rem; }

/* ---------- Kerangka ---------- */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0.9rem 1.25rem;
  border-right: 1px solid var(--line);
  background: var(--page);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 0.75rem; padding: 0 0.5rem; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 1.25rem/1 var(--font-cond);
}
.brand-name { display: block; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand-sub { display: block; font-size: 0.82rem; color: var(--ink-3); }

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 2.25rem; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); }
.nav-link[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px var(--line);
}
.nav-badge {
  margin-left: auto;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font: 600 0.75rem/1.5 var(--font-cond);
}
.nav-link .nav-badge.live { background: var(--m-fokus); color: #fff; font-variant-numeric: tabular-nums; }
.nav-sep { height: 1px; margin: 0.9rem 0.75rem; background: var(--line); }

.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.5rem; }
.rail-store { padding: 0 0.75rem; font-size: 0.8rem; color: var(--ink-3); line-height: 1.4; }
.rail-store strong { display: block; color: var(--ink-2); font-weight: 600; }
.rail-tools { display: flex; gap: 0.5rem; padding: 0 0.5rem; }

.main { min-width: 0; padding: 0 2.5rem 4rem; outline: none; }
.page { max-width: 150rem; margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1.4rem 0 1.1rem;
  background: var(--page);
}
.topbar-title { display: flex; align-items: baseline; gap: 1rem; min-width: 0; margin-right: auto; }
.topbar-title h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.topbar-sub { color: var(--ink-2); font-size: 1rem; white-space: nowrap; }
.topbar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.crumb { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.crumb:hover { color: var(--ink); }

.section { margin-top: 2.25rem; }
.gap-s { margin-top: 0.9rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.section-title { font-size: 1.15rem; font-weight: 600; }
.section-sub { color: var(--ink-3); font-size: 0.9rem; }

/* ---------- Tombol & kontrol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.45rem;
  padding: 0 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn-danger { background: var(--crit); border-color: var(--crit); color: #fff; }
.btn-danger:hover { background: var(--crit-ink); border-color: var(--crit-ink); }
.btn-danger-ghost { background: transparent; border-color: transparent; color: var(--crit-ink); }
.btn-danger-ghost:hover { background: var(--crit-wash); border-color: transparent; }
.btn-sm { height: 2rem; padding: 0 0.7rem; font-size: 0.875rem; }
.btn .ico { width: 1.1rem; height: 1.1rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.ghost:hover { background: var(--surface-3); }
.icon-btn.sm { width: 2rem; height: 2rem; }
.icon-btn.sm .ico { width: 1.05rem; height: 1.05rem; }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--surface-3); }
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.05rem;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.92rem;
}
.seg button:hover { color: var(--ink); }
.seg .ico { width: 1.05rem; height: 1.05rem; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 32, 0.14); }

.navgroup { display: inline-flex; align-items: center; gap: 0.35rem; }
.navgroup .label { min-width: 11rem; text-align: center; font-weight: 600; font-size: 1.05rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  height: 2rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 500;
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 1.55rem;
  padding: 0 0.55rem;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--ink-2);
  font: 600 0.78rem/1 var(--font-cond);
  white-space: nowrap;
}
.tag .ico { width: 0.9rem; height: 0.9rem; }
.tag-good { background: var(--good-wash); color: var(--good-ink); }
.tag-warn { background: var(--warn-wash); color: var(--warn-ink); }
.tag-crit { background: var(--crit-wash); color: var(--crit-ink); }

.swatch { display: inline-block; width: 0.7rem; height: 0.7rem; flex: none; border-radius: 3px; background: var(--c, var(--pc, var(--ink-3))); }
.swatch.round { border-radius: 50%; }
.pdot { display: inline-block; width: 0.6rem; height: 0.6rem; flex: none; border-radius: 50%; background: var(--pc); }

/* ---------- Lembar & panel ---------- */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.panels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.panels.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panels.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { min-width: 0; }
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-2);
}
.panel-title { font-size: 1.05rem; font-weight: 600; }
.panel-link { color: var(--ink-2); font-size: 0.88rem; font-weight: 500; text-decoration: none; background: none; border: 0; padding: 0; }
.panel-link:hover { color: var(--ink); text-decoration: underline; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--line);
}
.stat { min-width: 0; padding: 1rem 1.25rem 1.05rem; background: var(--surface); }
.stat-label { color: var(--ink-2); font-size: 0.88rem; font-weight: 500; }
.stat-value { margin-top: 0.3rem; font-size: 1.9rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.stat-value small { margin-left: 0.25rem; color: var(--ink-3); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; }
.stat-sub { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.35rem; color: var(--ink-3); font-size: 0.84rem; }
.stat .meter { margin-top: 0.6rem; }
.stat-value .stat-text { display: block; font-size: 1.35rem; line-height: 1.25; }

.meter { position: relative; height: 8px; overflow: hidden; border-radius: 4px; background: var(--c1, var(--surface-3)); }
.meter > span { display: block; width: var(--p, 0%); max-width: 100%; height: 100%; border-radius: 4px; background: var(--c, var(--ink)); }
.meter.thin { height: 5px; }
.meter .mark { position: absolute; top: -2px; bottom: -2px; left: var(--m, 0%); width: 2px; background: var(--ink-2); border-radius: 1px; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 0.93rem;
}


/* ---------- MATRIKS AGENDA (bintang utama) ---------- */
.board-sheet { overflow: hidden; }
.board-scroll { overflow-x: auto; }
.board {
  width: 100%;
  min-width: 70rem;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--font-cond);
}
.board col.c-label { width: 17rem; }
.board col.c-total { width: 6.75rem; }
.board th, .board td { padding: 0; }
.board thead th {
  height: 3.6rem;
  border-bottom: 1px solid var(--line-2);
  font-weight: 600;
  vertical-align: middle;
}
.b-corner {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 0 1.1rem !important;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 0.9rem;
  text-align: left;
}
.b-totalh {
  padding: 0 0.9rem !important;
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 0.9rem;
  text-align: right;
  border-right: 1px solid var(--line);
}
.b-day { text-align: center; }
.b-day button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(100% - 4px);
  height: calc(100% - 6px);
  margin: 3px 2px;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-cond);
  line-height: 1.15;
}
.b-day button:hover { background: var(--surface-3); }
.b-dn { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.b-dw { margin-top: 1px; color: var(--ink-3); font-size: 0.75rem; font-weight: 500; }
.b-day.weekend button { background: var(--surface-2); }
.b-day.sunday .b-dw { color: var(--ink); font-weight: 600; }
.b-day.today button { background: var(--accent); color: var(--accent-ink); }
.b-day.today .b-dw { color: var(--accent-ink); font-weight: 600; }
.b-day.hl button { box-shadow: inset 0 0 0 2px var(--ink-3); }

.b-row > th, .b-row > td { border-bottom: 1px solid var(--line); }
.b-row:last-child > th, .b-row:last-child > td { border-bottom: 0; }
.b-label {
  position: sticky;
  left: 0;
  z-index: 1;
  height: 2.85rem;
  background: var(--surface);
  text-align: left;
  font-family: var(--font);
  font-weight: 500;
}
.b-label-inner { display: flex; align-items: center; gap: 0.55rem; height: 100%; padding: 0 0.75rem 0 0.5rem; }
.b-toggle {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-3);
}
.b-toggle:hover { background: var(--surface-3); color: var(--ink); }
.b-toggle .ico { width: 1rem; height: 1rem; transition: transform 0.15s ease; }
.b-toggle[aria-expanded="false"] .ico { transform: rotate(-90deg); }
.b-toggle-spacer { width: 1.6rem; flex: none; }
.b-label .swatch { width: 0.8rem; height: 0.8rem; background: var(--c); }
.b-name { min-width: 0; overflow: hidden; color: var(--ink); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
a.b-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.b-row.hl > .b-label { background: var(--surface-2); }

.b-child .b-label { font-weight: 400; }
.b-child .b-label-inner { padding-left: 2.6rem; }
.b-child .b-name { color: var(--ink-2); }
.b-child .pdot { width: 0.55rem; height: 0.55rem; }
.b-child > th, .b-child > td { border-bottom-color: var(--surface-3); }
.b-child.last > th, .b-child.last > td { border-bottom-color: var(--line); }
.skip { position: absolute; left: -9999px; top: 0.75rem; z-index: 2000; padding: 0.6rem 1rem; border-radius: var(--radius); background: var(--ink); color: var(--surface); font-weight: 600; text-decoration: none; }
.skip:focus { left: 0.75rem; }

.b-total {
  padding: 0 0.9rem !important;
  border-right: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.b-total-v { font-size: 1.02rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.b-total-u { margin-left: 0.15rem; color: var(--ink-3); font-size: 0.82rem; font-weight: 500; }
.b-total .meter { margin-top: 0.3rem; height: 4px; }
.b-total-t { display: block; margin-top: 0.15rem; color: var(--ink-3); font-size: 0.72rem; font-weight: 500; }
.b-child .b-total-v { font-weight: 500; color: var(--ink-2); }

.b-cell { height: 2.85rem; }
.b-cell.today { background: var(--accent-wash); }
.b-cell.offday { background: var(--surface-2); }
.b-v {
  display: grid;
  place-items: center;
  width: calc(100% - 4px);
  height: calc(100% - 6px);
  margin: 3px 2px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.b-v:hover { box-shadow: inset 0 0 0 2px var(--ink-3); }
.b-v.l1 { background: var(--c1); color: var(--ink-l1); }
.b-v.l2 { background: var(--c2); color: var(--ink-l2); }
.b-v.l3 { background: var(--c3); color: var(--ink-l3); }
.b-v.l4 { background: var(--c4); color: var(--ink-l4); }
.b-v.planned {
  background: transparent;
  color: var(--ink-2);
  font-weight: 500;
  box-shadow: inset 0 0 0 1.5px var(--c);
  background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--c1) 5px 7px);
}
.b-v.planned:hover { box-shadow: inset 0 0 0 2px var(--ink-2); }
.b-v.off {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, var(--line-2) 4px 5.5px);
}
.b-child .b-v { font-weight: 500; }

.board-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.85rem;
}
.lg { display: inline-flex; align-items: center; gap: 0.5rem; }
.lg-ramp { display: inline-flex; gap: 2px; }
.lg-ramp i { display: block; width: 1.1rem; height: 0.9rem; border-radius: 3px; }
.lg-ramp i:nth-child(1) { background: var(--c1); }
.lg-ramp i:nth-child(2) { background: var(--c2); }
.lg-ramp i:nth-child(3) { background: var(--c3); }
.lg-ramp i:nth-child(4) { background: var(--c4); }
.lg-box { display: inline-block; width: 1.6rem; height: 0.95rem; border-radius: 3px; }
.lg-box.planned { box-shadow: inset 0 0 0 1.5px var(--ink-3); background-image: repeating-linear-gradient(135deg, transparent 0 4px, var(--surface-3) 4px 6px); }
.lg-box.off { background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, var(--line-2) 3px 4.5px); }
.lg-box.today { background: var(--accent); }
.board-foot .spacer { flex: 1; }

/* ---------- TAMPILAN MINGGU (grid jam) ---------- */
.week-sheet { overflow: hidden; }
.week-scroll { overflow-x: auto; }
.week { min-width: 62rem; --hour-h: 3rem; }
.wk-head, .wk-allday, .wk-body { display: grid; grid-template-columns: 4.5rem repeat(7, minmax(0, 1fr)); }
.wk-head { border-bottom: 1px solid var(--line-2); }
.wk-corner { border-right: 1px solid var(--line); }
.wk-dayh {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-family: var(--font-cond);
}
.wk-dayh:hover { background: var(--surface-2); }
.wk-dayh .dn { font-size: 1.5rem; font-weight: 600; line-height: 1; }
.wk-dayh .dw { color: var(--ink-2); font-size: 0.95rem; font-weight: 500; }
.wk-dayh .tag { margin-left: auto; }
.wk-dayh.today { background: var(--accent-wash); box-shadow: inset 0 3px 0 var(--accent); }
.wk-dayh.weekend .dw { color: var(--ink); }
.wk-allday { min-height: 2.6rem; border-bottom: 1px solid var(--line-2); }
.wk-allday-label { display: flex; align-items: center; justify-content: flex-end; padding: 0 0.6rem; color: var(--ink-3); font-size: 0.75rem; text-align: right; border-right: 1px solid var(--line); }
.wk-allday-cell { display: flex; flex-direction: column; gap: 3px; padding: 4px; border-left: 1px solid var(--line); min-width: 0; }
.wk-allday-cell.today { background: var(--accent-wash); }
.wk-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.15rem 0.45rem;
  border: 0;
  border-radius: 4px;
  background: var(--c1);
  color: var(--ink);
  font: 500 0.8rem/1.35 var(--font-cond);
  text-align: left;
}
.wk-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-chip.off { background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, var(--line-2) 4px 5.5px); color: var(--ink-2); }
.wk-chip:hover { box-shadow: inset 0 0 0 1.5px var(--c, var(--ink-3)); }
.wk-body { position: relative; }
.wk-times { position: relative; border-right: 1px solid var(--line); }
.wk-time {
  position: absolute;
  right: 0.6rem;
  top: calc(var(--i) * var(--hour-h) - 0.55rem);
  color: var(--ink-3);
  font: 500 0.75rem/1 var(--font-cond);
  font-variant-numeric: tabular-nums;
}
.wk-col {
  position: relative;
  height: calc(var(--hours) * var(--hour-h));
  border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hour-h));
  cursor: copy;
}
.wk-col.weekend { background-color: var(--surface-2); }
.wk-col.today { background-color: var(--accent-wash); }
.wk-block {
  position: absolute;
  top: var(--t);
  left: calc(var(--l) + 2px);
  width: calc(var(--w) - 4px);
  height: max(var(--h), 1.4rem);
  overflow: hidden;
  padding: 0.25rem 0.45rem;
  border: 0;
  border-left: 3px solid var(--c);
  border-radius: 4px;
  background: var(--c1);
  color: var(--ink);
  font-family: var(--font-cond);
  text-align: left;
  cursor: pointer;
}
.wk-block:hover { box-shadow: var(--shadow-pop); z-index: 3; }
.wk-block .t { display: block; font-size: 0.82rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-block .m { display: block; color: var(--ink-2); font-size: 0.74rem; line-height: 1.25; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-block.planned { background: var(--surface); background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--c1) 5px 7px); box-shadow: inset 0 0 0 1px var(--c); }
.wk-block.done-skip { opacity: 0.55; text-decoration: line-through; }
.wk-now { position: absolute; left: 0; right: 0; top: var(--t); height: 2px; background: var(--crit); z-index: 4; pointer-events: none; }
.wk-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); }

/* ---------- Tooltip, toast, menu ---------- */
.tip {
  position: fixed;
  z-index: 1000;
  left: var(--x, 0);
  top: var(--y, 0);
  max-width: 22rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-pop);
  font-size: 0.85rem;
  line-height: 1.4;
  pointer-events: none;
}
.tip-head { margin-bottom: 0.35rem; color: var(--surface); font-weight: 600; }
.tip-value { font-size: 1.05rem; font-weight: 600; }
.tip-sub { opacity: 0.75; }
.tip-line { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.2rem; }
.tip-line .k { display: inline-block; width: 0.75rem; height: 2px; flex: none; background: var(--c, var(--surface)); }
.tip-line .v { margin-left: auto; padding-left: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.toasts { position: fixed; z-index: 1001; left: 50%; bottom: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; transform: translateX(-50%); pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: 9px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-pop);
  font-weight: 500;
  animation: toast-in 0.18s ease-out;
}
.toast .ico { width: 1.1rem; height: 1.1rem; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; }
.toast-warn { background: var(--crit-ink); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.menu {
  position: fixed;
  z-index: 900;
  left: var(--x, 0);
  top: var(--y, 0);
  min-width: 15rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-3); outline: none; }
.menu-item .swatch { width: 0.75rem; height: 0.75rem; }
.menu-item kbd { margin-left: auto; }
.menu-sep { height: 1px; margin: 0.35rem 0.4rem; background: var(--line); }
kbd {
  display: inline-block;
  min-width: 1.45rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink-2);
  font: 600 0.75rem/1.4 var(--font-cond);
  text-align: center;
}

/* ---------- Dialog: modal & panel samping ---------- */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: var(--backdrop); }
.modal {
  width: min(42rem, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in 0.16s ease-out; }
.modal-sm { width: min(28rem, calc(100vw - 2rem)); }
.modal-lg { width: min(56rem, calc(100vw - 2rem)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.25rem 0.4rem 1.5rem; }
.modal-head h2 { font-size: 1.3rem; font-weight: 600; }
.modal-body { min-height: 0; overflow-y: auto; padding: 0.9rem 1.5rem 1.25rem; }
.modal-foot { display: flex; align-items: center; gap: 0.6rem; padding: 0.95rem 1.5rem 1.15rem; border-top: 1px solid var(--line); }
.modal-foot .spacer, .spacer { flex: 1; }
.confirm-text { color: var(--ink-2); line-height: 1.55; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(34rem, 100vw);
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
}
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in 0.2s ease-out; }
.drawer-head { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1.35rem 1.25rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.35rem; font-weight: 600; }
.drawer-head .sub { margin-top: 0.25rem; color: var(--ink-2); font-size: 0.92rem; }
.drawer-head .grow { flex: 1; min-width: 0; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1.25rem 1.5rem 2rem; }
.drawer-section { margin-top: 1.75rem; }
.drawer-section:first-child { margin-top: 0; }
.drawer-section h3 { margin-bottom: 0.7rem; font-size: 1rem; font-weight: 600; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Ringkasan hari */
.daysum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.daysum > div { padding: 0.65rem 0.75rem; background: var(--surface); }
.daysum .k { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-2); font-size: 0.8rem; font-weight: 500; }
.daysum .v { margin-top: 0.15rem; font: 600 1.25rem/1.2 var(--font-cond); font-variant-numeric: tabular-nums; }

/* Garis waktu (lintas modul) */
.tl { list-style: none; margin: 0; padding: 0; }
.tl-item {
  display: grid;
  grid-template-columns: 3.6rem 4px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: stretch;
  padding: 0.55rem 0.25rem;
  border-radius: 6px;
  cursor: pointer;
}
.tl-item:hover { background: var(--surface-2); }
.tl-item + .tl-item { border-top: 1px solid var(--line); }
.tl-time { padding-top: 0.1rem; color: var(--ink-2); font: 600 0.88rem/1.3 var(--font-cond); font-variant-numeric: tabular-nums; }
.tl-time.allday { color: var(--ink-3); font-weight: 500; }
.tl-bar { border-radius: 2px; background: var(--c); }
.tl-bar.planned { background: repeating-linear-gradient(to bottom, var(--c) 0 4px, transparent 4px 7px); }
.tl-main { min-width: 0; }
.tl-title { font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.tl-title.strike { color: var(--ink-3); text-decoration: line-through; }
.tl-meta { margin-top: 0.1rem; color: var(--ink-3); font-size: 0.84rem; line-height: 1.35; }
.tl-meta .pdot { margin-right: 0.3rem; vertical-align: 0; }
.tl-end { display: flex; align-items: flex-start; gap: 0.35rem; }

.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.quick .btn { justify-content: flex-start; }
.quick .swatch { background: var(--c); }

.note-area { width: 100%; min-height: 7rem; }

/* Prioritas */
.prio { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.prio-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.prio-item.done .prio-text { color: var(--ink-3); text-decoration: line-through; }
.prio-text { min-width: 0; overflow-wrap: anywhere; }
.prio-text small { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.1rem; color: var(--ink-3); font-size: 0.8rem; }
.prio-add { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.prio-add .input { flex: 1; min-width: 0; }
.check-btn {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface);
  color: transparent;
}
.check-btn .ico { width: 1rem; height: 1rem; }
.check-btn:hover { border-color: var(--ink-2); }
.check-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }

/* ---------- Formulir ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { color: var(--ink-2); font-size: 0.86rem; font-weight: 600; }
.req { color: var(--crit-ink); }
.hint { color: var(--ink-3); font-size: 0.8rem; }
.error { color: var(--crit-ink); font-size: 0.82rem; font-weight: 500; }
.input {
  width: 100%;
  height: 2.55rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
}
select.input { padding-right: 0.5rem; }
textarea.input { height: auto; min-height: 5.5rem; padding: 0.6rem 0.8rem; line-height: 1.5; resize: vertical; }
.input:hover { border-color: var(--ink-3); }
.input:focus { border-color: var(--ink); outline: 2px solid var(--focus); outline-offset: -1px; }
.input[aria-invalid="true"] { border-color: var(--crit); }
.input:disabled { opacity: 0.6; }
.field-check { flex-direction: row; align-items: center; gap: 0.6rem; }
.field-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--ink); }
.field-check label { color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.choices { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.choice {
  min-width: 2.45rem;
  height: 2.45rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
}
.choice:hover { border-color: var(--ink-3); color: var(--ink); }
.choice[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.swatch-pick { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.swatch-pick button {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.swatch-pick button[aria-pressed="true"] { border-color: var(--ink); }

/* ---------- Grafik ---------- */
.chart { position: relative; min-width: 0; }
.chart svg { display: block; overflow: visible; }
.chart text { fill: var(--ink-3); font-family: var(--font-cond); font-size: 12px; font-weight: 500; }
.chart .c-grid { stroke: var(--line); stroke-width: 1; }
.chart .c-base { stroke: var(--line-2); stroke-width: 1; }
.chart .c-bar { fill: var(--c); }
.chart .c-bar.dim { fill: var(--c2); }
.chart .c-bar.cur { fill: var(--c4); }
.chart .c-hit { fill: transparent; }
.chart .c-hit:hover + .c-bar, .chart .c-hitg:hover .c-bar { fill: var(--c4); }
.chart .c-target { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .c-target-label { fill: var(--ink-2); font-weight: 600; }
.chart .c-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .c-area { fill: var(--c); opacity: 0.1; }
.chart .c-dot { fill: var(--c); stroke: var(--surface); stroke-width: 2; }
.chart .c-cross { stroke: var(--ink-3); stroke-width: 1; }
.chart .c-vlabel { fill: var(--ink); font-weight: 600; }
.chart-cap { margin-top: 0.5rem; color: var(--ink-3); font-size: 0.82rem; }

.hbars { display: flex; flex-direction: column; gap: 0.7rem; }
.hbar { display: grid; grid-template-columns: minmax(6rem, 10rem) minmax(0, 1fr) 4.5rem; align-items: center; gap: 0.75rem; }
.hbar-label { display: flex; align-items: center; gap: 0.45rem; min-width: 0; color: var(--ink); font-size: 0.92rem; }
.hbar-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 0.85rem; }
.hbar-fill { width: var(--p, 0%); min-width: 2px; height: 100%; border-radius: 0 4px 4px 0; background: var(--c); }
.hbar-val { color: var(--ink); font: 600 0.92rem var(--font-cond); font-variant-numeric: tabular-nums; text-align: right; }

.heat { display: grid; gap: 3px; font-family: var(--font-cond); }
.heat-row { display: contents; }
.heat-lab { display: flex; align-items: center; color: var(--ink-3); font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.heat-colh { overflow: visible; color: var(--ink-3); font-size: 0.72rem; font-weight: 500; text-align: left; white-space: nowrap; }
.heat-cell { aspect-ratio: 1; min-height: 0.9rem; border-radius: 3px; background: var(--surface-3); }
.heat-cell.l1 { background: var(--c1); }
.heat-cell.l2 { background: var(--c2); }
.heat-cell.l3 { background: var(--c3); }
.heat-cell.l4 { background: var(--c4); }
.heat-cell.future { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.heat-cell.today { box-shadow: 0 0 0 2px var(--accent); }
.heat-cell:hover { box-shadow: 0 0 0 2px var(--ink-2); }
.heat.wide .heat-cell { aspect-ratio: auto; height: 1.35rem; }

/* ---------- Tabel data ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.data { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.data th {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.data td { padding: 0.62rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr { cursor: pointer; }
.data tbody tr:hover td { background: var(--surface-2); }
.data .n { font-family: var(--font-cond); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.data th.n { text-align: right; }
.data .clip { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.data .lead { display: flex; align-items: center; gap: 0.55rem; }
.table-more { display: flex; justify-content: center; padding: 0.75rem; border-top: 1px solid var(--line); }

/* ---------- Agenda: panel bawah ---------- */
.today-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; color: var(--ink-2); font-size: 0.92rem; }
.target-list { display: flex; flex-direction: column; gap: 1.1rem; }
.target-row .top { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.4rem; }
.target-row .name { font-weight: 500; }
.target-row .val { margin-left: auto; font: 600 1rem var(--font-cond); font-variant-numeric: tabular-nums; }
.target-row .val small { color: var(--ink-3); font-weight: 500; }
.target-row .meta { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.35rem; color: var(--ink-3); font-size: 0.82rem; }
.up-list { list-style: none; margin: 0; padding: 0; }
.up-day { margin-top: 0.85rem; color: var(--ink-2); font-size: 0.85rem; font-weight: 600; }
.up-day:first-child { margin-top: 0; }
.up-item { display: grid; grid-template-columns: 3.2rem 4px minmax(0, 1fr); gap: 0.65rem; padding: 0.35rem 0; cursor: pointer; border-radius: 5px; }
.up-item:hover { background: var(--surface-2); }
.up-item .time { color: var(--ink-2); font: 600 0.84rem/1.4 var(--font-cond); font-variant-numeric: tabular-nums; }
.up-item .bar { border-radius: 2px; background: var(--c); }
.up-item .bar.ms { background: transparent; border-left: 2px dotted var(--c); }
.up-item .title { font-size: 0.93rem; line-height: 1.4; overflow-wrap: anywhere; }
.up-item .meta { color: var(--ink-3); font-size: 0.8rem; }
.proj-mini { display: flex; flex-direction: column; gap: 0.9rem; }
.proj-mini a { display: block; text-decoration: none; }
.proj-mini .row1 { display: flex; align-items: center; gap: 0.5rem; }
.proj-mini .name { font-weight: 500; }
.proj-mini .pct { margin-left: auto; font: 600 0.92rem var(--font-cond); font-variant-numeric: tabular-nums; }
.proj-mini .meter { margin: 0.4rem 0 0.3rem; }
.proj-mini .meta { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-3); font-size: 0.82rem; }
.proj-mini a:hover .name { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Latihan ---------- */
.wplan { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.wplan-day { display: flex; flex-direction: column; min-width: 0; min-height: 12rem; border-left: 1px solid var(--line); }
.wplan-day:first-child { border-left: 0; }
.wplan-day.today { background: var(--accent-wash); }
.wplan-head { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.7rem 0.8rem 0.5rem; border-bottom: 1px solid var(--line); font-family: var(--font-cond); }
.wplan-head .dn { font-size: 1.3rem; font-weight: 600; line-height: 1; }
.wplan-head .dw { color: var(--ink-2); font-weight: 500; }
.wplan-head .sum { margin-left: auto; color: var(--ink-3); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.wplan-body { display: flex; flex: 1; flex-direction: column; gap: 0.4rem; padding: 0.6rem; }
.wplan-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  padding: 0.5rem 0.55rem;
  border-radius: 6px;
  background: var(--c1);
  cursor: pointer;
}
.wplan-item.planned { background: var(--surface); box-shadow: inset 0 0 0 1px var(--c); }
.wplan-item.skipped { background: var(--surface-2); color: var(--ink-3); }
.wplan-item.skipped .t { text-decoration: line-through; }
.wplan-item .t { font-weight: 600; font-size: 0.88rem; line-height: 1.3; }
.wplan-item .m { color: var(--ink-2); font-size: 0.8rem; font-family: var(--font-cond); font-variant-numeric: tabular-nums; }
.wplan-item .check-btn { width: 1.3rem; height: 1.3rem; margin-top: 0.05rem; }
.wplan-add { margin-top: auto; justify-content: flex-start; color: var(--ink-3); }

/* ---------- Project ---------- */
.gantt { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.g-row { display: grid; grid-template-columns: 16rem minmax(0, 1fr); min-height: 2.9rem; border-bottom: 1px solid var(--line); }
.g-row:last-child { border-bottom: 0; }
.g-row.head { min-height: 2.4rem; border-bottom-color: var(--line-2); }
.g-label { display: flex; align-items: center; gap: 0.55rem; min-width: 0; padding: 0 1rem; border-right: 1px solid var(--line); text-decoration: none; }
.g-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
a.g-label:hover span { text-decoration: underline; text-underline-offset: 3px; }
.g-track { position: relative; }
.g-months { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--months), minmax(0, 1fr)); }
.g-months > div { border-left: 1px solid var(--line); }
.g-months > div:first-child { border-left: 0; }
.g-mlab { display: flex; align-items: center; padding: 0 0.6rem; color: var(--ink-2); font: 600 0.82rem var(--font-cond); white-space: nowrap; }
.g-bar {
  position: absolute;
  top: 50%;
  left: var(--l);
  width: var(--w);
  height: 1.05rem;
  overflow: hidden;
  border-radius: 4px;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--pc) 22%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 55%, var(--surface));
}
.g-bar > span { display: block; width: var(--p); height: 100%; background: var(--pc); }
.g-ms {
  position: absolute;
  top: 50%;
  left: var(--l);
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--ink);
  background: var(--surface);
  transform: translate(-50%, -50%) rotate(45deg);
}
.g-ms.done { background: var(--ink); }
.g-today { position: absolute; top: 0; bottom: 0; left: var(--l); width: 2px; background: var(--accent); z-index: 2; pointer-events: none; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(23rem, 1fr)); gap: 1.25rem; }
.proj-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.proj-card:hover { border-color: var(--ink-3); }
.proj-card .top { display: flex; align-items: flex-start; gap: 0.7rem; }
.proj-code {
  display: grid;
  place-items: center;
  min-width: 2.7rem;
  height: 2.7rem;
  padding: 0 0.35rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--pc) 16%, var(--surface));
  color: var(--ink);
  font: 700 0.85rem/1 var(--font-cond);
  letter-spacing: 0.02em;
  box-shadow: inset 3px 0 0 var(--pc);
}
.proj-card h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.proj-card .desc { margin-top: 0.2rem; color: var(--ink-3); font-size: 0.86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-card .tags { margin-left: auto; display: flex; gap: 0.35rem; }
.proj-prog .row1 { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.4rem; color: var(--ink-2); font-size: 0.86rem; }
.proj-prog .row1 strong { color: var(--ink); font: 600 1rem var(--font-cond); }
.proj-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.proj-facts .k { color: var(--ink-3); font-size: 0.78rem; }
.proj-facts .v { font: 600 1rem var(--font-cond); font-variant-numeric: tabular-nums; }
.proj-next { display: flex; align-items: center; gap: 0.45rem; color: var(--ink-2); font-size: 0.86rem; }
.proj-next .ico { width: 1rem; height: 1rem; color: var(--ink-3); }
.proj-card .meter { --c1: color-mix(in srgb, var(--pc) 18%, var(--surface)); --c: var(--pc); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; margin-top: 2rem; }
.ms-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.ms-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.75rem; padding: 0.7rem 0.8rem 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.ms-item:last-child { border-bottom: 0; }
.ms-item .title { overflow-wrap: anywhere; }
.ms-item.done .title { color: var(--ink-3); text-decoration: line-through; }
.ms-item .due { color: var(--ink-2); font: 500 0.86rem var(--font-cond); white-space: nowrap; }
.ms-add { display: grid; grid-template-columns: minmax(0, 1fr) 11rem auto; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); }
.ms-list + .empty { margin-top: 0.75rem; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed-day { margin: 1.1rem 0 0.4rem; color: var(--ink-2); font-size: 0.86rem; font-weight: 600; }
.feed-day:first-child { margin-top: 0; }
.feed-item { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 0.75rem; padding: 0.45rem 0.35rem; border-radius: 6px; cursor: pointer; }
.feed-item:hover { background: var(--surface-2); }
.feed-item .bar { border-radius: 2px; background: var(--c); }
.feed-item .t { font-size: 0.93rem; line-height: 1.4; overflow-wrap: anywhere; }
.feed-item .m { color: var(--ink-3); font-size: 0.8rem; }
.feed-item .h { font: 600 0.9rem var(--font-cond); font-variant-numeric: tabular-nums; white-space: nowrap; }
.desc-block { color: var(--ink-2); line-height: 1.6; max-width: 70ch; }

/* ---------- Fokus ---------- */
.focus-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.timer-sheet { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: center; padding: 1.75rem 2rem; }
.timer-ring { position: relative; width: 15rem; height: 15rem; }
.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring .track { fill: none; stroke: var(--c1); stroke-width: 10; }
.timer-ring .prog { fill: none; stroke: var(--c); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 0.4s linear; }
.timer-ring.break .prog { stroke: var(--m-project); }
.timer-ring.break .track { stroke: var(--project-1); }
.timer-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.timer-time { font: 600 3.4rem/1 var(--font-cond); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.timer-state { margin-top: 0.45rem; color: var(--ink-2); font-size: 0.92rem; font-weight: 500; }
.timer-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.timer-side .now { padding: 0.75rem 0.9rem; border-radius: var(--radius); background: var(--surface-2); }
.timer-side .now .k { color: var(--ink-3); font-size: 0.8rem; }
.timer-side .now .v { font-weight: 600; overflow-wrap: anywhere; }
.timer-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.timer-controls .btn-primary { min-width: 9rem; }
.today-total { display: flex; align-items: baseline; gap: 0.4rem; }
.today-total .big { font-size: 2.2rem; font-weight: 600; line-height: 1; }
.today-total .of { color: var(--ink-3); }

/* ---------- Menu 5 & pengaturan ---------- */
.lead-text { max-width: 68ch; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; }
.ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.75rem; max-width: 110rem; }
.idea { padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.idea h3 { font-size: 1.08rem; font-weight: 600; }
.idea p { margin-top: 0.4rem; color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.idea .links { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.85rem; }
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; max-width: 90rem; }
.set-block h2 { margin-bottom: 0.35rem; font-size: 1.15rem; font-weight: 600; }
.set-block > p { margin-bottom: 1.1rem; color: var(--ink-2); font-size: 0.93rem; line-height: 1.55; }
.set-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.set-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; font-size: 0.93rem; }
.set-facts dt { color: var(--ink-3); }
.set-facts dd { margin: 0; font-weight: 500; }
.workdays { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.shortcuts { display: grid; grid-template-columns: fit-content(13rem) minmax(0, 1fr); gap: 0.55rem 1.25rem; align-items: center; }

/* ---------- Layar masuk, pemasangan & akun (v0.3) ---------- */
.boot { display: flex; align-items: center; justify-content: center; gap: 0.8rem; min-height: 100vh; color: var(--ink-3); font-weight: 500; }
.boot .brand-mark, .rail-store[data-sync="saving"] .sync-dot { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.auth { display: grid; place-items: center; min-height: 100vh; padding: 3rem 1rem; }
.auth-wrap { display: flex; flex-direction: column; gap: 1.1rem; width: min(31rem, 100%); }
.auth-brand { display: flex; align-items: center; gap: 0.75rem; padding: 0 0.25rem; }
.auth-card { padding: 2rem 2rem 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-pop); }
.auth-card h1 { font-size: 1.65rem; font-weight: 600; letter-spacing: -0.01em; }
.auth-eyebrow { margin-bottom: 0.4rem; color: var(--ink-3); font: 600 0.8rem/1.3 var(--font-cond); letter-spacing: 0.06em; text-transform: uppercase; }
.auth-intro { margin: 0.5rem 0 1.5rem; color: var(--ink-2); line-height: 1.55; }
.auth-form { display: grid; gap: 1rem; }
.btn-block { width: 100%; height: 2.8rem; margin-top: 0.3rem; }
.auth-alert { padding: 0.7rem 0.9rem; border-radius: var(--radius); background: var(--crit-wash); color: var(--crit-ink); font-size: 0.93rem; font-weight: 500; line-height: 1.45; }
.auth-notice { display: flex; gap: 0.8rem; margin-bottom: 1.25rem; padding: 0.9rem 1rem; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-wash); }
.auth-notice strong { display: block; }
.auth-notice p { margin: 0.15rem 0 0.6rem; color: var(--ink-2); font-size: 0.9rem; }
.auth-help { color: var(--ink-2); font-size: 0.9rem; line-height: 1.55; }
.auth-help p + p, .auth-help ol { margin-top: 0.5rem; }
.auth-help ol { margin-bottom: 0.5rem; padding-left: 1.25rem; }
.auth-forgot { margin-top: 0.2rem; text-align: center; }
.auth-forgot .auth-help { margin-top: 0.75rem; padding: 0.8rem 0.9rem; border-radius: var(--radius); background: var(--surface-2); text-align: left; }
.link-btn { padding: 0.2rem; border: 0; background: none; color: var(--ink-2); font-size: 0.92rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.auth-back { margin-top: 1rem; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.auth-foot { display: flex; align-items: center; justify-content: center; gap: 0.4rem; color: var(--ink-3); font-size: 0.82rem; text-align: center; }
.auth-foot .ico { width: 1rem; height: 1rem; }
.auth-more { padding: 0.65rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); }
.auth-more summary { color: var(--ink-2); font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.auth-more[open] summary { margin-bottom: 0.6rem; }
.auth-more .field + .field { margin-top: 0.9rem; }
.auth-more > .hint { margin-bottom: 0.8rem; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 2.9rem; }
.pw-toggle { position: absolute; top: 50%; right: 0.3rem; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--ink-3); transform: translateY(-50%); }
.pw-toggle:hover { background: var(--surface-3); color: var(--ink); }
.welcome-opts { display: grid; gap: 0.6rem; margin: 1rem 0; }
.welcome-opt { display: flex; align-items: flex-start; gap: 0.9rem; width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); text-align: left; }
.welcome-opt:hover { border-color: var(--ink-3); background: var(--surface-2); }
.welcome-opt:disabled { opacity: 0.6; cursor: progress; }
.welcome-opt strong { display: block; font-weight: 600; }
.welcome-opt span span { display: block; margin-top: 0.15rem; color: var(--ink-3); font-size: 0.88rem; line-height: 1.45; }
.welcome-status { min-height: 1.3em; margin-top: 0.6rem; }
.acct-sub { margin-left: 0.6rem; font-weight: 400; }
.acct-tip { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 1rem; padding: 0.75rem 0.9rem; border-radius: var(--radius); background: var(--surface-2); color: var(--ink-2); font-size: 0.9rem; line-height: 1.5; }
.acct-tip.warn { background: var(--warn-wash); color: var(--warn-ink); }
.acct-tip.good { margin: 0 0 1rem; background: var(--good-wash); color: var(--good-ink); font-weight: 600; }
.acct-h { margin: 1.6rem 0 0.6rem; font-size: 1rem; font-weight: 600; }
.acct-list { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); list-style: none; }
.acct-list li { display: flex; align-items: center; gap: 0.85rem; padding: 0.65rem 0.95rem; }
.acct-list li + li { border-top: 1px solid var(--line); }
.acct-list li > .ico { color: var(--ink-3); }
.acct-list strong { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.94rem; font-weight: 600; }
.acct-list .muted { display: block; font-size: 0.84rem; }
.acct-list .ok-ico { color: var(--good-ink); }
.acct-list .bad-ico { color: var(--crit-ink); }
.acct-here { padding: 0.05rem 0.45rem; font-size: 0.72rem; }
.tfa-steps { display: grid; gap: 1.1rem; margin: 0; padding-left: 1.25rem; line-height: 1.5; }
.tfa-steps .auth-form { margin-top: 0.6rem; }
.qr-box { width: fit-content; margin: 0.75rem 0 0.4rem; padding: 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.qr { display: block; width: 13.5rem; height: 13.5rem; }
.qr-bg { fill: #fff; }
.qr-fg { fill: #000; }
.tfa-manual summary { color: var(--ink-2); font-size: 0.9rem; cursor: pointer; }
.tfa-manual .hint { margin-top: 0.4rem; }
.tfa-secret { display: block; margin-top: 0.4rem; padding: 0.55rem 0.75rem; border-radius: var(--radius-s); background: var(--surface-2); font: 600 1rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; word-break: break-all; user-select: all; }
.tfa-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1rem; margin: 1rem 0; padding: 0.9rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--radius); list-style: none; }
.tfa-codes code { font: 600 1.05rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.06em; }
.tfa-ack { margin: 1rem 0 0.9rem; }
.rail-store[data-sync] strong { display: flex; align-items: center; gap: 0.45rem; }
.sync-dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--good); }
.rail-store[data-sync="saving"] .sync-dot { background: var(--accent); }
.rail-store[data-sync="offline"] .sync-dot, .rail-store[data-sync="error"] .sync-dot { background: var(--warn); }
.rail-store[data-sync="auth"] .sync-dot { background: var(--crit); }
.rail-store[data-sync="local"] .sync-dot { display: none; }
@media (max-width: 520px) {
  .auth { padding: 1.5rem 0.75rem; place-items: start center; }
  .auth-card { padding: 1.5rem 1.15rem 1.35rem; }
  .tfa-codes { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Kartu "Mulai di sini" & halaman Panduan (v0.4) ---------- */
.start-card { margin-bottom: 1.5rem; padding: 1.25rem 1.5rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-l); background: var(--surface); }
.start-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 2rem; }
.start-head h2 { font-size: 1.2rem; font-weight: 600; }
.start-head p { margin-top: 0.2rem; color: var(--ink-2); font-size: 0.93rem; }
.start-progress { display: grid; gap: 0.35rem; min-width: 14rem; color: var(--ink-2); font-size: 0.85rem; font-weight: 600; }
.start-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem 1.25rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.start-steps li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.start-steps li.done { background: transparent; }
.start-steps li.done .start-body strong { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.start-check { display: grid; place-items: center; flex: none; width: 1.4rem; height: 1.4rem; margin-top: 0.05rem; border: 1.5px solid var(--line-2); border-radius: 50%; color: #fff; }
.start-steps li.done .start-check { border-color: var(--good); background: var(--good); }
.start-check .ico { width: 0.9rem; height: 0.9rem; }
.start-body { display: grid; gap: 0.2rem; min-width: 0; margin-right: auto; }
.start-body strong { font-size: 0.95rem; font-weight: 600; }
.start-body span { color: var(--ink-3); font-size: 0.85rem; line-height: 1.45; }
.start-steps .btn { flex: none; align-self: center; }
.start-foot { display: flex; justify-content: flex-end; gap: 0.4rem; margin-top: 0.6rem; }
.welcome-steps { display: grid; gap: 0.45rem; margin: 0.9rem 0 1rem; padding-left: 1.3rem; line-height: 1.5; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.5rem 0 0.9rem; }
.guide { display: grid; grid-template-columns: 15rem minmax(0, 62rem); gap: 3rem; align-items: start; }
.guide-toc { position: sticky; top: 6rem; }
.guide-toc-t { margin-bottom: 0.5rem; color: var(--ink-3); font: 600 0.8rem/1.3 var(--font-cond); letter-spacing: 0.06em; text-transform: uppercase; }
.guide-toc ol { display: grid; gap: 0.1rem; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.guide-toc button { width: 100%; padding: 0.35rem 0.6rem; border: 0; border-radius: var(--radius-s); background: none; color: var(--ink-2); font-size: 0.93rem; text-align: left; }
.guide-toc button:hover { background: var(--surface-3); color: var(--ink); }
.guide-body { display: grid; gap: 1.25rem; }
.guide-sec { padding: 1.4rem 1.6rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); scroll-margin-top: 6rem; }
.guide-sec[class*="mod-"] { border-left: 4px solid var(--c); }
.guide-sec:focus { outline: none; }
.guide-sec h2 { margin-bottom: 0.6rem; font-size: 1.3rem; font-weight: 600; }
.guide-sec h3 { margin: 1.1rem 0 0.4rem; font-size: 1rem; font-weight: 600; }
.guide-sec p { max-width: 72ch; color: var(--ink-2); line-height: 1.6; }
.guide-sec p + p, .guide-sec p + .guide-list, .guide-sec .guide-list + p { margin-top: 0.6rem; }
.guide-list { display: grid; gap: 0.45rem; max-width: 76ch; margin: 0; padding-left: 1.3rem; color: var(--ink-2); line-height: 1.6; }
.guide-list strong, .guide-sec p strong { color: var(--ink); font-weight: 600; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.guide-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.9rem 0; }
.guide-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 0.9rem; font-weight: 600; }
.guide-chip i { width: 0.65rem; height: 0.65rem; border-radius: 2px; background: var(--c); }
.guide-chip-main { border-color: var(--accent); background: var(--accent-wash); }
.guide-chip .ico { width: 1.05rem; height: 1.05rem; }
.guide-arrow { display: inline-flex; color: var(--ink-3); }
.guide-status { display: grid; gap: 0.45rem; margin: 0.6rem 0; padding: 0; list-style: none; color: var(--ink-2); }
.guide-status li { display: flex; align-items: center; gap: 0.55rem; }
.guide-status strong { color: var(--ink); font-weight: 600; }
.guide-status .st-saving .sync-dot { background: var(--accent); }
.guide-status .st-offline .sync-dot { background: var(--warn); }
.guide-status .st-auth .sync-dot { background: var(--crit); }
@media (max-width: 1500px) { .start-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .guide-toc { position: static; }
  .guide-toc ol { display: flex; flex-wrap: wrap; gap: 0.3rem; }
  .guide-toc button { width: auto; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; }
}
@media (max-width: 760px) {
  .start-steps { grid-template-columns: minmax(0, 1fr); }
  .start-steps li { flex-wrap: wrap; }
  .guide-sec { padding: 1.1rem 1.1rem 1rem; }
}

/* ---------- Nomor versi (v0.5) ---------- */
.rail-version { padding: 0 0.75rem; color: var(--ink-3); font: 500 0.75rem/1.3 var(--font-cond); letter-spacing: 0.02em; }
.rail-version.warn, .auth-version.warn { color: var(--warn-ink); font-weight: 600; }
.auth-version { margin-top: -0.35rem; color: var(--ink-3); font: 500 0.78rem/1.3 var(--font-cond); letter-spacing: 0.02em; text-align: center; }
.gate-help { margin-top: 1.1rem; padding: 0.85rem 1rem; border-radius: var(--radius); background: var(--surface-2); }
.gate-help p + p { margin-top: 0.5rem; }

/* ---------- Template & jadwal berulang (v0.6) ---------- */
.menu { max-width: 24rem; max-height: calc(100vh - 16px); overflow-y: auto; }
.menu-item > span:not(.swatch) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-quick { padding-top: 0.85rem; border-top: 1px dashed var(--line-2); }
.tpl-quick .chip { display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-quick .chip .ico { width: 0.95rem; height: 0.95rem; color: var(--m-fokus, currentColor); }
/* Kolom maks. 34rem: lebar papan dibatasi menurut jumlah jenis (--n) supaya kolom tidak melebar di monitor 2K */
.tpl-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; align-items: start; max-width: calc(var(--n, 4) * 34rem + (var(--n, 4) - 1) * 1.5rem); margin-top: 2.25rem; }
.tpl-col { min-width: 0; }
.tpl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
.tpl-card { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; padding: 1rem 1.1rem 0.95rem; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius-l); background: var(--surface); }
.tpl-head { display: flex; align-items: center; gap: 0.6rem; }
.tpl-head h3 { flex: 1; min-width: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.tpl-head .swatch, .tpl-group .swatch { width: 0.8rem; height: 0.8rem; }
.tpl-sum { color: var(--ink-2); font-size: 0.9rem; line-height: 1.45; }
.tpl-sched { display: flex; align-items: flex-start; gap: 0.4rem; color: var(--ink-2); font-size: 0.86rem; line-height: 1.4; }
.tpl-sched .ico { flex: none; width: 1rem; height: 1rem; margin-top: 0.05rem; color: var(--c); }
.tpl-sched.muted { color: var(--ink-3); }
.tpl-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; padding-top: 0.35rem; }
.tpl-group { display: flex; align-items: center; gap: 0.5rem; }
.tpl-empty .guide-list { margin-top: 0.7rem; }
.tpl-sug-box { max-width: 90rem; }
.tpl-sug-box > summary { cursor: pointer; font-size: 1.1rem; font-weight: 600; }
.tpl-sug-box > .hint { margin: 0.45rem 0 0.85rem; }
.tpl-sugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); gap: 0.6rem 1rem; margin: 0; padding: 0; list-style: none; }
.tpl-sug { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tpl-sug .grow { display: grid; flex: 1; gap: 0.15rem; min-width: 0; }
.tpl-sug .grow span { color: var(--ink-3); font-size: 0.85rem; line-height: 1.4; }
.tpl-sug .tag, .tpl-sug .btn { flex: none; }
.tpl-from { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; padding: 0.55rem 0.75rem; border-radius: var(--radius); background: var(--accent-wash); color: var(--ink); font-size: 0.9rem; }
.tpl-from .ico { flex: none; width: 1.05rem; height: 1.05rem; }
.tpl-sched-intro { margin-bottom: 1rem; }
.tpl-preview { margin-top: 1rem; padding: 0.75rem 0.9rem; border-radius: var(--radius); background: var(--surface-2); font-size: 0.92rem; line-height: 1.5; }
.tpl-preview p + p { margin-top: 0.3rem; }
.modal .workdays .chip { min-width: 3.2rem; justify-content: center; }
.tpl-sched-days { margin-bottom: 1rem; }
@media (max-width: 760px) {
  .tpl-board, .tpl-sugs { grid-template-columns: minmax(0, 1fr); }
  .tpl-sug { flex-wrap: wrap; }
}

/* ---------- v0.7: libur, santai, latihan tidak terlaksana, catatan & foto, notifikasi, panduan gym ---------- */
/* Kalender: tanggal merah (libur nasional) & cuti bersama - hanya keterangan */
.b-day.hol .b-dn, .b-day.hol .b-dw { color: var(--crit-ink); }
.b-day.cuti .b-dw { color: var(--warn-ink); font-weight: 600; }
.b-day.today.hol .b-dn, .b-day.today.hol .b-dw, .b-day.today.cuti .b-dw { color: var(--accent-ink); }
.b-day.hol button::after, .b-day.cuti button::after { content: ""; width: 0.32rem; height: 0.32rem; margin-top: 2px; border-radius: 50%; background: var(--crit); }
.b-day.cuti button::after { background: var(--warn); }
.b-v { position: relative; }
.b-v.hol, .b-v.hol-cuti { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; }
.b-v.hol { background: var(--crit-wash); color: var(--crit-ink); }
.b-v.hol-cuti { background: var(--warn-wash); color: var(--warn-ink); }
/* Latihan tidak terlaksana (garis merah di bawah) & rencana lewat belum dicentang (sudut kuning) */
.b-v.missed::before { content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--crit); }
.b-v.missed-only { background: var(--crit-wash); color: var(--crit-ink); font-size: 0.8rem; }
.b-v.missed-only::before { display: none; }
.b-v.overdue::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 9px 9px 0; border-color: transparent var(--warn) transparent transparent; border-top-right-radius: var(--radius-s); }
.lg-box.missed { background: linear-gradient(to top, var(--crit) 0 3px, var(--crit-wash) 3px); }
.lg-box.overdue { background: linear-gradient(225deg, var(--warn) 0 7px, var(--surface-3) 7px); }
.lg-box.hol, .lg-box.hol-cuti { display: inline-grid; place-items: center; font: 600 0.62rem/1 var(--font-cond); }
.lg-box.hol { background: var(--crit-wash); color: var(--crit-ink); }
.lg-box.hol-cuti { background: var(--warn-wash); color: var(--warn-ink); }
.tip-sub.hol { opacity: 1; font-weight: 600; }
.wk-dayh { flex-wrap: wrap; }
.wk-dayh.hol .dn, .wk-dayh.hol .dw { color: var(--crit-ink); }
.wk-dayh.today.hol .dn { color: var(--ink); }
.wk-hol { flex-basis: 100%; min-width: 0; overflow: hidden; color: var(--crit-ink); font-size: 0.74rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wk-dayh.cuti .wk-hol { color: var(--warn-ink); }
.up-item.hol-cuti { --c: var(--warn); }
.up-item.mod-libur .title { font-weight: 500; }
/* Batas santai terlampaui */
.meter.over { --c1: var(--crit-wash); }
.meter.over > span { background: var(--crit); }
.b-total-t.over { color: var(--crit-ink); font-weight: 600; }
.target-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; padding: 0.55rem 0.75rem; border-radius: var(--radius); background: var(--warn-wash); color: var(--warn-ink); font-size: 0.86rem; font-weight: 500; }
.target-note .ico { width: 1rem; height: 1rem; }
.target-note .panel-link { margin-left: auto; color: var(--ink); }
.daysum { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Tombol cepat di garis waktu */
.tl-quick { display: flex; align-items: center; gap: 0.35rem; }
.icon-btn.danger:hover { border-color: var(--crit); background: var(--crit-wash); color: var(--crit-ink); }
.icon-btn.on { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.icon-btn.on:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--surface); }
.linkish { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.linkish:hover { text-decoration-color: currentColor; }

/* Latihan: centang terlaksana / silang tidak terlaksana */
.wplan-checks { display: flex; flex-direction: column; gap: 0.3rem; }
.wplan-checks .check-btn:not([aria-pressed="true"]) { color: var(--line-2); }
.wplan-checks .check-btn:not([aria-pressed="true"]):hover { color: var(--ink-2); }
.check-btn.miss:not([aria-pressed="true"]):hover { border-color: var(--crit); color: var(--crit-ink); }
.check-btn.miss[aria-pressed="true"] { border-color: var(--crit); background: var(--crit); color: #fff; }
.wplan-item.planned.overdue { background: var(--warn-wash); box-shadow: inset 0 0 0 1px var(--warn); }
.wplan-item .split { color: var(--c4); font: 600 0.78rem/1.3 var(--font-cond); }
.panel-sub { margin: 1.4rem 0 0.7rem; color: var(--ink-2); font-size: 0.92rem; font-weight: 600; }
.overdue-box { margin-top: 1.5rem; padding: 1rem 1.25rem 1.1rem; border: 1px solid var(--warn); border-left-width: 4px; border-radius: var(--radius-l); background: var(--warn-wash); }
.overdue-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1.5rem; }
.overdue-head h2 { display: flex; align-items: center; gap: 0.5rem; color: var(--warn-ink); font-size: 1.05rem; font-weight: 600; }
.overdue-head p { max-width: 75ch; margin-top: 0.25rem; color: var(--ink-2); font-size: 0.9rem; line-height: 1.5; }
.overdue-list { display: grid; gap: 0.4rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.overdue-list li { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.45rem 0.6rem 0.45rem 0.75rem; border-radius: var(--radius); background: var(--surface); }
.overdue-list .when { color: var(--ink-2); font: 600 0.88rem/1.3 var(--font-cond); }
.overdue-list .acts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.overdue-box > .muted { margin-top: 0.6rem; font-size: 0.86rem; }
.choices.multi .choice { min-width: 0; font-weight: 500; }

/* Catatan */
.notes-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.search-box { position: relative; flex: 1 1 18rem; max-width: 30rem; }
.search-box > .ico { position: absolute; top: 50%; left: 0.75rem; width: 1.1rem; height: 1.1rem; color: var(--ink-3); transform: translateY(-50%); pointer-events: none; }
.search-box .input { padding-left: 2.4rem; }
.note-group { display: flex; align-items: center; gap: 0.45rem; }
.note-group .ico { width: 1.05rem; height: 1.05rem; color: var(--ink-3); }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; align-items: start; }
.section > .btn + .note-grid { margin-top: 0.9rem; }
.note-card { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; padding: 0.95rem 1rem 0.85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); cursor: pointer; }
.note-card:hover { border-color: var(--ink-3); }
.note-card.pinned { box-shadow: inset 0 3px 0 var(--accent); }
.note-card.done { background: var(--surface-2); }
.note-card.done h3 { color: var(--ink-3); text-decoration: line-through; }
.note-head { display: flex; align-items: flex-start; gap: 0.5rem; }
.note-head h3 { flex: 1; min-width: 0; padding-top: 0.2rem; font-size: 1.02rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.note-text { display: -webkit-box; overflow: hidden; color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.note-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; }
.note-ph { position: relative; aspect-ratio: 1; overflow: hidden; padding: 0; border: 0; border-radius: 6px; background: var(--surface-3); }
.note-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.note-ph .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 21, 28, 0.55); color: #fff; font: 600 1.05rem/1 var(--font-cond); }
.note-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.15rem; font-size: 0.84rem; }
.tag-info { background: var(--agenda-1); color: var(--agenda-4); }
.notes-empty .guide-list { margin-top: 0.6rem; }

/* Foto di formulir catatan */
.photo-pick { display: grid; gap: 0.55rem; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.photo-grid:empty { display: none; }
.photo-thumb { position: relative; width: 6rem; height: 6rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-3); }
.photo-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.photo-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-del.icon-btn { position: absolute; top: 0.25rem; right: 0.25rem; width: 1.75rem; height: 1.75rem; border-color: transparent; background: rgba(15, 21, 28, 0.62); color: #fff; }
.photo-del.icon-btn:hover { border-color: transparent; background: var(--crit); color: #fff; }
.photo-del .ico { width: 0.95rem; height: 0.95rem; }
.photo-thumb.loading { display: grid; place-items: center; }
.spin { width: 1.6rem; height: 1.6rem; border: 3px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.photo-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lb { display: grid; justify-items: center; gap: 0.75rem; }
.lb-img { display: block; max-width: 100%; max-height: calc(100vh - 15rem); border-radius: var(--radius); background: var(--surface-3); object-fit: contain; }
.lb-nav { display: flex; align-items: center; gap: 0.75rem; }
.lb-count { min-width: 3.5rem; color: var(--ink-2); font: 600 0.95rem var(--font-cond); text-align: center; }

/* Pengaturan: aplikasi HP & notifikasi */
.set-block.wide { grid-column: 1 / -1; }
.notif-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.notif-part { min-width: 0; padding: 1rem 1.15rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.notif-part h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 1rem; font-weight: 600; }
.notif-part h3 .ico { color: var(--ink-3); }
.notif-part .acct-tip.good { margin: 0 0 0.8rem; }
.notif-part .set-actions { margin-top: 0.75rem; }
.notif-part .acct-list .grow { flex: 1; min-width: 0; }
.notif-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.notif-sub { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.notif-sub h4 { margin: 0 0 0.6rem; color: var(--ink-2); font-size: 0.92rem; font-weight: 600; }
.notif-sub .hint { margin-top: 0.5rem; }
.notif-tz { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin-top: 0.8rem; }
.cron-cmd { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0.2rem; padding: 0.4rem 0.45rem 0.4rem 0.7rem; border-radius: var(--radius-s); background: var(--surface-2); }
.cron-cmd code { flex: 1; min-width: 0; color: var(--ink); font: 500 0.84rem/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.guide-list code { padding: 0.05rem 0.3rem; border-radius: 4px; background: var(--surface-2); color: var(--ink); font: 500 0.88em ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* Template: contoh dikelompokkan per jenis */
.nav-more { display: none; }
.mmenu { display: grid; gap: 2px; }
.mmenu-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem 0.8rem; border-radius: var(--radius); color: var(--ink); font-weight: 500; text-decoration: none; }
.mmenu-item:hover { background: var(--surface-3); }
.mmenu-item[aria-current="page"] { background: var(--accent-wash); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.mmenu-item .ico { color: var(--ink-2); }
.mmenu-item .nav-badge { margin-left: auto; }
.mmenu-sep { height: 1px; margin: 0.5rem 0.8rem; background: var(--line); }
.mmenu-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.mmenu-store { margin-top: 1.1rem; color: var(--ink-3); font-size: 0.85rem; line-height: 1.45; }
.mmenu-store strong { display: flex; align-items: center; gap: 0.45rem; color: var(--ink-2); font-weight: 600; }
.mmenu-store[data-sync="saving"] .sync-dot { background: var(--accent); }
.mmenu-store[data-sync="offline"] .sync-dot, .mmenu-store[data-sync="error"] .sync-dot { background: var(--warn); }
.mmenu-store[data-sync="auth"] .sync-dot { background: var(--crit); }
.tpl-sug-h { margin: 1.1rem 0 0.55rem; font-size: 0.98rem; font-weight: 600; }
.tpl-sug-more { margin-top: 1rem; }

/* Panduan gym */
.gym-tabs { max-width: 100%; overflow-x: auto; }
.gym-tabs .seg { white-space: nowrap; }
.gym-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.gym-tools select.input { flex: 0 1 15rem; width: auto; min-width: 11rem; }
.gym-filters { display: grid; gap: 0.5rem; margin-top: 0.85rem; }
.gym-count { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 1.1rem 0 0; color: var(--ink-2); font-size: 0.9rem; }
.gym-lvl-legend { display: inline-flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-left: auto; color: var(--ink-3); font-size: 0.82rem; }
.gym-lvl-legend > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.gym-lvl-legend .lvl { padding-top: 0; --c: var(--m-latihan); }
.gym-group { margin-top: 1.6rem; }
.gym-group .section-title { margin-bottom: 0.75rem; }
.gym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.75rem; }
.gym-card { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; padding: 0.85rem 1rem 0.8rem; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); text-align: left; }
.gym-card:hover { border-color: var(--ink-3); border-left-color: var(--c); }
.gym-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.gym-card-top strong { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.lvl { display: inline-flex; flex: none; gap: 3px; padding-top: 0.4rem; }
.lvl i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--line-2); }
.lvl i.on { background: var(--c); }
.gym-en { color: var(--ink-3); font-size: 0.84rem; }
.gym-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.2rem; }
.gym-sets { color: var(--ink-2); font: 600 0.86rem/1.3 var(--font-cond); font-variant-numeric: tabular-nums; }
.gym-sub { color: var(--ink-3); font-size: 0.82rem; line-height: 1.4; }
.gym-detail > .gym-en { margin: -0.35rem 0 0.85rem; }
.gym-detail h3 { margin: 1.15rem 0 0.45rem; font-size: 1rem; font-weight: 600; }
.gym-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.55rem 1rem; margin: 0; padding: 0.75rem 0.9rem; border-radius: var(--radius); background: var(--surface-2); }
.gym-facts dt { color: var(--ink-3); font-size: 0.78rem; }
.gym-facts dd { margin: 0; font-size: 0.92rem; font-weight: 500; }
.gym-splits { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 0.75rem; font-size: 0.88rem; }
.gym-mistakes li::marker { color: var(--crit-ink); }
.gym-pos { margin-top: 1rem; }
.gym-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 1.25rem; align-items: start; }
.gym-table { margin: 0.3rem 0 0.9rem; }
.gym-table .data th, .gym-table .data td { padding: 0.55rem 0.7rem; }
.gym-table .data th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
.data.static tbody tr { cursor: default; }
.data.static tbody tr:hover td { background: none; }
.gym-beginner { margin-top: 1.25rem; }
.gym-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem 2rem; margin: 0.9rem 0; }
.gym-day h3 { margin: 0 0 0.5rem; }
.gym-ex-list { display: grid; gap: 0.4rem; margin: 0; padding-left: 1.3rem; color: var(--ink-2); }
.gym-ex-list .gym-sets { margin-left: 0.5rem; color: var(--ink-3); }
.gym-programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.gym-program { display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; padding: 1.15rem 1.25rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius-l); background: var(--surface); }
.gym-program-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.gym-program-head h2 { font-size: 1.15rem; font-weight: 600; }
.gym-program > p { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.gym-program > p.gym-who { color: var(--ink); font-weight: 500; }
.gym-week { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.gym-week li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.55rem; border-radius: 6px; background: var(--c1); font-size: 0.85rem; font-weight: 500; }
.gym-week .wd { color: var(--ink-2); font: 700 0.78rem/1 var(--font-cond); }
.gym-tpl-list { display: grid; gap: 0.4rem; margin: 0; padding: 0.7rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.gym-tpl-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; font-size: 0.9rem; }
.gym-tpl-list .muted { font-size: 0.84rem; }
.gym-tpl-list .tag { margin-left: auto; }
.gym-split-terms { margin-top: 1.5rem; }
.gym-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.6rem 1.5rem; margin: 0.6rem 0 0; }
.gym-terms dt { font-weight: 600; }
.gym-terms dd { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.gym-glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 0.75rem 1.25rem; margin: 0; }
.gym-glossary > div { padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gym-glossary dt { font-weight: 600; }
.gym-glossary dd { margin: 0.2rem 0 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.gym-disclaimer { display: flex; align-items: flex-start; gap: 0.5rem; max-width: 80ch; margin-top: 2.5rem; color: var(--ink-3); font-size: 0.85rem; line-height: 1.5; }
.gym-disclaimer .ico { flex: none; width: 1rem; height: 1rem; margin-top: 0.15rem; }

/* Kalender libur (jendela) */
.hol-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-bottom: 0.6rem; }
.hol-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem 1.25rem; margin-top: 1rem; }
.hol-month h3 { margin-bottom: 0.45rem; color: var(--ink-2); font-size: 0.95rem; font-weight: 600; }
.hol-month ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.hol-item { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr) auto; align-items: center; gap: 0.65rem; padding: 0.45rem 0.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hol-item.past { opacity: 0.62; }
.hol-date { display: grid; justify-items: center; padding: 0.25rem 0; border-radius: 6px; background: var(--crit-wash); color: var(--crit-ink); line-height: 1.05; }
.hol-date strong { font: 700 1.1rem/1.05 var(--font-cond); }
.hol-date span { font-size: 0.7rem; font-weight: 600; }
.hol-item.cuti .hol-date { background: var(--warn-wash); color: var(--warn-ink); }
.hol-name { min-width: 0; font-size: 0.92rem; font-weight: 500; line-height: 1.3; }
.hol-type { display: block; color: var(--ink-3); font-size: 0.78rem; font-weight: 400; }
.hol-item .btn { padding: 0 0.6rem; }

@media (max-width: 900px) {
  .notif-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .daysum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overdue-list li { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .note-grid { grid-template-columns: minmax(0, 1fr); }
  .gym-tools select.input { flex: 1 1 100%; }
  .hol-item { grid-template-columns: 2.7rem minmax(0, 1fr); }
  .hol-item .btn { grid-column: 2; justify-self: start; }
  .lb-img { max-height: calc(100vh - 13rem); }
}

/* ---------- Kroscek (v0.8) ---------- */
.mod-prio { --c: var(--accent); }
.nav-badge.nav-count { background: var(--warn); color: #3d2a00; font-variant-numeric: tabular-nums; }
.toast.has-act { padding-right: 0.45rem; pointer-events: auto; }
.toast-act { height: 2rem; margin-left: 0.4rem; padding: 0 0.75rem; border: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.16); color: inherit; font: 600 0.9rem var(--font); cursor: pointer; }
.toast-act:hover { background: rgba(255, 255, 255, 0.28); }
.kc-section .section-title { display: flex; align-items: center; gap: 0.5rem; }
.kc-section .section-title .ico { color: var(--warn-ink); }
.kc-group { margin-top: 0.85rem; padding: 0.85rem 1rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.kc-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.6rem; }
.kc-group-head h3 { font-size: 1rem; font-weight: 600; }
.kc-bulk { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.kc-list { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.kc-row { display: grid; grid-template-columns: 4.4rem 3px minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; min-height: 3.1rem; padding: 0.4rem 0.5rem 0.4rem 0.7rem; border-radius: var(--radius); background: var(--surface-2); }
.kc-row.later { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.kc-time { color: var(--ink-2); font: 600 0.88rem/1.2 var(--font-cond); font-variant-numeric: tabular-nums; }
.kc-bar { align-self: stretch; width: 3px; border-radius: 2px; background: var(--c); }
.kc-main { display: grid; gap: 0.1rem; min-width: 0; padding: 0.15rem 0; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.kc-main:hover .kc-title { text-decoration: underline; text-underline-offset: 2px; }
.kc-title { overflow: hidden; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.kc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.35rem; color: var(--ink-3); font-size: 0.84rem; line-height: 1.35; }
.kc-meta .tag { height: 1.35rem; margin-left: 0.25rem; }
.kc-from { color: var(--ink-2); }
.kc-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem; }
.kc-ok .ico { color: var(--good-ink); }
.kc-chips { margin-bottom: 0.55rem; }
.modal-md { width: min(34rem, calc(100vw - 2rem)); }
.kc-resched { display: grid; gap: 1rem; }
.kc-resched .field { gap: 0.45rem; }
.kc-resched .error { margin: -0.4rem 0 0; }
.kc-resched-what { display: grid; gap: 0.15rem; padding: 0.6rem 0.8rem; border-left: 3px solid var(--c, var(--line-2)); border-radius: var(--radius); background: var(--surface-2); line-height: 1.35; }
.kc-resched-what strong { font-weight: 600; }
.kc-resched-what span { color: var(--ink-3); font-size: 0.85rem; }
.kc-keep { display: flex; align-items: flex-start; gap: 0.4rem; line-height: 1.45; }
.kc-keep .ico { flex: none; width: 0.95rem; height: 0.95rem; margin-top: 0.1rem; }
.kc-intro { margin-bottom: 0.25rem; color: var(--ink-2); line-height: 1.5; }
.kc-popup .kc-group { padding: 0.7rem 0.8rem 0.75rem; }
.kc-done { display: flex; align-items: flex-start; gap: 0.8rem; }
.kc-done > .ico { width: 1.7rem; height: 1.7rem; flex: none; color: var(--good-ink); }
.kc-done p { margin-top: 0.2rem; }
.kc-empty { padding: 1.1rem 1.25rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.kc-empty .guide-list { margin-top: 0.9rem; }
.kc-panels { margin-top: 2.25rem; }
.kc-foot { margin-top: 1rem; font-size: 0.84rem; }
.kc-box { margin-top: 1.5rem; padding: 1rem 1.25rem 1.1rem; border: 1px solid var(--warn); border-left-width: 4px; border-radius: var(--radius-l); background: var(--warn-wash); }
.kc-box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.kc-box-head strong { display: flex; align-items: center; gap: 0.5rem; color: var(--warn-ink); }
.kc-box-head .muted { color: var(--ink-2); font-size: 0.9rem; }
.kc-box .kc-list { margin-top: 0.75rem; }
.kc-box .kc-row { background: var(--surface); }
.kc-box-more { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.86rem; }
.kc-day { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.65rem; padding: 0.5rem 0.6rem 0.5rem 0.75rem; border-radius: var(--radius); background: var(--warn-wash); }
.kc-day-t { display: flex; align-items: center; gap: 0.45rem; color: var(--warn-ink); font-size: 0.9rem; font-weight: 600; }
.b-v.moved-only { background: var(--surface-2); color: var(--ink-3); font-size: 0.85rem; }
.lg-box.moved { display: inline-grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); font: 600 0.72rem/1 var(--font-cond); }
.lg-strike { color: var(--ink-3); font-weight: 600; text-decoration: line-through; }
.wk-chip.planned { background: var(--surface); background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--c1) 5px 7px); box-shadow: inset 0 0 0 1px var(--c); }
.wk-chip.done-skip { opacity: 0.55; text-decoration: line-through; }
.prio-item.missed .prio-text > span, .prio-item.moved .prio-text > span { color: var(--ink-3); text-decoration: line-through; }
.prio-state .ico { width: 0.85rem; height: 0.85rem; }
.prio-state.crit { color: var(--crit-ink); }
.prio-acts { display: flex; align-items: center; gap: 0.1rem; }
.check-btn.moved { border-style: dashed; color: var(--ink-3); }
.plan-from { background: var(--surface-2); }
.feed-item.dim .h { color: var(--ink-3); }
.feed-item .m .tag { height: 1.3rem; vertical-align: middle; }
.ms-late { display: inline-flex; align-items: center; gap: 0.2rem; }
.wplan-item.moved { background: var(--surface-2); color: var(--ink-3); }
.wplan-item.moved .t { text-decoration: line-through; }
.check-btn.resched { color: var(--ink-3); }
.check-btn.resched:hover { border-color: var(--ink-2); color: var(--ink); }
.note-kc { display: inline-flex; gap: 0.1rem; }
.kc-check { align-self: end; min-height: 2.6rem; }

@media (max-width: 760px) {
  .kc-page .stats > .stat:last-child { grid-column: 1 / -1; }
  .kc-row { grid-template-columns: 3px minmax(0, 1fr); gap: 0.35rem 0.7rem; padding: 0.55rem 0.6rem 0.6rem; }
  .kc-row .kc-bar { grid-row: 1 / span 3; }
  .kc-time { grid-column: 2; font-size: 0.8rem; }
  .kc-main { grid-column: 2; }
  .kc-title { white-space: normal; }
  .kc-acts { grid-column: 2; justify-content: flex-start; }
  .kc-acts .lbl { display: none; }
  .kc-acts .btn { width: 2.6rem; height: 2.4rem; padding: 0; justify-content: center; }
  .kc-group { padding: 0.75rem 0.75rem 0.8rem; }
  .kc-bulk { width: 100%; }
  .nav-more { position: relative; }
  .nav-more .nav-badge.nav-count { position: absolute; top: 0.1rem; left: calc(50% + 0.3rem); margin: 0; padding: 0 0.35rem; font-size: 0.68rem; line-height: 1.4; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1700px) {
  .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .focus-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1280px) {
  .panels.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .settings { grid-template-columns: minmax(0, 1fr); }
  .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main { padding: 0 1.5rem 3rem; }
}
@media (max-width: 1100px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.75rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand-sub, .rail-store, .nav-sep { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; margin: 0; }
  .nav-link { padding: 0.5rem 0.65rem; }
  .rail-foot { flex-direction: row; margin: 0 0 0 auto; padding: 0; }
  .topbar { position: static; }
  .wplan { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wplan-day:nth-child(5) { border-left: 0; }
  .wplan-day { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .main { padding: 0 1rem 3rem; }
  .panels, .panels.cols-2, .panels.cols-3, .focus-top { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .form-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .timer-sheet { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 1.25rem; }
  .timer-ring { width: 12rem; height: 12rem; }
  .wplan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wplan-day:nth-child(odd) { border-left: 0; }
  .wplan-day:nth-child(5) { border-left: 1px solid var(--line); }
  .topbar-title { flex-wrap: wrap; }
  .g-row { grid-template-columns: 9rem minmax(0, 1fr); }
  .daysum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ms-add { grid-template-columns: minmax(0, 1fr); }
  .proj-grid { grid-template-columns: minmax(0, 1fr); }
  /* HP: navigasi pindah ke bilah bawah (4 menu utama + Menu untuk sisanya) */
  .rail { position: fixed; z-index: 60; inset: auto 0 0 0; height: auto; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 0.25rem 0.35rem calc(0.25rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-bottom: 0; background: var(--surface); box-shadow: 0 -8px 24px -16px rgba(15, 23, 32, 0.4); }
  .brand, .rail-foot { display: none; }
  .nav { flex: 1; flex-wrap: nowrap; justify-content: space-between; gap: 0.15rem; }
  .nav-link { display: none; }
  .nav-link[data-m], .nav-more { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; min-width: 0; padding: 0.4rem 0.15rem 0.35rem; border: 0; background: transparent; color: var(--ink-3); font-size: 0.7rem; font-weight: 600; line-height: 1.1; }
  .nav-link[data-m] .label, .nav-more .label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-link[data-m][aria-current="page"], .nav-more[data-here] { background: var(--accent-wash); color: var(--ink); box-shadow: none; }
  .nav-link[data-m] .ico, .nav-more .ico { width: 1.4rem; height: 1.4rem; }
  .nav-link[data-m] .nav-badge { display: none; }
  .main { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(4.9rem + env(safe-area-inset-bottom)); }
  .gym-tabs .seg { flex-wrap: wrap; white-space: normal; }
  .section-head { flex-wrap: wrap; }
  .ideas { grid-template-columns: minmax(0, 1fr); }
  .board col.c-label { width: 9.5rem; }
  .board col.c-total { width: 4.6rem; }
  .board { min-width: 58rem; }
  .b-child .b-label-inner { padding-left: 1.4rem; }
  .b-total .meter, .b-total-t { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .b-v.l1, .b-v.l2, .b-v.l3, .b-v.l4, .b-v.off, .b-v.planned, .b-v.hol, .b-v.hol-cuti, .b-v.missed-only, .b-v.moved-only { border: 1px solid CanvasText; }
  .b-v.missed::before, .meter.over > span { background: Mark; }
  .meter > span, .hbar-fill { background: Highlight; }
}
@media print {
  .rail, .topbar-tools, .board-foot .btn, .toasts { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  body { background: #fff; }
}
