@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

:root {
    --bg: #0b0b0e;
    --bg-1: #111116;
    --bg-2: #17171d;
    --bg-3: #1d1d25;
    --bg-hover: #1a1a21;
    --line: #24242c;
    --line-2: #30303b;
    --fg: #e8e8ee;
    --fg-2: #9c9cab;
    --fg-3: #66667a;
    --brand: #8b5cf6;
    --brand-2: #b39cfb;
    --brand-3: #6d3fe0;
    --brand-wash: rgba(139, 92, 246, 0.12);
    --brand-line: rgba(139, 92, 246, 0.45);
    --ok: #34c77b;
    --ok-wash: rgba(52, 199, 123, 0.12);
    --warn: #e5a53a;
    --warn-wash: rgba(229, 165, 58, 0.12);
    --err: #ef5350;
    --err-wash: rgba(239, 83, 80, 0.12);
    --info: #5aa9ff;
    --info-wash: rgba(90, 169, 255, 0.12);
    --r-1: 4px;
    --r-2: 6px;
    --r-3: 10px;
    --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
    --topbar-h: 56px;
    --content-w: 1200px;
    --ease: cubic-bezier(0.2, 0, 0, 1);
    color-scheme: dark;
}

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

html {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-feature-settings: 'cv11', 'ss01', 'tnum';
    scrollbar-color: var(--line-2) var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
h1 { font-size: 26px; letter-spacing: -0.02em; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
p { margin: 0; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: 13px; }
code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; line-height: 1.35; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-1); padding: 1px 5px; color: var(--fg); }
pre { margin: 0; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-2); padding: 14px 16px; overflow-x: auto; line-height: 1.55; }
pre code { display: inline; background: none; border: 0; padding: 0; line-height: inherit; }
kbd { display: inline-block; min-width: 20px; padding: 1px 6px; text-align: center; font-size: 11px; line-height: 16px; color: var(--fg-2); background: var(--bg-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r-1); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(139, 92, 246, 0.35); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-1); }
.icon { width: 16px; height: 16px; flex: 0 0 auto; vertical-align: -3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -48px; left: 12px; z-index: 100; padding: 8px 12px; background: var(--brand); color: #fff; border-radius: var(--r-1); }
.skip-link:focus { top: 12px; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--topbar-h);
    background: rgba(11, 11, 14, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(140%) blur(6px);
}
.topbar__inner {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar--wide .topbar__inner { max-width: none; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--fg);
    font-weight: 650;
    font-size: 15px;
    letter-spacing: -0.01em;
    margin-right: 12px;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 22px; height: 22px; }
.brand__sub { color: var(--fg-3); font-weight: 450; font-size: 12px; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: var(--r-1);
    color: var(--fg-2);
    font-size: 14px;
    font-weight: 500;
}
.nav a:hover { color: var(--fg); background: var(--bg-2); text-decoration: none; }
.nav a.is-active { color: var(--fg); }
.nav a.is-active::after { content: ''; position: absolute; }
.topbar__spacer { flex: 1; }
.topbar__search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    width: 300px;
    padding: 0 10px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    color: var(--fg-3);
    transition: border-color 140ms var(--ease);
}
.topbar__search:focus-within { border-color: var(--brand-line); }
.topbar__search input { flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: var(--fg); font-size: 14px; }
.topbar__search input::placeholder { color: var(--fg-3); }
.topbar__search kbd { margin-left: auto; }
.topbar__actions { display: flex; align-items: center; gap: 6px; }
.avatar {
    width: 30px;
    height: 30px;
    line-height: 1;
    padding: 0;
    text-transform: uppercase;
    font-family: var(--font-ui);
    border-radius: 50%;
    background: var(--brand-wash);
    border: 1px solid var(--brand-line);
    color: var(--brand-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.02em;
    overflow: hidden;
    flex: 0 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.menu { position: relative; }
.menu__btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 4px; background: none; border: 1px solid transparent; border-radius: var(--r-2); cursor: pointer; color: var(--fg-2); }
.menu__btn:hover, .menu__btn[aria-expanded="true"] { border-color: var(--line); background: var(--bg-1); color: var(--fg); }
.menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    background: var(--bg-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    padding: 6px;
    z-index: 50;
}
.menu__panel[hidden] { display: none; }
.menu__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu__head strong { display: block; font-size: 14px; }
.menu__head span { display: block; font-size: 12px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: var(--r-1); color: var(--fg-2); font-size: 14px; text-align: left; cursor: pointer; }
.menu__item:hover { background: var(--bg-2); color: var(--fg); text-decoration: none; }
.menu__item .icon { color: var(--fg-3); }
.menu__sep { border-top: 1px solid var(--line); margin: 6px 0; }
.topbar .topbar__burger { display: none; }

.main { flex: 1; width: 100%; }
.container { max-width: var(--content-w); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 720px; }
.container--doc { max-width: 920px; }
.prose--wide { max-width: none; }
.container--form { max-width: 440px; }
.page { padding-block: 36px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head__text { max-width: 640px; }
.page-head p { margin-top: 6px; color: var(--fg-2); }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-head__actions .select { width: auto; }
.page-head__actions .input { width: 240px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-3); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--fg-2); }
.crumbs .icon { width: 14px; height: 14px; color: var(--fg-3); }
.section { margin-top: 40px; }
.section--first { margin-top: 0; margin-bottom: 28px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section__head p { color: var(--fg-2); font-size: 14px; }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack--lg { gap: 20px; }
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--r-2);
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    color: var(--fg);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 120ms var(--ease), border-color 120ms var(--ease), color 120ms var(--ease);
    text-decoration: none;
}
.btn:hover { background: var(--bg-3); border-color: var(--fg-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-3); border-color: var(--brand-3); }
.btn--ghost { background: none; border-color: transparent; color: var(--fg-2); }
.btn--ghost:hover { background: var(--bg-2); border-color: transparent; color: var(--fg); }
.btn--danger { color: var(--err); border-color: rgba(239, 83, 80, 0.4); background: none; }
.btn--danger:hover { background: var(--err-wash); border-color: var(--err); }
.btn--ok { color: var(--ok); border-color: rgba(52, 199, 123, 0.4); background: none; }
.btn--ok:hover { background: var(--ok-wash); border-color: var(--ok); }
.btn--sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn--lg { height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--icon { width: 36px; padding: 0; }
.btn--icon.btn--sm { width: 30px; }
.btn .icon { width: 16px; height: 16px; }
.btn--discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn--discord:hover { background: #4752c4; border-color: #4752c4; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field__label { font-size: 13px; font-weight: 500; color: var(--fg-2); }
.field__hint { font-size: 12px; color: var(--fg-3); }
.field__error { font-size: 12px; color: var(--err); }
.field--error .input { border-color: var(--err); }
.input, .select, .textarea {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: var(--bg-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-2);
    color: var(--fg);
    font-size: 14px;
    transition: border-color 120ms var(--ease);
}
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.textarea[rows="2"] { min-height: 68px; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--fg-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-wash); }
.input--mono { font-family: var(--font-mono); font-size: 13px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c9cab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }
.dd { position: relative; display: block; min-width: 0; }
.dd__native { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }
.dd__btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 38px; padding: 0 10px 0 12px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-2); color: var(--fg); font-size: 14px; text-align: left; cursor: pointer; transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease); }
.dd__btn:hover { border-color: var(--fg-3); }
.dd__btn:focus-visible, .dd.is-open .dd__btn { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-wash); }
.dd__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dd__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__chev { width: 16px; height: 16px; flex: 0 0 auto; color: var(--fg-2); transition: transform 140ms var(--ease); }
.dd.is-open .dd__chev { transform: rotate(180deg); }
.dd__menu { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 280px; overflow: auto; margin: 0; padding: 5px; list-style: none; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-2); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); animation: dd-in 120ms var(--ease); }
.dd--up .dd__menu { top: auto; bottom: calc(100% + 4px); }
@keyframes dd-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.dd__item { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 28px; border-radius: var(--r-1); color: var(--fg-2); font-size: 14px; white-space: nowrap; cursor: pointer; }
.dd__item.is-focus { background: var(--bg-2); color: var(--fg); }
.dd__item.is-selected { color: var(--fg); }
.dd__item.is-selected::before { content: ''; position: absolute; left: 11px; top: 50%; width: 5px; height: 9px; margin-top: -6px; border: solid var(--brand-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dd__item.is-disabled { opacity: 0.4; cursor: not-allowed; }
.dd--compact .dd__btn { height: 34px; font-size: 13px; }
.page-head__actions .dd { width: auto; }
.page-head__actions .dd__btn { width: auto; min-width: 170px; }
.browse__filter .dd { flex: 0 0 auto; }
.browse__filter .dd__btn { width: auto; min-width: 112px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-group { position: relative; }
.input-group .btn--icon { position: absolute; right: 4px; top: 4px; height: 30px; width: 30px; }
.input-group .input { padding-right: 40px; }
.strength { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.strength__bar { height: 100%; width: 0; background: var(--err); transition: width 160ms var(--ease), background-color 160ms var(--ease); }
.strength__bar[data-level="2"] { background: var(--warn); }
.strength__bar[data-level="3"], .strength__bar[data-level="4"] { background: var(--ok); }

.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-3); }
.panel__body { padding: 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.panel__head h2, .panel__head h3 { font-size: 15px; }
.panel__foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.panel--flat { background: none; }
.card-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--bg-1); }
.card-list__item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); color: inherit; }
.card-list__item:first-child { border-top: 0; }
a.card-list__item:hover { background: var(--bg-hover); text-decoration: none; }
.card-list__main { flex: 1; min-width: 0; }
.card-list__title { font-weight: 550; display: flex; align-items: center; gap: 8px; }
.card-list__meta { font-size: 13px; color: var(--fg-3); margin-top: 2px; display: flex; gap: 12px; flex-wrap: wrap; }
.card-list__end { display: flex; align-items: center; gap: 12px; color: var(--fg-3); font-size: 13px; }
.card-list__end .icon { color: var(--fg-3); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 20px;
    padding: 0 7px;
    border-radius: var(--r-1);
    border: 1px solid var(--line-2);
    color: var(--fg-2);
    font-size: 11.5px;
    font-weight: 550;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.badge--brand { color: var(--brand-2); border-color: var(--brand-line); background: var(--brand-wash); }
.badge--ok { color: var(--ok); border-color: rgba(52, 199, 123, 0.4); background: var(--ok-wash); }
.badge--warn { color: var(--warn); border-color: rgba(229, 165, 58, 0.4); background: var(--warn-wash); }
.badge--err { color: var(--err); border-color: rgba(239, 83, 80, 0.4); background: var(--err-wash); }
.badge--info { color: var(--info); border-color: rgba(90, 169, 255, 0.4); background: var(--info-wash); }
.badge--mono { font-family: var(--font-mono); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot--pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-left-width: 3px; border-radius: var(--r-2); background: var(--bg-1); font-size: 14px; color: var(--fg-2); }
.alert .icon { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }
.alert strong { color: var(--fg); font-weight: 600; }
.alert--info { border-left-color: var(--info); }
.alert--info .icon { color: var(--info); }
.alert--ok { border-left-color: var(--ok); }
.alert--ok .icon { color: var(--ok); }
.alert--warn { border-left-color: var(--warn); }
.alert--warn .icon { color: var(--warn); }
.alert--err { border-left-color: var(--err); }
.alert--err .icon { color: var(--err); }
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.flashes-wrap { padding-top: 20px; }
.flashes-wrap .flashes { margin-bottom: -12px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; margin-bottom: -1px; color: var(--fg-2); font-size: 14px; font-weight: 500; white-space: nowrap; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: var(--fg); text-decoration: none; }
.tabs a.is-active, .tabs button.is-active { color: var(--fg); border-bottom-color: var(--brand); }
.tabs .count { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); padding: 1px 6px; border: 1px solid var(--line); border-radius: 10px; }
.tabs a.is-active .count { color: var(--brand-2); border-color: var(--brand-line); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-1); }
.table-wrap--flush { border: 0; border-radius: 0 0 var(--r-3) var(--r-3); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 550; color: var(--fg-3); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-1); position: sticky; top: 0; white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bg-hover); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td.mono { font-family: var(--font-mono); font-size: 13px; }
.table--dense td, .table--dense th { padding: 6px 12px; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }

