:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#183d34;background:#f6f7f3;font-synthesis:none;--green:#184035;--muted:#728078;--line:#dce3dc}*{box-sizing:border-box}body{margin:0}button,a,input{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b5c987;outline-offset:4px}button:disabled{cursor:not-allowed;opacity:.48}header{height:90px;max-width:1320px;margin:auto;display:flex;align-items:center;gap:26px;padding:0 42px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:650;letter-spacing:-1px}.brand img{width:43px;height:43px;object-fit:contain}.edition{font-size:12px;color:var(--muted);border-left:1px solid var(--line);padding-left:24px}header>button{margin-left:auto}.quiet{background:transparent;color:var(--green);padding:12px 16px}.primary,.secondary{border-radius:10px;padding:15px 24px;font-weight:600;display:inline-block}.primary{background:var(--green);color:white}.secondary{background:white;border:1px solid var(--line);color:var(--green)}main{max-width:1240px;min-height:calc(100vh - 170px);margin:auto;padding:48px 42px}footer{display:flex;justify-content:space-between;padding:24px 42px;max-width:1320px;margin:auto;color:var(--muted);font-size:12px}.hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:70px;min-height:620px}.eyebrow{font-size:11px;letter-spacing:3px;color:#7b8865;text-transform:uppercase;font-weight:650}.hero h1{font-size:clamp(44px,5vw,70px);line-height:1.2;letter-spacing:-3px;margin:24px 0}.hero p,.sub{color:var(--muted);line-height:1.9;max-width:460px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.fine{font-size:12px;color:var(--muted);line-height:1.7}.art{background:#e8eddf;border-radius:180px 180px 24px 24px;min-height:480px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.art img{width:230px;height:230px;object-fit:contain}.art .caption{position:absolute;bottom:40px;letter-spacing:5px;font-size:11px}.pill{border:1px solid #c9d4c2;border-radius:40px;padding:8px 15px;font-size:12px}.title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}h1{font-size:32px;letter-spacing:-1px;margin:12px 0}h2{font-size:24px;margin:16px 0}h3{font-size:16px}p{line-height:1.8}.login-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;padding:55px 55px}.card{background:white;border:1px solid var(--line);border-radius:20px;padding:32px}.login-card{text-align:center}.qr-empty{width:180px;height:180px;background:#f2f4ef;border:1px dashed #bac8bb;border-radius:16px;margin:24px auto;display:grid;place-content:center;color:var(--muted);line-height:2;font-size:13px}.qr-empty strong{font-size:34px;color:#8da18b}.status{padding:14px 18px;background:#edf1e5;border-radius:10px;font-size:13px;color:#61704c;line-height:1.7}.links{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs button{padding:10px 18px;border-radius:30px;background:transparent;color:var(--muted)}.tabs button.active{background:var(--green);color:white}.empty{text-align:center;padding:65px 20px}.empty img{width:65px;height:65px;opacity:.45}.workspace{display:grid;grid-template-columns:320px 1fr;gap:24px}.field{margin-bottom:28px}.field>label,.field>strong{display:block;font-size:13px;margin-bottom:12px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice{padding:18px 10px;text-align:left;border:1px solid var(--line);background:white;border-radius:12px;color:var(--green)}.choice small{display:block;margin-top:7px;color:var(--muted)}.choice.selected{background:#eaf0e3;border-color:var(--green)}input[type=text]{padding:12px;width:100%;border:1px solid var(--line);border-radius:8px;font:inherit}input[type=file]{max-width:100%;font:inherit;font-size:12px}.drop{min-height:310px;border:1px dashed #b9c8b9;border-radius:16px;background:#f9faf6;display:grid;place-content:center;text-align:center;padding:24px}.drop.drag{background:#e8efdf}.drop b{font-size:28px;font-weight:400}.drop p{font-size:14px}.video-shell{background:#17251f;border-radius:12px;overflow:hidden}video{width:100%;height:320px;display:block;object-fit:contain}.trim{padding:20px 0}.trim label{display:flex;justify-content:space-between;font-size:13px;margin-bottom:8px}.trim input{width:100%;accent-color:var(--green);margin-bottom:16px}.meta{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);gap:12px;overflow-wrap:anywhere}.local-note{border-left:2px solid #acbd8d;padding-left:16px;font-size:13px;color:var(--muted);margin-top:28px}.hidden{display:none!important}dialog{max-width:480px;border:1px solid var(--line);border-radius:20px;padding:30px;color:var(--green)}dialog::backdrop{background:#102a2260}#notice:not(:empty){position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90%;background:var(--green);color:white;padding:16px 24px;border-radius:12px;z-index:5}.mobile-only{display:none}@media(max-width:760px){header{height:76px;padding:0 20px;gap:12px}.brand{font-size:21px}.brand img{width:34px;height:34px}.edition{display:none}main{padding:30px 20px}.hero{grid-template-columns:1fr;gap:38px;min-height:0}.hero h1{font-size:47px}.art{min-height:280px;border-radius:140px 140px 20px 20px}.art img{width:155px;height:155px}.art .caption{bottom:25px}.login-grid{grid-template-columns:1fr;padding:0;gap:25px}.workspace{grid-template-columns:1fr}.card{padding:24px}.title-row{gap:10px;align-items:start}h1{font-size:27px}footer{padding:24px 20px;gap:15px}.desktop-only{display:none}.mobile-only{display:block}.drop{min-height:230px}video{height:280px}}

