/* CHIKARA Ledger: product styles on top of the Shell Kit. Colour comes only from the kit's variables. */
:root { color-scheme: light; }
html, body { margin: 0; height: 100%; background: #F7F1E5; }
html[data-theme-dark] body { background: #0F1010; }
.stage { position: fixed; inset: 0; container-type: inline-size; }
.shell { --d1: 120ms; --d2: 200ms; --d3: 320ms; --d4: 480ms; --d5: 700ms; --o-ease: cubic-bezier(.2,.7,.3,1); --o-out: cubic-bezier(.05,.72,.12,1); --o-emph: cubic-bezier(.2,.9,.08,1); --o-paper: cubic-bezier(.22,1.14,.36,1); --stagger: 52ms;
  --bad: #9B2C2C; --ok: #1F7A5C; --crack-dark: rgba(30,20,8,.6); --crack-light: rgba(255,255,255,.9); transition: padding-top var(--d3) var(--o-ease); }
.shell[data-mode="dark"] { --bad: #EE8E8E; --ok: #5FC4B3; --crack-dark: rgba(0,0,0,.7); --crack-light: rgba(255,240,200,.75); }
.tab { font-variant-numeric: tabular-nums; }
.shell [hidden] { display: none !important; }

/* stacking ladder (Standards 16.6): header 80, drawer 130, modal 150, island 200, petals 249, halo 250, toast 300, tour 500 */
.shell .halo-backdrop { z-index: 248; } .shell .halo-petals { z-index: 249; } .shell .halo { z-index: 250; }
.shell .island { z-index: 200; } .shell .scrim { z-index: 120; } .shell .drawer { z-index: 130; } .shell .pop { z-index: 170; } .shell .cmdk { z-index: 175; }
.shell .toast, .shell .u-toast, .shell .update-bar { z-index: 300; }
.shell .sh-top { z-index: 80; }
@container (min-width: 761px) { #bellBtn { display: none; } }

/* ---- type and page ---- */
.shell .sh-main { padding-bottom: 7rem; }
.shell .view { max-width: 980px; margin: 0 auto; }
.shell .view h1 { font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.04; margin: .3rem 0 .7rem; letter-spacing: -.005em; }
.shell .view h1 em { font-style: italic; color: var(--accent-ink); font-weight: 500; }
.shell .lead { max-width: 58ch; color: var(--muted); margin: 0 0 1.2rem; }
.shell h2 { font-size: 1.5rem; } .shell h3 { font-size: 1.28rem; margin: 0; }
.shell .fine { font-size: .76rem; color: var(--muted); line-height: 1.5; margin: .4rem 0 0; } .shell .fine.pad { margin: 1rem 0; }
.shell p { margin: 0 0 .6rem; }
.shell a { color: var(--primary-ink); }
.sec-t { display: flex; align-items: baseline; justify-content: space-between; margin: 1.8rem 0 .6rem; } .sec-t h2 { margin: 0; }
.link { color: var(--primary-ink); font-size: .8rem; font-weight: 600; text-decoration: underline; min-height: 44px; padding: 0 .3rem; }
.est { font-style: normal; font: 600 .56rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: .1rem .4rem; color: var(--accent-ink); white-space: nowrap; }
.ok { color: var(--ok); } .bad { color: var(--bad); }

/* ---- controls ---- */
.shell .btn { min-height: 44px; border-radius: 10px; transition: transform var(--d1) var(--o-out), background var(--d2), border-color var(--d2), box-shadow var(--d2); }
.shell .btn:active:not(:disabled) { transform: scale(.97); }
.shell .btn:disabled { opacity: .5; cursor: not-allowed; }
.shell .btn--sm { padding: .3rem .8rem; font-size: .78rem; }
.shell .btn--ghost { background: transparent; } .shell .btn--ghost:hover { background: var(--bg-alt); }
.shell .btn--danger { background: var(--bad); color: #fff; border-color: transparent; }
.btn-row { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; } .btn-row > .btn { flex: 1 1 auto; justify-content: center; } .btn-row.wrap > .btn { flex: 0 1 auto; }
.btn-col { display: grid; gap: .55rem; margin-top: .6rem; } .btn-col .btn { justify-content: flex-start; }
.quick { display: flex; gap: .55rem; flex-wrap: wrap; margin: .2rem 0 1rem; } .quick .btn { flex: 1 1 130px; justify-content: center; }
.chip-row { display: flex; gap: .45rem; overflow-x: auto; padding: .1rem 0 .6rem; scrollbar-width: none; margin: 0 -.2rem; } .chip-row::-webkit-scrollbar { display: none; }
.pchip { flex: none; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 99px; font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--surface); }
.pchip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.shell .seg button { min-height: 44px; } .seg.wide { display: flex; width: 100%; margin: .4rem 0 1rem; } .seg.wide button { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; } .chip-btn { min-height: 44px; padding: 0 .95rem; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-size: .84rem; font-weight: 600; }
.chip-btn:hover { border-color: var(--primary-ink); }
.switch { position: relative; flex: none; width: 52px; height: 30px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-alt); transition: background var(--d2); }
.switch::before { content: ''; position: absolute; inset: -8px -4px; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: transform var(--d2) var(--o-paper); }
.switch[aria-checked="true"] { background: var(--primary); } .switch[aria-checked="true"] i { transform: translateX(22px); }
.toggle-row small { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; } .toggle-row > span:first-child { min-width: 0; }
.fld { margin-bottom: .95rem; } .fld label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .3rem; } .fld small { display: block; color: var(--muted); font-size: .72rem; margin-top: .25rem; }
.inp { width: 100%; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; } textarea.inp { resize: vertical; min-height: 96px; }
.inp:focus { border-color: var(--primary-ink); } .inp.slim { width: auto; min-width: 150px; } .fld.search { margin-bottom: .6rem; }
.fld-err { color: var(--bad); font-size: .8rem; font-weight: 600; margin: 0 0 .6rem; }
.check-row { display: flex; gap: .7rem; align-items: center; min-height: 44px; font-size: .88rem; } .check-row input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; }
.check-row small { display: block; color: var(--muted); font-size: .72rem; }
input[type=range] { width: 100%; accent-color: var(--primary); min-height: 44px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 .8rem; }

/* ---- surfaces ---- */
.shell .card { position: relative; margin-bottom: .9rem; background: var(--surface); }
.card.flat { background: var(--bg-alt); }
.card .eyebrow { display: block; margin-bottom: .35rem; } .eyebrow.b { margin: .9rem 0 .2rem; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; } .kv:last-of-type { border-bottom: 0; }
.kv small { display: block; color: var(--muted); font-size: .72rem; } .kv b { font-weight: 600; text-align: right; }
.kv.gap b { color: var(--bad); }
.grid2 { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); } .grid2.small { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid2 > .card { margin-bottom: 0; } .grid2 { margin-bottom: .9rem; }
.hero { display: block; width: 100%; text-align: left; padding: 1.2rem 1.3rem; } .hero .hero-v { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 1; color: var(--primary-ink); margin: .2rem 0 .5rem; }
.hero .hero-s { display: block; font-size: .85rem; color: var(--muted); } .hero.good .hero-v { color: var(--ok); }
.hero-m { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--primary-ink); margin: .2rem 0 .6rem; }
.sts .formula, .sts .tap-hint { display: block; font-size: .8rem; color: var(--muted); } .sts .formula { max-height: 0; overflow: hidden; opacity: 0; transition: max-height var(--d3) var(--o-ease), opacity var(--d3); } .sts.open .formula { max-height: 4em; opacity: 1; margin-bottom: .3rem; }
.kpi b { font-size: 2rem; } .kpi span { display: block; margin-top: .3rem; }
.gauge { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--bg-alt); margin: 1rem 0 .6rem; border: 1px solid var(--line); }
.gauge i, .legend i { display: block; height: 100%; } .g-t { background: var(--accent); } .g-a { background: var(--primary); } .g-c { background: color-mix(in srgb, var(--muted) 45%, var(--bg)); } .g-g { background: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .72rem; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: .35rem; } .legend i { width: 10px; height: 10px; border-radius: 50%; }
.card.warn { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); } .card.nudge, .card.recurring { border-style: dashed; }
.delta.up { color: var(--accent-ink); } .delta.down { color: var(--primary-ink); }
.note-bar { background: var(--bg-alt); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: .7rem .9rem; font-size: .82rem; margin: 0 0 1rem; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; } .empty-t { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary-ink); margin-bottom: .3rem; }
.first-run { text-align: center; padding: 1.6rem 1.2rem; } .first-run .btn-col .btn { justify-content: center; }
.bar { height: 10px; border-radius: 99px; background: var(--bg-alt); border: 1px solid var(--line); overflow: hidden; margin: .5rem 0; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; transition: width var(--d4) var(--o-out); }
.goal-top { display: flex; justify-content: space-between; align-items: baseline; } .goal-pct { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-ink); }
.goal-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.row-tap-card { display: block; width: 100%; text-align: left; }

