/* Темы (спец. 5, «Темы»): все цвета — только здесь; тема = класс на корне */
.th-dark{color-scheme:dark;
--bg:#121311;--surface:#1A1B19;--surface-2:#1F201D;--popover:#1D1E1B;--inset:#161715;--chip:#232420;
--divider:#262824;--line:#2B2D29;--line-strong:#363933;--selected:#34352F;--hover:#2A2B27;--accent-soft:#3A2620;--bar:#2E302C;
--text:#EDE9E2;--text-2:#A39E94;--text-3:#6E6A62;
--accent:#CA5843;--accent-text:#E39580;--accent-tint:rgba(202,88,67,0.09);--accent-tint-2:rgba(202,88,67,0.12);--shadow:rgba(0,0,0,0.5);
--string:#45443F;--fret:#262824;--nut:#4A4844;--key-white:#E9E4DA;--key-black:#232420;--key-edge:transparent;
--logo-bg:#EDE9E2;--logo-fg:#141513;--note-out-bg:#262824;--note-out-fg:#77736C;
--sector-main:#6A3B29;--sector-near:#3A2A22;--center:#151614;--chord-in:#2A211D;--sector-tonic:#8F4432;--sector-hover:rgba(255,255,255,0.06);
--ring-in-base:#191A18;--ring-in-near:#33261F;--ring-in-main:#4E3023;--interval-line:rgba(163,158,148,0.7);
--key-out-white:#8E897F;--key-out-black:#77736C;
--note-root-bg:#CA5843;--note-root-fg:#FFFFFF;--note-third-bg:#95A7B8;--note-third-fg:#161715;
--note-fifth-bg:#546B85;--note-fifth-fg:#F2F0EC;--note-seventh-bg:#9A9187;--note-seventh-fg:#1E1F1C;
--note-other-bg:#36383B;--note-other-fg:#BEBAB2;
--mono-2:#313336;--mono-3:#3D4043;--mono-4:#494C50;--mono-5:#55585C;--mono-6:#606367;--mono-7:#6A6D71;--mono-fg:#F5F3EF}
.th-light{color-scheme:light;
--bg:#E3E0DA;--surface:#ECE9E4;--surface-2:#DCD8D1;--popover:#EFECE7;--inset:#E6E3DD;--chip:#DCD8D1;
--divider:#D4D0C8;--line:#CBC6BD;--line-strong:#BDB7AD;--selected:#D3CEC5;--hover:#DAD6CE;--accent-soft:#EBD3CA;--bar:#D3CEC5;
--text:#22231F;--text-2:#5F5B53;--text-3:#8E897F;
--accent:#C4523D;--accent-text:#A9432F;--accent-tint:rgba(196,82,61,0.09);--accent-tint-2:rgba(196,82,61,0.14);--shadow:rgba(40,30,20,0.18);
--string:#A8A39A;--fret:#D2CEC6;--nut:#858077;--key-white:#F3F1EC;--key-black:#2A2B28;--key-edge:#CBC6BD;
--logo-bg:#22231F;--logo-fg:#ECE9E4;--note-out-bg:#DCD8D1;--note-out-fg:#938E85;
--sector-main:#DDB3A5;--sector-near:#E6CBC1;--center:#E6E3DD;--chord-in:#EBD3CA;--sector-tonic:#CF8B74;--sector-hover:rgba(40,30,20,0.06);
--ring-in-base:#E1DED8;--ring-in-near:#E3C9BF;--ring-in-main:#D5A898;--interval-line:rgba(95,91,83,0.6);
--key-out-white:#A19C93;--key-out-black:#8E897F;
--note-root-bg:#C4523D;--note-root-fg:#FFFFFF;--note-third-bg:#8DA1B5;--note-third-fg:#101418;
--note-fifth-bg:#4E6580;--note-fifth-fg:#FFFFFF;--note-seventh-bg:#A1988B;--note-seventh-fg:#1E1F1C;
--note-other-bg:#D6D2CA;--note-other-fg:#4E4A43;
--mono-2:#D6D3CD;--mono-3:#CAC7C1;--mono-4:#BEBBB5;--mono-5:#B2AFA9;--mono-6:#A6A39E;--mono-7:#9C9993;--mono-fg:#1E1F1C}
/* Шрифты — свои файлы (fonts/, OFL). Знаки ♭ ♯ 𝄫 𝄪 — из своего шрифта (в Geist их нет): scripts/accidentals.py;
   метрики строки — как у Geist, чтобы знак не увеличивал высоту строки */
@font-face{font-family:Geist;src:url(../fonts/geist.woff2) format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'Sonari Accidentals';src:url(../fonts/accidentals.ttf) format('truetype');font-display:swap;
  unicode-range:U+266D,U+266F,U+1D12A-1D12B;ascent-override:100.5%;descent-override:29.5%;line-gap-override:0%}
/* Шкала шрифта (спец. 5, «Типографика»): 4 роли; на мобильной раскладке (< 900) — на ступень крупнее, спец. 10 */
:root{--fs-micro:11px;--fs-body:13px;--fs-title:15px;--fs-display:22px;
--note-char-dot:var(--note-root-bg);--label-w:104px;--sans:'Sonari Accidentals',Geist,'Helvetica Neue',system-ui,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{display:flex;flex-direction:column;min-height:100vh;margin:0;background:var(--bg);color:var(--text);font:var(--fs-body)/1.4 var(--sans)}
button,select{font:inherit}
/* Шапка (макет Hybrid.dc.html): логотип, вкладки разделов, поиск-заготовка, «Вид», «?», язык */
.topbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px;min-height:52px;padding:0 32px;border-bottom:1px solid var(--divider)}
/* Логотип и вкладки — на общей базовой линии (разный кегль 15 / 13 при центрировании сбивает строку): строка 51 px = шапка без рамки */
.brand{align-self:baseline;line-height:51px;white-space:nowrap;color:var(--text);text-decoration:none;font-size:var(--fs-title);font-weight:600}
.brand .logo{display:inline-flex;margin-right:10px;vertical-align:middle}
/* Логотип: светлая плашка, три «струны» и точка */
.logo{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:7px;background:var(--logo-bg)}
.logo svg{width:16px;height:16px;fill:none;stroke:var(--logo-fg);stroke-width:1.8}
.logo circle{fill:var(--logo-fg)}
.tabs{display:flex;gap:4px;align-self:baseline}
.tabs a{display:block;padding:0 12px;line-height:51px;color:var(--text-2);text-decoration:none;box-shadow:inset 0 -2px 0 transparent}
.tabs a:hover{color:var(--text)}
.tabs a[aria-current=page]{color:var(--text);box-shadow:inset 0 -2px 0 var(--accent)}
.tool-button{display:flex;align-items:center;gap:8px;height:32px;padding:0 10px;border:1px solid var(--line);border-radius:8px;
  background:transparent;color:var(--text);font-size:var(--fs-body);cursor:pointer}
.tool-button:hover,.tool-button[aria-expanded=true]{background:var(--chip)}
.tool-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}
.tool-button.square{justify-content:center;width:32px;padding:0;font-weight:600}
.search{width:240px;margin-left:auto;background:var(--surface);color:var(--text-3);cursor:default}
.search:hover{background:var(--surface)}
/* Пока поиск скрыт (data-stub), инструменты справа прижимает «Вид» */
.search[data-stub]+.view-picker{margin-left:auto}
.search svg{width:13px;height:13px}
.search span{flex:1;text-align:left}
.search kbd{font:inherit;font-size:var(--fs-micro);font-variant-numeric:tabular-nums}
.lang{gap:6px;padding:0 8px 0 10px;font-weight:600}
.lang svg{width:11px;height:11px;stroke:var(--text-2)}
.lang-menu{position:absolute;z-index:30;top:48px;right:32px;display:flex;flex-direction:column;gap:2px;width:200px;padding:6px;
  border:1px solid var(--line-strong);border-radius:12px;background:var(--popover);box-shadow:0 24px 60px var(--shadow)}
.lang-menu[hidden]{display:none}
.lang-menu button{display:flex;justify-content:space-between;align-items:center;height:34px;padding:0 10px;border:0;border-radius:8px;
  background:transparent;color:var(--text);font-size:var(--fs-body);cursor:pointer}
.lang-menu button:hover{background:var(--hover)}
.lang-menu button[aria-pressed=true]{background:var(--selected)}
.lang-menu button span:last-child{color:var(--text-2);font-size:var(--fs-micro);font-variant-numeric:tabular-nums}
/* Поповер «Вид»: строки «подпись — сегменты», ниже строй списком с нотами */
.view-popover{position:absolute;z-index:30;top:48px;right:32px;display:flex;flex-direction:column;width:440px;padding:8px;
  border:1px solid var(--line-strong);border-radius:16px;background:var(--popover);box-shadow:0 24px 60px var(--shadow)}
.view-popover[hidden]{display:none}
.view-popover button{cursor:pointer}
.view-row{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:12px;padding:8px 10px}
.view-row>span,.view-title{color:var(--text-2);font-size:var(--fs-body)}
.view-row .pop-seg button{padding:0 8px;white-space:nowrap}
.view-divider{height:1px;margin:6px 10px;background:var(--line)}
.view-title{padding:8px 10px 4px}
.view-tuning{display:flex;justify-content:space-between;align-items:center;width:100%;height:34px;padding:0 10px;border:0;border-radius:8px;
  background:transparent;color:var(--text);font-size:var(--fs-body)}
.view-tuning:hover{background:var(--hover)}
.view-tuning[aria-pressed=true]{background:var(--selected)}
.view-tuning span:last-child{color:var(--text-2);font-variant-numeric:tabular-nums}
/* Части нижнего листа «Вид» (< 900): ручка, заголовок с «Готово», «Язык», «Справка»; затемнение; нижняя панель разделов */
.sheet-handle,.sheet-head,.sheet-only,.sheet-backdrop,.bottom-nav,.sections-picker,.head-object,.circle-mode,
.circle-mode-sheet{display:none}
.sections-sheet[hidden],.circle-mode-sheet[hidden]{display:none}
main{flex:1;width:100%;padding:32px 32px 40px}
.fretboard-panel{border-radius:16px;background:var(--surface);padding:20px 22px 18px}
/* «Гаммы и аккорды»: гриф, пианино и карточки — отдельными блоками; «Инструмент: Пианино» скрывает гриф и строку позиций */
.scales-view{display:flex;flex-direction:column;gap:24px}
.scales-view[hidden],.piano-panel[hidden]{display:none}
.fretboard-panel.no-board .board-bar,.fretboard-panel.no-board .fretboard-scroll{display:none}
/* Скрытые заготовки (data-stub): вкладки «Песни» и «Тренажёры», поиск ⌘K, ссылки подвала; вернуть — убрать это правило */
[data-stub]{display:none !important}
/* Разделы-заготовки «Песни» и «Тренажёры» */
.section-stub{padding:26px;background:var(--surface)}
.section-stub h2{margin:0;font-size:var(--fs-display);font-weight:600}
.section-stub p{margin:8px 0 0;color:var(--text-2)}
/* «Квинтовый круг» (макет Circle.dc.html): слева круг 560 px и под ним «Как сыграть», справа карточки до 520 px */
/* Колонки круга и карточек — одной высоты: последняя карточка дотягивается до низа круга (замечание пользователя 2026-10-18) */
.circle-view{display:flex;flex-wrap:wrap;gap:32px;align-items:stretch;justify-content:center}
.circle-view[hidden]{display:none}
/* Перерисовка круга — внутри .circle-body (circle.js), раскладку задают его дети */
.circle-body{display:contents}
/* Колонка круга — на карточке, как карточки справа (deviations.md); ширина прежняя: круг внутри — 524 px вместо 560.
   --cut — цвет разделителей секторов и колец: цвет карточки */
.circle-panel{display:flex;flex:1 1 560px;max-width:560px;flex-direction:column;align-items:center;gap:18px;min-width:0;
  padding:18px 18px 20px;border-radius:16px;background:var(--surface);container-type:inline-size}
/* Круг до 560 px; уже — уменьшается целиком: --u — «пиксель» круга, кнопки расставлены в процентах (circle.js) */
.circle{--cut:var(--surface);--u:1px;position:relative;width:calc(560 * var(--u));height:calc(560 * var(--u))}
/* Без единиц cqw (Safari < 16) — круг 560 px как был, а не пустой */
@supports(width:1cqw){.circle{--u:calc(min(560px,100cqw) / 560)}}
.circle-ring{position:absolute;inset:0;border-radius:999px}
.circle-ring.inner{inset:calc(110 * var(--u));box-shadow:0 0 0 2px var(--cut)}
/* Разделители секторов — 6 полос постоянной ширины через центр (по границам секторов) */
.circle-ring.spokes{background:
  linear-gradient(15deg,transparent calc(50% - 2px),var(--cut) 0 calc(50% + 2px),transparent 0),
  linear-gradient(45deg,transparent calc(50% - 2px),var(--cut) 0 calc(50% + 2px),transparent 0),
  linear-gradient(75deg,transparent calc(50% - 2px),var(--cut) 0 calc(50% + 2px),transparent 0),
  linear-gradient(105deg,transparent calc(50% - 2px),var(--cut) 0 calc(50% + 2px),transparent 0),
  linear-gradient(135deg,transparent calc(50% - 2px),var(--cut) 0 calc(50% + 2px),transparent 0),
  linear-gradient(165deg,transparent calc(50% - 2px),var(--cut) 0 calc(50% + 2px),transparent 0)}
/* Подписи круга уменьшаются с ним (--u), но не меньше --fs-title у мажоров и --fs-micro у миноров и в центре */
.circle-center{position:absolute;inset:calc(200 * var(--u));display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:max(1px,calc(4 * var(--u)));padding:0 6px;border-radius:999px;background:var(--center);box-shadow:0 0 0 2px var(--cut);
  color:var(--text-2);font-size:clamp(var(--fs-micro),calc(15 * var(--u)),var(--fs-body));line-height:1.15;text-align:center}
.circle-center b{color:var(--text);font-size:clamp(var(--fs-title),calc(24 * var(--u)),var(--fs-display));font-weight:600;line-height:1}
.circle-center span:last-child{font-variant-numeric:tabular-nums}
/* Кнопка круга — по центру своей точки (circle.js); высота растёт под подписи, если круг слишком мал */
.circle-key{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:max(1px,calc(3 * var(--u)));
  width:calc(68 * var(--u));min-height:calc(56 * var(--u));padding:0;border:0;border-radius:calc(12 * var(--u));background:transparent;
  color:var(--text);line-height:1;pointer-events:none;transform:translate(-50%,-50%)}
.circle-key span{font-size:clamp(var(--fs-title),calc(24 * var(--u)),var(--fs-display));font-weight:600}
.circle-key small,.key-note small{font-size:var(--fs-micro);font-variant-numeric:tabular-nums}
.circle-key small{color:var(--text-2)}
.circle-key small.degree{color:var(--accent-text)}
.circle-key small.tonic{color:var(--text)}
.circle-key.minor{width:calc(56 * var(--u));min-height:calc(44 * var(--u));border-radius:calc(10 * var(--u));color:var(--text-2)}
.circle-key.minor.near{color:var(--text)}
.circle-key.minor span{font-size:clamp(var(--fs-micro),calc(13 * var(--u)),var(--fs-body));font-weight:400}
.circle-key.minor.tonic span{font-size:clamp(var(--fs-body),calc(15 * var(--u)),var(--fs-title));font-weight:600}
/* Сектор — кнопка формы кольцевого сегмента (clip-path из circle.js), подписи поверх без событий; наведение и фокус — подсветка */
.circle-sector{position:absolute;inset:0;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer}
.circle-sector:hover{background:var(--sector-hover)}
/* Фокус с клавиатуры — заметнее наведения: рамку обрезает clip-path, поэтому заливка акцентом */
.circle-sector:focus-visible{background:var(--accent-tint-2);outline:none}
/* Маленький круг: подпись «Знаки» в центре скрыта — число и знаки помещаются в диск */
@container(max-width:419px){.circle-center span:first-child{display:none}}
.circle-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;color:var(--text-2)}
.circle-legend span{display:flex;align-items:center;gap:6px}
.circle-legend i{width:12px;height:12px;border-radius:3px}
.circle-cards{display:flex;flex:0 1 520px;flex-direction:column;gap:14px;min-width:0}
.circle-cards>:last-child{flex:1}
.circle-card{display:flex;flex-direction:column;gap:10px;padding:14px 18px 18px;border-radius:16px;background:var(--surface)}
.circle-card h2{margin:0;font-size:var(--fs-display);font-weight:600;line-height:1.1}
.circle-card h2 em{color:var(--accent);font-style:normal}
.circle-card h3{margin:0;font-size:var(--fs-body);font-weight:600}
.circle-card p{margin:0;color:var(--text-2)}
.circle-card p b{color:var(--text);font-weight:600}
.read-card dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 12px;margin:0}
.read-card dt{color:var(--text-2)}.read-card dd{margin:0;color:var(--text)}
.circle-card small{color:var(--text-2);font-size:var(--fs-micro)}
.card-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.key-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.key-note{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:48px;
  border-radius:9px;background:var(--note-other-bg);color:var(--note-other-fg);line-height:1}
