:root {
  color-scheme: dark;
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  color: #f4f5f1;
  background: #151b1c;
  --bg: #151b1c;
  --panel: #1b2425;
  --surface: #222d2e;
  --line: #354346;
  --muted: #b5c3c0;
  --dim: #97aba6;
  --mint: #96e0bd;
  --gold: #e8ba78;
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { touch-action: manipulation; }
body { margin: 0; padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
button, input, textarea, select { font: inherit; }
input, textarea, select { font-size: 17px; min-width: 0; }
button, .file-button { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .42; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, .file-button:focus-within {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
button, .file-button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
svg { display: block; flex: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topbar { background: #171f20; border-bottom: 1px solid #2c3739; }
.topbar-inner, .shell { width: min(100% - 56px, 1240px); margin-inline: auto; }
.topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; font-size: clamp(24px, 3.2vw, 29px); font-weight: 800; letter-spacing: -.055em; white-space: nowrap; }
.brand img { border-radius: 10px; margin-right: 10px; }
.brand span { color: var(--mint); }
.top-actions, .panel-actions, .annotation-controls, .io-actions { display: flex; align-items: center; gap: 8px; }
.quiet, .icon-button, .segment, .primary, .danger, .file-button {
  min-height: 44px; border: 1px solid var(--line); border-radius: 9px;
  background: #232e2f; padding: 7px 13px; font-weight: 650; font-size: 16px; color: #ecf3ee;
}
.icon-label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.icon-label svg, .icon-button svg { color: var(--mint); }
.icon-button { display: inline-grid; place-items: center; width: 44px; padding: 0; flex: none; }
button:not(:disabled):hover, .file-button:hover { background: #2e3c3e; border-color: #5b7772; }
.top-actions button:first-child[aria-pressed="false"] svg { color: var(--dim); }
.shell { padding-block: 18px 12px; }
.masthead {
  isolation: isolate; min-height: 112px; padding: 18px 25px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(92deg, #131b1b 1%, #172121cf 42%, #151e1e45 100%), url("/art/bass-header.webp") center 56% / cover;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 3px; font-size: .81rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.eyebrow svg { width: 23px; height: 20px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(33px, 4.6vw, 49px); line-height: 1.13; letter-spacing: -.053em; overflow-wrap: anywhere; }
h2 { font-size: 22px; line-height: 1.23; letter-spacing: -.026em; }
.instrument-summary { flex: none; display: flex; gap: 10px; align-items: center; padding: 10px 13px; background: #151f20e8; border: 1px solid #64837c82; border-radius: 10px; min-width: 202px; }
.instrument-summary svg { color: var(--mint); }
.instrument-summary strong, .instrument-summary span { display: block; }
.instrument-summary strong { font-size: 16px; }
.instrument-summary span { color: var(--muted); font-size: 14px; }
.workspace { display: grid; grid-template-columns: minmax(0, min(58%, max(330px, calc(100svh - 273px)))) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 16px; }
.board-panel, .panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.board-panel { padding: 13px 13px 12px; }
.board-plate { display: flex; align-items: stretch; gap: 8px; }
#board { flex: 1 1 auto; min-width: 0; touch-action: none; }
#board .pb-root { --pb-label: #b9c9c6; --pb-size: 100%; --pb-gutter: clamp(17px, 2vw, 25px); }
#board .pb-surface { border: 2px solid #10181d; border-radius: 7px; box-shadow: 0 8px 18px #0b111354; }
#board .pb-surface { touch-action: none; }
#board .pb-arrows { width: 100%; height: 100%; stroke: none; }
#board .pb-files, #board .pb-ranks { font-size: clamp(12px, 1.5vw, 17px); }
#board .pb-sq:focus-visible { z-index: 2; outline: 3px solid #fce2ad; outline-offset: -3px; }
#board img { user-select: none; -webkit-user-drag: none; }
#board img.held { opacity: .25; }
.held-piece {
  position: fixed; z-index: 20; pointer-events: none;
  transform: translate(-50%, -50%) scale(1.18);
  filter: drop-shadow(0 6px 5px #101619a8); user-select: none;
}
#board .pb-hl-last { background: #f3cf5975; }
#board .pb-hl-selected { background: #e8e67b91; }
#board .pb-hl-target { background: radial-gradient(circle, #14302d65 0 15%, transparent 17%); }
#board .pb-sq:has(img) .pb-hl-target { background: radial-gradient(circle, transparent 0 53%, #16252592 55% 68%, transparent 70%); }
#board .pb-hl-check { background: radial-gradient(circle, #f25845a8 15%, #f2584500 72%); }
.eval-bar { align-self: stretch; position: relative; flex: 0 0 13px; border-radius: 5px; background: #0d1111; border: 1px solid #495552; overflow: hidden; margin: 1px 0 19px; }
.eval-bar > div { position: absolute; bottom: 0; width: 100%; height: 50%; background: #edf2e6; transition: height .18s; }
.eval-bar.flipped > div { top: 0; bottom: auto; }
.transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.move-nav { display: inline-flex; gap: 5px; }
.move-nav svg { width: 25px; height: 25px; }
#flip { justify-self: end; }
.turn { display: flex; gap: 7px; align-items: baseline; font-size: 16px; line-height: 1.15; font-weight: 650; }
.turn i { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: #eeeae0; box-shadow: 0 0 0 1px #a9bcba; }
.turn i.black { background: #172124; }
.study-panel { display: grid; gap: 12px; }
.panel-header { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 15px; border-bottom: 1px solid var(--line); }
.panel-header h2 { display: flex; align-items: center; gap: 9px; }
.panel-header h2 svg { color: var(--mint); }
.panel-header .quiet, .panel-header .icon-button { background: transparent; border-color: transparent; }
.panel-header button:not(:disabled):hover { background: #2e3c3e; border-color: var(--line); }
.chapters { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; max-height: 180px; overflow: auto; }
.chapter-option { display: grid; grid-template-columns: 28px 1fr; align-items: start; text-align: left; padding: 9px 11px; min-height: 47px; width: 100%; border: 1px solid transparent; border-radius: 9px; background: transparent; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.chapter-option[aria-current="true"] { background: #293b38; border-color: #507369; color: #e6faee; }
.chapter-order { padding-top: 2px; font-size: 14px; color: var(--mint); }
.move-tree { overflow: auto; padding: 9px 13px 12px; min-height: 175px; max-height: clamp(190px, 36vh, 430px); font-size: 18px; }
.start-position { margin: 1px 0 7px; }
.empty-moves { color: var(--dim); padding: 12px 5px; font-size: 17px; }
.move-row { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) minmax(0, 1fr); align-items: start; border-top: 1px solid #3547478f; min-height: 41px; }
.move-number { color: var(--dim); font-variant-numeric: tabular-nums; padding: 8px 4px; }
.move-choice { padding: 6px 8px; min-height: 40px; font-weight: 750; text-align: left; line-height: 1.27; overflow-wrap: anywhere; }
.move-choice, .start-position { border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; }
.move-choice[aria-current="true"], .start-position[aria-current="true"] { background: #34534b; color: #e9fbef; border-color: #507d6d; }
.start-position { padding: 3px 5px; font-size: 15px; font-weight: 650; color: var(--muted); }
.move-glyph { color: var(--gold); margin-inline-start: 3px; }
.move-comment { color: #d0dcd8; font-size: 17px; line-height: 1.45; padding: 4px 7px 6px; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 3px; }
.variation { border-left: 2px solid #53736a; margin: 5px 1px 7px 9px; padding-left: 5px; }
.deep-variation { border-left: 1px solid #53736a; padding-left: 3px; }
.variation .move-choice { min-height: 36px; }
.annotation-controls { padding: 8px 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.annotation-controls button[aria-expanded="true"], .segment[aria-pressed="true"] { color: var(--mint); border-color: #658c7d; background: #2a423b; }
.glyph-toggle { font-size: 21px; padding-inline: 10px; }
.comment-pane, .glyph-pane { border-top: 1px solid var(--line); padding: 12px; }
.comment-pane label { font-size: 16px; margin-bottom: 5px; }
.comment-pane textarea { font-size: 19px; }
.glyph-pane { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.glyph-column { min-width: 0; }
.glyph-column h3 { font-size: 14px; color: var(--muted); margin: 0 3px 4px; }
.glyph-choice { display: flex; align-items: center; width: 100%; gap: 4px; min-height: 44px; text-align: left; padding: 3px; font-size: 14px; border: 1px solid transparent; border-radius: 7px; background: transparent; overflow-wrap: anywhere; }
.glyph-choice strong { font-size: 21px; width: 1.55em; text-align: center; flex: none; color: var(--gold); }
.glyph-choice[aria-pressed="true"] { background: #35453e; border-color: #718d7d; }
.glyph-choice:disabled { opacity: .55; }
.switch { width: 47px; height: 44px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; }
.switch span { position: relative; width: 41px; height: 23px; border-radius: 15px; border: 1px solid #647671; background: #303f40; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 4px; width: 15px; height: 15px; border-radius: 50%; background: #d1dcd8; }
.switch[aria-checked="true"] span { background: #436f5e; border-color: var(--mint); }
.switch[aria-checked="true"] span::after { left: 20px; background: var(--mint); }
.engine-info { min-height: 58px; padding: 10px 15px; display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--muted); }
.engine-line, #engine-line { color: #f3f4ed; overflow-wrap: anywhere; }
.engine-score { padding: 4px 7px; background: #2a4039; color: var(--mint); border-radius: 6px; font-weight: 750; font-variant-numeric: tabular-nums; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-block: 12px; font-size: 14px; color: var(--muted); }
.page-footer > span { display: inline-flex; align-items: center; gap: 7px; }
.page-footer svg { width: 17px; height: 17px; color: var(--dim); }
.page-footer button { border: 0; background: transparent; font-size: 14px; color: var(--muted); }
dialog { width: min(100% - 28px, 620px); max-height: min(90vh, 760px); padding: 0; border: 1px solid #596c69; background: var(--panel); color: inherit; border-radius: var(--radius); box-shadow: 0 22px 90px #000a; }
dialog::backdrop { background: #090e10b8; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 17px 11px 21px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 27px; }
.dialog-body { padding: 19px 21px 21px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: block; font-weight: 700; font-size: 17px; }
input:not([type="file"]), textarea, select { display: block; width: 100%; min-height: 43px; border: 1px solid #546762; border-radius: 7px; color: inherit; background: #182122; padding: 8px 10px; margin-top: 5px; font-size: 17px; }
input[type="range"] { accent-color: var(--mint); padding-inline: 0; }
textarea { resize: vertical; }
.settings-note { margin-block: 16px; color: var(--muted); line-height: 1.4; }
blockquote { margin: 17px 0 0; color: var(--gold); font-size: 20px; }
cite { font-style: normal; font-size: 15px; color: var(--muted); }
.io-actions { flex-wrap: wrap; margin-top: 13px; }
.io-options { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.primary { color: #152622; background: var(--mint); border-color: var(--mint); }
button.primary:hover { color: inherit; }
.danger { color: #ffc4b7; }
.file-button { display: inline-flex; align-items: center; position: relative; }
.file-button input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.dialog-message { color: var(--gold); margin-top: 12px; font-size: 16px; }
.notice { position: fixed; z-index: 12; bottom: 14px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 30px); padding: 9px 14px; border: 1px solid #587a70; border-radius: 8px; color: #f3faf4; background: #283c38; box-shadow: 0 3px 18px #0007; }
.promote-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.promote-options button { display: grid; justify-items: center; font-size: 15px; min-width: 0; padding: 6px 2px; }
.promote-options img { display: block; width: min(100%, 60px); }
.key-list { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 0; }
.key-list dd { margin: 0; color: var(--muted); }
kbd { display: inline-block; min-width: 1.3em; padding: .04em .21em; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
@media (max-width: 1020px) {
  .topbar-inner, .shell { width: min(100% - 32px, 1240px); }
  .workspace { grid-template-columns: minmax(0, min(55%, max(310px, calc(100svh - 288px)))) minmax(0, 1fr); gap: 12px; }
  .transport { grid-template-columns: 1fr auto; }
  .turn { grid-column: 1 / -1; }
  #clear-shapes { font-size: 14px; }
}
@media (min-width: 741px) and (max-height: 780px) {
  .masthead { min-height: 95px; padding-block: 12px; }
  .workspace { margin-top: 13px; }
}
@media (max-width: 740px) {
  .workspace { grid-template-columns: 1fr; margin-top: 12px; }
  .turn { grid-column: auto; }
  .transport { grid-template-columns: 1fr auto 1fr; }
  .board-panel { padding: 9px; }
  .move-tree { min-height: 122px; max-height: 310px; }
  .masthead { min-height: 104px; padding: 13px 16px; }
  .instrument-summary { min-width: 0; }
  .shell { padding-top: 12px; }
}
@media (max-width: 460px) {
  .topbar-inner, .shell { width: calc(100% - 22px); }
  .topbar-inner { min-height: 60px; }
  .brand img { width: 36px; height: 36px; margin-right: 6px; }
  .top-actions { gap: 5px; }
  .top-actions button { padding: 6px 8px; min-height: 44px; font-size: 14px; gap: 4px; }
  .top-actions svg { width: 18px; height: 18px; }
  .masthead { display: grid; gap: 7px; padding: 10px 13px; background-position: right center; }
  h1 { font-size: 32px; }
  .eyebrow { font-size: 11px; }
  .instrument-summary { padding: 0; gap: 5px; border: 0; background: transparent; color: var(--mint); }
  .instrument-summary div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
  .instrument-summary svg { width: 15px; height: 15px; }
  .instrument-summary strong, .instrument-summary span { font-size: 13px; }
  .transport { grid-template-columns: 1fr auto; gap: 5px; }
  .turn { grid-column: 1 / -1; padding: 2px 0 5px 3px; }
  .move-nav .icon-button { width: 46px; }
  .eval-bar { flex-basis: 9px; }
  .page-footer { flex-wrap: wrap; }
  .glyph-choice { font-size: 13px; }
  .glyph-choice strong { font-size: 18px; width: 1.35em; }
}
@media (max-width: 350px) {
  .topbar-inner { gap: 6px; }
  .top-actions button { font-size: 13px; }
  .top-actions #sound-toggle { width: 44px; padding: 0; }
  .top-actions #sound-toggle span { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
}

:root[data-design="minimal"] {
  color-scheme: light;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: #212528;
  background: #eeefed;
  --panel: #fff;
  --surface: #f4f5f4;
  --line: #d4d8da;
  --muted: #51595e;
  --dim: #596267;
  --mint: #275889;
  --gold: #275889;
  --radius: 4px;
}
[data-design="minimal"] .topbar { background: var(--panel); border-color: var(--line); }
[data-design="minimal"] .topbar-inner { min-height: 56px; }
[data-design="minimal"] .brand { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
[data-design="minimal"] .brand span { color: inherit; }
[data-design="minimal"] .brand img,
[data-design="minimal"] .masthead,
[data-design="minimal"] .panel-header h2 svg,
[data-design="minimal"] .moves-panel .panel-actions,
[data-design="minimal"] #clear-shapes span,
[data-design="minimal"] .page-footer > span { display: none; }
[data-design="minimal"] .workspace {
  grid-template-columns: minmax(0, min(62%, max(350px, calc(100svh - 158px)))) minmax(0, 1fr);
  gap: 16px;
  margin-top: 0;
}
[data-design="minimal"] .board-panel { padding: 0; border: 0; background: transparent; }
[data-design="minimal"] #board .pb-root {
  --pb-label: var(--muted);
  grid-template-columns: var(--pb-gutter) minmax(0, 1fr);
  grid-template-rows: auto var(--pb-gutter);
}
[data-design="minimal"] #board .pb-surface { grid-area: 1 / 2; border: 0; border-radius: 0; box-shadow: none; }
[data-design="minimal"] #board .pb-ranks-left { grid-area: 1 / 1; }
[data-design="minimal"] #board .pb-files-bottom { grid-area: 2 / 2; }
[data-design="minimal"] #board .pb-ranks-right,
[data-design="minimal"] #board .pb-files-top { display: none; }
[data-design="minimal"] #board img,
[data-design="minimal"] .held-piece { filter: none; }
[data-design="minimal"] .eval-bar { margin: 0 0 clamp(17px, 2vw, 25px); }
[data-design="minimal"] .annotation-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
[data-design="minimal"] .annotation-controls { padding: 2px 4px; border: 0; gap: 2px; }
[data-design="minimal"] .annotation-controls button { background: transparent; border-color: transparent; }
[data-design="minimal"] .glyph-toggle { min-width: 44px; }
[data-design="minimal"] #clear-shapes { margin-inline-start: auto; width: 44px; padding-inline: 0; }
[data-design="minimal"] #clear-shapes:disabled { display: none; }
[data-design="minimal"] .study-panel { gap: 8px; }
[data-design="minimal"] .panel-header { min-height: 44px; padding: 0 8px 0 12px; }
[data-design="minimal"] h2 { font-size: 19px; letter-spacing: 0; }
[data-design="minimal"] .chapters { padding: 4px; max-height: 152px; }
[data-design="minimal"] .chapter-option { min-height: 44px; }
[data-design="minimal"] .engine-info { min-height: 42px; padding: 8px 12px; }
[data-design="minimal"] .engine-info > div { min-width: 0; }
[data-design="minimal"] #engine-line,
[data-design="minimal"] .move-comment { color: inherit; }
[data-design="minimal"] .move-tree { min-height: 142px; max-height: clamp(142px, 37svh, 480px); }
[data-design="minimal"] .move-row { border-color: var(--line); }
[data-design="minimal"] .variation,
[data-design="minimal"] .deep-variation { border-color: #aab9c9; }
[data-design="minimal"] .start-position,
[data-design="minimal"] .move-choice { min-height: 44px; }
[data-design="minimal"] .transport {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  padding: 6px;
  border-top: 1px solid var(--line);
}
[data-design="minimal"] .turn { padding: 3px 4px; color: var(--muted); font-size: 14px; }
[data-design="minimal"] .move-nav { display: grid; grid-template-columns: repeat(4, minmax(44px, 1fr)); gap: 3px; }
[data-design="minimal"] .move-nav .icon-button { width: 100%; }
[data-design="minimal"] .quiet,
[data-design="minimal"] .icon-button,
[data-design="minimal"] .segment,
[data-design="minimal"] .danger,
[data-design="minimal"] .file-button { background: var(--panel); color: inherit; }
[data-design="minimal"] :is(button:not(:disabled), .file-button):hover { background: #edf2f7; border-color: #adbed0; }
[data-design="minimal"] .icon-label svg,
[data-design="minimal"] .icon-button svg { color: inherit; }
[data-design="minimal"] :is(.quiet, .icon-button, .segment, .primary, .danger, .file-button, .chapter-option, .move-choice, .start-position, .glyph-choice, input, select, textarea, .engine-score) {
  border-radius: var(--radius);
}
[data-design="minimal"] :is(.chapter-option, .move-choice, .start-position)[aria-current="true"],
[data-design="minimal"] .glyph-choice[aria-pressed="true"],
[data-design="minimal"] .annotation-controls button[aria-expanded="true"],
[data-design="minimal"] .segment[aria-pressed="true"],
[data-design="minimal"] .engine-score { background: #e1ebf5; border-color: #b5c9dd; color: #234c76; }
[data-design="minimal"] .switch span { background: #69747c; border-color: #69747c; }
[data-design="minimal"] .switch[aria-checked="true"] span { background: var(--mint); border-color: var(--mint); }
[data-design="minimal"] .switch span::after { background: #fff; }
[data-design="minimal"] dialog { border-color: var(--line); box-shadow: 0 12px 36px #2224; }
[data-design="minimal"] dialog::backdrop { background: #1116; }
[data-design="minimal"] :is(input:not([type="file"]), textarea, select) { background: var(--panel); border-color: #9ba5ab; }
[data-design="minimal"] .primary { color: #fff; }
[data-design="minimal"] button.primary:hover { background: #194572; color: #fff; }
[data-design="minimal"] .danger { color: #962e28; }
[data-design="minimal"] .notice { color: inherit; background: var(--panel); border-color: var(--line); }
[data-design="minimal"] .page-footer { justify-content: end; margin-block: 6px 0; }

@media (max-width: 740px) {
  [data-design="minimal"] .workspace { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  [data-design="minimal"] .move-tree { min-height: 106px; }
}
@media (min-width: 500px) and (max-height: 530px) and (orientation: landscape) {
  [data-design="minimal"] .topbar-inner { min-height: 48px; }
  [data-design="minimal"] .shell { padding-top: 8px; }
  [data-design="minimal"] .workspace { grid-template-columns: minmax(0, min(49%, calc(100svh - 100px))) minmax(0, 1fr); }
  [data-design="minimal"] .study-panel { gap: 4px; }
  [data-design="minimal"] :is(.chapter-panel, .engine-panel) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  [data-design="minimal"] :is(.chapter-panel, .engine-panel) .panel-header { border: 0; gap: 2px; padding-inline: 8px 0; }
  [data-design="minimal"] .chapter-panel .panel-actions { gap: 0; }
  [data-design="minimal"] .chapters { max-height: 48px; padding-block: 0; }
  [data-design="minimal"] .chapter-option { grid-template-columns: 18px minmax(0, 1fr); padding-inline: 6px; }
  [data-design="minimal"] .chapter-option span:last-child { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  [data-design="minimal"] .move-tree { min-height: 62px; max-height: 26svh; padding-block: 4px; }
  [data-design="minimal"] .empty-moves { display: none; }
  [data-design="minimal"] .annotation-controls .icon-label { font-size: 14px; padding-inline: 7px; }
  [data-design="minimal"] :is(#comment-tab, #io-open) svg { display: none; }
  [data-design="minimal"] #flip span { display: none; }
  [data-design="minimal"] #flip { width: 44px; padding-inline: 0; }
}
@media (min-width: 500px) and (max-width: 650px) and (max-height: 530px) and (orientation: landscape) {
  [data-design="minimal"] .chapter-panel h2 { font-size: 17px; }
  [data-design="minimal"] .chapter-option { display: block; font-size: 16px; }
  [data-design="minimal"] .chapter-order { display: none; }
  [data-design="minimal"] .chapter-option span:last-child { display: block; }
  [data-design="minimal"] .annotation-controls { gap: 0; }
  [data-design="minimal"] .annotation-controls .icon-label { padding-inline: 4px; }
}
@media (min-width: 741px) and (max-width: 880px) and (min-height: 531px) {
  [data-design="minimal"] #flip span { display: none; }
  [data-design="minimal"] #flip { width: 44px; padding-inline: 0; }
}
@media (max-width: 460px) {
  [data-design="minimal"] .annotation-controls { gap: 0; }
  [data-design="minimal"] .annotation-controls button { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
