/* VoxUz — "Zarba": black, signature yellow, Samarkand-blue girih */
:root {
  --ink: #0B0B0C;
  --ink-2: #151517;
  --ink-3: #1C1C20;
  --line-d: #2A2A2E;
  --paper: #F6F3EC;
  --white: #FFFFFF;
  --yellow: #F5C518;
  --yellow-soft: #FFF6D1;
  --blue: #2E6FBF;
  --text-d: #CFCCC4;
  --muted-d: #A8A6A0;
  --muted-l: #4B4A46;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); }
body.dark { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* type */
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .9; margin: 0; }
.h1 { font-size: clamp(56px, 8vw, 104px); line-height: 1; }  /* .88: the Q's tail touched the next line */
.h2 { font-size: clamp(44px, 6vw, 72px); }
.h3 { font-size: clamp(36px, 4.5vw, 56px); }
.mono { font-family: var(--mono); font-weight: 600; }
.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; color: var(--yellow); text-transform: uppercase; }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.lead { font-size: 20px; line-height: 1.55; color: var(--text-d); max-width: 560px; margin: 0; }
.muted { color: var(--muted-l); }
.dark .muted, .on-dark .muted { color: var(--muted-d); }
.dark .paper .muted { color: var(--muted-l); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border: 0;
  font-weight: 700; font-size: 17px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--yellow); }
