@font-face {
    font-family: "Fira Sans";
    src: url("fonts/FiraSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fira Sans";
    src: url("fonts/FiraSans-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --ground: #f5f7f7;
    --surface: #ffffff;
    --sunken: #eceff0;
    --ink: #12181a;
    --ink-soft: #394447;
    --muted: #5c686c;
    --faint: #788488;
    --rule: #dae1e2;
    --rule-soft: #e8edee;
    --accent: #0b5d55;
    --accent-hover: #0e766b;
    --accent-soft: #e0efec;
    --accent-ink: #ffffff;
    --signal: #9a5407;
    --signal-soft: #fbf0e2;
    --ok: #1f6b4a;
    --header-bg: #ffffff;
    --header-ink: #12181a;
    --header-line: #dae1e2;
    --header-hover: #eceff0;
    --code-bg: #eef2f2;
    --code-ink: #0b5d55;
    --shadow: 0 1px 2px rgba(18, 24, 26, .05), 0 8px 24px -14px rgba(18, 24, 26, .3);
    --radius: 3px;
    --measure: 72ch;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ground: #0d1112;
        --surface: #151b1c;
        --sunken: #1c2426;
        --ink: #e6ecec;
        --ink-soft: #bcc7c8;
        --muted: #94a1a3;
        --faint: #7c8a8c;
        --rule: #253032;
        --rule-soft: #1b2325;
        --accent: #55cfbe;
        --accent-hover: #74e0d0;
        --accent-soft: #14302d;
        --accent-ink: #06201d;
        --signal: #e0a463;
        --signal-soft: #2b2013;
        --ok: #6cc79b;
        --header-bg: #111617;
        --header-ink: #e6ecec;
        --header-line: #253032;
        --header-hover: #1c2426;
        --code-bg: #1b2325;
        --code-ink: #55cfbe;
        --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px -14px rgba(0, 0, 0, .8);
    }
}

[data-theme="dark"] {
    --ground: #0d1112;
    --surface: #151b1c;
    --sunken: #1c2426;
    --ink: #e6ecec;
    --ink-soft: #bcc7c8;
    --muted: #94a1a3;
    --faint: #7c8a8c;
    --rule: #253032;
    --rule-soft: #1b2325;
    --accent: #55cfbe;
    --accent-hover: #74e0d0;
    --accent-soft: #14302d;
    --accent-ink: #06201d;
    --signal: #e0a463;
    --signal-soft: #2b2013;
    --ok: #6cc79b;
    --header-bg: #111617;
    --header-ink: #e6ecec;
    --header-line: #253032;
    --header-hover: #1c2426;
    --code-bg: #1b2325;
    --code-ink: #55cfbe;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px -14px rgba(0, 0, 0, .8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Fira Sans", "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--ground);
    -webkit-font-smoothing: antialiased;
}

code,
kbd,
.code {
    font-family: ui-monospace, "DejaVu Sans Mono", "Liberation Mono", Menlo, Consolas, monospace;
}

a {
    color: var(--accent);
    text-underline-offset: 2px;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    line-height: 1.22;
    font-weight: 600;
    letter-spacing: -.015em;
    margin: 0 0 .6rem;
}

h1 {
    font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.1rem);
}

h2 {
    font-size: 1.28rem;
}

h3 {
    font-size: 1.06rem;
}

.wrap {
    max-width: 78rem;
    margin: 0 auto;
    padding: 0 1.15rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: .5rem;
    z-index: 400;
    background: var(--surface);
    color: var(--ink);
    padding: .5rem .8rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .55rem 1.1rem;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-line);
}

.wordmark {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    color: var(--header-ink);
    flex-shrink: 0;
}

.wordmark b {
    font-size: 1.04rem;
    font-weight: 600;
    letter-spacing: -.015em;
}

.wordmark b i {
    font-style: normal;
    font-weight: 400;
    color: var(--muted);
}

.finder {
    position: relative;
    flex: 1 1 auto;
    max-width: 34rem;
}

.finder input {
    width: 100%;
    padding: .48rem .7rem .48rem 2.1rem;
    font: inherit;
    font-size: .93rem;
    color: var(--ink);
    background: var(--ground);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

.finder input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}

.finder svg {
    position: absolute;
    left: .62rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--faint);
    stroke-width: 1.9;
    stroke-linecap: round;
    pointer-events: none;
}

.finder kbd {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .7rem;
    color: var(--faint);
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: .05rem .3rem;
    pointer-events: none;
}

.finder input:focus ~ kbd {
    display: none;
}

.hits {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + .35rem);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 24rem;
    overflow-y: auto;
    z-index: 260;
}

.hits.open {
    display: block;
}

