.demo-hero{padding:56px 0 8px;text-align:center}.demo-hero h1{margin:16px auto 0;max-width:18ch}.demo-hero .lead{margin:16px auto 0;max-width:56ch}.demo-wrap{padding:28px 0 80px;max-width:820px;margin:0 auto}.demo-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-sm);padding:28px 28px 26px}.demo-alert{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px;padding:14px 16px;background:#bf3c2814;border:1px solid rgba(191,60,40,.28);border-radius:12px;color:#8a2a1c}.demo-alert[hidden]{display:none}.demo-alert p{font-size:14px;line-height:1.5;flex:1}.demo-alert button{background:none;border:none;color:inherit;cursor:pointer;font-size:18px;line-height:1;padding:0}.demo-controls{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}.demo-field{flex:1;min-width:220px}.demo-field label{display:block;font-size:12px;font-family:IBM Plex Mono,monospace;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:8px}.demo-select{position:relative}.demo-select select{width:100%;appearance:none;-webkit-appearance:none;font-family:inherit;font-size:15.5px;color:var(--ink);background:var(--bg-2);border:1px solid var(--border);border-radius:11px;padding:13px 44px 13px 16px;cursor:pointer;transition:border-color .15s,box-shadow .15s}.demo-select select:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px #2f6b3a1f;background:#fff}.demo-select:after{content:"";position:absolute;right:18px;top:50%;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-65%) rotate(45deg);pointer-events:none}.demo-select:has(>select[hidden]):after{content:none}.demo-lang-loading{height:48px;border-radius:11px;background:var(--bg-2);animation:demo-pulse 1.3s ease-in-out infinite}.demo-lang-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;width:100%;margin-top:10px;padding:32px 20px}.demo-lang-error[hidden]{display:none}.demo-lang-error .err-icon{color:var(--gold)}.demo-lang-error p{font-size:18px;font-weight:600;color:var(--ink)}.demo-field:has(.demo-lang-error:not([hidden])) label{display:none}@keyframes demo-pulse{0%,to{opacity:.5}50%{opacity:1}}.rec-indicator{display:inline-flex;align-items:center;gap:10px;color:var(--green-700);font-weight:600;font-size:15px}.rec-dot{width:12px;height:12px;border-radius:50%;background:#d44;box-shadow:0 0 #dd444480;animation:rec-pulse 1.4s infinite}@keyframes rec-pulse{0%{box-shadow:0 0 #dd444480}70%{box-shadow:0 0 0 10px #d440}to{box-shadow:0 0 #d440}}.session-timer{font-family:IBM Plex Mono,monospace;font-size:13.5px;color:#8a2a1c}.results{display:flex;flex-direction:column;gap:20px;margin-top:24px}.result-panel{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--r);background:var(--bg);overflow:hidden}.result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid var(--border-2);background:#fcfcfa}.result-head .label{font-family:IBM Plex Mono,monospace;font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.result-head .ops{display:flex;gap:6px}.result-head .ops button{background:none;border:1px solid var(--border);border-radius:8px;padding:4px 8px;font-size:12px;color:var(--ink-2);cursor:pointer;transition:.15s}.result-head .ops button:hover{border-color:var(--green);color:var(--green)}.result-body{padding:14px;font-size:15px;line-height:1.55;color:var(--ink);white-space:pre-wrap;min-height:120px;max-height:260px;overflow-y:auto}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.drop-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:48px 24px;border:2px dashed var(--border);border-radius:var(--r-lg);background:var(--bg-2);cursor:pointer;transition:border-color .15s,background .15s}.drop-zone.dragover{border-color:var(--green);background:var(--green-soft)}.drop-zone .dz-icon{color:var(--green-700)}.drop-zone .dz-text{color:var(--ink-2);font-size:16px}.demo-note{font-size:12.5px;color:var(--muted);font-family:IBM Plex Mono,monospace;line-height:1.6;margin-top:16px;white-space:pre-line}.file-info{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--bg-2);border:1px solid var(--border);border-radius:11px}.file-info .label{flex:none;font-family:IBM Plex Mono,monospace;font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.file-info .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--ink);cursor:pointer}.file-info .clear{flex:none;margin-left:0;background:none;border:none;cursor:pointer;color:var(--muted);font-size:18px}.demo-spinner{display:flex;align-items:center;justify-content:center;gap:14px;padding:40px}.demo-spinner .spin{flex:none;box-sizing:border-box;width:26px;height:26px;border:3px solid var(--border);border-bottom-color:var(--green);border-radius:50%;animation:demo-spin .9s linear infinite}.demo-spinner .label{font-family:IBM Plex Mono,monospace;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}@keyframes demo-spin{to{transform:rotate(360deg)}}.demo-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:22px}.demo-stack{display:flex;flex-direction:column;gap:18px}.cross-link{margin-top:22px}#streaming-demo:has(#lang-select[hidden]) #start-btn{display:none}#streaming-demo #stop-btn,#streaming-demo .rec-indicator,#streaming-demo .session-timer,#streaming-demo[data-phase=recording] #start-btn{display:none}#streaming-demo[data-phase=recording] #stop-btn,#streaming-demo[data-phase=recording] .rec-indicator,#streaming-demo[data-phase=recording] .session-timer{display:inline-flex}#streaming-demo .results{display:none}#streaming-demo[data-phase=recording] .results,#streaming-demo[data-phase=stopped] .results{display:flex}#streaming-demo .result-post{display:none}#streaming-demo[data-phase=stopped] .result-post{display:flex}#prerecorded-demo .ph-upload,#prerecorded-demo .ph-selected,#prerecorded-demo .ph-transcribing,#prerecorded-demo .ph-result{display:none}#prerecorded-demo[data-phase=upload] .ph-upload,#prerecorded-demo[data-phase=selected] .ph-selected,#prerecorded-demo[data-phase=transcribing] .ph-transcribing,#prerecorded-demo[data-phase=result] .ph-result,#prerecorded-demo[data-phase=result] .ph-selected{display:block}#prerecorded-demo .ph-result{margin-top:24px}.toast-container{position:fixed;bottom:20px;right:20px;z-index:1200;display:flex;flex-direction:column;gap:8px;align-items:flex-end;pointer-events:none}.toast{background:var(--green-deep);color:#fff;font-size:14px;font-weight:500;padding:11px 16px;border-radius:11px;box-shadow:var(--shadow-md);opacity:0;transform:translateY(8px);transition:opacity .25s ease,transform .25s ease}.toast.show{opacity:1;transform:none}
