/* 小笔记本优先采用完整单栏，避免将光谱与输入区挤入过窄侧栏。 */
.intro h1{text-wrap:balance}
.text-button{white-space:nowrap;flex-shrink:0}
.section-head>div{min-width:0}
.result-panel{position:static;top:auto}
.workspace{grid-template-areas:"import result" "chart result"}
sub{font-size:.75em;line-height:0;vertical-align:sub}
.field select:disabled{opacity:1;color:#525252;background:#f5f5f5}
.field input[readonly]{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--control);border-radius:var(--radius);font:inherit;color:#525252;background:#f5f5f5}
.sheet-field{margin-top:14px}
.sheet-field[hidden]{display:none}
.language-switch{display:flex;align-items:center;border:1px solid var(--control);border-radius:5px;flex-shrink:0;overflow:hidden}
.language-switch button{border:0;background:transparent;min-height:40px;padding:6px 12px;font-size:14px;line-height:1.5}
.language-switch button[aria-pressed=true]{background:#252525;color:#fff}
.language-switch button+button{border-left:1px solid var(--control)}
.language-switch button:focus-visible{outline-offset:-4px}
.preview-notice{align-items:center}
.notice-mark{width:24px;height:24px;border:0;background:transparent;display:grid;place-items:center;padding:0;flex-shrink:0}
.notice-mark::before{content:"";width:8px;height:8px;border-radius:50%;background:#bb3434}
.notice-mark[data-state=connected]::before{background:#218448}
@keyframes connection-pulse{50%{opacity:.3}}
@media(prefers-reduced-motion:no-preference){.notice-mark[data-state=connected][data-paused=false]::before{animation:connection-pulse 1.8s ease-in-out infinite}}
@media(pointer:coarse){.language-switch button{min-height:48px}.notice-mark{min-width:44px;min-height:44px}}
@media(forced-colors:active){.notice-mark::before{background:CanvasText}.notice-mark[data-state=connected]::before{background:Highlight}.language-switch button[aria-pressed=true]{background:Highlight;color:HighlightText}}
.page[data-reduced-motion=true] button:active{transform:none}
@media(prefers-reduced-motion:reduce){button:active{transform:none}}
@media(max-width:1200px){
  .page{padding-inline:28px}
  .workspace{grid-template-columns:1fr;grid-template-areas:"import" "chart" "result";gap:25px}
  .result-panel{position:static;padding:22px 0 0;border-left:0;border-top:1px solid #333}
  .result-panel .result-actions{max-width:380px}
  .score-list,.result-meta{max-width:650px}
  .result-note{max-width:760px}
  .class-list{display:none}
}
.prediction-confidence{display:flex;align-items:baseline;gap:12px;margin-block:12px 18px;flex-wrap:wrap}
.prediction-confidence strong{font:36px/1.2 Consolas,monospace;color:var(--accent)}
.prediction-confidence span{font-size:13px;color:var(--muted)}
.prediction-rejected{color:var(--danger);border-color:var(--danger);background:#faf5f4}
.prediction-comparison-window{overflow:auto;max-width:100%;margin-block:18px}
.prediction-comparison{width:100%;border-collapse:collapse;min-width:290px;font:13px/1.65 var(--sans)}
.prediction-comparison caption{text-align:start;color:var(--muted);margin-bottom:8px}
.prediction-comparison th,.prediction-comparison td{padding:9px 5px;text-align:start;border-bottom:1px solid var(--line);white-space:nowrap}
.prediction-comparison th{font-weight:400}
.prediction-comparison tr[data-selected=true]{background:var(--soft)}
.prediction-comparison tr[data-selected=true] th{font-weight:700}
.result-panel .score-row{grid-template-columns:36px 1fr 60px}
.prediction-comparison+.helper{margin-block:10px}
@media(max-width:640px){
  .page{padding-inline:18px}
  .intro .eyebrow{display:none}
  .intro{padding-block:20px 17px}
  .preview-notice{padding-block:11px 17px}
}