.hits a {
    display: grid;
    grid-template-columns: 6.5rem 1fr auto;
    gap: .7rem;
    align-items: baseline;
    padding: .4rem .65rem;
    text-decoration: none;
    color: var(--ink);
    font-size: .9rem;
}

.hits a:hover,
.hits a.sel {
    background: var(--accent-soft);
}

.hits .code {
    font-size: .8rem;
    color: var(--code-ink);
}

.hits .grp {
    font-size: .76rem;
    color: var(--faint);
}

.hits .none {
    padding: .6rem .65rem;
    color: var(--muted);
    font-size: .9rem;
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: .2rem;
    margin-left: auto;
    flex-shrink: 0;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--header-ink);
    padding: .35rem .45rem;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    line-height: 1;
}

.tool-btn:hover {
    background: var(--header-hover);
}

.tool-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rail-toggle {
    display: none;
    background: none;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    color: var(--header-ink);
    padding: .38rem .5rem;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.rail-toggle .bars,
.rail-toggle .bars::before,
.rail-toggle .bars::after {
    display: block;
    width: 15px;
    height: 2px;
    background: currentColor;
}

.rail-toggle .bars {
    position: relative;
}

.rail-toggle .bars::before,
.rail-toggle .bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.rail-toggle .bars::before {
    top: -5px;
}

.rail-toggle .bars::after {
    top: 5px;
}

.shell {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr) 17.5rem;
    align-items: start;
    min-height: calc(100vh - 44px);
}