.key-note b{font-size:var(--fs-title);font-weight:600}
.key-note small{opacity:.8;color:inherit}
.key-note.char::after{content:'';position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;background:var(--note-char-dot)}
/* Прогрессии: радиогруппа строк, выбранная — --accent-soft; своя прогрессия — кнопки ступеней и плашки с ✕ */
.progressions{display:flex;flex-direction:column;gap:2px}
/* Колонка аккордов — не шире 45 %: длинная прогрессия (блюз, Пахельбель) переносится, а не сжимает цифры */
.progression{display:grid;grid-template-columns:minmax(0,1fr) fit-content(45%);align-items:center;gap:12px;min-height:40px;
  padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left;font-variant-numeric:tabular-nums;cursor:pointer}
.progression>span{display:flex;flex-direction:column;gap:2px}
.progression b{font-weight:600}
.progression:hover{background:var(--hover)}
.progression[aria-pressed=true]{background:var(--accent-soft)}
/* Аккорд не из лада — пунктиром; пояснение под списком */
.prog-out{text-decoration:underline dotted;text-underline-offset:3px}
.prog-note{color:var(--text-2)}
/* Выбор прогрессии — кнопка со списком (поповер под ней, на < 900 — нижний лист); под ней — аккорды выбранной и где звучит */
.prog-pick{position:relative}
.prog-picker{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:8px 12px;
  border:1px solid var(--line);border-radius:10px;background:var(--inset);color:var(--text);text-align:left;
  font-variant-numeric:tabular-nums;cursor:pointer}
