/* /how-it-works/ only: setup scenes (.hiw-*) and walkthrough decks (.pz-*).
   Loaded from web/pages/how-it-works.html ("css"). */
/* ---------- "What this is" panel ---------- */
.hiw-is {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 8px 0 40px;
}
.hiw-is-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 22px 24px;
}
.hiw-is-card h3 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.hiw-is-card.yes h3 { color: var(--color-accent); }
.hiw-is-card.no h3 { color: var(--color-text-dim); }
.hiw-is-card ul { margin: 0; padding: 0; list-style: none; }
.hiw-is-card li {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    padding: 6px 0 6px 24px;
    position: relative;
}
.hiw-is-card.yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-accent); }
.hiw-is-card.no li::before { content: "\2715"; position: absolute; left: 0; color: var(--color-text-dim); }

/* ---------- Setup demo (animated window) ---------- */
.hiw-setup {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}
.hiw-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.hiw-steps li.hiw-step { margin: 0 0 10px; }
.hiw-step {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 14px 16px 14px 54px;
    position: relative;
    cursor: pointer;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    transition: border-color .25s, background .25s;
}
.hiw-step::before {
    counter-increment: s;
    content: counter(s);
    position: absolute; left: 16px; top: 14px;
    width: 24px; height: 24px; border-radius: 50%;
    border: 1px solid var(--color-accent-border);
    color: var(--color-accent);
    font-size: 12px; line-height: 22px; text-align: center;
}
.hiw-step strong { display: block; color: var(--color-text); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.hiw-step span { font-size: 14px; line-height: 1.55; }
.hiw-step.active { border-color: var(--color-accent-border); background: var(--color-accent-glow); }
.hiw-step.active::before { background: var(--color-accent); color: #0f0f0f; }
.hiw-step > span { position: relative; z-index: 1; }
.step-btn { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.step-btn::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
.step-btn:focus-visible { outline: none; }
.step-btn:focus-visible::after { outline: 2px solid var(--color-accent); outline-offset: 2px; }


.hiw-window {
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    overflow: hidden;
    font-family: var(--font-sans);
    min-width: 0;
}
.hiw-bar {
    background: #151515;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 11px 16px;
    display: flex; align-items: center; gap: 12px;
}
.hiw-dots { display: flex; gap: 6px; flex-shrink: 0; }
.hiw-dots span { width: 11px; height: 11px; border-radius: 50%; display: block; }
.hiw-dots span:nth-child(1) { background: #ff5f57; }
.hiw-dots span:nth-child(2) { background: #febc2e; }
.hiw-dots span:nth-child(3) { background: #28c840; }
.hiw-bar-title {
    flex: 1; text-align: center;
    font-family: 'Space Mono', ui-monospace, monospace;
    font-size: 10px; letter-spacing: 0.12em; color: rgba(255,255,255,0.55);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hiw-stage { position: relative; height: 360px; }
.hiw-scene {
    position: absolute; inset: 0;
    padding: 24px;
    opacity: 0; visibility: hidden;
    transition: opacity .45s ease, visibility 0s linear .45s;
}
.hiw-scene.show { opacity: 1; visibility: visible; transition: opacity .45s ease; }

/* scene 1: receipt and download */
.s1-mail {
    max-width: 380px; margin: 18px auto 0;
    background: #161616; border: 1px solid #2a2a2a; border-radius: 10px; padding: 20px;
}
.s1-from { font-size: 12px; color: var(--color-text-dim); margin-bottom: 6px; }
.s1-subj { font-size: 15px; color: var(--color-text); font-weight: 600; margin-bottom: 16px; }
.s1-file {
    display: flex; align-items: center; gap: 12px;
    background: #1e1e1e; border: 1px solid #2f2f2f; border-radius: 8px; padding: 12px 14px;
}
.s1-ico {
    width: 34px; height: 40px; border-radius: 4px; flex-shrink: 0;
    background: linear-gradient(180deg, #2b2440, #1c1830); border: 1px solid var(--color-accent-border);
    font-family: 'Space Mono', monospace; font-size: 9px; color: var(--color-accent);
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px;
}
.s1-name { font-size: 14px; color: var(--color-text); }
.s1-size { font-size: 12px; color: var(--color-text-dim); }
.s1-bar { height: 4px; background: #2a2a2a; border-radius: 2px; margin-top: 14px; overflow: hidden; }
.s1-bar i { display: block; height: 100%; width: 0; background: var(--color-accent); border-radius: 2px; }
.show .s1-bar i { animation: hiw-fill 2.2s ease-out .4s forwards; }
.s1-btn {
    display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600;
    color: #0f0f0f; background: var(--color-accent); border-radius: 6px; padding: 8px 14px;
}
@keyframes hiw-fill { to { width: 100%; } }

/* scene 2: unzip */
.s2-wrap { display: flex; align-items: center; justify-content: center; gap: 22px; height: 100%; }
.s2-zip, .s2-folder {
    width: 92px; text-align: center; font-size: 12px; color: var(--color-text-muted);
}
.s2-zip .s1-ico { width: 64px; height: 76px; margin: 0 auto 8px; font-size: 11px; }
.s2-arrow { color: var(--color-accent); font-size: 22px; opacity: .8; }
.s2-tree {
    font-family: 'Space Mono', monospace; font-size: 12px; line-height: 1.9; color: var(--color-text-muted);
    background: #141414; border: 1px solid #262626; border-radius: 8px; padding: 14px 18px; min-width: 210px;
}
.s2-tree div { opacity: 1; }
.show .s2-tree div { animation: hiw-pop .5s ease both; }
.s2-tree div:nth-child(1) { animation-delay: .3s; }
.s2-tree div:nth-child(2) { animation-delay: .5s; }
.s2-tree div:nth-child(3) { animation-delay: .7s; }
.s2-tree div:nth-child(4) { animation-delay: .9s; }
.s2-tree div:nth-child(5) { animation-delay: 1.1s; }
.s2-tree div:nth-child(6) { animation-delay: 1.3s; }
.s2-tree div:nth-child(7) { animation-delay: 1.5s; }
.s2-tree .top { color: var(--color-text); }
.s2-tree .md { color: var(--color-accent); }
@keyframes hiw-pop { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* scene 3: obsidian start screen */
.s3-screen { display: flex; height: 100%; }
.s3-left { width: 38%; border-right: 1px solid #222; padding: 18px; }
.s3-left div { font-size: 12px; color: var(--color-text-dim); padding: 6px 0; }
.s3-right { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; }
.s3-logo {
    width: 44px; height: 52px; margin-bottom: 4px;
    background: linear-gradient(160deg, #8b5cf6, #4c1d95);
    clip-path: polygon(50% 0, 100% 30%, 82% 100%, 18% 100%, 0 30%);
}
.s3-title { font-family: var(--font-serif); font-size: 22px; color: var(--color-text); }
.s3-row {
    width: 100%; max-width: 300px; display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #222; padding: 10px 0; font-size: 12px; color: var(--color-text-muted);
}
.s3-row b {
    font-weight: 600; font-size: 12px; color: var(--color-text); background: #262626;
    border-radius: 6px; padding: 6px 10px; white-space: nowrap;
}
.s3-row.target b { background: var(--color-accent); color: #0f0f0f; }
.show .s3-row.target b { animation: hiw-press 1.4s ease 1.2s both; }
@keyframes hiw-press { 0%,60% { transform: none; box-shadow: 0 0 0 0 rgba(167,139,250,.6); } 70% { transform: scale(.94); } 100% { transform: none; box-shadow: 0 0 0 10px rgba(167,139,250,0); } }

/* scene 4: vault open */
.s4-screen { display: flex; height: calc(100% + 48px); margin: -24px; }
.s4-side {
    width: 210px; flex-shrink: 0; background: #121212; border-right: 1px solid #222;
    padding: 16px 14px; font-size: 12px; line-height: 2; color: var(--color-text-dim);
    overflow: hidden;
}
.s4-side .on { color: var(--color-text); background: rgba(167,139,250,0.14); border-radius: 4px; padding: 0 6px; margin: 0 -6px; }
.s4-note { flex: 1; padding: 26px 28px; overflow: hidden; }
.s4-note h4 { font-family: var(--font-serif); font-size: 26px; color: var(--color-text); margin: 0 0 10px; font-weight: 600; }
.s4-note p { font-size: 13px; line-height: 1.7; color: var(--color-text-muted); margin: 0 0 10px; }
.s4-note .lk { color: var(--color-accent); }

/* ---------- Paths ---------- */
.hiw-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 8px; }
.hiw-path {
    background: var(--color-bg-elevated); border: 1px solid var(--color-border);
    border-radius: var(--card-radius); padding: 22px;
}
.hiw-path .tag {
    font-family: var(--font-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--color-accent); margin-bottom: 8px;
}
.hiw-path h3 { font-family: var(--font-serif); font-size: 22px; color: var(--color-text); margin: 0 0 8px; }
.hiw-path p, .hiw-path li { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }
.hiw-path ol { padding-left: 18px; margin: 10px 0 0; }
.hiw-path li { margin-bottom: 6px; }
.hiw-path code, .prose code {
    font-family: 'Space Mono', monospace; font-size: 12px; background: #1e1e1e;
    border: 1px solid #2c2c2c; border-radius: 4px; padding: 1px 5px; color: var(--color-text);
}

/* ---------- FAQ (details) ---------- */
.hiw-faq details { border-bottom: 1px solid var(--color-border); }
.hiw-faq details:first-child { border-top: 1px solid var(--color-border); }
.hiw-faq summary {
    cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
    font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--color-text);
}
.hiw-faq summary::-webkit-details-marker { display: none; }
.hiw-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--color-accent); font-size: 20px; }
.hiw-faq details[open] summary::after { content: "\2212"; }
.hiw-faq .a { padding: 0 0 18px; }
.hiw-faq .a p, .hiw-faq .a li { font-family: var(--font-sans); font-size: 15px; line-height: 1.7; color: var(--color-text-muted); }

/* ---------- Walkthrough presentations ---------- */
.pz-section { padding: 24px 0 64px; }
.pz-tabs { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg-elevated); margin-bottom: 28px; }
.pz-tab { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--color-text-muted); background: transparent; border: 0; border-radius: 999px; padding: 9px 20px; min-height: 40px; cursor: pointer; }
.pz-tab.active { background: var(--color-accent); color: #0f0f0f; }
.pz-tab:focus-visible, .pz-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.pz-deck { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }
.pz-deck[hidden] { display: none; }
.pz-window { background: #0b0b0b; border: 1px solid rgba(255,255,255,0.10); border-radius: 10px; overflow: hidden; font-family: var(--font-sans); min-width: 0; position: sticky; top: 84px; }
.pz-stage { position: relative; height: 400px; overflow: hidden; }
.pz-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.pz-slide.show { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.pz-steps { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.pz-steps li { position: relative; padding: 11px 12px 11px 46px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; margin-bottom: 4px; color: var(--color-text-muted); font-family: var(--font-sans); transition: background .25s, border-color .25s; }
.pz-steps li::before { counter-increment: p; content: counter(p); position: absolute; left: 12px; top: 11px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--color-accent-border); color: var(--color-accent); font-size: 12px; line-height: 20px; text-align: center; }
.pz-steps li strong { display: block; color: var(--color-text); font-size: 15px; font-weight: 600; }
.pz-steps li span { display: block; font-size: 13.5px; line-height: 1.55; margin-top: 2px; }
.pz-steps li.active { background: var(--color-accent-glow); border-color: var(--color-accent-border); }
.pz-steps li.active::before { background: var(--color-accent); color: #0f0f0f; }
.pz-steps code, .pz-note code { font-family: 'Space Mono', monospace; font-size: 11.5px; background: #1e1e1e; border: 1px solid #2c2c2c; border-radius: 4px; padding: 0 4px; color: var(--color-text); }
.pz-controls { display: flex; gap: 8px; margin: 14px 0 10px; }
.pz-btn { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--color-text); background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: 8px; padding: 8px 14px; min-height: 40px; min-width: 44px; cursor: pointer; }
.pz-btn:hover { border-color: var(--color-accent-border); }
.pz-play { min-width: 76px; }
.pz-note { font-family: var(--font-sans); font-size: 13px; line-height: 1.6; color: var(--color-text-dim); margin: 0; }
.pz-caveat { text-align: center; font-family: var(--font-sans); font-size: 13px; color: var(--color-text-dim); margin: 18px auto 0; padding: 0 24px; }
.pz-late { opacity: 1; }
.show .pz-late { animation: hiw-pop .6s ease both; animation-delay: 2.6s; }
[data-type]::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--color-accent); opacity: 0; }
.typing[data-type]::after { opacity: 1; animation: td-blink 1s step-end infinite; }

#walkthroughs { scroll-margin-top: 80px; }
/* Claude app */
.cl-app { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; background: #1a1916; }
.cl-greet { font-family: var(--font-serif); font-size: 30px; color: #eae6dc; }
.cl-box { width: 100%; max-width: 440px; background: #262521; border: 1px solid #3a3833; border-radius: 16px; padding: 14px 14px 10px; }
.cl-placeholder { font-size: 14px; color: #8f8b80; padding: 2px 4px 16px; }
.cl-row { display: flex; gap: 8px; align-items: center; }
.cl-pill { font-size: 12.5px; color: #cfcac0; border: 1px solid #44413b; border-radius: 999px; padding: 5px 12px; }
.show .cl-cowork { animation: cl-select .5s ease 1.6s both; }
@keyframes cl-select { to { background: #d97757; border-color: #d97757; color: #1a1916; } }
.cl-send { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; background: #d97757; color: #1a1916; text-align: center; line-height: 30px; font-weight: 700; }
.cl-hint { font-size: 12.5px; color: #8f8b80; }

/* folder picker */
.fp { position: absolute; inset: 34px 40px; background: #1c1c1c; border: 1px solid #333; border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.fp-head { font-size: 13px; font-weight: 600; color: var(--color-text); padding: 12px 16px; border-bottom: 1px solid #2a2a2a; }
.fp-body { flex: 1; display: flex; min-height: 0; }
.fp-side { width: 32%; border-right: 1px solid #2a2a2a; padding: 10px 12px; font-size: 12.5px; color: var(--color-text-dim); line-height: 2.1; }
.fp-side .on { color: var(--color-text); }
.fp-list { flex: 1; padding: 10px 12px; font-size: 13px; color: var(--color-text-muted); line-height: 2.2; }
.fp-list > div { padding: 0 8px; border-radius: 5px; }
.show .fp-pick { animation: fp-hl .4s ease 1.4s both; }
@keyframes fp-hl { to { background: rgba(167,139,250,0.22); color: var(--color-text); } }
.fp-zip { opacity: .7; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.fp-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid #2a2a2a; }
.fp-btn { font-size: 12.5px; padding: 6px 12px; border-radius: 6px; background: #2a2a2a; color: var(--color-text-muted); }
.fp-go { background: var(--color-accent); color: #0f0f0f; font-weight: 600; }
.show .fp-go { animation: hiw-press 1.4s ease 2.6s both; }

/* chat */
.pz-chat { height: 100%; padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.pz-chat--narrow { padding: 18px; }
.pz-split { display: flex; height: 100%; }
.pz-split .pz-chat { flex: 1.3; }

/* obsidian */
.ob { display: flex; height: 100%; }
.ob-side { position: relative; width: 210px; flex-shrink: 0; background: #121212; border-right: 1px solid #222; padding: 16px 14px; font-size: 12px; line-height: 2.05; color: var(--color-text-dim); overflow: hidden; }
.ob-side--panel { width: 44%; border-right: 0; border-left: 1px solid #222; }
.ob-side .on { color: var(--color-text); background: rgba(167,139,250,0.14); border-radius: 4px; padding: 0 6px; margin: 0 -6px; }
.ob-in { padding-left: 14px; }
.show .ob-new { animation: hiw-pop .5s ease 1.8s both; color: var(--color-text); }
.ob-note { position: relative; flex: 1; padding: 24px 26px; overflow: hidden; min-width: 0; }
.ob-note h4 { font-family: var(--font-serif); font-size: 25px; color: var(--color-text); margin: 0 0 10px; font-weight: 600; }
.ob-note p { font-size: 13px; line-height: 1.7; color: var(--color-text-muted); margin: 0 0 9px; }
.ob-note .ob-h { color: var(--color-text); font-weight: 600; margin-top: 12px; }
.ob-note .lk, .pz-chat .lk { color: var(--color-accent); }
.ob-dim { color: var(--color-text-dim) !important; font-size: 18px !important; font-family: var(--font-sans) !important; font-weight: 500 !important; }
.ob-pop { position: absolute; left: 26px; right: 26px; top: auto; margin-top: -3px; background: #1d1d1d; border: 1px solid #3a3a3a; border-radius: 8px; padding: 12px 14px; font-size: 12.5px; color: var(--color-text-muted); box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; }
.ob-pop b { display: block; color: var(--color-text); font-family: var(--font-serif); font-size: 17px; margin-bottom: 4px; }
.show .ob-pop { animation: hiw-pop .4s ease 1.6s both; }
.show .ob-pop ~ p { animation: ob-hide .3s ease 1.4s both; }
@keyframes ob-hide { to { opacity: 0; } }
.show .lk-hover { animation: ob-under .3s ease 1.3s both; }
@keyframes ob-under { to { text-decoration: underline; } }
.ob-menu { position: absolute; left: 70px; top: 44px; width: 130px; background: #1d1d1d; border: 1px solid #3a3a3a; border-radius: 7px; padding: 5px; font-size: 12px; line-height: 1.9; color: var(--color-text-muted); box-shadow: 0 8px 24px rgba(0,0,0,.5); opacity: 0; }
.ob-menu div { padding: 0 8px; border-radius: 4px; }
.ob-menu div:first-child { background: rgba(167,139,250,0.2); color: var(--color-text); }
.show .ob-menu { animation: ob-menu 1.6s ease .3s both; }
@keyframes ob-menu { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
.ob-palette { position: absolute; left: 22px; right: 22px; top: 18px; background: #1d1d1d; border: 1px solid #3a3a3a; border-radius: 9px; padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.55); z-index: 2; }
.show .ob-palette { animation: ob-palette 4.2s ease both; }
@keyframes ob-palette { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.ob-input { font-size: 13px; color: var(--color-text); padding: 6px 8px; border-bottom: 1px solid #2c2c2c; margin-bottom: 6px; min-height: 30px; }
.ob-res { font-size: 12.5px; color: var(--color-text-muted); padding: 5px 8px; border-radius: 5px; }
.ob-res.on { background: rgba(167,139,250,0.2); color: var(--color-text); }
.ob-filled { opacity: 0; }
.show .ob-filled { animation: hiw-pop .5s ease 4.3s both; }
.ob-auto { width: 220px; max-width: 100%; background: #1d1d1d; border: 1px solid #3a3a3a; border-radius: 7px; padding: 5px; font-size: 12.5px; line-height: 1.9; color: var(--color-text-muted); opacity: 0; }
.ob-auto div { padding: 0 8px; border-radius: 4px; }
.ob-auto .on { background: rgba(167,139,250,0.2); color: var(--color-text); }
.show .ob-auto { animation: hiw-pop .4s ease 2.4s both; }
.ob-graph { width: 100%; height: 100%; display: block; }
.ob-graph line { stroke: #444; stroke-width: 1.2; }
.ob-graph circle { fill: #8b8b8b; }
.ob-graph .g-nodes circle:first-child { fill: var(--color-accent); }
.ob-graph text { fill: #9a9a9a; font-family: var(--font-sans); font-size: 11px; text-anchor: middle; }
.ob-graph .g-new { stroke: var(--color-accent); stroke-dasharray: 140; stroke-dashoffset: 140; }
.show .g-new { animation: g-draw 1s ease 1.6s forwards; }
@keyframes g-draw { to { stroke-dashoffset: 0; } }
.ob-graph .g-newnode, .ob-graph .g-newlabel { opacity: 0; fill: var(--color-accent); }
.show .g-newnode, .show .g-newlabel { animation: hiw-pop .5s ease 1.1s both; }

@media (max-width: 900px) {
    .pz-deck { grid-template-columns: 1fr; }
    .pz-window { position: static; }
}
@media (max-width: 640px) {
    .pz-deck { padding: 0 16px; gap: 18px; }
    .pz-stage { height: 340px; }
    .pz-chat { padding: 14px; gap: 10px; }
    .pz-split { flex-direction: column; }
    .pz-split .ob-side--panel { width: auto; flex: 0 0 auto; max-height: 120px; }
    .pz-split .ob-side--panel > div:not(.ob-new):not(:first-child) { display: none; }
    .pz-split .pz-chat { flex: 1 1 auto; min-height: 0; }
    .ob-side--panel { width: auto; border-left: 0; border-top: 1px solid #222; }
    .ob-side { width: 118px; font-size: 11px; padding: 12px 9px; }
    .ob-note { padding: 16px 14px; }
    .ob-note h4 { font-size: 20px; }
    .ob-pop { left: 14px; right: 14px; }
    .ob-menu { left: 6px; width: 104px; font-size: 11px; }
    .fp { inset: 16px 12px; }
    .fp-side { display: none; }
    .cl-greet { font-size: 24px; }
    .pz-tab { padding: 9px 14px; }
}
@media (max-width: 380px) {
    .pz-stage { height: 376px; }
}
@media (prefers-reduced-motion: reduce) {
    .pz-slide, .pz-slide.show { transition: none; }
    .show .pz-late, .show .ob-new, .show .ob-pop, .show .ob-filled, .show .ob-auto, .show .g-newnode, .show .g-newlabel, .show .cl-cowork, .show .fp-pick, .show .fp-go, .show .lk-hover { animation: none; opacity: 1; }
    .show .ob-menu { animation: none; }
    .ob-menu { display: none; }
    .show .ob-pop ~ p { animation: none; opacity: 0; }
    .ob-palette { display: none; }
    .show .cl-cowork { background: #d97757; border-color: #d97757; color: #1a1916; }
    .show .fp-pick { background: rgba(167,139,250,.22); color: var(--color-text); }
    .show .lk-hover { text-decoration: underline; }
    .ob-pop, .ob-filled, .ob-auto, .g-newnode, .g-newlabel { opacity: 1; }
    .ob-graph .g-new { stroke-dashoffset: 0; }
}
.hiw-msg { max-width: 88%; font-size: 13.5px; line-height: 1.6; border-radius: 12px; padding: 11px 14px; }
.hiw-msg.you { align-self: flex-end; background: #2a2440; color: var(--color-text); border-bottom-right-radius: 4px; }
.hiw-msg.claude { align-self: flex-start; background: #181818; border: 1px solid #262626; color: var(--color-text-muted); border-bottom-left-radius: 4px; }
.hiw-msg .who { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-dim); margin-bottom: 4px; }
.hiw-msg.you .who { color: #b3adc9; }
.hiw-msg .file { font-family: 'Space Mono', monospace; font-size: 11.5px; color: #c8a96e; word-break: break-all; }
@keyframes td-blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
@media (max-width: 900px) {
    .hiw-setup { grid-template-columns: 1fr; }
    .hiw-paths { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hiw-is { grid-template-columns: 1fr; }
    .hiw-setup { padding: 0 16px; gap: 20px; }
    .hiw-stage { height: 320px; }
    .hiw-scene { padding: 16px; }
    .s4-screen { margin: -16px; height: calc(100% + 32px); }
    .s4-side { width: 130px; font-size: 11px; padding: 12px 10px; }
    .s4-note { padding: 18px 16px; }
    .s4-note h4 { font-size: 21px; }
    .s4-note p:nth-of-type(3) { display: none; }
    .s3-left { display: none; }
    .s2-wrap { gap: 10px; }
    .s2-zip { display: none; }
    .s2-arrow { display: none; }
    .hiw-msg { max-width: 94%; font-size: 13.5px; }
    .hiw-bar-title { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hiw-scene, .hiw-scene.show { transition: none; }
    .show .s1-bar i { animation: none; width: 100%; }
    .show .s2-tree div, .show .s3-row.target b { animation: none; }
}

/* ---- v3 overrides (Vault Glass), 2026-11-27 ---- */
.hiw-is-card, .hiw-path { background: linear-gradient(180deg, var(--glass1), var(--glass2)); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--hi); border-radius: var(--r); }
.hiw-is-card h3, .hiw-path .tag, .hiw-bar-title, .hiw-msg .who { text-transform: none; letter-spacing: .01em; font-size: 13px; }
.pz-tab.active, .s1-btn { background: #fff; color: #0a0a0c; border-radius: 999px; }
.hiw-step, .step-btn::after, .pz-steps li { border-radius: 16px; }
.hiw-window, .pz-window { border-radius: 20px; border-color: var(--edge); }
.pz-btn { border-radius: 999px; }
.hiw-faq summary::after { content: ""; top: 50%; margin-top: -13px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--edge); background: rgba(255,255,255,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M13 8.5v9M8.5 13h9' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center/26px no-repeat; transition: transform .25s; }
.hiw-faq details[open] summary::after { content: ""; transform: rotate(45deg); }
@media (max-width: 900px) { .hiw-window { order: -1; } }
@media (max-width: 1024px) { .hiw-setup, .pz-deck { padding: 0 28px; } }
@media (max-width: 760px) { .hiw-setup, .pz-deck { padding: 0 24px; } }
