:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#292826;background:#faf9f6;font-size:16px;--accent:#292826;--muted:#6d6a64;--line:#e3e0d9}*{box-sizing:border-box}body{margin:0}main{width:100%;max-width:600px;margin:auto;padding:24px 24px max(24px,env(safe-area-inset-bottom))}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px}.brand{font-size:17px;font-weight:650;letter-spacing:-.4px}.environment{font-size:12px;color:var(--muted)}h1{font-size:29px;line-height:1.4;letter-spacing:-.9px;margin:56px 0 10px;font-weight:650}p{line-height:1.6}.intro{color:var(--muted);font-size:14px;margin:0 0 30px}form{margin:0}.input-box{position:relative}textarea{display:block;width:100%;resize:vertical;min-height:180px;border:1px solid var(--line);border-radius:12px;padding:18px 18px 54px;font:inherit;line-height:1.65;color:inherit;background:#fff}textarea::placeholder{color:#75716a}button,a,summary,label{touch-action:manipulation}button{font:inherit;cursor:pointer;border:0;min-height:44px;border-radius:9px}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.text-button{background:transparent;color:var(--accent);padding:10px 12px;font-size:14px;white-space:nowrap}.actions{display:flex;gap:10px;margin-top:14px}.actions .primary{flex:1}.primary{background:var(--accent);color:#fff;padding:12px 20px;font-weight:600;font-size:15px}.primary:hover{background:#111110}.secondary{background:#eeece6;color:#4e4b45;padding:12px 18px;font-size:14px}button:disabled{opacity:.4;cursor:default}#status,#save-status{font-size:13px;line-height:1.6;margin:14px 0;overflow-wrap:anywhere}#status:empty,#save-status:empty{display:none}.error{color:#ac3e37!important}.busy{color:var(--muted)}footer{border-top:1px solid var(--line);margin-top:34px;padding-top:18px;color:#6d6a64;font-size:11px;line-height:1.7}.result-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.result-heading{min-width:0}.result-top>.text-button{flex-shrink:0;margin:-10px -12px 0 0}h2{font-size:21px;font-weight:600;line-height:1.5;margin:6px 0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.eyebrow{font-size:12px;color:var(--muted);margin:0}.muted{font-size:13px;color:var(--muted);margin:6px 0 14px}#author{font-size:12px;margin:7px 0 0}.export-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin:20px 0 18px}.export-tab{min-width:44px;background:none;border-bottom:2px solid transparent;border-radius:0;padding:9px 1px;color:var(--muted);font-size:14px}.export-tab[aria-pressed="true"]{color:var(--accent);border-color:var(--accent);font-weight:600}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0 0}.toolbar:empty{display:none}.toolbar label{font-size:13px;color:var(--muted)}select{max-width:100%;min-height:44px;min-width:0;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff;color:inherit;font:inherit;font-size:14px}#quality{flex:1;font-size:13px}#result-actions .toolbar>.primary{flex-grow:1}#result-actions .toolbar:has(#quality)>.primary{flex-basis:100%}.video-wrap{background:#1c1b19;border-radius:10px;overflow:hidden}video{display:block;width:100%;max-height:min(58svh,560px);object-fit:contain}.rendition-detail{font-size:12px;margin:0 0 10px;line-height:1.5}.gallery{min-width:0}.gallery-stage{min-height:90px}.preview-frame{position:relative;width:fit-content;max-width:100%;margin:auto;overflow:hidden;border-radius:10px;background:#efede7}.live-cover,.image-preview{display:block;background:transparent;padding:0;border-radius:0;max-width:100%}.preview-frame img{display:block;width:auto;height:auto;max-width:100%;max-height:min(50svh,520px);object-fit:contain}.preview-frame video{width:auto;height:auto;max-width:100%;max-height:min(50svh,520px)}.image-preview{cursor:zoom-in}.live-cover:disabled{opacity:1}.live-badge{position:absolute;pointer-events:none;top:10px;left:10px;padding:4px 8px;border-radius:20px;background:#211e1999;color:white;font-size:10px;font-weight:600;letter-spacing:.8px;backdrop-filter:blur(12px)}.preview-feedback{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:8px}.preview-hint{margin:9px 0 0;text-align:center;font-size:12px;color:var(--muted);line-height:1.6}.preview-feedback .preview-hint{flex:1;margin:0}.preview-feedback .text-button{font-size:12px;min-height:44px;padding:7px 0}.gallery-navigation{display:flex;align-items:center;justify-content:space-between;margin:0 0 6px;min-height:44px}.gallery-position{font-size:14px;font-variant-numeric:tabular-nums;font-weight:600}.gallery-position span{font-size:12px;font-weight:400;color:var(--muted);margin-left:12px}.gallery-arrows{display:flex;gap:6px}.arrow-button{background:transparent;color:inherit;min-width:44px;font-size:27px;line-height:1}.arrow-button:disabled{opacity:.22}.thumbnail-strip{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:3px 2px 9px;scrollbar-width:thin;scrollbar-color:#cdc7bb transparent;position:relative}.thumbnail{position:relative;flex:0 0 64px;height:72px;padding:0;overflow:hidden;background:#e8e4db;border-radius:6px;scroll-snap-align:center;border:2px solid transparent}.thumbnail img{display:block;width:100%;height:100%;object-fit:cover;opacity:.65}.thumbnail[aria-pressed="true"]{border-color:var(--accent)}.thumbnail[aria-pressed="true"] img{opacity:1}.thumbnail-number{position:absolute;bottom:3px;left:5px;color:white;font-size:10px;text-shadow:0 1px 4px #000}.thumbnail-live{position:absolute;top:3px;right:5px;color:white;font-size:12px;text-shadow:0 1px 4px #000}.thumbnail-failed .thumbnail-number{color:#4e4b45;text-shadow:none}.image-picker{margin-top:18px;border-top:1px solid var(--line);padding-top:6px}.image-picker summary{min-height:48px;cursor:pointer;display:flex;gap:12px;align-items:center;font-size:14px}.image-picker summary:after{content:'＋';font-size:18px;color:var(--muted);margin-left:auto}.image-picker[open] summary:after{content:'−'}.image-picker summary::-webkit-details-marker{display:none}.count{font-size:12px;color:var(--muted)}.selection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.selection-tile{position:relative;cursor:pointer;border-radius:8px;overflow:hidden;background:#eeece6}.selection-tile img{width:100%;aspect-ratio:1;object-fit:cover;display:block}.selection-tile input{position:absolute;top:6px;right:6px;width:23px;height:23px;accent-color:var(--accent);margin:0}.selection-tile span{display:block;padding:8px;font-size:12px}.selection-tile:has(input:checked){box-shadow:inset 0 0 0 2px var(--accent)}dialog{border:0;border-radius:12px;max-width:min(96vw,1000px);max-height:94dvh;padding:12px;background:#faf9f6}dialog::backdrop{background:#1e1b16cc}dialog img{max-width:100%;max-height:78dvh;display:block;margin:auto;object-fit:contain}dialog .text-button{display:block;margin-left:auto}#text-panel textarea{min-height:200px;max-height:55svh;padding:16px;font-size:15px}#text-panel .toolbar .primary{flex:1}#audio-panel audio{width:100%;margin-top:22px}h3{font-size:18px;margin:20px 0 8px}.download-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:9px;text-decoration:none;cursor:pointer}.download-link[aria-disabled="true"]{opacity:.4;cursor:default}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}[hidden]{display:none!important}@media(max-width:560px){main{padding:20px 18px max(22px,env(safe-area-inset-bottom))}header{margin-bottom:26px}h1{font-size:26px;margin-top:44px}.intro{line-height:1.7;margin-bottom:24px}h2{font-size:19px}.export-tabs{margin:17px 0 15px}.thumbnail{flex-basis:60px;height:68px}footer{margin-top:28px}.preview-frame img,.preview-frame video{max-height:49svh}.selection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.export-tabs:has(>button:nth-child(4)){gap:18px}.export-tab{flex-shrink:0;white-space:nowrap}#transcript-panel textarea{min-height:230px;max-height:55svh;padding:16px;font-size:15px}#transcript-panel .toolbar:not(.transcript-controls) .primary{flex:1}.transcript-controls{margin-top:14px}.transcript-controls>.primary{flex:1}.transcript-status{margin:14px 0;line-height:1.6;overflow-wrap:anywhere}.transcript-status.error{font-size:13px}@media(max-width:360px){.export-tabs:has(>button:nth-child(4)){gap:12px}}

#text{min-height:144px;padding:16px}.link-actions{display:flex;gap:10px;margin-top:10px}.link-actions button{flex:1}.link-actions #paste{background:#e9e5dc;color:var(--accent)}#entry .actions{margin-top:10px}#entry.compact h1,#entry.compact .intro{display:none}#entry.compact #text{min-height:112px;height:112px;max-height:240px}#result{border-top:1px solid var(--line);margin-top:26px;padding-top:24px}

/* Short and long export panels share the same content width. */
html{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}

.brand{color:inherit;text-decoration:none}.policy h1{margin-top:36px}.policy h2{display:block;margin-top:28px;font-size:18px}.policy p{line-height:1.8}footer p{margin:3px 0}footer a,.policy a{color:inherit}