.prog-picker:hover{background:var(--hover)}
.prog-picker>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.prog-picker small{color:var(--text-2)}
.prog-picker svg{flex:none;width:12px;height:12px;fill:none;stroke:var(--text-2);stroke-width:1.5}
.prog-menu{right:0;max-height:min(60vh,520px);overflow-y:auto;padding:6px}
/* Под кнопкой любой высоты: .popover задаёт top:52px позже в файле — нужна большая специфичность; на < 900 — снова лист (top:auto) */
.prog-pick>.prog-menu{top:calc(100% + 6px)}
.prog-current{display:flex;flex-direction:column;gap:4px;padding:0 4px;font-variant-numeric:tabular-nums}
.prog-current b{font-weight:600}
.prog-current small{color:var(--text-2)}
/* «Не из лада» — чужие аккорды выбранной прогрессии под палитрой */
.palette-sub{margin:6px 0 0;color:var(--text-2);font-size:var(--fs-body);font-weight:600}
/* «Послушать»: темп и ▶ в заголовке «Прогрессий»; звучащий аккорд — в строке, плитке палитры и ячейке круга */
.progression-card .card-head{flex-wrap:wrap;align-items:center}
.prog-play{display:flex;align-items:center;gap:8px}
.prog-step.playing{color:var(--accent-text)}
.custom-chord.playing{box-shadow:inset 0 0 0 2px var(--accent)}
.chord-tile.playing{box-shadow:inset 0 0 0 2px var(--accent)}
.circle-key.playing{border-radius:calc(10 * var(--u));box-shadow:0 0 0 2px var(--accent)}
/* Текст только для экранного диктора */
.sr-note{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.custom-progression{display:flex;flex-direction:column;gap:8px;padding-top:10px;border-top:1px solid var(--divider)}
.custom-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.custom-row>span:first-child{margin-right:4px;color:var(--text-2)}
.custom-add{height:28px;min-width:36px;padding:0 6px;border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--text);
  font-variant-numeric:tabular-nums;cursor:pointer}
.custom-add:hover,.custom-clear:hover{background:var(--hover)}
.custom-add:disabled{color:var(--text-3);cursor:default}
.custom-add:disabled:hover{background:transparent}
.custom-chord{display:flex;align-items:center;gap:2px;height:28px;padding:0 2px 0 10px;border-radius:7px;background:var(--selected);font-weight:600}
.custom-chord button{display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;border-radius:5px;
  background:transparent;color:var(--text-2);cursor:pointer}
.custom-chord svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.6}
.custom-clear{height:28px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:var(--text-2);cursor:pointer}
/* «Аккорды лада» — палитра на всю ширину под кругом и карточками (1112 px = 560 + 32 + 520): плитки ступеней в ряд,
   уже — переносятся (auto-fit, не меньше 120 px: на 560 — 4 + 3); аккорды прогрессии — --chord-in, номера — порядок в прогрессии.
   Поля добирают ширину до 100%: палитра всегда своей строкой, и на окне шире 2256 px тоже */
.chords-card{flex:0 0 min(100%,1112px);margin-inline:max(0px,calc((100% - 1112px) / 2));box-sizing:border-box}
.chord-palette{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.chord-tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 8px 12px;border-radius:12px;background:var(--surface-2)}
.chord-tile.in{background:var(--chord-in)}
.tile-head{display:flex;justify-content:space-between;align-items:baseline;align-self:stretch;gap:6px}
.tile-head b{font-weight:600;font-variant-numeric:tabular-nums}
.tile-head b.tonic{color:var(--accent-text)}
.tile-head small{color:var(--accent-text);font-weight:600;font-variant-numeric:tabular-nums}
.tile-name{font-size:var(--fs-title);font-weight:600}
.chord-tones{display:flex;gap:4px}
.chord-diagram{display:flex;flex-direction:column;align-items:center;gap:4px;margin:0;font-variant-numeric:tabular-nums}
.chord-diagram svg{width:70px;height:82px;overflow:visible}
.chord-diagram .nut{fill:var(--nut)}
.chord-diagram .barre{fill:var(--text-3)}
.chord-diagram .fret{stroke:var(--line-strong)}
.chord-diagram .string{stroke:var(--string)}
.chord-diagram text{fill:var(--text-2);font-size:var(--fs-micro);text-anchor:middle}
.chord-diagram .root{fill:var(--note-root-bg)}
.chord-diagram .third{fill:var(--note-third-bg)}
.chord-diagram .fifth{fill:var(--note-fifth-bg)}
.chord-diagram .seventh{fill:var(--note-seventh-bg)}
.chord-diagram .other{fill:var(--note-other-fg)}
/* «Монохром»: кружки серые по номеру ступени (deviations.md) */
.chord-diagram .mono-2{fill:var(--mono-2)}.chord-diagram .mono-3{fill:var(--mono-3)}.chord-diagram .mono-4{fill:var(--mono-4)}
.chord-diagram .mono-5{fill:var(--mono-5)}.chord-diagram .mono-6{fill:var(--mono-6)}.chord-diagram .mono-7{fill:var(--mono-7)}
/* Кружок 7 px без подписи: серый сливается со струнами и фоном — обводка */
.chord-diagram [class*=mono-]{stroke:var(--text-3);stroke-width:1}
/* «Аппликатуры» (chords.js, макета нет): карточка выбора — строки «подпись | сегменты» (подпись слева, на < 600 — сверху),
   «Бас» и «Область» — в одной строке, где помещаются; ниже сетка диаграмм-кнопок */
