/* rodom.is cabinet — plain, readable, Telegram-theme aware (§8.8: ≥16px text, ≥44px targets, 360px). */
:root {
  --bg: var(--tg-theme-bg-color, #fbfaf7);
  --fg: var(--tg-theme-text-color, #1d1b18);
  --muted: var(--tg-theme-hint-color, #6b665e);
  --card: var(--tg-theme-secondary-bg-color, #ffffff);
  --line: color-mix(in srgb, var(--fg) 14%, transparent);
  --accent: var(--tg-theme-button-color, #7a4b2a);
  --accent-fg: var(--tg-theme-button-text-color, #ffffff);
  --ok: #2f7d4a;
  --err: #b3261e;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not(.tg) {
    --bg: #171513; --fg: #f1ede6; --muted: #a59e93; --card: #211e1b; --accent: #c98b5b; --accent-fg: #171513;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.page { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 22px; }
h2 { font-size: 19px; margin-top: 8px; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
.brand { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 4px; }
.lead { font-size: 18px; }
.muted { color: var(--muted); font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
button, .button {
  min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
button.primary, .button.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
button:disabled { opacity: .5; cursor: default; }
button.wide, .button.wide { width: 100%; }
.field { display: block; }
.field > span { display: block; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.warning { border-left: 4px solid var(--accent); padding: 10px 12px; background: var(--card); border-radius: 8px; }
.status { min-height: 24px; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--err); display: inline-block; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; }
audio { width: 100%; }
details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
details li { margin-bottom: 8px; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.skeleton { height: 24px; border-radius: 8px; background: var(--line); margin: 12px 0; animation: pulse 1.2s infinite; }
.skeleton.short { width: 60%; }
@keyframes pulse { 50% { opacity: .5; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.footer { margin-top: 32px; }
