/* =========================================================================
   7Smarts — Dokumentasi Project
   UI terinspirasi "book app": cover di rak, detail full-bleed, buku 3D.
   ========================================================================= */
:root {
  --bg: #F5F6F8;
  --beige: #EBEDF1;
  --paper: #FFFFFF;
  --ink: #15171C;
  --ink-2: #4E5260;
  --muted: #8A8F9C;
  --line: #E1E4EA;
  --label: #6F7A99;
  --star: #15171C;
  --serif: 'Space Grotesk', system-ui, Arial, sans-serif;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --rail: clamp(64px, 6.2vw, 96px);
  --top: clamp(60px, 9vh, 88px);
  --ease: cubic-bezier(.65, .05, .25, 1);
  --cw: clamp(92px, min(10.5vw, 19vh), 210px);   /* lebar cover di rak */
  --bw: clamp(120px, min(15vw, 28vh), 300px);    /* lebar buku di detail */
  --scene: #DCE4E6;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
.icon-btn svg, .rail-btn svg, .back-btn svg, .search svg, .act svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 2px solid var(--label); outline-offset: 3px; border-radius: 4px; }

.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink); transition: background .2s;
}
.icon-btn:hover { background: rgba(0, 0, 0, .05); }
.icon-btn svg { width: 22px; height: 22px; }

/* ============================ TOP BAR ============================ */
.topbar {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--top);
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(16px, 4.6vw, 70px) 0 calc(var(--rail) / 2 - 18px);
  padding-top: env(safe-area-inset-top, 0px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: clamp(16px, 1.45vw, 21px); }
.brand small { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.back-btn { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: clamp(14px, 1.2vw, 18px); padding: 6px 8px; border-radius: 8px; }
.back-btn svg { width: 20px; height: 20px; }
.back-btn:hover { background: rgba(255, 255, 255, .35); }

.search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #BDBDBD; padding: 4px 2px; width: clamp(150px, 16vw, 260px);
  transition: width .5s var(--ease), opacity .4s, border-color .3s;
}
.search:focus-within { border-color: var(--ink); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font: inherit; font-size: 14px; color: var(--ink); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }

.only-detail { display: none; }
#app[data-view="detail"] .only-home { display: none; }
#app[data-view="detail"] .only-detail { display: flex; }
#app[data-view="detail"] .search { width: 0; opacity: 0; pointer-events: none; border-color: transparent; }

/* ============================ RAIL ============================ */
.rail {
  position: fixed; z-index: 30; left: 0; top: var(--top); bottom: 0; width: var(--rail);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 26vh 0 calc(5vh + env(safe-area-inset-bottom, 0px));
  transition: opacity .4s, transform .6s var(--ease);
}
.rail-group { display: flex; flex-direction: column; gap: 14px; }
.rail-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #444;
  position: relative; transition: background .2s, color .2s;
}
.rail-btn svg { width: 21px; height: 21px; }
.rail-btn:hover { background: rgba(0, 0, 0, .05); }
.rail-btn.is-on { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.rail-btn.is-on::before {
  content: ''; position: absolute; left: -10px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--star);
}
.rail-btn[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 52px; white-space: nowrap; font-size: 12px; background: var(--ink); color: #fff;
  padding: 4px 8px; border-radius: 6px; opacity: 0; transform: translateX(-4px); pointer-events: none; transition: .2s;
}
.rail-btn:hover::after { opacity: 1; transform: none; }
#app[data-view="detail"] .rail { opacity: 0; transform: translateX(-30px); pointer-events: none; }

/* ============================ HOME ============================ */
.home {
  position: fixed; inset: 0;
  transition: opacity .55s var(--ease), visibility .55s;
}
#app[data-view="detail"] .home { opacity: 0; visibility: hidden; }

.shelf-bg {
  position: absolute; left: 16.5vw; width: 61vw; top: 15.5vh; height: 56vh; background: var(--beige);
  transform-origin: left center; transition: transform .7s var(--ease), height .6s var(--ease);
}
.home.is-grid .shelf-bg { height: 70vh; }
.shelf-head {
  position: absolute; left: 12.2vw; width: calc(61vw + 4.3vw - 4vw); top: 19.5vh;
  display: flex; align-items: center; justify-content: space-between;
}
.shelf-title { margin: 0; font: 300 clamp(26px, 3.4vw, 52px)/1.1 var(--serif); letter-spacing: -.03em; }
.shelf-tools { display: flex; align-items: center; gap: 4px; }
.shelf-count { font-size: 12px; color: var(--muted); margin-right: 8px; }

