/* Shared studio layout. Platform variables also work on mixed-library cards. */
:root,[data-platform="neutral"]{--page:#f7f8f6;--surface:#fff;--subtle:#f0f2ee;--hover:#ecefe9;--ink:#242b28;--muted:#738071;--quiet:#869181;--line:#e0e5dc;--accent:#455846;--accent-strong:#293e2d;--tint:#eaf0e5;--primary:#283c2f;--on-primary:#fff;--focus:#829c75;--secondary:#ac7853;--success:#3d8968;--danger:#bc4349;--danger-tint:#fff1f0;--track-surface:#fff;--brand:var(--accent);--stroke:var(--line);color-scheme:light}
[data-platform="wechat"]{--page:#faf8f4;--surface:#fff;--subtle:#f8f4ee;--hover:#fff1de;--ink:#302a24;--muted:#7b7163;--quiet:#948778;--line:#eae3d8;--accent:#ad5b05;--accent-strong:#8b4500;--tint:#fff0d7;--primary:#f4a324;--on-primary:#30200a;--focus:#df9b2c;--secondary:#368a7a;--success:#338362;--danger:#b93f42;--danger-tint:#fff0ef;--track-surface:#fff;--brand:var(--accent);--stroke:var(--line);color-scheme:light}
[data-platform="douyin"]{--page:#101114;--surface:#1b1c21;--subtle:#23242b;--hover:#2e2932;--ink:#f2f2f5;--muted:#b1b0bc;--quiet:#94939f;--line:#35343e;--accent:#ff6688;--accent-strong:#ff99ae;--tint:#39252f;--primary:#fe2c55;--on-primary:#fff;--focus:#25f4ee;--secondary:#25c9c9;--success:#62cbb1;--danger:#ff9098;--danger-tint:#39262c;--track-surface:#202127;--brand:var(--accent);--stroke:var(--line);color-scheme:dark}
:root{background:var(--page)}html{min-height:100%;background:var(--page);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink)}body{background:var(--page);color:var(--ink)}.shell{max-width:1480px;padding:0 48px}.topbar{height:104px;border-bottom:1px solid var(--line);gap:24px}.topbar .brand{font-size:17px;font-weight:650;letter-spacing:.6px;color:var(--ink)}.brand-mark{display:flex;align-items:center;justify-content:center;gap:4px;width:40px;height:40px;background:var(--ink);border-radius:12px;flex-shrink:0}.brand-mark i{display:block;width:4px;height:12px;border-radius:4px;background:var(--page)}.brand-mark i:nth-child(2){height:24px}.brand-mark i:nth-child(3){height:18px}.brand-caption{display:block;font-size:8px;letter-spacing:2.3px;font-weight:500;color:var(--quiet);margin-top:3px}.topbar nav{padding:4px;border:1px solid var(--line);border-radius:30px;background:var(--subtle);gap:2px}.topbar nav a{padding:9px 19px;font-size:12px;font-weight:500;border-radius:24px;color:var(--muted);transition:background .2s,color .2s}.topbar nav a.active{background:var(--surface);color:var(--accent);box-shadow:0 2px 6px #00000006}.topbar nav a:hover{color:var(--ink);background:var(--surface)}html[data-platform="douyin"] .brand-mark{background:#060608;box-shadow:-2px 0 #25f4ee,2px 0 #fe2c55}html[data-platform="douyin"] .brand-mark i{background:#fff}html[data-platform="wechat"] .brand-mark{background:#f4a324}html[data-platform="wechat"] .brand-mark i{background:#fff}.page-title{padding:43px 0 27px;animation:studio-enter .5s ease-out both}.page-title h1{font-size:32px;font-weight:560;letter-spacing:-.8px;line-height:1.4;color:var(--ink)}.page-title>p:last-child{color:var(--muted);font-size:13px;letter-spacing:.2px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:550;color:var(--quiet);margin-bottom:12px}.surface{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:none;padding:28px;margin-top:22px;color:var(--ink)}.section-head h2{font-size:18px;font-weight:550;color:var(--ink)}.toolbar{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:14px 18px;gap:12px}.toolbar a,.panel-head a,.player-surface a,.share-open,.back-link,.agreement a,.method summary,.retention-method summary{color:var(--accent)}.toolbar label,.panel-head label{color:var(--muted);font-size:12px}.pill{background:var(--tint);color:var(--accent);font-size:12px;font-weight:500}#connection.offline{background:var(--subtle);color:var(--muted)}.muted,.message,.collection-status,.replay-state,.seek-note,.empty,.method,.retention-method,.chart-readout,.review-selection,.timeline-note,.timeline-empty{color:var(--muted)}.message.error,.error,.phone-error,.review-feedback.error,.transfer-error,.progress-error,#delete-status{color:var(--danger)}.page-title .back-link{font-size:12px;margin-bottom:20px}.identifier,.room-time,.panel-head [id$="-page"]{color:var(--quiet)}.session-metrics span{color:var(--muted)}.session-metrics b,.session h3,.room-title{color:var(--ink);font-weight:550}.session{border-color:var(--line)}.session h3{font-size:17px}.tag{background:var(--tint);color:var(--accent);font-size:11px;font-weight:500}.section-head,.review-actions{gap:12px}.surface .section-head>a{font-size:12px}
button,.toolbar button,.section-head button,.panel-head button,.session button,.batch-toolbar button,.login-methods button,.phone-controls button,.replay-retry,.tabs button,.timeline-toolbar button,.timeline-navigation button,.timeline-event-nav button{font:inherit;font-size:12px;font-weight:500;padding:9px 13px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted);box-shadow:none;transition:background .2s,border-color .2s,color .2s,transform .2s}button:hover:not(:disabled),.toolbar button:hover,.panel-head button:hover,.session button:hover,.login-methods button:hover,.timeline-toolbar button:hover,.timeline-navigation button:hover,.timeline-event-nav button:hover{background:var(--hover);border-color:var(--focus);color:var(--accent)}button:disabled{opacity:.45;cursor:not-allowed}.row-action,.session .row-action,.row-actions .row-action{border:1px solid var(--line);background:var(--tint);color:var(--accent);font-size:12px;border-radius:8px;font-weight:500;min-height:36px;padding:9px 13px}.row-action:hover:not(:disabled),.session .row-action:hover{background:var(--hover);border-color:var(--focus);color:var(--accent-strong)}.row-action.secondary,.session .row-action.secondary{background:var(--surface);color:var(--muted);border-color:var(--line)}button.btn-primary,#batch-analyze,.login-methods .primary,#phone-submit,.phone-submit,#collect-replay,#analyze-batch,#analyze-current,#save-human,#create-share{background:var(--primary);color:var(--on-primary);border-color:var(--primary);box-shadow:none}button.btn-primary:hover:not(:disabled),#batch-analyze:hover:not(:disabled),.login-methods .primary:hover:not(:disabled),#phone-submit:hover:not(:disabled),#collect-replay:hover:not(:disabled),#analyze-batch:hover:not(:disabled),#analyze-current:hover:not(:disabled),#save-human:hover:not(:disabled),#create-share:hover:not(:disabled){background:var(--primary);color:var(--on-primary);filter:brightness(1.08)}button.is-working:disabled,.row-action.is-submitting:disabled{opacity:1;background:var(--tint);border-color:var(--focus);color:var(--accent)}.save-spinner,.action-spinner{border-color:currentColor;border-right-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.timeline-card:focus-visible{outline:2px solid var(--focus);outline-offset:4px}input,select,textarea,.review-form textarea,.review-form select,.share-dialog input,.share-dialog select,.timeline-toolbar input,.timeline-toolbar select,.phone-form input[type=tel],.phone-form input[inputmode=numeric]{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;font:inherit;font-size:13px}input::placeholder,textarea::placeholder{color:var(--quiet)}input[type=checkbox],.segment-choice>input,#share-progress{accent-color:var(--primary)}.batch-toolbar,.tabs,.share-dialog .share-selection-summary,#share-output,.human-note,.login-panel,.replay-progress-detail,.evidence-metrics>div,.report-verdict,.metric{background:var(--subtle);border-color:var(--line);color:var(--muted)}.batch-toolbar #selected-count,.timeline-toolbar label,.timeline-navigation,.timeline-event-nav,.review-form label,.share-dialog label,.phone-form label,.phone-row .country,.phone-form .agreement{color:var(--muted)}.tabs button.active,.analysis-tabs button[aria-selected="true"]{background:var(--surface);color:var(--accent);border-color:var(--focus);box-shadow:none}.analysis-tabs{border-color:var(--line)}.analysis-tabs button{color:var(--muted)}.login-methods button.active{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}.phone-row button{background:var(--tint);color:var(--accent);border-color:var(--line)}.account-choice{background:var(--subtle);border-color:var(--line);color:var(--ink)}.loading-spinner{border-color:var(--line);border-top-color:var(--accent)}
.table-wrap{border:1px solid var(--line);border-radius:12px;margin-top:22px}table{color:var(--ink);font-size:13px}th{background:var(--subtle);color:var(--muted);font-weight:500;font-size:11px;padding:14px 16px;border-color:var(--line)}td{padding:19px 16px;border-color:var(--line)}tbody tr:hover{background:var(--subtle)}.anchor-avatar,.anchor-monogram,.avatar{background:var(--subtle);border-color:var(--line);color:var(--muted)}.anchor-avatar svg{stroke:var(--quiet)}.anchor-identity{font-weight:500;color:var(--ink)}.transfer-state,.transfer-label>span:first-child{color:var(--muted)}.transfer-label{color:var(--quiet)}.transfer-track{background:var(--line)}.transfer-track i{background:var(--accent)}.upload .transfer-track i{background:var(--secondary)}.status-dot{background:var(--accent)}.is-complete .status-dot{background:var(--success)}.is-complete .transfer-state{color:var(--success)}.is-failed .status-dot{background:var(--danger)}.is-failed .transfer-state{color:var(--danger)}.collection-status:not(:empty){background:var(--tint);border-color:var(--line);color:var(--accent)}.stat,.compare-grid article{background:var(--surface);border-color:var(--line);box-shadow:none}.stat span,.stat small,.compare-grid span,.compare-grid small,.report-verdict p{color:var(--muted)}.stat strong,.compare-grid strong,.evidence-metrics strong{color:var(--ink)}.reminder{background:var(--tint);color:var(--accent)}.dialog{background:#05070d99;backdrop-filter:blur(7px);z-index:60}.dialog-card,.share-dialog,.delete-dialog{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:18px;box-shadow:0 24px 80px #00000035}.share-dialog::backdrop,.delete-dialog::backdrop{background:#05070d99;backdrop-filter:blur(7px)}.login-dialog-head h2,.dialog-card h2,.share-dialog h2,.delete-dialog h2{font-size:21px;font-weight:550}.dialog-card .login-dialog-head button,.dialog-card .section-head button{background:var(--subtle);border-color:var(--line);color:var(--ink)}#phone-screen{border-color:var(--line)}.challenge-actions{color:var(--muted)}.delete-actions button.delete-replay,button.delete-replay{background:var(--danger-tint);border-color:color-mix(in srgb,var(--danger) 25%,var(--surface));color:var(--danger)}button.delete-replay:hover:not(:disabled){background:var(--danger-tint);border-color:var(--danger);color:var(--danger)}
/* Library cards inherit their own platform, independent of the active filter. */
.group[data-platform]{background:var(--surface);color:var(--ink);border-color:var(--line);transition:transform .25s,border-color .25s}.group[data-platform]:hover{border-color:var(--focus)}.group .replay-heading h2{font-size:19px;font-weight:550}.group .replay-heading p{color:var(--muted)}.replay-open{background:var(--tint);color:var(--accent);border:1px solid var(--line);border-radius:12px;transition:background .2s}.replay-open:hover{background:var(--hover)}.replay-open .play-mark{background:var(--surface);color:var(--accent);border:1px solid var(--line)}.replay-open small{color:var(--muted)}.replay-open strong{color:var(--ink);font-weight:550}.replay-heading .tag{background:var(--tint);color:var(--accent)}
/* Review surfaces and semantic evidence colors remain distinct in both themes. */
#playback-preparing{background:var(--subtle)!important;color:var(--muted)}.player-surface video,.shared-segment video,.evidence-gallery img{background:#090a0d}.interval{background:var(--surface);color:var(--ink);border-color:var(--line);border-left-color:var(--success)}.interval.poor{border-left-color:var(--danger)}.interval.selected{background:var(--tint);border-color:var(--focus)}.interval small{color:var(--muted)}.job-status,.review-feedback,.review-message{color:var(--accent)}.review-form,.speech-note,.shared-segment details,.evidence-gallery article,.human-note,.evidence-metrics>div{border-color:var(--line)}.evidence-metrics small,.chart-legend,.transcript-line,.observation-list,.method,.speech-note{color:var(--muted)}.transcript-line button,.frame-time{color:var(--accent)}.shared-segment summary{font-size:16px;font-weight:550;color:var(--ink)}.analysis-chart .grid-line{stroke:var(--line)}.analysis-chart text,.retention-chart svg text{fill:var(--muted)}.analysis-chart .entry-line,.entry-line{stroke:var(--accent)}.analysis-chart .second-line,.secondary-line{stroke:var(--secondary)}.chart-legend b,.entry-dot{background:var(--accent)}.chart-legend b.secondary,.secondary-dot{background:var(--secondary)}.chart-time-cursor{stroke:var(--accent)}.retention-chart{background:var(--subtle);border-color:var(--line)}.retention-tag{background:var(--surface);color:var(--ink);border-color:var(--line)}.retention-tag span{color:var(--success)}.retention-tag.poor span{color:var(--danger)}.retention-tag small,.curve-legend small{color:var(--muted)}.retention-tag:hover,.retention-tag.selected,.retention-tag.playing{background:var(--tint);border-color:var(--focus);box-shadow:none}.timeline-surface .eyebrow{color:var(--quiet)}.shared-timeline,.timeline-scroll{background:var(--surface);border-color:var(--line)}.timeline-ruler,.timeline-track-name{background:var(--subtle);border-color:var(--line);color:var(--muted)}.timeline-track-name small,.timeline-ruler-scale>span,.timeline-empty{color:var(--quiet)}.timeline-track{border-color:var(--line)}.timeline-track-content{background-image:linear-gradient(to right,var(--line) 1px,transparent 1px)}.timeline-card{background:color-mix(in srgb,var(--track-color) 9%,var(--track-surface));border-color:color-mix(in srgb,var(--track-color) 35%,var(--surface));color:var(--ink)}.timeline-card small{color:var(--muted)}.timeline-card:hover,.timeline-card.selected{background:color-mix(in srgb,var(--track-color) 19%,var(--track-surface));border-color:var(--track-color);color:var(--ink);box-shadow:0 0 0 1px var(--track-color)}.timeline-detail{background:var(--subtle);border-color:var(--line);color:var(--ink)}.timeline-detail strong{color:var(--muted)}.timeline-playhead,.timeline-playhead span{background:var(--accent)}.track-asr{--track-color:#a987e8}.track-expression{--track-color:#db9656}.track-motion{--track-color:#739cd8}.track-gaze{--track-color:#55b6a0}.track-voice{--track-color:#d97da6}.integration-note{background:var(--subtle)}footer{color:var(--quiet);font-size:11px;padding:8px 0 16px}.toolbar a:hover,.all-replays:hover,.back-link:hover{color:var(--accent-strong)}
/* Home retains its approved composition, with each platform's own signature. */
.home-shell .wechat-card{background:#fffcf6;border-color:#eee1c9;color:#302a24}.home-shell .wechat-icon{background:#fff0d2;color:#e49714}.home-shell .wechat-card .card-copy p{color:#877358}.home-shell .wechat-card .card-index{color:#94794e}.home-shell .wechat-card .card-bottom{border-color:#eee4d2}.home-shell .wechat-card .card-arrow{border-color:#e8d5b5;color:#bd7919}.home-shell .wechat-card .card-action,.home-shell .wechat-card .account-state{color:#936a2e}.home-shell .wechat-card .account-state[data-state=ready] i{background:#e8a02b}.home-shell .wechat-card:after{border-color:#eecb842d}.home-shell .wechat-card:hover{border-color:#d8ad62;box-shadow:0 14px 32px #94651110}.home-shell .douyin-card{background:#17171d;border-color:#29282f;color:#f7f7fa}.home-shell .douyin-icon{background:#28272e;color:#fff}.home-shell .douyin-icon svg{filter:drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55)}.home-shell .douyin-card .card-copy p{color:#b3acb7}.home-shell .douyin-card .card-index{color:#aba0ad}.home-shell .douyin-card .card-bottom{border-color:#3a303b}.home-shell .douyin-card .card-action{color:#ff7493}.home-shell .douyin-card .account-state{color:#b6a9b9}.home-shell .douyin-card .account-state[data-state=ready] i{background:#25d5d5;box-shadow:0 0 0 3px #25d5d510}.home-shell .douyin-card .card-arrow{border-color:#51404e;color:#ff7796}.home-shell .douyin-card:after{border-color:#fe2c5518}.home-shell .douyin-card:hover{border-color:#ad395d;box-shadow:-3px 0 #25f4ee33,3px 0 #fe2c5533,0 14px 32px #16151d15}.home-shell .replay-platform{background:#fff0d7;color:#a96b10}.home-shell .replay-platform.douyin{background:#26232c;color:#ff86a5}.home-shell .replay-row{border-color:#e0e5dc}.home-shell .replay-row:hover{background:#edf0e9}
@keyframes studio-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:1000px){.shell{padding:0 28px}.topbar nav a{padding:8px 14px}.topbar .brand{font-size:15px}}@media(max-width:800px){.topbar{height:auto;min-height:100px;padding:20px 0;gap:17px;align-items:flex-start}.topbar nav{width:auto;max-width:100%;overflow:auto}.topbar nav a{font-size:11px;white-space:nowrap;padding:8px 15px}.page-title{padding:29px 0 20px}.page-title h1{font-size:28px}.surface{padding:20px}.toolbar{padding:12px 14px}.dialog-card{padding:22px}.group .replay-heading h2{font-size:16px}}@media(max-width:580px){.shell{padding:0 20px}.topbar .brand{font-size:15px}.brand-mark{width:34px;height:34px;border-radius:10px}.topbar nav a{padding:8px 13px}.surface{border-radius:15px;padding:17px}.surface .section-head{flex-wrap:wrap}.page-title h1{font-size:26px}.page-title>p:last-child{font-size:12px}.timeline-surface{padding:13px}.toolbar label{font-size:11px}#anchors th,#anchors td{padding:13px 8px}#sessions tr{border-color:var(--line)}#sessions td.numeric::before{color:var(--muted)}.share-dialog,.delete-dialog{padding:22px}.group .replay-heading{gap:7px}.group .replay-heading h2{font-size:16px}.group .replay-heading p{font-size:10px}.group .replay-heading .delete-replay{padding:7px 8px;font-size:11px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.pending-analysis{background:var(--subtle);border-color:var(--line);color:var(--muted)}.pending-analysis strong{color:var(--ink)}.time-link{background:var(--tint);color:var(--accent);border-color:var(--line)}.transcript-line,.observation{border-color:var(--line)}.observation small,.evidence-list,.login-loading,.douyin-login-card #phone-status,#captcha-hint{color:var(--muted)}.douyin-login-card #phone-status.error,#batch-status.error{color:var(--danger)}#batch-status{color:var(--accent)}.analysis-tabs [aria-selected=true]{color:var(--accent);border-bottom-color:var(--focus)}.batch-toolbar strong{color:var(--ink)}.challenge-actions button,#resume-captcha{background:var(--surface);border-color:var(--line);color:var(--accent)}.challenge-dialog{z-index:220}.replay-heading .muted{color:var(--muted)}