.chords-view{display:flex;flex-direction:column;gap:16px;max-width:1112px;margin-inline:auto}
.chords-view[hidden]{display:none}
.pick-row{display:flex;align-items:center;gap:6px 12px}
.pick-row>span{flex:none;width:72px;color:var(--text-2)}
.pick-pair{display:flex;flex-wrap:wrap;gap:10px 40px}
.pick-segs{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.chords-view .segment{display:flex;flex-wrap:wrap}
.chords-view .segment button{min-width:36px}
.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.form-tile{display:flex;justify-content:center;width:100%;padding:10px 4px 8px;border:0;border-radius:12px;background:var(--surface-2);
  color:inherit;font:inherit;cursor:pointer}
.form-tile:hover{background:var(--hover)}
.form-tile[aria-pressed=true]{background:var(--selected);box-shadow:inset 0 0 0 2px var(--accent)}
.forms-empty{padding:12px 0}
.form-tile small{white-space:nowrap;font-size:var(--fs-body)}
/* Диаграмма в плитке — в 1,6 раза крупнее, чем на круге; подписи в SVG — в единицах viewBox (8 → ~13 px) */
.form-tile .chord-diagram{gap:6px}
.form-tile .chord-diagram svg{width:128px;height:131px}
.form-tile .chord-diagram text{font-size:8px}
.chord-diagram .base-fret{fill:var(--text-2);text-anchor:end}
/* Мини-клавиатура аккорда в плитках круга (инструмент «Пианино» или «Оба») */
.chord-keys svg{height:44px}
.chord-keys .white{fill:var(--key-white);stroke:var(--key-edge)}
.chord-keys .black{fill:var(--key-black)}
/* Легенда нот аккорда над сеткой форм: чипы «Тональности» поменьше; «прочие» — как кружок диаграммы (заливка --note-other-fg) */
.chord-legend{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.chord-legend .key-note{width:52px;height:44px}
.chord-legend .key-note.other{background:var(--note-other-fg);color:var(--note-other-bg)}
.forms-card .card-head{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px 20px}
.forms-card h3{font-size:var(--fs-title)}
/* Строка объекта [C ▾ | Дорийский ▾] с подписью семейства; справа — чипы «Звуки» и строка интервала (макет Hybrid.dc.html) */
.object-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px 32px}
.object-block{display:flex;flex-direction:column;gap:8px;min-width:0}
/* «Сбросить выбор» (спец. 2.7): призрачная кнопка-иконка 36 px справа от строки объекта; смысл — в title и aria-label */
.object-row{display:flex;align-items:center;gap:8px}
.reset-button{display:flex;flex:none;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;
  background:transparent;color:var(--text-2);cursor:pointer}
.reset-button:hover{background:var(--hover);color:var(--text)}
.reset-button[hidden]{display:none}
.reset-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.object-picker{position:relative;display:flex;align-self:flex-start;align-items:stretch;height:44px;border-radius:10px;background:var(--surface-2)}
.object-button{display:flex;align-items:center;gap:8px;padding:0 14px;border:0;border-radius:0 10px 10px 0;background:transparent;
  color:var(--text);font-size:var(--fs-display);font-weight:600;line-height:1;cursor:pointer}
.object-button.tonic{padding:0 12px 0 16px;border-radius:10px 0 0 10px;color:var(--accent)}
.object-button:hover,.object-button[aria-expanded=true]{background:var(--hover)}
.object-button svg{width:12px;height:12px;fill:none;stroke:var(--text-2);stroke-width:1.5}
.object-divider{width:1px;margin:10px 0;background:var(--selected)}
.object-caption{min-height:11px;padding-left:4px;color:var(--text-2);font-size:var(--fs-micro);line-height:1}
/* Поповеры строки объекта: тоника — круг или сетка; гамма и аккорд — вкладки, семейства, ступени в колонках 1–7 */
.popover{position:absolute;z-index:20;top:52px;left:0;border:1px solid var(--line-strong);border-radius:16px;
  background:var(--popover);box-shadow:0 24px 60px var(--shadow)}
.popover[hidden]{display:none}
.popover button{cursor:pointer}
.tonic-popover{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px}
.pop-seg{display:flex;gap:2px;align-self:stretch;padding:2px;border:1px solid var(--line);border-radius:9px;background:var(--inset)}
.pop-seg button{flex:1;height:28px;border:0;border-radius:7px;background:transparent;color:var(--text-2);font-size:var(--fs-body)}
.pop-seg button[aria-pressed=true]{background:var(--selected);color:var(--text)}
.tonic-circle{position:relative;width:280px;height:280px;border-radius:50%;background:var(--chip)}
.tonic-center{position:absolute;inset:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  border-radius:50%;background:var(--surface)}
.tonic-center span{color:var(--text-2);font-size:var(--fs-micro)}
.tonic-center b{color:var(--accent);font-size:var(--fs-display);font-weight:600;line-height:1}
.tonic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:280px}
.tonic-key{height:32px;padding:0;border:0;border-radius:9px;background:transparent;color:var(--text);font-size:var(--fs-body);font-weight:600;
  white-space:nowrap}
.tonic-circle .tonic-key{position:absolute;width:52px}
.tonic-grid .tonic-key{height:40px;background:var(--chip)}
.tonic-key:hover{background:var(--hover)}
.tonic-key[aria-pressed=true]{background:var(--accent);color:var(--note-root-fg)}
.tonic-key .alt{font-weight:400;opacity:.65}
.mode-popover{left:64px;width:760px;overflow:hidden}
.mode-tabs{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:10px 10px 0;border-bottom:1px solid var(--line)}
.mode-tabs [role=tablist]{display:flex;gap:4px}
.mode-tabs [role=tab]{height:36px;padding:0 14px;border:0;background:transparent;color:var(--text-2);font-size:var(--fs-body);
  box-shadow:inset 0 -2px 0 transparent}
.mode-tabs [role=tab]:hover{color:var(--text)}
.mode-tabs [role=tab][aria-selected=true]{color:var(--text);box-shadow:inset 0 -2px 0 var(--accent)}
.mode-body{display:flex}
.mode-families{display:flex;flex-direction:column;gap:2px;flex-shrink:0;width:200px;padding:10px;border-right:1px solid var(--line)}
.mode-families button{height:34px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:var(--fs-body);
  text-align:left}
.mode-families button:hover{background:var(--hover)}
.mode-families button[aria-pressed=true]{background:var(--selected)}
.mode-list{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;padding:10px}
/* Строка списка: название, ступени 1–7, характерная нота */
.mode-grid{display:grid;grid-template-columns:minmax(0,1fr) repeat(7,36px) 44px;align-items:center;gap:4px;padding:4px 10px 6px;
  color:var(--text-2);font-size:var(--fs-micro);font-variant-numeric:tabular-nums}
.mode-grid>span{text-align:center}
.mode-grid>span:first-child{text-align:left}
.mode-grid>span:last-child{text-align:right}
.mode-row{min-height:34px;padding:6px 10px;border:0;border-radius:8px;background:transparent;font-size:var(--fs-body);text-align:left}
.mode-row:hover{background:var(--hover)}
.mode-row[aria-pressed=true]{background:var(--accent-soft)}
/* «Скоро» (спец. 2.8): --text-3 и капсула, без наведения; прозрачность не используется */
.mode-row[aria-disabled=true]{cursor:default}
.mode-row[aria-disabled=true]:hover{background:transparent}
.mode-row[aria-disabled=true] :is(.mode-name,small,.diff,.gap,span){color:var(--text-3)}
.soon{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line-strong);
  color:var(--text-3);font-size:var(--fs-micro);line-height:1}
.mode-row .mode-name{display:flex;flex-direction:column;gap:2px;min-width:0;color:var(--text)}
.mode-name small{color:var(--text-2);font-size:var(--fs-micro)}
.mode-row .diff,.mode-row .mode-char{color:var(--accent-text)}
.mode-row .gap{color:var(--text-3)}
.pop-note{margin:0;padding:8px 10px 2px;color:var(--text-2);font-size:var(--fs-body)}
.pop-note em{color:var(--accent-text);font-style:normal}
/* Чипы «Звуки»: одинаковой ширины, цвет — роль ступени (спец. 2.4), точка — характерная нота */
.tones{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.tone-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin:0;padding:0;list-style:none}
.tone-chips li{display:flex;flex-direction:column;align-items:center;gap:8px;width:56px}
.tone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;height:44px;
  border:0;border-radius:10px;background:var(--note-other-bg);color:var(--note-other-fg);cursor:pointer}
.tone b{font-size:var(--fs-title);font-weight:600;line-height:1}
.tone span{font-size:var(--fs-micro);line-height:1;opacity:.8;font-variant-numeric:tabular-nums}
/* Выбранный интервал (спец. 2.6): двойное кольцо тенью — раскладка не сдвигается; остальные чипы, кроме тоники, приглушены */
.tone:hover{filter:brightness(1.08)}
.tone:focus-visible{outline:2px solid var(--accent-text);outline-offset:5px}
.tone[aria-pressed=true]{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--text)}
.tone-chips li.dim{opacity:.45}
.tone.root,.piano-mark.root,.key-note.root,.iv-note.root{background:var(--note-root-bg);color:var(--note-root-fg)}
.tone.third,.piano-mark.third,.key-note.third,.iv-note.third{background:var(--note-third-bg);color:var(--note-third-fg)}
.tone.fifth,.piano-mark.fifth,.key-note.fifth,.iv-note.fifth{background:var(--note-fifth-bg);color:var(--note-fifth-fg)}
.tone.seventh,.piano-mark.seventh,.key-note.seventh,.iv-note.seventh{background:var(--note-seventh-bg);color:var(--note-seventh-fg)}
.tone.char::after,.piano-mark.char::after{content:'';position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;
  background:var(--note-char-dot)}
.tone.mono-2,.piano-mark.mono-2,.iv-note.mono-2,.key-note.mono-2{background:var(--mono-2)}
.tone.mono-3,.piano-mark.mono-3,.iv-note.mono-3,.key-note.mono-3{background:var(--mono-3)}
.tone.mono-4,.piano-mark.mono-4,.iv-note.mono-4,.key-note.mono-4{background:var(--mono-4)}
.tone.mono-5,.piano-mark.mono-5,.iv-note.mono-5,.key-note.mono-5{background:var(--mono-5)}
.tone.mono-6,.piano-mark.mono-6,.iv-note.mono-6,.key-note.mono-6{background:var(--mono-6)}
.tone.mono-7,.piano-mark.mono-7,.iv-note.mono-7,.key-note.mono-7{background:var(--mono-7)}
.tone[class*=mono-],.piano-mark[class*=mono-],.iv-note[class*=mono-],.key-note[class*=mono-]{color:var(--mono-fg)}
.tone-caption{color:var(--text-2);font-size:var(--fs-micro);line-height:1}
.tone-caption.char{color:var(--accent-text)}
/* Строка интервала (спец. 2.6): покой — пусто (как пользоваться — ⓘ справа); выбор или нажатая нота — плашка
   с мини-кружками в цветах ролей. На desktop строка с ⓘ — справа под чипами, уже — плашка слева, ⓘ у правого края */
