/* Ветер ТВ — общий стиль (по макету Veter_TV_ready) */
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(fonts/manrope-400.ttf) format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(fonts/manrope-600.ttf) format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/manrope-700.ttf) format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(fonts/manrope-800.ttf) format('truetype'); }

:root {
  color-scheme: light;
  --bg: #edf2f6; --panel: #fff; --ink: #102d46; --muted: #5b7183; --line: #dbe5ed;
  --blue: #007ecb; --soft: #e6f5ff; --red: #e5484d; --shadow: 0 12px 40px #173d5810;
}
body.dark {
  color-scheme: dark;
  --bg: #0e1b28; --panel: #172a3b; --ink: #edf7ff; --muted: #a5bbcc; --line: #304859; --soft: #183f59; --shadow: 0 12px 40px #0002;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 Manrope, 'Segoe UI', Arial, sans-serif; font-synthesis: none; }
button, input { font: inherit; }
button, a, input { outline-offset: 4px; }
button { cursor: pointer; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); padding: 10px 15px; font-weight: 700; }
button:hover { border-color: var(--blue); }
button:disabled { opacity: .6; cursor: default; }
button.active, .primary { background: var(--blue); border-color: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
input { border: 1px solid var(--line); border-radius: 8px; padding: 11px; background: var(--bg); color: var(--ink); width: 100%; min-width: 0; }
p { margin: 8px 0; color: var(--muted); }
h1 { font-size: clamp(30px, 3.2vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -.045em; margin: 9px 0; }
h2 { font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 14px; }
h3 { font-size: 15px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; margin: 8px 0; }
.eyebrow { font-size: 11px; letter-spacing: .14em; color: var(--blue); font-weight: 800; text-transform: uppercase; }

/* Шапка */
.header { max-width: 1540px; margin: auto; display: flex; align-items: center; gap: 24px; padding: 19px 30px; }
.brand { width: 174px; height: 58px; object-fit: contain; display: block; }
body.dark .brand { filter: invert(1) hue-rotate(180deg); }
.header nav { display: flex; gap: 24px; font-size: 14px; font-weight: 700; }
.status { margin-left: auto; font-size: 12px; letter-spacing: .07em; font-weight: 800; color: var(--muted); white-space: nowrap; }
.status:before { content: '○'; margin-right: 7px; }
.status.on { color: var(--blue); }
.status.on:before { content: '●'; color: var(--red); }
.header .theme { white-space: nowrap; font-size: 12px; padding: 9px 12px; }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.userbox b { color: var(--blue); }

/* Панели */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.pad { padding: 23px; }
.avatar { flex-shrink: 0; width: 44px; height: 44px; background: var(--soft); color: var(--blue); display: grid; place-items: center; border-radius: 50%; font-weight: 900; }

/* Окно и всплывашка */
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 28px; max-width: 470px; width: calc(100% - 32px); background: var(--panel); color: var(--ink); }
dialog::backdrop { background: #001b32a8; backdrop-filter: blur(5px); }
dialog .close { float: right; padding: 2px 10px; font-size: 20px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--panel); padding: 12px 22px; border-radius: 10px; z-index: 20; box-shadow: var(--shadow); }

@media (max-width: 720px) {
  .header { padding: 12px 15px; gap: 8px; flex-wrap: wrap; }
  .header nav { order: 3; width: 100%; overflow: auto; font-size: 12px; justify-content: space-between; gap: 12px; }
  .header .brand { width: 110px; height: 38px; }
  .header .theme { font-size: 14px; padding: 6px 9px; }
  .header button { padding: 7px 10px; font-size: 12px; }
  .lbl { display: none; }
  .userbox { gap: 6px; font-size: 12px; }
  .status { font-size: 10px; }
  h1 { font-size: 30px; }
}
