.cl-root{--cl-accent: #0f766e;--cl-soft: #ecfdf5;position:relative;width:100%;height:100%;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:#f6f8fb;color:#172033;font:14px/1.5 Inter,system-ui,-apple-system,sans-serif;padding:clamp(16px,3vw,36px) max(clamp(16px,3vw,36px),env(safe-area-inset-right)) max(clamp(16px,3vw,36px),env(safe-area-inset-bottom)) max(clamp(16px,3vw,36px),env(safe-area-inset-left));-webkit-overflow-scrolling:touch}.cl-root *,.cl-root *:before,.cl-root *:after{box-sizing:border-box}.cl-history-toggle,.cl-overlay-toggle,.cl-history button{border:1px solid #d8e0ea;border-radius:8px;background:#fff;color:#334155;cursor:pointer;touch-action:manipulation}.cl-history-toggle{min-height:36px;padding:7px 12px}.cl-overlay-toggle{min-height:36px;padding:7px 12px;border-color:#99f6e4;color:#0f766e;font-weight:700}.cl-overlay-toggle[hidden]{display:none}.cl-overlay-toggle:disabled{opacity:.55}.cl-history button{min-height:44px;padding:9px 14px}.cl-notice{max-width:1220px;margin:0 auto 14px;padding:10px 14px;border-radius:10px;background:#eef2ff;overflow-wrap:anywhere}.cl-notice[data-type=error]{background:#fef2f2;color:#991b1b}.cl-notice[data-type=warning]{background:#fffbeb;color:#92400e}.cl-notice[data-type=success]{background:#ecfdf5;color:#166534}.cl-grid{max-width:1220px;min-height:min(620px,calc(100dvh - 190px));margin:auto;display:grid;grid-template-columns:minmax(280px,350px) minmax(0,1fr);gap:18px}.cl-setup,.cl-live{min-width:0;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 12px 36px #0f172a0f}.cl-setup{padding:22px}.cl-setup h2{margin:0 0 16px}.cl-setup label{display:grid;gap:6px;margin:0 0 14px;color:#475569;font-weight:600}.cl-setup input,.cl-setup select,.cl-setup textarea{width:100%;min-height:44px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#172033;padding:10px 11px;font:inherit}.cl-setup textarea{min-height:76px;resize:vertical}.cl-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.cl-pwa-card{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px;padding:11px;border:1px solid #99f6e4;border-radius:12px;background:#f0fdfa}.cl-pwa-card[hidden]{display:none}.cl-pwa-card div{min-width:0;display:grid;gap:2px}.cl-pwa-card strong{color:#115e59;font-size:13px}.cl-pwa-card span{color:#47736f;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.cl-pwa-card button{flex:0 0 auto;min-height:40px;border:0;border-radius:9px;background:#0f766e;color:#fff;padding:8px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;touch-action:manipulation}.cl-pwa-card.is-installed{border-color:#bbf7d0;background:#f0fdf4}.cl-pwa-card.is-installed strong{color:#166534}.cl-permission{display:flex;gap:8px;align-items:center;margin:5px 0 14px;color:#64748b}.cl-privacy{display:grid;gap:9px;margin:2px 0 14px;padding:12px;border:1px solid #bae6fd;border-radius:12px;background:#f0f9ff}.cl-privacy .cl-consent{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:12px}.cl-privacy .cl-consent input{width:18px;min-height:18px;margin-top:2px}.cl-privacy label{margin:0}.cl-privacy select{min-height:38px}.cl-privacy small{color:#475569;line-height:1.45}.cl-history-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}.cl-history-tools input{grid-column:1 / -1;width:100%;min-width:0;min-height:44px;border:1px solid #cbd5e1;border-radius:9px;padding:9px 11px;font:inherit}.cl-storage,.cl-pending-manager{margin-bottom:12px;padding:10px 12px;border:1px solid #dbeafe;border-radius:10px;background:#eff6ff;color:#334155;font-size:12px}.cl-pending-manager>div>div{display:flex;align-items:center;gap:8px;margin-top:8px}.cl-pending-manager span{flex:1}.cl-history-course{margin:18px 0 7px;color:#0f766e;font-size:14px}.cl-segment-speaker{display:inline-flex;margin:0 0 6px 8px;padding:2px 7px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:11px;font-weight:700}.cl-segment-actions{display:flex;justify-content:flex-end;margin-top:7px}.cl-segment-actions button,.cl-segment-editor button{min-height:34px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;padding:6px 9px;cursor:pointer}.cl-segment-editor{display:grid;gap:8px;margin-top:10px;padding:11px;border:1px solid #99f6e4;border-radius:10px;background:#f0fdfa}.cl-segment-editor label{display:grid;gap:4px;font-size:12px;font-weight:700}.cl-segment-editor textarea{min-height:82px;resize:vertical}.cl-segment-editor textarea,.cl-segment-editor select{width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;padding:8px;font:inherit}.cl-segment-editor-actions{display:flex;flex-wrap:wrap;gap:6px}.cl-study-guide{margin-bottom:14px;padding:15px;border:1px solid #c4b5fd;border-radius:12px;background:#f5f3ff}.cl-study-guide pre{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}@media (max-width: 720px){.cl-history-tools{grid-template-columns:1fr 1fr}.cl-history-tools input{grid-column:1 / -1}.cl-pending-manager>div>div{align-items:stretch;flex-wrap:wrap}.cl-pending-manager span{flex-basis:100%}}.cl-dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:#94a3b8}.cl-dot[data-state=granted]{background:#16a34a}.cl-dot[data-state=denied]{background:#dc2626}.cl-session-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.cl-primary{width:100%;min-height:48px;border:0;border-radius:12px;background:var(--cl-accent);color:#fff;padding:13px;font-size:15px;font-weight:750;cursor:pointer;touch-action:manipulation}.cl-primary:disabled{opacity:.55}.cl-primary--stop{background:#b91c1c}.cl-pause{min-width:112px;min-height:48px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#334155;padding:11px 14px;font:inherit;font-weight:700;cursor:pointer;touch-action:manipulation}.cl-pause.is-paused{border-color:#f59e0b;background:#fffbeb;color:#92400e}.cl-pause:disabled{cursor:wait;opacity:.55}.cl-mobile-tip{margin:12px 0 0;color:#64748b;font-size:12px}.cl-live{display:flex;flex-direction:column;overflow:hidden}.cl-live-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:17px 20px;border-bottom:1px solid #e2e8f0}.cl-live-head>div:first-child{flex:0 0 auto;display:flex;align-items:center;white-space:nowrap;word-break:keep-all}.cl-live-head [data-live-status]{white-space:nowrap;word-break:keep-all}.cl-live-actions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:10px}.cl-live-actions .cl-history-toggle{flex:0 0 auto}.cl-status-dot{flex:0 0 auto;display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:50%;background:#94a3b8}.cl-status-dot.is-live{background:#ef4444;box-shadow:0 0 0 5px #fee2e2}.cl-status-dot.is-paused{background:#f59e0b;box-shadow:0 0 0 5px #fef3c7}.cl-badges{min-width:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.cl-badges span{border-radius:999px;background:#f1f5f9;color:#64748b;padding:4px 8px;font-size:11px}.cl-meter{height:4px;background:#e2e8f0}.cl-meter i{display:block;width:2%;height:100%;background:linear-gradient(90deg,#14b8a6,#22c55e,#eab308);transition:width .12s}.cl-quality{padding:8px 20px;background:#f8fafc;color:#64748b;font-size:12px;overflow-wrap:anywhere}.cl-diagnostics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;background:#e2e8f0}.cl-diagnostics div{min-width:0;display:grid;gap:3px;background:#fff;padding:9px 12px}.cl-diagnostics span{color:#94a3b8;font-size:10px}.cl-diagnostics strong{overflow:hidden;color:#334155;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.cl-diagnostics strong[data-grade=excellent],.cl-diagnostics strong[data-grade=stable]{color:#15803d}.cl-diagnostics strong[data-grade=attention]{color:#b45309}.cl-diagnostics strong[data-grade=risk]{color:#b91c1c}.cl-processing{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 20px;border-top:1px solid #e2e8f0;background:#f8fafc;color:#64748b;font-size:12px}.cl-processing[hidden]{display:none}.cl-processing[data-type=working]{background:#eff6ff;color:#1d4ed8}.cl-processing[data-type=success]{background:#ecfdf5;color:#166534}.cl-processing[data-type=warning]{background:#fffbeb;color:#92400e}.cl-processing[data-type=error]{background:#fef2f2;color:#991b1b}.cl-processing button{flex:0 0 auto;min-height:36px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;padding:5px 8px;font:inherit;font-weight:700}.cl-transcript{flex:1;min-height:0;overflow:auto;padding:22px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.cl-empty{height:100%;min-height:320px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;color:#64748b;text-align:center}.cl-empty div{font-size:42px}.cl-empty strong{color:#334155;font-size:18px}.cl-segment{max-width:760px;margin:0 0 18px;padding:0 0 18px;border-bottom:1px solid #edf2f7}.cl-segment time{color:#94a3b8;font-size:11px}.cl-segment p{margin:5px 0}.cl-segment-target{color:#0f172a;font-size:clamp(18px,2.2vw,24px);line-height:1.55;white-space:pre-line}.cl-segment-source{color:#64748b;white-space:pre-line}.cl-segment.is-pending .cl-segment-target{color:#64748b;font-size:14px}.cl-segment.is-pending .cl-segment-target:before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#3b82f6;animation:cl-pending-pulse 1.2s ease-in-out infinite}@keyframes cl-pending-pulse{50%{opacity:.3}}.cl-live-draft{max-width:760px;margin:0 0 18px;padding:13px 15px;border:1px dashed #93c5fd;border-radius:12px;background:#eff6ff;color:#475569}.cl-live-draft-label{display:inline-block;margin-bottom:6px;color:#2563eb;font-size:11px;font-weight:750}.cl-live-draft p{margin:0;line-height:1.55}.cl-history{position:absolute;inset:0 0 0 auto;z-index:20;width:min(440px,100%);overflow-x:hidden;overflow-y:auto;background:#fff;box-shadow:-18px 0 55px #0f172a2e;padding:22px}.cl-history[hidden]{display:none}.cl-history header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #e2e8f0;padding-bottom:14px}.cl-history h2,.cl-history p{margin:0}.cl-history p{color:#64748b;font-size:12px}.cl-history-list{display:grid;gap:10px;margin-top:16px}.cl-history-item{display:grid;gap:4px;border:1px solid #e2e8f0;border-radius:12px;padding:14px}.cl-history-item span{color:#64748b;font-size:12px}.cl-history-quality[data-grade=excellent],.cl-history-quality[data-grade=stable]{color:#15803d}.cl-history-quality[data-grade=attention]{color:#b45309}.cl-history-quality[data-grade=risk]{color:#b91c1c}.cl-history-item div{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.cl-export-format{min-height:44px;max-width:172px;border:1px solid #d8e0ea;border-radius:8px;background:#fff;color:#334155;padding:8px 9px;font:inherit;font-size:12px}.cl-history-empty{padding:60px 0;color:#94a3b8;text-align:center}.cl-sync{display:grid;grid-template-columns:minmax(0,1fr);gap:10px 14px;align-items:end;margin:14px 0;padding:14px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff}.cl-sync>div:first-child,.cl-sync label{min-width:0;display:grid;gap:4px}.cl-sync strong{color:#1e3a8a}.cl-sync span,.cl-sync small{color:#475569;font-size:12px}.cl-sync span[data-state=success],.cl-sync span[data-state=enabled]{color:#15803d}.cl-sync span[data-state=error]{color:#b91c1c}.cl-sync span[data-state=warning]{color:#b45309}.cl-sync input{width:100%;min-width:0;max-width:100%;min-height:42px;border:1px solid #bfdbfe;border-radius:8px;background:#fff;padding:8px 10px;font:inherit}.cl-sync-actions{display:flex;flex-wrap:wrap;gap:6px}.cl-sync small{grid-column:auto;overflow-wrap:anywhere}.cl-sync-conflicts{display:grid;gap:10px;margin-bottom:14px;padding:14px;border:1px solid #f59e0b;border-radius:12px;background:#fffbeb}.cl-sync-conflicts>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.cl-sync-conflicts span{flex:1 1 320px;color:#78350f;white-space:pre-wrap}.cl-sync-conflicts button{min-height:38px;border:1px solid #f59e0b;border-radius:8px;background:#fff;padding:7px 10px;color:#78350f;cursor:pointer}@media (max-width: 1024px){.cl-root{padding:clamp(14px,2.2vw,24px)}.cl-grid{grid-template-columns:minmax(270px,320px) minmax(0,1fr);gap:14px}.cl-setup{padding:18px}.cl-pwa-card button{min-height:44px}}@media (max-width: 760px){.cl-root{padding:10px max(10px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.cl-grid{min-height:0;grid-template-columns:minmax(0,1fr);gap:12px}.cl-setup{padding:16px;border-radius:15px}.cl-setup input,.cl-setup select,.cl-setup textarea{font-size:16px}.cl-live{min-height:clamp(430px,62dvh,720px);border-radius:15px}.cl-diagnostics{grid-template-columns:repeat(2,minmax(0,1fr))}.cl-live-head{align-items:flex-start;padding:14px}.cl-badges{justify-content:flex-end}.cl-live-actions{flex-wrap:wrap}.cl-history-toggle{min-height:44px}.cl-quality,.cl-processing{padding-inline:14px}.cl-processing{align-items:flex-start}.cl-processing button{white-space:nowrap}.cl-two{grid-template-columns:minmax(0,1fr);gap:0}.cl-transcript{padding:16px}.cl-segment-target{font-size:19px}.cl-history{position:fixed;inset:0;z-index:1200;width:100%;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.cl-sync{grid-template-columns:minmax(0,1fr);align-items:stretch}.cl-sync small{grid-column:auto}}@media (max-width: 420px){.cl-pwa-card{align-items:stretch;flex-direction:column}.cl-sync-actions,.cl-sync-actions button{width:100%}.cl-pwa-card button{width:100%;min-height:44px}.cl-live-head{flex-direction:column}.cl-live-actions{width:100%}.cl-badges{flex:1 1 auto;justify-content:flex-start}}@media (max-width: 760px) and (max-height: 520px) and (orientation: landscape){.cl-live{min-height:340px}}@media (prefers-reduced-motion: reduce){.cl-meter i,.cl-transcript{scroll-behavior:auto;transition:none}}@media (prefers-color-scheme: dark){.cl-root{background:#0f172a;color:#e5e7eb}.cl-setup,.cl-live,.cl-history{border-color:#334155;background:#111827}.cl-setup input,.cl-setup select,.cl-setup textarea,.cl-pause,.cl-history-toggle,.cl-history button,.cl-export-format{border-color:#475569;background:#172033;color:#e5e7eb}.cl-live-head,.cl-diagnostics,.cl-segment,.cl-history header{border-color:#334155}.cl-diagnostics,.cl-diagnostics div,.cl-quality,.cl-badges span{background:#172033}.cl-segment-target,.cl-empty strong{color:#f8fafc}.cl-pwa-card{border-color:#285e58;background:#102927}.cl-sync{border-color:#1e3a5f;background:#10243d}.cl-sync strong{color:#bfdbfe}.cl-sync input,.cl-sync-conflicts button{border-color:#475569;background:#172033;color:#e5e7eb}.cl-sync-conflicts{border-color:#92400e;background:#2b1d0e}.cl-sync-conflicts span{color:#fde68a}.cl-pwa-card strong{color:#99f6e4}.cl-pwa-card span{color:#94a3b8}}@media (min-width: 761px){.cl-root{box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;padding:clamp(12px,1.6vw,24px)}.cl-notice{flex:0 0 auto;width:100%}.cl-grid{flex:1 1 auto;width:100%;max-width:1600px;height:auto;min-height:0;gap:clamp(14px,1.5vw,24px);grid-template-columns:minmax(320px,.72fr) minmax(0,1.6fr)}.cl-setup{min-height:0;overflow-x:hidden;overflow-y:auto;align-self:stretch;scrollbar-gutter:stable}.cl-live{min-height:0}}@media (min-width: 1100px){.cl-grid{grid-template-columns:minmax(460px,520px) minmax(0,1fr)}.cl-setup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"title title" "pwa pwa" "course semester" "subjects subjects" "source target" "source-tip source-tip" "glossary glossary" "privacy privacy" "permission permission" "actions actions" "tip tip";column-gap:12px;align-content:start;padding:16px 18px}.cl-setup h2{grid-area:title;margin-bottom:10px;font-size:20px}.cl-pwa-card{grid-area:pwa;margin-bottom:12px;padding:9px 10px}.cl-setup>label:nth-of-type(1){grid-area:course}.cl-setup>label:nth-of-type(2){grid-area:semester}.cl-setup>.cl-two{grid-area:subjects}.cl-setup>label:nth-of-type(3){grid-area:source}.cl-setup>.cl-source-tip{grid-area:source-tip}.cl-setup>label:nth-of-type(4){grid-area:target}.cl-setup>label:nth-of-type(5){grid-area:glossary}.cl-setup>.cl-privacy{grid-area:privacy}.cl-setup>.cl-permission{grid-area:permission}.cl-setup>.cl-session-actions{grid-area:actions}.cl-setup>.cl-mobile-tip{grid-area:tip}.cl-setup label{gap:4px;margin-bottom:9px}.cl-setup input,.cl-setup select{min-height:40px;padding-block:8px}.cl-setup textarea{min-height:62px;padding-block:8px}.cl-source-tip{margin:-5px 0 8px;font-size:12px}.cl-privacy{grid-template-columns:minmax(0,1.35fr) minmax(160px,.65fr);gap:6px 12px;margin-bottom:9px;padding:9px 10px}.cl-privacy small{grid-column:1 / -1}.cl-privacy label{margin:0}.cl-permission{margin:0 0 9px}.cl-primary,.cl-pause{min-height:44px;padding-block:10px}.cl-mobile-tip{margin-top:8px}}@media (min-width: 1500px){.cl-grid{grid-template-columns:minmax(500px,560px) minmax(0,1fr)}}
