/* Editor and player demo: a desktop app window filling the browser. */

:root {
  --navy: oklch(0.27 0.1 262);
  --orange: oklch(0.72 0.18 45);
  --yellow: oklch(0.88 0.16 92);
  --ink: #1d1c1a;
  --bg: #1b2848;
  --bar: #0b1430;
  --panel: #14203d;
  --line: #2a3756;
  --raised: #22304f;
  --hover: #2c3b60;
  --edge: #3a4a72;
  --text: #e8ecf5;
  --soft: #b7c1d9;
  --dim: #93a0bd;
  --label: #7f8db0;
  --serif: Newsreader, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.figure { line-height: 0; }
.notation { width: 100%; height: auto; display: block; overflow: visible; }
.cell { cursor: pointer; }

/* On wide screens the window fills the viewport; below 1240px the bars wrap (see the end of this file). */
.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- window title bar ---------- */

.titlebar { height: 40px; flex: none; display: flex; align-items: center; padding: 0 14px; gap: 12px; background: var(--bar); border-bottom: 1px solid var(--line); }
.titlebar .dots { display: flex; gap: 7px; width: 120px; }
.titlebar .dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--edge); }
.titlebar__title { flex: 1; text-align: center; color: var(--soft); font-weight: 500; font-size: 12.5px; }
.titlebar__side { width: 120px; display: flex; justify-content: flex-end; }
.mode { display: flex; padding: 2px; border-radius: 6px; background: var(--raised); }
.mode__btn { display: flex; align-items: center; height: 24px; padding: 0 12px; border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--soft); }
.mode__btn.is-on { color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

/* ---------- shared controls ---------- */

.group { display: flex; gap: 2px; }
.divider { width: 1px; height: 24px; background: var(--line); }
.divider--tall { height: 32px; }
.spacer { flex: 1; }
.icon-btn { width: 34px; height: 32px; border: none; border-radius: 6px; background: transparent; font-size: 17px; }
.icon-btn:hover { background: var(--hover); }
.icon-btn--sm { font-size: 13px; }
.icon-btn--md { width: 36px; height: 36px; font-size: 14px; }
.transport { display: flex; align-items: center; gap: 6px; }
.play { width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--orange); color: var(--navy); font-size: 12px; }
.play--lg { width: 46px; height: 46px; font-size: 14px; }
.tempo { font-family: var(--mono); font-size: 12.5px; color: var(--soft); margin-left: 8px; }

.seg { display: flex; padding: 2px; border-radius: 6px; background: var(--bar); }
.seg__btn { height: 28px; padding: 0 12px; border: none; border-radius: 4px; font-size: 12.5px; font-weight: 600; background: transparent; color: var(--soft); white-space: nowrap; }
.seg__btn--player { padding: 0 11px; }
.seg__btn.is-on { background: var(--orange); color: var(--navy); }

.label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.kv { display: flex; justify-content: space-between; }
.kv > span:first-child { color: var(--dim); }

/* ---------- score sheet ---------- */

