@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(./golos-text-cyrillic-ext-v7.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(./golos-text-cyrillic-v7.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(./golos-text-latin-ext-v7.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(./golos-text-latin-v7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Public Links and QR surfaces */
:root {
    color-scheme: dark;
    --bg: #161616;
    --panel: rgb(26 26 27 / 90%);
    --input: #121214;
    --border: #343437;
    --text: #f3f3f4;
    --muted: #adadb3;
    --accent: #e6e6ec;
    --danger: #f39898;
    --radius: 8px;
    font: 14px/1.5 "Golos Text", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:where(a, button, input):focus-visible { outline: 2px solid #c5c5ce; outline-offset: 3px; }
.hidden { display: none !important; }
.public-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 10% 27%, #444 0%, transparent 52%),
        radial-gradient(ellipse at 83% 75%, #363636 0%, transparent 54%),
        var(--bg);
}
.public-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url(./grain.webp) repeat;
    filter: grayscale(1);
    mix-blend-mode: soft-light;
    opacity: .14;
}
.lang-switch {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    z-index: 4;
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.lang-btn {
    min-width: 34px;
    min-height: 29px;
    padding: 3px 8px;
    border: 0;
    border-radius: 5px;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 650;
}
.lang-btn:hover,
.lang-btn[aria-pressed="true"] { color: var(--text); background: #303034; }
.public-error-layout {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 64px 16px 24px;
}
.public-error-card {
    display: grid;
    gap: 8px;
    width: min(100%, 410px);
    padding: clamp(20px, 5vw, 32px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.public-error-card h1 { font-size: clamp(21px, 4vw, 25px); line-height: 1.3; letter-spacing: -.025em; }
.public-error-card p { color: var(--muted); }
.btn-primary, .btn-ghost {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 650;
    text-align: center;
    text-decoration: none;
}
.btn-primary { color: #18181b; background: var(--accent); }
.btn-primary:hover:not(:disabled) { background: #fff; }
.btn-ghost { color: var(--text); background: #202023; border-color: var(--border); }
.btn-ghost:hover { background: #2b2b30; }
.public-error-card .btn-ghost { justify-self: start; margin-top: 6px; }
