/* Materi Vault — BoostechLab · gaya sama dengan deck presentasi (warm light + doodle) */
:root {
      --paper: #fbf8f3; --paper-soft: #f5efe6; --paper-grid: #f1eadf; --paper-card: #fffdf9;
      --ink: #1d1b18; --ink-body: #48423b; --ink-muted: #867d71; --ink-faint: #b6ada1;
      --line: #ebe3d7; --line-strong: #ddd3c4;
      --gold: #c59b27; --signal: #e4572e; --sun: #f2c14e; --ok: #2f7d4f;
      --serif: 'Playfair Display', Georgia, serif;
      --sans: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
      --ease: cubic-bezier(0.16, 1, 0.3, 1);
      --top: 60px; --side: 290px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 20px); }
    body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
    a { color: inherit; }
    ::selection { background: var(--ink); color: var(--paper); }
    
    /* ---------- top bar ---------- */
    .topbar {
      position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 50;
      display: flex; align-items: center; gap: 1rem; padding: 0 1.2rem;
      background: rgba(251,248,243,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
    }
    .brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; white-space: nowrap; }
    .brand small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); line-height: 1; }
    .brand span { line-height: 1.15; }
    .search { position: relative; margin-left: auto; width: min(420px, 46vw); min-width: 0; }
    .search input { width: 100%; font: inherit; font-size: .88rem; padding: .5rem .9rem .5rem 2.2rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper-card); color: var(--ink); outline: none; }
    .search input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(197,155,39,.25); }
    .search svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-muted); }
    .search kbd { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); }
    kbd { font-family: var(--sans); font-size: .68rem; font-weight: 700; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35rem; background: var(--paper-card); color: var(--ink-muted); }
    .results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--paper-card); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(29,27,24,.35); max-height: 60vh; overflow: auto; display: none; }
    .results.open { display: block; }
    .results a { display: block; padding: .7rem .9rem; text-decoration: none; border-bottom: 1px solid var(--line); }
    .results a:hover, .results a.sel { background: var(--paper-soft); }
    .results b { display: block; font-size: .84rem; }
    .results span { display: block; font-size: .76rem; color: var(--ink-muted); line-height: 1.5; }
    .results mark { background: rgba(242,193,78,.5); color: inherit; border-radius: 2px; }
    .results .empty { padding: .8rem .9rem; font-size: .84rem; color: var(--ink-muted); }
    .side-btn { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border: 1.5px solid var(--line-strong); background: var(--paper-card); border-radius: 9px; cursor: pointer; color: var(--ink); transition: border-color .2s, background .2s; }
    .side-btn:hover { border-color: var(--ink); }
    .side-btn svg { width: 18px; height: 18px; }
    body.side-closed .side-btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
    .readbar { position: fixed; top: var(--top); left: 0; height: 2px; width: 0; background: var(--ink); z-index: 51; }

    /* ---------- sidebar ---------- */
    .sidebar {
      transition: transform .35s var(--ease);
      position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--side); z-index: 40;
      overflow-y: auto; padding: 1.2rem .9rem 3rem; border-right: 1px solid var(--line); background: var(--paper);
    }
    .nav-home { display: block; font-weight: 800; font-size: .9rem; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; margin-bottom: .6rem; }
    .nav-group { margin-top: .4rem; }
    .nav-group > summary { list-style: none; cursor: pointer; position: relative; padding-right: 1.4rem; }
    .nav-group > summary::-webkit-details-marker { display: none; }
    .nav-group > summary::after { content: ""; position: absolute; right: .2rem; top: .35rem; width: 7px; height: 7px; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg); transition: transform .25s var(--ease); }
    .nav-group:not([open]) > summary::after { transform: rotate(-45deg); }
    .nav-day { margin: 1.2rem .7rem .4rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
    .nav-day small { display: block; font-size: .78rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-family: var(--serif); font-weight: 700; margin-top: .15rem; }
    .sidebar ul { list-style: none; }
    .sidebar li a { display: grid; grid-template-columns: 1.8rem 1fr auto 12px; gap: .3rem; align-items: start; padding: .42rem .7rem; border-radius: 8px; text-decoration: none; font-size: .86rem; color: var(--ink-body); }
    .sidebar .d { padding-top: .1rem; }
    .sidebar .n { font-family: var(--serif); font-weight: 700; color: var(--ink-faint); font-size: .8rem; }
    .sidebar .d { font-size: .7rem; color: var(--ink-faint); font-weight: 700; }
    .sidebar a:hover { background: var(--paper-soft); color: var(--ink); }
    .sidebar a.active, .nav-home.active { background: var(--ink); color: var(--paper); }
    .sidebar a.active .n, .sidebar a.active .d { color: #c9c1b4; }
    .tick { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); margin-top: .45rem; }
    .tick.on { background: var(--ok); border-color: var(--ok); }

    /* ---------- konten ---------- */
    .content { transition: margin-left .35s var(--ease); min-width: 0; overflow-x: clip; margin-left: var(--side); padding: calc(var(--top) + 2rem) clamp(20px, 4vw, 56px) 5rem; }
    .chapter { max-width: 1120px; margin: 0 auto; animation: chIn .6s var(--ease) both; }
    @keyframes chIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    .kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .8rem; }
    .kicker::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
    .doodle { display: block; overflow: visible; }

    .ch-hero {
      display: grid; grid-template-columns: 1fr 190px; gap: 2rem; align-items: end;
      padding: 2rem 2.2rem; border-radius: 14px; margin-bottom: 2rem; position: relative; overflow: hidden;
      background-color: var(--paper-grid);
      background-image: linear-gradient(to right, rgba(29,27,24,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(29,27,24,.045) 1px, transparent 1px);
      background-size: 32px 32px; border: 1px solid var(--line);
    }
    .ch-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
    .ch-num { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; margin-right: .5rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .5em; vertical-align: .45em; }
    .ch-doodle { width: 190px; height: 210px; justify-self: end; margin-bottom: -2.2rem; animation: ddIn .9s var(--ease) .15s both; }
    @keyframes ddIn { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } to { opacity: 1; transform: none; } }
    .ch-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1rem; font-size: .88rem; color: var(--ink-body); }
    .ch-meta b { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
    .reviewed { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; font-size: .84rem; font-weight: 700; cursor: pointer; background: var(--paper-card); border: 1.5px solid var(--ink); border-radius: 8px; padding: .35rem .8rem; }
    .reviewed input { accent-color: var(--ok); width: 16px; height: 16px; }
    .reviewed:has(input:checked) { background: var(--ok); border-color: var(--ok); color: #fff; }

    .ch-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 2.4rem; align-items: start; }
    .ch-main { min-width: 0; max-width: 780px; }
    .ch-toc { position: sticky; top: calc(var(--top) + 1.5rem); font-size: .8rem; max-height: calc(100vh - var(--top) - 3rem); overflow: auto; }
    .ch-toc p { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .6rem; }
    .ch-toc ul { list-style: none; border-left: 1.5px solid var(--line-strong); }
    .ch-toc li a { display: block; padding: .22rem 0 .22rem .9rem; text-decoration: none; color: var(--ink-muted); line-height: 1.4; margin-left: -1.5px; border-left: 1.5px solid transparent; }
    .ch-toc li a:hover { color: var(--ink); }
    .ch-toc li a.on { color: var(--ink); border-left-color: var(--ink); font-weight: 700; }
    .ch-toc .toc-block a { font-weight: 800; color: var(--ink); margin-top: .5rem; }

    /* blok 1-2-3 */
    .block { margin-bottom: 2.6rem; animation: chIn .6s var(--ease) both; }
    .block:nth-child(2) { animation-delay: .08s; } .block:nth-child(3) { animation-delay: .16s; }
    .block-head { display: flex; align-items: center; gap: 1rem; padding-bottom: .9rem; margin-bottom: 1.2rem; border-bottom: 2px solid var(--ink); }
    .block-num { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; background: var(--paper-card); }
    .block--do .block-num { background: var(--sun); }
    .block--target .block-num { background: var(--ink); color: var(--paper); }
    .block-head h2 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; }
    .block-head p { font-size: .82rem; color: var(--ink-muted); }
    .block--target .sec { background: var(--paper-card); border: 1px solid var(--line-strong); border-left: 4px solid var(--ink); border-radius: 10px; padding: 1.1rem 1.3rem; }
    .block--do .sec { border-left: 3px solid var(--sun); padding-left: 1.2rem; }

    .sec { margin-bottom: 1.6rem; }
    .sec h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: .6rem; line-height: 1.35; }
    .sec h4 { font-size: 1rem; font-weight: 800; margin: 1.1rem 0 .4rem; }
    .sec p, .sec li { color: var(--ink-body); }
    .sec p + p, .sec p + ul, .sec p + ol, .sec ul + p, .sec ol + p { margin-top: .7rem; }
    .sec ul, .sec ol { padding-left: 1.3rem; margin: .5rem 0; }
    .sec li { margin: .3rem 0; }
    .sec li::marker { color: var(--gold); font-weight: 700; }
    .sec strong { color: var(--ink); }
    .sec a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; font-weight: 600; }
    .sec code { font-family: ui-monospace, Consolas, monospace; font-size: .86em; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; }
    .sec--lead p { font-size: 1.05rem; }

    .table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper-card); }
    table { width: 100%; border-collapse: collapse; font-size: .86rem; }
    th { text-align: left; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); background: var(--paper-soft); padding: .65rem .8rem; border-bottom: 1px solid var(--line-strong); }
    td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-body); line-height: 1.55; }
    tr:last-child td { border-bottom: 0; }
    td:first-child strong { font-family: var(--serif); font-size: 1.05rem; }

    .callout { margin: 1rem 0; padding: .9rem 1.1rem; background: #fdf4dc; border: 1px solid #f0dc9f; border-left: 4px solid var(--gold); border-radius: 8px; }
    .callout p { color: var(--ink-body); }
    .prompt { position: relative; margin: 1rem 0; }
    .prompt pre { background: var(--ink); color: #f3ede3; border-radius: 10px; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: .82rem; line-height: 1.6; white-space: pre-wrap; }
    .prompt code { font-family: ui-monospace, Consolas, monospace; background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
    .copy { position: absolute; top: .6rem; right: .6rem; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; padding: .3rem .7rem; border-radius: 6px; border: 0; background: var(--sun); color: var(--ink); }
    .copy.done { background: var(--ok); color: #fff; }

    .anchor { margin: 1rem 0 2rem; padding: 1.3rem 1.6rem; border-left: 3px solid var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.55; background: var(--paper-soft); border-radius: 0 10px 10px 0; }
    .anchor span { display: block; font-family: var(--sans); font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .3rem; }
    .done-note { font-weight: 800; margin-bottom: 2rem; }
    .upd { color: var(--gold); font-weight: 800; }
    h3 .upd, .ch-toc .upd { margin-left: .1em; }
    .update-note { display: flex; gap: .7rem; align-items: baseline; margin: 0 0 2rem; padding: .8rem 1.1rem; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--paper-soft); font-size: .84rem; line-height: 1.55; color: var(--ink-muted); }
    .update-note .upd { font-size: 1.1rem; }
    .update-note p { margin: 0; }

    .prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
    .pn { display: block; text-decoration: none; padding: .9rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper-card); font-weight: 700; font-size: .9rem; transition: border-color .2s, transform .25s var(--ease); }
    .pn:hover { border-color: var(--ink); transform: translateY(-2px); }
    .pn small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
    .pn--next { text-align: right; grid-column: 2; }

    /* beranda */
    .home-hero { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: center; padding: 2.4rem 2.6rem; border-radius: 16px; margin-bottom: 1.8rem; background: radial-gradient(60% 70% at 85% 30%, rgba(242,193,78,.28), transparent 70%), var(--paper-soft); border: 1px solid var(--line); }
    .home-hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.015em; }
    .lead { font-size: 1.08rem; color: var(--ink-body); margin-top: 1rem; max-width: 56ch; }
    .how { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.2rem; font-size: .82rem; color: var(--ink-muted); }
    .progress-note { margin-top: 1rem; font-size: .9rem; }
    .home-doodle { width: 360px; height: 260px; }
    .days { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 2.4rem; }
    .day-card { background: var(--paper-card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 1.5rem 1.6rem; }
    .day-card h2 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin-bottom: .8rem; }
    .day-card ol { list-style: none; margin-bottom: 1.2rem; }
    .day-card li a { display: grid; grid-template-columns: 2rem 1fr; gap: .1rem .4rem; text-decoration: none; padding: .45rem 0; border-bottom: 1px dashed var(--line-strong); font-size: .9rem; font-weight: 600; }
    .day-card li b { font-family: var(--serif); color: var(--gold); grid-row: span 2; }
    .day-card li small { font-size: .74rem; color: var(--ink-muted); font-weight: 500; }
    .day-card li a:hover { color: var(--signal); }
    .btn { display: inline-flex; font-weight: 800; font-size: .86rem; text-decoration: none; padding: .55rem 1rem; border-radius: 8px; background: var(--ink); color: var(--paper); }
    .btn:hover { background: var(--gold); color: var(--ink); }
    .sheet h2 { font-family: var(--serif); font-size: 1.9rem; margin-bottom: 1.2rem; }
    .fw-sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
    .fw-col { background: var(--paper-card); border: 1px solid var(--line-strong); border-radius: 10px; padding: 1.1rem; }
    .fw-col.is-key { border-color: var(--ink); }
    .fw-title { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; border-bottom: 1.5px solid var(--ink); padding-bottom: .5rem; margin-bottom: .5rem; }
    .fw-title b { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .05em; line-height: 1; }
    .fw-title span { font-size: .68rem; font-weight: 700; color: var(--ink-muted); text-align: right; }
    .fw-when { font-size: .78rem; font-weight: 700; background: var(--paper-soft); border-radius: 6px; padding: .35rem .55rem; margin-bottom: .3rem; }
    .fw-row { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0 .4rem; padding: .32rem 0; border-bottom: 1px dashed var(--line-strong); }
    .fw-row:last-child { border-bottom: 0; }
    .fw-row i { font-style: normal; font-family: var(--serif); font-weight: 700; color: var(--gold); }
    .fw-row strong { font-size: .84rem; }
    .fw-row small { grid-column: 2; font-size: .74rem; color: var(--ink-muted); line-height: 1.4; }
    .fw-link { margin-top: 1rem; font-size: .9rem; color: var(--ink-body); }


    /* ---------- sidebar disembunyikan (desktop) ---------- */
    body.side-closed .sidebar { transform: translateX(-100%); }
    body.side-closed .content { margin-left: 0; }
    .scrim { position: fixed; inset: var(--top) 0 0 0; background: rgba(29,27,24,.25); z-index: 39; opacity: 0; pointer-events: none; transition: opacity .3s; }

    /* ---------- doodle inline ---------- */
    .doodle-svg { width: 100%; height: 100%; display: block; overflow: visible; }
    .ch-doodle, .home-doodle { display: flex; align-items: flex-end; justify-content: center; }

    /* ---------- peta alur per hari ---------- */
    .flow-wrap { margin: -1rem 0 2.2rem; }
    .flow-label { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .5rem; }
    .flow { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
    .flow a { position: relative; flex: 1 0 104px; display: flex; flex-direction: column; gap: .15rem; text-decoration: none; padding: .55rem .7rem; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper-card); font-size: .72rem; line-height: 1.3; color: var(--ink-body); transition: border-color .2s, transform .25s var(--ease); }
    .flow a:not(:last-child)::after { content: "→"; position: absolute; right: -.62rem; top: 50%; transform: translateY(-50%); font-size: .7rem; color: var(--ink-faint); z-index: 1; }
    .flow a b { font-family: var(--serif); font-size: .95rem; color: var(--gold); }
    .flow a:hover { border-color: var(--ink); transform: translateY(-2px); }
    .flow a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
    .flow a.on b { color: var(--sun); }
    .flow a.ok:not(.on) { border-color: var(--ok); }
    .flow a.ok:not(.on) b::after { content: " ✓"; color: var(--ok); font-family: var(--sans); font-size: .7rem; }

    /* ---------- splash ---------- */
    .splash {
      position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: 1.5rem;
      background-color: var(--paper);
      background-image: radial-gradient(50% 45% at 50% 40%, rgba(242,193,78,.25), transparent 70%),
        linear-gradient(to right, rgba(29,27,24,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(29,27,24,.045) 1px, transparent 1px);
      background-size: auto, 36px 36px, 36px 36px;
      transition: opacity .6s var(--ease), visibility .6s;
    }
    .splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
    .splash[hidden] { display: none; }
    .splash-inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 560px; }
    .splash-doodle { width: min(340px, 80vw); height: 220px; margin-bottom: .6rem; }
    .splash h1 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; letter-spacing: -.01em; animation: spIn .8s var(--ease) .35s both; }
    .splash .kicker { animation: spIn .8s var(--ease) .25s both; margin-bottom: .6rem; }
    .splash-sub { margin-top: .9rem; color: var(--ink-body); animation: spIn .8s var(--ease) .45s both; }
    .splash-btn { margin-top: 1.6rem; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; padding: .8rem 1.5rem; border-radius: 10px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--gold); transition: transform .2s var(--ease), box-shadow .2s; animation: spIn .8s var(--ease) .6s both; }
    .splash-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--gold); }
    .splash-hint { margin-top: .7rem; font-size: .72rem; color: var(--ink-muted); animation: spIn .8s var(--ease) .7s both; }
    @keyframes spIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }


    /* ---------- link slide ---------- */
    .deck-links { display: flex; gap: .4rem; margin-left: auto; }
    .deck-links + .search { margin-left: .6rem; }
    .deck-links button, .slide-links button {
      font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
      border: 1.5px solid var(--ink); background: var(--paper-card); color: var(--ink); border-radius: 9px;
      font-size: .78rem; font-weight: 800; padding: .4rem .75rem; transition: background .2s, color .2s, transform .2s var(--ease);
    }
    .deck-links button svg { width: 15px; height: 15px; }
    .deck-links button:hover, .slide-links button:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
    .slide-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; }
    .slide-links > span { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-right: .2rem; }
    .slide-links button { font-weight: 700; border-color: var(--line-strong); }
    .slide-links button b { font-family: var(--serif); color: var(--gold); }
    .slide-links button:hover b { color: var(--sun); }
    .day-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
    .btn--ghost { font: inherit; font-weight: 800; font-size: .86rem; cursor: pointer; background: var(--paper-card); color: var(--ink); border: 1.5px solid var(--ink); }

    /* ---------- viewer slide ---------- */
    .viewer { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: clamp(10px, 3vw, 36px); background: rgba(29,27,24,.55); backdrop-filter: blur(6px); animation: vIn .35s var(--ease) both; }
    .viewer[hidden] { display: none; }
    @keyframes vIn { from { opacity: 0; } to { opacity: 1; } }
    .viewer-card { width: min(1440px, 94vw); height: 92vh; height: 92dvh; display: flex; flex-direction: column; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); animation: vCard .45s var(--ease) both; }
    @keyframes vCard { from { transform: translateY(24px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
    .viewer-bar { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem .6rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--paper-card); }
    .viewer-title { font-family: var(--serif); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .viewer-hint { font-size: .72rem; color: var(--ink-muted); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .viewer-btn { font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap; padding: .38rem .7rem; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); }
    .viewer-btn:hover { border-color: var(--ink); }
    .viewer-close { background: var(--ink); color: var(--paper); border-color: var(--ink); }
    .viewer-frame { flex: 1; width: 100%; border: 0; background: var(--paper); }
    .viewer:fullscreen { padding: 0; }
    .viewer:fullscreen .viewer-card { width: 100vw; height: 100vh; border-radius: 0; }
    body.has-viewer { overflow: hidden; }
    @media (max-width: 900px) {
      .viewer { padding: 0; background: var(--paper); backdrop-filter: none; }
      .viewer-card { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }
      .viewer-bar { padding: .5rem .6rem; gap: .4rem; }
      .viewer-title { font-size: .85rem; margin-right: auto; }
      .viewer-open { display: none; }
    }
    @media (min-width: 641px) and (max-width: 900px) { .viewer-open { display: inline-block; } }


    /* ---------- onboarding: pilih peran ---------- */
    .splash:has(.onboard) { place-items: safe center; overflow-y: auto; }
    .onboard { width: 100%; max-width: 760px; padding: 1.5rem 0; }
    .onb-tip b { white-space: nowrap; }
    .onboard .splash-doodle { width: min(420px, 86vw); height: 170px; margin-bottom: .2rem; }
    .onboard h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
    .onb-step { display: flex; flex-direction: column; align-items: center; width: 100%; animation: spIn .6s var(--ease) both; }
    .onb-step[hidden] { display: none; }
    .role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; width: 100%; margin-top: 1.3rem; }
    .role-card {
      font: inherit; cursor: pointer; text-align: left; color: var(--ink);
      display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.1rem;
      background: var(--paper-card); border: 2px solid var(--line-strong); border-radius: 14px;
      transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
    }
    .role-card:hover, .role-card:focus-visible { border-color: var(--ink); transform: translateY(-3px); box-shadow: 5px 5px 0 var(--gold); outline: none; }
    .role-card b { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
    .role-card span { font-size: .84rem; color: var(--ink-body); line-height: 1.5; }
    .role-card em { font-style: normal; font-size: .78rem; font-weight: 800; margin-top: .3rem; color: var(--ink); }
    .role-dd { display: block; height: 96px; margin-bottom: .2rem; }
    .role-dd .doodle-svg { width: auto; height: 100%; }
    .day-card-btn strong { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold); }
    .onb-read { font: inherit; font-size: .82rem; font-weight: 700; color: var(--ink-muted); background: none; border: 0; border-bottom: 1.5px solid currentColor; padding: 0 0 1px; margin-top: .7rem; cursor: pointer; pointer-events: auto; }
    .onb-read:hover, .onb-read:focus-visible { color: var(--ink); }
    .onb-tip { margin-top: 1.4rem; font-size: .76rem; color: var(--ink-muted); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; }
    .mini-switch { width: 30px; height: 17px; border-radius: 9px; background: var(--ink); position: relative; flex-shrink: 0; }
    .mini-switch i { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--sun); }

    /* ---------- sakelar Materi / Slide + pilihan hari ---------- */
    .mode-switch { display: flex; align-items: center; gap: .5rem; margin-left: auto; font-size: .8rem; font-weight: 800; }
    .mode-switch + .day-seg { margin-left: .2rem; }
    .ms-label { color: var(--ink-faint); transition: color .2s; cursor: pointer; user-select: none; }
    body:not(.mode-slide) .ms-label[data-side="materi"], body.mode-slide .ms-label[data-side="slide"] { color: var(--ink); }
    .switch { position: relative; width: 52px; height: 28px; border-radius: 14px; border: 2px solid var(--ink); background: var(--paper-card); cursor: pointer; padding: 0; transition: background .25s; flex-shrink: 0; }
    .switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .35s var(--ease), background .25s; }
    .switch[aria-checked="true"] { background: var(--ink); }
    .switch[aria-checked="true"] i { transform: translateX(24px); background: var(--sun); }
    .switch:focus-visible { box-shadow: 0 0 0 3px rgba(197,155,39,.4); outline: none; }
    .day-seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 9px; overflow: hidden; }
    .day-seg[hidden] { display: none; }
    .day-seg button { font: inherit; font-size: .78rem; font-weight: 800; padding: .38rem .8rem; border: 0; background: var(--paper-card); color: var(--ink); cursor: pointer; }
    .day-seg button.on { background: var(--ink); color: var(--paper); }
    .mode-switch ~ .search { margin-left: .8rem; }
    .help-btn { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--paper-card); font: inherit; font-family: var(--serif); font-weight: 700; font-size: 1rem; cursor: pointer; }
    .help-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
    .help-btn { display: grid; place-items: center; color: var(--ink); }
    .help-btn svg { width: 17px; height: 17px; }

    /* ---------- mode Slide: deck tampil penuh ---------- */
    .stage { position: fixed; top: var(--top); left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); }
    .stage[hidden] { display: none; }
    .stage-frame { width: 100%; height: 100%; border: 0; display: block; background: var(--paper); }
    .stage-btn { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .74rem; font-weight: 800; text-decoration: none; cursor: pointer; padding: .4rem .7rem; border-radius: 8px; border: 1.5px solid var(--line-strong); background: rgba(255,253,249,.92); color: var(--ink); backdrop-filter: blur(6px); }
    .stage-btn:hover { border-color: var(--ink); }
    .stage-btn svg { width: 15px; height: 15px; }
    body:not(.mode-slide) .stage-full { display: none; }
    body.mode-slide .sidebar, body.mode-slide .content, body.mode-slide .readbar, body.mode-slide .search, body.mode-slide .side-btn, body.mode-slide .scrim { display: none; }
    body.mode-slide { overflow: hidden; }
    body.mode-slide .brand { margin-left: .2rem; }

    /* ---------- responsif ---------- */
    /* ---------- onboarding: layar dibelah diagonal (v1.1.62) ---------- */
    .diag { --tri-t: polygon(0 0, 100% 0, 0 100%); --tri-s: polygon(100% 0, 100% 100%, 0 100%);
      position: absolute; inset: 0; width: auto; animation: none; display: block; }
    .diag[hidden] { display: none; }
    .half-bg, .half { position: absolute; inset: 0; display: block; }
    .half-bg.t { clip-path: var(--tri-t); background: linear-gradient(135deg, #fff6dc 0%, var(--paper) 70%); transition: filter .4s var(--ease); }
    .half-bg.s { clip-path: var(--tri-s); background: linear-gradient(315deg, #14110d 0%, #26211a 80%); transition: filter .4s var(--ease); }
    .diag:has(.half.t:hover) .half-bg.t, .diag:has(.half.t:focus-visible) .half-bg.t { filter: brightness(1.04) saturate(1.5); }
    .diag:has(.half.s:hover) .half-bg.s, .diag:has(.half.s:focus-visible) .half-bg.s { filter: brightness(1.35); }
    .diag-3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
    .diag-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
    .diag-line line { stroke: var(--gold); stroke-width: 3px; }
    .half { font: inherit; border: 0; background: transparent; cursor: pointer; padding: 0; color: var(--ink); text-align: left; }
    .half.t { clip-path: var(--tri-t); }
    .half.s { clip-path: var(--tri-s); color: var(--paper); text-align: right; }
    .half:focus-visible { outline: none; }
    .half:focus-visible .half-in b { text-decoration: underline 3px var(--gold); text-underline-offset: 6px; }
    .half-in { position: absolute; display: flex; flex-direction: column; gap: .35rem; max-width: min(320px, 34vw);
      transition: transform .5s var(--ease); }
    .half.t .half-in { left: clamp(1.2rem, 6vw, 5rem); top: clamp(1.2rem, 9vh, 4.5rem); align-items: flex-start; }
    .half.s .half-in { right: clamp(1.2rem, 6vw, 5rem); bottom: clamp(1.2rem, 9vh, 4.5rem); align-items: flex-end; }
    .half.t:hover .half-in { transform: translate(8px, 8px); }
    .half.s:hover .half-in { transform: translate(-8px, -8px); }
    .half-in b { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; }
    .half-desc { font-size: .88rem; line-height: 1.5; opacity: .8; }
    .half-in em { font-style: normal; font-size: .82rem; font-weight: 800; margin-top: .3rem; padding: .35rem .8rem; border-radius: 999px; border: 2px solid currentColor; transition: background .2s, color .2s; }
    .half.t:hover em, .half.t:focus-visible em { background: var(--ink); color: var(--paper); }
    .half.s:hover em, .half.s:focus-visible em { background: var(--sun); color: var(--ink); border-color: var(--sun); }
    .half .role-dd { height: clamp(90px, 18vh, 150px); margin: 0; }
    .half.s .role-dd { background: var(--paper-card); border-radius: 18px; padding: .3rem .8rem; }
    .diag-center { position: absolute; inset: 0; margin: auto; height: fit-content; z-index: 2; text-align: center;
      width: min(400px, 82vw); padding: 1rem 1.3rem 1.1rem; background: var(--paper-card); border: 2px solid var(--ink); border-radius: 16px;
      box-shadow: 6px 6px 0 var(--gold); pointer-events: none; animation: spIn .8s var(--ease) .2s both; }
    .diag-center .kicker { margin-bottom: .3rem; }
    .diag-center h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); animation: none; }
    .diag-center .splash-sub { font-size: .82rem; margin-top: .5rem; animation: none; }
    @media (max-width: 760px) {
      .half-in { max-width: 56vw; }
      .half-desc { display: none; }
      .half .role-dd { height: 72px; }
      .half-in b { font-size: 1.6rem; }
      .diag-center { padding: .8rem 1rem; }
      .diag-center .splash-sub, .diag-center .kicker { display: none; }
    }
    @media (prefers-reduced-motion: reduce) { .half-in, .half-bg { transition: none; } }
    /* pilih materi: belah kiri/kanan (HP: atas/bawah) */
    .vsplit { --tri-t: polygon(0 0, 50% 0, 50% 100%, 0 100%); --tri-s: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }
    .vsplit .half-in { top: 0; bottom: 0; margin-block: auto; height: fit-content; max-width: min(340px, 36vw); }
    .vsplit .half.t .half-in { align-items: flex-start; }
    .vsplit .half.s .half-in { align-items: flex-end; }
        .vsplit .half-num { font-family: var(--serif); font-size: clamp(5rem, 14vw, 10rem); line-height: .85; color: var(--gold); font-weight: 700; }
    .vsplit .half.s .half-num { color: var(--sun); }
    .vsplit .half-in b { font-size: clamp(1.9rem, 3.6vw, 3rem); }
    .vsplit .half-desc { font-size: .95rem; }
    .vsplit .diag-line .lh { display: none; }
    .ver-tag { margin-top: .5rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--ink-muted); }
    @media (max-width: 760px) {
      .vsplit { --tri-t: polygon(0 0, 100% 0, 100% 50%, 0 50%); --tri-s: polygon(0 50%, 100% 50%, 100% 100%, 0 100%); }
      .vsplit .diag-line .lv { display: none; }
      .vsplit .diag-line .lh { display: block; }
      .vsplit .half-in { max-width: 70vw; margin-block: 0; height: auto; }
      .vsplit .half.t .half-in { top: 4.5rem; bottom: auto; left: 1.4rem; }
      .vsplit .half.s .half-in { bottom: 1.6rem; top: auto; right: 1.4rem; }
      .vsplit .half-num { font-size: 4.2rem; }
      .vsplit .half-desc { display: block; font-size: .8rem; }
    }
    /* popup layar penuh */
    .fs-ask { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 1.2rem; background: rgba(29,27,24,.55); backdrop-filter: blur(3px); }
    .fs-ask[hidden] { display: none; }
    .fs-card { width: min(420px, 100%); background: var(--paper-card); border: 2px solid var(--ink); border-radius: 16px; padding: 1.4rem 1.4rem 1.2rem; box-shadow: 6px 6px 0 var(--gold); text-align: center; animation: spIn .4s var(--ease) both; }
    .fs-card h2 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
    .fs-card p { margin-top: .5rem; font-size: .9rem; color: var(--ink-body); }
    .fs-btns { display: flex; gap: .6rem; margin-top: 1.1rem; justify-content: center; flex-wrap: wrap; }
    .fs-btns button { font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; padding: .65rem 1.1rem; border-radius: 10px; border: 2px solid var(--ink); }
    .fs-yes { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--gold); }
    .fs-no { background: transparent; color: var(--ink); }
    .fs-btns button:hover, .fs-btns button:focus-visible { transform: translate(-1px, -1px); outline: none; box-shadow: 4px 4px 0 var(--sun); }
    /* loading ala Jarvis */
    .jarvis { position: fixed; inset: 0; z-index: 1000; overflow: hidden; --jv: #f2c14e; }
    .jarvis[hidden] { display: none; }
    .jv-p { position: absolute; top: 0; bottom: 0; width: 50.3%; display: block; background: #0f0c08;
      transition: transform .5s cubic-bezier(.7, 0, .2, 1); will-change: transform; }
    .jv-l { left: 0; transform: translateX(-101%); }
    .jv-r { right: 0; transform: translateX(101%); }
    .jarvis.in .jv-p { transform: none; }
    .jarvis.out .jv-l { transform: translateX(-101%); transition-duration: .75s; }
    .jarvis.out .jv-r { transform: translateX(101%); transition-duration: .75s; }
    .jv-hud { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(242,193,78,.12), transparent 70%), linear-gradient(rgba(242,193,78,.05) 1px, transparent 1px) 0 0/36px 36px, linear-gradient(90deg, rgba(242,193,78,.05) 1px, transparent 1px) 0 0/36px 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; color: var(--jv); opacity: 0; transition: opacity .3s .45s; }
    .jarvis.in .jv-hud { opacity: 1; }
    .jarvis.out .jv-hud { opacity: 0; transition: opacity .2s 0s; }
    .jv-top { font-size: .68rem; font-weight: 800; letter-spacing: .32em; opacity: .75; }
    .jv-ring { position: relative; width: min(58vmin, 340px); aspect-ratio: 1; display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(242,193,78,.55)); }
    .jv-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .jv-ring circle, .jv-ring path { fill: none; stroke: var(--jv); transform-box: fill-box; transform-origin: center; }
    .jv-ring .r1 { stroke-width: 5; stroke-dasharray: 1.2 5.6; opacity: .7; animation: jvspin 14s linear infinite; }
    .jv-ring .r2 { stroke-width: 2; stroke-dasharray: 110 24 40 18; animation: jvspin 5s linear infinite reverse; }
    .jv-ring .r3 { stroke-width: 6; opacity: .15; }
    .jv-ring .jv-arc { stroke-width: 6; stroke-linecap: round; stroke-dasharray: 414.7; stroke-dashoffset: 414.7; transform: rotate(-90deg); }
    .jv-ring .r4 { stroke-width: 1.5; stroke-dasharray: 3 7; animation: jvspin 9s linear infinite; }
    .jv-ring .r5 { stroke-width: 2.5; opacity: .8; }
    .jv-pct { font-family: var(--sans); font-weight: 800; font-size: clamp(2rem, 9vmin, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; margin-right: .6em; text-shadow: 0 0 14px rgba(242,193,78,.7); }
    .jv-ring small { position: absolute; left: 50%; top: 50%; transform: translate(calc(clamp(1rem, 4vmin, 1.7rem) * 1.5), -.2em); font-size: .8rem; font-weight: 800; opacity: .8; }
    .jv-title { font-weight: 800; font-size: 1rem; letter-spacing: .22em; text-transform: uppercase; }
    .jv-log { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8rem; color: #cdbf97; min-height: 1.2em; }
    .jv-log span::after { content: "▍"; margin-left: .15em; animation: jvblink .7s steps(1) infinite; }
    @keyframes jvspin { to { transform: rotate(360deg); } }
    @keyframes jvblink { 50% { opacity: 0; } }
    @media (max-width: 1180px) { .ch-body { grid-template-columns: minmax(0, 1fr); } .ch-toc { display: none; } .fw-sheet { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 900px) {
      .sidebar { transform: translateX(-100%); box-shadow: 20px 0 40px -20px rgba(0,0,0,.2); }
      body.nav-open .sidebar { transform: none; }
      body.nav-open .scrim { opacity: 1; pointer-events: auto; }
      .content, body.side-closed .content { margin-left: 0; }
      .brand span, .deck-links svg { display: none; }
      .viewer-hint { display: none; }
      .days { grid-template-columns: 1fr; }
    }
    @media (max-width: 640px) {
      .ch-hero, .home-hero { grid-template-columns: 1fr; padding: 1.5rem 1.3rem; }
      .ch-doodle { width: 130px; height: 150px; margin: 0; justify-self: start; }
      .home-doodle { width: 170px; height: 200px; }
      .fw-sheet { grid-template-columns: 1fr; }
      .prevnext { grid-template-columns: 1fr; }
      .pn--next { grid-column: 1; }
      .search { width: auto; flex: 1; }
      .topbar { gap: .6rem; padding: 0 .8rem; }
      .search kbd { display: none; }
      .deck-links { display: none; }
      .role-grid { grid-template-columns: 1fr; }
      .role-dd { height: 70px; }
      .onboard .splash-doodle { height: 120px; }
      .ms-label { display: none; }
      .day-seg button { padding: .35rem .55rem; font-size: .72rem; }
      .deck-links + .search { margin-left: auto; }
    }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
    @media print {
      .splash, .flow-wrap, .scrim, .topbar, .sidebar, .ch-toc, .prevnext, .reviewed, .copy, .readbar { display: none !important; }
      .content { margin: 0; padding: 0; }
      .chapter { display: block !important; break-before: page; animation: none; }
      .chapter[hidden] { display: block !important; }
      .ch-body { display: block; }
      .prompt pre { background: #f5efe6; color: var(--ink); }
    }

    /* Screenshot asli (bab bergambar) */
    .sec figure.shot { margin: 1.1rem 0 1.4rem; padding: 0; }
    .sec figure.shot img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper-card); box-shadow: 0 10px 28px -16px rgba(29,27,24,.35); }
    .sec figure.shot .shot-fb { display: none; max-width: 760px; margin: 0 auto; padding: 1rem 1.1rem; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--paper-soft); color: var(--ink-muted); font-size: .88rem; }
    .sec figure.shot figcaption { max-width: 760px; margin: .55rem auto 0; font-size: .8rem; color: var(--ink-muted); text-align: center; }
    .deck-link { margin: 1rem 0 1.4rem; }
    .deck-link a { display: inline-block; padding: .6rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--paper) !important; font-weight: 700; font-size: .88rem; text-decoration: none; }
    .deck-link a:hover { background: var(--signal); }

    /* ---------- popup tautan (peek) ---------- */
    a[data-peek] { text-decoration-style: dotted; cursor: pointer; }
    a[data-peek]:hover { text-decoration-style: solid; background: rgba(242,193,78,.22); border-radius: 3px; }
    .peek-scrim { position: fixed; inset: 0; z-index: 90; background: transparent; }
    .peek-scrim[hidden], .peek[hidden] { display: none; }
    .peek {
      position: absolute; z-index: 91; background: var(--paper-card); color: var(--ink);
      border: 2px solid var(--ink); border-radius: 14px; padding: 1rem 1.1rem .9rem;
      box-shadow: 5px 5px 0 var(--gold); font-size: .88rem; line-height: 1.55; text-align: left;
      animation: peekIn .28s var(--ease) both;
    }
    .peek[data-pos="above"] { animation-name: peekInUp; }
    .peek-arrow { position: absolute; left: var(--ax, 50%); width: 14px; height: 14px; margin-left: -7px; background: var(--paper-card); border: 2px solid var(--ink); transform: rotate(45deg); }
    .peek[data-pos="below"] .peek-arrow { top: -8px; border-right: 0; border-bottom: 0; }
    .peek[data-pos="above"] .peek-arrow { bottom: -8px; border-left: 0; border-top: 0; }
    .peek-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
    .peek-tag { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
    .peek-x { font: inherit; font-size: 1.3rem; line-height: 1; width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink-muted); cursor: pointer; }
    .peek-x:hover { border-color: var(--ink); color: var(--ink); }
    .peek h4 { font-family: var(--serif); font-size: 1.18rem; line-height: 1.22; margin: .25rem 0 .2rem; }
    .peek-sec { font-size: .8rem; color: var(--ink-body); }
    .peek-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0; }
    .peek-meta span { font-size: .72rem; font-weight: 700; padding: .05rem .55rem; border-radius: 999px; background: var(--paper-soft); border: 1px solid var(--line-strong); color: var(--ink-body); }
    .peek-brief { margin-top: .35rem; color: var(--ink-body); }
    .peek-pts { margin-top: .6rem; }
    .peek-pts > span { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
    .peek-pts ul { list-style: none; margin-top: .25rem; display: grid; gap: .15rem; }
    .peek-pts li { position: relative; padding-left: 1rem; font-size: .8rem; line-height: 1.4; color: var(--ink-body); }
    .peek-pts li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
    .peek-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
    .peek-btns button { font: inherit; font-weight: 800; font-size: .84rem; cursor: pointer; padding: .5rem .9rem; border-radius: 10px; border: 2px solid var(--ink); }
    .peek-go { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--gold); }
    .peek-no { background: transparent; color: var(--ink); }
    .peek-btns button:hover, .peek-btns button:focus-visible { transform: translate(-1px, -1px); outline: none; box-shadow: 4px 4px 0 var(--sun); }
    .peek-via { margin-top: .6rem; font-size: .72rem; color: var(--ink-muted); }
    @keyframes peekIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
    @keyframes peekInUp { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
    @media (max-width: 700px) {
      .peek-scrim { background: rgba(29,27,24,.45); }
      .peek { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto !important; border-radius: 18px 18px 0 0; border-width: 2px 0 0; box-shadow: 0 -8px 30px rgba(29,27,24,.25); padding-bottom: 1.2rem; animation: peekSheet .3s var(--ease) both; }
      .peek-arrow { display: none; }
    }
    @keyframes peekSheet { from { transform: translateY(100%); } to { transform: none; } }
    @media (prefers-reduced-motion: reduce) { .peek, .peek[data-pos] { animation: none; } }
    @media print { .peek, .peek-scrim { display: none !important; } }
