*{box-sizing:border-box}body{margin:0;background:var(--surface);color:var(--ink);font:var(--text-small)/1.6 var(--font-body);-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a{transition:background .15s}a{color:inherit;text-decoration:none}button{border:0}h1,h2,p{margin:0}h1,h2{font-family:var(--font-display);font-weight:400;line-height:1.14;color:var(--accent)}h1{font-size:var(--text-h2);letter-spacing:-1.6px;overflow-wrap:anywhere}h2{font-size:var(--text-question)}svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}button:focus-visible,a:focus-visible,input:focus-visible,.file-preview:focus-visible{outline:3px solid var(--focus);outline-offset:4px}.app-header{height:90px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:var(--surface-raised)}.brand{display:flex;align-items:center;gap:13px;color:var(--accent);font-size:var(--text-small);line-height:1.1}.brand strong{font:var(--text-path) var(--font-display)}.monogram{font:var(--text-h2) var(--font-display);letter-spacing:-5px;padding-right:5px}.header-links{display:flex;align-items:center;gap:28px;font-size:var(--text-small)}.header-links>a{color:var(--ink-muted)}.header-links>a:hover{text-decoration:underline}.private-badge{display:flex;gap:8px;align-items:center;color:var(--accent);font-size:var(--text-small)}.private-badge svg{width:17px;height:17px}.app-layout{display:grid;grid-template-columns:264px minmax(0,1fr);min-height:calc(100vh - 90px)}.sidebar{padding:35px 22px;background:var(--accent-soft);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:20px}.sidebar-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.sidebar-title h2{font:var(--text-small) var(--font-body);font-weight:600}.icon-button{width:38px;height:38px;flex:none;border-radius:50%;background:var(--surface-sunken);color:var(--accent);font-size:var(--text-h3);line-height:1}.icon-button:hover{background:var(--line)}.project-list{display:flex;flex-direction:column;gap:9px}.project-item{padding:14px 13px;border:1px solid transparent;background:transparent;border-radius:5px;text-align:left;color:var(--ink);width:100%}.project-item strong{display:block;font-size:var(--text-small);font-weight:500;overflow-wrap:anywhere}.project-item span{display:block;font-size:var(--text-small);color:var(--ink-muted);margin-top:5px}.project-item.active{background:var(--surface-raised);border-color:var(--line);box-shadow:0 3px 10px var(--deep)}.project-item:hover{background:var(--surface-raised)}.sidebar-bottom{margin-top:auto;padding-top:35px}.small-label,.eyebrow{font-size:var(--text-small);letter-spacing:.13em;color:var(--accent);font-weight:600}.sidebar-bottom p{font:var(--text-lead)/1.5 var(--font-display);color:var(--accent);margin:15px 0}.sidebar-note{font-size:var(--text-small);color:var(--ink-muted);line-height:1.6}.workspace{padding:46px clamp(24px,4vw,64px) 35px;max-width:1450px;width:100%;min-width:0}.eyebrow{margin-bottom:18px}.intro{color:var(--ink-muted);font-size:var(--text-small);margin-top:17px;line-height:1.7}.project-heading{display:flex;justify-content:space-between;gap:25px;align-items:start;margin-bottom:34px}.project-heading .quiet-button{margin-top:31px;white-space:nowrap}.button,.outline-button{display:inline-flex;justify-content:center;align-items:center;gap:10px;border-radius:5px;min-height:48px;padding:13px 21px;font-size:var(--text-small);font-weight:600;line-height:1.4}.button{background:var(--accent);color:var(--surface-raised)}.button:hover{background:var(--deep)}.outline-button{border:1px solid var(--accent);color:var(--accent);background:transparent}.outline-button:hover{background:var(--accent-soft)}.full{width:100%}.quiet-button{color:var(--accent);font-size:var(--text-small);padding:9px 3px;min-height:42px;background:transparent;text-decoration:underline;text-underline-offset:5px}.quiet-button:hover{color:var(--control-border)}.capture-area{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 25px;background:var(--surface-raised);border:1px dashed var(--control-border);border-radius:9px;min-height:335px}.dropzone.dragging{background:var(--accent-soft);outline:2px solid var(--accent);outline-offset:3px}.upload-icon{height:44px;width:44px;color:var(--control-border);margin-bottom:20px}.dropzone h2{font-size:var(--text-question)}.dropzone>p:not(.file-hint){font-size:var(--text-small);color:var(--ink-muted);margin:12px 0 21px}.file-hint{font-size:var(--text-small);line-height:1.7;color:var(--ink-muted);margin-top:17px}.record-card{padding:29px 30px;background:var(--accent);border-radius:9px;color:var(--surface);display:flex;flex-direction:column;align-items:start}.record-card .small-label{color:var(--on-deep-muted);font-size:var(--text-small)}.mic-icon{color:var(--on-deep-muted);width:39px;height:39px;margin:21px 0 15px}.record-card h2{color:var(--surface);font-size:var(--text-book-cover)}.record-card>p{font-size:var(--text-small);color:var(--accent-soft);line-height:1.7;margin:15px 0 24px}.record-card .outline-button{color:var(--surface);border-color:var(--control-border);width:100%;margin-top:auto}.record-card .outline-button:hover{background:var(--surface-raised)}.record-card .file-hint{color:var(--on-deep-muted);font-size:var(--text-small)}.collection{margin-top:41px}.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.collection-heading p{font-size:var(--text-small);color:var(--ink-muted);margin-top:9px}.filters{display:flex;border:1px solid var(--line);border-radius:6px;padding:4px;background:var(--surface-raised);gap:3px;flex:none}.filters button{background:transparent;border-radius:4px;color:var(--ink-muted);font-size:var(--text-small);min-height:38px;padding:7px 11px;white-space:nowrap}.filters button.active{background:var(--accent-soft);color:var(--accent)}.filters span{font-size:var(--text-small);margin-left:6px}.files-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.file-card{border:1px solid var(--line);background:var(--surface-raised);border-radius:7px;overflow:hidden;min-width:0}.file-preview{height:168px;width:100%;padding:0;background:var(--surface-sunken);display:flex;align-items:center;justify-content:center;position:relative;color:var(--accent)}.file-preview img{width:100%;height:100%;object-fit:cover}.file-preview svg{width:36px;height:36px}.preview-fallback{text-align:center;font-size:var(--text-small);padding:12px;color:var(--ink-muted)}.preview-fallback svg{margin:0 auto 8px;display:block}.audio-preview{padding:19px;background:var(--accent-soft);height:168px;display:flex;flex-direction:column;justify-content:center;gap:16px}.audio-preview>span{font-size:var(--text-small);letter-spacing:.1em;color:var(--accent)}.audio-preview audio{width:100%;height:43px;min-width:0}.pending-preview{height:168px;display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--ink-muted);font-size:var(--text-small);padding:20px;text-align:center}.file-body{padding:15px 17px 9px}.file-body h3{font:500 var(--text-small)/1.5 var(--font-body);margin:0;overflow-wrap:anywhere}.file-body p{font-size:var(--text-small);color:var(--ink-muted);margin-top:5px}.file-actions{display:flex;align-items:center;gap:15px;margin-top:10px;flex-wrap:wrap}.file-actions a,.file-actions button{font-size:var(--text-small);color:var(--accent);background:transparent;padding:8px 0;min-height:35px}.file-actions a:hover,.file-actions button:hover{text-decoration:underline}.file-actions .delete-file{margin-left:auto;color:var(--ink-muted)}.files-empty{border:1px solid var(--line);padding:45px 20px;border-radius:6px;text-align:center;background:var(--surface)}.files-empty p{font:var(--text-path) var(--font-display);color:var(--accent)}.files-empty span{font-size:var(--text-small);color:var(--ink-muted);display:block;margin-top:12px}.collection-footer{border-top:1px solid var(--line);padding-top:22px;margin-top:35px;font-size:var(--text-small);color:var(--ink-muted);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.upload-section{margin-top:30px;padding:22px;border:1px solid var(--line);border-radius:7px;background:var(--surface-raised)}.section-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px}.section-top h2{font:600 var(--text-small) var(--font-body)}.upload-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 15px;padding:13px 0;border-top:1px solid var(--line);font-size:var(--text-small)}.upload-row strong{font-weight:400;overflow-wrap:anywhere}.upload-row span{font-size:var(--text-small);color:var(--ink-muted)}.upload-row progress{width:100%;height:5px;grid-column:1/-1;accent-color:var(--accent)}.upload-row.failed span{color:var(--danger)}.upload-row button{background:transparent;color:var(--accent);text-decoration:underline;font-size:var(--text-small);min-height:35px}.upload-row small{grid-column:1/-1;color:var(--danger);font-size:var(--text-small)}.welcome-card{margin-top:35px;background:var(--surface-raised);border:1px solid var(--line);border-radius:9px;padding:34px;max-width:720px}.folder-symbol{width:50px;height:50px;color:var(--control-border);margin-bottom:21px}.folder-symbol svg{width:100%;height:100%}.welcome-card h2{font-size:var(--text-book-cover)}.welcome-card>p{font-size:var(--text-small);color:var(--ink-muted);margin-top:15px}.welcome-card form{display:flex;gap:12px;margin-top:23px}.welcome-card input{flex:1;min-width:0}.welcome-notes{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;max-width:780px;margin-top:35px}.welcome-notes strong{font-weight:500;font-size:var(--text-small);color:var(--accent)}.welcome-notes p{font-size:var(--text-small);color:var(--ink-muted);margin-top:9px}.state-view{padding:55px 0;max-width:620px}.state-view h1{font-size:var(--text-step-number)}.state-view>p{margin:20px 0;color:var(--ink-muted)}.state-view .button{margin-top:15px}.state-symbol{background:var(--accent-soft);color:var(--accent);width:50px;height:50px;border-radius:50%;display:grid;place-items:center;font:var(--text-question) var(--font-display);margin-bottom:25px}.loading-spinner{width:25px;height:25px;display:block;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:25px}@keyframes spin{to{transform:rotate(360deg)}}input{width:100%;border:1px solid var(--on-deep-muted);background:var(--surface-raised);padding:13px 14px;border-radius:5px;color:var(--ink);font-size:var(--text-small);min-height:48px}label{display:block;font-size:var(--text-small);color:var(--accent);margin:21px 0 9px}.form-error{color:var(--danger);font-size:var(--text-small);line-height:1.6;margin:12px 0;min-height:0}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--accent);color:var(--surface);padding:13px 22px;border-radius:6px;box-shadow:0 5px 20px var(--deep);font-size:var(--text-small);z-index:20;max-width:calc(100% - 32px);text-align:center}dialog{border:0;border-radius:10px;padding:36px;background:var(--surface);color:var(--ink);width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 30px 100px var(--ink)}dialog::backdrop{background:var(--ink);backdrop-filter:blur(4px)}dialog h2{font-size:var(--text-page-title);letter-spacing:-.5px}.dialog-close{position:absolute;right:9px;top:7px;color:var(--accent);background:transparent;width:44px;height:44px;font-size:var(--text-question)}.dialog-intro{font-size:var(--text-small);color:var(--ink-muted);margin-top:17px}.dialog-actions{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:22px 0}.photo-dialog{width:min(850px,calc(100% - 28px));text-align:center;padding-top:50px}.photo-dialog img{display:block;max-height:65dvh;max-width:100%;margin:auto;object-fit:contain}.photo-dialog>p{margin:20px 0;overflow-wrap:anywhere}.record-status{text-align:center;padding:24px 0;margin:21px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.record-status p{font-size:var(--text-small);color:var(--ink-muted)}.record-status strong{font:var(--text-h2) var(--font-display);display:block;color:var(--accent);margin-top:10px;font-variant-numeric:tabular-nums}#record-indicator{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--on-deep-muted)}#record-indicator.live{background:var(--focus);animation:pulse 1.4s infinite}@keyframes pulse{50%{opacity:.4}}.record-controls{display:flex;gap:12px;flex-wrap:wrap}.record-controls>button{flex:1}#recording-player{width:100%;margin:7px 0 0}body:has(dialog[open]){overflow:hidden}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1550px){.workspace{margin:0 auto}.files-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.app-layout{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding:28px 16px}.workspace{padding:35px 25px}.capture-area{grid-template-columns:1.2fr 1fr;gap:16px}.dropzone{padding:24px 18px}.record-card{padding:25px}.collection-heading{flex-wrap:wrap}.files-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-heading{flex-wrap:wrap;gap:5px}.project-heading .quiet-button{margin-top:5px}}
@media(max-width:760px){.app-header{height:76px;padding:0 20px}.header-links{gap:12px}.header-links>a{display:none}.brand strong{font-size:var(--text-lead)}.monogram{font-size:var(--text-step-number)}.private-badge{font-size:var(--text-small)}.app-layout{display:block}.sidebar{padding:18px 20px;border-right:0;border-bottom:1px solid var(--line);gap:12px}.sidebar-title h2{font-size:var(--text-small)}.sidebar-bottom{display:none}.project-list{flex-direction:row;overflow-x:auto;padding-bottom:3px}.project-item{width:auto;min-width:150px;max-width:240px;flex:none;padding:10px 12px}.project-item strong{font-size:var(--text-small)}.project-item span{font-size:var(--text-small)}.workspace{padding:28px 20px}.eyebrow{font-size:var(--text-small);margin-bottom:12px}h1{font-size:var(--text-h2)}.intro{font-size:var(--text-small);margin-top:12px}.capture-area{grid-template-columns:1fr}.dropzone{min-height:260px}.record-card{padding:24px;display:grid;grid-template-columns:1fr auto;gap:13px 18px}.record-card .small-label{grid-column:1/-1}.record-card .mic-icon{grid-column:2;grid-row:2;margin:0}.record-card h2{font-size:var(--text-question)}.record-card>p{grid-column:1/-1;margin:0;font-size:var(--text-small)}.record-card .outline-button{grid-column:1/-1}.record-card .file-hint{grid-column:1/-1;margin:0}.record-card h2 br{display:none}.collection{margin-top:30px}.collection-heading{gap:17px}.collection-heading h2{font-size:var(--text-question)}.files-grid{gap:12px}.file-preview,.audio-preview,.pending-preview{height:145px}.file-body{padding:13px 13px 8px}.file-actions{gap:11px}.file-actions .delete-file{margin-left:0}.welcome-card{padding:27px 23px}.welcome-card form{flex-direction:column}.welcome-card h2{font-size:var(--text-question)}.welcome-notes{grid-template-columns:1fr;gap:18px}.welcome-notes p{margin-top:4px}.collection-footer{gap:10px}.upload-section{padding:17px}dialog{padding:33px 24px}dialog h2{font-size:var(--text-book-cover)}}
@media(max-width:420px){.files-grid{grid-template-columns:1fr}.file-preview{height:210px}.audio-preview{height:145px}.file-actions .delete-file{margin-left:auto}.filters button{padding:7px 10px}.filters span{margin-left:3px}.private-badge svg{width:14px}.workspace{padding:26px 17px}.project-item{min-width:140px}.record-controls{flex-direction:column}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.story-guide{padding:17px 20px;border:1px solid var(--line);border-radius:7px;margin-bottom:22px;background:var(--surface);font-size:var(--text-small)}.story-guide summary{cursor:pointer;color:var(--accent);font-weight:600;min-height:24px}.story-guide ol{padding-left:22px;line-height:1.8}.story-guide li{margin:8px 0}.story-guide p{color:var(--ink-muted);margin-top:14px}.transcription-note{font-size:var(--text-small);color:var(--ink-muted);margin-top:22px;max-width:850px}.transcription-status{border:1px solid var(--control-border);border-radius:7px;padding:18px 20px;margin-top:23px;background:var(--accent-soft);display:flex;align-items:center;justify-content:space-between;gap:20px}.transcription-status strong{font-size:var(--text-small);font-weight:600;overflow-wrap:anywhere}.transcription-status p{font-size:var(--text-small);color:var(--ink-muted);margin-top:5px}.transcript-actions{border-top:1px solid var(--line);margin-top:8px;padding:13px 0 7px}.transcript-actions .outline-button{font-size:var(--text-small);min-height:42px;padding:10px 12px}.transcript-label{display:block;font-size:var(--text-small);color:var(--accent);margin-bottom:9px}.transcript-failure{color:var(--danger)!important;margin-bottom:12px!important;line-height:1.6}.transcript-dialog{width:min(780px,calc(100% - 28px))}.transcript-dialog textarea{width:100%;font:var(--text-small)/1.7 var(--font-body);padding:15px;border:1px solid var(--on-deep-muted);border-radius:5px;background:var(--surface-raised);color:var(--ink);resize:vertical;min-height:220px}.transcript-dialog textarea:focus-visible,.story-guide summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}.example-link{margin:23px 0 0;font-size:var(--text-small);color:var(--accent);text-decoration:underline;text-underline-offset:5px}
@media(max-width:520px){.transcript-dialog .dialog-actions{flex-direction:column;align-items:stretch}.transcription-status{align-items:start;gap:12px}.transcription-status .quiet-button{flex:none}.story-guide{padding:15px 17px}}

.account-page{max-width:850px;margin:auto;padding:48px 24px 70px}.account-action{margin-top:20px;margin-right:12px}.account-order{display:block;padding:18px 0;border-bottom:1px solid var(--line);text-decoration:underline;overflow-wrap:anywhere}.checkout-review{display:flex;align-items:flex-start;gap:12px;max-width:620px}.checkout-review input{width:20px;min-height:20px;flex:none;margin:3px 0;accent-color:var(--accent)}#checkout-price{font-size:var(--text-lead);color:var(--accent);font-weight:600}.header-links #header-import{font-size:var(--text-small);padding:10px 14px}.header-links .account-link{display:inline-block}.app-header{height:auto;min-height:90px;gap:22px;padding-top:15px;padding-bottom:15px}.header-links{flex-wrap:wrap;justify-content:flex-end;gap:14px}@media(max-width:760px){.app-header{align-items:flex-start}.header-links .private-badge{display:none}.header-links{gap:8px;max-width:210px}.header-links #header-import{font-size:var(--text-small);line-height:1.3;min-height:42px}.account-page{padding:30px 20px}.app-layout{min-height:calc(100vh - 90px)}}

.project-heading-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}.danger-link{color:var(--danger)}.danger-button{background:var(--danger)}.danger-button:hover{background:var(--accent)}.danger-button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:760px){.project-heading-actions{justify-content:flex-start;margin-top:12px}}
.subject-choice{border:0;padding:0;margin:var(--space-4) 0;display:grid;gap:var(--space-2);min-width:0}.subject-choice legend{font-size:var(--text-body);font-weight:600;margin-bottom:var(--space-2)}.subject-choice label{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3);min-height:var(--touch-min);border:var(--border-card) solid var(--control-border);border-radius:var(--radius-card);background:var(--surface-raised);font-size:var(--text-body);line-height:1.4;cursor:pointer}.subject-choice label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.subject-choice input{flex:none;inline-size:var(--radio-size);block-size:var(--radio-size);min-inline-size:var(--radio-size);margin:0;accent-color:var(--accent)}.subject-choice label:has(input:focus-visible){outline:var(--focus-width) solid var(--focus);outline-offset:var(--focus-offset)}.project-subject{font-size:var(--text-body);color:var(--ink-muted);margin-top:var(--space-3)}#welcome-form,#project-form{display:grid;gap:var(--space-3)}#welcome-form>.jp-input,#project-name-field>.jp-input{width:100%}#project-name-field[hidden],#dialog-subject-choice[hidden]{display:none}