.canvas { flex: 1; min-width: 0; overflow: auto; padding: 32px; }
.sheet { margin: 0 auto; background: #fffdf8; color: var(--ink); border: 4px solid var(--orange); border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -18px rgba(60, 40, 10, 0.2); }
.sheet--editor { max-width: 960px; padding: 44px 56px 56px; }
.sheet--player { max-width: 1000px; padding: 48px 60px 60px; }
.score-head { text-align: center; }
.score-title { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -0.01em; }
.sheet--player .score-title { font-size: 34px; }
.score-sub { font-family: var(--serif); font-style: italic; font-size: 15px; color: #6f6b64; margin-top: 2px; }
.chord-row { display: flex; justify-content: center; gap: 18px; margin: 26px 0 22px; }
.chord-row > div { width: 62px; }
.sheet--player .chord-row { gap: 20px; margin: 28px 0 24px; }
.sheet--player .chord-row > div { width: 66px; }
.score-meta { display: flex; justify-content: space-between; font-size: 12px; color: #6f6b64; margin-bottom: 6px; font-family: var(--serif); }
.score-meta__tuning { font-style: italic; }

/* ---------- editor ---------- */

.toolbar { height: 52px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.dur { width: 36px; height: 34px; border: none; border-radius: 6px; font-family: 'Noto Music', serif; font-size: 22px; line-height: 1; padding: 0; background: transparent; color: var(--text); }
.dur.is-on { background: var(--orange); color: var(--navy); }

.workspace { flex: 1; min-height: 0; display: flex; }
.panel { flex: none; background: var(--panel); overflow: auto; display: flex; flex-direction: column; }
.panel--left { width: 228px; border-right: 1px solid var(--line); padding: 18px 14px; gap: 22px; }
.panel--right { width: 264px; border-left: 1px solid var(--line); padding: 18px 16px; gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.stack .label { padding: 0 6px 4px; }
.stack--bars { gap: 2px; }
.stack--bars .label { padding-bottom: 6px; }
.stack--song { gap: 8px; padding: 0 6px; }
.stack--song .label { padding: 0 0 2px; }
.track { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 7px; background: var(--raised); border: 1px solid var(--line); }
.track__swatch { width: 10px; height: 10px; border-radius: 3px; background: oklch(0.6 0.15 45); flex: none; }
.track__name { font-weight: 600; }
.track__sub { font-size: 11.5px; color: var(--dim); }
.add-track { display: flex; align-items: center; gap: 8px; text-align: left; padding: 7px 10px; border: none; background: transparent; color: var(--dim); font-size: 12.5px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--orange); color: var(--navy); font-size: 9.5px; letter-spacing: 0.04em; vertical-align: 1px; }
.tag--quiet { margin-left: 0; background: var(--raised); color: var(--soft); text-transform: uppercase; font-weight: 600; }
.filebtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.filebtn { height: 28px; padding: 0 6px; border-radius: 5px; border: 1px dashed var(--edge); background: transparent; color: var(--dim); font-size: 12px; font-weight: 600; }
.filebtn:hover { color: var(--text); border-color: var(--soft); }
.note { margin: 2px 0 0; padding: 0 2px; font-size: 11.5px; line-height: 1.45; color: var(--dim); }
.bars { display: flex; flex-direction: column; gap: 2px; }
.bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; text-align: left; background: transparent; border: 1px solid transparent; }
.bar.is-on { background: var(--hover); border-color: var(--orange); }
.bar__no { font-family: var(--mono); font-size: 11px; color: var(--label); width: 16px; }
.bar__chord { font-family: var(--serif); font-style: italic; font-size: 15px; font-weight: 600; }

.panel--right .label { margin-bottom: 10px; }
.panel--right .label--sel { margin-bottom: 12px; }
.sel { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.sel__top { display: flex; align-items: baseline; gap: 12px; }
.sel__fret { font-family: var(--serif); font-size: 46px; line-height: 1; font-weight: 500; color: var(--orange); }
.sel__fret.is-empty { color: #b8b3a9; }
.sel__pitch { font-size: 12.5px; color: var(--soft); }
.sel__where { font-size: 12px; color: var(--dim); margin-top: 10px; }
.techs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tech { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--raised); color: var(--text); border: 1px solid var(--line); }
.tech.is-on { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.tech.is-dim { opacity: 0.45; }
.tech__k { font-family: var(--serif); font-style: italic; font-size: 12px; opacity: 0.7; }
.keys { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--soft); }
.keys .kv > span:first-child { color: inherit; }
kbd { font-family: var(--mono); color: #fff; }

.fretpanel { flex: none; border-top: 1px solid var(--line); background: var(--bar); }
.fretpanel--editor { padding: 10px 24px 8px; }
.fretpanel--player { padding: 12px 24px 6px; }
.fretpanel__head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); max-width: 880px; margin: 0 auto 4px; }
.fretpanel__caption { text-transform: none; letter-spacing: 0; font-weight: 500; }
.fretpanel__body { max-width: 880px; margin: 0 auto; }

/* ---------- player ---------- */

.canvas--player { padding: 36px 32px; }
.transport-bar { height: 72px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--bar); border-top: 1px solid var(--line); }
.transport-bar .transport { gap: 8px; }
.now { white-space: nowrap; }
.now__bar { font-weight: 600; font-size: 15px; }
.now__sub { font-size: 12.5px; color: var(--dim); margin-top: 1px; }
.speed { display: flex; align-items: center; gap: 12px; }
.speed__label { color: var(--dim); }
.speed input { width: 120px; accent-color: #fff; }
.speed__value { font-family: var(--mono); width: 38px; }
.chips { display: flex; gap: 4px; }
.chip { height: 28px; padding: 0 9px; border-radius: 5px; font-size: 12px; font-weight: 600; background: transparent; color: var(--text); border: 1px solid var(--edge); }
.chip.is-on { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.toggle { height: 34px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; background: transparent; color: var(--text); border: 1px solid var(--edge); }
.toggle--loop.is-on { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.toggle--fret.is-on { background: var(--hover); }

/* ---------- demo bar (website, above the app window) ---------- */

.demobar { flex: none; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: relative; z-index: 10; }
.demobar__logo { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #fff; white-space: nowrap; margin-right: 6px; }
.demobar__em { font-style: italic; font-weight: 400; color: var(--orange); }
.demobar__tld { color: rgba(255, 255, 255, 0.55); font-size: 12px; font-family: 'Hanken Grotesk', sans-serif; font-weight: 500; }
.demobar__label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.examples { display: flex; gap: 4px; padding: 3px; border-radius: 8px; background: rgba(0, 0, 0, 0.22); }
.example { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 40px; padding: 0 12px; border: none; border-radius: 6px; background: transparent; text-align: left; white-space: nowrap; }
.example:hover { background: rgba(255, 255, 255, 0.07); }
.example__level { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.example__title { font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.15; color: #fff; }
.example.is-on { background: var(--yellow); }
.example.is-on .example__level { color: rgba(30, 40, 80, 0.7); }
.example.is-on .example__title { color: var(--navy); }
.demobar__cta { display: flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: 13.5px; font-weight: 700; white-space: nowrap; }

.about { position: relative; }
.about summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.about summary::-webkit-details-marker { display: none; }
.about summary::before { content: 'i'; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 12px; }
.about summary::after { content: '▾'; font-size: 10px; opacity: 0.7; }
.about__short { display: none; }
.about[open] summary { background: rgba(255, 255, 255, 0.1); }
.about__panel { position: absolute; right: 0; top: calc(100% + 10px); width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px; border-radius: 14px; background: #fffdf8; color: var(--ink); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5); font-size: 13.5px; line-height: 1.5; }
.about__col h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.about__col ul { margin: 0; padding-left: 18px; }
.about__col li { margin-bottom: 6px; }
.about__col li a { border-bottom: 1px solid currentColor; }
.about__col li a:hover { color: oklch(0.6 0.15 45); }
.about__fine { margin: 10px 0 0; color: #77726a; font-size: 12.5px; }
.about__cta { display: inline-flex; align-items: center; height: 36px; margin-top: 12px; padding: 0 14px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; }

/* ---------- guided first try ---------- */

.guide { display: flex; align-items: flex-start; gap: 12px; margin: 0 auto 18px; padding: 12px 12px 12px 18px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); }
.canvas .guide { max-width: 960px; }
.canvas--player .guide { max-width: 1000px; }
.guide__body { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-height: 28px; }
.guide__title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.guide__steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.guide__steps li { counter-increment: step; display: flex; align-items: center; gap: 8px; color: var(--soft); }
.guide__steps li::before { content: counter(step); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--edge); font-size: 11px; font-weight: 700; color: var(--text); }
.guide__steps li.is-done { color: var(--text); }
.guide__steps li.is-done::before { content: '✓'; background: var(--orange); border-color: var(--orange); color: var(--navy); }
.guide__steps b { color: var(--text); }
.guide kbd { padding: 0 5px; border-radius: 4px; background: var(--bar); font-size: 12px; }
.guide__done { margin: 0; color: var(--text); }
.guide__done a { margin-left: 6px; color: var(--orange); font-weight: 700; border-bottom: 1px solid currentColor; }
.guide__close { flex: none; width: 28px; height: 28px; border: none; border-radius: 6px; background: transparent; color: var(--dim); font-size: 18px; line-height: 1; }
.guide__close:hover { background: var(--hover); color: var(--text); }

/* ---------- sharing and tips ---------- */

.copy-link { height: 24px; padding: 0 10px; border-radius: 5px; border: 1px solid var(--edge); background: transparent; color: var(--soft); font-size: 12px; font-weight: 600; white-space: nowrap; }
.copy-link:hover { color: var(--text); border-color: var(--soft); }
.titlebar .dots, .titlebar__side { width: 220px; }
.titlebar__side { gap: 8px; align-items: center; }
.guide-open { display: block; margin: 0 auto 10px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--dim); font-size: 12px; font-weight: 600; }
.canvas .guide-open { margin-right: max(0px, calc((100% - 960px) / 2)); }
.canvas--player .guide-open { margin-right: max(0px, calc((100% - 1000px) / 2)); }
.guide-open:hover { color: var(--text); border-color: var(--edge); }
.offscreen { position: fixed; left: -10000px; top: 0; opacity: 0; }

/* ---------- below the app: what this screen is and how to use it ---------- */

.demo-page { max-width: 880px; margin: 0 auto; padding: 56px 24px 40px; color: var(--soft); font-size: 16px; line-height: 1.65; }
.demo-info h1 { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; }
.demo-info h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; color: #fff; margin: 36px 0 10px; }
.demo-info p { margin: 0 0 14px; }
.demo-info__intro { font-size: 18px; color: var(--text); }
.demo-info__steps { margin: 0 0 14px; padding-left: 22px; }
.demo-info__steps li { margin-bottom: 8px; }
.demo-info b { color: var(--text); }
.demo-info a, .demo-links a { color: var(--text); border-bottom: 1px solid var(--edge); }
.demo-info a:hover, .demo-links a:hover { color: var(--orange); border-color: currentColor; }
.demo-info .keys-table { width: 100%; max-width: 520px; margin: 8px 0 22px; border-collapse: collapse; font-size: 14.5px; }
.demo-info .keys-table caption { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); padding-bottom: 6px; }
.demo-info .keys-table th, .demo-info .keys-table td { padding: 7px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.demo-info .keys-table th { width: 44%; padding-right: 12px; font-weight: 400; }
.demo-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.demo-links a { border-bottom: none; color: var(--dim); }

/* ---------- narrower windows ---------- */

/* Tablets and small laptops: the bars wrap instead of forcing a sideways scroll, and a
   score wider than its sheet scrolls inside the sheet. */
@media (max-width: 1240px) {
  .demobar, .toolbar, .transport-bar { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
  .demobar { min-height: 56px; }
  .toolbar { min-height: 52px; }
  .transport-bar { min-height: 72px; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .transport-bar .spacer { display: none; }
}
@media (max-width: 1024px) {
  .panel--left { width: 200px; padding: 16px 12px; }
  .panel--right { width: 224px; padding: 16px 12px; }
  .sheet--editor { padding: 28px 24px 32px; }
  .sheet--player { padding: 32px 28px 36px; }
  .sheet .figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sheet .figure .notation { min-width: 680px; }
}

/* Phones: the page scrolls as a whole, the editor's panels stack under the sheet, the
   fretboard scrolls sideways at a size you can still tap, and Play stays at the bottom. */
@media (max-width: 760px) {
  .app { height: auto; min-height: 100vh; min-height: 100dvh; }
  .screen, .workspace, .canvas { flex: none; }
  .canvas, .panel { overflow: visible; }

  /* Demo bar: logo and the call to action on one row, the example pieces on a scrolling row beneath. */
  .demobar { padding: 8px 12px; column-gap: 10px; }
  .demobar__logo { margin-right: 0; }
  .demobar__label, .demobar .spacer, .about__long { display: none; }
  .about__short { display: inline; }
  .demobar__cta { order: 1; margin-left: auto; height: 36px; padding: 0 14px; font-size: 13px; }
  .examples { order: 2; flex: 1 1 calc(100% - 140px); min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .example { height: 38px; padding: 0 10px; }
  .about { order: 3; }
  .about summary { height: 32px; padding: 0 10px; font-size: 12px; }
  /* A sheet from the bottom, so the button that opened it stays in reach to close it. */
  .about__panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 72vh; max-height: 72dvh; overflow: auto; grid-template-columns: 1fr; gap: 18px; padding: 18px 16px 24px; border-radius: 14px 14px 0 0; z-index: 20; }

  .titlebar { padding: 0 12px; }
  .titlebar .dots { display: none; }
  .titlebar__title { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .titlebar__side { width: auto; }
  .demo-page { padding: 40px 16px 32px; font-size: 15.5px; }
  .demo-info h1 { font-size: 34px; }
  .demo-info__intro { font-size: 17px; }

  /* Sheet: the notation keeps a readable size and scrolls sideways inside the page. */
  .canvas, .canvas--player { padding: 12px; }
  .guide { margin-bottom: 12px; padding: 10px 8px 10px 12px; }
  .sheet, .sheet--editor, .sheet--player { padding: 18px 12px 22px; border-width: 3px; }
  .score-title, .sheet--player .score-title { font-size: 24px; }
  .chord-row, .sheet--player .chord-row { flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
  .chord-row > div, .sheet--player .chord-row > div { width: 54px; }

  /* Editor: toolbar wraps; the selection and technique panel comes right after the sheet, then file, tracks and bars. */
  .toolbar { padding: 8px 10px; column-gap: 8px; }
  .toolbar .divider { display: none; }
  .toolbar .transport { margin-left: auto; }
  .workspace { flex-direction: column; }
  .canvas { order: 0; }
  .panel { width: auto; border: 0; border-top: 1px solid var(--line); padding: 14px 12px; }
  .panel--right { order: 1; gap: 18px; }
  .panel--right > div:last-child { display: none; }
  .panel--left { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .stack--bars { grid-column: 1 / -1; }
  .bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .bar { padding: 6px; }

  /* Fretboard: full size, scrolling sideways. */
  .fretpanel { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px 12px 8px; }
  .fretpanel__head, .fretpanel__body { min-width: 640px; }

  /* Player: the transport stays at the bottom of the screen while the score scrolls. */
  .transport-bar { position: sticky; bottom: 0; z-index: 5; padding: 10px 12px; column-gap: 10px; }
  .transport-bar .divider { display: none; }
  .now__bar { font-size: 14px; }
  .speed { flex: 1 1 100%; gap: 10px; }
  .speed { min-width: 0; }
  .speed input { flex: 1 1 60px; width: 60px; min-width: 0; }
  .toggle { padding: 0 10px; }
}

@media (max-width: 400px) {
  .demobar__tld { display: none; }
  .seg__btn, .seg__btn--player { padding: 0 8px; font-size: 12px; }
}
