  :root { color-scheme: dark; font: 14px/1.45 system-ui, sans-serif; background: #101622; color: #e9eef8; }
  * { box-sizing: border-box; }
  body { margin: 0; }
  .site-header { padding: 16px 22px; border-bottom: 1px solid #303a4d; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
  h1 { font-size: 19px; margin: 0; font-weight: 650; }
  .muted { color: #a9b5c8; }
  .viewer-page { height: 100vh; display: flex; flex-direction: column; }
  .viewer-layout { display: grid; grid-template-columns: 245px minmax(350px, 1fr) 290px; flex: 1; min-height: 0; }
  .back-link { color: #a9c7ff; text-decoration: none; font-weight: 650; white-space: nowrap; }
  .back-link:hover, .back-link:focus-visible { text-decoration: underline; }
  aside { padding: 18px; overflow: auto; }
  aside:first-child { border-right: 1px solid #303a4d; }
  aside:last-child { border-left: 1px solid #303a4d; }
  h2 { font-size: 14px; margin: 4px 0 14px; color: #dce8fb; }
  h3 { font-size: 12px; margin: 24px 0 9px; text-transform: uppercase; letter-spacing: .08em; color: #a9b5c8; }
  .row { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0; }
  .control { display: flex; gap: 8px; margin: 12px 0; }
  button { background: #27364d; color: #f2f6ff; border: 1px solid #455673; border-radius: 7px; padding: 7px 10px; font: inherit; cursor: pointer; }
  button:hover, button:focus-visible { background: #354b6b; }
  button.primary { background: #2f6feb; border-color: #4b85f0; }
  select, input[type=search] { width: 100%; background: #1b283b; color: #e9eef8; border: 1px solid #455673; border-radius: 7px; padding: 8px; font: inherit; margin: 3px 0; }
  .status { border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
  .status.success { color: #b0efc8; background: #17442e; }
  .status.failure { color: #ffb6b9; background: #57272d; }
  .status.unknown { color: #c5d1e4; background: #34445b; }
  input[type=range] { width: 100%; accent-color: #76a6ff; }
  label.check { display: flex; align-items: center; gap: 8px; margin: 10px 0; cursor: pointer; }
  label.check input { accent-color: #76a6ff; }
  .swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
  .line { width: 15px; height: 3px; border-radius: 2px; display: inline-block; flex: none; }
  .stage { position: relative; overflow: hidden; min-height: 380px; background: radial-gradient(circle at center, #1c293c, #101622 72%); }
  canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
  canvas:active { cursor: grabbing; }
  .hint { position: absolute; left: 14px; bottom: 12px; color: #c3cfdf; background: #101622cc; padding: 5px 8px; border-radius: 5px; pointer-events: none; }
  .pill { display: inline-block; background: #24344b; padding: 3px 8px; border-radius: 20px; margin-top: 7px; }
  pre { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: #1c293b; padding: 10px; border-radius: 7px; }
  .empty { color: #a9b5c8; }
  .catalog { max-width: 1320px; margin: 0 auto; padding: 30px 28px 80px; }
  .catalog-intro { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
  .catalog-intro h2 { font-size: 26px; margin: 0 0 6px; }
  .catalog-intro p { margin: 0; }
  .catalog-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 28px 0 14px; }
  .catalog-toolbar input[type=search] { width: min(420px, 100%); padding: 11px 13px; margin: 0; }
  .status-filters { display: flex; gap: 7px; flex-wrap: wrap; }
  .status-filters button { padding: 10px 13px; }
  .status-filters button.active { background: #2f6feb; border-color: #4b85f0; }
  .status-filters span { margin-left: 5px; color: #c6d8fb; }
  .episode-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(330px,1fr)); gap: 16px; margin-top: 20px; }
  .episode-card { display: flex; flex-direction: column; gap: 15px; min-height: 188px; padding: 20px; color: inherit; text-decoration: none; background: #192537; border: 1px solid #34425a; border-radius: 11px; transition: background .15s, border-color .15s, transform .15s; }
  .episode-card:hover, .episode-card:focus-visible { background: #22334a; border-color: #79a5f8; transform: translateY(-2px); }
  .card-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
  .card-name { font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
  .card-top .status { flex: none; }
  .card-path { color: #a9b5c8; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
  .card-meta { color: #d1dcec; font-size: 13px; }
  .card-action { margin-top: auto; color: #a9c7ff; font-weight: 650; }
  .empty-list { grid-column: 1/-1; padding: 30px; text-align: center; color: #a9b5c8; border: 1px dashed #455673; border-radius: 10px; }
  @media(max-width: 900px) { .viewer-page { height: auto; } .viewer-layout { grid-template-columns: 1fr; height: auto; } aside:first-child, aside:last-child { border: 0; } .stage { height: 58vh; } }
  @media(max-width: 600px) { .catalog { padding: 22px 16px 60px; } .catalog-intro { align-items: stretch; flex-direction: column; } .episode-grid { grid-template-columns: 1fr; } }