.stat { padding: 16px 18px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-3); min-width: 0; }
.stat--link { display: block; }
.stat--link .stat__label { display: flex; align-items: center; gap: 4px; }
.stat--link .stat__label .icon { width: 13px; height: 13px; opacity: 0; transition: opacity 120ms var(--ease), transform 120ms var(--ease); transform: translateX(-3px); }
.stat--link:hover .stat__label .icon { opacity: 1; transform: none; }
.stat--link { color: inherit; transition: border-color 120ms var(--ease); }
.stat--link:hover { border-color: var(--brand-line); text-decoration: none; }
.evidence { margin: 0; padding-left: 18px; color: var(--fg-2); font-size: 13px; }
.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.overview__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.overview .panel.overview__col { gap: 0; }
.panel__fill { flex: 1; position: relative; min-height: 360px; }
.panel__scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; border-radius: 0 0 var(--r-3) var(--r-3); }
.panel__scroll .table-wrap { border: 0; border-radius: 0; overflow: visible; }
.panel__sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px 6px; font-size: 12px; font-weight: 550; color: var(--fg-3); border-top: 1px solid var(--line); background: var(--bg-1); position: sticky; top: 0; z-index: 2; }
.panel__sub:first-child { border-top: 0; }
.panel__sub + .table-wrap .table th { top: 35px; }
.panel__scroll .table td.mono { color: var(--fg); }
.panel__scroll .dim.tnum { display: inline-block; min-width: 3ch; text-align: right; }
.panel__head--tight { padding: 10px 20px; }
.panel__list { display: flex; flex-direction: column; }
.panel__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; border-top: 1px solid var(--line); color: var(--fg); font-family: var(--font-mono); font-size: 13px; }
.panel__list a:hover { background: var(--bg-hover); text-decoration: none; color: var(--brand-2); }
.panel__list a:first-child { border-top: 0; }
.panel__list .pkgbar { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.panel__list .pkgbar__track { width: 90px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.panel__list .pkgbar__track { display: block; }
.panel__list .pkgbar__fill { display: block; height: 100%; background: var(--brand); border-radius: 2px; opacity: 0.7; }
.panel__list .pkgbar__n { color: var(--fg-3); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 5ch; text-align: right; }
.hex { font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
button.hex { background: none; border: 0; padding: 0 2px; margin: 0 -2px; color: var(--fg); cursor: copy; border-radius: 3px; }
button.hex:hover { background: var(--brand-wash); color: var(--brand-2); }
.stat__value { font-family: var(--font-mono); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
[data-tone="err"] { color: var(--err); }
[data-tone="ok"] { color: var(--ok); }
.stat__label { font-size: 13px; color: var(--fg-3); margin-top: 2px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; font-size: 14px; }
.kv dt { color: var(--fg-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd.mono { font-family: var(--font-mono); font-size: 13px; }

.status { max-width: 520px; margin: 48px auto 0; padding: 36px 32px 32px; text-align: center; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-3); }
.status__icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-wash); color: var(--brand-2); border: 1px solid var(--brand-line); }
.status__icon .icon { width: 24px; height: 24px; }
.status--ok .status__icon { background: var(--ok-wash); color: var(--ok); border-color: rgba(52, 199, 123, 0.4); }
.status--warn .status__icon { background: var(--warn-wash); color: var(--warn); border-color: rgba(229, 165, 58, 0.4); }
.status--err .status__icon { background: var(--err-wash); color: var(--err); border-color: rgba(239, 83, 80, 0.4); }
.status__code { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.08em; margin-bottom: 8px; }
.status h1 { font-size: 22px; margin-bottom: 8px; }
.status p { color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.status p strong { color: var(--fg); }
.status__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.status__actions form { display: contents; }
.status__hint { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin-top: 22px; padding: 12px 14px; border-radius: var(--r-2); background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; color: var(--fg-2); }
.status__hint .icon { color: var(--brand-2); flex: 0 0 auto; margin-top: 2px; }
.status__hint strong { color: var(--fg); }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-3); color: var(--fg-2); }
.empty .icon { width: 28px; height: 28px; color: var(--fg-3); margin-bottom: 10px; }
.empty h3 { color: var(--fg); margin-bottom: 4px; }
.empty p { max-width: 420px; margin: 0 auto; font-size: 14px; }
.empty .btn { margin-top: 16px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--fg-3); }
.pager__links { display: flex; gap: 6px; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast { padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-left: 3px solid var(--brand); border-radius: var(--r-2); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: toast-in 160ms var(--ease); }
.toast--ok { border-left-color: var(--ok); }
.toast--err { border-left-color: var(--err); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.auth { padding: 56px 0 72px; }
.auth__head { margin-bottom: 24px; }
.auth__head h1 { font-size: 24px; }
.auth__head p { color: var(--fg-2); margin-top: 6px; }
.auth__panel { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.center { text-align: center; }
.auth__alt { display: flex; align-items: center; gap: 12px; color: var(--fg-3); font-size: 12px; margin: 4px 0; }
.auth__alt::before, .auth__alt::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.auth__foot { margin-top: 18px; font-size: 14px; color: var(--fg-2); text-align: center; }

.hero { padding: 64px 0 40px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -0.03em; line-height: 1.1; max-width: 560px; }
.hero__lead { margin-top: 16px; font-size: 17px; color: var(--fg-2); max-width: 520px; line-height: 1.55; }
.hero__actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 13px; color: var(--fg-3); }
.hero__note code { font-size: 12px; }

.layout {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    overflow: hidden;
}
.layout__title { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.layout__title strong { color: var(--fg); font-weight: 600; }
.layout__title span { color: var(--fg-3); font-size: 11.5px; }
.layout__rows { display: grid; grid-template-columns: 64px 1fr; }
.layout__row { display: contents; }
.layout__off { padding: 6px 12px; color: var(--fg-3); border-top: 1px solid var(--line); border-right: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.layout__cell { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-top: 1px solid var(--line); min-width: 0; }
.layout__row:first-child .layout__off, .layout__row:first-child .layout__cell { border-top: 0; }
.layout__bar { width: 12px; height: 10px; border-radius: 2px; background: var(--brand-wash); border: 1px solid var(--brand-line); flex: 0 0 auto; }
.layout__bar--inherited { background: var(--bg-3); border-color: var(--line-2); }
.layout__bar--pad { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--line-2) 3px 4px); border-color: var(--line-2); }
.layout__name { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layout__type { color: var(--brand-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layout__size { margin-left: auto; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.layout__row--inherited .layout__name, .layout__row--inherited .layout__type { color: var(--fg-3); }
.layout__row--pad .layout__name { color: var(--fg-3); font-style: italic; }

.zircon { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px 32px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-3); }
.zircon__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 8px; }
.zircon h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.zircon p { color: var(--fg-2); font-size: 15px; line-height: 1.6; max-width: 60ch; }
.zircon__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.zircon__side pre { font-size: 12.5px; background: var(--bg); }
.icon--sm { width: 13px; height: 13px; margin-left: -2px; opacity: 0.7; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { padding: 18px 20px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-3); }
.step__n { font-family: var(--font-mono); font-size: 12px; color: var(--brand-2); }
.step h3 { margin-top: 6px; }
.step p { margin-top: 6px; font-size: 14px; color: var(--fg-2); }
.step pre { margin-top: 12px; font-size: 12.5px; padding: 10px 12px; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 48px; align-items: start; }
.doc__toc { position: sticky; top: calc(var(--topbar-h) + 28px); font-size: 13px; }
.doc__toc-title { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }
.doc__toc a { display: block; padding: 5px 0 5px 12px; color: var(--fg-2); border-left: 1px solid var(--line); line-height: 1.35; }
.doc__toc a:hover { color: var(--fg); text-decoration: none; }
.doc__toc a.is-active { color: var(--brand-2); border-left-color: var(--brand); }
.doc__toc[hidden] { display: none; }
.prose { font-size: 15px; line-height: 1.65; color: var(--fg-2); max-width: 68ch; }
.prose > p:first-of-type:not(.updated) { font-size: 16px; color: var(--fg-2); }
.prose h2 { color: var(--fg); margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 19px; letter-spacing: -0.01em; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.prose h2:first-child, .prose .summary + h2, .prose > .summary + p + h2 { border-top: 0; padding-top: 0; }
.prose h3 { color: var(--fg); margin: 22px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--brand-2); }
.prose .updated { font-size: 13px; color: var(--fg-3); }
.prose .table { margin: 0 0 16px; font-size: 14px; }
.summary { margin: 0 0 24px; padding: 18px 20px; background: var(--bg-1); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r-2); }
.summary__head { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 8px; }
.summary ul { margin: 0; padding-left: 18px; font-size: 14px; }
.summary li { margin-bottom: 6px; }
.summary li:last-child { margin-bottom: 0; }
.steps--compact { margin-bottom: 20px; }
.steps--compact .step { padding: 14px 16px; }
.steps--compact .step h3 { font-size: 14px; }
.steps--compact .step p { font-size: 13px; }
.check span a { color: var(--brand-2); }
.prose .table td.mono { width: 50%; overflow-wrap: anywhere; }
.prose .table--keys td.mono { width: 1%; white-space: nowrap; padding-right: 20px; }
.prose .table--keys td:nth-child(2) { width: 1%; white-space: nowrap; color: var(--fg-3); }
.prose pre { margin: 0 0 16px; font-size: 12.5px; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 40px; font-size: 13px; color: var(--fg-3); background: var(--bg); }
.footer__inner { max-width: var(--content-w); margin: 0 auto; padding: 0 20px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer__brand p { margin-top: 10px; max-width: 34ch; line-height: 1.6; }
.footer__brand .brand { margin: 0; }
.footer__brand a:not(.brand) { color: var(--fg-2); }
.footer__col { display: flex; flex-direction: column; gap: 7px; }
.footer__title { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
.footer__col a { color: var(--fg-2); display: inline-flex; align-items: baseline; gap: 6px; }
.footer__col a span { color: var(--fg-3); font-size: 12px; }
.footer__col a:hover { color: var(--fg); text-decoration: none; }
.footer__col a:hover span { color: var(--fg-2); }

.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 32px 0 64px; }
.admin__nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--topbar-h) + 24px); align-self: start; }
.admin__nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-1); color: var(--fg-2); font-size: 14px; }
.admin__nav a:hover { background: var(--bg-2); color: var(--fg); text-decoration: none; }
.admin__nav a.is-active { background: var(--brand-wash); color: var(--brand-2); }
.admin__nav .icon { color: inherit; opacity: 0.8; }
.admin__nav .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.admin__title { font-size: 12px; font-weight: 550; color: var(--fg-3); padding: 0 10px 8px; }
.admin__main { min-width: 0; }

