/* Site navigation: the shell every page sits in, its menu, the credit panel and the report-issue tab.

   The chrome is a sidebar down the left on a wide screen, open with its labels or folded to a rail of
   icons (`html[data-nav="wide" | "rail"]`, chosen in site-nav.js and remembered). On a phone it is a
   bar at the top, a dock at the bottom and, behind the dock's More button, the whole menu as a sheet.
   The same markup (components/navigation.html) makes both.

   How much room the chrome takes is said here once, and nowhere else:
     --shell-top     the fixed bar above the page (0 beside a sidebar)
     --shell-left    the sidebar or rail beside the page (0 on a phone)
     --shell-bottom  the dock under the page (0 on a wide screen)
     --ticker-height the news ticker, when there is one (base.css draws it)
     --shell-pad-top everything fixed above the page: --shell-top plus the ticker
   base.css gives them their zero defaults, so a page without the chrome lays out as before, and any
   stylesheet that pins something to an edge of the window adds the matching variable. */
/* Open, the sidebar is as wide as the collector dragged it (`--nav-width`, site-nav.js). */
:root {
    --shell-left: var(--nav-width, 240px);
}

/* The rail is a wide screen's; a phone keeps `data-nav` for the day the window grows, and ignores it. */
@media (min-width: 1000px) {
    html[data-nav="rail"] {
        --shell-left: 72px;
    }
}

html:has(body.has-news-ticker) {
    --ticker-height: 36px;
}

/* The body keeps the chrome's room and nothing more: each page starts 24px under it, on its own. */
body {
    padding: var(--shell-pad-top) 20px calc(var(--shell-bottom) + 20px) calc(var(--shell-left) + 20px);
}

.site-nav {
    display: contents;
}

/* The icon sprite is drawn only by reference: `hidden` alone leaves an SVG standing 150px tall. */
.site-nav-sprite {
    display: none;
}

/* ====== The sidebar ====== */
.site-nav-bar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    width: var(--shell-left);
    background: var(--white);
    border-right: 3px solid var(--ink-border);
    box-shadow: 3px 0 0 rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

/* The sidebar's edge, astride its border: dragged, it sets the sidebar's width; double-clicked, the
   width it had (site-nav.js). */
.site-nav-resize {
    position: absolute;
    top: 0;
    right: -7px;
    bottom: 0;
    z-index: 1;
    width: 11px;
    cursor: col-resize;
    touch-action: none;
}