/* ---- rows ---- */
.rows { margin: .3rem 0 1rem; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .8rem; align-items: center; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .5rem; text-align: left; width: 100%; }
.row.quiet { background: transparent; border-style: dashed; }
.row-tap { min-height: 56px; cursor: pointer; } .row-tap:hover { border-color: var(--primary-ink); }
.row-main { display: grid; min-width: 0; } .row-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; } .row-s { font-size: .76rem; color: var(--muted); }
.row-amt { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); } .row-amt.in { color: var(--accent-ink); }
.row-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; } .card .row-act { margin-top: .7rem; }
.btn--hold { position: relative; overflow: hidden; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: transparent; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.btn--hold .hold-fill { position: absolute; inset: 0; background: color-mix(in srgb, var(--bad) 22%, transparent); transform: scaleX(0); transform-origin: left; }
.btn--hold.is-holding .hold-fill { transform: scaleX(1); transition: transform 850ms linear; } .btn--hold > * { position: relative; }
.rrow { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); } .rrow:last-child { border: 0; } .rrow-m { display: grid; min-width: 0; } .rrow-m b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rrow-m small { color: var(--muted); font-size: .72rem; }

/* ---- recall ---- */
.ritem h3 { margin: .35rem 0 .2rem; } .ritem-p { color: var(--ink); font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.ritem-meta { display: flex; gap: .35rem; flex-wrap: wrap; } .ritem.fading { opacity: .8; border-style: dashed; }
.tag { font: 600 .56rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: .12rem .5rem; color: var(--accent-ink); } .tag.gold { background: var(--primary); color: var(--on-primary); border-color: transparent; } .tag.soft { color: var(--muted); }
.packlist { max-height: 34vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: .3rem .8rem; margin-bottom: .9rem; }
.meter { height: 8px; border-radius: 99px; background: var(--bg-alt); border: 1px solid var(--line); overflow: hidden; margin: .4rem 0; } .meter i { display: block; height: 100%; width: 0; background: var(--primary); transition: width var(--d4) var(--o-out); }
.seal-mini { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--primary); margin-right: .45rem; vertical-align: -2px; }