.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress__bar { height: 100%; background: var(--brand); border-radius: 3px; transition: width 300ms var(--ease); }
.progress--indeterminate .progress__bar { width: 30%; animation: indeterminate 1.2s infinite var(--ease); }
@keyframes indeterminate { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

.copy-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; height: 20px; border: 0; background: none; color: var(--fg-3); cursor: pointer; border-radius: var(--r-1); }
.copy-btn:hover { color: var(--fg); background: var(--bg-3); }
.copy-btn .icon { width: 13px; height: 13px; }
.copy-btn.is-done { color: var(--ok); }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.game-card { display: flex; flex-direction: column; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-3); color: inherit; min-width: 0; transition: border-color 120ms var(--ease), background-color 120ms var(--ease); }
.game-card:hover { border-color: var(--brand-line); text-decoration: none; background: var(--bg-hover); }
.game-card__top { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.game-card__mark { width: 40px; height: 40px; flex: 0 0 auto; border-radius: var(--r-2); background: var(--brand-wash); border: 1px solid var(--brand-line); color: var(--brand-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.game-card__title { min-width: 0; flex: 1; }
.game-card__title strong { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-card__title span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-3); margin-top: 3px; }
.game-card__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.game-card__stat { padding: 10px 14px; border-left: 1px solid var(--line); min-width: 0; }
.game-card__stat:first-child { border-left: 0; padding-left: 18px; }
.game-card__stat b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--fg); }
.game-card__stat span { display: block; font-size: 11.5px; color: var(--fg-3); margin-top: 1px; }
.game-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3); }
.game-card__foot .mono { color: var(--fg-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-card__foot .icon { width: 14px; height: 14px; color: var(--fg-3); flex: 0 0 auto; transition: transform 120ms var(--ease); }
.game-card:hover .game-card__foot .icon { transform: translateX(2px); color: var(--brand-2); }
.facts { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-1); overflow: hidden; }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; border-left: 1px solid var(--line); flex: 1 1 160px; min-width: 0; }
.fact:first-child { border-left: 0; }
.fact__label { font-size: 12px; color: var(--fg-3); }
.fact__value { font-size: 15px; font-weight: 550; color: var(--fg); display: flex; align-items: center; gap: 8px; min-width: 0; }
.fact__value.mono { font-weight: 500; font-size: 14px; }
.fact__value .dim { font-weight: 400; font-size: 13px; }