.shelf {
  position: absolute; left: 12.2vw; right: 0; top: 37vh;
  display: flex; gap: clamp(28px, 4vw, 70px);
  overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth;
  padding: 10px 8vw 24px 0; scrollbar-width: none; outline: none;
}
.shelf::-webkit-scrollbar { display: none; }
.home.is-grid .shelf {
  right: 22.6vw; top: 31vh; bottom: 13vh; flex-wrap: wrap; overflow-x: hidden; overflow-y: auto; align-content: flex-start;
  gap: 28px 3vw; padding: 10px 2vw 30px 0; scroll-snap-type: none; scrollbar-width: thin;
}
.home.is-grid .nowbar { opacity: 0; pointer-events: none; }

.item {
  flex: none; display: flex; gap: clamp(14px, 1.6vw, 26px); align-items: flex-start; text-align: left;
  width: calc(var(--cw) * 2.2);
  opacity: 0; transform: translateX(30px); animation: itemIn .7s var(--ease) forwards;
}
.home.is-grid .item { width: calc(var(--cw) * 2.15); }
@keyframes itemIn { to { opacity: 1; transform: none; } }
.item-cover {
  flex: none; width: var(--cw); aspect-ratio: 300 / 420; position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 14px 28px -14px rgba(10, 14, 30, .5);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.item-cover svg, .book .front svg { width: 100%; height: 100%; }
.item-cover::after { /* punggung buku */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(255, 255, 255, .08) 3%, transparent 7%);
}
.item:hover .item-cover, .item:focus-visible .item-cover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 22px 32px -14px rgba(0, 0, 0, .5); }
.item.is-flying .item-cover { visibility: hidden; }
.item-body { padding-top: clamp(14px, 2.6vh, 30px); min-width: 0; }
.item-title { margin: 0 0 .55em; font: 500 clamp(14px, 1.3vw, 19px)/1.3 var(--sans); }
.item-kind { margin: -.3em 0 .7em; font-size: clamp(11px, .85vw, 13px); color: var(--muted); }
.dots { display: flex; gap: 3px; margin-bottom: 6px; }
.dots { gap: 4px; }
.dots i { width: 14px; height: 2px; border-radius: 1px; background: #D5D9E2; }
.dots i.on { background: var(--star); }
.item-meta { font-size: clamp(11px, .9vw, 13.5px); color: var(--muted); }
.item-meta b { font-weight: 500; color: var(--ink-2); }
.item-tag { display: inline-block; margin-top: 8px; font-size: 11px; padding: 2px 8px; border-radius: 20px; background: rgba(255, 255, 255, .7); color: var(--ink-2); border: 1px solid var(--line); }
.item-tag.saved { border-color: var(--ink); color: var(--ink); }
.shelf-empty { position: absolute; left: 16.5vw; top: 45vh; width: 61vw; text-align: center; color: var(--muted); }

/* -------- Now bar (sedang dikerjakan) -------- */
.nowbar {
  position: absolute; left: 16.5vw; width: 61vw; bottom: 8vh;
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px 16px;
  transition: opacity .4s;
}
.now-cover { width: clamp(40px, 4vw, 64px); aspect-ratio: 300/420; grid-row: span 2; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); cursor: pointer; }
.now-cover svg { width: 100%; height: 100%; }
.now-play { width: 30px; height: 30px; border: 1px solid #9A9A9A; border-radius: 50%; display: grid; place-items: center; grid-row: span 2; transition: .2s; }
.now-play:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.now-play svg { width: 12px; height: 12px; fill: currentColor; margin-left: 2px; }
.now-title { font-size: clamp(12px, 1.05vw, 15px); font-weight: 500; }
.now-title small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.now-time { font-size: 12px; color: var(--ink-2); align-self: end; font-variant-numeric: tabular-nums; }
.now-track { grid-column: 3 / 5; height: 1px; background: #D9D9D9; position: relative; margin-top: 6px; }
.now-track span { position: absolute; left: 0; top: 0; height: 1px; background: var(--label); }
.now-track span::after { content: ''; position: absolute; right: -4px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--label); }

/* ============================ DETAIL ============================ */
.detail { position: fixed; inset: 0; visibility: hidden; pointer-events: none; }
#app[data-view="detail"] .detail { visibility: visible; pointer-events: auto; }

.scene {
  position: absolute; inset: 0; background: var(--scene); overflow: hidden;
  opacity: 0; transition: opacity .7s var(--ease), background-color .6s;
}
#app[data-view="detail"] .scene { opacity: 1; }
.scene-art {
  position: absolute; left: -6vh; top: 2vh; height: 104vh; aspect-ratio: 1;
  transform: scale(1.06) translateX(-2vw); transition: transform 1.2s var(--ease), opacity .6s;
  opacity: .72;
}
.scene-art svg { width: 100%; height: 100%; }
#app[data-view="detail"] .scene-art { transform: none; }
.scene-grain {
  display: none; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.quote {
  position: absolute; left: 4.4vw; top: 43vh; width: 19vw; margin: 0; z-index: 2;
  font: 300 clamp(15px, 1.75vw, 27px)/1.32 var(--serif); color: #fff;
  text-shadow: none;
  opacity: 0; transform: translateY(14px); transition: opacity .6s .35s, transform .8s .35s var(--ease);
}
.quote::before { content: ''; display: block; width: 28px; height: 1px; background: rgba(255, 255, 255, .5); margin-bottom: 1.2em; }
.quote cite { display: block; margin-top: 1.4em; font: 400 12px/1.4 var(--sans); font-style: normal; opacity: .6; letter-spacing: .04em; }
#app[data-view="detail"] .quote { opacity: 1; transform: none; }
#app.reading .quote { opacity: 0; transform: translateX(-20px); transition-delay: 0s; }

.panel {
  position: absolute; z-index: 3; left: 36vw; right: 5vw; top: 16vh; bottom: 15vh;
  background: #fff; display: grid; grid-template-columns: 1fr clamp(84px, 10.5vw, 150px);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateX(8vw);
  transition: opacity .6s .1s, transform .9s .1s var(--ease), left .9s var(--ease), padding .9s var(--ease);
}
#app[data-view="detail"] .panel { opacity: 1; transform: none; }
.panel-main { position: relative; overflow: hidden; }
.panel-info, .panel-read {
  position: absolute; inset: 0; overflow-y: auto; scrollbar-width: thin;
  transition: opacity .45s, transform .6s var(--ease);
}
.panel-info { padding: 7vh 4vw 5vh 14vw; }
.panel-read { padding: 7vh 4vw 5vh 3.4vw; opacity: 0; transform: translateX(30px); pointer-events: none; }
#app.reading .panel-info { opacity: 0; transform: translateX(-30px); pointer-events: none; }
#app.reading .panel-read { opacity: 1; transform: none; pointer-events: auto; transition-delay: .45s; }
#app.reading .panel { left: 44vw; padding-left: 9.5vw; }
#app.closing .detail { visibility: visible; }
#app.swapping .panel-main, #app.swapping .book, #app.swapping .quote, #app.swapping .scene-art { opacity: 0 !important; transition: opacity .25s !important; }

.p-title { margin: 0 0 1.6vh; font: 300 clamp(24px, 2.7vw, 44px)/1.12 var(--serif); letter-spacing: -.03em; }
.p-client { margin: 0 0 4vh; font-weight: 400; color: var(--muted); font-size: clamp(13px, 1vw, 15px); }
.meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2.6vh 2vw; margin: 0 0 3.4vh; }
.meta dt, .lbl { font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: .08em; text-transform: uppercase; }
.plain { font-size: clamp(12.5px, .95vw, 14.5px); line-height: 1.6; }
.meta dd { margin: 0; font-size: clamp(12.5px, .95vw, 14.5px); }
.meta dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.meta dd a:hover { border-color: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 2px; background: #F0F2F6; color: var(--ink-2); }
.p-sum { font-size: clamp(13px, .98vw, 15px); color: var(--ink-2); max-width: 62ch; margin: 3vh 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.panel-actions {
  border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: space-around;
  padding: 5vh 0;
}
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--ink); padding: 10px 14px; border-radius: 10px; transition: background .2s; }
.act:hover { background: #F6F4F0; }
.act svg { width: 22px; height: 22px; }
.act.is-on svg { fill: var(--star); stroke: var(--star); }
.act.is-on span { color: var(--ink); }
#app.reading #actRead svg { fill: var(--ink); }
#app.reading #actRead svg path { stroke: #fff; fill: #fff; }
#app.reading .panel { grid-template-columns: clamp(84px, 10.5vw, 150px) 1fr; }
#app.reading .panel-actions { order: -1; border-left: 0; border-right: 1px solid var(--line); }

/* -------- Ringkasan (mode baca) -------- */
.r-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.r-title { margin: 0 0 4px; font: 400 clamp(20px, 1.9vw, 30px)/1.2 var(--serif); }
.r-sub { font-size: 11px; color: var(--muted); margin: 0 0 3vh; letter-spacing: .08em; text-transform: uppercase; }
.r-text { font-size: clamp(13px, 1vw, 15px); color: var(--ink-2); line-height: 1.7; max-width: 58ch; }
.r-points { padding: 0; margin: 2.4vh 0 0; list-style: none; display: grid; gap: 8px; }
.r-points li { font-size: 13.5px; padding-left: 18px; position: relative; }
.r-points li::before { content: ''; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--ink); }
.r-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4vh; flex-wrap: wrap; }
.r-link { font-size: 13px; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--ink); min-width: 46%; }
.r-pager { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.r-chapters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3vh; }
.r-chapters button { font-size: 11.5px; padding: 4px 10px; border-radius: 2px; border: 1px solid var(--line); color: var(--ink-2); }
.r-chapters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================ BOOK 3D ============================ */
.book {
  --bh: calc(var(--bw) * 1.4);
  position: absolute; z-index: 6; left: 28vw; top: calc(50vh - var(--bh) / 2 + .5vh);
  width: var(--bw); height: var(--bh); perspective: 2600px;
  opacity: 0; transition: left .95s var(--ease), top .95s var(--ease), width .95s var(--ease), opacity .3s;
}
#app[data-view="detail"] .book { opacity: 1; }
#app.reading .book { --bw: clamp(140px, min(18vw, 33vh), 340px); left: calc(53vw - var(--bw)); }
.book-cover, .leaf {
  position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: left center;
  transition: transform 1.05s var(--ease);
}
#app.reading .book-cover { transform: rotateY(-180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.face.back { transform: rotateY(180deg); }
.front { box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 26px 40px -18px rgba(0, 0, 0, .55); }
.front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(255, 255, 255, .16) 2.5%, transparent 6%); }
.book-page, .face.back {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 26px 40px -22px rgba(0, 0, 0, .45);
}
.book-right { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(0, 0, 0, .13), transparent 9%); opacity: 0; transition: opacity .2s .1s; }
#app.reading .book-right { opacity: 1; }
.book-left { background-image: linear-gradient(270deg, rgba(0, 0, 0, .13), transparent 9%) !important; }
.book-right::before { /* tumpukan halaman */
  content: ''; position: absolute; top: 3px; bottom: 3px; right: -4px; width: 4px;
  background: repeating-linear-gradient(90deg, #EEE9DF 0 1px, #fff 1px 2px);
}

/* isi halaman */
.pg { position: absolute; inset: 0; padding: 9% 10% 8%; display: flex; flex-direction: column; font-size: calc(var(--bw) * .043); }
.pg-chap { font-size: .78em; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.pg-title { font: 400 1.5em/1.25 var(--serif); text-align: center; margin: .5em 0 .9em; }
.pg-text { line-height: 1.6; color: #444; text-align: justify; hyphens: auto; }
.pg-text::first-letter { font: 300 2.4em/0.8 var(--serif); float: left; margin: .1em .12em 0 0; color: var(--ink); }
.pg-list { margin: .8em 0 0; padding-left: 1.1em; color: #555; line-height: 1.5; }
.pg-num { margin-top: auto; text-align: center; font-size: .8em; color: var(--muted); }
.pg-img { margin: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .8em; cursor: zoom-in; }
.pg-img img { width: 100%; max-height: 70%; object-fit: contain; background: #F3F0EA; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.pg-img figcaption { font-size: .8em; color: var(--muted); text-align: center; }
.pg-art { flex: 1; display: grid; place-items: center; }
.pg-art svg { width: 82%; height: auto; border-radius: 50%; }
.pg-art .big { font: 300 4em/1 var(--serif); color: var(--ink); opacity: .85; }
.leaf .face.front { box-shadow: none; background: var(--paper); background-image: linear-gradient(90deg, rgba(0, 0, 0, .13), transparent 9%); }
.leaf .face.front::after { display: none; }

/* -------- detail foot -------- */
.detail-foot {
  position: absolute; z-index: 4; left: 0; right: 5vw; bottom: calc(3.5vh + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: space-between; align-items: center; padding-left: calc(var(--rail) / 2 - 18px);
  opacity: 0; transition: opacity .5s .4s;
}
#app[data-view="detail"] .detail-foot { opacity: 1; }
.detail-foot .icon-btn { color: #fff; background: rgba(255, 255, 255, .1); }
.detail-foot .icon-btn:hover { background: rgba(255, 255, 255, .22); }
.detail-nav { color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .1); border-radius: 22px; padding: 0 4px; }
#app[data-view="detail"] .back-btn { color: #fff; }
#app[data-view="detail"] .back-btn:hover { background: rgba(255, 255, 255, .12); }
.detail-nav { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ============================ DOKUMEN ============================ */
.doc {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto;
  transform: translateY(100%); transition: transform .8s var(--ease), visibility .8s; visibility: hidden;
}
#app.doc-open .doc { transform: none; visibility: visible; }
.doc-inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 12vh; }
.doc-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 18px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.doc-top .back-btn { display: flex; }
.doc-top .crumb { font-size: 12px; color: var(--muted); }
.doc-hero { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; padding: 3vh 0 5vh; border-bottom: 1px solid var(--line); }
.doc-cover { box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .5); position: relative; }
.doc-cover svg { width: 100%; height: auto; }
.doc-hero h1 { font: 300 clamp(30px, 4.2vw, 64px)/1.05 var(--serif); margin: 0 0 14px; letter-spacing: -.035em; }
.doc-hero .kind { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.doc-hero .lead { font: 300 clamp(16px, 1.4vw, 21px)/1.5 var(--serif); color: var(--ink-2); max-width: 60ch; margin: 0; }
.doc-body { display: grid; grid-template-columns: 210px 1fr; gap: clamp(24px, 4vw, 64px); padding-top: 5vh; }
.toc { position: sticky; top: 80px; align-self: start; display: grid; gap: 2px; }
.toc a { text-decoration: none; font-size: 13px; color: var(--ink-2); padding: 6px 10px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--ink); border-color: var(--ink); }
.doc-sec { margin-bottom: 7vh; scroll-margin-top: 80px; }
.doc-sec h2 { font: 400 clamp(20px, 1.8vw, 28px)/1.2 var(--serif); margin: 0 0 18px; display: flex; align-items: baseline; gap: 14px; }
.doc-sec h2 small { font: 500 11px var(--sans); letter-spacing: .14em; color: var(--muted); }
.doc-sec p { color: var(--ink-2); line-height: 1.75; max-width: 70ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts div { background: #fff; padding: 16px 18px; }
.facts b { display: block; font: 300 clamp(20px, 1.7vw, 26px)/1.2 var(--serif); margin-top: 2px; }
.chap { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(18px, 3vw, 40px); padding: 26px 0; border-top: 1px solid var(--line); align-items: start; }
.chap:first-of-type { border-top: 0; padding-top: 6px; }
.chap.noimg { grid-template-columns: 1fr; }
.chap h3 { font: 400 20px/1.3 var(--serif); margin: 0 0 8px; }
.chap .n { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.chap p { margin: 0 0 10px; }
.chap ul { margin: 0; padding-left: 18px; color: var(--ink-2); line-height: 1.7; font-size: 14px; }
.chap figure { margin: 0; cursor: zoom-in; }
.chap img { width: 100%; display: block; border: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .5); background: #fff; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles span { padding: 7px 12px; background: #fff; border: 1px solid var(--line); font-size: 13px; border-radius: 2px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--line); }
.timeline div { position: relative; padding-top: 28px; font-size: 13.5px; }
.timeline div::before { content: ''; position: absolute; top: 4px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--label); }
.timeline div b { display: block; font: 400 17px var(--serif); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border: 1px solid var(--ink); text-decoration: none; font-size: 13.5px; transition: .2s; }
.links a:hover { background: var(--ink); color: #fff; }
.doc-next { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 4vh; }
.doc-next button { text-align: left; display: flex; gap: 14px; align-items: center; }
.doc-next button:last-child { text-align: right; flex-direction: row-reverse; }
.doc-next .mini { width: 46px; flex: none; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .5); }
.doc-next .mini svg { width: 100%; height: auto; }
.doc-next small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.doc-next span { font: 400 17px var(--serif); }

/* ============================ DRAWER ============================ */
.drawer-mask { position: fixed; inset: 0; z-index: 70; background: rgba(20, 18, 15, .25); opacity: 0; pointer-events: none; transition: opacity .4s; }
.drawer {
  position: fixed; z-index: 71; top: 0; bottom: 0; left: 0; width: min(380px, 88vw); background: var(--bg);
  transform: translateX(-102%); transition: transform .55s var(--ease), visibility .55s; display: flex; flex-direction: column;
  box-shadow: 20px 0 50px -30px rgba(0, 0, 0, .4); visibility: hidden;
}
#app.drawer-open .drawer { visibility: visible; }
#app.drawer-open .drawer { transform: none; }
#app.drawer-open .drawer-mask { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px 14px 26px; font: 400 18px var(--serif); }
.drawer-head strong { font-weight: 400; }
.drawer-list { list-style: none; margin: 0; padding: 0 14px; overflow-y: auto; flex: 1; }
.drawer-list button { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; text-align: left; }
.drawer-list button:hover { background: var(--beige); }
.drawer-list .mini svg { width: 38px; height: auto; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .5); }
.drawer-list b { display: block; font-weight: 500; font-size: 14.5px; }
.drawer-list small { color: var(--muted); font-size: 12px; }
.drawer-list em { font-style: normal; font-size: 11px; color: var(--ink-2); padding: 2px 8px; border-radius: 20px; background: #EFECE6; white-space: nowrap; }
.drawer-foot { padding: 16px 26px 24px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* ============================ LIGHTBOX ============================ */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 18, 15, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5vh 4vw; gap: 14px; animation: fade .3s; }
.lightbox img { max-width: 100%; max-height: 84vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; }
.lightbox p { color: #eee; font-size: 13px; margin: 0; }
.lb-close { position: absolute; top: 16px; right: 16px; color: #fff; }
.lb-close:hover { background: rgba(255, 255, 255, .12); }
@keyframes fade { from { opacity: 0; } }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  :root { --rail: 0px; --cw: clamp(96px, 30vw, 170px); --bw: clamp(96px, 28vw, 170px); }
  body { overflow: auto; }
  .topbar { padding: env(safe-area-inset-top, 0px) 16px 0 10px; background: linear-gradient(var(--bg) 75%, transparent); }
  #app[data-view="detail"] .topbar { background: none; }
  .brand small { display: none; }
  .search { width: 42vw; }

  .rail {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; height: calc(62px + env(safe-area-inset-bottom, 0px));
    flex-direction: row; justify-content: center; gap: 14px; padding: 8px 16px env(safe-area-inset-bottom, 0px);
    background: var(--bg); border-top: 1px solid var(--line);
  }
  .rail-group { flex-direction: row; }
  .rail-btn.is-on::before { left: 12px; right: 12px; top: auto; bottom: -6px; width: auto; height: 3px; }
  .rail-btn::after { display: none; }
  #app[data-view="detail"] .rail { transform: translateY(30px); }

  .shelf-bg { left: 0; width: 100%; top: 72px; height: 54vh; }
  .shelf-head { left: 16px; right: 12px; width: auto; top: 88px; }
  .shelf-tools #btnPrev, .shelf-tools #btnNext, .shelf-count { display: none; }
  .shelf { left: 0; top: 152px; padding: 10px 16px 24px; gap: 22px; }
  .item { flex-direction: column; width: var(--cw); gap: 10px; }
  .item-body { padding-top: 0; }
  .home.is-grid .shelf { right: 0; top: 140px; bottom: 80px; padding: 10px 16px 30px; gap: 26px 5vw; justify-content: flex-start; }
  .home.is-grid .item { width: calc((100vw - 32px - 5vw) / 2); }
  .home.is-grid .item-cover { width: 70%; }
  .home.is-grid .shelf-bg { height: calc(100vh - 160px); }
  .shelf-empty { left: 16px; width: calc(100% - 32px); }
  .nowbar { left: 16px; right: 16px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

  .scene-art { left: 50%; top: 4vh; height: auto; width: min(110vw, 62vh); transform: translateX(-50%) scale(1.06); }
  #app[data-view="detail"] .scene-art { transform: translateX(-50%); }
  .quote { display: none; }
  .panel { left: 12px; right: 12px; top: 40vh; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); grid-template-columns: 1fr; grid-template-rows: 1fr auto; transform: translateY(10vh); }
  .panel-info { padding: 22px 20px 20px; }
  .p-head { margin-left: calc(var(--bw) + 14px); min-height: calc(var(--bw) * 1.4 - 46px); margin-bottom: 18px; }
  .p-title { font-size: 24px; margin-bottom: 10px; }
  .p-client { margin-bottom: 0; font-size: 13px; }
  .panel-read { padding: 22px 20px; }
  .panel-actions { flex-direction: row; border-left: 0; border-top: 1px solid var(--line); padding: 4px 8px; }
  .act { flex-direction: row; gap: 8px; }
  .book { left: 26px; top: calc(40vh - 34px); }
  #app.reading .book { --bw: clamp(110px, 42vw, 220px); left: 50vw; top: calc(39vh - var(--bw) * 1.4 - 8px); }
  #app.reading .book { top: max(70px, calc(40vh - var(--bw) * 1.4 - 10px)); }
  #app.reading .panel { left: 12px; padding-left: 0; grid-template-columns: 1fr; }
  #app.reading .panel-actions { order: 0; border-right: 0; }
  #app.reading .scene-art { opacity: .35; }
  .detail-foot { display: none; }

  .doc-hero { grid-template-columns: 110px 1fr; align-items: start; }
  .doc-body { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; overflow-x: auto; gap: 0; }
  .toc a { border-left: 0; border-bottom: 2px solid var(--line); white-space: nowrap; }
  .chap { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline div { padding: 0 0 0 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================ DOKUMENTASI TEKNIS ============================ */
.item-tag.tech { background: var(--ink); color: #fff; border-color: var(--ink); }
.doc.is-tech { overflow: hidden; background: #fff; }
.doc.is-tech .doc-inner { max-width: none; padding: 0; height: 100%; }
.tdoc {
  height: 100%; display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 232px; grid-template-rows: 60px minmax(0, 1fr);
}
.tdoc-top {
  grid-column: 1 / -1; position: relative; z-index: 4; display: flex; align-items: center; gap: 14px;
  padding: 0 20px; border-bottom: 1px solid var(--line); background: #fff;
}
.tdoc-top .back-btn { display: flex; color: var(--ink); }
.tdoc-crumb { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdoc-crumb b { color: var(--ink); font-weight: 500; }
.tdoc-navbtn { display: none; }
.tdoc-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(380px, 40vw);
  background: #F3F4F7; border: 1px solid transparent; border-radius: 8px; padding: 7px 10px; transition: border-color .2s, background .2s;
}
.tdoc-search:focus-within { background: #fff; border-color: #C9CED8; }
.tdoc-search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.tdoc-search input { border: 0; outline: 0; background: transparent; width: 100%; font: 13.5px var(--sans); color: var(--ink); }
.tdoc-results {
  position: absolute; top: 54px; right: 20px; width: min(580px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 48px -20px rgba(15, 18, 30, .3);
}
.tdoc-results a { display: block; padding: 11px 16px; border-bottom: 1px solid #F0F1F4; text-decoration: none; }
.tdoc-results a:hover { background: #F7F8FA; }
.tdoc-results b { font-weight: 500; font-size: 14px; }
.tdoc-results small { margin-left: 8px; font-size: 11px; color: var(--muted); }
.tdoc-results span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.tdoc-results mark { background: #FFEFA8; color: inherit; border-radius: 2px; }
.tdoc-results .none { margin: 0; padding: 16px; color: var(--muted); font-size: 13px; }

.tdoc-side { overflow-y: auto; padding: 18px 14px 48px; background: #FAFBFC; border-right: 1px solid var(--line); scrollbar-width: thin; }
.tdoc-proj { display: flex; gap: 12px; align-items: center; padding: 4px 8px 6px; }
.tdoc-cover { width: 40px; flex: none; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .5); }
.tdoc-cover svg { width: 100%; height: auto; }
.tdoc-proj strong { display: block; font-weight: 500; font-size: 15px; }
.tdoc-proj small { display: block; font-size: 11.5px; color: var(--muted); }
.tdoc-todo {
  display: block; margin: 12px 8px 0; padding: 8px 10px; font-size: 12px; text-decoration: none;
  color: #7A5400; background: #FFF7DE; border: 1px solid #F1DDA0; border-radius: 8px;
}
.tdoc-todo:hover { background: #FFF0C2; }
.nav-h { margin: 22px 8px 6px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tdoc-nav a {
  display: flex; gap: 6px; padding: 6px 8px; border-radius: 6px; font-size: 13.5px; line-height: 1.35;
  color: var(--ink-2); text-decoration: none;
}
.tdoc-nav a .no { width: 22px; flex: none; font-size: 11px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.tdoc-nav a:hover { background: #EEF0F4; color: var(--ink); }
.tdoc-nav a.on { background: var(--ink); color: #fff; }
.tdoc-nav a.on .no { color: rgba(255, 255, 255, .55); }
.nav-grp summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.nav-grp summary::-webkit-details-marker { display: none; }
.nav-grp summary::before { content: "\203A"; width: 22px; flex: none; color: var(--muted); transition: transform .2s; display: inline-block; text-align: center; }
.nav-grp[open] summary::before { transform: rotate(90deg); }
.nav-grp summary span { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 400; }
.nav-grp summary:hover { background: #EEF0F4; }
.nav-grp a { padding-left: 36px; font-size: 13px; }

.tdoc-main { overflow-y: auto; padding: 40px clamp(20px, 5vw, 64px) 96px; }
.tdoc-toc { overflow-y: auto; padding: 40px 18px 40px 4px; scrollbar-width: thin; }
.toc-h { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 12px; }
.tdoc-toc a {
  display: block; padding: 4px 10px; font-size: 12.5px; line-height: 1.4; color: var(--muted); text-decoration: none;
  border-left: 2px solid var(--line);
}
.tdoc-toc a.l3 { padding-left: 22px; font-size: 12px; }
.tdoc-toc a:hover { color: var(--ink); }
.tdoc-toc a.on { color: var(--ink); border-color: var(--ink); }
.tdoc-scrim { display: none; }

/* ----- isi markdown ----- */
.md { max-width: 820px; margin: 0 auto; font-size: 15.5px; line-height: 1.75; color: #23262E; }
.md-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 12px; color: var(--muted); }
.md-meta i { font-style: normal; opacity: .5; }
.md-meta code { font-size: 11px; }
.md h1, .md h2, .md h3, .md h4 { position: relative; color: var(--ink); scroll-margin-top: 20px; }
.md h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 400; line-height: 1.15; letter-spacing: -.03em; margin: .1em 0 .7em; }
.md h2 { font-size: 23px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; margin: 2.3em 0 .7em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.md h3 { font-size: 18px; font-weight: 600; margin: 1.9em 0 .5em; }
.md h4 { font-size: 15.5px; font-weight: 600; margin: 1.6em 0 .4em; }
.hanchor { position: absolute; left: -1.1em; opacity: 0; color: var(--muted); text-decoration: none; font-weight: 400; transition: opacity .15s; }
.md h2 .hanchor { top: 1.1em; }
.md h1:hover .hanchor, .md h2:hover .hanchor, .md h3:hover .hanchor, .md h4:hover .hanchor { opacity: 1; }
.md .flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 40% { background: #FFF3BF; } 100% { background: transparent; } }
.md p, .md ul, .md ol { margin: .8em 0; }
.md ul, .md ol { padding-left: 1.4em; }
.md li { margin: .25em 0; }
.md li > ul, .md li > ol { margin: .2em 0; }
.md a { color: #2457D6; text-decoration: underline; text-decoration-color: rgba(36, 87, 214, .3); text-underline-offset: 2px; }
.md a:hover { text-decoration-color: currentColor; }
.md strong { font-weight: 600; color: var(--ink); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.md code { font-family: ui-monospace, "Cascadia Code", Consolas, "SF Mono", monospace; font-size: .85em; background: #F1F3F7; padding: .12em .38em; border-radius: 4px; color: #1F2430; word-break: break-word; }
.ext { font-size: .75em; margin-left: 2px; }
.xref { border-bottom: 1px dotted var(--muted); cursor: help; }
.xref.broken { color: #B42318; }
.code-wrap { position: relative; margin: 1.2em 0; }
.code-wrap pre { margin: 0; background: #11141B; color: #E4E7EE; border-radius: 10px; padding: 32px 18px 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.code-wrap pre code { background: none; color: inherit; padding: 0; font-size: inherit; word-break: normal; }
.code-lang { position: absolute; top: 9px; left: 18px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8B93A5; }
.code-copy { position: absolute; top: 6px; right: 8px; font-size: 11px; color: #C3C8D2; border: 1px solid #2D333F; border-radius: 6px; padding: 3px 9px; }
.code-copy:hover { background: #222834; }
.table-wrap { overflow-x: auto; margin: 1.3em 0; border: 1px solid var(--line); border-radius: 8px; }
.md table { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.55; }
.md th { background: #F5F6F8; text-align: left; font-weight: 600; white-space: nowrap; }
.md th, .md td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md tr:last-child td { border-bottom: 0; }
.md td code { font-size: .82em; }
.md blockquote { margin: 1.2em 0; padding: 10px 16px; border-left: 3px solid #C9CED8; background: #F7F8FA; color: var(--ink-2); border-radius: 0 8px 8px 0; }
.md blockquote p { margin: .35em 0; }
.md blockquote.callout-warn { border-left-color: #E0A100; background: #FFF8E1; color: #5A4300; }
.md-fig { margin: 1.4em 0; cursor: zoom-in; }
.md-fig img { display: block; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .5); }
.md-fig figcaption { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.mermaid-wrap { overflow-x: auto; margin: 1.4em 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #FCFCFD; text-align: center; }
.mermaid-wrap pre.mermaid { margin: 0; background: none; font-size: 12px; color: var(--muted); text-align: left; white-space: pre; }
.mermaid-wrap pre.mermaid[data-processed] { text-align: center; white-space: normal; }
.mermaid-wrap svg { max-width: 100%; height: auto; }

.tdoc-pager { max-width: 820px; margin: 64px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tdoc-pager a { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; transition: border-color .2s; }
.tdoc-pager a:hover { border-color: var(--ink); }
.tdoc-pager a.nx { text-align: right; }
.tdoc-pager small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tdoc-pager span { font-size: 15px; font-weight: 500; }

@media (max-width: 1200px) {
  .tdoc { grid-template-columns: 264px minmax(0, 1fr); }
  .tdoc-toc { display: none; }
}
@media (max-width: 860px) {
  .tdoc { grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr); }
  .tdoc-top { gap: 6px; padding: 0 10px; }
  .tdoc-navbtn { display: grid; }
  .tdoc-crumb, .tdoc-top .back-btn span { display: none; }
  .tdoc-search { width: auto; flex: 1; }
  .tdoc-results { top: 50px; right: 16px; }
  .tdoc-side {
    position: fixed; z-index: 6; top: 56px; bottom: 0; left: 0; width: min(320px, 86vw);
    transform: translateX(-105%); transition: transform .35s var(--ease);
  }
  .tdoc.nav-open .tdoc-side { transform: none; }
  .tdoc-scrim { display: block; position: fixed; z-index: 5; inset: 56px 0 0; background: rgba(15, 18, 30, .3); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .tdoc.nav-open .tdoc-scrim { opacity: 1; pointer-events: auto; }
  .tdoc-main { padding: 24px 16px 64px; }
  .md { font-size: 15px; }
  .hanchor { display: none; }
  .tdoc-pager { grid-template-columns: 1fr; }
}
#app .tdoc-top .back-btn, #app .doc-top .back-btn { color: var(--ink); }
#app .tdoc-top .back-btn:hover, #app .doc-top .back-btn:hover { background: #F1F3F7; }
.mermaid-wrap:has(svg) { cursor: zoom-in; }
.lightbox img[src^="data:image/svg"] { background: #fff; padding: 24px; border-radius: 10px; width: min(1400px, 92vw); }

.md blockquote.callout-lock { border-left-color: #4B5563; background: #F3F4F6; color: #374151; }
.md blockquote.callout-check { border-left-color: #2457D6; background: #F3F6FD; color: #263449; }
.md blockquote.callout-info { border-left-color: #9CA3AF; background: #F8F9FB; color: #4B5563; }
.md blockquote ul { margin: .3em 0; }
.tdoc-todo { color: #3B4252; background: #F1F3F7; border-color: #E1E4EA; }
.tdoc-todo:hover { background: #E8EBF1; }
.tdoc-results .res-h { margin: 0; padding: 12px 16px; font-size: 12px; color: var(--muted); background: #F7F8FA; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
