/* Светлое iOS-приложение: белый фон, мягкие серые карточки, чёрные кнопки-таблетки.
   Обложка — главный объект экрана; цветного акцента нет, всё держится на чёрном и сером. */
:root {
  --bg: #ffffff;
  --card: #f4f4f6;
  --card-2: #ebebef;
  --ink: #0b0b0f;
  --ink-2: #3a3a42;
  --muted: #8a8a94;
  --line: #e4e4e9;
  --btn: #111114;
  --btn-ink: #ffffff;
  --ok: #1f9d55;
  --warn: #b7791f;
  --danger: #d6342c;
  --stage: #0c0c10;
  --font: -apple-system, "SF Pro Text", "Segoe UI", system-ui, "Onest", sans-serif;
  --font-d: -apple-system, "SF Pro Display", "Segoe UI", system-ui, "Onest", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.4 var(--font); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button, label[for] { cursor: pointer; }
button { -webkit-appearance: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* каркас */
.app { height: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; position: relative; background: var(--bg); overflow: hidden; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.nav { flex: none; height: calc(54px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 16px 0; display: flex; align-items: center; gap: 8px; position: relative; }
.nav h1 { flex: 1; margin: 0; font: 700 24px/1.1 var(--font-d); letter-spacing: -0.02em; }
.nav.centered h1 { position: absolute; left: 64px; right: 64px; bottom: 16px; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.nav-back { width: 40px; height: 40px; margin-left: -10px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; z-index: 1; }
.nav-back svg { width: 24px; height: 24px; stroke-width: 2.2; }
.nav-back:active { background: var(--card); }
.nav-back:disabled { opacity: .3; }
.nav-right { margin-left: auto; display: flex; align-items: center; z-index: 1; }
.credits-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 14px; background: var(--card); font-size: 15px; font-variant-numeric: tabular-nums; }
.credits-chip svg { width: 18px; height: 18px; color: var(--ink-2); }
.counter { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.screen { display: flex; flex-direction: column; gap: 14px; padding: 4px 16px 20px; }

.cta { flex: none; padding: 8px 16px 10px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.btn-main {
  width: 100%; height: 54px; border: 0; border-radius: 27px; background: var(--btn); color: var(--btn-ink);
  font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; position: relative; transition: transform .1s, opacity .15s;
}
.btn-main svg { position: absolute; right: 22px; width: 20px; height: 20px; stroke-width: 2.2; }
.btn-main:active:not(:disabled) { transform: scale(.985); }
.btn-main:disabled { opacity: .3; cursor: default; }
.cta-hint { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.cta-hint:empty { display: none; }
.main-prog { height: 4px; }

.tabbar { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg); }
.tabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); padding: 4px 0; }
.tabbar svg { width: 26px; height: 26px; }
.tabbar button.on { color: var(--ink); font-weight: 600; }
.tb-plus { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.8px solid currentColor; }
.tb-plus svg { width: 16px; height: 16px; stroke-width: 2.4; }
.tabbar button.on .tb-plus { background: var(--ink); border-color: var(--ink); }
.tabbar button.on .tb-plus svg { color: var(--bg); }

/* мелочи */
.card { background: var(--card); border-radius: 18px; }
.card.pad { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.link-sm { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.link-sm.right { align-self: flex-end; }
.link-sm.strong { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.link-sm.danger { color: var(--danger); align-self: center; }
.tlabel { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tsub { font-size: 13px; color: var(--muted); }
.tsub:empty { display: none; }
.center { text-align: center; justify-content: center; }
.status { margin: -4px 4px 0; font-size: 13px; color: var(--muted); }
.status:empty { display: none; }
.status.err { color: var(--danger); }
.status.good { color: var(--ok); }
.progress { height: 5px; background: var(--card-2); border-radius: 5px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--ink); transition: width .2s; }
.note { margin: -4px 4px 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.note svg { width: 16px; height: 16px; flex: none; }
.pill { border: 0; background: var(--card); border-radius: 99px; padding: 9px 14px; font-size: 14px; font-weight: 500; display: inline-flex; }
.pill:active { background: var(--card-2); }
/* настройка варианта на экране «Экспорт»: группы деталей, в каждой — ряд кнопок с прокруткой */
.tune { padding: 12px 0 6px; }
.tune-h { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 6px; }
.tune-g { padding: 6px 0; }
.tune-g .tlabel { padding: 0 16px; display: block; margin-bottom: 6px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 0; flex: none; background: var(--card-2); color: var(--ink-2); border-radius: 99px; padding: 8px 13px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.pill:disabled { opacity: .45; cursor: default; }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--bg)); }

/* 01: обложка-герой */
.hero { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 2px; }
.cover-big { width: 66%; max-width: 260px; aspect-ratio: 1; border-radius: 22px; overflow: hidden; display: block; background: var(--card); box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); margin-bottom: 12px; }
.cover-big canvas { width: 100%; height: 100%; display: block; }
.t-title, .t-artist { width: 100%; border: 0; background: none; text-align: center; padding: 2px 8px; border-radius: 8px; }
.t-title { font: 700 22px/1.2 var(--font-d); letter-spacing: -0.02em; }
.t-artist { font-size: 13px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); }
.t-title:focus, .t-artist:focus { outline: none; background: var(--card); }
.t-title::placeholder, .t-artist::placeholder { color: var(--muted); opacity: .8; }
.hero .link-sm { margin-top: 6px; }

.track-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: 18px; }
.tr-ic { width: 48px; height: 48px; flex: none; border: 0; border-radius: 12px; background: var(--card); display: grid; place-items: center; }
.tr-ic svg { width: 24px; height: 24px; }
.tr-ic .i-play { display: none; width: 0; height: 0; border-left: 13px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.track-row.has .tr-ic .i-note { display: none; }
.track-row.has .tr-ic .i-play { display: block; }
.track-row.has .tr-ic.on .i-play { width: 13px; height: 15px; border: 0; margin: 0; background: linear-gradient(90deg, var(--ink) 0 35%, transparent 35% 65%, var(--ink) 65%); }
.tr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tr-main b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sub { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-sub canvas { flex: 1; min-width: 0; height: 20px; }
.tr-check { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--card); }
.tr-check svg { width: 16px; height: 16px; stroke-width: 2.4; }
.track-row.has .tr-check { background: var(--btn); color: var(--btn-ink); }

.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 4px -6px; }
.sec-h h2 { margin: 0; font-size: 16px; font-weight: 600; }
.lyr { padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.lyr-prev { border: 0; background: none; text-align: left; padding: 10px 10px 8px; font-size: 15px; line-height: 1.5; color: var(--ink); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lyr-prev.empty { color: var(--muted); }
.row-btn { border: 0; background: var(--card-2); border-radius: 13px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; text-align: left; }
.row-btn:active:not(:disabled) { background: #e2e2e8; }
.row-btn:disabled { opacity: .55; cursor: default; }
.rb-ic svg { width: 22px; height: 22px; display: block; }
.rb-txt { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rb-txt b { font-size: 15px; font-weight: 500; }
.rb-txt small { font-size: 12px; color: var(--muted); }
.rb-txt small:empty { display: none; }
.chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
.lyr .progress { margin: 2px 6px 6px; }

/* 02: стиль */
.reel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 6px 20% 10px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.card9 { position: relative; flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; background: none; border-radius: 22px; transition: transform .25s, opacity .25s; transform: scale(.9); opacity: .7; }
.card9.sel { transform: none; opacity: 1; }
.card9 canvas { width: 100%; aspect-ratio: var(--ar, 9 / 16); display: block; border-radius: 22px; background: var(--stage); box-shadow: 0 20px 40px -18px rgba(0,0,0,.45); }
.card9 .play-ov { opacity: 0; pointer-events: none; }
.card9.sel.paused .play-ov { opacity: 1; }
.play-ov { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.8); background: rgba(0,0,0,.28); backdrop-filter: blur(6px); display: grid; place-items: center; transition: opacity .2s; }
.play-ov span { width: 0; height: 0; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.style-name { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: -2px; }
.style-name b { font-size: 17px; font-weight: 700; }
.style-name span { font-size: 13px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 7px; }
.pager i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s; }
.pager i.on { background: var(--ink); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; margin-inline: -16px; padding: 4px 16px; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 31%; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.thumb canvas { width: 100%; aspect-ratio: 16 / 10; display: block; border-radius: 12px; background: var(--stage); outline: 2px solid transparent; outline-offset: 2px; }
.thumb.sel { color: var(--ink); font-weight: 600; }
.thumb.sel canvas { outline-color: var(--ink); }
.meta-line { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }

/* 03: экспорт */
.preview { position: relative; border-radius: 20px; overflow: hidden; background: var(--stage); display: grid; place-items: center; }
.preview canvas { display: block; max-width: 100%; max-height: 42vh; width: auto; height: auto; }
.preview .play-ov { opacity: 1; }
.preview.playing .play-ov { opacity: 0; }
.rec-ov { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rec-ov i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px; gap: 2px; background: var(--card-2); border-radius: 12px; }
.seg button { border: 0; background: none; border-radius: 9px; padding: 8px 2px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg button:disabled { opacity: .35; cursor: default; }
.ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -6px; padding-inline: 2px; }
.list { display: flex; flex-direction: column; overflow: hidden; }
.list-row { border: 0; background: none; display: flex; align-items: center; gap: 12px; padding: 15px 16px; text-align: left; font-size: 15px; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row > svg:first-child { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.list-row span { flex: 1; font-weight: 500; }
.list-row em { font-style: normal; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.list-row:active:not(:disabled) { background: var(--card-2); }
.list-row:disabled { cursor: default; opacity: .6; }
.credits { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.credits svg { width: 28px; height: 28px; color: var(--ink-2); flex: none; }
.credits div { display: flex; flex-direction: column; }
.credits b { font: 700 19px/1.2 var(--font-d); }
.credits span { font-size: 13px; color: var(--muted); }
.credits.short b { color: var(--danger); }
.result { border-radius: 16px; padding: 14px 16px; background: var(--card); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.result b { font-size: 15px; }
.result.good b { color: var(--ok); }
.result.bad b { color: var(--danger); }
.result .link-sm { align-self: flex-start; color: var(--ink); }

/* волна с рамкой отрезка: окно с прямыми углами внутри, скругление снаружи, ручки по бокам */
.wave-box { padding: 38px 20px 6px; }
.wave-box.compact { padding: 30px 20px 2px; }
.rw { position: relative; height: 64px; touch-action: none; user-select: none; -webkit-user-select: none; --rw-in: var(--ink); --rw-out: color-mix(in srgb, var(--muted) 45%, transparent); }
.compact .rw { height: 40px; }
.rw canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rw-sel { position: absolute; top: -8px; bottom: -8px; border: solid var(--ink); border-width: 8px 16px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.rw-h { position: absolute; top: -8px; bottom: -8px; width: 34px; display: grid; place-items: center; cursor: ew-resize; }
.rw-h.l { left: -25px; } .rw-h.r { right: -25px; }
.rw-h::after { content: ""; width: 3px; height: 42%; min-height: 12px; border-radius: 2px; background: #fff; }
.rw-lab { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; pointer-events: none; }
.rw-pos { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--danger); border-radius: 2px; pointer-events: none; }

/* шторки */
.sheet { position: absolute; inset: 0; z-index: 30; display: flex; align-items: flex-end; background: rgba(0,0,0,.32); animation: fade .2s; }
.sheet-card { width: 100%; max-height: 92%; overflow-y: auto; background: var(--bg); border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; animation: up .25s cubic-bezier(.2,.8,.2,1); }
.sheet-card::before { content: ""; width: 38px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; margin-bottom: 2px; flex: none; }
.sheet-card.tall { min-height: 78%; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-h b { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.sheet-row.center { justify-content: center; }
.sheet textarea { flex: 1; min-height: 240px; resize: none; border: 0; border-radius: 14px; background: var(--card); padding: 14px; font-size: 16px; line-height: 1.55; }
.sheet textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.opts { display: flex; flex-direction: column; background: var(--card); border-radius: 16px; overflow: hidden; }
.opt { border: 0; background: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; font-size: 15px; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt .shape { width: 26px; display: grid; place-items: center; }
.opt .shape i { display: block; border: 2px solid var(--ink-2); border-radius: 3px; }
.opt span { flex: 1; display: flex; flex-direction: column; font-weight: 500; }
.opt small { color: var(--muted); font-size: 12px; font-weight: 400; }
.opt .tick { width: 20px; height: 20px; opacity: 0; stroke-width: 2.4; }
.opt[aria-pressed="true"] .tick { opacity: 1; }
.round-play { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--btn); display: grid; place-items: center; }
.round-play span { width: 0; height: 0; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.round-play.on span { width: 15px; height: 18px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
.sheet video { width: 100%; max-height: 52vh; border-radius: 16px; background: var(--stage); }




@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { background: rgba(0,0,0,0); } }

/* мои видео и профиль */
.vid { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 6px 0; text-align: left; }
.vid img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--card); flex: none; }
.vid span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vid b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid small { font-size: 13px; color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.empty-state b { color: var(--ink); font-size: 17px; }
.balance { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.balance b { font: 700 30px/1.15 var(--font-d); letter-spacing: -0.02em; }

@media (prefers-reduced-motion: reduce) { *, .sheet, .sheet-card { transition: none !important; animation: none !important; } }

/* 02: проверка текста */
.bar { display: flex; align-items: center; gap: 12px; }
.play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--btn); flex: none; display: grid; place-items: center; }
.play.sm { width: 40px; height: 40px; }
.play span { width: 0; height: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.play.on span { width: 12px; height: 14px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
.now { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.now strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.banner { border-radius: 14px; padding: 11px 14px; background: var(--card); font-size: 13px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner:empty { display: none; }
.banner.warn { background: color-mix(in srgb, var(--warn) 12%, var(--bg)); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.banner .pill { background: var(--bg); }
.lyr-list { display: flex; flex-direction: column; gap: 2px; }
.ll { display: flex; align-items: center; gap: 6px; border-radius: 14px; padding: 4px 4px 4px 6px; transition: background .15s; }
.ll.cur { background: var(--card); }
.ll-time { flex: none; width: 52px; border: 0; background: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: left; padding: 10px 0; }
.ll-text { flex: 1; min-width: 0; border: 0; background: none; text-align: left; font-size: 16px; line-height: 1.4; padding: 8px 2px; color: var(--muted); }
.ll.cur .ll-text { color: var(--ink-2); }
.ll-text i { font-style: normal; transition: color .1s; }
.ll-text i.on { color: var(--ink); }
.ll-text i.now { color: var(--ink); font-weight: 700; }
.ll-text small { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--warn); vertical-align: 1px; }
.ll-shift { display: flex; flex: none; }
.ll-shift button, .fine button { width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; font-size: 22px; line-height: 1; color: var(--ink-2); }
.ll-shift button:active, .fine button:active { background: var(--card-2); }

/* 03: фрагмент */
.frag-h { display: flex; justify-content: space-between; align-items: center; }
.seg.five { grid-template-columns: repeat(5, 1fr); }
.seg button { min-height: 40px; }
.fine { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 16px; }
.fine + .fine { border-top: 1px solid var(--line); }
.fine span { flex: 1; font-weight: 500; }
.fine b { min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.script-row { display: flex; flex-direction: column; gap: 6px; }
#s4 .script-row { margin: 4px 0 12px; }
.ll-text .ll-read { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); opacity: .8; margin-top: 2px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg.two { grid-template-columns: repeat(2, 1fr); }
/* расставить самому: кнопка под палец, текущая строка крупно, следующее слово подсвечено */
.tap-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.tap-view { background: var(--stage); color: #fff; border-radius: 18px; padding: 18px 16px; min-height: 190px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.tap-side { font-size: 14px; line-height: 1.35; color: rgba(255,255,255,.38); min-height: 19px; }
.tap-cur { font-size: 24px; font-weight: 700; line-height: 1.35; color: rgba(255,255,255,.42); }
.tap-cur i { font-style: normal; border-radius: 6px; padding: 0 2px; transition: color .1s, background .1s; }
.tap-cur i.done { color: #fff; }
.tap-cur i.next { color: #111114; background: #f5d33b; }
.tap-cur.whole { color: #111114; background: #f5d33b; border-radius: 10px; padding: 2px 8px; align-self: flex-start; }
.tap-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tap-btn { flex: none; height: 128px; border: 0; border-radius: 28px; background: var(--btn); color: var(--btn-ink); font-size: 20px; font-weight: 700;
  user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .06s, background .06s; }
.tap-btn.down { transform: scale(.97); background: #2c2c34; }
.tap-tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.mismatch { border-radius: 16px; padding: 14px; background: color-mix(in srgb, var(--warn) 10%, var(--bg)); display: flex; flex-direction: column; gap: 8px; }
.mismatch b { font-size: 15px; }
.mm-heard { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 14px; line-height: 1.5; white-space: pre-line; color: var(--ink-2); }
.pill.dark { background: var(--btn); color: var(--btn-ink); }

/* адрес сервера в «Профиле» */
.srv-in { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--bg); font-size: 15px; margin: 8px 0; }