@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .steps { grid-template-columns: 1fr; }
    .zircon { grid-template-columns: 1fr; padding: 22px 20px; }
    .overview { grid-template-columns: 1fr; }
    .panel__fill { position: static; min-height: 0; }
    .panel__scroll { position: static; max-height: 480px; }
    .admin { grid-template-columns: 1fr; gap: 20px; }
    .doc { grid-template-columns: 1fr; }
    .doc__toc { display: none; }
    .admin__nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .admin__title { display: none; }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    html { font-size: 14.5px; }
    .topbar__search { display: none; }
    .nav { display: none; }
    .topbar--open .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: var(--topbar-h); padding: 8px 12px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
    .topbar--open .nav a { height: 40px; }
    .topbar .topbar__burger { display: inline-flex; }
    .grid--2, .grid--3 { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat { padding: 12px 14px; }
    .stat__value { font-size: 19px; }
    .form__row { grid-template-columns: 1fr; }
    .page { padding-block: 24px 48px; }
    .hero { padding: 36px 0 24px; }
    .game-grid { grid-template-columns: 1fr; }
    .section__head:has(p) { flex-direction: column; align-items: flex-start; gap: 4px; }
    .fact { flex-basis: 45%; border-top: 1px solid var(--line); }
    .fact:nth-child(-n+2) { border-top: 0; }
    .fact:nth-child(odd) { border-left: 0; }
    .kv { grid-template-columns: 1fr; gap: 2px 0; }
    .kv dt { margin-top: 8px; }
    .card-list__end { display: none; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer__brand { grid-column: 1 / -1; }
    .auth { padding: 28px 0 48px; }
    .status { margin-top: 12px; padding: 26px 20px 24px; }
}
@media (max-width: 560px) {
    .brand__sub { display: none; }
    .topbar__actions .btn--primary { display: none; }
    .topbar__inner { padding: 0 12px; }
    .container { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 140px; padding: 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-3); background: var(--bg); cursor: pointer; transition: border-color 120ms var(--ease), background-color 120ms var(--ease); }
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-over { border-color: var(--brand); background: var(--brand-wash); }
.dropzone__idle, .dropzone__file { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dropzone__idle[hidden], .dropzone__file[hidden] { display: none; }
.dropzone__icon { width: 26px; height: 26px; color: var(--fg-3); margin-bottom: 4px; }
.dropzone__file strong { font-family: var(--font-mono); font-size: 14px; word-break: break-all; }
.upload-progress { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg); }
.upload-progress[hidden] { display: none; }
.upload-progress__head { justify-content: space-between; }
.alert[hidden] { display: none; }

.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.codes span { padding: 6px 10px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-1); font-size: 13px; letter-spacing: 0.04em; text-align: center; }
.twofa-setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.twofa-setup__qr svg { display: block; border-radius: var(--r-2); }
.twofa-setup__secret { display: inline-block; font-size: 13px; letter-spacing: 0.06em; padding: 6px 10px; }
@media (max-width: 560px) { .twofa-setup { grid-template-columns: 1fr; } }