.site-nav-resize:hover,
.site-nav-resize:focus-visible,
html.site-nav-resizing .site-nav-resize {
    outline: none;
    background: linear-gradient(to right, transparent 4px, var(--text-dark, #2d2d2d) 4px 7px, transparent 7px);
}

/* While the edge is held, the page under the pointer neither selects nor changes the cursor. */
html.site-nav-resizing,
html.site-nav-resizing * {
    cursor: col-resize !important;
    user-select: none;
}

.site-nav-head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 64px;
    padding: 10px 10px 8px 14px;
}

.navbar-brand {
    position: relative;
    display: inline-block;
    min-width: 0;
    font-family: "Sora", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    text-shadow: 2px 2px 0 rgba(183, 148, 246, 0.5);
}

.navbar-brand:active {
    transform: translateY(0);
}

.navbar-brand:focus-visible {
    outline: 3px solid #b794f6;
    outline-offset: 3px;
}

.navbar-brand-shadow,
.navbar-brand-main {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    white-space: nowrap;
}

.navbar-brand-shadow {
    position: absolute;
    top: 3px;
    left: 3px;
    color: #b794f6;
    opacity: 0.8;
}

.navbar-brand-main {
    position: relative;
    color: var(--text-dark);
}

/* Bouzopp's logo, the tower (components/logo.html, wallet.js): sized and coloured like the text it stands in. */
.bouzopp-logo {
    display: inline-block;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}

.navbar-brand-shadow .bouzopp-logo,
.navbar-brand-main .bouzopp-logo {
    font-size: 1.45rem;
}

.navbar-brand-shadow .bouzopp-logo {
    color: #ff9999;
    opacity: 0.7;
}

.navbar-brand-main .bouzopp-logo {
    color: #ff6b6b;
}

/* Folds the sidebar to a rail, and opens it again. */
.site-nav-fold {
    /* The shared button rule pins top and left to 0. */
    position: static;
    top: auto;
    left: auto;
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid var(--ink-border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.site-nav-fold:hover {
    background: var(--tint-yellow);
    transform: translate(-1px, -1px);
}

.site-nav-fold:active {
    transform: none;
}

.site-nav-fold:focus-visible {
    outline: 3px solid #b794f6;
    outline-offset: 2px;
}

.site-nav-icon {
    flex: none;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ====== The menu ====== */
.navbar-tabs {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 4px 12px 14px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* The sheet's own heading and close button: a phone only. */
.site-nav-menu-head {
    display: none;
}

.site-nav-group {
    display: grid;
    gap: 2px;
}

.site-nav-group-label {
    padding: 8px 10px 4px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.navbar-tabs .navbar-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 8px 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-dark);
    font-family: "Sora", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.navbar-tabs .navbar-tab:hover {
    background: var(--bg-subtle);
    transform: translateX(2px);
}

.navbar-tabs .navbar-tab.active {
    background: var(--pastel-purple-light);
    border-color: var(--ink-border);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.18);
}

.navbar-tabs .navbar-tab:focus-visible {
    outline: 3px solid #b794f6;
    outline-offset: 2px;
}

/* A row that does something rather than going somewhere (the Notepad, Report issue, the theme) is a button, and
   looks like every other row of the menu, not like the site's buttons. Weighed as a row, so the phone's tiles
   below dress it as they dress the others. */
.navbar-tabs :where(button).navbar-tab {
    width: 100%;
    justify-content: flex-start;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.navbar-tabs :where(button).navbar-tab:active {
    transform: none;
}

.navbar-tab-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-badge {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid var(--ink-border);
    border-radius: 20px;
    background: #fe4a60;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.notification-badge[hidden] {
    display: none;
}

/* A count sits at the end of its row; in the rail and the dock it sits on the icon's corner. */
.navbar-tabs .navbar-tab .notification-badge {
    margin-left: auto;
}

/* A count sits on the row it is about. A row that folds others under it carries their total only where they are
   folded away: Marketplace in the rail, Admin while it is closed (shop-announcements.js, navbar-notifications.js). */
.navbar-tabs [data-shop-unread][data-rows-carry],
.site-nav-admin[open] > [data-admin-waiting]::before {
    display: none;
}

/* Something new to wear: a dot on every step to it, pinned to the corner of what is not a menu row. */
.vanity-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 2;
    pointer-events: none;
}
.has-vanity-dot {
    position: relative;
}

/* A watched forum topic has replies its watcher has not read. */
.navbar-tab-dot {
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fe4a60;
}

.navbar-tab-dot[hidden] {
    display: none;
}

/* Anything new said on the forum since the collector last opened it: lighter than a reply waiting for them. */
.navbar-tab-dot.is-quiet {
    width: 8px;
    height: 8px;
    border-width: 0;
    background: color-mix(in srgb, currentColor 45%, transparent);
}

.navbar-tabs .navbar-tab .navbar-tab-dot {
    margin-left: auto;
    margin-right: 4px;
}

/* The admin's tools fold under one row. */
.site-nav-admin {
    display: block;
    padding-top: 6px;
    border-top: 2px dashed #e2dce9;
}

.site-nav-admin-summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.site-nav-admin-summary::-webkit-details-marker {
    display: none;
}

.site-nav-admin-summary::after {
    content: '';
    flex: none;
    width: 8px;
    height: 8px;
    margin-left: auto;
    margin-right: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.15s ease;
}

.site-nav-admin[open] .site-nav-admin-summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.site-nav-group-items {
    display: grid;
    gap: 2px;
    margin: 2px 0 0 20px;
    padding-left: 8px;
    border-left: 2px dashed #d9d2e3;
}

/* Marketplace and the chevron that folds its stores away (#1302). */
.site-nav-market { display: flex; align-items: center; gap: 2px; }
.site-nav-market > .navbar-tab { flex: 1; min-width: 0; }
.site-nav-shops-fold { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; }
.site-nav-shops-fold:hover, .site-nav-shops-fold:focus-visible { background: var(--pastel-purple-light); color: inherit; }
.site-nav-shops-fold::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(2px) rotate(-135deg); transition: transform 0.15s ease; }
html[data-nav-shops="folded"] .site-nav-shops-fold::after { transform: translateY(-2px) rotate(45deg); }
html[data-nav-shops="folded"] .site-nav-shops { display: none; }
/* Folded, Marketplace wears the stores' count, as it does in the rail. */
html[data-nav-shops="folded"] .navbar-tabs [data-shop-unread][data-rows-carry]:not([hidden]) { display: inline-grid; }

/* The marketplace's stores, under it: a row each. */
.navbar-tabs .site-nav-shop {
    min-height: 0;
    padding-block: 5px;
    font-size: 0.84em;
}

.navbar-tabs .site-nav-shop[aria-current="page"] {
    font-weight: 900;
    background: var(--pastel-purple-light);
}

.navbar-tabs .site-nav-shop .notification-badge { min-width: 18px; height: 18px; padding: 0 4px; font-size: 10px; }
.site-nav-shop[data-front="black"] .navbar-tab-label { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
/* An empty country shop's row says when its next delivery comes (shop-announcements.js). */
.site-nav-shop-clock { margin-left: auto; padding: 1px 6px; border: 1px solid #d9d2e3; border-radius: 999px; color: var(--text-muted); font-size: 0.64rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The rest of the street starts after the stores, past a dashed line. */
.site-nav-shop[data-front="cards"] { position: relative; margin-top: 10px; }
.site-nav-shop[data-front="cards"]::before { content: ''; position: absolute; top: -6px; left: 6px; right: 6px; border-top: 2px dashed #d9d2e3; }

/* A queue waits for the admin: a dot on the folded row, the counts on the rows inside. */
[data-admin-waiting]::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 25px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fe4a60;
}

/* ====== The account, at the sidebar's foot ====== */
.navbar-auth {
    display: grid;
    flex: none;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border-top: 2px solid var(--ink-border);
    background: var(--white);
}

/* A row of the foot never widens the sidebar: the chat's one-line preview is cut short, not the foot made wider. */
.navbar-auth > * {
    min-width: 0;
}

/* Two trays side by side, whatever their labels say (a French one runs longer than the English):
   the inbox takes the width its word needs and Messages the rest, neither past the foot's edge,
   and a label too long for its tray wraps rather than pushing the tray out of the sidebar. */
.navbar-trays {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
}

.navbar-trays .credit-panel {
    grid-column: 1 / -1;
    min-width: 0;
}

.navbar-inbox-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.auth-actions {
    display: grid;
    gap: 10px;
}

/* Boosters and invitations waiting for the collector, one click away. */
.navbar-inbox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    padding: 6px 8px;
    border: 2px solid var(--ink-border);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.navbar-inbox:hover {
    background: var(--tint-yellow);
    transform: translate(-1px, -1px);
}

.navbar-inbox:focus-visible {
    outline: 3px solid var(--text-dark);
    outline-offset: 3px;
}

.navbar-inbox .notification-badge {
    position: absolute;
    top: -9px;
    right: -9px;
}

.credit-panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 3px 9px;
    border: 2px solid var(--ink-border);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    font-family: "Sora", sans-serif;
}

.credit-count {
    min-width: 22px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    white-space: nowrap;
}

/* What is owed to the bank, in red beside the count, until it is paid back (#1242). */
.credit-debt {
    color: var(--danger);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.credit-tooltip-debt {
    color: var(--danger);
    font-weight: 700;
}

/* The credit tip opens above the panel, where the room is. */
.credit-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    z-index: 20000;
    width: 260px;
    padding: 14px 16px;
    border: 2px solid var(--ink-border);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.credit-tooltip::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 18px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border-left: 2px solid var(--ink-border);
    border-top: 2px solid var(--ink-border);
    transform: rotate(225deg);
}

.credit-panel:hover .credit-tooltip,
.credit-panel:focus-within .credit-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* The next regenerating credit, filling along the panel's bottom edge (#1028). */
.credit-progress {
    position: absolute;
    right: 8px;
    bottom: 3px;
    left: 8px;
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.credit-progress[hidden] {
    display: none;
}

.credit-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent-green, #3fb27f);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1s linear;
}

.credit-tooltip-paragraph {
    margin: 0;
    color: var(--text-dark);
    font-size: 12px;
    line-height: 1.5;
}

.profile-menu {
    position: relative;
}

#profileMenuButton,
.profile-link {
    /* The shared button rule pins top and left to 0. */
    position: static;
    top: auto;
    left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 5px 10px 5px 6px;
    border: 2px solid var(--ink-border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#profileMenuButton:hover,
.profile-link:hover {
    background: var(--white);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
}

#profileMenuButton:active {
    transform: none;
}

#profileMenuButton:focus-visible,
.profile-link:focus-visible {
    outline: 3px solid var(--text-dark);
    outline-offset: 3px;
}

.profile-link {
    justify-content: center;
    padding: 8px 12px;
}

/* Round, like the picture on the profile page: it is the same person. */
.profile-button-avatar {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--ink-border);
    border-radius: 50%;
    background: radial-gradient(circle at top, var(--white), var(--pastel-purple-light) 70%);
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 800;
    overflow: hidden;
}

.profile-button-avatar img,
.profile-button-avatar .avatar-effect-host,
.profile-button-avatar .avatar-initial {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The aura is part of the picture, so it reaches past the frame here too;
   the photo itself stays round because the host clips it. */
.profile-button-avatar:has(> .avatar-effect-host),
.profile-dropdown-avatar:has(> .avatar-effect-host) {
    overflow: visible;
}

.profile-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-link .profile-name {
    flex: none;
}

.profile-caret {
    position: relative;
    display: inline-block;
    flex: none;
    width: 10px;
    height: 10px;
    margin-right: 2px;
}

.profile-caret::before {
    content: '';
    position: absolute;
    left: 0;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 7px solid var(--ink-border);
    top: 1px;
}

/* Unread messages, while the Messages button is folded away, and unread notifications. */
#profileMenuButton[data-unread-messages]::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fe4a60;
}

#profileMenuButton {
    position: relative;
}

/* The menu opens over the sidebar from its foot. */
.profile-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 20000;
    display: none;
    flex-direction: column;
    max-height: calc(100dvh - 140px);
    padding: 10px 0;
    border: 2px solid var(--ink-border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
    /* Rows slide right on hover; that is not a reason for a scrollbar. */
    overflow: hidden auto;
    scrollbar-width: thin;
}

.profile-dropdown.show {
    display: flex;
}

.profile-dropdown-form {
    display: contents;
}

.profile-dropdown-item {
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    height: 42px;
    min-height: 42px;
    width: 100%;
    text-align: left;
    font: inherit;
    font-weight: 600;
    line-height: inherit;
    position: static;
    cursor: pointer;
}

.profile-dropdown-item:hover {
    background: var(--bg-subtle);
    box-shadow: none;
    transform: translateX(2px);
}

.profile-dropdown-item:active {
    box-shadow: none;
    transform: translateX(2px);
}

.profile-dropdown-item:focus-visible {
    background: var(--bg-subtle);
    outline: 3px solid var(--text-dark);
    outline-offset: -3px;
    transform: translateX(2px);
}

/* The menu opens on the same face it was clicked from. */
.profile-dropdown-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-dropdown-identity > span:last-child {
    display: grid;
    min-width: 0;
}

.profile-dropdown-identity small {
    font-size: .72rem;
    font-weight: 700;
    opacity: .65;
}

.profile-dropdown-avatar {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--ink-border);
    border-radius: 50%;
    background: radial-gradient(circle at top, var(--white), var(--pastel-purple-light) 70%);
    font-weight: 800;
    overflow: hidden;
}

.profile-dropdown-avatar img,
.profile-dropdown-avatar .avatar-effect-host,
.profile-dropdown-avatar .avatar-initial {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* On a phone the Messages button is folded into this menu, so the bar keeps its room. */
.profile-dropdown-messages {
    display: none;
}

.profile-dropdown-messages .notification-badge {
    margin-left: 8px;
}

/* The dock is a phone's. */
.site-nav-dock {
    display: none;
}

/* ====== The rail: the sidebar folded to its icons ====== */
@media (min-width: 1000px) {
    html[data-nav="rail"] .site-nav-head {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 12px 8px 8px;
    }

    html[data-nav="rail"] .navbar-brand-text {
        display: none;
    }

    html[data-nav="rail"] .navbar-brand-shadow,
    html[data-nav="rail"] .navbar-brand-main {
        gap: 0;
    }

    html[data-nav="rail"] .site-nav-fold .site-nav-icon {
        transform: rotate(180deg);
    }

    html[data-nav="rail"] .navbar-tabs {
        padding: 4px 8px 12px;
        gap: 8px;
        overflow-x: hidden;
    }

    html[data-nav="rail"] .site-nav-group + .site-nav-group {
        padding-top: 8px;
        border-top: 2px dashed #e2dce9;
    }

    html[data-nav="rail"] .site-nav-group-label,
    html[data-nav="rail"] .navbar-tabs .navbar-tab-label,
    html[data-nav="rail"] .site-nav-admin-summary::after {
        display: none;
    }

    html[data-nav="rail"] .navbar-tabs .navbar-tab {
        justify-content: center;
        width: 52px;
        height: 44px;
        min-height: 44px;
        margin: 0 auto;
        padding: 0;
    }

    html[data-nav="rail"] .navbar-tabs .navbar-tab:hover {
        transform: translateY(-1px);
    }

    html[data-nav="rail"] .navbar-tabs .navbar-tab .notification-badge,
    html[data-nav="rail"] .navbar-tabs .navbar-tab .navbar-tab-dot {
        position: absolute;
        top: -7px;
        right: -5px;
        margin: 0;
    }

    html[data-nav="rail"] .site-nav-group-items {
        margin: 2px 0 0;
        padding-left: 0;
        border-left: 0;
    }

    /* The rail has no room for the stores' names: Marketplace stands for all of them, and wears their count. */
    html[data-nav="rail"] .site-nav-shops,
    html[data-nav="rail"] .site-nav-shops-fold {
        display: none;
    }

    html[data-nav="rail"] .site-nav-market {
        display: block;
    }

    html[data-nav="rail"] .navbar-tabs [data-shop-unread][data-rows-carry]:not([hidden]) {
        display: inline-grid;
    }

    html[data-nav="rail"] [data-admin-waiting]::before {
        top: -3px;
        left: auto;
        right: -3px;
    }

    html[data-nav="rail"] .navbar-auth {
        gap: 8px;
        padding: 10px 8px;
    }

    html[data-nav="rail"] .navbar-trays {
        grid-template-columns: 1fr;
    }

    html[data-nav="rail"] .navbar-trays .credit-panel {
        flex-direction: column;
        gap: 1px;
        min-height: 0;
        padding: 5px 2px;
    }

    html[data-nav="rail"] .credit-panel .credit-count {
        min-width: 0;
        font-size: 11px;
        letter-spacing: 0;
    }

    /* The sale credits wait in the tip; the rail is too narrow for both counts. */
    html[data-nav="rail"] .credit-panel .credit-count + .credit-count {
        display: none;
    }

    html[data-nav="rail"] .credit-tooltip,
    html[data-nav="rail"] .profile-dropdown {
        bottom: 0;
        left: calc(100% + 16px);
        right: auto;
        transform: none;
    }

    html[data-nav="rail"] .credit-tooltip::before {
        bottom: 14px;
        left: -10px;
        transform: rotate(-45deg);
    }

    html[data-nav="rail"] .credit-panel:hover .credit-tooltip,
    html[data-nav="rail"] .credit-panel:focus-within .credit-tooltip {
        transform: none;
    }

    html[data-nav="rail"] .profile-dropdown {
        min-width: 240px;
    }

    html[data-nav="rail"] .navbar-inbox-label,
    html[data-nav="rail"] .profile-name,
    html[data-nav="rail"] .profile-caret {
        display: none;
    }

    html[data-nav="rail"] .navbar-inbox {
        padding: 6px;
    }

    html[data-nav="rail"] #profileMenuButton {
        justify-content: center;
        padding: 4px;
    }

    html[data-nav="rail"] .profile-link {
        padding: 8px 4px;
        font-size: 0.7rem;
    }

    html[data-nav="rail"] .profile-link .profile-name {
        /* It wraps within the rail's width, rather than keeping one line the rail cuts at both ends (#946). */
        flex: 1 1 auto;
        min-width: 0;
        display: block;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
}

/* ====== A phone: a bar above, a dock below, the menu as a sheet between them ====== */
@media (max-width: 999px) {
    :root {
        --shell-top: 56px;
        --shell-left: 0px;
        --shell-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }

    .site-nav-bar {
        top: 0;
        right: 0;
        bottom: auto;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: auto;
        height: var(--shell-top);
        padding: 0 12px;
        border-right: 0;
        border-bottom: 3px solid var(--ink-border);
        box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
        transition: top 0.25s ease;
    }

    /* Reading down a page, the bar and the ticker slide away; scrolling back up brings them back. */
    html.site-nav-tucked .site-nav-bar {
        top: calc(-1 * var(--shell-top) - 6px);
    }

    .news-ticker {
        transition: top 0.25s ease;
    }

    html.site-nav-tucked .news-ticker {
        top: calc(-1 * var(--ticker-height) - 6px);
    }

    .site-nav-head {
        flex: none;
        min-height: 0;
        padding: 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand-shadow .bouzopp-logo,
    .navbar-brand-main .bouzopp-logo {
        font-size: 1.3rem;
    }

    .site-nav-fold,
    .site-nav-resize {
        display: none;
    }

    /* The menu, behind More: every place, as tiles a thumb can hit. */
    .navbar-tabs {
        position: fixed;
        top: var(--shell-top);
        right: 0;
        bottom: var(--shell-bottom);
        left: 0;
        display: none;
        flex: none;
        gap: 18px;
        padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px));
        background: var(--white);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    html.site-nav-open .navbar-tabs {
        display: flex;
    }

    html.site-nav-open {
        overflow: hidden;
    }

    .site-nav-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: "Sora", sans-serif;
        font-size: 1.3rem;
        font-weight: 900;
        letter-spacing: -0.02em;
    }

    .site-nav-close {
        /* The shared button rule pins top and left to 0. */
        position: static;
        top: auto;
        left: auto;
        display: inline-grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 2px solid var(--ink-border);
        border-radius: 10px;
        background: var(--white);
        box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
        color: var(--text-dark);
        cursor: pointer;
    }

    .site-nav-close:hover {
        background: var(--tint-yellow);
        transform: none;
    }

    .site-nav-close:active {
        transform: none;
    }

    .site-nav-close:focus-visible {
        outline: 3px solid #b794f6;
        outline-offset: 2px;
    }

    .site-nav-group {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .site-nav-group-label {
        grid-column: 1 / -1;
        padding: 0 2px;
    }

    .navbar-tabs .navbar-tab {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: 0;
        padding: 14px 14px 12px;
        border-color: var(--ink-border);
        border-radius: 12px;
        background: var(--white);
        box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.18);
        font-size: 0.95rem;
    }

    .navbar-tabs .navbar-tab:hover {
        transform: none;
    }

    .navbar-tabs .navbar-tab.active {
        background: var(--pastel-purple-light);
    }

    .navbar-tabs .navbar-tab .site-nav-icon {
        width: 26px;
        height: 26px;
    }

    .navbar-tabs .navbar-tab .notification-badge,
    .navbar-tabs .navbar-tab .navbar-tab-dot {
        position: absolute;
        top: 10px;
        right: 10px;
        margin: 0;
    }

    .site-nav-admin {
        display: block;
        padding-top: 6px;
        border-top: 2px dashed #d9d2e3;
    }

    .navbar-tabs .site-nav-admin-summary {
        flex-direction: row;
        align-items: center;
        padding: 10px 4px;
        border-color: transparent;
        background: none;
        box-shadow: none;
    }

    .navbar-tabs .site-nav-admin-summary::after {
        display: inline-block;
    }

    .site-nav-group-items {
        /* Its own row of the sheet, under its place, the width of the sheet: not a cell beside it. */
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 6px 0 0;
        padding-left: 0;
        border-left: 0;
    }

    [data-admin-waiting]::before {
        top: 12px;
        left: 24px;
    }

    /* The account: the credits, the inbox and the picture, at the bar's right end. */
    .navbar-auth {
        display: flex;
        flex: 0 1 auto;
        align-items: center;
        gap: 6px;
        min-width: 0;
        margin-left: auto;
        padding: 0;
        border: 0;
        background: none;
    }

    .navbar-trays {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .auth-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .navbar-inbox-label {
        display: none;
    }

    .navbar-inbox {
        width: 38px;
        min-height: 38px;
        padding: 0;
        border-radius: 9px;
    }

    .navbar-inbox:hover {
        transform: none;
    }

    .navbar-inbox .notification-badge {
        top: -7px;
        right: -7px;
    }

    .credit-panel {
        gap: 5px;
        min-height: 38px;
        padding: 2px 6px;
        border-radius: 9px;
    }

    .credit-count {
        min-width: 0;
        font-size: 12px;
        letter-spacing: 0.02em;
    }

    .credit-tooltip {
        top: calc(100% + 12px);
        bottom: auto;
        left: auto;
        right: 0;
        transform: translateY(-6px);
    }

    .credit-tooltip::before {
        top: -10px;
        bottom: auto;
        left: auto;
        right: 18px;
        transform: rotate(45deg);
    }

    .profile-name,
    .profile-caret {
        display: none;
    }

    #profileMenuButton {
        width: 38px;
        min-height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 9px;
    }

    #profileMenuButton:hover {
        background: var(--white);
        transform: none;
    }

    .profile-button-avatar {
        width: 30px;
        height: 30px;
    }

    .profile-link {
        width: auto;
        min-height: 38px;
        padding: 4px 9px;
        border-radius: 9px;
        font-size: 10px;
    }

    .profile-link .profile-name {
        display: block;
        max-width: 82px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    /* The account menu hangs under the picture. */
    .profile-dropdown {
        top: calc(100% + 10px);
        bottom: auto;
        left: auto;
        right: 0;
        min-width: 240px;
        max-height: calc(100dvh - var(--shell-top) - var(--shell-bottom) - 24px);
    }

    /* The dock: the four places most gone to, and the rest behind More. */
    .site-nav-dock {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10000;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        height: var(--shell-bottom);
        padding: 0 4px env(safe-area-inset-bottom, 0px);
        background: var(--white);
        border-top: 3px solid var(--ink-border);
        box-shadow: 0 -3px 0 rgba(0, 0, 0, 0.08);
    }

    .site-nav-dock-item {
        /* The shared button rule pins top and left to 0. */
        position: relative;
        top: auto;
        left: auto;
        display: grid;
        gap: 3px;
        align-content: center;
        justify-items: center;
        min-width: 0;
        padding: 4px 2px;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        color: var(--text-dark);
        font-family: "Sora", sans-serif;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-decoration: none;
        text-transform: uppercase;
        cursor: pointer;
    }

    .site-nav-dock-item > span:not(.notification-badge):not(.navbar-tab-dot) {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-nav-dock-item .site-nav-icon {
        box-sizing: content-box;
        width: 22px;
        height: 22px;
        padding: 2px 10px;
        border: 2px solid transparent;
        border-radius: 999px;
        transition: background 0.15s ease;
    }

    .site-nav-dock-item:hover,
    .site-nav-dock-item:active {
        background: none;
        transform: none;
    }

    .site-nav-dock-item:hover .site-nav-icon {
        background: var(--bg-subtle);
    }

    .site-nav-dock-item.active .site-nav-icon,
    .site-nav-more[aria-expanded="true"] .site-nav-icon {
        background: var(--pastel-purple-light);
        border-color: var(--ink-border);
    }

    .site-nav-dock-item:focus-visible {
        outline: 3px solid #b794f6;
        outline-offset: -3px;
    }

    .site-nav-dock-item .notification-badge,
    .site-nav-dock-item .navbar-tab-dot {
        position: absolute;
        top: 3px;
        left: calc(50% + 8px);
    }

    /* Something new waits in the menu: a dot on More. */
    .site-nav-more[data-news]::after {
        content: '';
        position: absolute;
        top: 5px;
        left: calc(50% + 10px);
        width: 10px;
        height: 10px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #fe4a60;
    }
}

@media (max-width: 640px) {
    body .navbar-inbox[data-messages-link] {
        display: none;
    }

    body .profile-dropdown-messages {
        display: flex;
        align-items: center;
    }
}

/* A narrow phone keeps the tower and lets the wordmark go: the bar has the credits, the inbox and the chat to hold. */
@media (max-width: 479px) {
    .navbar-brand-text {
        display: none;
    }

    .navbar-brand-shadow,
    .navbar-brand-main {
        gap: 0;
    }
}

/* Report issue: a quiet tab in the bottom-right corner of every page, under the toasts. */
.report-issue {
    position: fixed;
    /* The shared button rule pins top and left to 0, which would stretch it over the page. */
    top: auto;
    left: auto;
    right: 16px;
    bottom: calc(16px + var(--shell-bottom));
    z-index: 1000;
    padding: 6px 12px;
    border: 2px solid var(--ink-border);
    border-radius: 999px;
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 3px 3px 0 var(--ink-shadow);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    opacity: .75;
    transition: opacity .15s ease, transform .15s ease;
}

.report-issue:hover,
.report-issue:focus-visible {
    opacity: 1;
    transform: translate(-1px, -1px);
}

/* On a wide screen the corner tab is the way to Report issue, and the sidebar has no row for it (#975); on a
   phone the tab would sit on the page, so it is a row of the menu instead (#947). */
.navbar-tabs .site-nav-report { display: none; }

/* The theme row shows the moon by day and the sun by night: the one a click brings. */
.site-nav-theme .site-nav-icon + .site-nav-icon { display: none; }
html[data-theme="dark"] .site-nav-theme .site-nav-icon { display: none; }
html[data-theme="dark"] .site-nav-theme .site-nav-icon + .site-nav-icon { display: block; }
@media (max-width: 999px) {
    .report-issue { display: none; }
    .navbar-tabs .site-nav-report { display: flex; }
}

.report-issue-dialog {
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    margin: auto;
    box-sizing: border-box;
    padding: 24px;
    border: 3px solid var(--ink-border);
    border-radius: 16px;
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 7px 7px 0 var(--ink-shadow);
}

.report-issue-dialog::backdrop {
    background: rgb(0 0 0 / 55%);
}

.report-issue-dialog h2 {
    margin-top: 0;
}

.report-issue-dialog p {
    font-size: .9rem;
    line-height: 1.5;
}

.report-issue-dialog label {
    display: block;
    margin-top: 12px;
    font-weight: 700;
}

.report-issue-dialog label[hidden],
.report-issue-dialog input[hidden] {
    display: none;
}

.report-issue-kind {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 12px 0 0;
    padding: 8px 12px;
    border: 2px dashed var(--ink-border);
    border-radius: 8px;
}

.report-issue-kind legend {
    padding: 0 6px;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.report-issue-dialog .report-issue-kind label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
}

.report-issue-dialog .report-issue-kind input {
    display: inline;
    width: auto;
    margin: 0;
}

.report-issue-dialog textarea,
.report-issue-dialog input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 2px solid var(--ink-border);
    border-radius: 8px;
    font: inherit;
    font-weight: 400;
}

.report-issue-dialog textarea {
    resize: vertical;
}

.report-issue-images {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.report-issue-images > button {
    padding: 8px 12px;
    border: 2px solid var(--ink-border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.report-issue-previews {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.report-issue-previews[hidden] {
    display: none;
}

.report-issue-previews li {
    position: relative;
}

.report-issue-previews img {
    display: block;
    width: 56px;
    height: 56px;
    border: 2px solid var(--ink-border);
    border-radius: 8px;
    object-fit: cover;
}

.report-issue-previews button {
    position: absolute;
    /* The shared button rule pins top and left to 0. */
    top: -8px;
    left: auto;
    right: -8px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 2px solid var(--ink-border);
    border-radius: 50%;
    background: var(--white);
    color: var(--text-dark);
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.report-issue-dialog .report-issue-honeypot {
    position: absolute;
    left: -9999px;
}

.report-issue-dialog .report-issue-notice {
    margin: 12px 0 0;
    opacity: .75;
    font-size: .78rem;
}

.report-issue-dialog [role="status"] {
    min-height: 24px;
    margin: 8px 0;
}

.report-issue-dialog footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.report-issue-dialog footer button {
    padding: 10px 14px;
    border: 2px solid var(--ink-border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.report-issue-dialog footer button[type="submit"] {
    background: var(--tint-yellow);
}

.report-issue-dialog button:disabled {
    opacity: .55;
    cursor: wait;
}

/* Keyboard shortcuts (hotkeys.js): Go to a page by its name, and the list of keys. The dialog carries no padding
   so a click on it is a click on the dark round it; its panel does. */
.hotkeys-dialog {
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    border: 3px solid var(--ink-border);
    border-radius: 16px;
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 7px 7px 0 var(--ink-shadow);
}

.goto-dialog {
    margin-top: max(12vh, 20px);
}

.hotkeys-dialog::backdrop {
    background: rgb(0 0 0 / 55%);
}

.hotkeys-panel {
    padding: 20px 22px 22px;
}

.hotkeys-panel h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.goto-query {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--ink-border);
    border-radius: 8px;
    font: inherit;
}

.goto-results {
    max-height: min(360px, 50dvh);
    margin: 10px 0 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.goto-results a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.goto-results small {
    color: var(--text-muted);
    font-size: .75rem;
    font-weight: 600;
}

.goto-results [aria-selected="true"] a,
.goto-results a:hover {
    background: var(--tint-yellow);
}

.goto-empty {
    margin: 12px 2px 0;
    font-size: .9rem;
}

/* Go to is two windows side by side: the search, and How to search open to its right; one above the other on a
   narrow screen. The dialog itself is only their frame. */
.goto-dialog {
    width: min(820px, calc(100vw - 32px));
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.goto-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    align-items: start;
    gap: 16px;
}

.goto-pane {
    border: 3px solid var(--ink-border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 7px 7px 0 var(--ink-shadow);
}

.goto-help {
    max-height: calc(100dvh - max(12vh, 20px) - 40px);
    overflow-y: auto;
    font-size: .85rem;
}

.goto-help .hotkeys-list {
    margin: 0;
}

.goto-help .hotkeys-list > div {
    grid-template-columns: minmax(4.5rem, auto) 1fr;
    gap: 10px;
}

.goto-help-group + .goto-help-group {
    margin-top: 14px;
}

.goto-help-group h3 {
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .goto-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hotkeys-list {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
}

.hotkeys-list > div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    align-items: center;
    gap: 12px;
}

.hotkeys-list dt,
.hotkeys-list dd {
    margin: 0;
}

.hotkeys-list kbd {
    display: inline-block;
    min-width: 1.4em;
    padding: 1px 6px;
    border: 2px solid var(--ink-border);
    border-radius: 6px;
    background: var(--white);
    box-shadow: 0 2px 0 var(--ink-shadow);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.hotkeys-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
    text-decoration: underline;
    cursor: pointer;
}

.hotkeys-panel footer {
    display: flex;
    justify-content: flex-end;
}

.hotkeys-panel footer button {
    padding: 10px 14px;
    border: 2px solid var(--ink-border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

/* \ outlines what can be clicked (hotkeys.js) and puts its letters at its corner, above everything; nothing in it
   takes a click. */
.hotkey-hints {
    position: fixed;
    inset: 0;
    z-index: 30000;
    pointer-events: none;
}

.hotkey-hint {
    position: fixed;
    box-sizing: border-box;
    border: 2px solid var(--ink-border);
    border-radius: 6px;
    box-shadow: 0 0 0 2px #ffd84d;
}

.hotkey-hint-tag {
    position: fixed;
    padding: 0 5px;
    border: 2px solid var(--ink-border);
    border-radius: 6px;
    background: var(--pastel-yellow);
    color: var(--text-dark);
    box-shadow: 2px 2px 0 var(--ink-shadow);
    font-family: inherit;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.hotkey-hint[hidden],
.hotkey-hint-tag[hidden] {
    display: none;
}

/* Ctrl+/'s filter (hotkeys.js): a small field at the top right, under the chrome, and what it does not keep dimmed. */
.hotkey-sieve {
    position: fixed;
    top: calc(var(--shell-top, 0px) + 12px);
    right: 16px;
    z-index: 29000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 2px solid var(--ink-border);
    border-radius: 999px;
    background: var(--pastel-yellow);
    box-shadow: 3px 3px 0 var(--ink-shadow);
    color: var(--text-dark);
}

.hotkey-sieve input[type="text"],
.hotkey-sieve input[type="text"]:focus,
.hotkey-sieve input[type="text"]:focus-visible {
    width: 180px;
    max-width: 50vw;
    min-height: 0;
    margin: 0;
    padding: 2px 6px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}

.hotkey-sieve small {
    font-size: .75rem;
    font-weight: 800;
}

.is-hotkey-dimmed {
    opacity: .2;
    transition: opacity .12s ease;
}

@media print {
    .site-nav,
    .report-issue,
    .news-ticker {
        display: none;
    }

    body {
        padding: 0;
    }
}