/* Give the question workspace enough room in a narrow desktop window. */
.project-item .project-progress{display:block;margin-top:var(--space-3)}.project-item .project-progress-detail{display:block;margin-top:var(--space-2);font-size:var(--text-small);color:var(--ink-muted)}.project-item .project-progress-heading{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px}.project-item .project-progress-heading span{font-size:var(--text-small);line-height:1.4;color:var(--accent)}.project-item .project-progress-heading span:last-child{font-weight:600;font-variant-numeric:tabular-nums}.project-progress progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:6px;border:0;border-radius:3px;overflow:hidden;background:var(--surface-sunken);accent-color:var(--accent)}.project-progress progress::-webkit-progress-bar{background:var(--surface-sunken);border-radius:3px}.project-progress progress::-webkit-progress-value{background:var(--accent);border-radius:3px}.project-progress progress::-moz-progress-bar{background:var(--accent);border-radius:3px}
@media(min-width:761px) and (max-width:1000px){.app-layout{display:block}.sidebar{padding:18px 25px;border-right:0;border-bottom:1px solid var(--line);gap:12px}.sidebar-title h2{font-size:var(--text-small)}.sidebar-bottom{display:none}.project-list{flex-direction:row;overflow-x:auto;padding-bottom:3px}.project-item{width:auto;min-width:150px;max-width:240px;flex:none;padding:10px 12px}.project-item strong{font-size:var(--text-small)}.project-item span{font-size:var(--text-small)}}
