:root{color-scheme:light;--paper:#f4f5f1;--card:#fff;--ink:#1e302a;--muted:#586961;--line:#d9dfd8;--teal:#326c60;--blue:#376f85;--red:#a9442d;--mono:Consolas,"Cascadia Mono",monospace}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--paper);font-family:"DM Sans","Segoe UI","Microsoft YaHei",sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button,a,select,input{touch-action:manipulation}
button{color:inherit;cursor:pointer}
button{border:0;background:none;padding:0}
:focus-visible{outline:3px solid #1688ad;outline-offset:3px}
[hidden]{display:none!important}
.wrap{width:min(1480px,calc(100% - clamp(32px,6vw,108px)));margin:auto}
.topbar{border-bottom:1px solid var(--line);background:#fafbf8}
.top-inner{min-height:54px;display:flex;align-items:center;gap:17px}
.brand{display:flex;align-items:center;gap:9px;color:#183d33;font-size:23px;font-weight:720;letter-spacing:-1.35px;line-height:1}
.brand-mark{width:25px;height:25px;display:inline-block;position:relative}
.brand-mark i,.brand-mark b{position:absolute;display:block;width:15px;height:20px;transform:skew(-12deg);border:2px solid #235746;border-radius:5px;top:3px;left:1px}
.brand-mark b{top:1px;left:9px;background:#235746}
.top-rule{height:15px;width:1px;background:#cad3c9}.top-section{color:var(--muted);font-size:13px}
.download{margin-left:auto;display:flex;gap:6px;align-items:center;text-decoration:none;border:1px solid #cbd4ca;border-radius:7px;padding:7px 12px;background:#fff;color:#304b40;font-size:12px;font-weight:600}
.download:hover,.iconbtn:hover,.follow:hover,.frame-seek:hover{filter:brightness(.94)}
.study-nav{margin-left:auto;color:var(--teal);font-size:12px;white-space:nowrap;text-decoration:none}.study-nav:hover{text-decoration:underline}.study-nav+.download{margin-left:0}
[data-icon],.svg-icon{display:inline-flex;align-items:center;justify-content:center;flex:none}
.svg-icon{width:17px;height:17px;vertical-align:middle}
.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 0 20px}
h1,h2,p{margin:0}h1{font-family:"Instrument Sans","Segoe UI","Microsoft YaHei",sans-serif;font-weight:700;font-size:clamp(28px,3vw,40px);line-height:1.2;letter-spacing:-1.8px}
.metadata{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:9px;color:var(--muted);font-size:12px}.metadata span{display:flex;align-items:center;gap:6px}.metadata .svg-icon{width:14px;height:14px}.metadata b{font-weight:400;color:#96a49a}
.stats{display:flex;align-items:center}.stats div{display:grid;gap:4px;min-width:83px;padding:0 clamp(12px,1.55vw,26px);border-left:1px solid #d1d9d0}.stats div:last-child{padding-right:0}.stats strong{font-family:var(--mono);color:#285047;font-size:clamp(19px,2vw,28px);line-height:1;letter-spacing:-1.2px;font-weight:600}.stats span{font-size:11px;color:var(--muted)}
.workspace{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:18px;align-items:stretch}
.card{overflow:hidden;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 5px #263d2d08}
.card-head{height:49px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;gap:12px}
h2{font-size:16px;font-weight:680;display:flex;align-items:center;gap:9px;letter-spacing:-.3px}.card-head h2 .svg-icon{color:#466258}
.play-state{font-size:11px;display:flex;align-items:center;gap:6px;color:#5b6c60}.play-state:before{content:"";width:6px;height:6px;border-radius:100%;background:#99a49c}.play-state.is-playing:before{background:#35826a}
.stage{isolation:isolate;position:relative;display:grid;place-items:center;overflow:hidden;height:clamp(300px,44vh,530px);background-color:#19231f;background-image:radial-gradient(#4c585040 0.8px,transparent .9px);background-size:8px 8px}
.stage video{display:block;width:100%;height:100%;object-fit:contain;min-width:0;min-height:0;cursor:pointer}
.center-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border:1px solid #fff9;background:#162721b8;color:#fff;border-radius:50%;display:grid;place-items:center;box-shadow:0 4px 18px #0003}.center-play .svg-icon{width:24px;height:24px;margin-left:3px}
.media-error{position:absolute;text-align:center;bottom:12px;margin:0 8px;padding:8px 12px;background:#fff;color:#742f24;border-radius:7px}
.playbar{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 15px;background:#f9faf7}.iconbtn{width:31px;height:31px;display:inline-grid;place-items:center;border-radius:7px;color:#3d534a}.iconbtn:hover{background:#e8ede7}.iconbtn.primary{background:#245746;color:#fff}.iconbtn.primary .svg-icon{width:14px;height:14px}
.clock{font:12px var(--mono);white-space:nowrap;color:#56675d;font-variant-numeric:tabular-nums}.clock b{font-weight:700;color:#1b3329}.clock span{color:#89978d}
.scrub{min-width:32px;flex:1;height:18px;margin:0;cursor:pointer;accent-color:#32745a}
.speed{position:relative;color:#374f45}.speed select{width:51px;height:30px;font:600 12px var(--mono);border:0;background:transparent;cursor:pointer;color:inherit;padding:0 1px}
.player:fullscreen{height:100%;width:100%;display:flex;flex-direction:column;background:#111b17}.player:fullscreen .stage{height:auto;min-height:0;flex:1}.player:fullscreen .playbar{min-height:58px}
.log{min-width:0;display:flex;flex-direction:column;height:calc(clamp(300px,44vh,530px) + 103px)}
.follow{display:flex;align-items:center;gap:6px;font-size:11px;border:1px solid #c9d3cc;border-radius:6px;padding:4px 8px;color:#59695e;white-space:nowrap}.follow[aria-pressed=true]{background:#eaf2eb;border-color:#c4d8c9;color:#2f5c43}.follow .svg-icon{width:13px;height:13px}
.tabs{display:flex;align-items:stretch;gap:18px;padding:0 18px;height:38px;border-bottom:1px solid var(--line);flex:none}
.tabs button{position:relative;font-weight:550;color:#53675c;font-size:13px}.tabs button span{font:11px var(--mono);margin-left:1px;color:#6b7d70}.tabs button[aria-selected=true]{color:#244e3e;font-weight:750}.tabs button[aria-selected=true]:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:#356f56;border-radius:2px 2px 0 0}
#records{overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdc8bd transparent;flex:1;scroll-padding:6px}
.record{padding:13px 16px 13px 18px;border-bottom:1px solid #e2e7e1;border-left:3px solid transparent}.record:last-child{border-bottom:0}.record.current{border-left-color:var(--teal);background:#f3f7f2}.record.speaking{border-left-color:#bd5639;background:#fff7f2}
.row-meta{display:flex;align-items:center;gap:8px}.role{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:680}.role .svg-icon{height:13px;width:13px}.user-role{color:var(--blue)}.satori-role{color:var(--red)}.system-role{color:#58675d}.row-meta .status{margin-left:auto;font-size:10px;border-radius:4px;color:#646b61;background:#eff1ec;padding:2px 5px}.record.speaking .status:not(:empty){background:#f4ddd0;color:#91402a}
.stamp{font:11px var(--mono);color:#68776c;border-radius:3px;letter-spacing:.2px}.stamp:hover{color:var(--teal);text-decoration:underline}
.utterance,.reply,.speech-text{display:block;width:100%;text-align:left;line-height:1.65;overflow-wrap:anywhere}.utterance{margin:4px 0 0;font-size:15px;font-weight:650;color:#233c36}.utterance:hover,.reply:hover,.speech-text:hover{color:#195d55}
.reply-block{margin-top:9px;padding-left:10px;border-left:2px solid #e7d6c9}.reply,.speech-text{margin-top:4px;font-size:13px;color:#3a4940}.record .hint{margin-top:5px;font-size:11px;color:#68736a}
.speech-times{margin-left:auto;font:11px var(--mono);color:#6f786c}
.frame-link{margin-left:auto;border-radius:4px;width:24px;height:20px;display:grid;place-items:center;color:#61756a}.frame-link:hover{background:#e8eee7}.frame-link .svg-icon{height:14px;width:14px}
#timeline{padding:0 18px 10px}
.frames{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}.shot{min-width:0;display:grid;gap:5px;text-align:left}.shot img{display:block;width:100%;aspect-ratio:0.88;object-fit:cover;background:#dee4dc;border-radius:6px}.shot.current img{outline:3px solid var(--teal);outline-offset:1px}.shot span{font:12px var(--mono);color:#42574a}.shot:active{transform:translateY(1px)}
.time-card{margin-top:16px}.time-card .card-head{height:46px}.timeline-help,.footnote{font-size:11px;color:#647369}.footnote{margin:11px 0 21px;display:flex;align-items:center;gap:6px;line-height:1.6}.footnote .svg-icon{width:13px;height:13px}
dialog{border:1px solid #b6c6b9;padding:14px;max-width:min(440px,90vw);max-height:92vh;border-radius:12px;background:white;color:var(--ink);box-shadow:0 12px 55px #132b2455}dialog::backdrop{background:#15251ed1}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.dialog-head h2 span{font:13px var(--mono);color:#526659}#frameImage{object-fit:contain;width:100%;max-height:65vh;display:block;background:#23342d;border-radius:5px}.frame-seek{margin-top:13px;width:100%;border-radius:7px;padding:9px;background:#245746;color:white;display:flex;align-items:center;justify-content:center;gap:6px}
@media(min-width:1550px){.log{font-size:15px}.reply,.speech-text{font-size:14px}.wrap{width:min(1530px,92%)}}
@media(max-width:820px){.wrap{width:calc(100% - 28px)}.workspace{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:10px}.playbar{gap:5px;padding:0 8px}.card-head,.tabs{padding-left:13px;padding-right:13px}.record{padding-left:12px;padding-right:12px}.stats div{min-width:60px}.stage{height:330px}.log{height:433px}}
@media(max-width:650px){.top-inner{min-height:46px}.heading{align-items:flex-start;padding:20px 0 14px}.stats{display:none}.workspace{display:flex;flex-direction:column;gap:12px}.stage{height:clamp(240px,68vw,345px)}.card{border-radius:10px}.card-head{height:41px}.playbar{min-height:44px;gap:6px}.clock{font-size:11px}.speed select{width:47px}.log{height:clamp(290px,46vh,410px)}.time-card{margin-top:12px}.metadata{font-size:11px}.top-inner{gap:12px}.brand{font-size:21px}.download{padding:5px 8px}.tabs{height:35px}.footnote{align-items:flex-start}.footnote .svg-icon{margin-top:2px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.resources{margin-bottom:28px;scroll-margin-top:12px}
.resource-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:8px;padding:0 18px 16px}
.resource-list a{position:relative;display:grid;align-content:start;gap:5px;padding:12px 26px 12px 12px;border:1px solid var(--line);border-radius:8px;background:#fafbf8;color:var(--ink);text-decoration:none;line-height:1.45}
.resource-list a::after{content:"↓";position:absolute;right:10px;top:11px;color:var(--teal)}
.resource-list a:hover{background:#eef4ed;border-color:#b4c8b8}
.resource-list small,.resource-source{font-size:12px;color:var(--muted)}
.resource-source{padding:14px 18px 17px;border-top:1px solid var(--line);line-height:1.65}
.resource-source h3{font-size:14px;color:var(--ink);margin:0 0 7px}
.resource-source dl{display:grid;grid-template-columns:max-content minmax(0,1fr);margin:0;gap:4px 13px}
.resource-source dt{font-weight:650;color:var(--ink)}.resource-source dd{margin:0;overflow-wrap:anywhere}
.resource-source a{color:#295f50;text-underline-offset:2px}.resource-source code{font-family:var(--mono);font-size:12px}
