/*
  Blocks data room v4 (16 Nov 2026). Loaded after app.css.
  Same direction as v3: Apple hardware feel, Inter, light grouped pages with dark keynote bands.
  New here: collapsible sections, the nine-layer stack, the lean-first budget, the reader with comments,
  search, the left drawer and the phone home. One living background per page; one signature effect (particles).
*/
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); } 18% { box-shadow: 0 0 0 4px rgba(0, 122, 255, .6); } 100% { box-shadow: 0 0 0 4px rgba(0, 122, 255, 0); } }
.flash { animation: flash 1.8s var(--ease) 1; }

/* ---------- Top bar ---------- */
.brand { text-align: left; color: inherit; border-radius: 12px; padding: 4px 8px 4px 4px; margin-left: -4px; }
.brand .bn { display: block; }
.tb-btn { position: relative; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--ink-2); flex: none;
  background: linear-gradient(180deg, #fff, #f1f1f4); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 0 0 .5px rgba(0, 0, 0, .12), inset 0 1px 0 #fff; transition: transform .15s var(--ease); }
.tb-btn:active { transform: scale(.94); }
.cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.tb-btn .cnt { position: absolute; top: -5px; right: -5px; box-shadow: 0 0 0 2px #fafafc; }
.tb-btn.menu, .tb-btn.doc, .tb-title { display: none; }
.sr-open { display: inline-flex; align-items: center; gap: 8px; height: 38px; min-width: 168px; padding: 0 10px 0 12px; border-radius: 11px; font-size: 13.5px; font-weight: 500; color: var(--muted);
  background: rgba(0, 0, 0, .05); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .06); transition: background .2s; }
.sr-open:hover { background: rgba(0, 0, 0, .08); }
.sr-open span { flex: 1; text-align: left; }
.sr-open kbd { font: 600 11px var(--font); padding: 2px 7px; border-radius: 6px; background: #fff; color: var(--muted); box-shadow: 0 1px 1px rgba(0, 0, 0, .1), inset 0 0 0 .5px rgba(0, 0, 0, .1); }

/* ---------- Sections that open and close ---------- */
.band.sec { padding: 34px 0; transition: padding .45s var(--ease); border-top: .5px solid var(--sep); }
.band.sec.dark { border-top-color: rgba(255, 255, 255, .06); }
.band.sec.open { padding: 80px 0 88px; }
.sec-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sec-h .head { margin-bottom: 0; }
.band.sec:not(.open) .head { gap: 8px; }
.band.sec:not(.open) .head h2 { font-size: clamp(21px, 2.5vw, 30px); transition: font-size .3s; }
.band.sec:not(.open) .head .lead { display: none; }
.sec-x { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: rgba(0, 0, 0, .055); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .05); transition: transform .5s var(--spring), background .2s; }
.dark .sec-x { color: #fff; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); }
.sec-h:hover .sec-x { background: rgba(0, 0, 0, .1); }
.dark .sec-h:hover .sec-x { background: rgba(255, 255, 255, .16); }
.sec.open .sec-x { transform: rotate(180deg); }
.sec-b { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.sec.open .sec-b { grid-template-rows: 1fr; }
.sec-in { min-height: 0; min-width: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .5s; }
.sec-in::before { content: ''; display: block; height: 40px; }
.sec.open .sec-in { visibility: visible; transition-delay: 0s; }
.sec.open.settled .sec-in { overflow: visible; }
.subnav .wrap { display: flex; align-items: center; gap: 10px; }
.subnav .row { flex: 1; min-width: 0; }
.sn-all { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: rgba(0, 0, 0, .05); transition: background .2s, color .2s; }
.sn-all:hover { background: rgba(0, 0, 0, .09); color: var(--ink); }

/* ---------- 01 Hero: three lines that open ---------- */
.hero h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.02; }
.hero { min-height: 0; padding: 64px 0 60px; }
.mani { display: grid; gap: 8px; margin-top: 30px; max-width: 580px; }
.mani-i { border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .06); }
.mani-i summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 150px minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 16px; }
.mani-i summary::-webkit-details-marker { display: none; }
.mani-i .k { white-space: nowrap; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-muted); display: flex; gap: 6px; align-items: center; }
.mani-i b { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.mani-i summary > .ico { color: var(--dark-muted); transition: transform .4s var(--spring); }
.mani-i[open] summary > .ico { transform: rotate(180deg); }
.mani-i p { padding: 0 16px 15px; color: #c9c9d2; font-size: 14.5px; line-height: 1.5; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- 04 The nine layers as one stack ---------- */
.stk-row { position: relative; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
.stk-row::before { content: ''; position: absolute; left: 4%; right: 4%; top: 57px; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16) 8%, rgba(255, 255, 255, .16) 92%, transparent); }
.stk { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 12px 4px 14px; border-radius: 18px; text-align: center; color: #f2f2f7;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1);
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out) calc(var(--i) * 55ms), transform .6s var(--spring) calc(var(--i) * 55ms), box-shadow .25s, background .25s; }
.stack.in .stk { opacity: 1; transform: none; }
.stack.in .stk:hover, .stack.in .stk.on { transform: translateY(-4px); transition-delay: 0s; }
.stk .no { justify-self: start; margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--dark-muted); }
.stk .disc { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #dfe7ff; background: #1d1d27; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .1); }
.stk .nm { font-size: 13.5px; font-weight: 650; line-height: 1.15; min-height: 31px; display: grid; align-items: center; }
.stk .tg { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #7a7a88; }
.stk.gap { background: linear-gradient(180deg, rgba(255, 159, 10, .16), rgba(255, 159, 10, .04)); box-shadow: inset 0 0 0 1px rgba(255, 159, 10, .5); }
.stk.gap .disc { color: #ffd08a; background: #2b2113; box-shadow: inset 0 0 0 .5px rgba(255, 159, 10, .6); }
.stk.gap .tg { color: #ffb340; }
.stk.gap .disc::after { content: ''; position: absolute; inset: -5px; border-radius: 18px; border: 1.5px solid rgba(255, 159, 10, .55); animation: gapp 2.6s var(--ease) infinite; }
@keyframes gapp { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.22); opacity: 0; } }
.stk::after { content: ''; position: absolute; left: 50%; bottom: -18px; width: 2px; height: 18px; margin-left: -1px; background: linear-gradient(180deg, rgba(255, 255, 255, .22), #3d8bff); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease-out) calc(.55s + var(--i) * 45ms); }
.stk.gap::after { background: linear-gradient(180deg, #ff9f0a, #3d8bff); }
.stack.in .stk::after { transform: scaleY(1); }
.stk.on { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); box-shadow: inset 0 0 0 1.5px #6fb1ff, 0 14px 32px rgba(47, 124, 246, .3); }
.stk.gap.on { background: linear-gradient(180deg, rgba(255, 159, 10, .26), rgba(255, 159, 10, .08)); box-shadow: inset 0 0 0 1.5px #ffb340, 0 14px 32px rgba(255, 159, 10, .28); }
.stk-bar { position: relative; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 62px; padding: 10px 16px; border-radius: 18px; color: #fff; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, #3d8bff, #1a5fe0); box-shadow: 0 16px 44px rgba(47, 124, 246, .42), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 .5px rgba(255, 255, 255, .2);
  opacity: 0; transform: translateY(16px) scaleX(.94); transition: opacity .6s .5s, transform .8s var(--spring) .5s; }
.stack.in .stk-bar { opacity: 1; transform: none; }
.stk-bar > * { position: relative; }
.stk-bar b { font-size: 17px; }
.stk-bar > span:last-child { font-size: 14.5px; opacity: .92; }
.stk-bar .run { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .34) 50%, transparent 68%); background-size: 220% 100%; animation: run 3.4s linear infinite; }
@keyframes run { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.stk-leg { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 13px; color: var(--dark-muted); }
.stk-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.stk-leg .lv { background: rgba(255, 255, 255, .32); } .stk-leg .gp { background: #ff9f0a; }
.stk-leg .hint { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.stk-det { margin-top: 14px; padding: 20px; }
.sd-h { display: flex; align-items: center; gap: 14px; }
.sd-h small { font-size: 12px; color: var(--dark-muted); } .sd-h h3 { font-size: 22px; } .sd-h .chip { margin-left: auto; }
.sd-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.sd-g > div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); }
.sd-g span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-muted); display: flex; gap: 6px; align-items: center; }
.sd-g p { margin-top: 6px; font-size: 15px; font-weight: 550; line-height: 1.35; }
.sd-g .earn { background: rgba(52, 199, 89, .1); box-shadow: inset 0 0 0 .5px rgba(52, 199, 89, .35); } .sd-g .earn span { color: #7fe0a0; }
.sd-l { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.sd-l > span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-muted); margin-right: 4px; }
.sd-l .leader { color: inherit; }

/* Map controls */
.pin .pl { display: none; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 6px; padding: 2px 7px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: #f2f2f7; white-space: nowrap; background: rgba(11, 11, 16, .72); pointer-events: none; }
.map.few .pin .pl { display: block; }
.map-ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: 100%; }
.sel { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sel.dark { color: #fff; background: linear-gradient(180deg, #2c2c36, #1b1b23); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 6px rgba(0, 0, 0, .3); }
.sel select { -webkit-appearance: none; appearance: none; background: transparent; border: 0; color: inherit; font: inherit; padding: 0 20px 0 0; cursor: pointer; outline: none; }
.sel select option { color: #111; }
.sel > .ico:last-child { position: absolute; right: 10px; pointer-events: none; opacity: .7; }
.sel:focus-within { outline: 2.5px solid var(--blue); outline-offset: 2px; }

/* Platform demo buttons */
.demo-strip { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); }
.ds-t { display: flex; gap: 12px; align-items: center; } .ds-t b { display: block; font-size: 16px; } .ds-t small { color: var(--dark-muted); font-size: 13px; }
.ds-b { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-b { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; text-decoration: none !important; color: var(--ink); text-align: left;
  background: linear-gradient(180deg, #fff, #f1f1f4); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), inset 0 0 0 .5px rgba(0, 0, 0, .12), inset 0 1px 0 #fff; transition: transform .3s var(--spring); }
.demo-b:hover { transform: translateY(-2px); }
.demo-b b { display: block; font-size: 14px; line-height: 1.2; } .demo-b small { display: block; font-size: 12px; color: var(--muted); }
.demo-b > .ico { color: var(--muted); }
.dark .demo-b { color: #fff; background: linear-gradient(180deg, #2e2e39, #1d1d25); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 12px rgba(0, 0, 0, .3); }
.dark .demo-b small, .dark .demo-b > .ico { color: var(--dark-muted); }
.dark .demo-b .ibox { --c: #007AFF !important; }

/* 07: the retail note, and the Ondo research inside Ondo's profile */
.retail-line { margin-top: 16px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); text-align: left; font-size: 15px; color: var(--ink-2); }
.retail-line > .ico { color: var(--pink); } .retail-line span { flex: 1; } .retail-line b { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 14px; white-space: nowrap; }
.rflow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rflow > div { position: relative; padding: 10px 12px 10px 40px; border-radius: 12px; background: var(--surface-2); }
.rflow i { position: absolute; left: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--pink); }
.rflow b { display: block; font-size: 14px; } .rflow span { font-size: 12.5px; color: var(--muted); line-height: 1.3; display: block; }
.rsteps { display: grid; gap: 10px; } .rsteps > div { display: grid; gap: 4px; } .rsteps .chip { justify-self: start; } .rsteps p { font-size: 14.5px; line-height: 1.4; }

/* ---------- Budget v4 ---------- */
.b4-hero { padding: 24px 28px 22px; }
.b4-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.b4-top-r { display: flex; gap: 10px; align-items: center; }
.b4-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: end; margin-top: 20px; }
.b4-cap { font-size: 15px; font-weight: 650; color: var(--muted); }
.b4-num { font-size: clamp(46px, 7.4vw, 96px); font-weight: 780; letter-spacing: -.045em; line-height: 1; margin-top: 6px; min-height: 1em; }
.b4-sub { margin-top: 12px; color: var(--muted); font-size: 15.5px; max-width: 470px; line-height: 1.45; }
.b4-sub .held { display: block; margin-top: 6px; color: #b26a00; font-weight: 600; font-size: 14px; } .b4-sub .held .ico { vertical-align: -2px; margin-right: 5px; }
.b4-l .seg { margin-top: 18px; max-width: 100%; }
.b4-bars { position: relative; }
.b4-bars svg { display: block; width: 100%; height: auto; overflow: visible; }
.b4-bars .hit { fill: transparent; cursor: pointer; }
.b4-bars .base { fill: #dcdee6; transition: fill .35s, y .5s var(--ease-out), height .5s var(--ease-out); } .b4-bars .add { fill: #e9e2f6; transition: fill .35s, y .5s var(--ease-out), height .5s var(--ease-out); }
.b4-bars .bar.in .base { fill: #1a73ff; } .b4-bars .bar.in .add { fill: #a06cf2; }
.b4-bars .bar:hover .base, .b4-bars .bar:hover .add { filter: brightness(1.08); }
.b4-bars .bx { font: 600 11px var(--font); fill: var(--faint); } .b4-bars .bar.in .bx { fill: var(--ink-2); }
.b4-bars .by { font: 700 10px var(--font); fill: var(--faint); letter-spacing: .08em; } .b4-bars .bsep { stroke: var(--sep); stroke-width: 1; }
.b4-barnote { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 2px; font-size: 12px; color: var(--faint); }
.b4-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; border-top: .5px solid var(--sep); }
.b4-stats > div { display: grid; gap: 2px; padding: 16px 18px 2px 0; } .b4-stats > div + div { padding-left: 18px; border-left: .5px solid var(--sep); }
.b4-stats span { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.b4-stats b { font-size: clamp(17px, 2vw, 24px); letter-spacing: -.02em; } .b4-stats small { font-size: 12.5px; color: var(--faint); }
.b4-gauge { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 18px; padding: 13px 16px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--sep); }
.b4-gauge span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); } .b4-gauge b { font-size: 14.5px; } .g-r { text-align: right; }
.g-track { position: relative; height: 10px; border-radius: 10px; background: #e2e2e8; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .14); }
.g-track i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 10px; border-radius: 10px; background: linear-gradient(90deg, #1a73ff, #a06cf2); transition: width .7s var(--spring); }
.g-track em { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #fff, #f1f1f4 70%, #e4e4e8); box-shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 0 0 .5px rgba(0, 0, 0, .12); transition: left .7s var(--spring); }
.b4-sh { margin-top: 34px; flex-wrap: wrap; } .b4-sh .small { margin-left: auto; }
.b4-cover { display: grid; gap: 10px; }
.b4-tile { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.b4-tile .t-h { position: relative; width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto 30px; gap: 14px; align-items: center; text-align: left; padding: 14px 18px 17px; transition: background .2s; }
.b4-tile .t-h:hover { background: var(--surface-2); }
.b4-tile .nm b { display: block; font-size: 16.5px; font-weight: 650; } .b4-tile .nm small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.b4-tile .amt { font-size: 18px; font-weight: 700; text-align: right; letter-spacing: -.01em; } .b4-tile .amt small { display: block; font-size: 11.5px; color: #b26a00; font-weight: 600; letter-spacing: 0; }
.b4-tile .meter { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; } .b4-tile .meter i { display: block; height: 100%; background: var(--c); border-radius: 0 3px 3px 0; opacity: .85; transition: width .7s var(--ease-out); }
.b4-tile.open .dd-x { transform: rotate(90deg); }
.t-b { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); } .b4-tile.open .t-b { grid-template-rows: 1fr; }
.t-in { overflow: hidden; min-height: 0; min-width: 0; visibility: hidden; transition: visibility 0s .45s; } .b4-tile.open .t-in { visibility: visible; transition-delay: 0s; }
.b4-lh, .b4-line { display: grid; grid-template-columns: minmax(0, 1fr) 112px 118px 46px; gap: 14px; align-items: center; padding: 10px 18px 10px 64px; }
.b4-lh { padding-top: 12px; padding-bottom: 4px; border-top: .5px solid var(--sep); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.b4-lh span:nth-child(2), .b4-lh span:nth-child(4) { text-align: center; } .b4-lh span:nth-child(3) { text-align: right; }
.b4-line { border-top: .5px solid var(--sep-2); }
.b4-line .nm b { display: block; font-size: 14.5px; font-weight: 600; } .b4-line .nm span { font-size: 12.5px; color: var(--muted); }
.b4-line .amt { text-align: right; font-weight: 650; font-size: 14.5px; } .b4-line .amt small { display: block; font-size: 11px; color: #b26a00; }
.b4-line.off .nm, .b4-line.off .amt, .b4-line.off .stp { opacity: .4; }
.b4-line .stp .chg { color: var(--blue); }
.b4-adds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.b4-add { padding: 18px; display: grid; gap: 10px; align-content: start; grid-template-rows: auto 1fr auto; transition: box-shadow .35s, transform .4s var(--spring); }
.b4-add.on { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 75%, transparent), 0 14px 32px color-mix(in srgb, var(--c) 22%, transparent); }
.a-h { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; } .a-h h3 { font-size: 16.5px; }
.a-d { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.b4-add .seg { justify-self: start; }
.a-f { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; padding-top: 10px; border-top: .5px solid var(--sep); }
.a-f b { font-size: 19px; letter-spacing: -.02em; } .b4-add.on .a-f b { color: color-mix(in srgb, var(--c) 78%, #000); } .a-f span { font-size: 12.5px; color: var(--muted); }
.b4-foot { margin-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 .5px var(--sep); }
.f-eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.f-eq span { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); } .f-eq span .ico { color: var(--green); } .f-eq b { color: var(--ink); } .f-eq i, .f-eq em { font-style: normal; } .f-eq i { color: var(--faint); }
.f-a { display: flex; gap: 8px; flex-wrap: wrap; }
.b4-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .5s var(--spring);
  background: rgba(250, 250, 252, .84); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-top: .5px solid var(--sep); }
.b4-bar.on { transform: none; }
.b4-bar .wrap { display: flex; align-items: center; gap: 14px; }
.b4-bar .wrap > div { display: flex; align-items: baseline; gap: 10px; margin-right: auto; min-width: 0; }
.b4-bar span { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; } .b4-bar b { font-size: 20px; letter-spacing: -.02em; } .b4-bar small { font-size: 12.5px; color: var(--muted); }

/* ---------- Fundraising addition ---------- */
.f4-rec { margin-top: 16px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.f4-rec small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); } .f4-rec p { margin-top: 3px; font-size: 15.5px; font-weight: 550; line-height: 1.45; }

/* ---------- Questions v4 ---------- */
.q4-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; } .q4-top .head { margin-bottom: 0; }
.q4-prog { height: 6px; width: min(320px, 100%); border-radius: 6px; background: #e2e2e8; overflow: hidden; } .q4-prog i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #34C759, #30B0C7); transition: width .8s var(--ease-out); }
.q4-sum { padding: 20px 22px; display: grid; gap: 14px; }
.s-h { display: flex; gap: 12px; align-items: center; } .s-h b { display: block; font-size: 17px; } .s-h small { color: var(--muted); font-size: 13px; }
.s-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.s-c { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--sep); }
.s-c.lean { background: color-mix(in srgb, var(--blue) 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 32%, transparent); }
.s-c span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.s-c b { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; } .s-c em { font-style: normal; color: var(--muted); margin-left: 6px; font-size: 14px; } .s-c small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.s-r { display: flex; gap: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; } .s-r .ico { margin-top: 4px; color: var(--blue); }
.q4-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.q4-list { display: grid; gap: 10px; }
.q4-card { padding: 0; overflow: hidden; }
.q-h { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 30px; gap: 14px; align-items: center; text-align: left; padding: 16px 18px; transition: background .2s; }
.q-h:hover { background: var(--surface-2); }
.q-t small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c); }
.q-t b { display: block; font-size: 17px; font-weight: 650; line-height: 1.3; margin-top: 2px; }
.q-a { display: flex; gap: 6px; margin-top: 5px; font-size: 14px; color: var(--muted); line-height: 1.4; } .q-a .ico { margin-top: 4px; flex: none; color: var(--c); }
.q-m { display: grid; gap: 6px; justify-items: end; }
.q4-card.open .dd-x { transform: rotate(90deg); }
.q4-card.is-done .q-t b { color: var(--ink-2); }
.q-b { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); } .q4-card.open .q-b { grid-template-rows: 1fr; }
.q-in { overflow: hidden; min-height: 0; min-width: 0; visibility: hidden; transition: visibility 0s .45s; padding: 0 18px 0 64px; } .q4-card.open .q-in { visibility: visible; transition-delay: 0s; padding-bottom: 18px; }
.q-cost { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.q-cost > div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--sep); }
.q-cost span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); } .q-cost p { margin-top: 4px; font-size: 14.5px; } .q-cost .nil { color: var(--faint); font-size: 14.5px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.q-w { display: flex; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--muted); } .q-w .ico { margin-top: 3px; }
.q-f { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.q4-note { flex: 1; min-width: 180px; height: 34px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--sep); font-size: 14px; }
.q-s.on { color: #1b7f37; }

/* ---------- Documents list ---------- */
.d4-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.d4-card { padding: 0; overflow: hidden; display: grid; }
.d-open { display: grid; text-align: left; }
.d-thumb { position: relative; display: block; height: 230px; overflow: hidden; background: linear-gradient(180deg, #edf0f6, #e3e7ef); border-bottom: .5px solid var(--sep); }
.d-thumb img { display: block; width: 74%; margin: 20px auto 0; border-radius: 6px 6px 0 0; box-shadow: 0 10px 28px rgba(0, 0, 0, .2); transition: transform .55s var(--spring); }
.d-open:hover .d-thumb img, .d-open:hover .d-thumb i { transform: translateY(-8px); }
.d-thumb.sheets { display: grid; place-items: center; background: linear-gradient(180deg, #eaf5ee, #dcefe3); }
.d-thumb.sheets i { position: absolute; inset: 24px 30px -12px; border-radius: 8px 8px 0 0; background-color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .14); transition: transform .55s var(--spring);
  background-image: linear-gradient(#217346, #217346), linear-gradient(#e3e6ea 1px, transparent 1px), linear-gradient(90deg, #e3e6ea 1px, transparent 1px); background-size: 100% 22px, 100% 22px, 68px 100%; background-repeat: no-repeat, repeat, repeat; }
.d-thumb .fi { position: relative; box-shadow: 0 8px 20px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .3); }
.d-t { display: block; padding: 14px 18px 6px; } .d-t b { display: block; font-size: 18px; letter-spacing: -.01em; } .d-t small { color: var(--muted); font-size: 13.5px; }
.d-a { display: flex; gap: 8px; align-items: center; padding: 8px 18px 18px; }
.d-c { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); } .d-c:hover { color: var(--blue); }
.d4-all { margin-top: 16px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); font-weight: 600; font-size: 15px; }
.d4-all span { flex: 1; text-align: left; } .d4-all b { color: var(--muted); } .d4-all > .ico:first-child { color: var(--indigo); } .d4-all > .ico:last-child { color: var(--faint); }

/* ---------- Reader ---------- */
body.rd-on, body.dr-on, body.sr-on { overflow: hidden; }
.rd { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #e7e9ee; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .25s, transform .4s var(--ease-out); }
.rd.on { opacity: 1; transform: none; }
.rd-bar { display: flex; align-items: center; gap: 10px; min-width: 0; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: rgba(250, 250, 252, .92); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: .5px solid var(--sep); }
.rd-bar .fi { width: 30px; height: 36px; font-size: 8.5px; }
.rd-bar .t { min-width: 0; margin-right: auto; } .rd-bar .t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rd-bar .t span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rd-tabs { min-width: 0; display: flex; }
.rd-zoom { grid-template-columns: 30px minmax(54px, 1fr) 30px; flex: none; }
.rd-zoom #rdZ { background: none; box-shadow: none; margin: 0; height: 100%; font-weight: 650; font-size: 13px; cursor: pointer; color: var(--ink); }
#rdCom { flex: none; } #rdCom[aria-pressed="true"] { color: var(--blue); }
.rd-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 0; min-height: 0; transition: grid-template-columns .32s var(--ease); }
.rd.side .rd-main { grid-template-columns: minmax(0, 1fr) 360px; }
.rd-body { overflow: auto; min-height: 0; overscroll-behavior: contain; touch-action: pan-x pan-y; outline: none; -webkit-overflow-scrolling: touch; }
.rd-canvas { width: max-content; min-width: 100%; }
.rd.pages .rd-canvas { display: grid; justify-content: center; gap: 26px; padding: 24px 24px 40px; }
.rd .pg { position: relative; margin: 0; width: var(--pw, 900px); background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 12px 32px rgba(0, 0, 0, .12); }
.rd .pg img { display: block; width: 100%; height: 100%; border-radius: 3px; user-select: none; -webkit-user-drag: none; }
.rd .pg figcaption { position: absolute; left: 50%; bottom: -19px; transform: translateX(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd .pins { position: absolute; inset: 0; pointer-events: none; }
.pin-c { position: absolute; transform: translate(-50%, -50%); min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; pointer-events: auto; cursor: pointer;
  background: linear-gradient(180deg, #3d95ff, #0a6cff); box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 60, 160, .4); transition: transform .3s var(--spring); }
.pin-c:hover { transform: translate(-50%, -50%) scale(1.15); }
.pin-c.is-done { background: linear-gradient(180deg, #b9bcc6, #8e8e93); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .2); }
.pin-c.draft { background: linear-gradient(180deg, #ffb340, #ff9500); animation: pinp 1.2s var(--ease) infinite; pointer-events: none; }
@keyframes pinp { 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 10px rgba(255, 149, 0, .25); } }
.pin-c.flash { animation: pinf 1.6s var(--ease) 1; }
@keyframes pinf { 0%, 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 14px rgba(0, 122, 255, .3); transform: translate(-50%, -50%) scale(1.3); } }
.rd.pinning .rd-canvas, .rd.pinning .rd-canvas td { cursor: crosshair; }
.rd.sheets .rd-canvas { padding: 16px; }
.xl-wrap { position: relative; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 10px 30px rgba(0, 0, 0, .08); overflow: hidden; }
.rd table.xl { transform-origin: 0 0; }
.rd table.xl td.has-c { outline: 2px solid #0a6cff; outline-offset: -2px; background-image: linear-gradient(225deg, #0a6cff 0 9px, transparent 9px) !important; cursor: pointer; }
.rd table.xl td.has-c.is-done { outline-color: #b0b3bb; background-image: linear-gradient(225deg, #b0b3bb 0 9px, transparent 9px) !important; }
.rd table.xl td.draft { outline: 2px dashed #ff9500; outline-offset: -2px; }
@keyframes tdf { 0%, 55% { outline: 3px solid #ff9500; outline-offset: -3px; background-color: #fff3d6; } 100% { outline: 3px solid transparent; outline-offset: -3px; } }
.rd table.xl td.flash, .rd .pg.flash { animation: tdf 1.8s var(--ease) 1; box-shadow: none; }
.rd .pg.flash { animation-name: pgf; } @keyframes pgf { 0%, 50% { outline: 4px solid #ff9500; outline-offset: 2px; } 100% { outline: 4px solid transparent; outline-offset: 2px; } }
.rd-hint { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 6; transform: translate(-50%, 90px); display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 16px; color: #fff; background: rgba(28, 28, 30, .93); box-shadow: var(--sh-3); font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .45s var(--spring); }
.rd.pinning .rd-hint { transform: translate(-50%, 0); } .rd-hint span { display: inline-flex; gap: 8px; align-items: center; }

/* Comments */
.rd-side { min-width: 0; overflow: hidden; visibility: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); background: var(--surface); border-left: .5px solid var(--sep); }
.rd.side .rd-side { visibility: visible; }
.rd-side > * { min-width: 360px; }
.cm-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px 16px; } .cm-h b { font-size: 16px; }
.cm-new { padding: 8px 16px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; border-bottom: .5px solid var(--sep); }
.cm-k { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-sync { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; color: var(--muted); } .cm-sync.on { color: #1b7f37; }
.cm-anchor { display: inline-flex; align-items: center; gap: 6px; justify-self: start; height: 26px; padding: 0 4px 0 10px; border-radius: 13px; font-size: 12.5px; font-weight: 600; color: #b26a00; background: color-mix(in srgb, var(--orange) 15%, #fff); }
.cm-anchor button { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; } .cm-anchor button:hover { background: rgba(0, 0, 0, .08); }
.cm-new textarea { width: 100%; resize: vertical; min-height: 62px; max-height: 200px; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--sep); font-size: 14.5px; line-height: 1.4; }
.cm-new textarea:focus, .cm-row input:focus, .q4-note:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.cm-row { display: flex; gap: 6px; align-items: center; } .cm-row input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border-radius: 10px; border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--sep); font-size: 13.5px; }
.cm-list { overflow: auto; padding: 10px 12px 24px; display: grid; gap: 8px; align-content: start; overscroll-behavior: contain; }
.cm { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--sep); }
.cm.is-note { background: color-mix(in srgb, var(--yellow) 13%, #fff); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--orange) 32%, transparent); }
.cm.is-done { opacity: .62; } .cm.is-done p { text-decoration: line-through; }
.cm-m { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); } .cm-m b { color: var(--ink); font-size: 13.5px; }
.cm-n { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); } .cm-n.g { background: #b9bcc6; }
.cm-a { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; } .cm-a[data-act="done"] { margin-left: auto; }
.cm-a:hover { background: rgba(0, 0, 0, .07); color: var(--ink); } .cm-a.sure { background: var(--red); color: #fff; }
.cm p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-w { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--blue); }
.cm-empty { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.45; padding: 28px 16px; } .cm-empty .ico { width: 28px; height: 28px; opacity: .45; }
.cm-g { display: grid; gap: 8px; } .cm-g h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0 0; }
.cmx .cm-new { padding: 0 0 14px; }

/* ---------- Search ---------- */
.srch { position: fixed; inset: 0; z-index: 400; display: grid; justify-items: center; align-items: start; padding: 9vh 16px 16px; background: rgba(10, 10, 16, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.srch.on { opacity: 1; pointer-events: auto; }
.sr-box { width: min(680px, 100%); max-height: 78vh; display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 22px; overflow: hidden; background: rgba(252, 252, 254, .97); box-shadow: var(--sh-3), inset 0 0 0 .5px rgba(255, 255, 255, .8); transform: translateY(-12px) scale(.98); transition: transform .4s var(--spring); }
.srch.on .sr-box { transform: none; }
.sr-in { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 14px 0 18px; border-bottom: .5px solid var(--sep); color: var(--muted); }
.sr-in input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 18px; outline: none; color: var(--ink); -webkit-appearance: none; appearance: none; }
.sr-in input::-webkit-search-cancel-button { display: none; }
.sr-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .06); color: var(--ink-2); }
.sr-out { overflow: auto; padding: 8px; overscroll-behavior: contain; }
.sr-g { padding: 12px 12px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sr-r { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; text-align: left; padding: 9px 12px; border-radius: 14px; }
.sr-r.on { background: rgba(0, 122, 255, .1); }
.sr-t b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sr-t small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-r mark { background: rgba(255, 204, 0, .45); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-tag { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 2px 8px; border-radius: 8px; background: rgba(0, 0, 0, .05); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.sr-r > .ico { color: var(--faint); }
.sr-empty { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 12px 8px; } .sr-empty span { font-size: 13px; color: var(--muted); margin-right: 4px; } .sr-empty .chip { cursor: pointer; height: 30px; }
.sr-tip { display: flex; gap: 8px; padding: 8px 12px 14px; font-size: 13px; color: var(--muted); line-height: 1.45; } .sr-tip .ico { margin-top: 3px; }
.sr-none { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; color: var(--muted); } .sr-none b { color: var(--ink); font-size: 16px; } .sr-none .ico { opacity: .4; margin-bottom: 6px; }

/* ---------- Drawer ---------- */
.dscrim { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .36); opacity: 0; pointer-events: none; transition: opacity .3s; } .dscrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 120; left: 0; top: 0; bottom: 0; width: min(324px, 86vw); padding: calc(14px + env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain;
  display: grid; gap: 6px; align-content: start; background: rgba(250, 250, 252, .97); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); box-shadow: var(--sh-3);
  transform: translateX(-105%); visibility: hidden; transition: transform .5s var(--spring), visibility 0s .5s; }
.drawer.on { transform: none; visibility: visible; transition-delay: 0s; }
.dr-h { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; } .dr-h b { display: block; font-size: 17px; } .dr-h small { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; } .dr-h .x { margin-left: auto; }
.dr-search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 13px; background: rgba(0, 0, 0, .05); color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.dr-nav { display: grid; gap: 2px; }
.dr-i { display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; padding: 0 12px; border-radius: 13px; font-size: 16px; font-weight: 600; text-align: left; }
.dr-i > .ico { color: var(--c, var(--muted)); } .dr-i span { flex: 1; } .dr-i:hover { background: rgba(0, 0, 0, .04); }
.dr-i.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), inset 0 0 0 .5px rgba(0, 0, 0, .06); }
.dr-i.ph { display: none; }
.dr-sub { display: none; gap: 1px; padding: 2px 0 8px 22px; } .dr-sub.show { display: grid; }
.dr-sub button { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); text-align: left; } .dr-sub button:hover { background: rgba(0, 0, 0, .04); }
.dr-sub b { width: 24px; font-size: 11px; color: var(--faint); display: inline-grid; place-items: center; }
.dr-g { margin: 10px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dr-demos, .home-demos { display: grid; gap: 8px; } .dr-demos { padding: 0 2px; }
.dr-demos .demo-b, .home-demos .demo-b { width: 100%; } .dr-demos .demo-b > span:nth-child(2), .home-demos .demo-b > span:nth-child(2) { flex: 1; }
.dr-cm { margin-top: 8px; }

/* ---------- Home (phones) ---------- */
#view-home { display: none; }
.home { padding: 14px 16px calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 22px; max-width: 560px; margin: 0 auto; }
.home-top { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 16px 24px; border-radius: 28px; color: #fff; overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, #1b2b55, #0b0b10 72%); box-shadow: var(--sh-2); }
.home-glow { position: absolute; inset: -45%; background: conic-gradient(from 0deg, rgba(10, 132, 255, .38), rgba(191, 90, 242, .3), rgba(255, 55, 95, .24), rgba(10, 132, 255, .38)); filter: blur(60px); opacity: .7; animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.home-top > :not(.home-glow) { position: relative; }
.home-top h1 { font-size: 30px; margin-top: 8px; } .home-top p { color: #c9c9d6; font-size: 15px; max-width: 280px; line-height: 1.4; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hcard { position: relative; border-radius: 24px; background: var(--surface); box-shadow: var(--sh-1); animation: hin .6s var(--spring) both; animation-delay: calc(var(--i) * 70ms + .1s); }
@keyframes hin { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.hc-main { width: 100%; height: 100%; min-height: 150px; display: grid; grid-template-rows: 1fr auto auto; gap: 3px; text-align: left; padding: 16px 14px 16px 16px; border-radius: inherit; transition: transform .2s var(--ease); }
.hc-main:active { transform: scale(.97); }
.hc-main .ibox { width: 46px; height: 46px; border-radius: 14px; }
.hc-main b { font-size: 18px; letter-spacing: -.02em; } .hc-main small { font-size: 13px; color: var(--muted); line-height: 1.3; }
.hc-doc { position: absolute; top: 14px; right: 12px; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--c) 32%, transparent); }
.hc-doc:active { transform: scale(.92); }
.home-sec h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 4px 8px; }
.home-list { border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.home-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; } .home-list button + button { border-top: .5px solid var(--sep); }
.home-list .fi { width: 34px; height: 40px; font-size: 9px; } .home-list .t { flex: 1; min-width: 0; } .home-list b { display: block; font-size: 15.5px; } .home-list small { font-size: 12.5px; color: var(--muted); } .home-list > button > .ico { color: var(--faint); }
.home-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 16px; background: rgba(0, 0, 0, .05); color: var(--muted); font-size: 15.5px; }

/* ---------- Opening: new wording, shorter run ---------- */
.ld-text { font-size: clamp(24px, 5.6vw, 80px); }
.ld-text .col span i { font-style: normal; color: #fff; -webkit-text-fill-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .sr-open { min-width: 0; width: 38px; padding: 0; justify-content: center; } .sr-open span, .sr-open kbd { display: none; } }
@media (max-width: 1080px) {
  .b4-adds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stk-row { gap: 6px; } .stk .nm { font-size: 12px; } .stk .disc { width: 40px; height: 40px; border-radius: 12px; } .stk-row::before { top: 52px; }
}
@media (max-width: 900px) {
  .tb-btn.menu { display: grid; }
  .tabbar { display: none !important; }
  main { padding-bottom: 0; }
  .toast { bottom: calc(28px + env(safe-area-inset-bottom)); }
  .band.sec.open { padding: 56px 0 64px; }
  .b4-main { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .d4-list { grid-template-columns: minmax(0, 1fr); } .d-thumb { height: 180px; }
  .demo-strip { grid-template-columns: minmax(0, 1fr); }
  .rd.side .rd-main { grid-template-columns: minmax(0, 1fr) 320px; } .rd-side > * { min-width: 320px; }
}
@media (max-width: 760px) {
  .top { gap: 8px; }
  .brand > div { display: none; } .brand { padding: 2px; margin-left: 0; }
  .tb-title { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .tb-btn.doc { display: grid; } .tb-btn.cm { display: none; }
  .top .spacer { display: none; } .top .right { margin-left: auto; }
  #view-home.on { display: block; }
  .dr-i.ph { display: flex; }
  .band.sec { padding: 22px 0; } .band.sec.open { padding: 40px 0 48px; }
  .sec-x { width: 40px; height: 40px; } .sec-in::before { height: 26px; }
  .band.sec:not(.open) .head h2 { font-size: 20px; }
  .hero { padding-top: 28px; } .mani-i summary { grid-template-columns: minmax(0, 1fr) 18px; gap: 2px 10px; } .mani-i .k { grid-column: 1; } .mani-i b { grid-column: 1; } .mani-i summary > .ico { grid-column: 2; grid-row: 1 / 3; }
  .stk-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .stk-row::before, .stk::after { display: none; }
  .stk { padding: 10px 4px 12px; } .stk .nm { min-height: 0; font-size: 13px; }
  .stk-bar { flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; } .stk-bar > span:last-child { width: 100%; font-size: 13px; }
  .stk-leg .hint { margin-left: 0; } .sd-g { grid-template-columns: minmax(0, 1fr); } .sd-h h3 { font-size: 19px; }
  .map-ctl { width: 100%; } .map-ctl .sel { flex: none; }
  .b4-hero { padding: 18px 16px 16px; } .b4-top-r #b4Doc { display: none; }
  .b4-l .seg { display: grid; width: 100%; } .b4-l .seg button { padding: 0 6px; font-size: 12.5px; }
  .b4-stats { grid-template-columns: minmax(0, 1fr); } .b4-stats > div { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 11px 0 9px; } .b4-stats > div + div { padding-left: 0; border-left: 0; border-top: .5px solid var(--sep); }
  .b4-stats small { display: none; } .b4-stats b { font-size: 16px; text-align: right; }
  .b4-gauge { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; } .g-track { grid-column: 1 / -1; grid-row: 2; }
  .b4-sh { margin-top: 26px; } .b4-sh .small { margin-left: 42px; width: 100%; margin-top: -8px; }
  .b4-tile .t-h { grid-template-columns: 32px minmax(0, 1fr) auto 24px; gap: 10px; padding: 12px 12px 15px; } .b4-tile .t-h > .chip { display: none; } .b4-tile .amt { font-size: 16px; } .b4-tile .nm small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .b4-lh { display: none; } .b4-line { grid-template-columns: minmax(0, 1fr) auto 46px; gap: 6px 10px; padding: 10px 12px; }
  .b4-line .nm { grid-column: 1; } .b4-line .amt { grid-column: 2; grid-row: 1; } .b4-line .sw { grid-column: 3; grid-row: 1 / 3; } .b4-line .stp { grid-column: 1 / 3; grid-row: 2; justify-self: start; width: 116px; }
  .b4-adds { grid-template-columns: minmax(0, 1fr); gap: 10px; } .b4-add { padding: 14px; }
  .b4-foot { padding: 14px; } .f-a { width: 100%; } .f-a .btn { flex: 1; }
  .b4-bar small { display: none; } .b4-bar b { font-size: 18px; }
  .q4-top #qDoc { display: none; } .s-g, .q-cost { grid-template-columns: minmax(0, 1fr); }
  .q-h { grid-template-columns: 32px minmax(0, 1fr) 24px; gap: 10px; padding: 14px 12px; } .q-m { grid-column: 2; grid-row: 2; grid-auto-flow: column; justify-content: start; justify-items: start; } .q-h .dd-x { grid-column: 3; grid-row: 1; }
  .q-t b { font-size: 16px; } .q-in { padding: 0 12px; } .q-f .q4-note { flex-basis: 100%; }
  .f4-rec { padding: 14px; }
  .srch { padding: 0; background: var(--bg); } .sr-box { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; transform: none; } .sr-in { height: calc(58px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); } .sr-in input { font-size: 17px; }
  .sr-tag { display: none; } .sr-r { grid-template-columns: auto minmax(0, 1fr) 16px; }
  .rd-bar { flex-wrap: wrap; gap: 8px; padding-left: 10px; padding-right: 10px; } .rd-bar .fi, .rd-bar .t span, #rdCom span { display: none; } .rd-bar .t { flex: 1; }
  .rd-tabs { order: 9; width: 100%; } .rd-tabs:empty { display: none; } .rd-tabs .seg { width: 100%; display: flex; } .rd-tabs .seg button { flex: none; }
  .rd-zoom { grid-template-columns: 30px 48px 30px; }
  .rd.pages .rd-canvas { padding: 12px 8px 36px; gap: 22px; } .rd.sheets .rd-canvas { padding: 8px; }
  .rd-main, .rd.side .rd-main { grid-template-columns: minmax(0, 1fr); }
  .rd-side { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; height: min(66vh, 560px); border-left: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); transform: translateY(104%); transition: transform .5s var(--spring), visibility 0s .5s; padding-bottom: env(safe-area-inset-bottom); }
  .rd.side .rd-side { transform: none; transition-delay: 0s; } .rd-side > * { min-width: 0; }
  .rd-hint { white-space: normal; width: calc(100% - 24px); justify-content: space-between; }
}
@media (max-width: 600px) { .map.few:not(.zoomed) .pin .pl { display: none; } .sn-all span { display: none; } .sn-all { width: 32px; padding: 0; justify-content: center; } .rflow { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .stk, .stk-bar { opacity: 1 !important; transform: none !important; } .stk::after { transform: scaleY(1) !important; }
  .home-glow, .stk-bar .run, .stk.gap .disc::after { animation: none !important; }
}
