/* HyperC Market Store — the hub's web pages (bizhub/web.py). Calm, readable, works from 360 px up. */
:root, :host {
  --bg: #f6f7f9; --panel: #ffffff; --ink: #1d2330; --ink2: #4a5366; --ink3: #6b7487; --line: #e2e6ee;
  --accent: #2f6fde; --accent-ink: #ffffff; --accent-soft: #e8f0fd; --good: #1e8a4c; --warn: #a36100; --bad: #c0392b;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11151c; --panel: #181e27; --ink: #e9edf3; --ink2: #b7bfcc; --ink3: #8d97a8; --line: #2a3342;
          --accent: #6c9cf0; --accent-ink: #0d1320; --accent-soft: #1f2b40; --good: #57c487; --warn: #e2a24a;
          --bad: #ef7a6c; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }        /* a button's display never shows a hidden one */
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: .2rem 0 .4rem; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; }
p { margin: .4rem 0; }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--panel); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink3); }
.lead { color: var(--ink2); margin-bottom: 1rem; }

/* top bar */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; gap: 1rem; min-height: 56px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 600; }
.brand:hover { text-decoration: none; }
.logo { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block; }
.top nav { display: flex; gap: .2rem; flex: 1; flex-wrap: wrap; }
.top nav a { color: var(--ink2); padding: .3rem .6rem; border-radius: 8px; }
.top nav a:hover { background: var(--bg); text-decoration: none; }
.who { display: flex; align-items: center; gap: .2rem .6rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end;
  min-width: 0; max-width: 100%; }
.me { font-weight: 600; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .acct-console, .who .acct-signout { color: var(--ink2); white-space: nowrap; }
.who .acct-console:hover, .who .acct-signout:hover { color: var(--ink); }
main { padding-top: 18px; padding-bottom: 40px; outline: none; }
.foot { display: flex; justify-content: space-between; color: var(--ink3); font-size: .85rem; padding-top: 16px;
  padding-bottom: 28px; border-top: 1px solid var(--line); }

/* buttons and forms */
.btn, button { font: inherit; font-size: .92rem; font-weight: 550; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); padding: .45rem .9rem; border-radius: 9px; cursor: pointer; display: inline-flex;
  align-items: center; gap: .35rem; min-height: 38px; }
.btn:hover, button:hover { border-color: var(--ink3); text-decoration: none; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small, button.small { padding: .25rem .65rem; min-height: 32px; font-size: .85rem; }
button.danger { color: var(--bad); }
button.link { background: none; border: none; color: var(--accent); padding: 0; min-height: 0; }
button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .55; cursor: not-allowed; }
label { display: block; font-size: .86rem; color: var(--ink2); margin: .5rem 0 .2rem; }
input[type=text], input[type=search], input[type=email], input[type=password], select, textarea {
  font: inherit; width: 100%; padding: .45rem .6rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); min-height: 38px; }
textarea { min-height: 84px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin: .6rem 0; }
legend { font-weight: 600; font-size: .92rem; padding: 0 .3rem; }
.choice { display: flex; gap: .5rem; align-items: flex-start; margin: .35rem 0; color: var(--ink); font-size: .95rem; }
.choice input { margin-top: .3rem; }
.choice label { margin: 0; color: var(--ink); font-size: .95rem; }
.panel.full { width: 100%; }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 1rem; }
.cat-d { display: block; font-size: .8rem; color: var(--ink3); line-height: 1.35; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 160px; }

/* panels, badges, chips */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  margin: 0 0 14px; box-shadow: var(--shadow); min-width: 0; }
.panel.narrow { max-width: 560px; margin: 8vh auto; }
.notice { border-left: 4px solid var(--warn); }
.badges, .chips { display: flex; gap: .35rem; flex-wrap: wrap; margin: .35rem 0; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px;
  border: 1px solid var(--line); color: var(--ink2); background: var(--bg); white-space: nowrap; }
.badge.depth { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.badge.access { color: var(--warn); border-color: var(--warn); }
.badge.price { color: var(--good); border-color: var(--good); }
.chip { display: inline-block; font-size: .8rem; padding: .1rem .55rem; border-radius: 99px; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink2); }
a.chip:hover { border-color: var(--accent); text-decoration: none; }

/* the explorer */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.rail { position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow: auto; font-size: .93rem; }
.rail h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); margin: 1rem 0 .3rem; }
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail button { width: 100%; justify-content: space-between; border: none; background: none; padding: .3rem .5rem;
  min-height: 34px; font-weight: 450; color: var(--ink2); text-align: left; }
