/* КВТК ID. Оформление как у Норы: тёмный синий, жёлтая плашка, Unbounded + Golos Text. */
@font-face { font-family: "Golos Text"; src: url("fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2-variations"); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url("fonts/golos-text-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { color-scheme: light; --ink: #0e1a33; --ink-soft: #1c2c52; --paper: #eef0f5; --card: #fff; --line: #d3d9e6; --muted: #55627f; --sub: #f5c842; --red: #b3342a; --green: #1d7549; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: "Golos Text", system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2 { font-family: "Unbounded", sans-serif; font-weight: 800; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.15rem; }
.top { background: var(--ink); color: #fff; }
.top .in { max-width: 1000px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; flex-wrap: wrap; }
.brand { display: inline-block; background: var(--sub); color: var(--ink); font-family: "Unbounded", sans-serif; font-weight: 800; padding: 6px 12px; text-decoration: none; margin-right: auto; }
.top nav a, .top nav button { color: #fff; margin-left: 18px; text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.top nav a:hover, .top nav button:hover { color: var(--sub); }
.top form { display: inline; }
main { max-width: 1000px; margin: 0 auto; padding: 28px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 26px 26px 28px; max-width: 480px; margin: 0 auto; }
.card.wide { max-width: 640px; }
.card.full { max-width: none; }
.lead { color: var(--muted); margin: 0 0 1.2em; }
.tag { display: inline-block; background: var(--ink); color: #fff; font-family: "Unbounded", sans-serif; font-weight: 700; font-size: .78rem; padding: 4px 10px; margin-bottom: 14px; }
.form { display: grid; gap: 1rem; }
.form label { display: block; font-weight: 600; }
.form label > input:not([type=checkbox]):not([type=radio]) { display: block; margin-top: .35rem; }
.hint { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: .35rem; }
input[type=text], input[type=password], input[type=search], textarea, select { width: 100%; font: inherit; padding: .6rem .75rem; border: 1px solid #9aa5bf; background: #fff; color: var(--ink); border-radius: 0; }
textarea { min-height: 5.5rem; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: 3px solid var(--sub); outline-offset: 0; }
.btn { display: inline-block; font: inherit; font-weight: 700; padding: .6rem 1.1rem; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--sub); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-soft); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.small { padding: .25rem .7rem; font-size: .85rem; }
.form .btn { width: 100%; }
.flash { max-width: 640px; margin: 0 auto 14px; padding: 12px 16px; border-left: 5px solid var(--ink); background: #fff; word-break: break-word; }
.flash.error { border-color: var(--red); }
.flash.ok { border-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rchips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rchips legend { padding: 0 0 6px; font-weight: 600; width: 100%; }
.rchips label { display: inline-block; cursor: pointer; }
.rchips input { position: absolute; opacity: 0; }
.rchips span { display: inline-block; padding: .4rem .9rem; border: 2px solid var(--ink); background: #fff; font-weight: 600; }
.rchips input:checked + span { background: var(--ink); color: #fff; }
.rchips input:focus-visible + span { outline: 3px solid var(--sub); }
[hidden] { display: none !important; }
.small { font-size: .88rem; color: var(--muted); }
.alt { margin-top: 18px; text-align: center; }
dl.profile { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 8px; }
dl.profile dt { color: var(--muted); }
dl.profile dd { margin: 0; font-weight: 600; word-break: break-word; }
.grid2 { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } .card { padding: 20px 18px 22px; } }
.cardlist { display: grid; gap: 22px; }
.card + .card { margin-top: 22px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: "Unbounded", sans-serif; font-size: .78rem; background: var(--paper); }
td form { display: inline; }
.tablewrap { overflow-x: auto; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; background: var(--ink); color: #fff; }
.badge.red { background: var(--red); }
.badge.gray { background: #8793ad; }
.secretbox { background: var(--ink); color: #fff; padding: 18px 20px; max-width: 640px; margin: 0 auto 22px; }
.secretbox code { display: block; background: #fff; color: var(--ink); padding: 10px; margin: 8px 0; word-break: break-all; user-select: all; }
.inline { display: inline; }
.rowform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.rowform input { width: auto; flex: 1 1 200px; }
details.edit { margin-top: 8px; }
details.edit summary { cursor: pointer; font-weight: 600; }
.sites { margin: 0; padding-left: 1.1rem; }
.reason { width: 9rem !important; display: inline-block; }
.card.full { max-width: none; margin-bottom: 22px; }
.secretbox .small { color: #c9d1e6; }