.dl { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-3); color: inherit; transition: border-color 120ms var(--ease), background-color 120ms var(--ease); min-width: 0; }
.dl:hover { border-color: var(--brand-line); text-decoration: none; background: var(--bg-hover); }
.dl__head { display: flex; align-items: center; gap: 10px; }
.dl__icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-2); background: var(--brand-wash); color: var(--brand-2); flex: 0 0 auto; }
.dl__icon .icon { width: 16px; height: 16px; }
.dl__head strong { font-size: 15px; flex: 1; min-width: 0; }
.dl__meta { color: var(--fg-3); white-space: nowrap; font-size: 12px; }
.dl__meta--pending { font-family: var(--font-ui); font-style: italic; }
.dl__body { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.dl__foot { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brand-2); font-weight: 500; margin-top: auto; }
.dl__foot .icon { width: 14px; height: 14px; }
.section--tight { margin-top: 10px; }
.apikey-secret { font-size: 13px; padding: 6px 10px; word-break: break-all; }
.promo { margin: 56px 0 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.page .promo { margin-bottom: 0; }
.promo__head { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.promo__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.promo__card { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-1); color: inherit; }
.promo__card:hover { text-decoration: none; border-color: var(--line-2); background: var(--bg-hover); }
.promo__card .icon { width: 18px; height: 18px; color: var(--brand-2); flex: 0 0 auto; margin-top: 2px; }
.promo__card strong { display: block; font-size: 14px; }
.promo__card span { display: block; font-size: 13px; color: var(--fg-2); margin-top: 2px; }
.promo[hidden] { display: none; }
@media (max-width: 760px) { .promo__grid { grid-template-columns: 1fr; } }
