/* Цвета и размеры элементов портала берутся из текущей темы авиагруппы. */
:root {
    --portal-surface: var(--cir-glass, #f7f9fb);
    --portal-ink: var(--cir-txt, #1d3448);
    --portal-muted: var(--cir-mut, #4c6275);
    --portal-line: var(--cir-line, #b8c8d7);
    --portal-accent: var(--cir-link, #18699d);
}
html[data-theme=dark] {
    --portal-surface: var(--cir-glass, #1d2b3d);
    --portal-ink: var(--cir-txt, #dde7f1);
    --portal-muted: var(--cir-mut, #a3b5c9);
    --portal-line: var(--cir-line, #455970);
    --portal-accent: var(--cir-link, #98c7fa);
}
.portal-native {
    --ink:var(--portal-ink); --muted:var(--portal-muted); --surface:var(--portal-surface);
    --line:var(--portal-line); --accent:var(--portal-accent); --action:var(--portal-accent); --on:var(--portal-surface);
    min-width:0; text-align:start; color:var(--ink);
}
.portal-native, .portal-native * {box-sizing:border-box}
.portal-workspace {max-width:100%; margin-inline:auto; min-width:0}
.portal-native .portal-workspace h1 {font-size:clamp(1.45rem,3vw,2.25rem);font-weight:700;font-family:inherit; line-height:1.16; text-transform:none; letter-spacing:-.025em}
.portal-native .portal-workspace h2 {font-size:1.2em;line-height:1.3;text-transform:none}
.portal-native .portal-workspace :is(h1,h2,h3,p) {margin:0 0 .7em}
.portal-workspace .panel,.portal-workspace .hero,.portal-directory {
    margin:0 0 1rem; padding:clamp(.8rem,1.7vw,1.5rem); min-width:0;
    background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:var(--cir-r,6px)
}
.portal-workspace .hero {border-inline-start:3px solid var(--accent)}
.portal-workspace :is(a,.link) {color:var(--accent)}
.portal-workspace :is(button,.button,input,textarea,select) {font:inherit;max-width:100%}
.portal-workspace :is(button,.button,input:not([type=hidden]),textarea,select) {
    color:var(--ink);border:1px solid var(--line);background:var(--surface);border-radius:5px;padding:.45em .7em
}
.portal-workspace :is(button,.button) {cursor:pointer;display:inline-block;text-decoration:none}
.portal-workspace :is(button,.button):hover {border-color:var(--accent)}
.portal-workspace :is(.actions,.tabs),.portal-native .portal-tools,.portal-fallback {
    display:flex; align-items:center; flex-wrap:wrap; gap:.45rem 1rem
}
.portal-native nav:is(.tabs,.actions,.portal-tools) {
    position:static;inset:auto;width:auto;min-height:0;height:auto;float:none;overflow:visible;
    box-shadow:none;border-radius:0;background:transparent;transform:none;z-index:auto
}
.portal-native .portal-tools {position:static;padding:.75rem 0;margin:.5rem 0;color:var(--muted);border:0;border-top:1px solid var(--line);font:inherit;font-size:.85em}
.portal-native .portal-tools a {font:inherit;color:var(--accent)}
.portal-workspace .cols,.portal-workspace .numbers,.portal-workspace .linkgrid {display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}
.portal-workspace .numbers strong,.portal-workspace .row small {display:block}
.portal-workspace .numbers strong {font-size:1.6em}
.portal-workspace .row {display:grid;grid-template-columns:minmax(6em,1fr) minmax(10em,2fr) minmax(6em,1fr);align-items:center;gap:.5rem 1rem;padding:.6em 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.portal-workspace .row:last-child {border:0}
.portal-workspace dl {display:grid;grid-template-columns:minmax(6em,1fr) minmax(10em,2fr);gap:.45em 1em;margin:0 0 .8em}
.portal-workspace dd {margin:0;overflow-wrap:anywhere}
.portal-workspace :is(small,dt,time) {color:var(--muted)}
.portal-workspace .country-flag {width:1.2em;height:auto;vertical-align:middle}
.portal-workspace .changelog-entry {max-width:52rem}
.portal-workspace .changelog-entry time {display:block;margin-bottom:.4rem}
.portal-directory>summary {cursor:pointer;font-weight:700}
.portal-directory[open]>summary {margin-bottom:1em}
.portal-skip {position:absolute;left:-10000px}
.portal-skip:focus {position:fixed;top:0;left:0;padding:.6rem;background:var(--portal-surface);color:var(--portal-ink);z-index:100000}
.portal-native :focus-visible,.portal-fallback a:focus-visible {outline:2px solid var(--portal-accent);outline-offset:2px}
html[data-portal-skin=cirrus] .portal-workspace {font-family:var(--cir-font,inherit)}
html[data-portal-skin=cirrus] .portal-workspace .panel {box-shadow:var(--cir-shadow,none)}
.portal-fallback {padding:1rem;background:var(--portal-surface)}
@media(max-width:700px) {
    .portal-workspace .row {grid-template-columns:1fr auto}
    .portal-workspace .row>:nth-child(2) {grid-row:2;grid-column:1/-1}
    .portal-workspace dl {grid-template-columns:minmax(5em,1fr) minmax(7em,1.5fr)}
    .portal-workspace .cols {grid-template-columns:1fr}
    .portal-native .portal-tools {gap:.4em 1em}
}

.special-frame{margin:0;background:var(--portal-surface);color:var(--portal-ink);font:16px/1.5 system-ui,sans-serif}
.special-head{box-sizing:border-box;max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.65rem 1rem;padding:.85rem 1rem;border-bottom:1px solid var(--portal-line)}
.special-head>a{display:inline-flex;align-items:center;gap:.7rem;color:var(--portal-ink);font-size:1.25rem;font-weight:700;text-decoration:none}.special-head nav{display:flex;gap:.8rem;flex-wrap:wrap}.special-head nav a{color:var(--portal-accent)}