[hidden]{display:none!important}#login-qr{display:block;max-width:100%;height:auto;margin:18px auto}#pair-code,#verify-code{font-size:20px;letter-spacing:2px}


.practice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px;margin:20px 0}.practice-card h2{font-size:21px}.list-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center}.report-grid{display:grid;grid-template-columns:3fr 2fr;gap:22px;margin:24px 0}.report-grid video{height:420px}.report-grid svg{width:100%;height:auto}.findings{margin-top:24px}select{font:inherit;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--green)}.processing-check{display:block;font-size:13px;line-height:1.8;margin:20px 0}#upload-status:empty{display:none}#cancel-upload{margin-bottom:12px}@media(max-width:760px){.report-grid{grid-template-columns:1fr}.report-grid video{height:280px}.list-toolbar{align-items:start}}

/* Intrinsic sizing must not push a sibling card over another panel. */
.workspace{grid-template-columns:320px minmax(0,1fr)}
.workspace>*,.report-grid>*,.login-grid>*,.title-row>*,.practice-card{min-width:0}
.title-row,.list-toolbar{flex-wrap:wrap}.title-row h1,.practice-card h2,.meta,#playback-status{overflow-wrap:anywhere}
.practice-grid{grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr))}
.report-grid{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;margin:16px 0}
.report-grid .card{padding:20px}.report-grid h2{font-size:18px;margin:0 0 12px}
.report-grid video,.skeleton-stage{height:clamp(220px,38vh,420px)}
.skeleton-stage{display:grid;place-items:center;background:#f6f8f4;border-radius:12px}
.skeleton-stage svg{width:100%;height:100%;min-height:0}.skeleton-stage line{vector-effect:non-scaling-stroke}
.skeleton-empty{padding:20px;text-align:center;color:var(--muted);font-size:13px}
.report-grid .actions{margin-top:12px;align-items:center}.report-grid input[type=range]{width:100%;margin:14px 0;accent-color:var(--green)}
.findings{padding:20px;margin-top:16px}.findings h2{font-size:18px;margin:0 0 12px}
.findings h3{margin:12px 0 4px}.findings p{margin:4px 0}
.tabs{margin-bottom:16px}dialog{max-width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto}
#notice:not(:empty){pointer-events:none;max-height:30dvh;overflow:auto}
@media(max-width:760px){.workspace,.report-grid{grid-template-columns:minmax(0,1fr)}.report-grid video,.skeleton-stage{height:280px}.login-grid{min-width:0}header{flex-wrap:wrap;height:auto;min-height:76px}footer{flex-wrap:wrap}}

.finding-items{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:16px}
.finding-items article{min-width:0;overflow-wrap:anywhere}.finding-items article+article{border-left:1px solid var(--line);padding-left:16px}
.report-page{padding-top:20px;padding-bottom:20px}.report-page .title-row{margin-bottom:12px}.report-page h1{font-size:26px}
.report-page .report-grid .secondary{padding:8px 14px}.report-page .report-grid .fine{margin:6px 0}
.report-page .report-grid video,.report-page .skeleton-stage{height:clamp(180px,26vh,320px)}
@media(max-width:760px){.finding-items{grid-template-columns:1fr}.finding-items article+article{border-left:0;border-top:1px solid var(--line);padding:12px 0 0}.report-page .report-grid video,.report-page .skeleton-stage{height:280px}}

.report-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.report-toolbar .tabs{margin:0}
.report-page > .title-row .quiet{padding:0;font-size:13px}.report-page .title-row h1{margin:8px 0}
.report-page .report-grid video,.report-page .skeleton-stage{height:clamp(160px,24vh,300px)}
@media(max-width:760px){.report-page .report-grid video,.report-page .skeleton-stage{height:280px}}

.report-controls{gap:6px}.report-controls output{font-size:12px;white-space:nowrap}.report-page .report-controls .secondary{padding:8px}
.report-grid .card{position:relative}.report-grid [data-fullscreen]{padding:6px;font-size:12px}
.report-grid .card:has(#report-skeleton)>[data-fullscreen]{position:absolute;right:14px;top:14px}
.report-grid .card:fullscreen{border-radius:0;overflow:auto;padding:32px;background:#f6f7f3}.report-grid .card:fullscreen video,.report-grid .card:fullscreen .skeleton-stage{height:70dvh}
@media(min-width:1000px) and (max-height:800px){.report-page{padding-top:12px}.report-page .title-row h1{font-size:22px}.report-page .report-grid{margin:10px 0}.report-page .report-grid .card{padding:14px}.report-page .report-grid video,.report-page .skeleton-stage{height:160px}.report-page .findings{padding:14px;margin-top:10px}.report-page .findings h2{margin-bottom:4px}.report-page .finding-items h3{margin-top:4px}}

.account-hub{max-width:760px;margin:auto}.profile-heading{display:flex;align-items:center;gap:20px}.profile-avatar{width:64px;height:64px;border-radius:50%;background:#e3ebd9;display:grid;place-items:center;font-size:28px}.account-rows{padding:8px 24px}.account-row{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.account-row:last-child{border-bottom:0}.account-form{max-width:900px;margin:20px auto}.account-form label{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;font-size:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.account-form input,.account-form textarea{width:100%;min-width:0;border:1px solid var(--line);padding:12px;border-radius:8px;font:inherit;color:var(--green);background:white}.account-form textarea{resize:vertical}.policy-copy{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}
@media(max-width:600px){.form-grid{grid-template-columns:1fr}}

.timeline-strip{display:block;width:100%;height:52px;cursor:pointer;border-radius:8px}.timeline-state{font-size:11px!important}.timeline-retry{font-size:11px;padding:3px}.skeleton-stage{background-color:#f6f8f4;background-image:linear-gradient(#dce4db55 1px,transparent 1px),linear-gradient(90deg,#dce4db55 1px,transparent 1px);background-size:24px 24px}
#science-feedback-dialog{width:min(620px,calc(100vw - 32px));max-width:620px}#science-feedback-dialog .card{border:0;margin:0;padding:8px}

.draft-clip{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:20px 0;border-bottom:1px solid var(--line)}.draft-clip label{font-size:13px}.draft-clip input[type=number]{display:block;max-width:130px;padding:10px;border:1px solid var(--line);border-radius:8px}.segment-queue{margin-top:20px;border-top:1px solid var(--line)}#save-draft{margin-bottom:12px}

.full-tools{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.metric-track{margin:14px 0}.metric-track svg{width:100%;height:auto}.metric-track svg text{font-size:11px;fill:var(--muted)}.metric-track .actions{margin:0;gap:4px}.metric-track .quiet{padding:6px 10px;min-height:32px;min-width:32px;font-size:12px}.metric-track:fullscreen{background:white;overflow:auto;padding:32px;border-radius:0}.metric-track:fullscreen svg{max-height:70vh}.metric-option{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.metric-option label{display:flex;align-items:center;gap:8px}.metric-option small{color:var(--muted)}#metric-dialog,#reference-dialog{width:min(660px,calc(100vw - 32px));max-width:660px}#metric-options{min-height:100px}#metric-search{width:100%;padding:12px;margin-bottom:12px;border:1px solid var(--line);border-radius:8px}

@media(min-width:1000px){.report-page .report-grid video,.report-page .skeleton-stage{height:clamp(120px,calc(24vh - 52px),248px)}}
@media(min-width:1000px) and (max-height:800px){.report-page .title-row{margin-bottom:6px}.report-page .report-grid{margin:6px 0}.report-page .findings{margin-top:6px;padding:12px}.report-page .report-grid .card{padding:12px}.report-page .report-grid input[type=range]{margin:8px 0}}

.practice-cover{aspect-ratio:7/8;max-height:240px;display:grid;place-items:center;background:#f5f7f1;border-radius:12px;margin-bottom:16px;overflow:hidden;color:var(--muted);font-size:12px}.practice-cover img{width:100%;height:100%;object-fit:contain;min-height:0}.practice-cover span{padding:12px;text-align:center}

.curve-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.curve-tools label{font-size:13px}.curve-tools input[type=range]{width:140px;vertical-align:middle}.draft-append{margin:20px 0;border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-wrap:wrap;gap:12px}.draft-append .fine{flex-basis:100%}.draft-append input{max-width:100%}#metric-options details{padding:8px 0 8px 12px}#metric-options summary{cursor:pointer;font-weight:600}#label-directory{display:block;width:100%;padding:10px;margin-bottom:8px}

.report-status-line .quiet{padding:0 8px;font-size:inherit}.metric-track .title-row{flex-wrap:wrap}.metric-track .actions{flex-wrap:wrap}#profile-conflicts fieldset{border:1px solid var(--line);border-radius:10px;margin:16px 0;padding:12px}#profile-conflicts label{display:block;margin:8px 0}#profile-conflicts input{width:auto;margin-right:8px}
@media(pointer:coarse){.metric-track .quiet{min-height:44px;min-width:44px}}
