@font-face { font-family: 'Noto Sans'; src: url('./vendor/NotoSans-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family: 'Noto Sans'; src: url('./vendor/NotoSans-SemiBold.ttf') format('truetype'); font-weight:600; font-display:swap; }
@font-face { font-family: Instrument Sans; src: url('./fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Geist Mono; src: url('./fonts/geist-mono.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Inter; src: url('./fonts/inter.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
:root { font-family: Inter, system-ui, sans-serif; color: #232122; background: #f5f5f5; --blue: #2b57e5; --muted: #8f8e8e; }
* { box-sizing: border-box; }
body { margin: 0; background: #f5f5f5; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
a { color: inherit; text-decoration: none; }
p, h1, h2, dl, dd { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; background: white; padding: 12px; z-index: 10; }
.skip-link:focus { top: 16px; }
/* Keep native and programmatic focus free of outlines on every input modality. */
:focus, :focus-visible { outline: none; }
.app-layout { max-width: 1440px; margin: auto; padding: 16px 24px 32px; display: grid; grid-template-columns: 222px minmax(0, 900px) 222px; gap: 24px; align-items: start; }
.left-rail, .right-rail { position: sticky; top: 16px; min-width: 0; }
.wordmark { display: flex; align-items: center; gap: 8px; font: 700 20px/1.2 'Instrument Sans', 'Noto Sans', sans-serif; letter-spacing: -.5px; width: max-content; margin: 8px 0 24px -4px; }
.brand-mark { width: 32px; height: 32px; background: var(--blue); border-radius: 10px; flex: none; }
#slide-nav { display: flex; flex-direction: column; align-items: flex-start; max-height: calc(100dvh - 112px); overflow-y: auto; scrollbar-width: thin; }
.nav-slide { padding: 12px 16px; border: 0; background: transparent; color: #232122; border-radius: 16px; font-size: 14px; line-height: 17px; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.nav-slide[aria-current='step'] { background: white; font-weight: 500; }
.nav-slide:hover { background: #ffffff80; }
.mobile-menu-button, .mobile-download { display: none; }
.mobile-dialog { border: 0; border-radius: 24px; background: #f5f5f5; color: #232122; width: min(360px, calc(100% - 24px)); max-height: calc(100dvh - 48px); margin: 16px auto auto; padding: 16px; }
.mobile-dialog::backdrop { background: #23212255; }
body:has(.mobile-dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.dialog-heading h2 { font: 600 20px/1.2 "Instrument Sans", sans-serif; }
.dialog-heading button { background: none; border: 0; color: var(--blue); min-height: 44px; padding: 8px; font-size: 14px; }
.mobile-dialog #slide-nav { max-height: calc(100dvh - 148px); }
.mobile-dialog .nav-slide { min-height: 44px; width: 100%; }
.mobile-dialog #settings > .settings-heading { display: none; }
.mobile-dialog .settings-rows { margin-top: 0; }
.canvas-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.slide-canvas { background: white; border-radius: 32px; padding: 32px; scroll-margin-top: 16px; min-width: 0; }
.slide-canvas.is-active { padding: 24px 32px; min-height: 450px; display: flex; flex-direction: column; gap: 24px; }
.canvas-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 600 14px/24px 'Geist Mono', monospace; }
.canvas-title { border: 0; background: none; font: inherit; color: inherit; padding: 0; text-align: left; flex: 1; }
.is-active .canvas-title { color: var(--muted); }
.canvas-number, .help-button { color: var(--muted); }
.help-button { border: 0; background: none; font: inherit; padding: 0; min-width: 24px; min-height:24px; }
.canvas-content { margin-block: auto; display: flex; flex-direction: column; gap: 24px; font: 600 40px/1 'Instrument Sans', 'Noto Sans', sans-serif; letter-spacing: -.0175em; min-width: 0; }
.company-input { font: inherit; letter-spacing: inherit; color: inherit; width: 100%; background: transparent; border: 0; padding: 0; border-radius: 2px; line-height: 1.1; min-width: 0; }
.company-input::placeholder { color: #232122; opacity: 1; }
.canvas-answer { position: relative; min-width: 0; }
.canvas-answer textarea { display: block; width: 100%; min-height: 80px; margin: 0; padding: 0; border: 0; background: transparent; resize: none; overflow: hidden; color: #232122; font: inherit; letter-spacing: inherit; line-height: 1; border-radius: 2px; overflow-wrap: anywhere; }
.template-preview { position: absolute; inset: 0 0 auto; pointer-events: none; white-space: pre-wrap; overflow-wrap: anywhere; color: #838282; }
.template-preview span { color: #232122; }
.canvas-answer:focus-within .template-preview { opacity: .45; }
.canvas-details { background: transparent; border: 0; padding: 0; width: 100%; min-height: 26px; resize: none; overflow: hidden; font: 400 20px/1.4 'Instrument Sans', 'Noto Sans', sans-serif; color: #676566; }
.canvas-details::placeholder { color: #989696; }
.canvas-bottom { display: flex; flex-direction: column; gap: 24px; }
.canvas-divider { display: block; width: 100%; height: 1px; object-fit: fill; }
.canvas-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 500 14px/24px 'Geist Mono', monospace; }
.canvas-actions { display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; }
.canvas-actions button { font: inherit; border: 0; background: none; color: var(--blue); padding: 0; white-space: nowrap; }
.canvas-actions button:hover { text-decoration: underline; text-underline-offset: 3px; }
.canvas-actions button + button { margin-left: 16px; padding-left: 16px; position: relative; }
.canvas-actions button + button::before { content: ''; width: 1px; height: 16px; background: #2321221a; position: absolute; left: 0; top: 4px; }
.canvas-tools .canvas-number { margin-left: auto; }
.help-panel { margin:0; padding: 20px; border-radius: 16px; background: #fcf6bd; font-size: 13px; line-height: 1.6; }
.help-panel h2 { font: 600 20px/1.3 'Instrument Sans', 'Noto Sans', sans-serif; }
.help-panel p { margin-top: 10px; color: #686667; }
.help-panel button { background: none; border: 0; color: var(--blue); font-size: 13px; padding: 10px 0 0; }
.settings-panel { padding: 16px; border: 1px solid #2321221a; border-radius: 32px; display: flex; flex-direction: column; gap: 16px; }
.settings-panel .settings-heading { display: block; margin:0; padding: 4px 8px; cursor: default; font: 600 16px/20px 'Instrument Sans', 'Noto Sans', sans-serif; }
.settings-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.settings-rows div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; height: 48px; border: 1px solid #2321221a; border-radius: 16px; background: #ffffffcc; font-size: 14px; font-weight: 500; }
.settings-rows dt { color: #7b797a; }
.download-button { min-height: 48px; padding: 12px 16px; background: #232122; color: white; font-size: 14px; font-weight: 500; border: 0; border-radius: 16px; }
.download-button:not(:disabled):hover { background: #3b393a; }
.download-button:disabled { opacity: 1; color: #b7b5b6; }
.storage-note { padding: 0 12px; margin-top: 16px; font-size: 11px; line-height: 1.55; color: #8b898a; }
#save-status.storage-error { position: static; clip-path: none; width: auto; height: auto; white-space: normal; padding: 12px; margin: 0; color: #9b3434; font-size: 12px; line-height: 1.5; }
.notice { position: fixed; z-index: 5; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: 560px; width: calc(100% - 32px); background: #232122; color: white; padding: 16px 20px; border-radius: 16px; box-shadow: 0 8px 30px #0002; font-size: 13px; line-height: 1.5; }
.empty-deck { padding: 48px 32px; background: white; border-radius: 32px; text-align: center; }
.empty-deck button { padding: 12px 16px; background: var(--blue); color: white; border: 0; border-radius: 12px; margin-top: 16px; }
@media (max-width: 1279px) {
  .app-layout { grid-template-columns: 174px minmax(0,1fr) 190px; gap: 16px; padding-inline: 16px; }
  .wordmark { font-size: 18px; margin-left: 0; }
  .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
  .nav-slide { padding-inline: 12px; font-size: 13px; }
  .slide-canvas, .slide-canvas.is-active { padding-inline: 24px; }
  .canvas-content { font-size: 32px; }
  .canvas-tools { font-size: 11px; gap: 10px; }
  .canvas-actions button + button { margin-left: 10px; padding-left: 10px; }
  .settings-panel { padding: 12px; }
  .settings-rows div { font-size: 12px; }
}
@media (width < 1000px) {
  .app-layout { display: flex; flex-direction: column; gap: 16px; padding: 16px 12px 32px; }
  .left-rail, .right-rail { position: static; width: 100%; }
  .left-rail { order: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
  .wordmark { font-size: 20px; margin: 0; justify-self: center; color: var(--blue); }
  .brand-mark { display: none; }
  .mobile-menu-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; padding: 10px; background: transparent; border-radius: 12px; }
  .mobile-menu-button img { display: block; }
  .mobile-menu-button:hover { background: #00000006; }
  .right-rail { display: none; }
  .mobile-download { order: 2; display: flex; flex-direction: column; width: 100%; }
  .mobile-download .download-button { width: 100%; }
  .canvas-stack { order: 1; width: 100%; }
  .slide-canvas { padding: 20px 24px; border-radius: 24px; }
  .slide-canvas.is-active { padding: 20px 24px; min-height: 390px; border-radius: 24px; }
  .canvas-content { font-size: clamp(25px, 6.7vw, 36px); gap: 20px; letter-spacing: -.5px; }
  .canvas-top { font-size: 12px; line-height: 24px; }
  .canvas-title, .help-button { min-height: 28px; }
  .canvas-answer textarea { min-height: 90px; }
  .canvas-bottom { gap: 14px; }
  .canvas-tools { font-size: 10px; line-height: 28px; gap: 4px; align-items: flex-end; }
  .canvas-actions { column-gap: 12px; row-gap: 2px; }
  .canvas-actions button { min-height: 32px; }
  .canvas-actions button + button { margin: 0; padding: 0; }
  .canvas-actions button + button::before { display: none; }
  .canvas-details { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.canvas-headline { width: 100%; min-width: 0; border: 0; background: transparent; padding: 0; color: #232122; font: 600 28px/1.3 'Instrument Sans', 'Noto Sans', sans-serif; }
.canvas-headline::placeholder { color: #8f8e8e; }
.canvas-kicker { color: #8f8e8e; font: 500 12px/1.4 'Geist Mono', monospace; }
.canvas-actions { flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.canvas-actions button { white-space: normal; text-align: left; overflow-wrap: anywhere; }
.canvas-actions button + button { margin: 0; padding: 0; }
.canvas-actions button + button::before { display: none; }
.canvas-tools { flex-wrap: wrap; align-items: baseline; }
@media(width < 1000px) { .canvas-headline { font-size:24px; } }

.settings-controls { display:flex; flex-direction:column; gap:8px; margin-top:16px; }
.settings-controls label { font-size:12px; color:#767475; }
.settings-controls input, .settings-controls select { width:100%; min-width:0; padding:10px; min-height:44px; border:1px solid #2321221a; border-radius:12px; background:white; color:#232122; font-size:13px; }
.setting-hint { font-size:11px; line-height:1.5; color:#8b898a; }
#advanced summary { font:500 12px/1.5 Inter,sans-serif; cursor:pointer; padding:10px 0; }
#axis-controls { display:grid; gap:8px; }
.canvas-meta { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:11px; line-height:1.5; color:#8b898a; }
.word-count.is-over { color:#9b5525; }
.evidence-badge, .preset-badge { background:#f5f5f5; border-radius:8px; padding:4px 8px; font-size:11px; line-height:1.5; color:#767475; }
.preset-badge button { border:0; background:none; color:var(--blue); padding:8px; }
.evidence-control { border:0; padding:0; margin:12px 0; display:flex; flex-wrap:wrap; gap:8px; }
.evidence-control label { display:flex; align-items:center; gap:4px; min-height:32px; }
.nav-group { font-size:11px; color:#8b898a; margin:16px 12px 8px; }
.nav-slide.is-hidden { opacity:.6; }
@media(width < 1000px){.settings-controls input,.settings-controls select { font-size:16px; } .mobile-dialog .settings-controls { margin-top:0; }}

#readiness { margin-top:16px; }
#readiness h2 { font:600 16px/1.4 'Instrument Sans','Noto Sans',sans-serif; margin-bottom:6px; }
#readiness ul { list-style:none; padding:0; margin:8px 0 0; }
#readiness li button { border:0; background:none; padding:6px 0; font:400 11px/1.5 Inter,sans-serif; color:#767475; text-align:left; }
.preraise-cta { display:block; font-size:12px; line-height:1.5; color:var(--blue); margin-top:12px; }
.right-rail { max-height:calc(100dvh - 32px); overflow-y:auto; scrollbar-width:thin; }
.mobile-dialog #readiness li button { min-height:44px; font-size:13px; }

#export-options summary { cursor:pointer; padding:8px 0; font:500 13px/1.5 Inter,sans-serif; }
.export-actions { display:flex; flex-direction:column; gap:8px; }
.export-actions button, .import-label { border:0; background:transparent; color:var(--blue); text-align:left; font-size:12px; padding:8px 0; }
.import-label { display:flex; flex-direction:column; gap:8px; }
#import-draft { width:100%; font-size:11px; color:#767475; }
@media(width < 1000px) { #export-options { margin-top:16px; } .export-actions button { min-height:44px; font-size:13px; } }

.canvas-content { font-size:26px; line-height:1.2; font-weight:500; letter-spacing:-.3px; }
.company-input { font-size:40px; font-weight:600; }
.canvas-headline { font-size:32px; }
.canvas-answer textarea { line-height:1.2; }
.dialog-notice { font-size:12px; line-height:1.5; color:#767475; margin-top:16px; }
@media(width < 1000px) { .canvas-content { font-size:22px; } .company-input { font-size:28px; } .canvas-headline { font-size:26px; } }

.notice { pointer-events:none; }

/* Figma 2:2 — compact settings and wordmark. */
.wordmark { letter-spacing:0; }
.brand-copy { display:flex; flex-direction:column; gap:0; }
#brand-template { font:600 12px/1.2 'Instrument Sans','Noto Sans',sans-serif; opacity:.5; }
.brand-mark { display:block; width:40px; height:40px; border-radius:0; background:transparent; }
.settings-panel { gap:16px; }
.settings-rows { gap:8px; margin-top:12px; }
.settings-rows .setting-row { position:relative; height:48px; padding:12px; gap:4px; font:500 14px/1.2 Inter,sans-serif; }
.setting-row label,.fixed-setting > span:first-child { color:#23212299; flex:none; pointer-events:none; }
.setting-row select { appearance:none; -webkit-appearance:none; border:0; background:transparent url('./icons/chevron-down.svg') no-repeat right center / 16px 16px; color:#232122; font:inherit; text-align:right; text-align-last:right; min-width:0; width:100%; padding:0 20px 0 0; cursor:pointer; height:46px; }
.setting-row:focus-within { outline:none; }
.setting-row select:focus { outline:none; }
.fixed-setting > span:last-child { margin-left:auto; }
/* Fixed ratio/style are not fake dropdowns: they reflect the selected purpose. */
#more-settings { margin-top:12px; padding:0 16px; }
#more-settings > summary { color:#767475; font:500 12px/1.5 Inter,sans-serif; cursor:pointer; padding:8px 0; }
#more-settings .settings-controls { margin-top:8px; }
@media(min-width:1000px) and (max-width:1279px) {
 .app-layout { grid-template-columns:174px minmax(0,1fr) 222px; }
 .setting-row select,.settings-rows .setting-row { font-size:13px; }
}
@media(width < 1000px) {
 .wordmark { color:#232122; margin:0; font-size:20px; }
 .brand-mark { display:grid; }
 #brand-template { max-width:146px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
 #more-settings { padding:0; }
 .setting-row select { font-size:16px; }
 .mobile-dialog .settings-rows { margin-top:0; }
}

/* Ratio applies to the writing canvas while long content can still expand it. */
.canvas-stack { container-type:inline-size; }
.slide-canvas.is-active { min-height:max(450px,calc(100cqw * var(--slide-height-factor,.5625))); }
@media(width < 1000px) { .slide-canvas.is-active { min-height:max(390px,calc(100cqw * var(--slide-height-factor,.5625))); } }
.slide-canvas { overflow-anchor:none; }
.setting-row select:disabled { background-image:none; opacity:1; padding-right:0; cursor:default; }
.reset-deck { display:block; margin:12px auto 0; padding:8px 12px; min-height:40px; border:0; background:transparent; color:#8b898a; font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.reset-deck:hover { color:#232122; }
.notice, .dialog-notice { position:fixed; inset:16px auto auto 50%; transform:translateX(-50%); width:max-content; max-width:min(560px,calc(100vw - 32px)); margin:0; padding:20px 26px; border:0; border-radius:24px; background:var(--blue); color:white; font:400 13px/1.5 Inter,sans-serif; overflow-wrap:anywhere; box-shadow:0 8px 30px #2b57e522; pointer-events:none; }
@media(width < 1000px) { .reset-deck { min-height:44px; } }

.reset-deck { display:flex; align-items:center; justify-content:center; gap:6px; }
.reset-deck img { opacity:.45; }
.dialog-heading button { display:grid; place-items:center; width:44px; height:44px; }

.help-button { display:grid; place-items:center; }
.help-icon { opacity:.45; }
#more-settings > summary, #advanced > summary, #export-options > summary { list-style:none; display:flex; align-items:center; gap:4px; }
#more-settings > summary::-webkit-details-marker, #advanced > summary::-webkit-details-marker, #export-options > summary::-webkit-details-marker { display:none; }
#more-settings > summary::before, #advanced > summary::before, #export-options > summary::before { content:''; flex:none; width:14px; height:14px; background:currentColor; mask:url('./icons/chevron-down.svg') center / contain no-repeat; transform:rotate(-90deg); }
#more-settings[open] > summary::before, #advanced[open] > summary::before, #export-options[open] > summary::before { transform:rotate(0); }

.example-deck { display:block; margin:0 auto; padding:8px 12px; min-height:40px; border:0; background:transparent; color:#8b898a; font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.example-deck:hover { color:#232122; }
@media(width < 1000px) { .example-deck { min-height:44px; } }

.company-input, .canvas-headline { display:block; resize:none; overflow:hidden; white-space:pre-wrap; overflow-wrap:anywhere; }
.canvas-title { min-width:0; overflow-wrap:anywhere; }

.wordmark { position:relative; }
.brand-home { display:flex; gap:8px; align-items:center; }
.brand-copy { padding-bottom:18.4px; }
#brand-template { position:absolute; left:48px; bottom:0; width:calc(100% - 48px); opacity:1; }
.contact-heading { margin:0 0 24px; font:inherit; font-size:32px; }
.contact-input { font-size:24px; line-height:1.4; min-height:100px; }

.slide-canvas:not(.is-active) .canvas-title { display:flex; align-items:baseline; gap:12px; overflow:hidden; }
.canvas-label { flex:none; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.canvas-preview { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#989696; font-weight:400; }
.canvas-number { flex:none; font-weight:400; }

/* Figma 2:2, 2026-10-08 — Pitchu. */
:root { color:#121828; background:#c7c3f5; --ink:#121828; --muted:#12182880; --page-gradient:linear-gradient(180deg,#c7c3f5 0%,#f4edc9 50%,#c7c3f5 100%); }
body {
 min-height:100vh; color:var(--ink); background-color:#c7c3f5;
 background-image:var(--page-gradient);
 background-attachment:fixed;
}
.app-header { max-width:none; margin:0; padding:16px 24px; display:grid; grid-template-columns:180px minmax(0,1000px) 272px; justify-content:space-between; gap:24px; align-items:center; min-height:80px; }
.wordmark { margin:0; width:auto; position:static; font-size:22px; letter-spacing:0; }
.brand-home { gap:2px; width:max-content; }
.brand-mark { width:32px; height:32px; margin:8px; transform:scaleX(-1); }
.brand-copy { padding:0; color:var(--ink); }
.header-center { min-width:0; display:flex; gap:16px; align-items:center; justify-content:space-between; padding:0 16px; }
.deck-heading { min-width:0; transform:translateY(8px); }
.deck-heading h1 { font:600 22px/24px 'Instrument Sans','Noto Sans',sans-serif; }
.deck-heading h1 > span:first-child { color:#12182866; }
.deck-heading p { margin-top:2px; font:500 12px/16px Inter,sans-serif; color:#12182866; }
#brand-template { position:static; display:inline-block; width:auto; max-width:100%; opacity:1; vertical-align:bottom; font:inherit; }
.deck-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.header-action { display:flex; align-items:center; gap:4px; padding:8px 16px 8px 12px; border:0; border-radius:32px; background:#ffffff3d; color:var(--ink); font:500 14px/24px Inter,sans-serif; white-space:nowrap; }
.header-action:not(:has(img)) { padding-inline:16px; }
.header-action:disabled { opacity:1; cursor:default; }
.header-action img { flex:none; }
#my-decks { justify-self:end; padding-left:16px; padding-right:12px; }
.app-layout { max-width:none; padding:16px 24px 32px; grid-template-columns:180px minmax(0,1000px) 272px; justify-content:space-between; gap:24px; }
.left-rail,.right-rail { top:16px; }
.nav-slide { border:1px solid transparent; height:40px; min-height:40px; flex-shrink:0; display:flex; align-items:center; padding:0 15px; color:var(--ink); font:400 14px/18px Inter,sans-serif; }
.mobile-dialog .nav-slide { min-height:40px; }
.nav-slide[aria-current='step'] { border-color:var(--ink); background:transparent; font-weight:500; }
#slide-nav { max-height:calc(100dvh - 112px); }
.bottom-deck-action { position:fixed; bottom:24px; left:24px; z-index:3; }
@media (width < 1000px) {
 .bottom-deck-action { width:40px; height:40px; padding:8px; justify-content:center; border-radius:50%; }
 .bottom-deck-action .action-label { display:none; }
 body:not(.preview-mode) .app-layout { padding-bottom:88px; }
}
.slide-canvas { padding:24px 32px; border-radius:32px; color:var(--ink); }
.slide-canvas.is-open { min-height:max(450px,calc(800px * var(--slide-height-factor,.5625))); padding:24px 32px; display:flex; flex-direction:column; gap:24px; }
.slide-canvas.is-open.is-active { min-height:max(450px,calc(800px * var(--slide-height-factor,.5625))); }
.canvas-title,.canvas-kicker { font:600 14px/24px 'Geist Mono',monospace; }
.is-open .canvas-title { color:#12182880; }
.slide-canvas.is-open .canvas-title { display:block; overflow:visible; }
.slide-canvas:not(.is-open) .canvas-title { display:flex; align-items:baseline; gap:12px; overflow:hidden; }
.help-icon { opacity:1; }
.canvas-content { color:var(--ink); }
.company-input { color:var(--ink); font:600 40px/1 'Instrument Sans','Noto Sans',sans-serif; letter-spacing:-.0175em; }
.company-input::placeholder { color:var(--ink); }
.headline-wrap { position:relative; min-width:0; }
.canvas-headline,.headline-preview,.company-preview,.canvas-answer { font:600 40px/1 'Instrument Sans','Noto Sans',sans-serif; letter-spacing:-.0175em; }
.canvas-headline { color:var(--ink); }
.template-preview { color:#1218284d; }
.template-preview span { color:var(--ink); }
.canvas-answer textarea { color:var(--ink); line-height:1; }
.canvas-tools,.product-tip a { font:500 14px/24px 'Geist Mono',monospace; }
.canvas-actions { gap:4px 16px; }
.canvas-actions button + button { padding-left:16px; position:relative; }
.canvas-actions button + button::before { display:block; left:0; top:4px; width:1px; height:16px; background:#1218281a; }
.canvas-meta { margin-top:16px; }
.settings-panel { border-color:#12182814; padding:16px; gap:12px; }
.settings-rows { margin-top:12px; gap:8px; }
.settings-rows .setting-row { border:0; background:#ffffff66; padding:12px 8px 12px 12px; }
.setting-row label { color:#12182899; }
.setting-row select { color:var(--ink); background-image:url('./icons/chevron-down.svg'); background-size:12px 12px; background-position:right 3px center; }
.settings-panel .settings-heading { color:var(--ink); }
.download-button { background:var(--ink); font:500 14px/20px 'Instrument Sans','Noto Sans',sans-serif; width:100%; }
.download-button:disabled { color:white; }
.settings-panel .download-button { margin-top:4px; }
.reset-deck,.example-deck { margin:0; padding:0; min-height:24px; width:100%; color:#12182880; font:500 13px/24px Inter,sans-serif; text-decoration:none; }
.settings-panel .example-deck { margin-top:8px; }
.settings-panel .reset-deck { margin-top:-4px; }
.right-rail { overflow:visible; }
#more-settings { color:#12182880; }
.mobile-dialog { background:#eeedf7; color:var(--ink); }
@media(min-width:1000px) and (max-width:1199px) {
 .app-header { grid-template-columns:148px minmax(0,1000px) 232px; gap:24px; }
 .app-layout { grid-template-columns:148px minmax(0,1000px) 232px; gap:24px; }
 .header-center { padding:0; }
 .canvas-headline,.headline-preview,.company-input,.canvas-answer { font-size:32px; }
 .canvas-tools,.product-tip a { font-size:12px; }
 .canvas-actions { gap:4px 12px; }
}
@media(width < 1000px) {
 .app-header { grid-template-columns:44px minmax(0,1fr) 44px; padding:12px; gap:12px; }
 .wordmark { grid-column:2; grid-row:1; justify-self:center; }
 #open-slides { grid-column:1; grid-row:1; }
 #open-settings { grid-column:3; grid-row:1; }
 .header-center { display:contents; }
 .deck-heading { grid-column:1/-1; grid-row:2; padding:0 4px; text-align:center; }
 .deck-heading h1 { font-size:22px; line-height:24px; }
 #brand-template { max-width:100%; }
 .deck-actions { grid-column:1/-1; grid-row:3; flex-wrap:wrap; }
 .deck-actions .header-action { padding-inline:10px; }
 #my-decks { margin-left:auto; }
 .app-layout { padding:4px 12px 24px; gap:12px; }
 .left-rail { order:1; display:block; }
 .canvas-stack { order:0; }
 .mobile-download { order:2; gap:8px; }
 .mobile-download .download-button { margin-bottom:8px; }
 .slide-canvas { padding:20px 24px; border-radius:24px; }
 .slide-canvas.is-open,.slide-canvas.is-open.is-active { padding:20px 24px; border-radius:24px; min-height:390px; }
 .canvas-headline,.headline-preview,.company-input,.canvas-answer { font-size:28px; }
 .canvas-tools,.product-tip a { font-size:12px; line-height:24px; }
 .canvas-actions { gap:4px 12px; }
 .canvas-actions button + button { padding:0; }
 .canvas-actions button + button::before { display:none; }
 .canvas-title,.canvas-kicker { font-size:12px; }
}

.wordmark { color:var(--ink); }

/* Opaque hover surfaces; text-only canvas actions retain their own treatment. */
@media (hover:hover) {
 .header-action:hover,.mobile-menu-button:hover,.settings-rows .setting-row:hover { background-color:#fff; }
 .download-button:not(:disabled):hover { background:var(--ink); color:white; opacity:.85; }
}

/* Preraise glass surface and fixed light rim, without its animated canvas border. */
.header-action { background:rgba(255,255,255,.3); -webkit-backdrop-filter:blur(12px) saturate(1.25); backdrop-filter:blur(12px) saturate(1.25); box-shadow:inset 0 1px 1px rgba(255,255,255,.85),inset 0 -1px 1px rgba(255,255,255,.3); }
@media (hover:hover) { .header-action:hover { background:#fff; } }

::selection { background-color:rgb(255 255 76 / 75%); color:#000; text-shadow:none; }

/* Keep header controls beside the title; collapse labels only when space is tight. */
.app-header.compact-actions .header-action { width:40px; height:40px; flex:0 0 40px; padding:8px; gap:0; justify-content:center; border-radius:50%; }
.app-header.compact-actions .action-label { display:none; }

.slide-canvas { transition:background-color 160ms ease; }
@media (hover:hover) { .slide-canvas:not(.is-open):hover { background-color:rgba(255,255,255,.85); } }
@media (prefers-reduced-motion:reduce) { .slide-canvas { transition:none; } }

.app-header.compact-actions #my-decks { padding:8px; }

/* Mobile menu controls share the new header circles, not the old bare icons. */
.mobile-menu-button.header-action { display:none; }
@media(width < 1000px) {
 .mobile-menu-button.header-action { display:flex; width:40px; height:40px; padding:8px; border-radius:50%; justify-self:center; }
}

/* Quiet help icons brighten on hover and keyboard focus. */
.help-icon { filter:grayscale(1); opacity:.55; transition:filter 140ms ease,opacity 140ms ease; }
@media(hover:hover) { .help-button:hover .help-icon { filter:none; opacity:1; } }
.help-button:focus-visible .help-icon { filter:none; opacity:1; }
@media(prefers-reduced-motion:reduce) { .help-icon { transition:none; } }

/* Mobile composition from Figma 13:1705; desktop geometry stays unchanged. */
.mobile-toolbar { display:none; }
.brand-picture { display:flex; }
.brand-picture source,.reset-icon source { display:none; }
.reset-icon { display:grid; place-items:center; width:24px; height:24px; flex:none; }
.reset-icon img { display:block; }
@media(width < 1000px) {
 .app-header { display:flex; flex-direction:column; align-items:center; gap:0; padding:16px 16px 0; min-height:0; }
 .mobile-toolbar { display:flex; width:100%; justify-content:space-between; align-items:center; }
 .mobile-toolbar-right,.deck-actions { display:flex; align-items:center; gap:12px; flex-wrap:nowrap; }
 .mobile-menu-button.header-action { flex:0 0 40px; }
 #my-decks { display:none; }
 .wordmark { margin-top:8px; font-size:24px; }
 .deck-heading { width:100%; max-width:346px; margin-top:24px; padding:0; text-align:center; }
 .deck-heading h1 { font-size:28px; line-height:32px; }
 .deck-heading h1 > span:first-child { display:block; }
 #brand-template { display:block; line-height:32px; }
 .deck-heading p { margin-top:8px; font-size:12px; line-height:15px; }
 .reset-icon img { width:16px; height:16px; }
 .app-layout { padding:40px 8px 24px; }
 .slide-canvas,.slide-canvas.is-open,.slide-canvas.is-open.is-active { border-radius:32px; }
 .slide-canvas.is-open,.slide-canvas.is-open.is-active { min-height:450px; }
}

/* Use the actual canvas container width, not a fixed nominal width. */
.slide-canvas.is-open,.slide-canvas.is-open.is-active {
 height:calc(100cqw * var(--slide-height-factor,.5625)); min-height:0; flex:none;
}
.slide-canvas.is-open > .canvas-top,.slide-canvas.is-open > .canvas-bottom { flex:none; }
.slide-canvas.is-open > .canvas-content {
 flex:1; min-height:0; margin-block:0; overflow:auto; justify-content:safe center; overscroll-behavior:auto;
}
.slide-canvas.is-open > .canvas-content > * { flex-shrink:0; }
.slide-canvas.is-open > .help-panel { flex:1; min-height:0; overflow:auto; overscroll-behavior:auto; }
.slide-canvas.is-open:has(> .help-panel:not([hidden])) > :is(.canvas-content,.canvas-bottom,.preset-badge,.product-tip) { display:none; }
/* Scale the writing typography with its canvas so a normal draft fits on mobile. */
.slide-canvas.is-open { gap:clamp(8px,3cqw,24px); }
.slide-canvas .canvas-content { gap:clamp(8px,2.5cqw,24px); }
.slide-canvas .company-input,.slide-canvas .canvas-headline,.slide-canvas .headline-preview,.slide-canvas .company-preview,.slide-canvas .canvas-answer { font-size:clamp(14px,4.5cqw,40px); }
@media(width < 1000px) {
 .slide-canvas,.slide-canvas.is-open,.slide-canvas.is-open.is-active { padding-block:clamp(12px,4cqw,20px); }
}

/* Preview is an ephemeral, read-only surface; editor DOM and draft stay intact. */
#preview-toggle { justify-self:end; }
#preview-toggle[aria-pressed='true'] { background:#fff; }
.preview-icon { display:grid; place-items:center; width:24px; height:24px; flex:none; }
.preview-icon img { display:block; }
.preview-mode .left-rail,.preview-mode .right-rail,.preview-mode .header-center,
.preview-mode #deck-actions,.preview-mode #open-slides,.preview-mode #open-settings,
.preview-mode #canvases,.preview-mode #mobile-download,.preview-mode #add-slide { display:none; }
.preview-mode .app-header { display:flex; flex-direction:row; justify-content:space-between; align-items:center; padding:16px 24px; min-height:80px; gap:16px; }
.preview-mode .wordmark { margin:0; }
.preview-mode .app-layout { display:block; padding:16px 24px 32px; }
/* 80px header + 16px above the card + 24px below it stay inside the viewport. */
.preview-stack { width:min(100%,calc((100dvh - 120px) / var(--slide-height-factor,.5625))); margin-inline:auto; display:flex; flex-direction:column; gap:24px; container-type:inline-size; }
.preview-slide { height:calc(100cqw * var(--slide-height-factor,.5625)); min-height:0; background:white; border-radius:32px; padding:clamp(12px,2.5cqw,48px); display:flex; flex-direction:column; gap:clamp(8px,2cqw,32px); color:var(--ink); }
.preview-top,.preview-footer { flex:none; display:flex; align-items:baseline; justify-content:space-between; gap:12px; color:var(--muted); font:400 clamp(8px,1cqw,16px)/1.4 'Instrument Sans','Noto Sans',sans-serif; }
.preview-content { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:safe center; gap:clamp(8px,2cqw,28px); overflow:auto; }
.preview-content > * { flex:none; }
.preview-heading,.preview-one-liner,.preview-answer { margin:0; font:600 clamp(14px,4cqw,72px)/1.12 'Instrument Sans','Noto Sans',sans-serif; letter-spacing:-.02em; white-space:pre-wrap; overflow-wrap:anywhere; }
.preview-one-liner { color:#12182880; }
.preview-details { font:400 clamp(10px,1.8cqw,28px)/1.4 'Instrument Sans','Noto Sans',sans-serif; white-space:pre-wrap; overflow-wrap:anywhere; color:#676566; }
.preview-footer { min-height:1.4em; }
.preview-contact { white-space:pre-wrap; overflow-wrap:anywhere; }
.preview-company { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.preview-number { margin-left:auto; flex:none; }
.preview-empty { padding:48px; text-align:center; }
::view-transition-old(root),::view-transition-new(root) { animation-duration:240ms; animation-timing-function:ease-in-out; }
@media(width < 1000px) {
 .preview-slide { border-radius:16px; }
 .preview-mode .app-layout { padding-inline:8px; }
 .preview-stack { width:100%; gap:8px; }
 .preview-mode .mobile-toolbar { display:contents; }
 .preview-mode .mobile-toolbar-right { display:contents; }
 .preview-mode .wordmark { order:0; }
 .preview-mode #preview-toggle { order:1; }
 .preview-mode #preview-toggle .action-label { display:inline; }
 .preview-mode #preview-toggle { width:auto; height:40px; border-radius:32px; padding:8px 16px 8px 12px; gap:4px; }
}
@media(prefers-reduced-motion:reduce) {
 ::view-transition-old(root),::view-transition-new(root) { animation:none; }
}

/* Long outline labels stay one line and gently reveal their clipped ending. */
.nav-slide { white-space:nowrap; overflow-wrap:normal; min-width:0; }
.nav-slide-label { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nav-slide-text { display:inline-block; white-space:nowrap; vertical-align:top; }
.nav-slide.is-overflowing .nav-slide-label { text-overflow:clip; }
.nav-slide.is-overflowing:hover .nav-slide-text { animation:nav-marquee var(--nav-duration,8s) linear infinite alternate; }
@keyframes nav-marquee { 0%,15% { transform:translateX(0); } 85%,100% { transform:translateX(var(--nav-travel,0px)); } }
@media(prefers-reduced-motion:reduce) {
 .nav-slide.is-overflowing:hover .nav-slide-text { animation:none; }
 .nav-slide.is-overflowing .nav-slide-label { text-overflow:ellipsis; }
}

/* Keep scaffolding legible while native textareas handle selection and editing. */
.template-preview .template-scaffold { color: #1218284d; }
.canvas-answer:focus-within .template-preview { opacity: 1; }
.slide-canvas textarea.has-template-mirror { color: transparent; caret-color: var(--ink); }

/* A soft clip only where a navigation label actually overflows. */
.nav-slide.is-overflowing .nav-slide-label {
 mask-image:linear-gradient(to right,#000 calc(100% - 12px),transparent);
}
.nav-slide.is-overflowing:hover .nav-slide-label {
 mask-image:linear-gradient(to right,transparent,#000 10px,#000 calc(100% - 12px),transparent);
}
.template-token { position:relative; }
.template-token.is-selected::before {
 content:""; position:absolute; left:-1px; top:var(--caret-top,0px); width:2px; height:var(--caret-height,1em);
 background:var(--ink); pointer-events:none; animation:template-caret-blink 1s steps(1) infinite;
}
@keyframes template-caret-blink { 0%,49% { opacity:1; } 50%,100% { opacity:0; } }
@media(prefers-reduced-motion:reduce) {
 .template-token.is-selected::before { animation:none; }
}

.hint-block { margin-bottom:20px; }
.help-panel .hint-label { margin:0 0 6px; color:var(--ink); font:600 14px/1.4 'Instrument Sans','Noto Sans',sans-serif; }
.help-panel .hint-text { margin:0; }
.help-panel h2.hint-text { font:600 20px/1.3 'Instrument Sans','Noto Sans',sans-serif; color:var(--ink); }
.source-panel a:hover { text-decoration:underline; text-underline-offset:3px; }
.source-disclosure { border-top:1px solid #12182814; padding-top:12px; }
.help-panel .source-toggle { display:flex; align-items:center; gap:4px; border:0; background:none; padding:4px 0; color:var(--blue); font:500 13px/1.4 'Instrument Sans','Noto Sans',sans-serif; }
.source-toggle::after { content:''; width:12px; height:12px; position:relative; top:1px; background:url('./icons/chevron-down.svg') center/contain no-repeat; }
.source-toggle[aria-expanded='true']::after { transform:rotate(180deg); }
.source-panel { margin-top:12px; overflow-wrap:anywhere; font:400 12px/1.5 'Instrument Sans','Noto Sans',sans-serif; }
.source-list { padding-left:20px; margin:0; }
.source-list li { padding-left:2px; margin-bottom:12px; }
.source-panel a { color:var(--blue); }
.source-panel .source-applies,.source-panel .source-note,.source-panel .source-own { font:inherit; margin:4px 0 12px; color:#6f737d; }
.source-panel .source-applies { margin-top:0; }
.source-library { display:inline-block; margin-top:4px; }
.source-index-link { display:block; margin-top:12px; text-align:center; color:var(--blue); font:400 12px/1.4 'Instrument Sans','Noto Sans',sans-serif; }
/* Guidance scrolls within the same fixed-ratio canvas as the editor. */

/* Shared type rhythm: preview scales the same face, weight and line metrics. */
.preview-heading,.preview-one-liner,.preview-answer { font:600 clamp(14px,4.5cqw,40px)/1 'Instrument Sans','Noto Sans',sans-serif; letter-spacing:-.0175em; color:var(--ink); }
.preview-top,.preview-footer { font-family:'Geist Mono',monospace; }
.preview-kicker { font-weight:600; }
.preview-details { font-family:'Instrument Sans','Noto Sans',sans-serif; font-size:clamp(10px,2.25cqw,20px); }
.preview-content .template-scaffold { color:#1218284d; }
#reset-deck { position:static; margin-top:16px; color:var(--ink); background:none; border:0; box-shadow:none; font:500 13px/24px Inter,sans-serif; padding:4px 0; min-height:32px; text-align:center; width:100%; }
#reset-deck:hover { color:var(--ink); text-decoration:underline; }

/* Use all editor space; keep the presentation text column unchanged. */
.slide-canvas.is-open > .canvas-content { width:100%; align-self:flex-start; }
.preview-content { width:min(70cqw,100%); align-self:flex-start; }

/* The slide text caret/selection indicates editing; keep focus rings on controls. */
.slide-canvas .canvas-content :is(input,textarea):focus { outline:none; }

.mobile-download:has(> #reset-deck) { row-gap:0; }
.mobile-download:has(> #reset-deck) .download-button { margin-bottom:0; }

/* Compact evidence status stays beside the help action, outside the hint panel. */
/* Invisible text sizes the native select to its selected label in Safari and Chrome. */
.canvas-top:has(> .evidence-chip) { gap:16px; }
.canvas-top:has(> .evidence-chip) .canvas-title { min-width:0; overflow-wrap:anywhere; }
.evidence-chip { display:block; position:relative; flex:none; height:28px; }
.evidence-chip-size,.evidence-chip select { font:500 12px/18px Inter,sans-serif; letter-spacing:normal; padding:4px 24px 4px 10px; border:1px solid transparent; }
.evidence-chip-size { display:block; visibility:hidden; white-space:nowrap; }
.evidence-chip select { appearance:none; -webkit-appearance:none; position:absolute; inset:0; display:block; width:100%; height:28px; margin:0; border-color:#12182826; border-radius:999px; background:transparent url('./icons/chevron-down.svg') no-repeat right 8px center / 12px 12px; color:#6f737d; text-align:right; text-align-last:right; cursor:pointer; transition:background-color .18s ease,border-color .18s ease; }
.evidence-chip[data-evidence="tested"] select,.preview-evidence[data-evidence="tested"] { background-color:#e1f1e5; border-color:transparent; color:#365b42; }
.evidence-chip[data-evidence="measured"] select,.preview-evidence[data-evidence="measured"] { background-color:#e3ebfa; border-color:transparent; color:#3b527d; }
.evidence-chip[data-evidence="hypothesis"] select,.preview-evidence[data-evidence="hypothesis"] { background-color:#faf0d8; border-color:transparent; color:#756039; }

.preview-evidence { flex:none; display:inline-flex; align-items:center; height:28px; padding:0 10px; border-radius:999px; font:500 12px/18px Inter,sans-serif; letter-spacing:normal; white-space:nowrap; }

.evidence-chip select:focus { outline:none; }

#settings { min-width:190px; }

/* Editing-only word count: centered on the slide, independent of either side's width. */
.canvas-top:has(> .word-count) { position:relative; }
.canvas-top > .word-count { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); color:#8f939b; font:400 11px/16px Inter,sans-serif; white-space:nowrap; }
.canvas-top > .word-count.is-over { color:#9b5525; }
.canvas-top:has(> .word-count) > :is(.canvas-title,.canvas-name) { flex:0 1 calc(50% - 60px); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.canvas-top:has(> .word-count) > .evidence-chip,.canvas-top:has(> .word-count):not(:has(> .evidence-chip)) > .help-button { margin-left:auto; }
@container (max-width:560px) {
 .canvas-top:has(> .word-count) { padding-bottom:24px; }
 .canvas-top > .word-count { top:auto; bottom:0; transform:translateX(-50%); }
 .canvas-top:has(> .word-count) > :is(.canvas-title,.canvas-name) { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}

@container (min-width:561px) {
 .canvas-top:has(> .word-count.has-extra) > :is(.canvas-title,.canvas-name) { flex-basis:calc(50% - 130px); }
}

/* Subtle native scrollbars across the page, menus, guidance and slide content. */
html,body * { scrollbar-width:thin; scrollbar-color:rgba(18,24,40,.28) transparent; }
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track,::-webkit-scrollbar-corner { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(18,24,40,.28); border-radius:999px; }
::-webkit-scrollbar-thumb:hover { background:rgba(18,24,40,.45); }
::-webkit-scrollbar-button { display:none; }
@media (forced-colors:active) {
 html,body * { scrollbar-color:auto; }
 ::-webkit-scrollbar-thumb { background:CanvasText; }
}

/* The expanded guidance toggle uses the grey close glyph from Figma 25:42. */
.help-button[aria-expanded='true'] .help-icon { content:url('./figma-oct8/close-help.svg'); width:14px; height:14px; filter:none; opacity:1; }

/* Reading guidance leaves only its title and close action in the slide header. */
.slide-canvas.is-open:has(> .help-panel:not([hidden])) > .canvas-top > :is(.word-count,.evidence-chip) { visibility:hidden; }

/* Remove only the unused counter row; invisible controls retain title alignment. */
.slide-canvas.is-open:has(> .help-panel:not([hidden])) > .canvas-top { padding-bottom:0; }

/* The yellow surface is inset 16px from the white canvas, not its padded content. */
.slide-canvas.is-open:has(> .help-panel:not([hidden])) { gap:16px; }
.slide-canvas.is-open > .help-panel { margin-inline:-16px; margin-bottom:-8px; }
@media (width < 1000px) {
 .slide-canvas.is-open > .help-panel { margin-inline:-8px; margin-bottom:calc(16px - clamp(12px,4cqw,20px)); }
}

/* Keep the same title line box and text alignment in both card states. */
.slide-canvas .canvas-title,.slide-canvas.is-open .canvas-title,.slide-canvas:not(.is-open) .canvas-title { display:flex; align-items:center; min-height:28px; }

/* Bottom CTA shares the header glass, centered beneath the settings rail. */
.design-cta-dock { position:fixed; bottom:24px; right:24px; width:272px; display:flex; justify-content:center; pointer-events:none; z-index:3; }
#design-pitch { position:relative; font-weight:600; height:44px; width:max-content; padding:10px 20px; border-radius:999px; text-decoration:none; pointer-events:auto; }
@media (min-width:1000px) and (max-width:1199px) { .design-cta-dock { width:232px; } }
@media (width < 1000px) { .design-cta-dock { width:auto; } }
.preview-mode .design-cta-dock { display:none; }
@media (prefers-reduced-motion:reduce) { #design-pitch { transition:none; } }

#design-pitch > .design-metal-rim { position:absolute; inset:0; width:100%; height:100%; border-radius:inherit; pointer-events:none; opacity:0; }
#design-pitch[data-metal='ready'] > .design-metal-rim { opacity:1; }

/* Drag only slide labels; writing fields and slide controls remain native. */
.nav-slide,.canvas-title { cursor:grab; -webkit-touch-callout:none; }
.reorder-chosen,.reorder-chosen .canvas-title { cursor:grabbing; }
.reorder-placeholder { opacity:.35; outline:2px dashed #8876bf; outline-offset:-2px; }
.reorder-floating { max-height:80px!important; overflow:hidden!important; opacity:.92; pointer-events:none; background:#fff; border-radius:24px; }
.slide-reorder-active { user-select:none; cursor:grabbing; }
.slide-reorder-active .nav-slide-text { animation-play-state:paused!important; }

/* Mobile actions use the platform select picker, not a second slide navigator. */
.mobile-menu { display:none; }
@media (width < 1000px) {
 .mobile-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; }
 .mobile-menu.header-action { display:grid; place-items:center; position:relative; justify-self:start; width:40px; height:40px; padding:8px; border-radius:50%; }
 .mobile-menu > img { pointer-events:none; }
 .mobile-menu > select { appearance:none; -webkit-appearance:none; border:0; margin:0; position:absolute; inset:0; width:100%; height:100%; opacity:0; font-size:16px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
 .mobile-toolbar > .wordmark { grid-column:1; grid-row:1; margin:0; justify-self:start; }
 .mobile-toolbar .brand-picture { display:flex; }
 .mobile-toolbar-right { justify-self:end; gap:8px; }
 .mobile-toolbar-right .deck-actions { gap:0; }
 .mobile-toolbar-right .header-action { width:40px; height:40px; padding:8px; flex:0 0 40px; justify-content:center; }
 .mobile-toolbar-right .action-label { display:none; }
 .left-rail,#add-slide,#reset-deck,.canvas-top > .word-count { display:none; }
 .canvas-top:has(> .word-count) { padding-bottom:0; }
 .canvas-top:has(> .word-count) > :is(.canvas-title,.canvas-name) { flex:1; }
 #settings-dialog { inset:auto 0 0; width:100%; max-width:560px; height:auto; max-height:calc(100dvh - max(24px,env(safe-area-inset-top))); margin:0 auto; border-radius:32px 32px 0 0; padding:16px 24px max(24px,env(safe-area-inset-bottom)); }
 .preview-mode .mobile-menu { display:none; }
 .preview-mode .app-header { display:block; padding-inline:16px; }
 .preview-mode .mobile-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; }
 .preview-mode .mobile-toolbar-right { display:flex; }
 .preview-mode .mobile-toolbar > .wordmark { grid-column:1; justify-self:start; }
 .preview-mode #preview-toggle .action-label { display:inline; }
 .preview-mode #preview-toggle { width:auto; flex:0 0 auto; padding:8px 16px 8px 12px; border-radius:32px; gap:4px; }
}

/* Mobile downloads and design service form the final, scrolling page actions. */
@media (width < 1000px) {
 body:not(.preview-mode) .app-layout { padding-bottom:16px; row-gap:24px; }
 .mobile-download { width:calc(100% - 32px); margin-inline:16px; }
 .mobile-download .download-button { margin-bottom:0; }
 .design-cta-dock { position:static; width:auto; margin:0 24px 24px; }
 #design-pitch { width:100%; justify-content:center; }
}

/* Per-slide history and native overflow actions share the existing quiet link row. */
.canvas-actions button:disabled { opacity:.3; cursor:default; text-decoration:none; }
.slide-more { position:relative; display:inline-flex; align-items:center; align-self:stretch; padding-left:16px; color:var(--blue); cursor:pointer; }
.slide-more::before { content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); width:1px; height:16px; background:#1218281a; }
.slide-more > span { padding-right:16px; background:url('./icons/chevron-down.svg') no-repeat right center / 12px 12px; }
.slide-more > select { position:absolute; inset:0; appearance:none; -webkit-appearance:none; opacity:0; width:100%; height:100%; margin:0; padding:0; border:0; font-size:16px; cursor:pointer; }
.slide-more:hover > span { text-decoration:underline; text-underline-offset:3px; }
@media (width < 1000px) { .slide-more { padding-left:0; min-height:32px; } .slide-more::before { display:none; } }

/* Rename stays beside the label, separate from the collapse/drag handle. */
.canvas-name { position:relative;display:flex;align-items:center;gap:2px;min-width:0;flex:1; }
.slide-canvas.is-open .canvas-name .canvas-title { flex:0 1 auto;min-width:0;overflow:hidden; }
.rename-slide { flex:none;width:20px;height:28px;padding:0;border:0;background:none;color:#858891;cursor:pointer; }
.rename-slide::before { content:'';display:block;width:10px;height:10px;margin:auto;background:currentColor;mask:url('/assets/pitchu/icons/rename.svg') center/contain no-repeat; }
.rename-slide:hover { color:#377dff; }
.slide-name-input { position:absolute;left:0;top:0;width:calc(100% - 22px);height:28px;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#12182880;font:600 14px/24px 'Geist Mono',monospace; }
.slide-name-input::selection { background:#ffff4cbf;color:#000; }
@media(width < 1000px) { .slide-name-input {font-size:12px;} }

/* Equal chrome slots keep the writing area centered on the slide itself. */
.slide-canvas > .canvas-top,.slide-canvas.is-open > .canvas-bottom { min-height:32px; }
.preview-top,.preview-footer { min-height:28px; }
/* Equal flexible tracks center the content even with a multi-line footer. */
.preview-slide { display:grid; grid-template-rows:minmax(28px,1fr) minmax(0,max-content) minmax(28px,1fr); }
.preview-top { align-self:start; }
.preview-footer { align-self:end; max-height:100%; overflow:auto; }
.preview-content { align-self:stretch; }
@media(width < 1000px) {
 .preview-footer { align-items:flex-end; }
}

/* Supporting copy follows the main text: 24px on desktop, 12px on mobile. */
.canvas-content,.preview-content { --details-gap:24px; }
.slide-canvas .canvas-answer textarea { min-height:0; }
.slide-canvas .canvas-content > .canvas-details { margin:0; margin-top:calc(var(--details-gap) - clamp(8px,2.5cqw,24px)); }
.preview-content > .preview-details { margin-top:calc(var(--details-gap) - clamp(8px,2cqw,28px)); }
@media(width < 1000px) { .canvas-content,.preview-content { --details-gap:12px; } }

/* Mobile Settings is a content-sized bottom sheet over a dimmed editor. */
@media(width < 1000px) {
 #settings-dialog { background-color:#c7c3f5; background-image:var(--page-gradient); }
 #settings-dialog::backdrop { background:#12182866; }
 #settings-dialog[open] { display:flex; flex-direction:column; animation:settings-sheet-in .24s cubic-bezier(.2,.8,.2,1); }
 #settings-dialog[open]::backdrop { animation:settings-backdrop-in .24s ease-out; }
 #settings-dialog[open].is-closing { animation:settings-sheet-out .24s cubic-bezier(.2,.8,.2,1) forwards; }
 #settings-dialog[open].is-closing::backdrop { animation:settings-backdrop-out .24s ease-out forwards; }
 #settings-dialog > .dialog-heading { flex:none; transform:translateX(8px); }
 #mobile-settings { flex:0 1 auto; min-height:0; overflow:auto; }
 #settings-dialog .setting-row,#settings-dialog .setting-row select { height:56px; }
 #settings-download { flex:none; padding-top:24px; }
 #settings-dialog .download-button,.mobile-download .download-button,#design-pitch { height:56px; min-height:56px; }
}

/* Guidance reads in the page flow rather than a nested scroller. */
.slide-canvas.is-open:has(> .help-panel:not([hidden])) {
 height:auto; min-height:calc(100cqw * var(--slide-height-factor,.5625));
}
.slide-canvas.is-open > .help-panel:not([hidden]) { flex:1 0 auto; overflow:visible; }

@keyframes settings-sheet-in { from { transform:translateY(100%); } to { transform:translateY(0); } }
@keyframes settings-sheet-out { from { transform:var(--settings-exit-from,translateY(0)); } to { transform:translateY(100%); } }
@keyframes settings-backdrop-out { from { opacity:var(--settings-backdrop-from,1); } to { opacity:0; } }
@keyframes settings-backdrop-in { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) {
 #settings-dialog[open],#settings-dialog[open]::backdrop,#settings-dialog[open].is-closing,#settings-dialog[open].is-closing::backdrop { animation:none; }
}

/* The native select covers the full row, including its label and padding. */
.setting-row select {
 position:absolute; inset:0; width:100%; height:100%; border-radius:inherit;
 padding:0 28px 0 80px; background-position:right 11px center;
}

/* Press feedback uses independent scale so positioned controls do not shift. */
:is(button,[role="button"],a.header-action,.mobile-menu,.slide-more,summary,.import-label) {
 transition:scale 120ms ease-out;
}
:is(button,[role="button"],a.header-action,.mobile-menu,.slide-more,summary,.import-label):not(:disabled):not([aria-disabled="true"]):active {
 scale:.97;
}
@media(prefers-reduced-motion:reduce) {
 :is(button,[role="button"],a.header-action,.mobile-menu,.slide-more,summary,.import-label) { transition:none; }
}

.help-panel .purpose-example { margin:8px 0 0; font-size:13px; color:var(--muted); }

/* A second way back to editing after the last slide on mobile. */
.preview-bottom { display:none; }
@media (width < 1000px) {
 .preview-mode .preview-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:32px 8px 0; }
 .preview-bottom .wordmark { margin:0; }
 .preview-bottom .brand-picture { display:flex; }
 #preview-bottom-edit { width:auto; height:40px; flex:0 0 auto; padding:8px 16px 8px 12px; border-radius:32px; gap:4px; background:#fff; }
}

/* Preview scrolls as one document; long copy grows the slide instead of clipping. */
.preview-slide { height:auto; min-height:calc(100cqw * var(--slide-height-factor,.5625)); grid-template-rows:minmax(28px,1fr) max-content minmax(28px,1fr); }
.preview-content,.preview-footer { overflow:visible; }
.preview-footer { max-height:none; }

#mobile-settings-link { align-self:center; border:0; background:none; color:var(--ink); padding:8px 0; min-height:40px; font:500 14px/20px 'Instrument Sans','Noto Sans',sans-serif; text-decoration:underline; text-underline-offset:3px; }

@media(width < 1000px){ #mobile-settings-link { margin-bottom:8px; } }

/* Separate contact inputs use the same editable bracket mirrors as other slides. */
.slide-canvas .contact-field { font-size:clamp(14px,3cqw,24px); line-height:1.4; }
.slide-canvas .contact-field .contact-input { min-height:1.4em; font:inherit; }

.team-people { display:flex; flex-direction:column; gap:16px; min-width:0; }
.team-person { display:flex; flex-direction:column; gap:2px; min-width:0; }
.person-fields { display:flex; flex-wrap:wrap; align-items:flex-start; gap:16px; min-width:0; }
.slide-canvas .person-field { flex:0 0 auto; max-width:100%; font-size:clamp(14px,3cqw,24px); line-height:1.4; }
.slide-canvas .person-field textarea { font:inherit; }
.remove-person { align-self:flex-start; background:none; border:0; padding:0; color:var(--muted); font:400 14px/24px 'Geist Mono',monospace; cursor:pointer; }
.remove-person:hover { text-decoration:underline; }

.slide-canvas.is-open.has-profile-fields,.slide-canvas.is-open.has-editor-tip { height:auto; min-height:calc(100cqw * var(--slide-height-factor,.5625)); }
.slide-canvas.is-open.has-profile-fields > .canvas-content,.slide-canvas.is-open.has-editor-tip > .canvas-content { flex:1 0 auto; overflow:visible; }

/* Product guidance sits below the white slide, outside the deck content. */
.slide-canvas.is-open.has-editor-tip { min-height:calc(100cqw * var(--slide-height-factor,.5625) + var(--product-tip-extra,0px)); }
.slide-canvas.has-editor-tip { --tip-inset:32px; --tip-bottom:24px; --tip-radius:32px; }
.product-tip { flex:none; min-width:0; margin:calc(-1 * clamp(8px,3cqw,24px)) calc(-1 * var(--tip-inset)) calc(-1 * var(--tip-bottom)); }
.product-tip a { position:relative; display:flex; align-items:center; gap:24px; padding:calc(var(--tip-bottom) + 16px) var(--tip-inset) 20px; --tip-color:var(--blue); background:var(--tip-color); box-shadow:0 calc(var(--tip-bottom) - var(--tip-radius)) 0 var(--tip-color); border-radius:0 0 var(--tip-radius) var(--tip-radius); color:#fff; text-decoration:none; overflow-wrap:anywhere; }
.product-tip a::before { content:''; position:absolute; top:calc(var(--tip-bottom) - var(--tip-radius) - 1px); left:0; right:0; height:calc(var(--tip-radius) + 1px); background:#fff; border-radius:0 0 var(--tip-radius) var(--tip-radius); pointer-events:none; }
.product-tip a>span:first-child { flex:1; min-width:0; }
.slide-canvas.has-editor-tip > .canvas-bottom { position:relative; z-index:1; }
.product-tip-arrow { transform:translateY(-2px); flex:none; font:400 28px/20px 'Instrument Sans',sans-serif; }
.product-tip a:hover,.product-tip a:focus-visible { color:#fff; --tip-color:#244ed0; }
.product-tip a:focus-visible { outline:2px solid white; outline-offset:-8px; }
@media(width < 1000px) { .slide-canvas.has-editor-tip { --tip-inset:24px; --tip-bottom:clamp(12px,4cqw,20px); } }
@media print { .product-tip { display:none!important; } }