.aside {
    position: sticky;
    top: 45px;
    max-height: calc(100vh - 45px);
    overflow-y: auto;
    padding: 1.6rem 1.1rem 1.4rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.aside .panel h2 {
    font-size: .89rem;
}

.card {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
    padding: .8rem .9rem;
    font-size: .87rem;
    line-height: 1.55;
}

.card h2 {
    font-size: .89rem;
    font-weight: 400;
    color: var(--muted);
    margin: 0 0 .45rem;
}

.card p {
    margin: 0 0 .5rem;
    color: var(--ink-soft);
}

.card a {
    text-decoration: none;
}

.card .row {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    padding: .16rem 0;
}

.card .k {
    color: var(--faint);
    flex-shrink: 0;
}

.minilist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.minilist li + li {
    border-top: 1px solid var(--rule);
}

.minilist a {
    display: block;
    padding: .45rem .9rem;
    text-decoration: none;
    color: var(--ink);
    font-size: .86rem;
    line-height: 1.4;
}

.minilist a:hover {
    background: var(--sunken);
    color: var(--accent);
}

.minilist time {
    display: block;
    font-size: .76rem;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

.panel-more {
    display: block;
    padding: .42rem .9rem;
    border-top: 1px solid var(--rule);
    font-size: .82rem;
    text-decoration: none;
    color: var(--muted);
}

.panel-more:hover {
    color: var(--accent);
    background: var(--sunken);
}

.rail {
    position: sticky;
    top: 45px;
    max-height: calc(100vh - 45px);
    overflow-y: auto;
    padding: 1.1rem .8rem 1.4rem;
    border-right: 1px solid var(--rule);
    background: var(--surface);
    font-size: .89rem;
}

.rail h2 {
    font-size: .88rem;
    color: var(--muted);
    margin: 0 0 .4rem .45rem;
    font-weight: 400;
}

.rail ul {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
}

.rail a {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    align-items: baseline;
    padding: .3rem .45rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink-soft);
}

.rail a:hover {
    background: var(--sunken);
    color: var(--ink);
}

.rail a[aria-current="page"] {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.rail .n {
    font-size: .76rem;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

.rail hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 0 .45rem 1rem;
}

.rail .ext {
    opacity: .55;
}

.pane {
    padding: 1.6rem 2rem 3rem;
    max-width: 68rem;
}

.footline {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.2rem;
    padding: .85rem 1.1rem;
    border-top: 1px solid var(--rule);
    background: var(--surface);
    color: var(--muted);
    font-size: .82rem;
}

.footline a {
    text-decoration: none;
    color: var(--muted);
}

.footline a:hover {
    color: var(--accent);
}

.footline .sep {
    color: var(--rule);
}

.footline .right {
    margin-left: auto;
}

.pane-head {
    margin-bottom: 1.2rem;
    padding-bottom: .7rem;
    border-bottom: 2px solid var(--ink);
}

.pane-head h1 {
    margin: 0;
}

.pane-head .sub {
    margin: .3rem 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.crumbs {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .7rem;
}

.crumbs a {
    text-decoration: none;
}

.crumbs .sep {
    margin: 0 .35rem;
    color: var(--faint);
}

.rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}

.rows li {
    border-bottom: 1px solid var(--rule);
}

.rows a {
    display: grid;
    grid-template-columns: 2.6rem 7.4rem minmax(0, 1fr) 11rem 3.4rem;
    gap: .9rem;
    align-items: center;
    padding: .42rem .4rem;
    text-decoration: none;
    color: var(--ink);
}

.rows .thumb {
    width: 2.6rem;
    height: 2.1rem;
    object-fit: contain;
    background: var(--surface);
    border: 1px solid var(--rule-soft);
    border-radius: 2px;
}

.rows .nothumb {
    display: block;
    width: 2.6rem;
    height: 2.1rem;
    border: 1px dashed var(--rule);
    border-radius: 2px;
}

.rows a:hover {
    background: var(--sunken);
}

.rows a:hover .nm {
    color: var(--accent);
}

.rows .code {
    font-size: .84rem;
    color: var(--code-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rows .nm {
    font-size: .95rem;
}

.rows .grp {
    font-size: .8rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rows .dn {
    font-size: .78rem;
    color: var(--faint);
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.grouphead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.9rem 0 .5rem;
}

.grouphead:first-of-type {
    margin-top: .4rem;
}

.grouphead h2 {
    margin: 0;
    font-size: 1.02rem;
}

.grouphead a {
    font-size: .8rem;
    text-decoration: none;
    color: var(--muted);
}

.grouphead a:hover {
    color: var(--accent);
}

.prodtop {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    margin-bottom: .3rem;
}

.prodtop .code {
    font-size: .86rem;
    font-weight: 600;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 2px;
    padding: .18rem .5rem;
    white-space: nowrap;
}

.prodgrid {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.prodside > * + * {
    margin-top: 1.2rem;
}

.shots {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shots img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: .5rem;
}

.panel {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
}

.panel h2 {
    font-size: .89rem;
    color: var(--muted);
    margin: 0;
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--rule);
    font-weight: 400;
}

.panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.panel li + li {
    border-top: 1px solid var(--rule);
}

.panel a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    text-decoration: none;
    color: var(--ink);
    font-size: .87rem;
}

.panel a:hover {
    background: var(--sunken);
    color: var(--accent);
}

.panel svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--signal);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.panel .sz {
    margin-left: auto;
    font-size: .75rem;
    color: var(--faint);
    flex-shrink: 0;
}

.panel p {
    margin: 0;
    padding: .6rem .75rem;
    color: var(--muted);
    font-size: .87rem;
}

.panel .tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    padding: .6rem .75rem;
}

.panel .tags a {
    padding: .1rem .45rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: .78rem;
    color: var(--muted);
}

.panel .tags a:hover {
    border-color: var(--accent);
    background: none;
}

.newsrows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}

.newsrows li {
    border-bottom: 1px solid var(--rule);
}

.newsrows a {
    display: grid;
    grid-template-columns: 6.2rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
    padding: .55rem .4rem;
    text-decoration: none;
    color: var(--ink);
}

.newsrows a:hover {
    background: var(--sunken);
}

.newsrows a:hover strong {
    color: var(--accent);
}

.newsrows time {
    font-size: .8rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.newsrows strong {
    font-weight: 400;
    font-size: .94rem;
}

.askline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding: .9rem 1.1rem;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--signal);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: .9rem;
    color: var(--muted);
}

.askline a {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.empty {
    color: var(--muted);
    border: 1px dashed var(--rule);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: .9rem;
}

.prose {
    max-width: var(--measure);
}

.prose h2 {
    font-size: 1.08rem;
    margin: 1.5rem 0 .45rem;
    padding-bottom: .25rem;
    border-bottom: 1px solid var(--rule);
}

.prose h3 {
    font-size: .98rem;
    margin: 1.1rem 0 .35rem;
}

.prose p {
    margin: 0 0 .85rem;
}

.prose ul,
.prose ol {
    margin: 0 0 .95rem;
    padding-left: 1.1rem;
}

.prose li {
    margin-bottom: .3rem;
}

.prose img {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
}

.table-scroll {
    overflow-x: auto;
    margin: 0 0 1rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

.prose table {
    border-collapse: collapse;
    width: 100%;
    font-size: .88rem;
    background: var(--surface);
}

.prose th,
.prose td {
    border-bottom: 1px solid var(--rule);
    padding: .45rem .65rem;
    text-align: left;
    vertical-align: top;
}

.prose th {
    background: var(--sunken);
    font-weight: 600;
}

.prose tr:last-child td {
    border-bottom: 0;
}

.lang-wrap {
    position: relative;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + .3rem);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 8.5rem;
    padding: .2rem;
    z-index: 300;
}

.lang-wrap.open .lang-menu {
    display: block;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .55rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    font-size: .89rem;
}

.lang-menu a:hover {
    background: var(--sunken);
}

.lang-menu a[aria-current="true"] {
    background: var(--accent-soft);
    color: var(--accent);
}

.theme-btn .icon-sun {
    display: none;
}

.theme-btn .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-btn .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-btn .icon-moon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-btn .icon-sun {
        display: block;
    }

    :root:not([data-theme="light"]) .theme-btn .icon-moon {
        display: none;
    }
}