.interval-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;align-self:stretch;min-width:0;min-height:28px}
.interval-info:empty{display:none}
.interval-info{display:flex;align-items:center;gap:10px;height:28px;margin:0;color:var(--text-2);font-size:var(--fs-micro);font-variant-numeric:tabular-nums}
.interval-info.on{padding:0 12px;border-radius:8px;background:var(--surface-2);font-size:var(--fs-body)}
.interval-info.on:has(.interval-clear){padding-right:4px}
.interval-info b{color:var(--text);font-weight:600}
.interval-pair{display:flex;align-items:center;gap:6px}
.iv-note{display:flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 4px;box-sizing:border-box;
  border-radius:999px;background:var(--note-other-bg);color:var(--note-other-fg);font-size:var(--fs-micro);font-weight:600;font-style:normal}
.iv-note.out{background:var(--note-out-bg);color:var(--note-out-fg)}
.iv-note.char{position:relative}
.iv-note.char::after{content:'';position:absolute;top:-1px;right:-1px;width:5px;height:5px;border-radius:50%;background:var(--note-char-dot)}
.interval-arrow{width:14px;height:10px;fill:none;stroke:var(--text-2);stroke-width:1.5}
.interval-clear{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;
  background:transparent;color:var(--text-2);cursor:pointer}
.interval-clear:hover{background:var(--hover);color:var(--text)}
.interval-clear svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}
.hint{color:var(--text-2);font-size:var(--fs-micro)}
.control-label{color:var(--text-2);font-size:var(--fs-micro)}
.fretboard-scroll{overflow-x:auto;margin-top:12px}
/* Строка над грифом (спец. 2.9): две строки по 34 px, вторая есть всегда — гриф не прыгает при переключениях.
   1 — главный выбор; 2 — «Струны», «Форма», переключатель ‹ форма › | Все и подсказка с многоточием справа */
.board-bar{display:flex;flex-direction:column;gap:8px;margin-top:24px;padding-bottom:16px;border-bottom:1px solid var(--divider)}
.board-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;min-width:0;min-height:34px}
.board-groups{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.board-group{display:flex;align-items:center;gap:10px}
.board-group>span:first-child,.board-hint{color:var(--text-2)}
/* Подписи групп одной ширины — сегменты обеих строк начинаются с одного места */
.board-group>span:first-child{min-width:60px}
.board-row>.board-groups:empty,.board-group[hidden]{display:none}
.board-hint{flex:1 1 160px;min-width:0;overflow:hidden;text-align:right;white-space:nowrap;text-overflow:ellipsis}
.label-short{display:none}
.segment,.shape-switch{display:flex;gap:2px;padding:2px;border:1px solid var(--line);border-radius:9px}
.segment{background:var(--inset)}
.segment button,.shape-switch button{height:28px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:var(--text-2);
  font-size:var(--fs-body);white-space:nowrap;cursor:pointer}
.segment button:hover,.shape-switch button:hover{background:var(--hover);color:var(--text)}
.segment button[aria-pressed=true]{background:var(--selected);color:var(--text)}
.segment button[aria-disabled=true]{color:var(--text-3);cursor:default}
.segment button[aria-disabled=true]:hover{background:transparent;color:var(--text-3)}
.grid-icon{display:none}
.shape-switch button{display:flex;align-items:center;justify-content:center;width:30px;padding:0;color:var(--text)}
.shape-switch .shape-text{display:flex;align-items:center;justify-content:center;min-width:270px;padding:0 10px;white-space:nowrap;
  font-variant-numeric:tabular-nums}
.shape-switch .shape-all{width:auto;margin-left:2px;padding:0 10px;color:var(--text-2)}
.shape-switch .shape-all[aria-pressed=true]{background:var(--selected);color:var(--text)}
.shape-switch svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6}
/* Полоса под грифом: бары позиций по ладам, выбранный — акцент */
.board-strip{display:flex;flex-direction:column;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--divider)}
.strip-head{display:flex;align-items:center;gap:12px}
.strip-head b{font-weight:600}.strip-head span{color:var(--text-2)}
.strip-bars{position:relative}
.strip-bars button{position:absolute;height:22px;padding:0 8px;border:0;border-radius:6px;background:var(--bar);color:var(--text);
  font-size:var(--fs-micro);font-weight:600;text-align:left;white-space:nowrap;overflow:hidden;cursor:pointer}
.strip-bars button:hover{filter:brightness(1.15)}
.strip-bars button[aria-pressed=true]{background:var(--accent);color:var(--note-root-fg)}
/* Гриф по макету: без подложки, струны и лады на фоне карточки; цвета нот — по ролям ступеней (спец. 2.4) */
.fretboard{display:block}
.string{fill:var(--string)}
.fret{fill:var(--fret)}
.nut{fill:var(--nut)}
.position-tint{fill:var(--accent-tint)}
.fret-label{fill:var(--text-2);font-size:var(--fs-micro);font-variant-numeric:tabular-nums;text-anchor:middle}
.fret-label.inlay{fill:var(--text)}
.fret-marker{fill:var(--text-2)}
.open-name{fill:var(--text-3);font-size:var(--fs-micro);text-anchor:middle}
.open-name.muted{fill:var(--text-2);font-size:var(--fs-title)}
.interval-link{stroke:var(--interval-line);stroke-width:3;stroke-linecap:round}
.note-dot{cursor:pointer}
.note-dot:hover .note-body>circle{filter:brightness(1.22)}
/* Перебор гаммы: звучащая нота — обводка и чуть крупнее */
.note-dot.playing .note-body{transform:scale(1.18)}
.note-dot.playing .note-body>circle:not(.char-dot){stroke:var(--text);stroke-width:2.5}
.note-dot circle{fill:var(--note-other-bg)}
.note-dot text{fill:var(--note-other-fg);font-size:var(--fs-micro);font-weight:600;text-anchor:middle;pointer-events:none}
.note-dot.root circle{fill:var(--note-root-bg)}.note-dot.root text{fill:var(--note-root-fg)}
.note-dot.third circle{fill:var(--note-third-bg)}.note-dot.third text{fill:var(--note-third-fg)}
.note-dot.fifth circle{fill:var(--note-fifth-bg)}.note-dot.fifth text{fill:var(--note-fifth-fg)}
.note-dot.seventh circle{fill:var(--note-seventh-bg)}.note-dot.seventh text{fill:var(--note-seventh-fg)}
/* Ноты вне лада («Все ноты»): без кружка, одной подписью, как на пианино; обводка цветом карточки — струна не перечёркивает подпись */
.note-dot.out circle{fill:transparent}
.note-dot.out text{fill:var(--note-out-fg);stroke:var(--surface);stroke-width:3px;paint-order:stroke}
.note-dot .char-dot{fill:var(--note-char-dot);stroke:var(--surface);stroke-width:3;paint-order:stroke}
.note-dot.mono-2 circle{fill:var(--mono-2)}.note-dot.mono-3 circle{fill:var(--mono-3)}.note-dot.mono-4 circle{fill:var(--mono-4)}
.note-dot.mono-5 circle{fill:var(--mono-5)}.note-dot.mono-6 circle{fill:var(--mono-6)}.note-dot.mono-7 circle{fill:var(--mono-7)}
.note-dot[class*=mono-] text{fill:var(--mono-fg)}
/* Подложка приглушённой ноты: фон карточки, на подсвеченном ладу — ещё подсветка */
.fretboard .note-dot circle.note-under{fill:var(--surface)}
.fretboard .note-dot circle.note-under.tint{fill:var(--accent-tint)}
/* Пианино по макету, пропорции как в Synthari: 1–3 октавы на всю ширину (piano.js), чёрные — 60 % высоты;
   метки — цвета ролей, как у чипов «Звуки» (точка характерной — тоже) */
.piano-panel{border-radius:16px;background:var(--surface);padding:16px 18px 18px}
.piano{position:relative;display:flex;gap:2px;height:150px;touch-action:none;user-select:none;-webkit-user-select:none;
  -webkit-touch-callout:none}
.piano-key{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0;padding:0 0 8px;border:0;
  border-radius:0 0 6px 6px;background:var(--key-white);box-shadow:inset 0 0 0 1px var(--key-edge);cursor:pointer}
.piano-key.black{position:absolute;top:0;left:var(--at);width:var(--black-size);height:60%;padding-bottom:7px;border-radius:0 0 5px 5px;
  background:var(--key-black);box-shadow:none}
/* Нажатая клавиша (как в Synthari) */
.piano-key.down{background:var(--accent)}
.piano-mark{position:relative;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;
  background:var(--note-other-bg);color:var(--note-other-fg);font-size:var(--fs-micro);font-weight:600}