/* ---- sheets (Origami: Modal Fold) ---- */
.sh-wrap { position: absolute; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; padding-top: 12px; }
.shell.has-island .sh-wrap { padding-top: calc(var(--island-strip) + 4px); }
.sh-back { position: absolute; inset: 0; background: rgba(10,8,4,.5); opacity: 0; transition: opacity var(--d3); } .sh-wrap.in .sh-back { opacity: 1; }
.sh-panel { position: relative; width: min(560px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; padding: .4rem 1.2rem 1.4rem; opacity: 0; transform-origin: 50% 100%; transform: perspective(900px) rotateX(-12deg) translateY(36px); transition: transform var(--d3) var(--o-paper), opacity var(--d3) var(--o-ease); box-shadow: 0 -20px 60px rgba(0,0,0,.28); }
.sh-wrap.wide .sh-panel { width: min(680px, 100%); }
.sh-wrap.in .sh-panel { opacity: 1; transform: none; } .sh-wrap.out .sh-panel { opacity: 0; transform: perspective(900px) rotateX(8deg) translateY(30px); transition-duration: var(--d2); } .sh-wrap.out .sh-back { opacity: 0; }
.sh-wrap.instant, .sh-wrap.instant .sh-panel { transition: none !important; }
.sh-crease { position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 99px; background: var(--line); }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0 .3rem; } .sh-head h2 { margin: 0; font-size: 1.7rem; }
.sh-sub { color: var(--muted); font-size: .88rem; margin: 0 0 1rem; } .sh-foot { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; } .sh-foot .btn { flex: 1 1 auto; justify-content: center; } 
.sh-danger { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line); display: flex; } .sh-danger .btn { flex: 1; justify-content: center; }
.whatif { margin-top: 1.4rem; padding: .9rem; border: 1px dashed var(--line); border-radius: 12px; } .whatif label { font-size: .78rem; font-weight: 600; }
.steps { padding-left: 1.2rem; } .steps li { margin-bottom: .4rem; }
.about { display: flex; gap: 1rem; align-items: center; } .about img { border-radius: 50%; border: 2px solid var(--accent); }
@container (min-width: 761px) { .sh-wrap { align-items: center; padding: 1rem; } .shell.has-island .sh-wrap { padding-top: calc(var(--island-strip) + 4px); } .sh-panel { border-radius: 18px; border-bottom: 1px solid var(--line); max-height: calc(100% - 2rem); transform-origin: 50% 0; transform: perspective(900px) rotateX(-8deg) translateY(-14px); } }
@container (max-width: 760px) { .shell[data-variant="sovereign"] .sh-body { padding-bottom: calc(var(--halo-size) + 34px); } }

