/* Кворум – стил на сайта и работното пространство.
   Цветовете идват от таблото в залата: тъмносиньо #0e1e54, синьо #18338c, зелено #1d8d28, червено.
   Без външни шрифтове – никакви заявки към трети страни при зареждане на страница. */

:root {
    --navy: #0e1e54;
    --navy-2: #142a6e;
    --brand: #18338c;
    --brand-hover: #122a75;
    --brand-soft: #e8ecf7;
    --ink: #1b2433;
    --ink-2: #4a5568;
    --ink-3: #6b7587;
    --line: #d4d9e1;
    --line-soft: #e8ebf0;
    --paper: #f4f5f7;
    --surface: #ffffff;
    --ok: #1d8d28;
    --ok-soft: #e6f3e7;
    --bad: #c62d23;
    --bad-soft: #fbe9e7;
    --warn: #9a6200;
    --warn-soft: #fbf1df;
    --r: 2px;
    --font: "Segoe UI", "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { line-height: 1.25; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--mono); font-size: 13px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ───────────── знак ───────────── */
.mark {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: linear-gradient(180deg, #18338c 0 34%, #ffffff 34% 40%, #0e1e54 40% 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
    position: relative;
    flex: none;
}
.mark::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 4px; background: #1d8d28; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: .01em; text-decoration: none; color: inherit; }

/* ───────────── публичен сайт ───────────── */
.site { min-height: 100dvh; display: flex; flex-direction: column; }

.site-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-bar-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 28px; }
.site-bar .wordmark { color: var(--navy); }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-actions form { margin: 0; }

.site-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 20px 64px; }
.site-main.narrow { max-width: 760px; }

