@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/manrope-latin-ext.woff2") format("woff2");
}

:root {
    --guide-bg: #f8fafc;
    --guide-paper: #ffffff;
    --guide-soft: #edf3fb;
    --guide-blue: #285cc4;
    --guide-blue-dark: #163d8d;
    --guide-ink: #172232;
    --guide-muted: #637083;
    --guide-line: #d7e0eb;
    --guide-line-dark: #bac8d9;
    --guide-width: 1480px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
    font-size: clamp(16px, calc(13px + .18vw), 20px);
}

body.guide-page {
    margin: 0;
    overflow-x: hidden;
    background: var(--guide-bg) !important;
    color: var(--guide-ink);
    font-family: var(--font-sans) !important;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.guide-page *, .guide-page *::before, .guide-page *::after { box-sizing: border-box; }
.guide-page :is(h1, h2, h3, h4, p, ul, ol, dl, dd, pre) { margin-top: 0; }
.guide-page :is(h1, h2, h3, h4, p, a, button, input, label, summary, span, strong, small, li, td, th) { font-family: inherit !important; }
.guide-page :is(h1, h2, h3, h4) { font-family: var(--font-display) !important; }
.guide-page a { color: inherit; }
.guide-page button, .guide-page input { font: inherit; }
.guide-page button { color: inherit; }
.guide-page :is(a, button, input):focus-visible { outline: 2px solid var(--guide-blue) !important; outline-offset: 4px; }
.guide-page [hidden] { display: none !important; }
.guide-page ::selection { background: #d7e6ff; color: #11203a; }

.guide-wrap {
    width: min(var(--guide-width), calc(100% - clamp(40px, 7vw, 144px)));
    margin-inline: auto;
}

.guide-skip {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: .8rem 1rem;
    background: var(--guide-blue);
    color: #fff !important;
    text-decoration: none;
}
.guide-skip:focus { top: 1rem; }

.guide-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 80;
    background: transparent;
    pointer-events: none;
}
.guide-progress span { display: block; width: 0; height: 100%; background: var(--guide-blue); }

.guide-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: .8rem max(32px, calc((100vw - var(--guide-width)) / 2));
    border-bottom: 1px solid var(--guide-line);
    background: #f8fafcf2;
    backdrop-filter: blur(18px);
}
.guide-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-size: .78rem; line-height: 1.25; font-weight: 700; }
.guide-brand img { display: block; width: 38px; height: 38px; background: #171a1f; }
.guide-brand small { display: block; color: var(--guide-muted); font-size: .62rem; font-weight: 450; }
.guide-topbar nav { display: flex; align-items: center; gap: 1.8rem; }
.guide-topbar nav a, .guide-back { font-size: .74rem; text-decoration: none; color: #536071; }
.guide-topbar nav a:hover, .guide-back:hover { color: var(--guide-blue); }
.guide-back { display: inline-flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--guide-line-dark); color: var(--guide-ink); }
.guide-back span { color: var(--guide-blue); font-size: 1rem; }

.guide-hero {
    border-bottom: 1px solid var(--guide-line);
    background: var(--guide-soft);
}
.guide-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, .75fr);
    gap: clamp(3rem, 7vw, 8rem);
    align-items: center;
    min-height: clamp(580px, 68vh, 840px);
    padding-block: clamp(5rem, 8vw, 9rem) clamp(4rem, 6vw, 7rem);
}
.guide-kicker, .guide-label {
    margin-bottom: 1.3rem;
    color: var(--guide-blue);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .14em;
}
.guide-hero h1 {
    max-width: 12ch;
    margin-bottom: 1.6rem;
    font-size: clamp(3.5rem, 6.3vw, 7.2rem);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.075em;
}
.guide-lead {
    max-width: 66ch;
    margin-bottom: 0;
    color: #4f5e70;
    font-size: clamp(1.05rem, 1.35vw, 1.38rem);
    line-height: 1.55;
}

.guide-route { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--guide-blue); }
.guide-route li { border-bottom: 1px solid var(--guide-line-dark); }
.guide-route a { display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; gap: 1rem; align-items: center; min-height: 86px; padding: .9rem 0; text-decoration: none; transition: color .2s, padding .2s, background .2s; }
.guide-route a:hover { padding-left: .6rem; background: #e5eef9; color: var(--guide-blue); }
.guide-route-number { color: var(--guide-blue); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-align: left; }
.guide-route-copy { display: block; min-width: 0; }
.guide-route-copy strong, .guide-route-copy small { display: block; }
.guide-route-copy strong { font-size: 1rem; font-weight: 650; }
.guide-route-copy small { margin-top: .22rem; color: var(--guide-muted); font-size: .7rem; }
.guide-route-arrow { color: var(--guide-blue); font-size: .9rem; text-align: right; transition: translate .2s; }
.guide-route a:hover .guide-route-arrow { translate: 0 .25rem; }

.guide-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(4rem, 8vw, 9rem); align-items: start; }
.guide-toc { position: sticky; top: 116px; margin-top: 6.5rem; padding-bottom: 2rem; }
.guide-toc > p { margin-bottom: 1rem; color: #8290a2; font-size: .58rem; font-weight: 700; letter-spacing: .13em; }
.guide-toc nav { display: flex; flex-direction: column; border-top: 1px solid var(--guide-line); }
.guide-toc nav a { padding: .66rem 0; border-bottom: 1px solid var(--guide-line); color: #6f7c8d; font-size: .72rem; text-decoration: none; transition: color .2s, padding .2s; }
.guide-toc nav a:hover, .guide-toc nav a.is-active { padding-left: .5rem; color: var(--guide-blue); }
.guide-toc nav a.is-active { border-bottom-color: var(--guide-blue); }
.guide-toc-cta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding: .8rem 0; border-bottom: 1px solid var(--guide-blue); color: var(--guide-blue) !important; font-size: .68rem; font-weight: 650; text-decoration: none; }

.guide-content { min-width: 0; max-width: 1060px; }
.guide-section { padding-block: clamp(5.5rem, 9vw, 9rem); border-bottom: 1px solid var(--guide-line); scroll-margin-top: 100px; }
.guide-section h2 { max-width: 17ch; margin-bottom: 1.6rem; font-size: clamp(2.35rem, 4.5vw, 5.2rem); font-weight: 500; line-height: 1.03; letter-spacing: -.065em; }
.guide-opening, .guide-section-lead { max-width: 72ch; margin-bottom: 3rem; color: var(--guide-muted); font-size: clamp(1rem, 1.2vw, 1.18rem); line-height: 1.72; }

.guide-definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3rem; border-top: 1px solid var(--guide-line-dark); }
.guide-definitions article { min-height: 230px; padding: 1.6rem 1.5rem 1.6rem 0; border-bottom: 1px solid var(--guide-line); }
.guide-definitions article:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--guide-line); }
.guide-definitions article:nth-child(even) { padding-left: 2rem; }
.guide-definitions article > span, .guide-decision-grid article > span, .guide-production article > div > span { color: var(--guide-blue); font-size: .57rem; font-weight: 700; letter-spacing: .11em; }
.guide-definitions h3 { margin: 2.8rem 0 .7rem; font-size: 1.35rem; font-weight: 650; letter-spacing: -.03em; }
.guide-definitions p { max-width: 42ch; margin: 0; color: var(--guide-muted); font-size: .86rem; }
.guide-note { display: grid; grid-template-columns: 190px 1fr; gap: 2rem; margin-top: 2.5rem; padding: 1.5rem 0; border-block: 1px solid var(--guide-blue); }
.guide-note strong { color: var(--guide-blue); font-size: .72rem; }
.guide-note p { margin: 0; font-size: .88rem; }

