/* ============================================================
   RASI by Prospekta — design system
   Bahasa visual Prospekta Universe (sama dengan prospekta website):
   deep space · Geist + Geist Mono · lime #d7f36a · orbit #9cc8ff
   ============================================================ */

:root, [data-theme="dark"] {
  --bg: #070a10; --bg-2: #0a0f18;
  --surface: #0d131d; --surface-2: #131c2a; --surface-3: #192436;
  --ink: #f4f5f7; --ink-2: #c9d0db; --muted: #99a3b4; --faint: #6b7689;
  --line: rgba(245, 247, 250, .085); --line-2: rgba(245, 247, 250, .14); --line-strong: rgba(245, 247, 250, .26);
  --accent: #d7f36a; --accent-ink: #d7f36a; --on-accent: #0b1220; --accent-soft: rgba(215, 243, 106, .11);
  --progress: #d7f36a; --chart: #9cc8ff;
  --orbit: #9cc8ff; --orbit-soft: rgba(156, 200, 255, .11);
  --danger: #ff9d9d; --danger-soft: rgba(255, 120, 120, .11);
  --warn: #f5c46b; --warn-soft: rgba(245, 196, 107, .12);
  --btn-bg: #f4f5f7; --btn-fg: #0b1220; --btn-hover: #ffffff;
  --glass: rgba(7, 10, 16, .72);
  --shadow: 0 24px 64px rgba(0, 0, 0, .55);
  --r: 18px; --r-sm: 10px;
  --font: "Geist", "Geist Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", "Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f5f0; --bg-2: #ffffff;
  --surface: #ffffff; --surface-2: #f1efe7; --surface-3: #e8e5da;
  --ink: #101b2b; --ink-2: #2c3a50; --muted: #4f5c70; --faint: #7a8597;
  --line: rgba(16, 27, 43, .09); --line-2: rgba(16, 27, 43, .15); --line-strong: rgba(16, 27, 43, .3);
  --accent: #d7f36a; --accent-ink: #4a6b00; --on-accent: #101b2b; --accent-soft: rgba(162, 196, 40, .16);
  --progress: #7a9e00; --chart: #1f4aa8;
  --orbit: #1f4aa8; --orbit-soft: rgba(31, 74, 168, .08);
  --danger: #a32121; --danger-soft: rgba(163, 33, 33, .08);
  --warn: #8a5a00; --warn-soft: rgba(217, 182, 80, .18);
  --btn-bg: #101b2b; --btn-fg: #f6f5f0; --btn-hover: #1c2c45;
  --glass: rgba(246, 245, 240, .78);
  --shadow: 0 24px 56px rgba(16, 27, 43, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; min-height: 100vh; font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, p { margin: 0; }
a { color: var(--orbit); text-underline-offset: 3px; }
button { font-family: inherit; }
::selection { background: #cfe3ff; color: #070a10; }
:focus-visible { outline: 3px solid var(--orbit); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; }
kbd { font: 500 10.5px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); background: transparent; }
code { font: 12px var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }

/* ------------------------------ langit (latar) ------------------------------ */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
[data-theme="dark"] .sky {
  background:
    radial-gradient(closest-side at 86% 2%, rgba(120, 160, 230, .13), transparent 72%),
    radial-gradient(closest-side at 4% 104%, rgba(110, 120, 210, .08), transparent 70%),
    linear-gradient(180deg, #05080e 0%, var(--bg) 60%);
}
[data-theme="dark"] .sky::before {
  content: ''; position: absolute; inset: 0; opacity: .75;
  background-image:
    radial-gradient(1px 1px at 8% 18%, #f5f7facc, transparent 60%), radial-gradient(1px 1px at 17% 64%, #f5f7fa80, transparent 60%),
    radial-gradient(1.2px 1.2px at 28% 34%, #c8dcffcc, transparent 60%), radial-gradient(1px 1px at 36% 82%, #f5f7fa70, transparent 60%),
    radial-gradient(1px 1px at 47% 12%, #f5f7fab3, transparent 60%), radial-gradient(1px 1px at 55% 58%, #c8dcff80, transparent 60%),
    radial-gradient(1.2px 1.2px at 63% 28%, #f5f7facc, transparent 60%), radial-gradient(1px 1px at 72% 74%, #f5f7fa70, transparent 60%),
    radial-gradient(1px 1px at 81% 16%, #f5f7fab3, transparent 60%), radial-gradient(1px 1px at 88% 48%, #f5f7fa99, transparent 60%),
    radial-gradient(1.2px 1.2px at 94% 86%, #c8dcffb3, transparent 60%), radial-gradient(1px 1px at 12% 90%, #f5f7fa70, transparent 60%);
}
[data-theme="dark"] .sky::after {
  content: ''; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="light"] .sky { background: radial-gradient(closest-side at 90% 0%, rgba(31, 74, 168, .06), transparent 70%), var(--bg); }

/* ------------------------------ shell ------------------------------ */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px 14px;
  border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px);
}
.brand { display: flex; gap: 11px; align-items: center; padding: 4px 8px; text-decoration: none; color: var(--ink); }
.brand b { display: block; font-weight: 600; font-size: 17px; letter-spacing: .26em; line-height: 1.1; }
.brand small { display: block; font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-g { display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; }
.nav-g > span { font: 500 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 6px; }
.nav a, .navlink {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--muted);
  text-decoration: none; font-size: 13.5px; font-weight: 450; transition: background .15s, color .15s;
}
.nav a .ic, .navlink .ic { opacity: .85; }
.nav a:hover, .navlink:hover { color: var(--ink); background: var(--surface); }
.nav a.on, .navlink.on { color: var(--ink); background: var(--surface-2); }
.nav a.on::after, .navlink.on::after { content: ''; position: absolute; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nbadge { margin-left: auto; margin-right: 14px; font: 600 10.5px var(--mono); color: var(--ink); background: var(--surface-3); border-radius: 999px; padding: 1px 7px; }
.nav a.on .nbadge { margin-right: 18px; }
.nbadge:empty { display: none; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); font-weight: 600; font-size: 12px; }
.me b { display: block; font-size: 13px; font-weight: 550; }
.me small { display: block; font-size: 11.5px; color: var(--muted); }

.mainwrap { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 32px;
  background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.crumb b { color: var(--ink); font-weight: 500; }
.tb-logo { display: none; }
.cmd {
  flex: 1; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-radius: 11px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--muted); cursor: pointer; font: 400 13.5px var(--font); text-align: left;
  transition: border-color .15s, background .15s;
}
.cmd:hover { border-color: var(--line-strong); color: var(--ink-2); }
.cmd span { flex: 1; }
.tb-right { display: flex; align-items: center; gap: 6px; }
.sync { display: flex; align-items: center; gap: 8px; font: 500 10.5px var(--mono); letter-spacing: .06em; color: var(--muted); padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); cursor: pointer; white-space: nowrap; max-width: 260px; }
.sync span { overflow: hidden; text-overflow: ellipsis; }
.sync i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sync.saving i { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); animation: pulse 1s infinite; }
.sync.offline i, .sync.error i { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.sync.demo i { background: var(--orbit); box-shadow: 0 0 0 3px var(--orbit-soft); }
.main { width: 100%; max-width: 1480px; padding: 30px 32px 96px; margin: 0 auto; outline: none; }
.notice { background: var(--orbit-soft); color: var(--ink-2); padding: 8px 16px; font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); }
.loadbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; overflow: hidden; opacity: 0; transition: opacity .2s; }
.loadbar.on { opacity: 1; }
.loadbar.on::after { content: ''; position: absolute; height: 100%; width: 40%; background: var(--accent); animation: load 1.1s infinite var(--ease); }
.tabbar, .fab { display: none; }

/* ------------------------------ page head ------------------------------ */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.page-head h1 { font-size: 34px; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.page-head h1 .dim { color: color-mix(in srgb, var(--ink) 48%, transparent); }
.sub { margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 640px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; gap: 6px; align-items: center; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-bottom: 16px; }
.back:hover { color: var(--ink); }

/* ------------------------------ primitives ------------------------------ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h3 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; display: flex; gap: 9px; align-items: center; min-width: 0; }
.card-h h3 .ic { color: var(--muted); }
.card-a { display: flex; gap: 6px; align-items: center; }
.count { font: 500 11px var(--mono); color: var(--muted); border: 1px solid var(--line-2); padding: 1px 8px; border-radius: 999px; }
.label { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0 0 12px; }
.hint-s { font: 500 10.5px var(--mono); letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.muted { color: var(--muted); }
.warn { color: var(--warn) !important; }
.warn-t { font-size: 13px; color: var(--warn); display: flex; gap: 6px; align-items: center; margin: 8px 0; }
.late { color: var(--danger) !important; }
.center { text-align: center; }
.grow { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 15px; border-radius: 10px;
  font: 500 13.5px var(--font); letter-spacing: -.005em; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; color: var(--ink);
  background: var(--surface-2); text-decoration: none; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.lime { background: var(--accent); color: var(--on-accent); }
.btn.lime:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); border-color: var(--ink); }
.btn.danger { color: var(--danger); }
.btn.danger.ghost { border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.sm { min-height: 30px; padding: 5px 10px; font-size: 12.5px; border-radius: 8px; border-width: 1px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none; text-decoration: none; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.icon-btn.xs { width: 22px; height: 22px; border-radius: 6px; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 8px; font: 500 12.5px var(--font); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface-3); color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.datenav { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: 11px; padding: 3px; }
.datenav .btn.ghost { border: 0; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 36px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; }
.badge.ok { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.badge.teal { background: var(--orbit-soft); color: var(--orbit); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.mchip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.prio { font: 600 10px var(--mono); letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; }
.prio.p1 { background: var(--danger-soft); color: var(--danger); }
.prio.p2 { background: var(--warn-soft); color: var(--warn); }
.prio.p3 { border: 1px solid var(--line-2); color: var(--muted); }
.tag { color: var(--orbit) !important; }

.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; align-items: center; }
.kv span { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kv b { font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.kv[data-act] { cursor: pointer; }
.bar { height: 4px; background: var(--line-2); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.bar span { display: block; height: 100%; background: var(--progress); border-radius: 4px; transition: width .5s var(--ease); }
.ring { position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--progress); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease); }
.ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-c b { font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-c small { font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.sum { display: flex; gap: 20px; align-items: center; }
.sum-r { flex: 1; min-width: 0; }
.empty { text-align: center; padding: 34px 16px; color: var(--ink-2); }
.empty b { display: block; font-weight: 550; margin: 12px 0 4px; font-size: 15px; letter-spacing: -.01em; }
.empty p { color: var(--muted); font-size: 13px; margin: 0 auto 16px; max-width: 420px; }
.empty-ic { display: grid; place-items: center; opacity: .9; }
.ok-box { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 12px; }
.ok-box small { display: block; color: var(--muted); font-size: 12px; }
.ok-box b { color: var(--ink); font-weight: 550; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin-bottom: 20px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 16px 18px; min-width: 0; }
.stat span { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.035em; margin: 6px 0 2px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12px; }
.stats.sm .stat { background: var(--bg-2); padding: 12px 14px; }
.stats.sm .stat b { font-size: 21px; }

/* ------------------------------ forms ------------------------------ */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: 12.5px; font-weight: 550; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.lbl small { font: 500 10.5px var(--mono); color: var(--faint); }
.input {
  width: 100%; background: var(--bg-2); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 9px 12px; color: var(--ink);
  font: inherit; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:hover { border-color: var(--line-strong); }
.input:focus { border-color: var(--orbit); box-shadow: 0 0 0 3px var(--orbit-soft); }
.input::placeholder { color: var(--faint); }
textarea.input { resize: vertical; line-height: 1.55; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2399a3b4' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.input.big { font-size: 17px; padding: 13px 14px; }
.sel { width: auto; min-width: 150px; padding: 7px 32px 7px 12px; font-size: 13px; }
.two, .three, .four, .five { display: grid; gap: 12px; }
.two { grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: repeat(3, 1fr); }
.four { grid-template-columns: repeat(4, 1fr); }
.five { grid-template-columns: repeat(5, 1fr); }
.check { display: flex; gap: 10px; align-items: center; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.daypicks { display: flex; gap: 6px; flex-wrap: wrap; }
.daypick input, .sw input, label.pill input { position: absolute; opacity: 0; pointer-events: none; }
.daypick span { display: inline-grid; place-items: center; min-width: 44px; height: 34px; padding: 0 6px; border-radius: 9px; border: 1px solid var(--line-2); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: var(--muted); }
.daypick input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.daypick input:focus-visible + span, .sw input:focus-visible + span { outline: 3px solid var(--orbit); outline-offset: 2px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 0; }
.sw span { display: block; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 1px var(--line-2); }
.sw input:checked + span { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { position: relative; min-width: 34px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; font: 500 12.5px var(--mono); }
.pill:hover { color: var(--ink); border-color: var(--line-strong); }
.pill.on, .pill:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.inline { display: flex; gap: 6px; align-items: center; }
.row-start { display: flex; gap: 8px; flex-wrap: wrap; }
.row-end { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 12px; flex-wrap: wrap; }
details.perf { border: 1px solid var(--line-2); border-radius: 12px; padding: 4px 14px; }
details.perf summary { cursor: pointer; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 0; }
details.perf[open] { padding-bottom: 14px; }

/* ------------------------------ rasi (konstelasi) ------------------------------ */
.rasi { display: block; width: 100%; height: auto; overflow: visible; }
.rasi .bg-star { fill: var(--ink); opacity: .22; }
.rasi .ln-on { stroke: var(--accent); stroke-width: 1.4; opacity: .85; fill: none; }
.rasi .ln-off { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 1 6; stroke-linecap: round; fill: none; }
.rasi .st-glow { fill: var(--accent); opacity: .16; }
.rasi .st-on { fill: var(--accent); }
.rasi .st-off { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.2; }
.rasi .st-next { fill: var(--bg); stroke: var(--orbit); stroke-width: 1.4; }
.rasi .st-pulse { fill: none; stroke: var(--orbit); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: rk-pulse 2.2s var(--ease) infinite; }
.rasi .st-lbl { font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: var(--muted); }
.rasi .st-lbl.on { fill: var(--ink); }
.rasi .hit { cursor: pointer; }
[data-theme="light"] .rasi .st-on, [data-theme="light"] .rasi .ln-on { fill: #9cc41a; stroke: #7a9e00; }
[data-theme="light"] .rasi .ln-on { fill: none; }
[data-theme="light"] .rasi .st-glow { fill: #b6d93a; opacity: .3; }
[data-theme="light"] .rasi .bg-star { opacity: .15; }

/* hero hari ini */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 0; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface);
}
[data-theme="dark"] .hero { background: radial-gradient(closest-side at 18% 0%, rgba(120, 160, 230, .12), transparent 80%), linear-gradient(180deg, #0b111b, var(--surface)); }
.hero-sky { padding: 20px 22px 14px; min-width: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.hero-sky .label { display: flex; justify-content: space-between; gap: 10px; }
.hero-sky .label b { color: var(--ink); font-weight: 500; }
.hero-sky .rasi { margin-top: 6px; flex: 1; min-height: 0; }
.hero-stats { display: grid; grid-template-rows: repeat(3, auto); }
.hero-stat { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.hero-stat:last-child { border-bottom: 0; }
.hero-stat .label { display: block; margin-bottom: 4px; }
.hero-stat b { font-size: 26px; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.hero-stat b small { font-size: 14px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.hero-stat .bar { margin: 8px 0 0; }
.hero-empty { display: grid; place-items: center; min-height: 150px; color: var(--muted); font-size: 13px; text-align: center; }

/* ------------------------------ tugas ------------------------------ */
.quick { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 4px 4px 4px 12px; margin-bottom: 12px; background: var(--bg-2); transition: border-color .15s, box-shadow .15s; }
.quick:focus-within { border-color: var(--orbit); box-shadow: 0 0 0 3px var(--orbit-soft); }
.quick-ic { color: var(--muted); display: grid; }
.quick input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; padding: 8px 0; }
.quick input::placeholder { color: var(--faint); }
.tasklist { min-height: 32px; border-radius: 10px; display: flex; flex-direction: column; }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; transition: background .12s; position: relative; }
.task:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.task + .task::before { content: ''; position: absolute; top: 0; left: 42px; right: 8px; border-top: 1px solid var(--line); }
.task:hover::before, .task:hover + .task::before { display: none; }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; background: transparent; cursor: pointer; flex: none; padding: 0; transition: .18s var(--ease); }
.tick:hover { border-color: var(--accent); color: var(--accent-ink); }
.task.done .tick, .mini.done .tick, .b3.done .tick, .tick.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tick.sm { width: 17px; height: 17px; }
.task-main { flex: 1; min-width: 0; cursor: pointer; }
.task-title { font-weight: 450; overflow-wrap: anywhere; letter-spacing: -.005em; }
.task.done .task-title { text-decoration: line-through; text-decoration-color: var(--line-strong); color: var(--faint); }
.task.doing .task-title::before { content: '● '; color: var(--orbit); }
.task-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 4px; font-size: 12px; color: var(--muted); align-items: center; }
.task-meta > span { display: inline-flex; gap: 4px; align-items: center; }
.star.on { color: var(--accent-ink); }
.star.on svg { fill: currentColor; }
.task .icon-btn { opacity: 0; }
.task:hover .icon-btn, .task .star.on, .task:focus-within .icon-btn { opacity: 1; }
@media (hover: none) { .task .icon-btn { opacity: .7; } }
.late-box { border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); background: var(--danger-soft); border-radius: 14px; padding: 8px; margin-bottom: 12px; }
.late-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 6px 8px; font-size: 13px; color: var(--danger); }
.more { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; display: inline-block; }

.b3s { display: flex; flex-direction: column; gap: 8px; }
.b3 { display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); }
.b3n { font: 500 11px var(--mono); color: var(--faint); letter-spacing: .1em; width: 18px; }
.b3t { flex: 1; min-width: 0; font-weight: 500; cursor: pointer; }
.b3.done { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.b3.done .b3n { color: var(--accent-ink); }
.b3.done .b3t { text-decoration: line-through; text-decoration-color: var(--line-strong); color: var(--muted); }
.empty-slot { border: 1.5px dashed var(--line-2); background: transparent; color: var(--faint); width: 100%; text-align: left; cursor: pointer; font: 400 13.5px var(--font); }
.empty-slot:hover { border-color: var(--accent); color: var(--ink); }

.today-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(300px, .95fr); align-items: start; }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.jrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.jrow .pill { min-width: 30px; height: 30px; }
.c-jour .jrow + .field { margin-top: 12px; }

/* timeline */
.timeline { position: relative; border-radius: 12px; max-height: 760px; overflow-y: auto; padding-top: 10px; }
.tl-grid .tl-slot { border-top: 1px dashed var(--line); position: relative; }
.tl-grid .tl-slot.hour { border-top: 1px solid var(--line-2); }
.tl-slot span { position: absolute; left: 2px; top: -8px; font: 500 10px var(--mono); color: var(--faint); background: var(--surface); padding: 0 6px 0 2px; font-variant-numeric: tabular-nums; }
.tl-layer { position: absolute; top: 10px; left: 54px; right: 0; bottom: 0; pointer-events: none; }
.tl-block {
  position: absolute; left: 4px; right: 6px; pointer-events: auto; cursor: pointer; overflow: hidden;
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 34%, transparent);
  border-left: 2px solid var(--c); border-radius: 9px; padding: 5px 9px; font-size: 12px; display: flex; flex-direction: column;
}
.tl-block > * { flex: none; }
.tl-block b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-block small { color: var(--muted); font: 500 10px var(--mono); }
.tl-block.short { flex-direction: row; align-items: center; gap: 8px; padding-top: 0; padding-bottom: 0; }
.tl-block.short b { flex: 1; min-width: 0; }
.tl-block.done { opacity: .5; }
.tl-block.done b { text-decoration: line-through; }
.tl-now { position: absolute; left: -8px; right: 0; height: 1.5px; background: var(--accent); }
.tl-now::before { content: ''; position: absolute; left: 0; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-un { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.tl-un .lbl { width: 100%; }
.tl-chip { font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px dashed var(--line-strong); cursor: grab; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; border-radius: 10px; }
.chips-row .mini { min-width: 200px; }

/* fokus & kebiasaan */
.focus { text-align: center; }
.focus-time { font: 400 50px var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.focus.focus .focus-time { color: var(--accent-ink); }
.focus.break .focus-time { color: var(--orbit); }
.focus.paused .focus-time { opacity: .55; }
.focus-phase { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.focus-task { font-size: 13px; font-weight: 550; margin-bottom: 4px; }
.focus .sel { width: 100%; }
.focus-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.hb-today { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; font: 450 13px var(--font); }
.hb-pill:hover { border-color: var(--line-strong); }
.hb-pill .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--c); display: grid; place-items: center; color: transparent; }
.hb-pill.on { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); }
.hb-pill.on .dot { background: var(--c); color: #0b1220; }
.hb-pill small { font: 500 10.5px var(--mono); color: var(--muted); }

/* ------------------------------ minggu ------------------------------ */
.week-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.week-board { display: grid; grid-template-columns: repeat(8, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.wcol { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 6px; min-height: 400px; min-width: 0; }
.wcol.today { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wcol.past { opacity: .72; }
.wcol.backlog { background: transparent; border-style: dashed; border-color: var(--line-2); }
.wcol-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 0 2px; }
.wcol-h b { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.wcol-h span { font-size: 24px; font-weight: 500; letter-spacing: -.04em; margin-left: 6px; font-variant-numeric: tabular-nums; }
.wcol.today .wcol-h span { color: var(--accent-ink); }
.wcol-h small { font: 500 10px var(--mono); color: var(--faint); }
.wcol .bar { margin: 2px 2px 6px; height: 3px; }
.wcol-b { flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 80px; border-radius: 10px; }
.mini { display: flex; gap: 8px; align-items: flex-start; padding: 9px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: inset 2px 0 0 var(--c, transparent); cursor: grab; font-size: 13px; transition: border-color .15s; }
.mini:hover { border-color: var(--line-strong); }
.mini-t { flex: 1; min-width: 0; cursor: pointer; overflow-wrap: anywhere; }
.mini.done .mini-t { text-decoration: line-through; text-decoration-color: var(--line-strong); color: var(--faint); }
.mini-m { font: 500 10.5px var(--mono); color: var(--faint); margin-top: 3px; }
.b3dot { color: var(--accent-ink); margin-right: 3px; }
.mini-add { font-size: 12.5px; padding: 7px 9px; background: transparent; border: 1px dashed var(--line-2); }

/* matriks */
.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quad { min-height: 240px; border-radius: var(--r); padding: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.quad::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--q); opacity: .9; }
.quad-h { margin-bottom: 6px; }
.quad-h b { display: block; font-size: 13.5px; font-weight: 600; }
.quad-h span { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quad.q1 { --q: var(--danger); } .quad.q2 { --q: var(--accent); } .quad.q3 { --q: var(--warn); } .quad.q4 { --q: var(--faint); }
.groups { display: flex; flex-direction: column; gap: 14px; }
.card-h h3.late { color: var(--danger); }

/* ------------------------------ misi ------------------------------ */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; cursor: pointer; position: relative; overflow: hidden; transition: transform .25s var(--ease), border-color .2s; }
.mcard:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.mcard-top { display: flex; justify-content: space-between; align-items: center; }
.mcard-top .eyebrow { margin: 0; }
.mcard-top .eyebrow::before { background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.mcard h3 { font-size: 19px; font-weight: 500; letter-spacing: -.025em; margin: 12px 0 6px; line-height: 1.25; }
.why { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .rasi { margin: 2px 0 4px; }
.mprog .kv { padding: 0; }
.mprog .kv b { font: 500 12px var(--mono); }
.mils { display: none; }
.mfoot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.mfoot span { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.mfoot .next { overflow: hidden; text-overflow: ellipsis; min-width: 0; display: block; }
.how { margin-top: 24px; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.how-step { padding: 4px 18px; border-left: 1px solid var(--line); }
.how-step:first-child { border-left: 0; padding-left: 0; }
.how-step span { font: 500 11px var(--mono); letter-spacing: .1em; color: var(--orbit); }
.how-step b { display: block; margin: 8px 0 4px; font-size: 14px; font-weight: 550; }
.how-step p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.mdetail-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; overflow: hidden; }
[data-theme="dark"] .mdetail-top { background: radial-gradient(closest-side at 20% 0%, rgba(120, 160, 230, .12), transparent 80%), var(--surface); }
.mdetail-top > div { padding: 18px 22px; min-width: 0; }
.mdetail-top > div + div { border-left: 1px solid var(--line); }
.md-big { font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.md-big small { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric-row { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.metric-row .input { width: 110px; }
.mdetail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.ms .card-h h3 { gap: 10px; }
.ms-done .card-h h3 { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.ms .mini-add { margin-top: 8px; width: 100%; }

/* ------------------------------ konten ------------------------------ */
.kanban { display: grid; grid-template-columns: repeat(7, minmax(232px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; }
.kcol { border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.kcol-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 6px; }
.kcol-h b { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.kcol-h b::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sc, var(--faint)); }
.kcol-h span { font: 500 10.5px var(--mono); color: var(--faint); }
.kcol-b { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 150px; border-radius: 10px; }
.kadd { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 8px; border-radius: 10px; border: 1px dashed var(--line-2); background: transparent; color: var(--faint); cursor: pointer; font: 500 12.5px var(--font); }
.kadd:hover { color: var(--ink); border-color: var(--line-strong); }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 12px 13px; cursor: grab; transition: border-color .15s, transform .2s var(--ease); box-shadow: inset 0 2px 0 var(--pc); }
.ccard:hover { border-color: var(--line-strong); }
.ccard b { font-size: 13.5px; font-weight: 550; display: block; margin: 8px 0 4px; line-height: 1.4; letter-spacing: -.005em; }
.ccard p { font-size: 12px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-top, .ccard-f { display: flex; justify-content: space-between; gap: 8px; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ccard-f { margin-top: 10px; }
.ccard-f span { display: inline-flex; gap: 4px; align-items: center; }
.plat { color: var(--orbit); }
.pill-0 { --pc: #9cc8ff; } .pill-1 { --pc: #d7f36a; } .pill-2 { --pc: #f5c46b; } .pill-3 { --pc: #ff9db0; }
.pill-4 { --pc: #7ee0c3; } .pill-5 { --pc: #c3a6ff; } .pill-6 { --pc: #ffb27a; } .pill-7 { --pc: #7fd3f5; } .pill-9 { --pc: var(--line-2); }
.st-0 { --sc: #8b95a7; } .st-1 { --sc: #c3a6ff; } .st-2 { --sc: #9cc8ff; } .st-3 { --sc: #f5c46b; } .st-4 { --sc: #7fd3f5; } .st-5 { --sc: #7ee0c3; } .st-6 { --sc: #d7f36a; }
[data-theme="light"] .st-6 { --sc: #7a9e00; } [data-theme="light"] .st-2 { --sc: #1f4aa8; } [data-theme="light"] .st-3 { --sc: #c8901c; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cal-dh { font: 500 10px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .14em; text-align: left; padding: 8px 10px; background: var(--surface); }
.cal-cell { min-height: 116px; background: var(--surface); padding: 7px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-cell.other { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.cal-cell.other .cal-d span { color: var(--faint); opacity: .6; }
.cal-cell.today .cal-d span { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 7px; }
.cal-d { display: flex; justify-content: space-between; align-items: center; font: 500 11.5px var(--mono); color: var(--ink-2); }
.cal-cell .icon-btn.xs { opacity: 0; }
.cal-cell:hover .icon-btn.xs { opacity: 1; }
.cal-it { font-size: 11px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: grab; background: color-mix(in srgb, var(--sc) 14%, transparent); box-shadow: inset 2px 0 0 var(--sc); color: var(--ink-2); }
.cal-it small { color: var(--muted); margin-right: 4px; font-family: var(--mono); }
.badge.st-0, .badge.st-1, .badge.st-2, .badge.st-3, .badge.st-4, .badge.st-5, .badge.st-6 { background: color-mix(in srgb, var(--sc) 15%, transparent); border-color: transparent; color: var(--ink); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.cal-legend span { display: inline-flex; gap: 6px; align-items: center; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); padding: 8px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12px; }
.hbars { display: flex; flex-direction: column; gap: 2px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 170px) minmax(0, 1fr) 76px; gap: 14px; align-items: center; font-size: 13px; padding: 7px 0; }
.hbar[data-act] { cursor: pointer; }
.hbar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbar-t { height: 6px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.hbar-t i { display: block; height: 100%; background: var(--chart); border-radius: 4px; min-width: 2px; }
.hbar b { text-align: right; font: 500 11.5px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.c-mix { margin-top: 4px; }

/* ------------------------------ kebiasaan ------------------------------ */
.hrow { display: grid; grid-template-columns: minmax(200px, 1.4fr) auto 74px 74px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hrow:last-child { border-bottom: 0; }
.hrow.inactive { opacity: .5; }
.hhead { padding-top: 0; }
.hname { display: flex; gap: 11px; align-items: center; cursor: pointer; min-width: 0; }
.hname i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hname b { font-weight: 550; }
.hname small { display: block; color: var(--muted); font-size: 12px; }
.hcells { display: grid; grid-template-columns: repeat(7, 38px); gap: 6px; }
.hhead .hcells span { text-align: center; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.hhead .hcells span small { display: block; font-size: 12px; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.hhead .hcells span.today, .hhead .hcells span.today small { color: var(--accent-ink); }
.hcell { width: 38px; height: 38px; border-radius: 11px; border: 1.5px solid var(--line-2); background: transparent; color: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; transition: .15s var(--ease); }
.hcell:hover:not(:disabled) { border-color: var(--c); }
.hcell.on { background: var(--c); border-color: var(--c); color: #0b1220; }
.hcell.off:not(.on) { opacity: .35; border-style: dashed; }
.hcell.future { opacity: .18; cursor: default; }
.hstat b { font-size: 17px; font-weight: 500; display: block; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hstat small { font: 500 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.c-heat { margin-top: 18px; }
.hm-wrap { display: flex; gap: 8px; overflow-x: auto; }
.hm-days { display: grid; grid-template-rows: repeat(7, 15px); gap: 4px; font: 500 9.5px var(--mono); text-transform: uppercase; color: var(--faint); }
.hm { display: flex; gap: 4px; }
.hm-col { display: grid; grid-template-rows: repeat(7, 15px); gap: 4px; }
i.hm { width: 15px; height: 15px; border-radius: 4px; display: block; }
.hm.l0 { background: var(--surface-2); }
.hm.l1 { background: color-mix(in srgb, var(--progress) 28%, var(--surface-2)); }
.hm.l2 { background: color-mix(in srgb, var(--progress) 52%, var(--surface-2)); }
.hm.l3 { background: color-mix(in srgb, var(--progress) 76%, var(--surface-2)); }
.hm.l4 { background: var(--progress); }
.hm.ln { background: transparent; border: 1px solid var(--line); }
.hm.lf { background: transparent; border: 1px dashed var(--line); }
.hm-legend { display: flex; gap: 4px; align-items: center; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: 14px; }
.hm-legend span { margin: 0 6px; }

/* ------------------------------ inbox, insight, settings ------------------------------ */
.inbox-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr); gap: 18px; align-items: start; }
.inbs { display: flex; flex-direction: column; }
.inb { display: flex; gap: 12px; align-items: flex-start; padding: 13px 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.inb:last-child { border-bottom: 0; }
.inb-t { flex: 1; min-width: 200px; overflow-wrap: anywhere; }
.inb-t small { display: block; color: var(--faint); font: 500 10.5px var(--mono); margin-top: 3px; }
.inb-a { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.inb.done { opacity: .6; }
.proc { margin-top: 8px; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span2 { grid-column: 1 / -1; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--faint); font-size: 10.5px; font-family: var(--mono); }
.chart .bar-m { fill: var(--chart); transition: opacity .15s; }
.chart .hit:hover .bar-m { opacity: .7; }
.chart .line-m { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot-m { fill: var(--chart); stroke: var(--surface); stroke-width: 2; }
.chart .hit:hover .dot-m { r: 6; }
.rev { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.rev:last-child { border-bottom: 0; }
.rev small { display: block; color: var(--muted); font-size: 12px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.settings-grid > div, .settings-form { display: flex; flex-direction: column; gap: 18px; }
.card > .field + .field, .card > .field + .three, .card > .field + .two, .card > .three + .field, .card > .two + .field, .card > .three + .three { margin-top: 14px; }
.sticky-save { position: sticky; bottom: 16px; margin: 0; padding: 10px; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-grid label.btn { cursor: pointer; }
.about { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.about b { font-weight: 600; letter-spacing: .2em; }
.about small { display: block; color: var(--muted); font-size: 12px; }

/* ------------------------------ wizard & ritual ------------------------------ */
.wz-steps { display: flex; gap: 0; margin-bottom: 22px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.wz-steps span { flex: 1; display: flex; align-items: center; gap: 8px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.wz-steps span:first-child { border-left: 0; }
.wz-steps i { font-style: normal; color: var(--faint); }
.wz-steps .on { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.wz-steps .on i { color: var(--accent-ink); }
.wz-steps .done { color: var(--muted); }
.wz-steps .done i { color: var(--accent-ink); }
.tpls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tpl { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 450 12.5px var(--font); cursor: pointer; }
.tpl:hover { color: var(--ink); border-color: var(--line-strong); }
.tpl.on { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.ms-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ms-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 160px 34px; gap: 8px; align-items: center; }
.ms-n { font: 500 11px var(--mono); color: var(--orbit); text-align: center; }
.wz-ms { margin-bottom: 16px; }
.wz-ms-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; font-size: 13.5px; }
.wz-ms-h b { display: inline-flex; gap: 6px; align-items: center; font-weight: 550; }
.wz-ms-h small { font: 500 10.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.wz-prev { margin-top: 18px; }
.prev-list { max-height: 280px; overflow: auto; border: 1px solid var(--line-2); border-radius: 12px; padding: 4px 14px; margin-top: 12px; }
.prev-d { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.prev-d:last-child { border-bottom: 0; }
.prev-d b { font: 500 11px var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.prev-d span { display: block; }
.prev-d small { color: var(--faint); font-family: var(--mono); }
.picklist { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; margin-bottom: 12px; }
.pickrow { display: flex; gap: 11px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; cursor: pointer; }
.pickrow:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); }
.pickrow input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.pickrow span { flex: 1; min-width: 0; }
.pickrow b { font-weight: 500; }
.pickrow small { display: block; color: var(--faint); font: 500 10.5px var(--mono); margin-top: 2px; }
.picks { display: flex; flex-direction: column; gap: 6px; }
.pick { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-align: left; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.pick:hover { border-color: var(--accent); }
.pick b { font-weight: 500; }
.cap { padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 13.5px; }
.cap.over { border-color: var(--danger); }
.caplist { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.caprow { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 5px 0; }
.caprow > span { flex: 1; min-width: 0; }
.caprow .input[type=number] { width: 78px; padding: 6px 8px; }
.caprow .sel { min-width: 120px; }
.donelist { display: flex; flex-wrap: wrap; gap: 6px; }
.donelist span { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.big3pre { white-space: pre-wrap; font: inherit; font-size: 13px; padding: 12px 14px; border-radius: 10px; margin: 0; border: 1px solid var(--line-2); }
.qa-prev { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; min-height: 24px; font-size: 13.5px; }
.qa-prev b { margin-right: 4px; font-weight: 550; }
.qa-help { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 2.1; }
.qa-res { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.qa-it { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 11px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: 13px; }
.qa-it:hover { background: var(--surface-2); }
.qa-it span { flex: 1; }
.qa-it small { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }

/* ------------------------------ modal, toast, menu ------------------------------ */
.modal-wrap { position: fixed; inset: 0; background: rgba(3, 5, 10, .66); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .18s; }
[data-theme="light"] .modal-wrap { background: rgba(16, 27, 43, .32); }
.modal-wrap.out { opacity: 0; transition: opacity .15s; }
.modal { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: rise .28s var(--ease); }
.modal.sm { width: min(440px, 100%); }
.modal.md { width: min(680px, 100%); }
.modal.lg { width: min(920px, 100%); }
.modal-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.modal-t { font-weight: 550; font-size: 18px; letter-spacing: -.02em; }
.modal-s { font-size: 13px; color: var(--muted); margin-top: 3px; }
.modal-b { padding: 20px 22px; overflow: auto; }
.modal-b > .field, .modal-b > .stats, .modal-b > .ok-box { margin-bottom: 16px; }
.modal-f { display: flex; gap: 8px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
#toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 80; align-items: flex-end; pointer-events: none; max-width: min(420px, calc(100vw - 24px)); }
.toast { pointer-events: auto; background: rgba(13, 19, 29, .94); color: #f4f5f7; border: 1px solid rgba(245, 247, 250, .16); padding: 11px 14px; border-radius: 12px; font-size: 13.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); display: flex; gap: 14px; align-items: center; animation: rise .25s var(--ease); backdrop-filter: blur(10px); }
.toast::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #9cc8ff; flex: none; }
.toast.ok::before { background: #d7f36a; box-shadow: 0 0 0 3px rgba(215, 243, 106, .15); }
.toast.warn::before { background: #f5c46b; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
.toast-act { background: transparent; border: 0; color: #d7f36a; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; padding: 0; }
.ctx { position: fixed; z-index: 70; width: 214px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 13px; padding: 5px; box-shadow: var(--shadow); animation: rise .15s var(--ease); }
.ctx button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; background: transparent; color: var(--ink); font: 450 13px var(--font); border-radius: 8px; cursor: pointer; text-align: left; }
.ctx button .ic { color: var(--muted); }
.ctx button:hover { background: var(--surface-2); }
.ctx .danger, .ctx .danger .ic { color: var(--danger); }
.ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

[data-drag] { -webkit-user-drag: element; }
.dragging { opacity: .4; }
.over { outline: 1.5px dashed var(--accent) !important; outline-offset: -1px; background: var(--accent-soft) !important; }

/* ------------------------------ gate (login / onboarding) ------------------------------ */
.gate { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px 24px 120px; overflow: hidden; }
.gate::after {
  content: ''; position: absolute; left: 50%; bottom: -118vw; width: 150vw; height: 150vw; transform: translateX(-50%); border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 0, #182a45 0%, #0d1828 14%, #070d17 36%, #04070d 62%);
  box-shadow: inset 0 1px #d2e4ff99, inset 0 12px 36px #6ea0eb24, 0 -1px 10px #aacdff52, 0 -24px 90px #6496e61a;
}
[data-theme="light"] .gate::after { background: radial-gradient(circle at 50% 0, #e9e6dc 0%, #f1efe7 40%); box-shadow: inset 0 1px rgba(16, 27, 43, .25); }
@media (min-width: 1024px) { .gate::after { width: 120vw; height: 120vw; bottom: -107vw; } }
.gate-card { position: relative; z-index: 1; width: min(460px, 100%); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); animation: rise .6s var(--ease); }
.gate-card.wide { width: min(900px, 100%); }
.gate-brand { display: flex; gap: 14px; align-items: center; }
.gate-brand b { font-weight: 600; letter-spacing: .26em; font-size: 19px; display: block; }
.gate-brand small { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gate-tag { font-size: 26px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; margin: 22px 0 22px; text-wrap: balance; }
.gate-tag .dim { color: color-mix(in srgb, var(--ink) 50%, transparent); }
.onb { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; }
.onb > div { border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; background: var(--bg-2); }
.onb h3 { font-size: 15px; font-weight: 550; margin: 0 0 8px; letter-spacing: -.01em; }

/* ------------------------------ animasi ------------------------------ */
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes load { from { left: -40%; } to { left: 100%; } }
@keyframes rk-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.main > * { animation: rise .45s var(--ease) both; }
.main > *:nth-child(2) { animation-delay: .04s; } .main > *:nth-child(3) { animation-delay: .08s; } .main > *:nth-child(4) { animation-delay: .12s; }
.main.no-anim > * { animation: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------ responsif ------------------------------ */
@media (max-width: 1320px) {
  .today-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .today-grid > .col:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 1100px) {
  .mdetail, .settings-grid, .inbox-grid { grid-template-columns: 1fr; }
  .mdetail-top { grid-template-columns: 1fr 1fr; }
  .mdetail-top > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .mdetail-top > div:nth-child(2) { border-left: 0; }
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .how-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .crumb { display: none; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .cmd { min-width: 0; }
  .cmd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .tb-right { flex: none; }
  .cmd kbd, .sync span { display: none; }
  .sync { padding: 9px; }
  .main { padding: 20px 14px 112px; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--glass); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; backdrop-filter: blur(14px);
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); text-decoration: none; background: none; border: 0; padding: 4px 8px; cursor: pointer; }
  .tabbar .on { color: var(--ink); }
  .tabbar .on .ic { color: var(--accent-ink); }
  .fab { display: grid; position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 18px; background: var(--accent); color: var(--on-accent); border: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 0 6px var(--accent-soft); place-items: center; z-index: 41; cursor: pointer; }
  #toasts { bottom: auto; top: calc(66px + env(safe-area-inset-top)); right: 12px; left: 12px; align-items: center; max-width: none; }
  .insight-grid, .week-top, .hero { grid-template-columns: 1fr; }
  .hero-sky { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-sky { padding: 16px 14px 10px; }
  .hero-stats { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .hero-stat { border-bottom: 0; border-left: 1px solid var(--line); padding: 12px 14px; }
  .hero-stat:first-child { border-left: 0; }
  .hero-stat:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .hero-stat:last-child .label { margin: 0; }
  .hero-stat b { font-size: 21px; }
  .tb-logo { display: grid; place-items: center; flex: none; text-decoration: none; }
  .page-head h1 { font-size: 26px; }
  .head-actions .btn span { display: none; }
}
@media (max-width: 720px) {
  .today-grid, .today-grid > .col:nth-child(3) { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: 1fr; }
  .three, .four, .five { grid-template-columns: 1fr 1fr; }
  .onb { grid-template-columns: 1fr; }
  .hrow { grid-template-columns: 1fr auto; }
  .hrow .hcells { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .hhead { display: none; }
  .hcell { width: 100%; }
  .hrow .hstat:last-child { display: none; }
  .ms-row { grid-template-columns: 24px minmax(0, 1fr) 34px; }
  .ms-row input[type=date] { grid-column: 2; }
  .hbar { grid-template-columns: 100px minmax(0, 1fr) 60px; }
  .modal-wrap { padding: 0; place-items: end center; }
  .modal { border-radius: 22px 22px 0 0; max-height: 92vh; width: 100% !important; }
  .wz-steps span { padding: 9px 6px; justify-content: center; }
  .wz-steps span:not(.on) { font-size: 0; gap: 0; }
  .wz-steps span:not(.on) i { font-size: 10.5px; }
  .cal-cell { min-height: 74px; }
  .cal-it { font-size: 0; padding: 3px; height: 6px; }
  .cal-it small { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .how-step { border-left: 0; padding-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 23px; }
  .mdetail-top { grid-template-columns: 1fr; }
  .mdetail-top > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .gate-tag { font-size: 22px; }
}