.piano-key.black .piano-mark{width:20px;height:20px}
/* Ноты вне лада на клавишах (спец. 2.8): без кружка, одной подписью; размер как у кружка — подписи на одной высоте */
.piano-mark.out{background:transparent;color:var(--key-out-white)}
.piano-key.black .piano-mark.out{color:var(--key-out-black)}
.piano-mark.char::after{top:-1px;right:-1px;width:5px;height:5px}
.piano-mark.dim{opacity:.22}.piano-mark.out.dim{opacity:.18}
/* Стрелки октавы ‹ C3 › над клавишами при 1 и 2 октавах (как в Synthari) */
.octave{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-bottom:10px}
.octave[hidden]{display:none}
.octave output{min-width:40px;text-align:center;font-variant-numeric:tabular-nums;color:var(--text-2)}
.octave .tool-button svg path{stroke-linecap:round;stroke-linejoin:round}
.octave .tool-button:disabled{opacity:.4;cursor:default}
/* Подсказка ⓘ (hint.js): поповер по клику под кнопкой, сдвигается внутрь окна */
.hint{position:relative;display:inline-flex}
.hint-button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:7px;background:transparent;
  color:var(--text-3);cursor:pointer}
.hint-button:hover,.hint-button[aria-expanded=true]{background:var(--hover);color:var(--text)}
.hint-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}
.hint-button .hint-dot{fill:currentColor}
.hint-pop{position:absolute;z-index:25;top:calc(100% + 6px);left:50%;width:max-content;max-width:min(280px,calc(100vw - 32px));
  padding:10px 12px;transform:translateX(-50%);border:1px solid var(--line-strong);border-radius:10px;background:var(--popover);
  box-shadow:0 12px 32px var(--shadow);color:var(--text);font-size:var(--fs-body);white-space:normal;text-align:left}
.hint-pop[hidden]{display:none}
/* Нижние карточки (спец. 3, п. 6): «О ладе» / «Об аккорде», «Аккорды из нот лада», карточки Sonari */
.theory-help{display:flex;flex-wrap:wrap;gap:14px;align-items:stretch}
.theory-help[hidden]{display:none}
.help-card{flex:1 1 400px;min-width:0;display:flex;flex-direction:column;gap:10px;padding:14px 18px 18px;border-radius:16px;
  background:var(--surface)}
.help-card h3{font-size:var(--fs-body);font-weight:600;margin:0}
.help-card>p{margin:0;color:var(--text);font-size:var(--fs-body);line-height:1.5}
.help-card>p.help-sub{color:var(--text-2)}
.help-card>p.help-line{color:var(--text);line-height:1.5}
/* Факты (спец. 2.8): ключ --text-2, значение --text, сетка 112px 1fr под разделителем */
.help-card dl{display:grid;grid-template-columns:112px minmax(0,1fr);gap:6px 12px;margin:4px 0 0;padding-top:10px;
  border-top:1px solid var(--divider);font-size:var(--fs-body)}
.help-card dt{color:var(--text-2)}.help-card dd{margin:0;color:var(--text);font-variant-numeric:tabular-nums}
.help-card>p.help-note{font-size:var(--fs-micro);line-height:1.5}
/* Мини-диаграммы карточки «Форма интервала» */
.form-minis{display:flex;flex-wrap:wrap;gap:12px}
.form-mini{display:flex;flex-direction:column;gap:8px;margin:0;padding:10px 12px 12px;border-radius:10px;background:var(--surface-2)}
.form-mini svg{display:block}.form-mini .string{fill:var(--string)}.form-mini .fret{fill:var(--fret)}
.form-mini .note-dot{cursor:default}
.form-mini figcaption{display:flex;flex-direction:column;gap:8px;font-size:var(--fs-body)}
.form-mini figcaption span{color:var(--text-2);font-size:var(--fs-micro);font-variant-numeric:tabular-nums}
.bright-scale{display:flex;flex-direction:column;gap:6px;margin:4px 0 2px}
.bright-caption{display:flex;justify-content:space-between;color:var(--text-2);font-size:var(--fs-micro)}
.bright-row{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.bright-row::before{content:"";position:absolute;left:7%;right:7%;top:8px;height:2px;background:var(--bar)}
.bright-dot{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;padding:0;border:0;background:transparent;
  color:var(--text-2);font:inherit;font-size:var(--fs-micro);cursor:pointer}
.bright-dot span{width:18px;height:18px;border-radius:50%;background:var(--note-out-bg)}
.bright-dot[aria-pressed=true]{color:var(--accent-text)}
.bright-dot[aria-pressed=true] span{background:var(--accent)}
.scale-chords{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.scale-chord{height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0;border:0;
  border-radius:9px;background:var(--chip);color:var(--text);font:inherit}
.scale-chord:disabled{cursor:default}
.scale-chord b{font-size:var(--fs-title);font-weight:600;line-height:1}
.scale-chord span{font-size:var(--fs-micro);line-height:1;opacity:.8}
.note-readout{min-height:19px;margin:13px 0 0;color:var(--text-2);font-size:var(--fs-body)}
.name-dialog[hidden]{display:none}
.name-dialog{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:20px;background:var(--shadow);backdrop-filter:blur(7px)}
/* Подвал: Sonari, версия и дата изменения; справа ссылки-заготовки */
.site-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;padding:18px 32px;
  border-top:1px solid var(--divider);color:var(--text-3);font-size:var(--fs-micro);font-variant-numeric:tabular-nums}
.site-footer>div{display:flex;gap:12px}
.footer-name{color:var(--text-2)}
.site-footer nav{display:flex;flex-wrap:wrap;gap:8px 20px}
.site-footer a{color:var(--text-2);text-decoration:none}
.site-footer a[aria-disabled=true]{color:var(--text-3);cursor:default}
.site-footer button{padding:0;border:0;background:none;color:var(--text-2);font:inherit;cursor:pointer}
:is(.site-footer a:not([aria-disabled]),.site-footer button):hover{color:var(--text)}
/* Окно для новых пользователей (welcome.js): узкая карточка в стиле справки, пункты — со значками */
.welcome-card{display:flex;flex-direction:column;gap:20px;width:min(100%,460px);max-height:88vh;overflow-y:auto;padding:24px 26px 26px;
  border:1px solid var(--line-strong);border-radius:16px;background:var(--popover);box-shadow:0 24px 80px var(--shadow)}
.welcome-card header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.welcome-card h2{display:flex;align-items:center;gap:12px;margin:0;font-size:var(--fs-display);font-weight:600;line-height:1.15}
.welcome-card h2 .logo{flex:none}
.welcome-card ul{flex:none;display:flex;flex-direction:column;gap:14px;margin:0;padding:0;list-style:none}
.welcome-card li{display:flex;gap:12px;align-items:flex-start;color:var(--text-2);line-height:1.45}
.welcome-card li svg{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--accent-text);stroke-width:1.5;
  stroke-linejoin:round;stroke-linecap:round}
.welcome-card:focus{outline:none}
.welcome-card p{margin:0}
.welcome-ok{flex:none;align-self:flex-end;min-width:120px;height:40px;padding:0 20px;border:0;border-radius:10px;background:var(--accent);
  color:var(--note-root-fg);font:600 var(--fs-body) var(--sans);cursor:pointer}
.welcome-ok:hover{filter:brightness(1.08)}
/* Горизонтальный телефон: карточка помещается в 390 px по высоте без прокрутки */
@media(max-height:500px){.welcome-card{gap:12px;padding:16px 22px}.welcome-card ul{gap:8px}.welcome-card li{line-height:1.35}}
.guide-card{display:flex;flex-direction:column;width:min(100%,760px);max-height:min(88vh,640px);padding:28px 32px;
  background:var(--popover);border:1px solid var(--line-strong);box-shadow:0 24px 80px var(--shadow)}
.guide-card header{flex:none;display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.guide-card h2{font-size:var(--fs-display);font-weight:600;line-height:1;margin:0}
#guide-close,#welcome-close{width:32px;height:32px;border:0;background:none;color:var(--text);font-size:var(--fs-display);cursor:pointer}
.guide-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:26px;min-height:0;flex:1}
#guide-toc{display:flex;flex-direction:column;gap:2px}
#guide-toc button{padding:8px 10px;border:0;border-radius:3px;background:none;color:var(--text-2);font:var(--fs-body) var(--sans);text-align:left;cursor:pointer}
#guide-toc button:hover{background:var(--hover);color:var(--text)}
#guide-body{overflow-y:auto;padding-right:6px;font-size:var(--fs-body);line-height:1.6;color:var(--text-2)}
#guide-body h3{margin:0 0 8px;color:var(--text);font-size:var(--fs-title);font-weight:600}
#guide-body section{margin-bottom:24px}
#guide-body ul{margin:0;padding-left:18px}
#guide-body li{margin-bottom:6px}
#guide-select{display:none;flex:none;width:100%;height:42px;margin-bottom:14px;padding:0 10px;border:1px solid var(--line);border-radius:3px;
  background:var(--inset);color:var(--text);font:var(--fs-body) var(--sans)}