.guide-brief-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; margin-top: 3rem; }
.guide-check-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--guide-line-dark); }
.guide-check-list li { display: grid; grid-template-columns: 115px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--guide-line); }
.guide-check-list span { color: var(--guide-blue); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.guide-check-list strong { font-size: .9rem; font-weight: 600; }
.guide-callout { padding: 2rem; background: var(--guide-blue); color: #fff; }
.guide-callout > p { margin-bottom: 2rem; color: #bdd2ff; font-size: .58rem; font-weight: 700; letter-spacing: .12em; }
.guide-callout h3 { margin-bottom: 2rem; font-size: 1.9rem; font-weight: 550; letter-spacing: -.04em; }
.guide-callout dl { margin: 0; }
.guide-callout dl div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid #ffffff42; }
.guide-callout dt { color: #c9daff; font-size: .67rem; }
.guide-callout dd { margin: 0; font-size: .78rem; }

.guide-table-block { margin-top: 3.5rem; border-top: 1px solid var(--guide-line-dark); }
.guide-table-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 1.3rem 0; }
.guide-table-heading p, .guide-cost-toolbar p { margin: 0 0 .25rem; color: var(--guide-blue); font-size: .56rem; font-weight: 700; letter-spacing: .12em; }
.guide-table-heading h3, .guide-cost-toolbar h3 { margin: 0; font-size: 1.12rem; font-weight: 600; }
.guide-table-heading > span { color: var(--guide-muted); font-size: .7rem; }
.guide-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.guide-page table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .74rem; line-height: 1.45; }
.guide-page th { padding: .8rem .9rem; border-block: 1px solid var(--guide-line-dark); background: #edf2f8; color: #5d6b7b; font-size: .56rem; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.guide-page td { padding: 1rem .9rem; border-bottom: 1px solid var(--guide-line); vertical-align: top; }
.guide-page tbody tr:hover { background: #f0f5fb; }
.guide-table-note { margin: 1.1rem 0 0; color: var(--guide-muted); font-size: .68rem; line-height: 1.6; }

.guide-tabs { margin-top: 3rem; }
.guide-tab-list { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--guide-line-dark); }
.guide-tab-list button { padding: 1rem .4rem; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #718094; cursor: pointer; font-size: .72rem; text-align: left; }
.guide-tab-list button[aria-selected="true"] { border-color: var(--guide-blue); color: var(--guide-blue); font-weight: 700; }
.guide-tab-panel { display: grid; grid-template-columns: 170px 1fr; gap: 3rem; min-height: 340px; padding: 3rem 0; }
.guide-tab-mark { display: grid; width: 150px; height: 150px; place-items: center; border: 1px solid var(--guide-blue); color: var(--guide-blue); font-size: 2rem; font-weight: 500; letter-spacing: -.05em; }
.guide-tab-panel h3 { max-width: 28ch; margin-bottom: 1rem; font-size: 1.75rem; font-weight: 550; line-height: 1.2; letter-spacing: -.04em; }
.guide-tab-panel p { max-width: 64ch; color: var(--guide-muted); font-size: .9rem; }
.guide-tab-panel ul { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin: 1.7rem 0 0; padding: 0; list-style: none; color: var(--guide-blue); font-size: .68rem; font-weight: 650; }
.guide-tab-panel li::before { content: "+"; margin-right: .35rem; }

.guide-case-study h2 { max-width: 15ch; }
.case-hero { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; margin-top: 3.5rem; }
.case-film { margin: 0; padding: 1rem; background: #17253a; color: #fff; }
.case-film-frame { aspect-ratio: 9 / 16; overflow: hidden; background: #0d1420; }
.case-film video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0d1420; }
.case-film figcaption { display: grid; gap: .25rem; padding: 1rem .25rem .2rem; }
.case-film figcaption span, .case-overview-label, .case-subheading > p { margin: 0; color: #7fa9ff; font-size: .56rem; font-weight: 750; letter-spacing: .12em; }
.case-film figcaption strong { font-size: .9rem; font-weight: 650; }
.case-film figcaption small { color: #aebbd0; font-size: .64rem; }
.case-overview { min-width: 0; padding-top: .4rem; }
.case-overview-label { margin-bottom: 1rem; color: var(--guide-blue); }
.case-toolchain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--guide-line); }
.case-tool { display: flex; min-height: 92px; align-items: center; gap: 1rem; padding: 1rem; background: var(--guide-paper); }
.case-tool > img { display: block; width: 54px; height: 54px; flex: 0 0 54px; padding: 8px; background: #fff; object-fit: contain; }
.case-tool--brand > img { width: 96px; flex-basis: 96px; padding: 11px; background: #16243a; }
.case-tool span, .case-tool small, .case-tool strong { display: block; }
.case-tool small { margin-bottom: .2rem; color: var(--guide-muted); font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; }
.case-tool strong { color: var(--guide-ink); font-size: .78rem; font-weight: 650; line-height: 1.3; }
.case-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2rem 0 0; border-top: 1px solid var(--guide-line-dark); }
.case-facts div { min-height: 105px; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--guide-line); }
.case-facts div:nth-child(odd) { border-right: 1px solid var(--guide-line); }
.case-facts div:nth-child(even) { padding-left: 1rem; }
.case-facts dt { margin-bottom: 1.1rem; color: var(--guide-blue); font-size: .56rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.case-facts dd { margin: 0; color: #344357; font-size: .82rem; font-weight: 600; }
.case-overview-copy { max-width: 58ch; margin: 1.8rem 0 0; color: var(--guide-muted); font-size: .82rem; line-height: 1.75; }

.case-pipeline, .case-motion-section, .case-timing { margin-top: clamp(4.5rem, 8vw, 7rem); }
.case-subheading { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--guide-line-dark); }
.case-subheading > p { color: var(--guide-blue); }
.case-subheading h3 { max-width: 32ch; margin: 0; font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 550; line-height: 1.25; letter-spacing: -.04em; }
.case-pipeline-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; background: var(--guide-line); list-style: none; }
.case-pipeline-list li { position: relative; min-height: 260px; padding: 1rem; background: var(--guide-paper); }
.case-pipeline-list li:not(:last-child)::after { content: "→"; position: absolute; top: 3.25rem; right: -.62rem; z-index: 2; display: grid; width: 1.2rem; height: 1.2rem; place-items: center; background: var(--guide-bg); color: var(--guide-blue); font-size: .78rem; }
.case-step-number { display: block; margin-bottom: 1rem; color: var(--guide-blue); font-size: .56rem; font-weight: 700; letter-spacing: .1em; }
.case-pipeline-list img, .case-step-icon { display: grid; width: 48px; height: 48px; padding: 6px; place-items: center; background: #f5f7fa; object-fit: contain; }
.case-step-file { border: 1px solid var(--guide-blue); background: transparent; color: var(--guide-blue); font-size: .58rem; font-weight: 800; letter-spacing: .04em; }
.case-pipeline-list h4 { margin: 2.5rem 0 .65rem; font-size: .88rem; font-weight: 650; line-height: 1.25; }
.case-pipeline-list p { margin: 0; color: var(--guide-muted); font-size: .66rem; line-height: 1.55; }

.case-motion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--guide-line); }
.case-motion-grid article { min-height: 190px; padding: 1.35rem; background: var(--guide-paper); }
.case-motion-grid span { color: var(--guide-blue); font-size: .56rem; font-weight: 750; letter-spacing: .1em; }
.case-motion-grid h4 { margin: 2rem 0 .65rem; font-size: 1rem; font-weight: 650; }
.case-motion-grid p { max-width: 42ch; margin: 0; color: var(--guide-muted); font-size: .74rem; }

.case-timing-track { display: grid; grid-template-columns: 2fr 6fr 2fr; min-height: 155px; border: 1px solid var(--guide-line-dark); }
.case-timing-track > div { display: flex; min-width: 0; padding: 1rem; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--guide-line-dark); }
.case-timing-track > div:last-child { border-right: 0; }
.case-timing-cut { background: repeating-linear-gradient(135deg, #eef1f4, #eef1f4 8px, #e4e8ed 8px, #e4e8ed 16px); color: #7a8491; }
.case-timing-use { background: var(--guide-blue); color: #fff; }
.case-timing-track span { font-size: .58rem; font-weight: 750; letter-spacing: .08em; }
.case-timing-track strong { font-size: .82rem; line-height: 1.25; }
.case-timing-track small { font-size: .58rem; }
.case-speed-result { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 1.2rem; border: solid var(--guide-line-dark); border-width: 0 1px 1px; color: #405066; font-size: .7rem; }
.case-speed-result b { color: var(--guide-blue); font-size: 1rem; }
.case-speed-result strong { color: var(--guide-blue-dark); font-weight: 750; }
.case-caption { margin: 1rem 0 0; color: var(--guide-muted); font-size: .66rem; line-height: 1.6; }

.case-prompt-card { margin-top: clamp(4rem, 7vw, 6rem); }
.case-lessons { margin-top: 2.5rem; border-top: 1px solid var(--guide-line-dark); }
.case-lessons details { border-bottom: 1px solid var(--guide-line-dark); }
.case-lessons summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(180px, .55fr) 18px; gap: 1rem; align-items: center; min-height: 82px; padding: .8rem 0; cursor: pointer; list-style: none; }
.case-lessons summary::-webkit-details-marker { display: none; }
.case-lessons summary::after { content: "+"; color: var(--guide-blue); font-size: 1.25rem; text-align: right; }
.case-lessons details[open] summary::after { content: "−"; }
.case-lessons summary span { color: var(--guide-blue); font-size: .58rem; font-weight: 700; }
.case-lessons summary strong { font-size: .82rem; font-weight: 650; }
.case-lessons summary small { color: var(--guide-muted); font-size: .65rem; }
.case-lessons details > div { max-width: 74ch; padding: 0 0 1.6rem 58px; color: var(--guide-muted); font-size: .78rem; }
.case-lessons details > div p { margin-bottom: .8rem; }
.case-lessons details > div p:last-child { margin-bottom: 0; }
.case-takeaway { margin-top: 3rem; }

.prompt-library-section { position: relative; }
.prompt-library-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: clamp(3rem, 7vw, 7rem); align-items: end; }
.prompt-library-heading h2 { margin-bottom: 1.25rem; }
.prompt-library-heading .guide-section-lead { margin: 0; }
.prompt-library-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--guide-blue); }
.prompt-library-stats div { min-height: 132px; padding: 1.1rem .9rem 1rem 0; border-bottom: 1px solid var(--guide-line-dark); }
.prompt-library-stats div + div { padding-left: .9rem; border-left: 1px solid var(--guide-line); }
.prompt-library-stats dt { color: var(--guide-blue); font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 520; letter-spacing: -.06em; line-height: 1; }
.prompt-library-stats dd { max-width: 13ch; margin: 1.35rem 0 0; color: var(--guide-muted); font-size: .61rem; line-height: 1.4; }
.prompt-library-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 4rem 0 1px; padding: 1px; background: var(--guide-line); }
.prompt-library-principles article { min-height: 190px; padding: 1.25rem; background: #f1f5fa; }
.prompt-library-principles span { display: block; color: var(--guide-blue); font-size: .56rem; font-weight: 700; letter-spacing: .08em; }
.prompt-library-principles strong { display: block; margin: 2.7rem 0 .6rem; font-size: .9rem; }
.prompt-library-principles p { margin: 0; color: var(--guide-muted); font-size: .69rem; line-height: 1.55; }
.prompt-library { border-top: 1px solid var(--guide-line-dark); }
.prompt-library-toolbar { display: grid; grid-template-columns: minmax(240px, .36fr) minmax(0, 1fr); gap: 1rem; align-items: end; padding: 1.4rem 0; }
.prompt-library-search span { display: block; margin-bottom: .45rem; color: var(--guide-muted); font-size: .54rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.prompt-library-search input { width: 100%; padding: .72rem 0; border: 0; border-bottom: 1px solid var(--guide-line-dark); background: transparent; color: var(--guide-ink); font: inherit; font-size: .73rem; outline: 0; }
.prompt-library-search input:focus { border-color: var(--guide-blue); }
.prompt-library-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.prompt-library-filters button { padding: .48rem .68rem; border: 1px solid var(--guide-line-dark); background: transparent; color: var(--guide-muted); cursor: pointer; font: inherit; font-size: .58rem; }
.prompt-library-filters button:hover, .prompt-library-filters button[aria-pressed="true"] { border-color: var(--guide-blue); background: var(--guide-blue); color: #fff; }
.prompt-library-layout { display: grid; grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr); align-items: start; border: 1px solid var(--guide-line-dark); background: #fff; }
.prompt-library-index { position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow: auto; border-right: 1px solid var(--guide-line-dark); scrollbar-color: #b7c5d7 transparent; scrollbar-width: thin; }
.prompt-library-index-item { display: grid; width: 100%; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: .8rem; align-items: center; min-height: 82px; padding: .8rem 1rem; border: 0; border-bottom: 1px solid var(--guide-line); background: #fff; color: var(--guide-ink); cursor: pointer; text-align: left; }
.prompt-library-index-item:hover { background: #f4f7fb; }
.prompt-library-index-item.is-active { background: #e8f0ff; box-shadow: inset 3px 0 0 var(--guide-blue); }
.prompt-library-index-item > span:nth-child(2) { min-width: 0; }
.prompt-library-index-item small, .prompt-library-index-item strong { display: block; }
.prompt-library-index-item small { margin-bottom: .22rem; color: var(--guide-blue); font-size: .49rem; font-weight: 700; letter-spacing: .08em; }
.prompt-library-index-item strong { overflow: hidden; font-size: .69rem; font-weight: 620; line-height: 1.35; text-overflow: ellipsis; }
.prompt-library-index-item b { color: #9eabbb; font-size: .72rem; font-weight: 400; text-align: right; }
.prompt-library-index-brand { display: grid; width: 36px; height: 36px; place-items: center; background: #f3f6fa; }
.prompt-library-index-brand img { display: block; width: 26px; height: 26px; object-fit: contain; }
.prompt-library-index-brand .prompt-library-wordmark { width: 36px; height: 36px; font-size: .54rem; }
.prompt-library-reader { min-width: 0; background: #fff; }
.prompt-library-reader-header { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 1rem; align-items: center; min-height: 112px; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--guide-line-dark); background: #f8fafc; }
.prompt-library-reader-header p { margin: 0 0 .28rem; color: var(--guide-blue); font-size: .52rem; font-weight: 700; letter-spacing: .1em; }
.prompt-library-reader-header h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.65rem); font-weight: 560; letter-spacing: -.035em; }
.prompt-library-brand { display: grid; width: 56px; height: 56px; place-items: center; background: #fff; }
.prompt-library-brand img { display: block; width: 42px; height: 42px; object-fit: contain; }
.prompt-library-brand .prompt-library-wordmark { width: 56px; height: 56px; }
.prompt-library-wordmark { display: grid; width: 52px; height: 52px; place-items: center; background: #17253a; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: -.04em; }
.prompt-library-brand[data-brand="wan"] .prompt-library-wordmark { background: #284d9d; }
.prompt-library-close { display: none; padding: .55rem .7rem; border: 1px solid var(--guide-line-dark); background: transparent; color: var(--guide-blue); cursor: pointer; font: inherit; font-size: .58rem; }
.prompt-library-content { max-width: 82ch; padding: clamp(2rem, 4vw, 3.5rem); color: #455366; font-size: .78rem; line-height: 1.75; }
.prompt-library-content > :first-child { margin-top: 0; }
.prompt-library-content h4 { margin: 3.4rem 0 1rem; color: var(--guide-ink); font-size: clamp(1.25rem, 2.4vw, 1.85rem); font-weight: 560; letter-spacing: -.035em; line-height: 1.2; }
.prompt-library-content h5 { margin: 2.7rem 0 .8rem; color: var(--guide-ink); font-size: 1rem; font-weight: 650; line-height: 1.3; }
.prompt-library-content p { margin: 0 0 1.25rem; }
.prompt-library-content a { color: var(--guide-blue); text-underline-offset: .2em; }
.prompt-library-content code:not(pre code) { padding: .12rem .28rem; background: #edf2f8; color: #244f9f; font-size: .7rem; }
.prompt-library-content blockquote { margin: 2rem 0; padding: 1.25rem 1.4rem; border-left: 3px solid var(--guide-blue); background: #eef4ff; color: #29466e; font-size: .78rem; }
.prompt-library-content ul, .prompt-library-content ol { margin: 1rem 0 1.5rem; padding-left: 1.2rem; }
.prompt-library-content li { margin-bottom: .5rem; }
.prompt-library-code { margin: 2rem 0; border: 1px solid #2c3d56; background: #17253a; color: #dce7f7; }
.prompt-library-code > div { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 .9rem; border-bottom: 1px solid #ffffff24; }
.prompt-library-code > div span { color: #8eb5ff; font-size: .51rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.prompt-library-code button { padding: .38rem .55rem; border: 1px solid #ffffff35; background: transparent; color: #fff; cursor: pointer; font: inherit; font-size: .56rem; }
.prompt-library-code button:hover { border-color: #8eb5ff; color: #8eb5ff; }
.prompt-library-code pre { max-height: 520px; margin: 0; padding: 1.25rem; overflow: auto; white-space: pre-wrap; }
.prompt-library-code code { font: 400 .7rem/1.7 Manrope, sans-serif !important; }
.prompt-library-table { margin: 2rem 0; overflow-x: auto; border-top: 1px solid var(--guide-line-dark); }
.prompt-library-table-date { display: flex; justify-content: flex-end; gap: .4rem; align-items: center; margin: 0; padding: .65rem .75rem; border-bottom: 1px solid var(--guide-line); color: var(--guide-muted); font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; }
.prompt-library-table-date span::after { content: "—"; margin-left: .4rem; color: var(--guide-line-dark); }
.prompt-library-table-date strong { color: var(--guide-ink); }
.prompt-library-table table { width: 100%; border-collapse: collapse; min-width: 560px; }
.prompt-library-table th, .prompt-library-table td { padding: .8rem .75rem; border-bottom: 1px solid var(--guide-line); text-align: left; vertical-align: top; }
.prompt-library-table th { color: var(--guide-blue); font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; }
.prompt-library-table td { font-size: .68rem; }
.prompt-library-loading, .prompt-library-empty, .prompt-library-error { margin: 0; padding: 1.4rem; color: var(--guide-muted); font-size: .68rem; }
.prompt-library-footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--guide-line-dark); }
.prompt-library-footer p { max-width: 72ch; margin: 0; color: var(--guide-muted); font-size: .61rem; }
.prompt-library-footer a { flex: 0 0 auto; display: inline-flex; gap: 1rem; padding-bottom: .4rem; border-bottom: 1px solid var(--guide-blue); color: var(--guide-blue); font-size: .61rem; text-decoration: none; }

.guide-model-table { margin-top: 2rem; }
.guide-model-table td:first-child { white-space: nowrap; }
.guide-brand-cell { display: inline-flex; align-items: center; gap: .8rem; min-width: 0; }
.guide-brand-cell > span, .guide-api-model > span { min-width: 0; }
.guide-brand-cell img, .guide-api-model img, .guide-provider-name img { display: block; object-fit: contain; }
.guide-brand-cell > img { width: 42px; height: 42px; }
.guide-brand-cell-small { gap: .65rem; }
.guide-brand-cell-small > img, .guide-brand-cell-small > .guide-wordmark { width: 34px; height: 34px; flex-basis: 34px; }
.guide-wordmark { display: inline-grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; background: #172232; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.guide-wordmark-runway { background: #111; color: #fff; }
.guide-wordmark-magnific { background: #f0eaff; color: #6c3bd1; font-family: Georgia, serif !important; font-size: .95rem; font-style: italic; }
.guide-wordmark-artlist { background: #161b20; color: #fff; font-size: .82rem; }
.guide-wordmark-openart { background: #e9efff; color: #3057b8; font-size: .55rem; letter-spacing: -.08em; }
.guide-wordmark-firefly { background: #2d1233; color: #f4a8ff; font-size: .72rem; }
.guide-decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.guide-decision-grid article { min-height: 240px; padding: 1.5rem; border-top: 1px solid var(--guide-blue); background: #f1f5fa; }
.guide-decision-grid h3 { margin: 3rem 0 .8rem; font-size: 1.05rem; line-height: 1.25; }
.guide-decision-grid p { margin: 0; color: var(--guide-muted); font-size: .76rem; }
.guide-table-date { display: flex; justify-content: flex-end; gap: .45rem; align-items: center; margin: .8rem 0; color: var(--guide-muted); font-size: .54rem; letter-spacing: .06em; text-transform: uppercase; }
.guide-table-date span::after { content: "—"; margin-left: .45rem; color: var(--guide-line-dark); }
.guide-table-date strong { color: var(--guide-ink); font-weight: 700; }
.guide-best-value td { background: #e9f1ff !important; }
.guide-best-value td:first-child { box-shadow: inset 3px 0 0 var(--guide-blue); }
.guide-value-badge { display: block !important; width: max-content; margin-top: .38rem; padding: .22rem .34rem; background: var(--guide-blue); color: #fff !important; font-size: .45rem !important; font-weight: 750; letter-spacing: .08em; line-height: 1.1; white-space: nowrap; }
.guide-value-callout { display: grid; grid-template-columns: minmax(210px, .62fr) minmax(240px, .9fr) minmax(0, 1.48fr); gap: 1rem; align-items: center; margin-bottom: 1rem; padding: 1rem 1.1rem; border-left: 3px solid var(--guide-blue); background: #e9f1ff; }
.guide-value-callout span { color: var(--guide-blue); font-size: .51rem; font-weight: 750; letter-spacing: .08em; }
.guide-value-callout strong { font-size: .79rem; }
.guide-value-callout p { margin: 0; color: var(--guide-muted); font-size: .63rem; line-height: 1.5; }
.h3-local { margin-top: clamp(5rem, 9vw, 8rem); padding-top: 2.2rem; border-top: 1px solid var(--guide-blue); }
.h3-local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2.5rem; padding: 1px; background: var(--guide-line); }
.h3-local-grid article, .h3-local-grid aside { min-height: 300px; padding: 1.6rem; background: #fff; }
.h3-local-grid aside { background: #17253a; color: #fff; }
.h3-local-grid span { color: var(--guide-blue); font-size: .54rem; font-weight: 750; letter-spacing: .1em; }
.h3-local-grid aside span { color: #8fb5ff; }
.h3-local-grid h4 { margin: 4rem 0 1rem; font-size: 1.3rem; font-weight: 560; }
.h3-local-grid p { color: var(--guide-muted); font-size: .72rem; line-height: 1.65; }
.h3-local-grid aside p { color: #c1ccdc; }
.h3-hardware-table { margin-top: 3rem; }
.h3-install-card { margin-top: 1rem; }

.guide-prompt-formula { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; padding: 1px; margin: 3rem 0; background: var(--guide-line); }
.guide-prompt-formula li { min-height: 190px; padding: 1.2rem; background: var(--guide-paper); }
.guide-prompt-formula span { display: block; margin-bottom: 3.2rem; color: var(--guide-blue); font-size: .58rem; }
.guide-prompt-formula strong { display: block; margin-bottom: .5rem; font-size: .78rem; line-height: 1.35; }
.guide-prompt-formula small { display: block; color: var(--guide-muted); font-size: .63rem; }
.guide-prompt-stack { display: grid; gap: 1rem; }
.guide-prompt-card { border: 1px solid var(--guide-line-dark); background: #fff; }
.guide-prompt-card header { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--guide-line); }
.guide-prompt-card header span { color: var(--guide-blue); font-size: .54rem; font-weight: 700; letter-spacing: .1em; }
.guide-prompt-card header h3 { margin: .25rem 0 0; font-size: .85rem; font-weight: 650; }
.guide-prompt-card button { flex: 0 0 auto; padding: .55rem .8rem; border: 1px solid var(--guide-line-dark); background: transparent; color: var(--guide-blue); cursor: pointer; font-size: .64rem; }
.guide-prompt-card button:hover { background: var(--guide-soft); }
.guide-prompt-card button.is-copied { border-color: var(--guide-blue); background: var(--guide-blue); color: #fff; }
.guide-prompt-card pre { margin: 0; padding: 1.5rem; overflow-x: auto; color: #354355; font: 400 .75rem/1.75 Manrope, sans-serif !important; white-space: pre-wrap; }
.guide-prompt-negative { background: #eef3f8; }

.guide-production { margin-top: 3.5rem; border-top: 1px solid var(--guide-line-dark); }
.guide-production article { display: grid; grid-template-columns: 120px 1fr; gap: 2rem; padding: 2.2rem 0; border-bottom: 1px solid var(--guide-line); }
.guide-production-number { color: #c0ccda; font-size: 4rem; font-weight: 500; line-height: 1; }
.guide-production h3 { margin: .6rem 0 .8rem; font-size: 1.45rem; font-weight: 560; letter-spacing: -.03em; }
.guide-production p { max-width: 70ch; color: var(--guide-muted); font-size: .84rem; }
.guide-production ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.guide-production li { padding-top: .75rem; border-top: 1px solid var(--guide-line); font-size: .69rem; }

.guide-platform-index { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin: 3rem 0 1rem; padding: 1px; background: var(--guide-line); }
.guide-platform-index a { min-width: 0; min-height: 170px; display: flex; flex-direction: column; align-items: flex-start; padding: 1.2rem; background: #fff; text-decoration: none; transition: background .2s, color .2s; }
.guide-platform-index a:hover { background: #eef4fb; color: var(--guide-blue); }
.guide-platform-mark { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: auto; }
.guide-platform-mark img { display: block; width: 48px; height: 48px; object-fit: contain; }
.guide-platform-index .guide-wordmark { width: 48px; height: 48px; flex-basis: 48px; }
.guide-platform-index strong { display: block; margin-top: 2rem; font-size: .74rem; line-height: 1.25; }
.guide-platform-index small { display: block; margin-top: .25rem; color: var(--guide-muted); font-size: .56rem; line-height: 1.3; }

.guide-calculator { margin: 3rem 0 5rem; padding: 2.2rem; background: #17253a; color: #fff; }
.guide-calculator-copy { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 3rem; align-items: end; margin-bottom: 2.2rem; }
.guide-calculator-copy > p { grid-column: 1 / -1; margin: 0; color: #82adff; font-size: .57rem; font-weight: 700; letter-spacing: .12em; }
.guide-calculator-copy h3 { margin: 0; font-size: 1.8rem; font-weight: 500; letter-spacing: -.04em; }
.guide-calculator-copy > span { color: #aebbd0; font-size: .74rem; }
.guide-calculator-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #ffffff24; }
.guide-calculator-fields label { padding: 1rem; background: #1d2d45; color: #aebbd0; font-size: .58rem; }
.guide-calculator-fields input { display: block; width: 100%; margin-top: .65rem; padding: .55rem 0; border: 0; border-bottom: 1px solid #ffffff54; background: transparent; color: #fff; font-size: 1.25rem; font-weight: 600; outline: 0; }
.guide-calculator-fields input:focus { border-color: #82adff; }
.guide-calculator-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 1px; background: #ffffff24; }
.guide-calculator-results div { padding: 1.2rem; background: #20334f; }
.guide-calculator-results span { display: block; margin-bottom: .5rem; color: #91b6ff; font-size: .54rem; font-weight: 700; letter-spacing: .1em; }
.guide-calculator-results strong { font-size: 1.4rem; font-weight: 550; }

.guide-cost-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.guide-duration-filters { display: flex; border: 1px solid var(--guide-line-dark); }
.guide-duration-filters button { padding: .55rem .8rem; border: 0; border-left: 1px solid var(--guide-line); background: #fff; color: var(--guide-muted); cursor: pointer; font-size: .63rem; }
.guide-duration-filters button:first-child { border-left: 0; }
.guide-duration-filters button[aria-pressed="true"] { background: var(--guide-blue); color: #fff; }
.guide-api-table { margin-top: 0; }
.guide-api-table [data-duration].is-filtered { display: none; }
.guide-api-model { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; }
.guide-api-model > img, .guide-api-model > .guide-wordmark { width: 28px; height: 28px; flex-basis: 28px; }
.guide-api-model > .guide-wordmark { font-size: .5rem; }

.guide-provider-tables { margin-top: 2rem; border-top: 1px solid var(--guide-line-dark); }
.guide-provider-tables details { border-bottom: 1px solid var(--guide-line-dark); }
.guide-provider-tables summary { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 1rem; padding: 1.2rem 0; cursor: pointer; list-style: none; }
.guide-provider-tables summary::-webkit-details-marker { display: none; }
.guide-provider-tables summary::after { content: "+"; color: var(--guide-blue); font-size: 1.3rem; }
.guide-provider-tables details[open] summary::after { content: "−"; }
.guide-provider-tables summary span { font-size: .9rem; font-weight: 700; }
.guide-provider-name { display: inline-flex; align-items: center; gap: .7rem; }
.guide-provider-name > img, .guide-provider-name > .guide-wordmark { width: 34px; height: 34px; flex-basis: 34px; }
.guide-provider-name > .guide-wordmark { font-size: .56rem; }
.guide-provider-tables summary small { color: var(--guide-muted); font-size: .68rem; }
.guide-provider-tables details > .guide-table-scroll, .guide-detail-copy { padding-bottom: 1.5rem; }
.guide-provider-tables .guide-table-date { margin: .8rem 0 .2rem; }
.guide-detail-copy { max-width: 70ch; color: var(--guide-muted); font-size: .8rem; }

.guide-budget-example { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 5rem; padding: 2.2rem; border: 1px solid var(--guide-blue); background: var(--guide-soft); }
.guide-budget-example > div > p { margin: 0 0 1rem; color: var(--guide-blue); font-size: .57rem; font-weight: 700; letter-spacing: .12em; }
.guide-budget-example h3 { margin-bottom: .8rem; font-size: 1.6rem; font-weight: 550; letter-spacing: -.04em; }
.guide-budget-example > div > span { display: block; color: var(--guide-muted); font-size: .75rem; }
.guide-budget-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.guide-budget-numbers p { margin: 0; padding: 1.2rem; border-left: 1px solid var(--guide-blue); }
.guide-budget-numbers span, .guide-budget-numbers small { display: block; }
.guide-budget-numbers span { margin-bottom: 1.4rem; color: var(--guide-blue); font-size: .52rem; font-weight: 700; letter-spacing: .08em; }
.guide-budget-numbers strong { display: block; margin-bottom: .5rem; font-size: 1.25rem; }
.guide-budget-numbers small { color: var(--guide-muted); font-size: .63rem; }

.guide-troubleshooting { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 3rem; padding: 1px; background: var(--guide-line); }
.guide-troubleshooting article { min-height: 190px; padding: 1.5rem; background: var(--guide-paper); }
.guide-troubleshooting h3 { margin-bottom: 2rem; font-size: 1rem; font-weight: 650; }
.guide-troubleshooting p { margin: 0; color: var(--guide-muted); font-size: .76rem; }

.guide-publish-check { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; margin-top: 5rem; padding: 2rem 0; border-block: 1px solid var(--guide-blue); }
.guide-publish-check > div:first-child > p { margin-bottom: .7rem; color: var(--guide-blue); font-size: .57rem; font-weight: 700; letter-spacing: .12em; }
.guide-publish-check h3 { margin-bottom: 1rem; font-size: 1.7rem; font-weight: 550; }
.guide-publish-check > div:first-child span { color: var(--guide-muted); font-size: .72rem; }
.guide-check-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.guide-check-options label { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--guide-line); color: #455366; font-size: .7rem; cursor: pointer; }
.guide-check-options input { flex: 0 0 auto; width: 17px; height: 17px; margin: .15rem 0 0; accent-color: var(--guide-blue); }

.guide-summary { padding: clamp(6rem, 10vw, 11rem) clamp(1.5rem, 5vw, 5rem); border: 0; background: #17253a; color: #fff; }
.guide-summary .guide-label { color: #85afff; }
.guide-summary h2 { max-width: 12ch; }
.guide-summary > p:not(.guide-label) { max-width: 65ch; color: #b9c6d9; font-size: 1rem; }
.guide-summary-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; }
.guide-summary-actions a { display: inline-flex; justify-content: space-between; gap: 2rem; min-width: 260px; padding: .9rem 1rem; border: 1px solid #ffffff55; color: #fff; font-size: .7rem; text-decoration: none; }
.guide-summary-actions a:first-child { border-color: #8db4ff; background: #8db4ff; color: #17253a; }

.guide-sources { padding-block: 5rem 7rem; }
.guide-sources h2 { margin-bottom: .7rem; font-size: 1.6rem; font-weight: 600; letter-spacing: -.04em; }
.guide-sources > p { color: var(--guide-muted); font-size: .75rem; }
.guide-sources ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; margin-top: 2rem; padding-left: 1.3rem; }
.guide-sources li { padding: .55rem .3rem; border-bottom: 1px solid var(--guide-line); color: #7b8796; font-size: .66rem; }
.guide-sources a { color: #4f5e70; text-underline-offset: .2em; }
.guide-sources a:hover { color: var(--guide-blue); }

.guide-footer { border-top: 1px solid var(--guide-line); background: #fff; }
.guide-footer > div { display: flex; justify-content: space-between; align-items: center; min-height: 130px; gap: 2rem; color: var(--guide-muted); font-size: .68rem; }
.guide-footer nav { display: flex; gap: 1.5rem; }
.guide-footer a { text-decoration: none; }
.guide-footer a:hover { color: var(--guide-blue); }

@media (max-width: 1080px) {
    .guide-topbar nav { display: none; }
    .guide-hero-grid { grid-template-columns: 1fr; min-height: 0; }
    .guide-route { display: grid; grid-template-columns: repeat(5, 1fr); }
    .guide-route li { border-right: 1px solid var(--guide-line-dark); }
    .guide-route li:last-child { border-right: 0; }
    .guide-route a { display: flex; min-height: 150px; padding: 1rem; align-items: flex-start; flex-direction: column; gap: .7rem; }
    .guide-route a:hover { padding-left: 1rem; }
    .guide-route-copy { margin-top: auto; }
    .guide-route-arrow { display: none; }
    .guide-shell { grid-template-columns: 1fr; }
    .guide-toc { position: static; margin-top: 2rem; }
    .guide-toc nav { display: grid; grid-template-columns: repeat(3, 1fr); }
    .guide-toc nav a { padding-right: 1rem; }
    .guide-toc-cta { max-width: 280px; }
    .guide-content { max-width: none; }
    .guide-prompt-formula { grid-template-columns: repeat(3, 1fr); }
    .guide-prompt-formula li:nth-child(n+4) { min-height: 150px; }
    .case-pipeline-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .case-pipeline-list li:nth-child(3)::after { display: none; }
    .prompt-library-heading { grid-template-columns: 1fr; gap: 2.5rem; }
    .prompt-library-layout { grid-template-columns: minmax(240px, .4fr) minmax(0, 1fr); }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 76px; }
    .guide-wrap { width: min(100% - 32px, var(--guide-width)); }
    .guide-topbar { min-height: 68px; padding-inline: 16px; }
    .guide-brand img { width: 34px; height: 34px; }
    .guide-brand small { display: none; }
    .guide-back { font-size: .67rem; }
    .guide-hero { background: var(--guide-soft); }
    .guide-hero-grid { gap: 3rem; padding-block: 4rem 3rem; }
    .guide-hero h1 { font-size: clamp(3.15rem, 16vw, 5.1rem); }
    .guide-lead { margin-bottom: 2rem; }
    .guide-route { grid-template-columns: 1fr; }
    .guide-route li { border-right: 0; }
    .guide-route a { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; min-height: 74px; padding: .7rem 0; align-items: center; }
    .guide-route a:hover { padding-left: .5rem; }
    .guide-route-copy { margin-top: 0; }
    .guide-route-arrow { display: block; }
    .guide-toc { display: none; }
    .guide-section { padding-block: 4.8rem; }
    .guide-section h2 { font-size: clamp(2.25rem, 11.5vw, 3.7rem); }
    .guide-definitions, .guide-brief-grid, .guide-decision-grid, .guide-budget-example, .guide-publish-check { grid-template-columns: 1fr; }
    .guide-definitions article:nth-child(odd) { padding-right: 0; border-right: 0; }
    .guide-definitions article:nth-child(even) { padding-left: 0; }
    .guide-definitions article { min-height: 200px; }
    .guide-note { grid-template-columns: 1fr; gap: .7rem; }
    .guide-callout { padding: 1.4rem; }
    .guide-tab-list { display: flex; overflow-x: auto; }
    .guide-tab-list button { flex: 0 0 auto; min-width: 180px; }
    .guide-tab-panel { grid-template-columns: 1fr; gap: 2rem; }
    .guide-tab-mark { width: 105px; height: 105px; }
    .guide-decision-grid article { min-height: 190px; }
    .guide-prompt-formula { grid-template-columns: 1fr; }
    .guide-prompt-formula li { min-height: 140px; }
    .guide-prompt-formula span { margin-bottom: 1.8rem; }
    .guide-prompt-card header { align-items: flex-start; }
    .guide-prompt-card pre { font-size: .68rem; }
    .guide-production article { grid-template-columns: 62px 1fr; gap: 1rem; }
    .guide-production-number { font-size: 2.8rem; }
    .guide-production ul { grid-template-columns: 1fr; }
    .guide-platform-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .guide-calculator { margin-inline: -16px; padding: 1.4rem 16px; }
    .guide-calculator-copy { grid-template-columns: 1fr; }
    .guide-calculator-fields { grid-template-columns: 1fr 1fr; }
    .guide-calculator-results { grid-template-columns: 1fr; }
    .guide-cost-toolbar { display: block; }
    .guide-duration-filters { width: max-content; max-width: 100%; margin-top: 1rem; overflow-x: auto; }
    .guide-provider-tables summary { grid-template-columns: 1fr auto; }
    .guide-provider-tables summary small { grid-column: 1 / -1; }
    .guide-budget-numbers { grid-template-columns: 1fr; }
    .guide-troubleshooting, .guide-check-options, .guide-sources ol { grid-template-columns: 1fr; }
    .guide-value-callout { grid-template-columns: 1fr; }
    .h3-local-grid { grid-template-columns: 1fr; }
    .h3-local-grid article, .h3-local-grid aside { min-height: 250px; }
    .h3-local-grid h4 { margin-top: 2.5rem; }
    .guide-summary { margin-inline: -16px; padding-inline: 16px; }
    .guide-summary-actions a { min-width: 100%; }
    .case-hero { grid-template-columns: 1fr; }
    .case-film { width: min(100%, 430px); margin-inline: auto; }
    .case-subheading { grid-template-columns: 1fr; gap: .55rem; }
    .case-pipeline-list { grid-template-columns: 1fr; }
    .case-pipeline-list li { min-height: 210px; }
    .case-pipeline-list li:nth-child(3)::after { display: grid; }
    .case-pipeline-list li:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -.62rem; translate: 50% 0; }
    .case-motion-grid { grid-template-columns: 1fr; }
    .case-timing-track { grid-template-columns: 1fr; }
    .case-timing-track > div { min-height: 105px; border-right: 0; border-bottom: 1px solid var(--guide-line-dark); }
    .case-timing-track > div:last-child { border-bottom: 0; }
    .case-speed-result { flex-direction: column; gap: .55rem; text-align: center; }
    .case-speed-result b { rotate: 90deg; }
    .case-lessons summary { grid-template-columns: 36px minmax(0, 1fr) 18px; gap: .65rem; }
    .case-lessons summary small { grid-column: 2 / 3; }
    .case-lessons summary::after { grid-column: 3; grid-row: 1 / 3; }
    .case-lessons details > div { padding-left: 0; }
    .prompt-library-principles, .prompt-library-stats { grid-template-columns: 1fr; }
    .prompt-library-stats div { min-height: 92px; }
    .prompt-library-stats div + div { padding-left: 0; border-left: 0; }
    .prompt-library-stats dd { max-width: none; margin-top: .65rem; }
    .prompt-library-principles article { min-height: 155px; }
    .prompt-library-principles strong { margin-top: 1.8rem; }
    .prompt-library-toolbar { grid-template-columns: 1fr; }
    .prompt-library-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: .2rem; }
    .prompt-library-filters button { flex: 0 0 auto; }
    .prompt-library-layout { display: block; border-inline: 0; }
    .prompt-library-index { position: static; max-height: none; border-right: 0; }
    .prompt-library-reader { display: none; }
    .prompt-library.is-reader-open .prompt-library-index { display: none; }
    .prompt-library.is-reader-open .prompt-library-reader { display: block; }
    .prompt-library-close { display: block; }
    .prompt-library-reader-header { grid-template-columns: 48px minmax(0, 1fr) auto; padding-inline: 1rem; }
    .prompt-library-brand { width: 46px; height: 46px; }
    .prompt-library-brand img { width: 34px; height: 34px; }
    .prompt-library-brand .prompt-library-wordmark { width: 46px; height: 46px; }
    .prompt-library-content { padding: 1.5rem 1rem 2.2rem; }
    .prompt-library-content h4 { margin-top: 2.7rem; }
    .prompt-library-code { margin-inline: -1rem; border-inline: 0; }
    .prompt-library-footer { align-items: flex-start; flex-direction: column; }
    .guide-footer > div { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (max-width: 420px) {
    .guide-topbar .guide-brand span { font-size: .7rem; }
    .guide-back { gap: .35rem; }
    .guide-check-list li { grid-template-columns: 1fr; gap: .25rem; }
    .guide-callout dl div { grid-template-columns: 70px 1fr; }
    .case-toolchain, .case-facts { grid-template-columns: 1fr; }
    .case-facts div:nth-child(odd) { border-right: 0; }
    .case-facts div:nth-child(even) { padding-left: 0; }
    .guide-calculator-fields { grid-template-columns: 1fr; }
    .guide-platform-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-platform-index a { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