.rail button:hover { background: var(--panel); }
.rail button[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rail .n { color: var(--ink3); font-size: .8rem; }
.toolbar { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .6rem 0 1rem; }
.toolbar label { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; gap: .3rem; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin: 0; font-size: 1.02rem; overflow-wrap: anywhere; }
.card .by { font-size: .85rem; color: var(--ink3); margin: 0; }
.card .short { font-size: .9rem; color: var(--ink2); flex: 1; overflow-wrap: anywhere; }
.card .stats { font-size: .8rem; color: var(--ink3); display: flex; gap: .7rem; flex-wrap: wrap; }
.card .acts { display: flex; gap: .4rem; margin-top: .3rem; flex-wrap: wrap; }
/* the whole card opens the market's page (store.js linkCard); its title stays the link a keyboard follows */
.card.linked { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card.linked:hover { border-color: var(--accent); box-shadow: 0 6px 18px -8px rgba(16, 24, 40, .25); transform: translateY(-1px); }
.card.linked:focus-within { border-color: var(--accent); }
.card .card-go { flex: 1 1 auto; justify-content: center; }
.empty { color: var(--ink3); padding: 1rem 0; }
#more { margin-top: 1rem; text-align: center; }

/* a market's page */
.crumbs { font-size: .88rem; color: var(--ink3); margin-bottom: .6rem; }
.m-head { margin-bottom: 1rem; }
.m-head .by { color: var(--ink2); margin: 0; }
.m-head .short { font-size: 1.05rem; color: var(--ink2); max-width: 70ch; }
.origin { font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 16px; }
.m-body .panel p { max-width: 75ch; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.checks li:last-child { border-bottom: none; }
.checks .tick { width: 1.2rem; flex: none; text-align: center; font-weight: 700; }
.checks .met .tick { color: var(--good); }
.checks .unmet { color: var(--ink3); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem 1rem; font-size: .93rem; margin: .8rem 0 0; }
.facts dt { color: var(--ink3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: none; }
ul.files { columns: 2; font-size: .85rem; padding-left: 1.1rem; margin: 0; }
ul.items { list-style: none; padding: 0; margin: 0; }
ul.items .item { padding: .6rem 0; border-bottom: 1px solid var(--line); }
ul.items .item:last-child { border-bottom: none; }
.note { font-size: .88rem; color: var(--ink2); border-left: 3px solid var(--line); padding-left: .6rem; }
.linkbox { display: flex; gap: .4rem; }
.linkbox input { flex: 1; min-width: 0; font-size: .85rem; }
.grants { list-style: none; padding: 0; margin: .5rem 0 0; }
.grants li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--line);
  font-size: .92rem; overflow-wrap: anywhere; }
.warnbox { border: 1px solid var(--warn); border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; margin: .5rem 0; }

/* invite links: create, then one row per link (the link to copy, its state, who joined, turn off) */
.notice.joined { border-left-color: var(--good); }
.invites { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.panel.full > .invites:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.invite-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0 .8rem; }
.invite-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.invite-list > li { padding: .6rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.invite-list > li:last-child { border-bottom: none; }
.invite-facts { font-size: .88rem; color: var(--ink2); }
.invite.dead .linkbox input { color: var(--ink3); }
.badge.state-live { color: var(--good); border-color: var(--good); }
.badge.state-expired, .badge.state-used_up, .badge.state-revoked, .badge.state-gone { color: var(--ink3); }

/* Buy and ratings on a market's page (store.js buyDialog, reviewsPanel) */
.buy-price { font-weight: 600; }
.buy-status { min-height: 1.4em; color: var(--ink2); }
.buy-link { margin: 0; }
/* paying with credits or by card (requests 74-80, item 78): the wallet line, why a way is closed, the confirm page */
.wallet-line { font-size: .92rem; color: var(--ink2); }
.price-note { font-size: .9rem; }
.pay-why { font-size: .88rem; margin: .2rem 0; }
.pay-methods button { min-width: 0; }
.buy-confirm .price-big { font-size: 1.5rem; font-weight: 700; margin: .3rem 0; }
.buy-confirm .acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
dialog ul { padding-left: 1.2rem; margin: .3rem 0 .6rem; }
.reviews { list-style: none; margin: 0 0 .6rem; padding: 0; }
.reviews li { padding: .5rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.reviews li:last-child { border-bottom: none; }
.rv-head { margin: 0; font-size: .9rem; }
.rv-text { margin: .2rem 0 0; white-space: pre-wrap; color: var(--ink2); }
.stars { color: var(--warn); letter-spacing: .05em; }
.rate { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .4rem; }
.rate .acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.stars-pick { display: flex; gap: .25rem; border: none; padding: 0; margin: .4rem 0; }
.stars-pick legend { font-size: .86rem; color: var(--ink2); font-weight: 400; padding: 0; margin-bottom: .2rem; }
.sr-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-pick label { margin: 0; font-size: 1.35rem; line-height: 1; color: var(--ink3); cursor: pointer; padding: .3rem .35rem;
  border: 1px solid var(--line); border-radius: 8px; }
.stars-pick label.on { color: var(--warn); border-color: var(--warn); }
.sr-radio:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

/* requests 74-80: the default listing's pins, a card's family (built on, earnings), the market page's family and gifts
   panels, a group's invite settings and "Share a market here", My library's plan (store.js card, giftsPanel,
   groupSettings, shareHere, planPanel; web.py _family_html) */
.badge.pin { color: var(--warn); border-color: var(--warn); }
.badge.pin-shared { color: var(--accent); border-color: var(--accent); }
.chip.built-on { color: var(--ink); border-color: var(--ink3); }
a.chip.built-on:hover { border-color: var(--accent); }
.earn { margin: 0; font-size: .82rem; font-weight: 600; color: var(--good); overflow-wrap: anywhere; }
.family .built-on { font-weight: 600; }
.family .earn { font-size: .95rem; margin-top: .6rem; }
.gifts .gift-left { font-weight: 600; }
.gift-form { max-width: 520px; }
.gift-list li .muted { font-size: .88rem; }
.grp-settings .limit { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .4rem 0; }
.grp-settings .limit label { margin: 0; color: var(--ink); font-size: .95rem; }
.grp-settings input[type=number] { font: inherit; width: 6.5rem; padding: .35rem .5rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); min-height: 36px; }
.grp-settings input[type=number]:disabled { opacity: .55; }
.share-here { margin: .8rem 0 1.2rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.share-here .row { align-items: stretch; }
.invites-line { margin: 0 0 .4rem; }
.plan p { margin: .25rem 0; }

/* card prices (item 78): the badge's formal starting price and an inherited one, the sparkline (an inline SVG drawn
   by store.js — colours from these classes, never a style attribute), the market page's price panel and history, the
   publisher's price controls (store.js priceBadge, cardSpark, priceHistory, priceControls; web.py _price_html) */
.badge.price.formal { color: var(--ink3); border-color: var(--line); }
.badge.price.inherited { border-style: dashed; }
.spark { display: block; width: 84px; height: 22px; overflow: visible; }
.spark polyline { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark.up polyline { stroke: var(--good); }
.spark.down polyline { stroke: var(--warn); }
.spark.flat polyline { stroke: var(--ink3); }
.card .spark { margin: 0 0 .1rem; }
.price-panel .price-big { font-size: 1.5rem; font-weight: 700; margin: .1rem 0 .3rem; overflow-wrap: anywhere; }
.price-panel .price-big.formal { color: var(--ink2); }
.price-credits { font-size: 1rem; font-weight: 500; color: var(--ink2); }
.price-line { font-size: .93rem; color: var(--ink2); }
.price-history { margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.price-history .spark { width: 100%; max-width: 320px; height: auto; margin: .2rem 0; }
.price-controls .price-amount { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 .2rem 1.6rem; }
.price-controls .price-amount label { margin: 0; color: var(--ink); font-size: .95rem; }
.price-controls input[type=number] { font: inherit; width: 8rem; padding: .35rem .5rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); min-height: 36px; }
.price-controls input[type=number]:disabled { opacity: .55; }
.pay-methods { flex-wrap: wrap; }

/* the guide (/docs/build) */
.doc { max-width: 860px; }
.doc .lead { font-size: 1.05rem; max-width: 75ch; }
.doc .panel p, .doc .panel li { max-width: 75ch; }
.doc li { margin: .3rem 0; }
.toc { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .4rem 0 1.2rem; font-size: .92rem; }
.steps { padding-left: 1.3rem; }
.steps li { margin: .55rem 0; }
.tablewrap { overflow-x: auto; }
table.levels { border-collapse: collapse; width: 100%; font-size: .93rem; }
table.levels th, table.levels td { text-align: left; vertical-align: top; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
table.levels thead th { color: var(--ink3); font-weight: 600; font-size: .82rem; }
table.levels tbody th { color: var(--accent); white-space: nowrap; }
.doc .btn { margin: .3rem .3rem 0 0; }

/* the store for visitors and Markets I own (item 80; front.py, store.js): the question and its prompt (the teaser's
   hero and the top of the signed-in store), the claimed idea's notice, the "owned" badge, the register dialog's
   field notes and user-name check, the upgrade offer's plans side by side (site.css restyles some of it for the
   teaser's hyperc.com frame) */
.h1 { font-size: 1.6rem; line-height: 1.25; margin: .2rem 0 .4rem; font-weight: 700; }
.ask { max-width: 820px; margin: 6px auto 22px; text-align: center; }
.ask h1 { font-size: clamp(1.35rem, 3vw, 2rem); margin: .2rem 0 .8rem; overflow-wrap: anywhere; }
.ask-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: start;
  max-width: 760px; margin: 0 auto; text-align: left; }
.ask-form textarea { grid-column: 1 / -1; min-height: 7.2em; font-size: 1rem; }
.ask-form .ask-sub { margin: 0; font-size: .88rem; }
.ask-form button[type=submit] { justify-content: center; }
.draft-notice { border-left-color: var(--good); }
.draft-notice.warn { border-left-color: var(--warn); }
.draft-notice .acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.badge.owned { color: var(--good); border-color: var(--good); }
.card .acts .card-own { flex: 0 1 auto; }
.btn.card-own { text-decoration: none; }
dialog.register h2, dialog.upgrade h2, dialog.waiting h2 { font-size: 1.2rem; }
.reg-hint { display: block; font-size: .8rem; color: var(--ink3); margin-top: .2rem; }
.reg-status { display: block; min-height: 1.2em; font-size: .82rem; margin-top: .15rem; color: var(--ink2); }
.reg-status.ok { color: var(--good); }
.reg-status.bad { color: var(--bad); }
.reg-micro { font-size: .82rem; margin: .5rem 0 0; }
dialog.register .choice { margin-top: .7rem; }
dialog.register .choice label { font-size: .9rem; }
.reg-link .btn { justify-content: center; }
dialog.upgrade { max-width: min(760px, calc(100vw - 32px)); }
.upgrade-offers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: .8rem 0; }
@media (min-width: 560px) { .upgrade-offers { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.upgrade-offer { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex;
  flex-direction: column; min-width: 0; }
.upgrade-offer h3 { margin: 0; }
.upgrade-offer .amount { font-size: 1.15rem; font-weight: 700; margin: .1rem 0 .3rem; }
.upgrade-offer .btn { margin-top: auto; justify-content: center; }
.check-list { list-style: none; margin: .3rem 0 .8rem; padding: 0; }
.check-list li { position: relative; padding: .2rem 0 .2rem 1.4rem; font-size: .9rem; overflow-wrap: anywhere; }
.check-list li::before { content: "✓"; position: absolute; left: .1rem; color: var(--good); font-weight: 700; }
.notice.saved { border-left-color: var(--good); padding-left: .6rem; }
@media (max-width: 560px) {
  .ask-form { grid-template-columns: minmax(0, 1fr); }
  .ask-form button[type=submit] { width: 100%; }
}
@media (max-width: 420px) { .h1 { font-size: 1.35rem; } }

/* dialogs and toasts */
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 18px; max-width: min(520px, calc(100vw - 32px));
  width: 100%; background: var(--panel); color: var(--ink); }
dialog::backdrop { background: rgba(10, 14, 22, .45); }
dialog .acts { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: .55rem 1rem; border-radius: 10px; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s;
  max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; }
.toast.bad { background: var(--bad); color: #fff; }

@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; max-height: none; }
  .toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .toolbar .q { grid-column: 1 / -1; }
  ul.files { columns: 1; }
}
@media (max-width: 420px) {
  h1 { font-size: 1.35rem; }
  .top nav { order: 3; flex: 1 0 100%; }
  .top nav a { padding: .2rem .5rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { margin-top: .4rem; }
  .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .toast, .card.linked { transition: none; } .card.linked:hover { transform: none; } }
/* the rail: always shown beside the results; a toggle above them on a narrow screen */
.rail-toggle { display: none; width: 100%; justify-content: space-between; }
@media (max-width: 820px) {
  .rail-toggle { display: inline-flex; grid-column: 1 / -1; }
  .rail:not(.open) #rail-body { display: none; }
}
