/* Фирменный стиль HMA, светлая тема: шрифт Play, оранжевый акцент, прямоугольные формы */
@font-face { font-family: 'Play'; src: url('fonts/Play-400-5.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Play'; src: url('fonts/Play-400-1.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Play'; src: url('fonts/Play-700-11.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Play'; src: url('fonts/Play-700-7.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #F5F4F2; --surface: #FFFFFF; --surface2: #FAF9F7; --line: rgba(11, 11, 11, .12);
  --text: #0B0B0B; --muted: #6E6E6E; --accent: #EB5E28; --accent-hover: #D14C19; --accent-text: #B23F10; --accent-bg: #FFF3EE;
  --head: 'Play', 'Arial Narrow', sans-serif;
  --body: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 var(--body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: .01em; }
h2 { font-size: 18px; }
h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.title { font-size: 28px; line-height: 1.1; text-transform: uppercase; padding-left: 16px; border-left: 2px solid var(--accent); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

/* формы */
label { display: flex; flex-direction: column; gap: 6px; font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; font-family: var(--body); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); flex: 0 0 auto; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-family: var(--body); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* кнопки прямоугольные, как в фирстиле */
button { border: 0; border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; padding: 9px 16px; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: .14s; white-space: nowrap; }
button:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-text); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { align-self: flex-start; background: var(--accent); box-shadow: none; color: #fff; padding: 13px 22px; font-size: 13px; }
button.primary:hover { background: var(--accent-hover); color: #fff; }

.muted { color: var(--muted); margin: 0; }
.small { font-size: 12px; margin-top: 6px; }
.notice { margin: 0; background: var(--accent-bg); border-left: 2px solid var(--accent); padding: 10px 12px; font-size: 13px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { display: block; }
.logo-text { font-family: var(--head); font-size: 12px; letter-spacing: .16em; color: var(--muted); white-space: nowrap; }

/* вход */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-box { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; }
.auth-box .logo { margin-bottom: 18px; }
.auth-box h1 { font-size: 30px; }
.auth-box button.primary { align-self: stretch; }

/* шапка */
header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-height: 70px; padding: 10px 26px; background: var(--surface); border-bottom: 1px solid var(--line); }
nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; margin-left: 12px; }
nav button { box-shadow: none; color: var(--muted); border-bottom: 2px solid transparent; }
nav button:hover { box-shadow: none; }
nav button.on { color: var(--text); border-bottom-color: var(--accent); }
header .muted { font-size: 12px; letter-spacing: .04em; }

.progress { padding: 10px 26px; background: var(--accent-bg); border-bottom: 1px solid var(--line); font-size: 13px; }
main { padding: 26px 26px 80px; display: flex; flex-direction: column; gap: 18px; }
#tab-launch, #tab-settings { max-width: 900px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.bar, .row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.bar { background: var(--surface); border: 1px solid var(--line); padding: 14px 18px; }
.bar label.check { padding-bottom: 11px; }
.bar select { min-width: 200px; max-width: 280px; }
.periods { display: flex; gap: 4px; flex-wrap: wrap; }
.periods button { padding: 12px 14px; }
.periods button.on { background: var(--accent-bg); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-text); }
.bar > .muted { margin-left: auto; padding-bottom: 11px; }

/* таблица */
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 1300px; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 11px 10px; text-align: left; vertical-align: top; }
th { font-family: var(--head); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface2); }
.wide { width: 28%; }
.mid { width: 16%; }
td textarea { width: 100%; min-width: 180px; resize: vertical; font-size: 13px; }
.center { text-align: center; }
tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.violations { margin: 8px 0; padding: 8px 10px 8px 26px; background: var(--accent-bg); color: var(--accent-text); }
details ul { margin: 4px 0; padding-left: 18px; }
summary { cursor: pointer; color: var(--muted); }

/* источники и списки */
.sources > input { width: 100%; }
.source-list { max-height: 280px; overflow-y: auto; border: 1px solid var(--line); margin-top: 8px; }
.source { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.source:hover { background: var(--surface2); }
.source input:not([type=checkbox]) { padding: 6px 10px; font-size: 13px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }

.grow { flex: 1; min-width: 240px; }
.tag { margin-left: 10px; padding: 3px 8px; background: var(--accent-bg); color: var(--accent-text); font-family: var(--head); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
#instructionForm textarea { width: 100%; resize: vertical; line-height: 1.55; font-size: 13px; }
.secret { display: block; margin-top: 8px; padding: 10px 12px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
table.report { min-width: 1000px; }
button.link { box-shadow: none; padding: 0; font-family: var(--body); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--accent-text); white-space: normal; text-align: left; }
button.link:hover { box-shadow: none; text-decoration: underline; }
#reportDetails h2 { margin: 8px 0 12px; }
#toast { position: fixed; z-index: 50; right: 18px; bottom: 18px; max-width: 420px; background: var(--text); color: #fff; padding: 12px 16px; border-left: 3px solid var(--accent); }
#toast.bad { background: #8E2500; }
@media (max-width: 700px) { header, main, .progress { padding-left: 16px; padding-right: 16px; } nav { margin-left: 0; flex-basis: 100%; order: 3; } }
.lead-link { display: inline-block; margin-top: 4px; text-decoration: underline; white-space: nowrap; }
tr.flagged td { background: #FEF7F6; }
tr.flagged td:first-child { box-shadow: inset 3px 0 0 #EDB3AC; }
tr.accepted td { background: #FFFBEB; }
tr.accepted td:first-child { box-shadow: inset 3px 0 0 #EDD683; }
tr.flagged .violations, tr.accepted .violations { background: #fff; }
.brand { font-family: var(--head); font-weight: 700; font-size: 18px; padding-left: 16px; border-left: 2px solid var(--accent); white-space: nowrap; }
.brand small { font-family: var(--body); font-weight: 400; font-size: 11px; color: var(--muted); }