.btn-y { background: var(--yellow); color: var(--ink); }
.btn-y:hover { box-shadow: 5px 5px 0 var(--white); }
.paper .btn-y:hover, .card .btn-y:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-ink { background: var(--ink); color: var(--yellow); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn[disabled] { background: var(--line-d); color: #8C8A84; cursor: not-allowed; transform: none; box-shadow: none; }

/* header / footer */
.top { background: var(--ink); color: var(--paper); border-bottom: 1px solid #26262A; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 900; font-size: 28px; text-transform: uppercase; }
.logo b { color: var(--yellow); font-weight: 900; }
.nav { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 500; font-size: 15px; color: var(--text-d); }
.nav a:hover, .nav a.on { color: var(--yellow); }
.stripe { height: 14px; background: var(--yellow); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.stripe-thin { height: 8px; background: var(--yellow); border-bottom: 3px solid var(--ink); }
.foot { background: var(--ink); color: var(--muted-d); border-top: 1px solid #26262A; font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding-top: 30px; padding-bottom: 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a:hover { color: var(--yellow); }
.girih-strip { display: block; width: 100%; height: 28px; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; }
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-text { flex: 1 0 560px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-text .y { color: var(--yellow); }
/* the headline keeps its three lines at every zoom: size follows the column width, not the window */
.hero-text { container-type: inline-size; }
.hero-h { font-size: 104px; }  /* one size, as in the mockup */
.nowrap { white-space: nowrap; }
.hero-demo { flex: 1 1 480px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }

/* player + timeline */
.player { background: var(--ink-2); border: 1px solid var(--line-d); padding: 16px; color: var(--paper); }
.screen { position: relative; height: 270px; background: #0F1A2A; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen .tag { position: absolute; top: 12px; left: 12px; padding: 4px 9px; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: 12px; font-weight: 600; z-index: 2; }
.caption { position: relative; z-index: 2; margin: 0 20px 18px; padding: 10px 16px; background: rgba(0,0,0,.78); color: #fff; font-size: 19px; font-weight: 600; text-align: center; }
.tracks { position: relative; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; --label: 92px; }
.track { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); gap: 10px; align-items: center; }
.track > span { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; color: #8C8A84; }
.track.uz > span { color: var(--yellow); }
.lane { position: relative; height: 26px; background: var(--ink-3); }
.seg { position: absolute; top: 3px; bottom: 3px; border: 0; padding: 0; display: block; }
.seg.o { background: repeating-linear-gradient(90deg, #5A5954 0 2px, transparent 2px 4px); }
.seg.u { background: repeating-linear-gradient(90deg, var(--yellow) 0 2px, transparent 2px 4px); cursor: pointer; transition: filter .15s; }
.seg.u:hover { filter: brightness(1.25); }
.seg.u.on { background: var(--yellow); box-shadow: 0 0 12px rgba(245,197,24,.7); }
.head { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--yellow); box-shadow: 0 0 10px rgba(245,197,24,.8);
  left: calc(var(--label) + 10px + (100% - var(--label) - 10px) * var(--pos, 0)); }
.ticks { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: #6E6C66; }
.ticks > div { display: flex; justify-content: space-between; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.play { width: 46px; height: 46px; border: 0; background: var(--yellow); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.switch { margin-left: auto; display: flex; border: 1px solid #3A3A40; }
.switch button { border: 0; padding: 9px 16px; background: transparent; color: var(--text-d); font-weight: 600; font-size: 14px; cursor: pointer; }
.switch button.on { background: var(--yellow); color: var(--ink); font-weight: 700; }
.credit { margin: 12px 2px 0; font-size: 13px; color: #8C8A84; }

/* sections */
.sec { padding: 96px 0; }
.paper { background: var(--paper); color: var(--ink); }
.ink { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.sec-head p { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.6; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step { background: var(--ink-2); border: 1px solid var(--line-d); padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: border-color .18s; }
.step:hover { border-color: var(--yellow); }
.step .n { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .9; color: var(--yellow); }
.step h3 { margin: 0; font-size: 22px; }
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted-d); }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); border-top: 3px solid var(--ink); border-left: 1px solid var(--ink); }
.types > div { padding: 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 8px; transition: background .18s; }
.types > div:hover { background: var(--yellow); }
.types h3 { margin: 0; font-size: 20px; }
.types p { margin: 0; font-size: 15px; line-height: 1.55; color: #3A3935; }
.feats { border-top: 3px solid var(--ink); }
.feats > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 40px; align-items: baseline; padding: 28px 12px; border-bottom: 1px solid var(--ink); transition: background .18s; }
.feats > div:hover { background: var(--yellow); }
.feats .t { display: flex; align-items: baseline; gap: 18px; }
.feats .t span:last-child { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1; text-transform: uppercase; }
.feats p { margin: 0; font-size: 18px; line-height: 1.6; color: #2A2926; }
.price { background: var(--yellow); color: var(--ink); padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.price > div:first-child { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; container-type: inline-size; }
.price-h { font-size: 72px; }
.price p { margin: 0; font-size: 18px; line-height: 1.6; }
.calc { flex: 1 1 420px; min-width: 0; background: var(--ink); color: var(--paper); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.calc input[type=range] { width: 100%; accent-color: var(--yellow); }
.calc .sum { font-family: var(--display); font-weight: 900; font-size: 52px; color: var(--yellow); }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* app pages */
.app { padding: 44px 0 80px; }
.app .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.main-col { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.side-col { flex: 1 1 340px; min-width: 0; }
.box { border: 2px solid var(--ink); background: var(--white); }
.box > h2 { margin: 0; padding: 14px 20px; border-bottom: 2px solid var(--ink); display: flex; gap: 14px; align-items: baseline; font-size: 18px; font-weight: 700; }
.box > h2 .mono { font-size: 14px; }
.box-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.box-body > p { margin: 0; font-size: 15px; color: var(--muted-l); }
.drop { border: 2px dashed var(--ink); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; cursor: pointer; background: #FAF8F3; transition: background .15s; }
.drop:hover, .drop.over { background: var(--yellow-soft); }
.drop strong { font-size: 18px; }
.picked { display: none; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; background: var(--ink); color: var(--paper); }
.picked.show { display: flex; }
.picked i { width: 10px; height: 10px; background: var(--yellow); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.type-grid label { position: relative; display: block; padding: 14px; border: 2px solid var(--ink); background: var(--white); cursor: pointer; min-height: 70px; transition: background .12s; }
.type-grid label:hover { background: var(--yellow-soft); }
.type-grid input { position: absolute; opacity: 0; }
.type-grid input:checked + span { }
.type-grid label:has(input:checked) { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.type-grid label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.type-grid b { display: block; font-size: 15px; }
.type-grid small { display: block; margin-top: 3px; font-size: 13px; opacity: .75; }
.field { padding: 12px 14px; border: 2px solid var(--ink); background: var(--white); width: 100%; }
.pairs { display: flex; flex-direction: column; gap: 10px; }
.pair { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pair .field { flex: 1 1 200px; width: auto; }
.order { background: var(--ink); color: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 10px 10px 0 var(--yellow); }
.order .between span:first-child { color: var(--muted-d); }
.order .total { font-family: var(--display); font-weight: 900; font-size: 44px; color: var(--yellow); }
.order hr { border: 0; height: 2px; background: var(--line-d); margin: 0; width: 100%; }
.warn { border: 2px solid var(--yellow); padding: 14px 16px; font-size: 14px; line-height: 1.55; display: none; }
.warn.show { display: block; }
.warn b { color: var(--yellow); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-d); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--yellow); flex: 0 0 auto; }
.check a { color: var(--yellow); text-decoration: underline; }
.err { border: 2px solid #E5484D; background: #2A1213; color: #FFD9D9; padding: 12px 14px; font-size: 14px; }
.progress { height: 10px; background: var(--line-d); }
.progress > div { height: 10px; background: var(--yellow); transition: width .4s; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.steps li { display: flex; gap: 10px; align-items: center; color: #6E6C66; }
.steps li.done { color: var(--yellow); }
.steps li.now { color: var(--paper); font-weight: 700; }
.steps li::before { content: ""; width: 18px; text-align: center; font-weight: 800; }
.steps li.done::before { content: "✓"; }
.steps li.now::before { content: "▸"; }

/* editor */
.ed { padding: 28px 0 56px; }
.ed .wrap { max-width: 1360px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ed-left { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ed-right { flex: 999 1 620px; min-width: 0; }
.spot { width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px 18px; border: 0; border-top: 1px solid #E4DFD3; background: var(--white); cursor: pointer; color: var(--ink); }
.spot:hover { background: var(--yellow-soft); }
.spot .mono { min-width: 52px; background: var(--yellow); padding: 2px 6px; text-align: center; }
.spot span:last-child { display: flex; flex-direction: column; gap: 2px; }
.spot small { font-size: 13px; color: var(--muted-l); }
.cast-row { display: flex; align-items: center; gap: 12px; }
.cast-row i { width: 12px; height: 12px; border: 2px solid var(--ink); }
.cast-row b { flex: 1; }
.lines-head, .ln { display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1.3fr) 44px; gap: 12px; padding: 10px 18px; }
.lines-head { border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted-l); }
.ln { align-items: start; padding: 12px 18px; border-bottom: 1px solid #E4DFD3; }
.ln.on { background: var(--yellow-soft); box-shadow: inset 6px 0 0 var(--yellow); }
.ln.dirty textarea { border-color: var(--yellow); background: #FFFBEA; }
.ln .t { border: 0; background: transparent; padding: 0; font-family: var(--mono); font-weight: 600; font-size: 13px; text-align: left; cursor: pointer; }
.ln .who { align-self: flex-start; padding: 2px 7px; font-size: 12px; font-weight: 700; }
.ln .o { font-size: 14px; color: #3A3935; line-height: 1.45; }
.ln textarea { width: 100%; padding: 9px 11px; border: 2px solid var(--ink); font-size: 15px; line-height: 1.45; resize: none; overflow: hidden; background: var(--white); }
.icon-btn { width: 40px; height: 40px; border: 2px solid var(--ink); background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.toolbar { padding: 14px 18px; border-bottom: 2px solid var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.toolbar h2 { margin: 0; font-size: 17px; }
.list { border-top: 3px solid var(--ink); }
.list a { display: grid; grid-template-columns: minmax(0, 1fr) 160px 140px; gap: 16px; padding: 18px 12px; border-bottom: 1px solid var(--ink); align-items: center; transition: background .15s; }
.list a:hover { background: var(--yellow); }
.badge { display: inline-block; padding: 3px 9px; font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--ink); color: var(--yellow); text-transform: uppercase; }
.badge.ok { background: var(--yellow); color: var(--ink); }
.badge.bad { background: #E5484D; color: #fff; }

/* legal */
.legal { max-width: 1040px; }
.doc { border: 2px solid var(--ink); background: var(--white); padding: 36px 40px; font-size: 16px; line-height: 1.65; color: #1F1E1B; }
.doc h3 { margin: 36px 0 12px; font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.doc td { padding: 10px 12px; border-bottom: 1px solid #D8D2C4; vertical-align: top; }
.app .legal-col { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 28px; }
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 2px solid var(--ink); background: var(--white); }
.tabs a { padding: 14px 18px; font-weight: 700; border-right: 2px solid var(--ink); }
.tabs a:last-child { border-right: 0; }
.nav-land { display: contents; }
.tabs a:hover { background: var(--yellow); }
.note { border: 2px solid var(--ink); background: var(--yellow); padding: 14px 18px; font-size: 15px; line-height: 1.5; }

@media (max-width: 640px) {
  .hero-text { flex-basis: 100%; }
  .hero-h { font-size: 18.5cqi; }
  .price-h { font-size: 15.5cqi; }
  .nav-land { display: none; }
  .feats .t span:last-child { font-size: clamp(30px, 8.5vw, 46px); }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .types > div { padding: 16px; }
  .types h3 { font-size: 17px; }
  .price, .calc, .order, .doc { padding: 24px; }
  .lines-head { display: none; }
  .tabs a { border-right: 0; }
  .ln { grid-template-columns: 1fr; }
  .list a { grid-template-columns: 1fr; }
  .tracks { --label: 64px; }
  .ticks { grid-template-columns: 64px minmax(0, 1fr); }
}

/* translation review (aniq mode) */
.rv-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.rv-note { background: var(--white); border: 2px solid var(--ink); padding: 12px 16px; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.rv-filter { margin-bottom: 12px; }
.ln.rv.doubt { background: #FFF6CC; }
.rv-uz { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rv-why { font-size: 13px; color: #6B5600; }
.rv-why::before { content: "⚠ "; }
.rv-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-var { border: 1.5px solid var(--ink); background: var(--white); padding: 4px 8px; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.rv-var:hover { background: var(--yellow-soft); }
.rv-len { font-size: 12px; color: #6E6C66; }
.rv-len.over { color: #C0392B; font-weight: 600; }

/* review: characters and voices */
.chars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; padding: 14px 18px 18px; }
.char { border: 2px solid var(--ink); background: var(--white); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.char.merged { opacity: .45; }
.char-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.char-head i { width: 14px; height: 14px; border: 2px solid var(--ink); display: inline-block; }
.char-head .muted { font-size: 13px; }
.char-head .char-orig { margin-left: auto; border: 2px solid var(--ink); }
.char-why { font-size: 13px; color: #4A4840; }
.char-opts { display: flex; flex-direction: column; gap: 6px; }
.char-opt { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); padding: 6px 8px; }
.char-opt.on { background: var(--yellow-soft); box-shadow: inset 4px 0 0 var(--ink); }
.char-pick { all: unset; cursor: pointer; display: flex; flex-direction: column; flex: 1; }
.char-pick small { color: #6E6C66; font-size: 12px; }
.char-more { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.char-more select, .rv-who { font: inherit; font-size: 13px; border: 1.5px solid var(--ink); padding: 2px 4px; max-width: 100%; }
.rv-who { font-weight: 600; }

/* voice library page */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.voice-card { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--ink); background: var(--white); padding: 12px; }
.voice-card p { margin: 6px 0 0; font-size: 14px; color: #4A4840; }
.voice-play { flex: none; width: 40px; height: 40px; border: 2px solid var(--ink); background: var(--yellow); display: grid; place-items: center; cursor: pointer; }
.voice-card[hidden] { display: none; }

/* phones: the review page, the voice library and the header */
@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .rv-top .btn { width: 100%; justify-content: center; }
  .chars { padding: 12px; }
  .char-head .char-orig { margin-left: 0; }
  .ln.rv > div:last-child { justify-self: end; margin-top: -4px; }
  .voice-card { padding: 10px; }
}
.who-me { font-size: 14px; color: var(--text-d); }
.who-me a { color: var(--yellow); }

/* review: ElevenLabs-style voice rows */
.char-cur .vrow { cursor: default; }
.char-list { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; border-top: 1px solid #E4DFD3; padding-top: 4px; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.vrow:hover { background: #F4F2EC; }
.vrow.on { background: var(--yellow-soft); }
.vorb { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; }
.vorb svg { opacity: 0; transition: opacity .12s; }
.vrow:hover .vorb svg, .vorb:focus-visible svg { opacity: 1; }
.vname { flex: 1; min-width: 0; font-size: 15px; }
.vname span { color: #4A4840; }
.vpick { visibility: hidden; }
.vrow:hover .vpick, .vpick:focus-visible { visibility: visible; }
.vtag { font-size: 12px; font-weight: 700; background: var(--ink); color: var(--yellow); padding: 3px 8px; border-radius: 999px; }
.char-toggle { align-self: flex-start; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (hover: none) { .vorb svg { opacity: 1; } .vpick { visibility: visible; } }
.rv-filter { margin: 0; }
.rv-filter button { color: var(--ink); }
.rv-filter button:not(.on) { background: var(--white); }

/* result page: voice one line again */
.ln .redo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.ln .redo[hidden] { display: none; }
.ln .redo-open { border: 0; background: transparent; padding: 2px 0; font-size: 13px; font-weight: 600; color: #5A5850; cursor: pointer; }
.ln .redo-open:hover { color: var(--ink); text-decoration: underline; }
.ln .redo-opts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ln .redo-opts[hidden] { display: none; }
.ln .redo-opts button { border: 2px solid var(--ink); background: var(--white); padding: 3px 9px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ln .redo-opts button.on { background: var(--yellow); }
.ln.redo-on { box-shadow: inset 6px 0 0 var(--yellow); }
.ln .redo-res { font-size: 12px; font-weight: 600; }
.ln .redo-res.ok { color: #1E7A3C; }
.ln .redo-res.no { color: #9A5B00; }

/* result page editor: per-line tools */
.ln .tools { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.ln .tools[hidden], .ln .panel[hidden] { display: none; }
.ln .tools button { border: 0; background: transparent; padding: 2px 0; font-size: 13px; font-weight: 600; color: #5A5850; cursor: pointer; }
.ln .tools button:hover, .ln .tools button.on { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ln .panel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; padding: 8px; background: #F4F1E8; border: 1px solid #E4DFD3; }
.ln .panel button { border: 2px solid var(--ink); background: var(--white); padding: 3px 9px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ln .panel button.on { background: var(--yellow); }
.ln .panel small { flex-basis: 100%; font-size: 12px; color: #5A5850; }
.ln .panel .ver { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding-right: 6px; }
.ln .panel .shift-val { min-width: 54px; text-align: center; font-weight: 700; font-size: 13px; }
.ln .panel .cut { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 14px; flex-basis: 100%; }
.ln .panel .cut button { padding: 0 6px; border-width: 1px; font-size: 12px; }

/* simple result page */
.note-ai { padding: 12px 16px; background: #EAF6EE; border-left: 6px solid #1E7A3C; font-size: 15px; line-height: 1.5; }
.box-body textarea.field { width: 100%; padding: 10px 12px; border: 2px solid var(--ink); font-size: 15px; line-height: 1.45; resize: vertical; }

/* beta: until Tier 2 and payments (2026-10-22) */
.logo .beta{font:600 10px/1 'JetBrains Mono',monospace;letter-spacing:.08em;color:#0B0B0C;background:#8FCDF4;padding:3px 5px;margin-left:8px;align-self:center}  /* sky blue (owner: yellow did not suit) */
.beta-bar{background:#8FCDF4;color:#0B0B0C;font:500 13px/1.4 'Onest',sans-serif;text-align:center;padding:6px 16px}
.beta-bar a{color:inherit;text-decoration:underline}

/* language switch (app/i18n.py) */
.langs{display:flex;gap:2px;margin-left:auto;margin-right:12px;font:600 12px/1 'JetBrains Mono',monospace}
.langs a{padding:6px 7px;color:#bdbdbd;text-decoration:none;border:1px solid transparent}
.langs a.on{color:#0B0B0C;background:#F5C518}
.langs a:hover{border-color:#F5C518}
@media (max-width:640px){.langs{margin-right:6px}.langs a{padding:5px 5px}}
/* Cyrillic pages (ru, uz-Cyrl): Big Shoulders has no Cyrillic - the fallback ran wide and cut the hero title */
html[lang="ru"], html[lang="uz-Cyrl"] { --display: 'Oswald', 'Arial Narrow', sans-serif; }
html[lang="ru"] .h1, html[lang="uz-Cyrl"] .h1 { font-size: clamp(40px, 6.2vw, 84px); line-height: 1.05; }
html[lang="ru"] .h1 .nowrap, html[lang="uz-Cyrl"] .h1 .nowrap { white-space: normal; }
/* Russian (Oswald) runs wider than Big Shoulders: every big heading a step smaller and allowed to wrap */
html[lang="ru"] .h2 { font-size: clamp(36px, 5vw, 60px); }
html[lang="ru"] .h3 { font-size: clamp(34px, 5vw, 64px) !important; overflow-wrap: anywhere; }
html[lang="ru"] .price-h { font-size: clamp(34px, 4.6vw, 56px); }
html[lang="ru"] .price-h .nowrap, html[lang="ru"] .h2 .nowrap { white-space: normal; }
html[lang="ru"] .feats .t span:last-child { font-size: clamp(26px, 3.2vw, 38px); }
/* Oswald's capitals sit taller than Big Shoulders': give wrapped heading lines room to breathe */
html[lang="ru"] .h2, html[lang="ru"] .h3, html[lang="ru"] .price-h, html[lang="ru"] .feats .t span:last-child { line-height: 1.1; }
html[lang="ru"] .calc .sum, html[lang="ru"] .order .total { font-size: 44px; white-space: nowrap; }
@media (max-width: 640px) {
  html[lang="ru"] .price-h { font-size: 32px; }
  html[lang="ru"] .calc .sum { font-size: 38px; }
}

.add-pair { margin-top: 12px; background: none; border: 1.5px dashed currentColor; padding: 9px 14px; font: 600 14px/1 'Onest', sans-serif; color: inherit; cursor: pointer; }
.add-pair:hover { background: rgba(245, 197, 24, .25); }
.del-pair { flex: 0 0 auto; width: 40px; height: 40px; background: none; border: 1.5px solid currentColor; font: 600 22px/1 'Onest', sans-serif; color: inherit; cursor: pointer; }
.del-pair:hover { background: #F2A7A0; }

/* ---- phones: one tidy header for every page and language (owner 2026-10-22: "mobile uchun qulay") ---- */
.beta-bar .short, .langs-m { display: none; }
.fname { word-break: break-word; }
@media (max-width: 900px) {
  .beta-bar { font-size: 12px; padding: 5px 12px; }
  .beta-bar .long { display: none; }
  .beta-bar .short { display: inline; }
  .top .wrap { gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
  .top .logo { order: 1; margin-right: auto; font-size: 24px; }
  .top .langs { display: none; }
  .top .langs-m { display: block; order: 2; position: relative; }
  .langs-m summary { list-style: none; cursor: pointer; font: 600 13px/1 'JetBrains Mono', monospace; color: #F5C518;
                     padding: 8px 10px; border: 1px solid #3a3a3a; }
  .langs-m summary::-webkit-details-marker { display: none; }
  .langs-m summary::after { content: " ▾"; }
  .langs-m div { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; background: #0B0B0C;
                 border: 1px solid #3a3a3a; min-width: 140px; }
  .langs-m a { display: block; padding: 11px 14px; font: 600 14px/1 'JetBrains Mono', monospace; color: #e8e6df; }
  .langs-m a.on { color: #0B0B0C; background: #F5C518; }
  .top .help { order: 3; padding: 8px 10px; }
  .top .help .lbl { display: none; }
  .top .nav { order: 4; flex: 1 1 auto; gap: 14px; }
  .top .who-me, .top .btn:not(.help) { order: 5; }
  .nav-land { display: none; }
}
/* tablets keep the compact header above; only phones also drop the name and shrink headings */
@media (max-width: 640px) {
  .who-me .who-name { display: none; }
  .fname { font-size: clamp(22px, 6.5vw, 32px) !important; line-height: 1.1; word-break: break-all; }
  .price-h, html[lang="ru"] .price-h { font-size: clamp(30px, 9.5vw, 44px) !important; }
  .price-h .nowrap { white-space: normal; }
}

.play .i-pause { display: none; }
.play.playing .i-play { display: none; }
.play.playing .i-pause { display: inline; }
[data-demo] .screen { position: relative; }
[data-demo] .tap { position: absolute; inset: 0; z-index: 2; cursor: pointer; }

.order-note { margin: 0; font-size: 13px; line-height: 1.5; color: #B9B6AC; }  /* was dark grey on black: unreadable */
html[lang] h1.fname { font-size: clamp(24px, 3.2vw, 38px) !important; line-height: 1.1; word-break: break-all; }
@media (max-width: 640px) { html[lang] h1.fname { font-size: clamp(20px, 6vw, 28px) !important; } }

/* upload: a YouTube link instead of a file */
.yt { margin-top: 16px; }
.yt-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #6E6C66; margin-bottom: 10px; }
.yt-or::before, .yt-or::after { content: ""; flex: 1; border-top: 1px solid #D8D4C8; }
.yt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.yt-row .field { flex: 1 1 240px; }
.btn-ghost-d { background: none; border: 2px solid #0B0B0C; color: #0B0B0C; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.btn-ghost-d:disabled { opacity: .5; cursor: wait; }
.yt-msg { margin: 8px 0 0; font-size: 14px; min-height: 1em; }
.yt-msg.ok { color: #1F7A3A; font-weight: 600; }
.yt-msg.bad { color: #B3261E; }

/* consent before the Telegram login; account page */
.btn.is-off { opacity: .45; cursor: not-allowed; }
.check.need span { outline: 2px solid #B3261E; outline-offset: 4px; }
.who-me .who-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.del-account { background: #B3261E; color: #fff; border: 0; align-self: flex-start; }
.acc-m { display: none; }
@media (max-width: 640px) { .who-me .logout { display: none; } .who-me .acc-m { display: inline; } }
.fix-count { margin: 0; font-size: 14px; color: #55534D; }