.tool-btn .flag {
    width: 18px;
    height: 12px;
    border-radius: 1px;
    display: block;
}

.ext {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.anim :where(.pane-head, .rows, .newsrows, .grouphead, .prodgrid, .askline, .prose, .panel, .card) {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .45s cubic-bezier(.22, .61, .36, 1),
                transform .45s cubic-bezier(.22, .61, .36, 1);
}

.anim .shown {
    opacity: 1;
    transform: none;
}

@media (max-width: 1240px) {
    .shell {
        grid-template-columns: 15.5rem minmax(0, 1fr);
    }

    .aside {
        grid-column: 2;
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0 2rem 2.4rem;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        gap: 1rem;
        align-items: start;
    }
}

@media (max-width: 1000px) {
    .prodgrid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
    }

    .rows a {
        grid-template-columns: 2.6rem 6.6rem minmax(0, 1fr) 3rem;
    }

    .rows .grp {
        display: none;
    }
}

@media (max-width: 820px) {
    .rail-toggle {
        display: inline-flex;
    }

    .shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .rail {
        display: none;
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .rail.open {
        display: block;
    }

    .aside {
        grid-column: 1;
        padding: 0 1.1rem 2rem;
    }

    .rail ul {
        display: flex;
        flex-wrap: wrap;
        gap: .3rem;
        margin-bottom: .9rem;
    }

    .rail li a {
        border: 1px solid var(--rule);
    }

    .pane {
        padding: 1.2rem 1.1rem 2.4rem;
    }

    .topbar {
        flex-wrap: wrap;
        row-gap: .5rem;
    }

    .finder {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .topbar-tools {
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .wordmark span {
        display: none;
    }

    .rows a {
        grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem;
        gap: .2rem .7rem;
        align-items: center;
    }

    .rows .code {
        grid-column: 2 / -1;
        grid-row: 2;
    }

    .rows .nm {
        grid-column: 2 / 4;
    }

    .rows .thumb,
    .rows .nothumb {
        grid-row: 1 / 3;
    }

    .newsrows a {
        grid-template-columns: minmax(0, 1fr);
        gap: .15rem;
    }
}

@media print {
    .topbar,
    .rail,
    .footline,
    .askline {
        display: none;
    }

    .shell {
        display: block;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

.help-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 190;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: .5rem;
}

.help-hidden .help-fab {
    display: none;
}

.help-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .72rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(18, 24, 26, .24);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.help-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(18, 24, 26, .32);
    transform: translateY(-2px);
}

.help-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.help-btn circle {
    fill: currentColor;
    stroke: none;
}

.help-pop {
    width: min(19rem, calc(100vw - 2rem));
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    position: relative;
}

.help-pop h3 {
    margin: 0 0 .35rem;
    font-size: 1rem;
    padding-right: 1.4rem;
}

.help-pop p {
    margin: 0 0 .8rem;
    font-size: .89rem;
    color: var(--muted);
}

.help-close {
    position: absolute;
    top: .55rem;
    right: .55rem;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    background: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
}

.help-close:hover {
    background: var(--sunken);
    color: var(--ink);
}

.help-close svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.help-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .5rem .7rem;
    margin-bottom: .4rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
}

.help-link:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.help-never {
    display: block;
    width: 100%;
    margin-top: .5rem;
    padding: .3rem 0 0;
    border: 0;
    border-top: 1px solid var(--rule);
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: .8rem;
    cursor: pointer;
    text-align: left;
}

.help-never:hover {
    color: var(--ink);
}

.anim .help-fab {
    animation: fab-in .55s cubic-bezier(.22, .61, .36, 1) .65s both;
}

@keyframes fab-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

.anim .help-pop {
    animation: help-in .22s cubic-bezier(.22, .61, .36, 1);
}

@keyframes help-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

@media (max-width: 520px) {
    .help-btn span {
        display: none;
    }

    .help-btn {
        padding: .85rem;
    }

    .help-btn svg {
        width: 25px;
        height: 25px;
    }
}

@media print {
    .help-fab,
    .aside {
        display: none;
    }
}
