/* Unifies workbench.html with FiniYang / OPTIMUS vermilion visual system & mobile ergonomics */
:root {
  --bg: #101112;
  --panel: #16181a;
  --fg: #f3f1ec;
  --muted: #9ea2a0;
  --line: #2d3033;
  --orange: #d9381e;
}

.mast { height: auto; min-height: 60px; border-bottom: 1px solid var(--line); background: rgba(16, 17, 18, 0.92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; }
.inner, main { width: min(1420px, calc(100% - clamp(24px, 6vw, 96px))); }
.inner { min-height: 60px; gap: 16px; }

.brand-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-home { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 14px; letter-spacing: 0.02em; color: var(--fg); text-decoration: none; }
.brand-home img { width: 28px; height: 28px; border-radius: 6px; display: block; }
.brand-sep { color: #565a5e; font-size: 14px; }
.brand-work { font: 700 20px/1 var(--display); letter-spacing: 0.06em; color: var(--fg); text-decoration: none; }
.brand-work:hover { color: #ef4d33; }

.mode-nav { display: flex; align-items: center; gap: 6px; }
.mode-nav a, .mode-nav .nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 13px; border-radius: 6px; text-decoration: none;
  font-size: 13px; color: var(--muted); border: 1px solid transparent;
}
.mode-nav a:hover, .mode-nav .nav-btn:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.mode-nav a.is-active { color: #fff; background: #1d2023; border-color: #3e4246; font-weight: 600; }

.hero-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 18px 0 14px; flex-wrap: wrap; }
.hero-left { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; color: var(--muted); }
.hero-kicker i { width: 18px; height: 2px; background: var(--orange); display: inline-block; }
.hero-bar h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.hero-sub { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }

.play { background: #d9381e; color: #fff; height: 38px; padding: 0 16px; border-radius: 7px; font-size: 13px; }
.play:hover:not(:disabled) { background: #ef4d33; color: #fff; }
.chapter.active { background: rgba(217, 56, 30, 0.14); border-left-color: #d9381e; }
.chapter.active strong { color: #ffcabf; }
.chapter.active .num { color: #ef4d33; }
.chapter small { display: none; }
#track { color: #ffcabf; border-bottom-color: rgba(217, 56, 30, 0.55); font-size: 12px; }

@media (max-width: 680px) {
  .inner, main { width: calc(100% - 24px); }
  .inner { min-height: 54px; }
  .brand-home span, .brand-sep { display: none; }
  .brand-work { font-size: 18px; }
  .mode-nav a, .mode-nav .nav-btn { min-height: 44px; padding: 0 10px; font-size: 13px; }
  .hero-bar { margin: 12px 0 10px; gap: 6px; }
  .hero-bar h1 { font-size: 24px; }
  .hero-sub { font-size: 13px; }
  .viewport { height: clamp(320px, 54svh, 500px); }
  .play, .ctl { min-height: 44px; min-width: 40px; }
  .speed select { min-height: 40px; }
  .square { min-width: 40px; min-height: 40px; }
  .zoom button { min-width: 40px; min-height: 40px; }
  .chapter { min-height: 56px; }
  .chapter strong { font-size: 12px; }
}