/* ---- toasts, update bar ---- */
.shell .toast, .u-toast { left: 50%; bottom: calc(var(--halo-size) + 36px); max-width: calc(100% - 2rem); text-align: center; }
@container (min-width: 761px) { .shell .toast, .u-toast { bottom: 44px; } }
.u-toast { position: absolute; transform: translate(-50%, 10px); display: flex; align-items: center; gap: .9rem; background: var(--island-bg); color: var(--island-ink); border-radius: 12px; padding: .35rem .5rem .35rem 1rem; font-size: .84rem; font-weight: 600; opacity: 0; transition: opacity var(--d2), transform var(--d3) var(--o-paper); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.u-toast.show { opacity: 1; transform: translate(-50%, 0); } .u-undo { min-height: 44px; padding: 0 1rem; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.update-bar { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--island-strip) + 6px); display: flex; align-items: center; gap: .9rem; background: var(--island-bg); color: var(--island-ink); border-radius: 12px; padding: .35rem .5rem .35rem 1rem; font-size: .84rem; font-weight: 600; max-width: calc(100% - 1.5rem); }

/* ---- halo state ---- */
.halo.state-attention::after { content: ''; position: absolute; top: 0; right: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bad); border: 2px solid var(--bg); z-index: 3; }
.halo.long-press-fired::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--primary); animation: echo 700ms var(--o-out) both; pointer-events: none; }
@keyframes echo { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

/* ---- Origami 3.5D ---- */
.tilt { transform-style: preserve-3d; }
.shell[data-depth="35d"] .tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(calc(1 - var(--press, 0) * .015)); transition: transform var(--d2) var(--o-out), box-shadow var(--d2); will-change: transform; }
.shell[data-depth="35d"] .tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--lx, 50%) var(--ly, 0%), rgba(255,255,255,.2), transparent 55%); opacity: 0; transition: opacity var(--d2); } .shell[data-depth="35d"] .tilt:hover::after { opacity: 1; }
.shell[data-depth="35d"] .tilt:hover, .shell[data-depth="3d"] .tilt { box-shadow: 0 18px 40px rgba(0,0,0,.12), 0 2px 0 color-mix(in srgb, var(--accent) 35%, transparent); }
.shell[data-depth="3d"] .tilt { transform: none; }
.shell[data-depth="2d"] .tilt { transform: none; box-shadow: none; }
.shell .view.on { animation: om-fold var(--d3) var(--o-paper) both; transform-origin: calc(50% - var(--dir, 1) * 50%) 0; }
.shell .view.on.quiet { animation: none; }
.shell[data-depth="2d"] .view.on { animation: om-fade var(--d3) var(--o-ease) both; }
@keyframes om-fold { from { opacity: 0; transform: perspective(900px) rotateY(calc(var(--dir, 1) * -6deg)) translateX(calc(var(--dir, 1) * 14px)); } to { opacity: 1; transform: none; } }
@keyframes om-fade { from { opacity: 0; } to { opacity: 1; } }
.om-pleat { animation: om-pleat var(--d4) var(--o-paper) both; animation-delay: calc(var(--i, 0) * var(--stagger)); transform-origin: top; }
@keyframes om-pleat { from { opacity: 0; transform: perspective(700px) rotateX(-14deg) translateY(12px); } to { opacity: 1; transform: none; } }
.shell[data-depth="2d"] .om-pleat { animation: om-fade var(--d3) var(--o-ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.om-crease::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; z-index: 5; pointer-events: none; background: linear-gradient(90deg, transparent, var(--primary), transparent); transform: scaleX(0); animation: om-crease 760ms var(--o-emph) both; }
@keyframes om-crease { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.om-deny { animation: om-deny 380ms var(--o-ease); }
@keyframes om-deny { 0%, 100% { transform: none; } 25% { transform: perspective(700px) rotateX(2.4deg) translateX(-4px); } 60% { transform: perspective(700px) rotateX(-1.6deg) translateX(3px); } }
.om-stamp { position: absolute; left: 50%; top: 40%; z-index: 180; width: 124px; height: 124px; margin: -62px 0 0 -62px; border-radius: 50%; display: grid; place-items: center; pointer-events: none; border: 3px double var(--primary-ink); color: var(--primary-ink); background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: 0 10px 30px rgba(0,0,0,.2); transform: rotate(-9deg); animation: om-stamp 2.4s var(--o-paper) both; }
.om-stamp span { font: 700 .8rem var(--font-mono); letter-spacing: .2em; text-transform: uppercase; }
.om-stamp.hanko { border-color: #8B1E3D; color: #8B1E3D; } .om-stamp.milestone { border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 20%, transparent), 0 10px 30px rgba(0,0,0,.2); } .om-stamp.seal { border-color: var(--accent); color: var(--accent-ink); }
@keyframes om-stamp { 0% { opacity: 0; transform: rotate(-20deg) scale(1.9); } 16% { opacity: 1; transform: rotate(-9deg) scale(.94); } 24% { transform: rotate(-9deg) scale(1.02); } 32%, 78% { opacity: 1; transform: rotate(-9deg) scale(1); } 100% { opacity: 0; transform: rotate(-9deg) scale(1); } }
.om-seed { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 28%, transparent); z-index: 260; pointer-events: none; }
.seed-ping { animation: seed-ping 700ms var(--o-out); } @keyframes seed-ping { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }
.om-thread { position: absolute; inset: 0; z-index: 255; pointer-events: none; } .om-thread path { fill: none; stroke: var(--primary); stroke-width: 2; stroke-dasharray: 1 1; stroke-linecap: round; }
.resume-mark { animation: resume-mark 3.2s var(--o-ease); } @keyframes resume-mark { 0%, 70% { box-shadow: 0 0 0 3px var(--primary); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* ---- Glass Lab Fracture ---- */
.gl-fxg { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 400; pointer-events: none; }
.gl-shard { position: absolute; pointer-events: none; will-change: transform, opacity; }
.gl-shard .gl-face, .gl-shard .gl-bevel, .gl-shard .gl-edge { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; margin: 0; }
.gl-shard .gl-bevel { border-radius: 12px; } .gl-edge polygon { fill: none; stroke: var(--crack-light); stroke-width: 1.4; stroke-linejoin: round; opacity: .85; }
.gl-cracks { position: absolute; pointer-events: none; overflow: hidden; border-radius: 12px; } .gl-pcracks { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; border-radius: inherit; }
.gl-cracks path, .gl-pcracks path { fill: none; stroke-linecap: butt; stroke-linejoin: round; } .gl-cracks .c-dark path, .gl-pcracks .c-dark path { stroke: var(--crack-dark); } .gl-cracks .c-light path, .gl-pcracks .c-light path { stroke: var(--crack-light); }
.gl-holdring { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; pointer-events: none; z-index: 410; } .gl-holdring svg { width: 100%; height: 100%; transform: rotate(-90deg); } .gl-holdring circle { fill: none; stroke-width: 2.5; } .gl-holdring .t { stroke: var(--line); } .gl-holdring .p { stroke: var(--primary); stroke-linecap: round; }
[data-busy] { pointer-events: none; }

/* ---- tour ---- */
.tour { position: absolute; inset: 0; z-index: 500; } .tour-spot { position: absolute; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(10,8,4,.62); border: 2px solid var(--primary); transition: all var(--d4) var(--o-out); pointer-events: none; }
.tour-card { position: absolute; left: 50%; width: min(420px, calc(100% - 2rem)); transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.tour-card[data-pos="top"] { top: calc(var(--island-strip) + 8px); } .tour-card[data-pos="bottom"] { bottom: calc(var(--halo-size) + 30px); } .tour-card[data-pos="center"] { top: 50%; transform: translate(-50%, -50%); }
.tour-card h2 { margin: .2rem 0 .4rem; font-size: 1.6rem; } .tour-card p { color: var(--muted); font-size: .9rem; }
.tour:not(:has(.tour-spot[style*="opacity:1"])) { background: rgba(10,8,4,.62); }

/* ---- splash ---- */
#splash { position: fixed; inset: 0; z-index: 9999; background: #0A1A12; color: #F1EBDC; display: grid; place-items: center; text-align: center; padding: 1.5rem; transition: opacity .6s ease; }
#splash.hide { opacity: 0; pointer-events: none; }
#splash img { width: min(74vw, 340px); height: auto; aspect-ratio: 1; border-radius: 22px; box-shadow: 0 18px 60px rgba(0,0,0,.45); animation: splashIn 1.4s var(--o-paper) both; }
#splash h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; letter-spacing: .14em; font-size: 2.4rem; margin: 1.2rem 0 .1rem; background: linear-gradient(100deg, #A77621 0%, #E8C56A 30%, #FFF6D8 50%, #E8C56A 70%, #A77621 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 4s linear infinite; }
#splash .sub { font: 500 .62rem 'JetBrains Mono', monospace; letter-spacing: .32em; color: #C9A24E; margin: 0 0 1.4rem; }
#splash .tag { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.25rem; color: #E9E2D0; margin: 0 0 2.2rem; }
#splash .credit { position: absolute; left: 0; right: 0; bottom: max(1.4rem, env(safe-area-inset-bottom)); font: 500 .6rem 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: .06em; color: rgba(233,226,208,.6); padding: 0 1.5rem; }
#splash button { margin-top: 1rem; min-height: 44px; padding: 0 1.2rem; border: 1px solid rgba(201,162,78,.5); border-radius: 99px; color: #E9E2D0; background: transparent; font: 600 .8rem 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer; }
@keyframes splashIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } } @keyframes sweep { to { background-position: -250% 0; } }
@media (prefers-reduced-motion: reduce) { #splash img, #splash h1 { animation: none; } #splash { transition-duration: .05s; } }

/* ---- type scale on small phones ---- */
@container (max-width: 380px) { .shell .view h1 { font-size: 1.8rem; } .hero { padding: 1rem; } .row { padding: .7rem .8rem; } .sh-panel { padding-left: 1rem; padding-right: 1rem; } }
@media (prefers-reduced-motion: reduce) { .u-toast, .sh-panel, .sh-back, .tilt { transition: none !important; } .om-stamp { animation: om-fade 1.4s both !important; } }

/* ---------- Plans ---------- */
.card.locked { border-style: dashed; background: var(--bg-alt); }
.card.locked .eyebrow { display: flex; align-items: center; gap: .4rem; }
.card.locked .eyebrow svg { width: 14px; height: 14px; }
.lock-t { font: 500 1.15rem/1.2 var(--font-display); margin: 0 0 .3rem; }
.card.locked .btn { margin-top: .6rem; }
.plan-tag { margin-left: .45rem; }
.seg button.plan-off { opacity: .55; }
.plans { display: grid; gap: .75rem; margin: .5rem 0 .75rem; }
.plan-card { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; background: var(--surface); }
.plan-card.is-target { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.plan-card.is-current { background: var(--bg-alt); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.plan-top b { font: 600 1.25rem var(--font-display); }
.plan-list { margin: .4rem 0 .7rem; padding-left: 1.1rem; font-size: .88rem; line-height: 1.5; }
@container stage (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }

#splash .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