.site-foot { background: var(--navy); color: #c9d1e8; font-size: 13.5px; }
.site-foot-in { max-width: 1180px; margin: 0 auto; padding: 28px 20px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot .fine { color: #9aa6c8; margin-top: 10px; max-width: 52ch; }
@media (max-width: 760px) {
    .site-foot-in { grid-template-columns: 1fr; }
    .site-nav { display: none; }
}

/* начална страница */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 16px 0 40px; }
.hero h1 { font-size: 38px; line-height: 1.15; margin-bottom: 14px; max-width: 16ch; }
.hero p { font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.hero .actions { margin-top: 22px; }
.hero-board { border: 1px solid var(--navy); }
.hero-caption { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 30px; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 8px; }
.features > div { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.features h3 { font-size: 15.5px; margin-bottom: 6px; }
.features p { color: var(--ink-2); margin: 0; font-size: 14.5px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

.notice { border-left: 3px solid var(--brand); background: var(--brand-soft); padding: 12px 16px; margin: 24px 0; font-size: 14px; color: var(--ink); }

/* ───────────── правни текстове ───────────── */
.legal h1 { font-size: 28px; }
.legal .meta { color: var(--ink-3); font-size: 13.5px; margin-bottom: 24px; }
.legal h2 { font-size: 18px; margin: 32px 0 10px; padding-top: 4px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.legal p, .legal li { max-width: 72ch; line-height: 1.62; }
.legal ol, .legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal .toc { background: var(--surface); border: 1px solid var(--line); padding: 14px 20px; margin-bottom: 8px; }
.legal .toc ol { margin: 0; }
.legal table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; background: var(--surface); }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; font-size: 14px; }
.legal th { background: var(--paper); font-weight: 600; }
.legal .strong-note { border: 1px solid var(--navy); padding: 14px 18px; background: var(--surface); }

/* ───────────── работно пространство ───────────── */
.ws { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }

.ws-side { background: var(--navy); color: #d6dcef; display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; }
.ws-brand { display: flex; align-items: center; padding: 16px 18px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ws-org { padding: 14px 18px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ws-org-label { font-size: 12px; color: #8f9cc4; margin-bottom: 4px; }
.ws-org select { width: 100%; background: var(--navy-2); color: #fff; border: 1px solid rgba(255, 255, 255, .18); padding: 6px 8px; border-radius: var(--r); font: inherit; font-size: 14px; }
.ws-nav { display: flex; flex-direction: column; padding: 10px 0; gap: 1px; overflow-y: auto; }
.ws-nav a { color: #d6dcef; text-decoration: none; padding: 8px 18px 8px 15px; border-left: 3px solid transparent; font-size: 14.5px; }
.ws-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.ws-nav a.active { border-left-color: #6f8de6; background: rgba(255, 255, 255, .08); color: #fff; }
.ws-nav .ws-nav-sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 8px 18px; }
.ws-me { margin-top: auto; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.ws-me a, .ws-me button { color: #aab6da; }
.ws-me .ws-me-name { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-me form { display: inline; margin: 0; }
.ws-me button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.ws-main { min-width: 0; }
.ws-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 28px 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ws-head h1 { margin: 0; font-size: 22px; }
.ws-head .crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.ws-head .crumbs a { color: var(--ink-3); }
.ws-body { padding: 22px 28px 48px; max-width: 1280px; }

/* лента със състоянието на таблото – същият език като екрана в залата */
.live-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; background: var(--navy); color: #fff; margin-bottom: 20px; font-size: 14px; }
.live-strip > * { padding: 9px 14px; display: flex; align-items: center; gap: 10px; }
.live-strip .ls-mode { background: var(--brand); white-space: nowrap; }
.live-strip .ls-info { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 22px; }
.live-strip .ls-state { white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-strip .ls-state.ok { background: var(--ok); }
.live-strip .ls-state.bad { background: #f0342a; }
.live-strip a { color: #fff; }

@media (max-width: 900px) {
    .ws { grid-template-columns: 1fr; }
    .ws-side { position: static; height: auto; }
    .ws-nav { flex-direction: row; flex-wrap: wrap; padding: 6px 8px; }
    .ws-nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 6px 10px; }
    .ws-nav a.active { border-bottom-color: #6f8de6; }
    .ws-nav .ws-nav-sep { display: none; }
    .ws-me { margin-top: 0; }
    .ws-head, .ws-body { padding-left: 16px; padding-right: 16px; }
    .live-strip { grid-template-columns: 1fr; }
}

/* администрация на платформата – същата рамка, различен акцент */
.ws.platform .ws-side { background: #1f2633; }
.ws.platform .ws-nav a.active { border-left-color: #f0a020; }
.ws.platform .ws-org-label { color: #f0b54d; }

/* ───────────── панели ───────────── */
.panel { background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 15.5px; }
.panel-body { padding: 16px; }
.panel-body > :last-child { margin-bottom: 0; }
.panel.flush .panel-body { padding: 0; }
.panel.narrow { max-width: 560px; margin: 40px auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* показатели: числото е основното, етикетът – под него */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.figures > div { padding: 10px 14px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.figures b { display: block; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.figures span { font-size: 13px; color: var(--ink-3); }
.c-yes { color: var(--ok); } .c-no { color: var(--bad); } .c-abs { color: var(--warn); }

/* ───────────── бутони ───────────── */
.btn {
    font: inherit;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid #b8c0cd;
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--r);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}
.btn:hover:not(:disabled) { border-color: #8f99aa; background: #fafbfc; color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn.danger { color: var(--bad); border-color: #e3b4b0; }
.btn.danger:hover:not(:disabled) { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand); padding-left: 6px; padding-right: 6px; }
.btn.small { min-height: 28px; padding: 3px 10px; font-size: 13px; }
.btn.big { width: 100%; min-height: 42px; font-size: 15px; }
.btn.yes { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.no { background: #f0342a; border-color: #f0342a; color: #fff; }
.btn.abs { background: #e0b100; border-color: #e0b100; color: #2b2300; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions.end { justify-content: flex-end; }
.ws-head .actions { margin: 0; }

/* ───────────── форми ───────────── */
label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
label .hint { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
label.check { flex-direction: row; align-items: flex-start; gap: 9px; color: var(--ink); font-weight: 400; font-size: 14px; }
label.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }

input:not([type=checkbox]):not([type=radio]), select, textarea {
    font: inherit;
    font-size: 14.5px;
    color: var(--ink);
    padding: 7px 10px;
    min-height: 36px;
    border: 1px solid #b8c0cd;
    border-radius: var(--r);
    background: var(--surface);
    width: 100%;
}
input:hover, select:hover, textarea:hover { border-color: #8f99aa; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(24, 51, 140, .18); }
textarea { resize: vertical; line-height: 1.45; }

.form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span { grid-column: 1 / -1; }
@media (max-width: 760px) { .form-grid, .form-grid.three { grid-template-columns: 1fr; } }
.form-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 4px; }

.toolbar { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 360px; }
.toolbar select { width: auto; min-width: 200px; }
.toolbar label input[type=number] { width: 130px; }
.toolbar .spacer { flex: 1; }

.validation-errors, .validation-message { color: var(--bad); font-size: 13px; margin: 0; padding-left: 18px; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--bad); }
.captcha { min-height: 66px; }

/* ───────────── съобщения ───────────── */
.alert { padding: 10px 14px; border: 1px solid; border-left-width: 3px; margin: 0 0 14px; font-size: 14px; }
.alert.ok { background: var(--ok-soft); border-color: #b9dcbc; border-left-color: var(--ok); }
.alert.bad { background: var(--bad-soft); border-color: #efc3bf; border-left-color: var(--bad); }
.alert.info { background: var(--brand-soft); border-color: #c8d1ec; border-left-color: var(--brand); }
.alert.warn { background: var(--warn-soft); border-color: #ecd6a8; border-left-color: var(--warn); }
ul.alert { padding-left: 30px; }

.tag { display: inline-block; padding: 1px 7px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--ink-2); background: var(--paper); white-space: nowrap; vertical-align: 1px; border-radius: var(--r); }
.tag.ok { color: var(--ok); border-color: #b9dcbc; background: var(--ok-soft); }
.tag.bad { color: var(--bad); border-color: #efc3bf; background: var(--bad-soft); }
.tag.info { color: var(--brand); border-color: #c8d1ec; background: var(--brand-soft); }
.tag.warn { color: var(--warn); border-color: #ecd6a8; background: var(--warn-soft); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.kind { color: var(--ink-3); font-size: 12.5px; margin-right: 6px; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fc23d; box-shadow: 0 0 0 3px rgba(47, 194, 61, .25); }

/* ───────────── таблици ───────────── */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
table.data th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-2); padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
table.data td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: #f7f9fd; }
table.data tr.current td { background: #f1f8f2; }
table.data tr.dim td { color: var(--ink-3); }
table.data td.act { text-align: right; white-space: nowrap; }
table.data td.act .btn + .btn { margin-left: 4px; }
.panel > table.data, .panel > .table-wrap > table.data { border: 0; }

.vote-chip { display: inline-block; padding: 0 7px; font-size: 12.5px; border: 1px solid var(--line); }
.vote-chip.yes { color: var(--ok); border-color: #b9dcbc; background: var(--ok-soft); }
.vote-chip.no { color: var(--bad); border-color: #efc3bf; background: var(--bad-soft); }
.vote-chip.abstain { color: var(--warn); border-color: #ecd6a8; background: var(--warn-soft); }

/* табове */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: -4px 0 18px; overflow-x: auto; }
.tabs button { font: inherit; font-size: 14px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }

/* текуща сесия в пулта */
.vote-now { border: 1px solid var(--line); border-top: 3px solid var(--ink-3); padding: 12px 14px; margin-bottom: 14px; }
.vote-now.open { border-top-color: var(--brand); background: #fafbff; }
.vote-now .vote-title { font-weight: 600; margin-bottom: 8px; }
details > summary { cursor: pointer; font-weight: 600; padding: 2px 0; }

/* ───────────── петиции (публично) ───────────── */
.pet-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pet-row { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.pet-row:hover h2 { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.pet-row h2 { font-size: 17px; margin: 0 0 4px; }
.pet-row .by { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.pet-row p { color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 700px) { .pet-row { grid-template-columns: 1fr; gap: 10px; } }

.progress { display: grid; gap: 6px; align-content: start; }
.progress-bar { height: 8px; background: var(--line-soft); }
.progress-bar span { display: block; height: 100%; background: var(--ok); }
.progress-text { font-size: 14px; font-variant-numeric: tabular-nums; }
.progress-text b { font-size: 18px; }

.pet-page { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: 32px; align-items: start; }
.pet-page h1 { font-size: 28px; margin: 6px 0 6px; }
.pet-text { font-size: 16px; line-height: 1.65; white-space: pre-line; max-width: 68ch; }
.pet-live { margin: 18px 0 24px; }
.pet-live-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13.5px; color: var(--ink-3); }
.pet-aside { position: sticky; top: 16px; }
.pet-legal { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
@media (max-width: 900px) { .pet-page { grid-template-columns: 1fr; } .pet-aside { position: static; } }

/* ───────────── вход / регистрация ───────────── */
.auth { max-width: 440px; margin: 24px auto; }
.auth h1 { font-size: 24px; }
.auth .panel-body { padding: 22px; }
.auth .switch { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 14px; }

/* ───────────── бисквитки ───────────── */
.cookie-bar {
    position: fixed;
    left: 16px;
    bottom: 16px;
    max-width: 440px;
    background: var(--navy);
    color: #e3e8f6;
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.5;
    z-index: 900;
    box-shadow: 0 8px 28px rgba(14, 30, 84, .35);
    border-left: 3px solid #6f8de6;
}
.cookie-bar a { color: #fff; }
.cookie-bar .btn { margin-top: 10px; background: #fff; color: var(--navy); border-color: #fff; }
.cookie-bar[hidden] { display: none; }

/* ───────────── грешка в Blazor ───────────── */
#blazor-error-ui {
    background: #fff4c2;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #222;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* клетки с няколко действия: пренасят се на нов ред вместо да излизат извън таблицата */
table.data td.act.wrap { white-space: normal; }
.act-wrap { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.act-wrap .btn + .btn { margin-left: 0 !important; }
table.data td.title-cell { min-width: 240px; }

/* ───────────── терминал и QR ───────────── */
.qr-poster { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 24px; margin-bottom: 18px; }
.qr-poster-code svg { width: 100%; height: auto; display: block; }
.qr-poster-org { color: var(--ink-3); font-size: 14px; margin-bottom: 4px; }
.qr-poster h2 { font-size: 24px; margin: 0 0 10px; }
.qr-poster p { font-size: 16px; color: var(--ink-2); max-width: 46ch; }
.qr-url code { font-size: 13px; word-break: break-all; }
@media (max-width: 700px) { .qr-poster { grid-template-columns: 1fr; } .qr-poster-code { max-width: 260px; } }

.qr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.qr-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px dashed #9aa4b5; padding: 12px; break-inside: avoid; page-break-inside: avoid; }
.qr-card-code svg { width: 116px; height: 116px; display: block; }
.qr-card-org { font-size: 11.5px; color: var(--ink-3); }
.qr-card-name { font-size: 16px; font-weight: 600; line-height: 1.25; margin: 2px 0 2px; }
.qr-card-meta { font-size: 12.5px; color: var(--ink-2); }
.qr-card-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 6px; font-size: 13px; color: var(--ink-2); }
.qr-card-line b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pin-blank { display: inline-block; width: 90px; border-bottom: 1px solid var(--ink); height: 18px; }

@media print {
    @page { margin: 12mm; }
    body, .ws, .ws-main { background: #fff !important; }
    .ws { display: block; }
    .ws-side, .ws-head, .live-strip, .no-print, #cookie-bar, #blazor-error-ui, .components-reconnect-container { display: none !important; }
    .ws-body { padding: 0; max-width: none; }
    body[data-print="poster"] .qr-cards { display: none !important; }
    body[data-print="poster"] .qr-poster { grid-template-columns: 1fr; text-align: center; border: 0; padding: 0; justify-items: center; margin-top: 10mm; }
    body[data-print="poster"] .qr-poster-code { width: 120mm; }
    body[data-print="poster"] .qr-poster h2 { font-size: 26pt; }
    body[data-print="poster"] .qr-poster p { font-size: 15pt; margin-left: auto; margin-right: auto; }
    body[data-print="cards"] .qr-poster { display: none !important; }
    body[data-print="cards"] .qr-cards { grid-template-columns: repeat(2, 1fr); gap: 0; }
    body[data-print="cards"] .qr-card { border: 1px dashed #777; }
}

/* ───────────── Съобщения на платформата ───────────── */
.site-notices { position: relative; z-index: 50; }
.site-notice { display: flex; align-items: flex-start; gap: 12px; padding: 10px 16px; font-size: 14px; line-height: 1.45;
    border-bottom: 1px solid; background: var(--brand-soft); border-color: #c8d1ec; color: var(--ink); }
.site-notice[hidden] { display: none; }
.site-notice.lvl-1 { background: var(--warn-soft); border-color: #ecd6a8; }
.site-notice.lvl-2 { background: var(--bad); border-color: var(--bad); color: #fff; }
.site-notice-icon { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center;
    font-weight: 700; font-size: 13px; color: #fff; background: var(--brand); margin-top: 1px; }
.site-notice.lvl-1 .site-notice-icon { background: var(--warn); }
.site-notice.lvl-2 .site-notice-icon { background: #fff; color: var(--bad); }
.site-notice-text { flex: 1; min-width: 0; }
.site-notice-text b { margin-right: 8px; }
.site-notice-when { font-weight: 600; margin-right: 8px; white-space: nowrap; }
.site-notice-msg { white-space: pre-line; }
.site-notice-x { flex: none; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 0 2px; }
.site-notice-x:hover { opacity: 1; }
.site-notices.on-board { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; }
.site-notices.on-board .site-notice { font-size: clamp(16px, 1.6vw, 28px); padding: .6em 1.2em; border-bottom: 0; border-top: 1px solid; }
.site-notices.on-board .site-notice-icon { width: 1.3em; height: 1.3em; font-size: .8em; }
@media print { .site-notices { display: none; } }
.panel.danger-zone { border-color: #efc3bf; }
.panel.danger-zone .panel-head h2 { color: var(--bad); }
