:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#1a1a1a;background:#fafafa}body{margin:0}main{max-width:40rem;margin:0 auto;padding:2rem 1rem 4rem}.nav{display:flex;gap:1.25rem;margin-bottom:1.75rem;border-bottom:1px solid #e4e4e4}.nav-link{font-size:.85rem;color:#666;text-decoration:none;padding:0 0 .6rem;border-bottom:2px solid transparent}.nav-link.is-active{color:#1a1a1a;font-weight:600;border-bottom-color:#1a1a1a}.intro{font-size:.88rem;color:#555;line-height:1.6;margin:-.75rem 0 1.5rem}.intro code{background:#f0f0f0;padding:.1rem .3rem;border-radius:3px;font-size:.85em}h1{font-size:1.4rem;margin-bottom:1.5rem}.panel{margin-bottom:1.25rem}label,.field-label{display:block;font-size:.8rem;font-weight:600;margin-bottom:.4rem}.row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}input,select{font:inherit;padding:.5rem;border:1px solid #ccc;border-radius:6px;background:#fff}input{flex:1;min-width:12rem}button{font:inherit;padding:.5rem 1rem;border:1px solid #ccc;border-radius:6px;background:#fff;cursor:pointer}button.primary{background:#1a1a1a;color:#fff;border-color:#1a1a1a}button:disabled{opacity:.45;cursor:not-allowed}.countdown{font-variant-numeric:tabular-nums;color:#666;font-size:.9rem}.note{font-size:.78rem;color:#666;margin:.5rem 0 0;line-height:1.5}.warn-note{color:#8a6100}.error{background:#fdecea;border:1px solid #f5c2c0;color:#8a1c14;padding:.75rem;border-radius:6px;font-size:.85rem}.warning{background:#fff8e1;border:1px solid #f0d78c;color:#6b4e00;padding:.75rem;border-radius:6px;font-size:.85rem}.toggle{display:inline-flex;border:1px solid #ccc;border-radius:8px;overflow:hidden;background:#fff}.toggle-option{border:0;border-radius:0;background:transparent;padding:.5rem 1rem;color:#555}.toggle-option+.toggle-option{border-left:1px solid #e4e4e4}.toggle-option.is-active{background:#1a1a1a;color:#fff}.toggle-option:disabled{opacity:.45}.mic{display:inline-flex;align-items:center;gap:.55rem}.mic-bars{display:flex;align-items:center;gap:3px;height:22px}.mic-bar{display:block;width:3px;height:22px;border-radius:2px;background:#c4c4c4;transform:scaleY(.12);transition:transform 90ms ease-out,background-color .18s ease}.mic.is-speaking .mic-bar{background:#1a7f37}.mic-label{font-size:.8rem;color:#666}.mic.is-speaking .mic-label{color:#1a7f37}.mic:not(.is-speaking) .mic-bar{animation:mic-idle 1.8s ease-in-out infinite}.mic:not(.is-speaking) .mic-bar:nth-child(2){animation-delay:.15s}.mic:not(.is-speaking) .mic-bar:nth-child(3){animation-delay:.3s}.mic:not(.is-speaking) .mic-bar:nth-child(4){animation-delay:.45s}.mic:not(.is-speaking) .mic-bar:nth-child(5){animation-delay:.6s}@keyframes mic-idle{0%,to{opacity:.35}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.mic-bar{animation:none;transition:none}}.disclosure{margin-top:2rem;border-top:1px solid #e4e4e4;padding-top:1rem;font-size:.78rem;color:#555}.disclosure summary{cursor:pointer;font-weight:600;color:#1a1a1a}.disclosure ul{margin:.75rem 0 0;padding-left:1.1rem;line-height:1.6}.disclosure li{margin-bottom:.5rem}.disclosure+.disclosure{margin-top:0;padding-top:.75rem}.disclosure h3{font-size:.8rem;font-weight:600;color:#1a1a1a;margin:1rem 0 .35rem}.disclosure h3:first-of-type{margin-top:.85rem}.disclosure code{background:#f0f0f0;padding:.05rem .25rem;border-radius:3px;font-size:.9em}.disclosure-source{color:#888;margin:.5rem 0 0;line-height:1.5}.transcript{margin-top:1.5rem}.sentence-interim{color:#999;font-style:italic;padding:.7rem .9rem;border-left:3px dashed #ccc;margin:0;line-height:1.5}.sentence-interim.is-waiting{min-height:1.5em}.waiting-dots{display:inline-flex;gap:.28rem;align-items:center;height:1.5em}.waiting-dots i{width:6px;height:6px;border-radius:50%;background:#bbb;animation:waiting-pulse 1.2s ease-in-out infinite}.waiting-dots i:nth-child(2){animation-delay:.15s}.waiting-dots i:nth-child(3){animation-delay:.3s}@keyframes waiting-pulse{0%,60%,to{opacity:.25}30%{opacity:1}}@media(prefers-reduced-motion:reduce){.waiting-dots i{animation:none;opacity:.55}}.placeholder{color:#999;font-size:.9rem;margin-top:1.5rem}.toast{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%);background:#1a1a1a;color:#fff;padding:.6rem 1.1rem;border-radius:999px;font-size:.85rem}.steps{display:flex;flex-direction:column}.step{border-left:2px solid #e4e4e4;padding:0 0 1.5rem 1.25rem;margin-left:.85rem;position:relative}.step:last-child{border-left-color:transparent;padding-bottom:0}.step.is-active{border-left-color:#1a1a1a}.step-head{display:flex;align-items:center;gap:.6rem;margin-bottom:.6rem}.step-number{position:absolute;left:-.87rem;width:1.7rem;height:1.7rem;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:600;background:#fafafa;border:2px solid #e4e4e4;color:#999}.step.is-active .step-number{background:#1a1a1a;border-color:#1a1a1a;color:#fff}.step.is-done .step-number{background:#fff;border-color:#1a7f37;color:#1a7f37}.step-title{font-size:.95rem;font-weight:600;margin:0 0 0 .6rem}.step.is-upcoming .step-title{color:#aaa}.step-edit{margin-left:auto;padding:.25rem .6rem;font-size:.75rem;color:#666}.step-body>.primary{margin-top:1rem}.step-summary{margin:0 0 0 .6rem;font-size:.82rem;color:#666}.field-label.spaced{margin-top:1.25rem}.timebar{height:3px;background:#e8e8e8;border-radius:2px;overflow:hidden;margin:.9rem 0 .25rem}.timebar span{display:block;height:100%;background:#1a1a1a;transition:width 1s linear}.stop-notice{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;font-size:.82rem;color:#555;background:#f2f2f2;border-radius:6px;padding:.6rem .8rem;margin:1rem 0 0}.stop-notice button{padding:.3rem .7rem;font-size:.78rem}.miccheck{margin-top:1.25rem;padding-top:1rem;border-top:1px dashed #e4e4e4}.check-pass,.check-fail{font-size:.82rem;line-height:1.5;margin:.6rem 0 0;padding:.55rem .75rem;border-radius:6px}.check-pass{background:#eaf6ec;border:1px solid #b8dfc2;color:#1a5f2c}.check-fail{background:#fdecea;border:1px solid #f5c2c0;color:#8a1c14}.edit-hint{font-size:.75rem;color:#888;margin:0 0 .6rem;line-height:1.5}.card-slot{position:relative}.sentence-card{background:#fff;border:1px solid #e4e4e4;border-left:3px solid #1a1a1a;border-radius:4px;margin:0 0 .5rem;padding:.7rem .9rem;transition:box-shadow .14s ease,border-color .14s ease,opacity .14s ease}.card-main{display:flex;align-items:flex-start;gap:.5rem}.sentence-text{margin:0;line-height:1.5;flex:1;overflow-wrap:anywhere}.drag-handle{flex:none;width:44px;height:44px;margin:-.55rem -.4rem -.55rem -.5rem;display:grid;place-items:center;border:0;background:transparent;border-radius:6px;color:silver;cursor:grab;touch-action:none;transition:color .14s ease,background-color .14s ease}.drag-handle svg{fill:currentColor}.drag-handle:active{cursor:grabbing}.card-actions{display:flex;gap:.4rem;justify-content:flex-end;max-height:0;opacity:0;overflow:hidden;transition:max-height .16s ease,opacity .16s ease,margin-top .16s ease}.sentence-card.is-engaged .card-actions,.sentence-card.is-editing .card-actions,.sentence-card:focus-within .card-actions{max-height:3.5rem;opacity:1;margin-top:.6rem}@media(hover:hover){.sentence-card:hover .card-actions{max-height:3.5rem;opacity:1;margin-top:.6rem}.sentence-card:hover .drag-handle{color:#888}}.sentence-card.is-engaged,.sentence-card:focus-within{box-shadow:0 1px 6px #00000014}.sentence-card.is-engaged .drag-handle{color:#888}.card-actions button{padding:.45rem .85rem;font-size:.8rem;min-height:40px}.card-actions .danger{color:#8a1c14;border-color:#f0c9c6}.sentence-input{font:inherit;width:100%;box-sizing:border-box;padding:.5rem;border:1px solid #1a1a1a;border-radius:6px;line-height:1.5;resize:vertical}.sentence-card.is-dragging{opacity:.35;border-style:dashed}.sentence-card.is-merge-target{border-color:#1a7f37;border-left-color:#1a7f37;box-shadow:0 0 0 2px #1a7f3740}.sentence-card.is-lifted{box-shadow:0 0 0 2px #1a1a1a}.drop-line{height:3px;background:#1a7f37;border-radius:2px;margin:.25rem 0}.drag-preview{position:fixed;z-index:50;transform:translate(-50%,-140%);max-width:17rem;padding:.45rem .7rem;background:#1a1a1a;color:#fff;border-radius:6px;font-size:.8rem;line-height:1.4;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.transcript.is-dragging-list{-webkit-user-select:none;user-select:none}.undo-bar{position:sticky;bottom:.75rem;display:flex;align-items:center;gap:.6rem;margin-top:.75rem;padding:.55rem .7rem;background:#1a1a1a;color:#fff;border-radius:8px;font-size:.82rem}.undo-bar span{flex:1}.undo-bar button{background:transparent;border:1px solid #555;color:#fff;padding:.35rem .75rem;font-size:.8rem;min-height:36px}.undo-bar .undo-close{border:0;padding:.35rem .5rem}.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(max-width:480px){.card-actions{justify-content:stretch}.card-actions button{flex:1}.drag-preview{max-width:12rem}}@media(prefers-reduced-motion:reduce){.sentence-card,.card-actions,.drag-handle{transition:none}}.tabs{display:flex;gap:.25rem;padding:.2rem;background:#ededed;border-radius:8px;margin-bottom:1rem}.tab{flex:1;border:0;background:transparent;border-radius:6px;padding:.5rem .75rem;font-size:.82rem;color:#666;min-height:40px}.tab.is-active{background:#fff;color:#1a1a1a;font-weight:600;box-shadow:0 1px 3px #0000001a}.section-rule{border:0;border-top:1px solid #e4e4e4;margin:1.1rem 0}.stop-hint{font-size:.78rem;color:#777}.card2{display:flex;align-items:center;gap:.5rem;background:#fff;border:1px solid #e4e4e4;border-left:3px solid #1a1a1a;border-radius:4px;margin:0 0 .5rem;padding:.35rem .4rem .35rem .9rem;transition:box-shadow .14s ease,border-color .14s ease,opacity .14s ease}.card2-body{flex:1;min-width:0;padding:.3rem 0}.card2-tools{flex:none;display:flex;flex-direction:column;gap:0}@media(min-width:640px){.card2-tools{flex-direction:row;align-items:center}}.tool{flex:none;width:44px;height:38px;display:grid;place-items:center;border:0;background:transparent;border-radius:8px;color:#b0b0b0;transition:color .14s ease,background-color .14s ease}.tool svg{fill:currentColor}.tool:hover,.tool:focus-visible{color:#1a1a1a;background:#f2f2f2}.tool-danger:hover,.tool-danger:focus-visible{color:#8a1c14;background:#fdecea}.card2 .drag-handle{margin:0;cursor:grab;touch-action:none}.card2 .drag-handle:active{cursor:grabbing}.card2.is-dragging{opacity:.35;border-style:dashed}.card2.is-merge-target{border-color:#1a7f37;border-left-color:#1a7f37;box-shadow:0 0 0 2px #1a7f3740}.card2.is-lifted{box-shadow:0 0 0 2px #1a1a1a}.edit-actions{display:flex;gap:.4rem;margin-top:.6rem}.edit-actions button{padding:.45rem .9rem;font-size:.8rem;min-height:40px}@media(pointer:coarse){.transcript.is-improved .card2 .sentence-text{user-select:none;-webkit-user-select:none}}@media(max-width:480px){.transcript.is-improved .card2 .sentence-text{user-select:none;-webkit-user-select:none}}.datalayer{margin-top:1.25rem;padding-top:1rem;border-top:1px dashed #e4e4e4}.datalayer-head{display:flex;align-items:center;gap:.75rem}.switch{display:inline-flex;align-items:center;gap:.55rem;cursor:pointer;font-size:.8rem;color:#444;min-height:44px}.switch input{position:absolute;opacity:0;width:1px;height:1px}.switch-track{width:38px;height:22px;border-radius:999px;background:#ccc;padding:2px;transition:background-color .16s ease;flex:none}.switch-knob{display:block;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .16s ease}.switch input:checked+.switch-track{background:#1a7f37}.switch input:checked+.switch-track .switch-knob{transform:translate(16px)}.switch input:focus-visible+.switch-track{outline:2px solid #1a1a1a;outline-offset:2px}.datalayer-count{font-size:.75rem;color:#888}.json{margin:.6rem 0 0;padding:.75rem;background:#1c1c1c;border-radius:6px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72rem;line-height:1.55;color:#d4d4d4;overflow-x:auto;max-height:20rem;overflow-y:auto;white-space:pre}.json-key{color:#9cdcfe}.json-string{color:#ce9178}.json-punct{color:gray}.json-number{color:#b5cea8}@media(prefers-reduced-motion:reduce){.card2,.tool,.switch-track,.switch-knob{transition:none}}.card-menu{display:flex;gap:.4rem;margin-top:.5rem}.menu-button{flex:1;min-height:44px;font-size:.85rem;border:1px solid #d5d5d5;background:#fff}.menu-button.is-danger{color:#8a1c14;border-color:#f0c9c6}.card2.is-menu-open{box-shadow:0 1px 6px #00000014}.card2.is-menu-open .tool[aria-expanded=true]{color:#1a1a1a;background:#f2f2f2}.tool.chevron svg{fill:none;transition:transform .18s ease}.tool.chevron[aria-expanded=true] svg{transform:rotate(180deg)}@media(prefers-reduced-motion:reduce){.tool.chevron svg{transition:none}}