@media(max-width:899px),(orientation:landscape) and (max-height:500px){.topbar{gap:8px 16px;padding-inline:20px}
main{padding:24px 20px 64px}
.fretboard-panel{margin-inline:-5px;padding:18px}
.guide-card{padding:22px 18px}
.guide-layout{display:block;overflow-y:auto}
#guide-toc{display:none}
#guide-select{display:block}
#guide-body{overflow:visible}
}
/* Плашка «Выбор сброшен · Вернуть · ✕» (спец. 2.7): внизу по центру */
.toast{position:fixed;left:50%;bottom:24px;z-index:30;display:flex;align-items:center;gap:12px;padding:6px 6px 6px 16px;
  transform:translateX(-50%);border-radius:10px;background:var(--popover);
  box-shadow:inset 0 0 0 1px var(--line-strong),0 8px 24px var(--shadow);font-size:var(--fs-body)}
.toast[hidden]{display:none}
.toast button{height:28px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:var(--accent-text);font-size:var(--fs-body);
  font-weight:600;cursor:pointer}
.toast button:hover{background:var(--hover)}
.toast .toast-close{display:flex;align-items:center;justify-content:center;width:28px;padding:0;color:var(--text-2)}
.toast-close svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}
/* Фокус с клавиатуры (спец. 2.8): одно правило; внутри списков и сегментов — внутрь, у ссылок — радиус 4, у чипов «Звуки» — 5 px */
:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
a:focus-visible{border-radius:4px}
:is(.mode-row,.mode-families button,.mode-tabs [role=tab],.pop-seg button,.segment button,.lang-menu button,.view-tuning):focus-visible{
  outline-offset:-2px}
/* Точки перехода 1200 / 900 / 600 (спец. 10). 900–1199: поиск иконкой, чипы «Звуки» под строкой объекта, круг в одну колонку;
   гриф прокручивается внутри карточки (WIDE.min в fretboard.js) */
@media(max-width:1199px){
.search{justify-content:center;width:32px;padding:0}
.search span,.search kbd{display:none}
.object-head{flex-direction:column}
.tones{align-items:flex-start}
.tone-chips{justify-content:flex-start}
.interval-row>.hint{margin-left:auto}
.circle-view{flex-direction:column;align-items:center}
.circle-panel{flex:none;width:100%}
.circle-cards,.chords-card{flex:none;width:min(100%,560px)}
.chords-card{margin-inline:0}
}
/* < 900 и горизонтальный телефон: мобильная шкала 13 / 15 / 17 / 24 (мельче 13 нет) и цели нажатия ≥ 44 px */
@media(max-width:899px),(orientation:landscape) and (max-height:500px){
:root{--fs-micro:13px;--fs-body:15px;--fs-title:17px;--fs-display:24px}
.tool-button{height:44px}
.tool-button.square,.search{width:44px}
.object-picker{height:48px}
.reset-button{width:44px;height:44px}
.reset-button svg{width:18px;height:18px}
.segment button,.shape-switch button,.pop-seg button{height:44px}
.shape-switch button{width:44px}
.interval-info{height:auto;min-height:28px}
.interval-info.on{min-height:44px}
.interval-clear{width:44px;height:44px}
.tonic-grid .tonic-key{height:48px;font-size:var(--fs-title)}
.chords-view .segment button{min-width:44px}
.form-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}
.view-tuning,.lang-menu button,.toast button,.toast .toast-close{height:44px}
.toast .toast-close{width:44px}
.bright-dot{min-height:44px}
.bright-dot span{width:24px;height:24px}
.bright-row::before{top:11px}
.object-caption{min-height:13px}
/* Шапка 52 px (липкая): логотип, поиск и «Вид» иконками 44 px; вкладки, «?» и язык — в нижней панели и листе «Вид» */
.topbar{position:sticky;top:0;z-index:45;flex-wrap:nowrap;gap:4px;height:52px;padding:0 8px 0 16px;background:var(--bg)}
.brand{flex:1}
.tabs,#guide-open,.lang-picker,.tool-label{display:none}
.topbar .tool-button{justify-content:center;width:44px;padding:0;border:0;border-radius:10px;background:transparent}
.topbar .tool-button svg{width:18px;height:18px;stroke-width:1.4}
.topbar .search{margin-left:0;color:var(--text)}
.site-footer{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
.bottom-nav{position:fixed;z-index:15;left:0;right:0;bottom:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);
  height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--divider)}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;color:var(--text-2);
  text-decoration:none;font-size:var(--fs-micro)}
.bottom-nav a::after{content:'';width:18px;height:2px;border-radius:2px;background:transparent}
.bottom-nav a[aria-current=page]{color:var(--text)}
.bottom-nav a[aria-current=page]::after{background:var(--accent)}
.bottom-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}
.toast{left:16px;right:16px;bottom:calc(76px + env(safe-area-inset-bottom));transform:none;padding-left:14px}
.toast span{flex:1}
/* «Вид» — нижний лист: затемнение, радиус 16 сверху, до 82 % высоты, подписи над сегментами */
.sheet-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:rgba(0,0,0,.45)}
.view-popover{position:fixed;top:auto;left:0;right:0;bottom:0;gap:12px;width:auto;max-height:82vh;overflow-y:auto;
  padding:8px 16px calc(24px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line-strong);border-radius:16px 16px 0 0;
  box-shadow:0 -16px 40px var(--shadow)}
.sheet-handle{display:block;align-self:center;flex:none;width:36px;height:4px;border-radius:4px;background:var(--line-strong)}
.sheet-head{display:flex;align-items:center;justify-content:space-between}
.sheet-head h2{margin:0;font-size:var(--fs-title);font-weight:600}
.sheet-head button{height:44px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--accent-text);font-size:var(--fs-body);
  font-weight:600}
.view-row{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:0}
.view-row>span,.view-title{font-size:var(--fs-micro)}
.view-row .pop-seg button{padding:0 6px}
.view-divider{display:none}
.view-title{padding:0;margin-bottom:-6px}
.view-help{display:flex;justify-content:space-between;align-items:center;flex:none;height:44px;padding:0 12px;border:1px solid var(--line);
  border-radius:10px;background:transparent;color:var(--text);font-size:var(--fs-body)}
.view-help span{color:var(--text-2)}
/* Тоника и лад — нижние листы, как «Вид»: тоника сеткой 4 × 3; вкладки сегментом; лады — семейства слева, список справа, как на десктопе */
.object-picker .sheet-backdrop:not([hidden]){z-index:50}
@media(max-width:599px){
.pick-row{flex-direction:column;align-items:stretch}
.pick-row>span{width:auto}
}
/* Выезд листа снизу и появление затемнения; смахивание вниз и плавное закрытие — sheet.js */
.view-popover,.tonic-popover,.mode-popover,.sections-sheet,.circle-mode-sheet,.prog-menu{overscroll-behavior:contain}
@media(prefers-reduced-motion:no-preference){
.view-popover:not([hidden]),.tonic-popover:not([hidden]),.mode-popover:not([hidden]),.sections-sheet:not([hidden]),
.circle-mode-sheet:not([hidden]),.prog-menu:not([hidden]){animation:sheet-in .24s cubic-bezier(.2,.8,.2,1)}
.sheet-backdrop:not([hidden]){animation:sheet-fade .24s ease-out}
}
.prog-pick>.prog-menu{top:auto}
.tonic-popover,.mode-popover,.sections-sheet,.circle-mode-sheet,.prog-menu{
  position:fixed;z-index:60;top:auto;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:stretch;gap:12px;
  width:auto;max-height:82vh;overflow-y:auto;padding:8px 16px calc(24px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line-strong);
  border-radius:16px 16px 0 0;box-shadow:0 -16px 40px var(--shadow)}
.tonic-grid{width:auto}
/* Квинтовый круг (спец. 10, MobileCircle.dc.html): кнопка лада 52 px над кругом и лист «Лад»; мажоры 20, миноры 14 при круге 358 px
   (у нас на карточке круг ~334 на 390, deviations.md);
   строки прогрессий 48, кнопки ступеней 44 */
.circle-view,.circle-panel{gap:16px}
.circle-panel{padding:12px 12px 16px}
.circle-mode{display:flex;align-self:stretch;align-items:center;justify-content:space-between;gap:8px;height:52px;padding:0 16px;border:0;
  border-radius:12px;background:var(--surface-2);color:var(--text)}
.circle-mode span{font-size:var(--fs-display);font-weight:600;line-height:1}
.circle-mode em{color:var(--accent);font-style:normal}
.circle-mode svg{width:14px;height:14px;fill:none;stroke:var(--text-2);stroke-width:1.5}
.circle-view .sheet-backdrop:not([hidden]){z-index:50}
.circle-mode-sheet{background:var(--popover)}
.circle-mode-list{display:flex;flex-direction:column;gap:2px}
.circle-mode-row{display:flex;align-items:center;justify-content:space-between;gap:12px;height:52px;padding:0 14px;border:0;
  border-radius:12px;background:transparent;color:var(--text);font-size:var(--fs-title)}
.circle-mode-row small{color:var(--text-2);font-size:var(--fs-body)}
.circle-mode-row:hover{background:var(--hover)}
.circle-mode-row[aria-pressed=true]{background:var(--accent-soft)}
.circle-mode-row:focus-visible{outline-offset:-2px}
.circle-key:not(.minor) span{font-size:clamp(var(--fs-title),calc(32 * var(--u)),var(--fs-display))}
.circle-key.minor:not(.tonic) span{font-size:clamp(var(--fs-micro),calc(22 * var(--u)),var(--fs-body))}
.circle-legend{gap:6px 14px}
.progression{min-height:48px}
.custom-add{height:44px;min-width:44px}
.mode-tabs{padding:0;border:0}
.mode-tabs [role=tablist]{flex:1;gap:2px;padding:2px;border:1px solid var(--line);border-radius:10px;background:var(--inset)}
.mode-tabs [role=tab]{flex:1;height:44px;padding:0 8px;border-radius:8px}
.mode-tabs [role=tab][aria-selected=true]{background:var(--selected);box-shadow:none}
.mode-body{gap:8px}
.mode-families{width:128px;padding:0 8px 0 0}
.mode-families button{height:auto;min-height:44px;padding:6px 10px;line-height:1.25}
.mode-list{padding:0}
.mode-list>.mode-grid:not(.mode-row),.mode-list .pop-note,.mode-name small{display:none}
/* Строка лада 44: только название (у недоступных — «Скоро») */
.mode-row{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 10px;border-radius:10px}
.mode-row .mode-name{flex:1}
.mode-row>span:not(.mode-name){display:none}
.mode-row .mode-char:has(.soon){display:inline}
/* Строка аккорда 52, одна: имя 17, сразу ступени 15 без пропусков (колонками), справа полное название 13 — если не помещается, уходит
   на вторую строку и скрыто обрезкой */
.mode-chords .mode-row{flex-wrap:wrap;align-content:flex-start;gap:0;height:52px;padding:0 12px;overflow:hidden}
.mode-chords .mode-row .mode-name{display:contents;font-size:var(--fs-title);line-height:52px}
/* Имя и ступени — колонками одной ширины, чтобы ступени стояли друг под другом */
.mode-chords .mode-name>span{flex:none;width:64px}
.mode-chords .mode-row>span:not(.mode-name,.mode-char,.gap){display:inline;flex:none;width:30px;line-height:52px}
.mode-chords .mode-name small{display:inline;order:1;margin-left:auto;padding-left:8px;white-space:nowrap}
#guide-select{height:44px}
/* Строка над грифом: подпись над сегментом, сегмент — одной строкой равных кнопок; общий вариант в группе > 3 кнопок — иконкой.
   Строки — столбцом без постоянной высоты, подсказка переносится; «Трезвучия на струнах» — «На струнах» */
.board-row{flex-direction:column;align-items:stretch;gap:12px;min-height:0}
.board-hint:empty{display:none}
.board-group>span:first-child{min-width:0}
.board-hint{flex:none;text-align:left;white-space:normal}
.label-long{display:none}
.label-short{display:inline}
.shape-switch .shape-text{flex:1;justify-content:center;min-width:0}
.board-groups{flex-direction:column;align-items:stretch;gap:12px;width:100%}
.board-group{flex-direction:column;align-items:stretch;gap:6px}
.board-group>span:first-child{font-size:var(--fs-micro)}
/* ⓘ — справа от подписи группы, сегмент — ниже на всю ширину */
.board-group:has(>.hint){display:grid;grid-template-columns:1fr auto;align-items:center}
.board-group>.segment{grid-column:1/-1}
.board-group>.hint{grid-row:1;grid-column:2}
/* «Сыграть» — подпись и кнопки одной строкой, ↓ и ↑ делят ширину пополам */
.board-group.strum{flex-direction:row;align-items:center;gap:10px}
.strum>.shape-switch{flex:1;display:grid;grid-template-columns:1fr 1fr}
.strum>.shape-switch button{width:auto}
.strum.run>.shape-switch{flex:none;display:flex}
.strum.run>.shape-switch button{width:44px}
.strum.run>.segment{flex:1;display:grid;grid-template-columns:repeat(3,1fr)}
/* ⓘ на касание — зона 40 px, место в строке прежнее */
.hint-button{width:40px;height:40px;margin:-6px}
.segment{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);border-radius:12px}
.segment button{padding:0 4px;border-radius:10px}
.segment.many .grid-icon{display:block;width:20px;height:20px;margin:0 auto;fill:none;stroke:currentColor;stroke-width:1.5}
.segment.many .grid-icon+span{display:none}
/* Подписи мини-диаграмм интервала — 11 px: 13 px в их кружках не помещается */
.form-mini svg{--fs-micro:11px}
/* Чипы «Звуки» (спец. 10, п. 3): сеткой на всю ширину, 7 нот — в один ряд и на 360 px (минимум 36, в спецификации 42);
   подписи ролей скрыты — роль видна по цвету, характерная — точкой */
.tones{width:100%;align-items:stretch}
.tone-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(36px,1fr));gap:4px}
.tone-chips li{width:auto}
.tone-caption{display:none}
.tone b{font-size:var(--fs-body)}
/* Карточки на телефоне — на ступень крупнее шкалы: заголовок и текст 17, примечания и подписи 15 (замечание пользователя) */
.help-card{--fs-body:17px;--fs-micro:15px}
.help-card h3{font-size:var(--fs-title)}
.piano-panel{padding:12px}
.piano{height:130px}
}
/* Горизонтальный телефон (спец. 10, MobileLandscape.dc.html, 844 × 390): шапка 56 в одну строку — «Разделы», строка объекта,
   чипы «Звуки», «Вид»; без логотипа, поиска и нижней панели. Пианино — 2 октавы на ширину, высота 104, как в Synthari */
@media(orientation:landscape) and (max-height:500px){
.topbar{gap:8px;height:56px;padding:0 8px}
.brand,.search,.bottom-nav,.object-block{display:none}
.sections-picker{display:block;margin-right:auto}
.head-object:not([hidden]){display:flex;flex:1;align-items:center;gap:8px;min-width:0}
.head-object .object-row{flex:none;gap:4px}
.head-object .object-picker{height:44px}
.head-object .object-button{font-size:20px}
/* Чипы «Звуки» одной строкой справа: 44 × 44, при нехватке места сужаются; подписи ролей скрыты */
.head-object .tone-chips{display:grid;flex:1;min-width:0;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,44px);justify-content:end;gap:4px}
.head-object .tone-chips li{width:auto}
.head-object .tone b{font-size:var(--fs-body)}
.head-object .tone-caption{display:none}
.sections-list{display:flex;flex-direction:column;gap:2px}
.sections-list a{display:flex;align-items:center;height:52px;padding:0 12px;border-radius:10px;color:var(--text);text-decoration:none;
  font-size:var(--fs-title)}
.sections-list a[aria-current=page]{background:var(--selected)}
main{padding:10px 16px 16px}
/* Круг — как на телефоне вертикально, не больше 358 px: виден почти целиком при высоте экрана 390 */
@supports(width:1cqw){.circle{--u:calc(min(358px,100cqw) / 560)}}
.fretboard-panel{margin-inline:0;padding:10px 12px}
.interval-info{min-width:0;overflow:hidden;white-space:nowrap}
/* Сегменты над грифом — в одну строку без подписей групп, общий вариант — иконкой; подсказка справа с многоточием */
.board-bar{margin-top:8px;padding-bottom:8px;gap:8px 12px}
.board-row:not(.board-groups){display:contents}
.board-bar{flex-direction:row;flex-wrap:wrap;align-items:center}
.board-groups{flex:none;width:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0}
.board-group,.board-group:has(>.hint){display:flex;flex:none;flex-direction:row}
.board-group>span:first-child{display:none}
.strum>.shape-switch{flex:none;display:flex}
.strum>.shape-switch button{width:44px}
.segment button{min-width:44px;height:40px;padding:0 10px}
.board-hint{flex:1 1 120px;text-align:right;white-space:nowrap}
.fretboard-scroll{margin-top:8px}
.help-card{flex-basis:340px}
.site-footer{padding-bottom:24px}
.toast{bottom:16px}
.piano{height:104px}
}
@keyframes sheet-in{from{transform:translateY(100%)}}
@keyframes sheet-fade{from{opacity:0}}
