:root {
  color-scheme: light;
  --bg: #fafaf7; --bg2: #f1f0ea; --fg: #17201f; --muted: #58645f; --line: #dcdad1; --card: #ffffff;
  --accent: #0b6b63; --spark: #d17a12; --accent-fg: #ffffff; --accent-bg: #e1f0ed; --warn: #8a4b0c; --warn-bg: #fbf0e0; --bad: #a3261f;
  --code-bg: #eceae2; --term: #101a19; --term-fg: #d9efe9;
  --gutter: clamp(16px, 3vw, 44px);
  --maxw: 1180px;
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1514; --bg2: #131c1b; --fg: #e8f0ee; --muted: #9aaba8; --line: #25332f; --card: #121b1a;
    --accent: #4fc3b5; --spark: #f0a45c; --accent-fg: #062320; --accent-bg: #15302d; --warn: #f0a45c; --warn-bg: #2b2114; --bad: #ff8a80;
    --code-bg: #1b2827; --term: #081110; --term-fg: #d9efe9;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1514; --bg2: #131c1b; --fg: #e8f0ee; --muted: #9aaba8; --line: #25332f; --card: #121b1a;
  --accent: #4fc3b5; --spark: #f0a45c; --accent-fg: #062320; --accent-bg: #15302d; --warn: #f0a45c; --warn-bg: #2b2114; --bad: #ff8a80;
  --code-bg: #1b2827; --term: #081110; --term-fg: #d9efe9;
}
/* the page grows with the window instead of leaving a narrow column in a wide one */
@media (min-width: 1500px) { :root { --maxw: 1400px; } }
@media (min-width: 1900px) { :root { --maxw: 1640px; } }
@media (min-width: 2400px) { :root { --maxw: 1960px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; margin: 0; background: var(--bg); color: var(--fg); font: clamp(16px, .3vw + 14.6px, 19px)/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-fg); padding: 8px 14px; z-index: 50; }
.skip:focus { top: 10px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); letter-spacing: -.02em; margin-bottom: .9rem; max-width: 20ch; }
h2 { font-size: clamp(1.35rem, 1rem + .7vw, 1.75rem); letter-spacing: -.01em; margin-bottom: .9rem; }
h3 { font-size: 1.05rem; margin-bottom: .3rem; }
p { margin: 0 0 .8rem; }
.muted, .crumb { color: var(--muted); font-size: .93rem; }
.crumb a { color: var(--muted); }
code { font: .9em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 58px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a { color: var(--fg); text-decoration: none; font-size: .95rem; padding: 6px 11px; border-radius: 6px; }
.top nav a:hover { background: var(--bg2); }
.icon-btn { padding: 7px 9px; display: inline-flex; align-items: center; line-height: 0; margin-left: 6px; }

/* controls */
button { font: inherit; font-size: .85rem; padding: 6px 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 6px; cursor: pointer; }
button:hover { border-color: var(--accent); }
button.done { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.linklike { border: 0; background: none; color: var(--accent); text-decoration: underline; padding: 0; font-size: inherit; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); text-decoration: none; padding: 9px 16px; border-radius: 6px; font-weight: 600; border: 1px solid var(--accent); font-size: .95rem; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-bg); filter: none; }
.cmd { display: flex; gap: 6px; align-items: stretch; margin: 4px 0 10px; background: var(--term); border-radius: 6px; padding: 5px; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: transparent; color: var(--term-fg); padding: 7px 10px; font: .92rem ui-monospace, SFMono-Regular, Consolas, monospace; scrollbar-width: thin; }
.cmd code::before { content: "$ "; opacity: .45; }
.cmd button { background: #1d2c2a; color: var(--term-fg); border-color: #2b3f3c; flex: none; }
.cmd button:hover { border-color: #4fc3b5; }
.cmd button.done { background: #4fc3b5; color: #062320; border-color: #4fc3b5; }
.label { display: block; font-size: .88rem; font-weight: 600; color: var(--muted); margin: 0; }

/* hero */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: clamp(24px, 4vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.25rem); color: var(--muted); max-width: 58ch; margin-bottom: 1.4rem; }
.steps { list-style: none; padding: 0; margin: 0 0 .8rem; max-width: 640px; }
.steps li { margin-bottom: .5rem; }
.demo { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.demo figcaption { padding: 10px 14px; font-size: .88rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.demo pre { margin: 0; padding: 14px; background: var(--term); color: var(--term-fg); overflow-x: auto; font: .85rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.demo pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.demo pre + pre { border-top: 1px solid #22302d; }
.demo pre code { background: none; padding: 0; color: inherit; font: inherit; }
.demo .muted { padding: 10px 14px; margin: 0; }

/* sections */
.sec { padding-block: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); }
.hero + .sec, .page-head { border-top: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.toolbar { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
.search input { width: 100%; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); }
.search input:focus { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* kit cards */
.cards, .recs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cards.few { grid-template-columns: minmax(0, 1fr); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; min-width: 0; }
.card:hover { border-color: var(--accent); }
.card[hidden] { display: none; }
.card h3 { font-size: 1.2rem; margin: .35rem 0 .3rem; }
.card .name { color: var(--fg); text-decoration: none; }
.card:not(.feature) .name::after { content: ""; position: absolute; inset: 0; }
.card .promise { margin: 0 0 .7rem; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); padding-top: 8px; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .88rem; color: var(--muted); margin: 0; }
.kind { font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--accent-bg); color: var(--accent); }
.kind.ext { background: var(--warn-bg); color: var(--warn); }
.ver { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.feature { flex-direction: column; gap: 16px; padding: 20px; }
@media (min-width: 860px) { .feature { flex-direction: row; align-items: stretch; gap: 28px; } .feature-main { flex: 1.3; } .feature-side { flex: 1; } }
.feature h3 { font-size: 1.5rem; }
.feature-main, .feature-side { min-width: 0; }
.feature-side { background: var(--bg2); border-radius: 6px; padding: 14px 16px; }
.feature-side .more { font-weight: 600; }
.note { font-size: .93rem; background: var(--warn-bg); border-left: 3px solid var(--warn); padding: 9px 13px; margin: 0 0 1rem; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); }
.empty[hidden] { display: none; }
.empty p { margin: 0; }

/* updates */
.updates { display: grid; gap: clamp(20px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .updates { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.feed { list-style: none; padding: 0; margin: .4rem 0 .8rem; }
.feed li { padding: 10px 0; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed p { margin: .2rem 0 0; color: var(--muted); font-size: .93rem; }
.feed-meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.feed-meta a { font-weight: 600; }
.feed-meta time { font-size: .85rem; color: var(--muted); }
.checker { max-width: 760px; }
.ck-paste { margin: 0 0 12px; font-size: .93rem; }
.ck-paste summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.ck-paste textarea { width: 100%; font: .88rem ui-monospace, SFMono-Regular, Consolas, monospace; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); resize: vertical; }
.ck-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ck-field { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--muted); flex: 1; min-width: 150px; }
.ck-field select { font: inherit; font-size: .95rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); }
.ck-out { margin-top: 12px; }
.ck-out[hidden], [data-ck-update][hidden] { display: none; }
.ck-ok, .ck-new { margin: 0 0 8px; padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.ck-ok { background: var(--accent-bg); color: var(--accent); }
.ck-new { background: var(--warn-bg); color: var(--warn); }
.ck-out h4 { margin: 12px 0 2px; font-size: .95rem; }
.ck-out ul { margin: .2rem 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.ck-title { margin: 1.3rem 0 .5rem; font-size: 1.05rem; }

/* submit, faq */
.submit { display: grid; gap: clamp(16px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-bottom: .6rem; }
.submit p { max-width: 52ch; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .6rem 0 0; color: var(--muted); max-width: 70ch; }

/* kit page */
.page-head { padding-top: clamp(20px, 3vw, 40px); }
.page-head h1 { margin-top: .3rem; }
.two { display: grid; gap: clamp(24px, 3vw, 48px); grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.side { order: -1; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 440px); align-items: start; } .side { position: sticky; top: 76px; order: 0; } }
.main-col section { margin-bottom: 2rem; }
.main-col h3 { margin-top: 1.1rem; }
.count { font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--code-bg); padding: 1px 8px; border-radius: 4px; vertical-align: middle; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.side-links { margin: 14px 0 0; }
.tablist { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.tablist[hidden] { display: none; }
[role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
[role="tabpanel"][hidden] { display: none; }
.tool-name { margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
[data-tabs]:has(.tablist:not([hidden])) .tool-name { display: none; }
.tiles { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; }
.tile p { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }
.tile-kind { display: block; font-size: .78rem; color: var(--muted); }
.previews { display: grid; gap: 12px; margin-top: 10px; }
.preview { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.preview figcaption { padding: 9px 14px; display: flex; flex-direction: column; gap: 1px; border-bottom: 1px solid var(--line); }
.preview figcaption .muted { font-size: .85rem; }
.preview pre { margin: 0; padding: 13px 14px; background: var(--term); color: var(--term-fg); overflow-x: auto; font: .88rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.preview pre code { background: none; padding: 0; color: inherit; font: inherit; }
.access { padding-left: 1.2rem; margin: .3rem 0 .6rem; }
.access li, .limits li { margin: .3rem 0; }
.checks { list-style: none; padding: 0; margin: .4rem 0 .6rem; }
.checks li { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks .mark { font-weight: 700; width: 1.2em; flex: none; }
.checks .pass .mark { color: var(--accent); }
.checks .fail .mark { color: var(--bad); }
.limits { padding-left: 1.2rem; }
.log { list-style: none; padding: 0; margin: 10px 0 0; border-left: 2px solid var(--line); }
.log-item { position: relative; padding: 0 0 16px 18px; }
.log-item::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.log-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.log-head h3 { margin: 0; }
.log-item ul { margin: .35rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .94rem; }
.log-item li { margin: .25rem 0; }

/* footer: main grows so the footer always sits at the bottom of the window on short pages */
main { flex: 1 0 auto; width: 100%; }
.foot { flex: none; border-top: 1px solid var(--line); background: var(--bg2); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .92rem; }
.foot-in p { margin: .2rem 0 0; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }

@media (max-width: 720px) { .top nav a:not(:last-of-type) { display: none; } .top nav a:last-of-type { display: inline-block; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* routes: view-all links, type navigation, category tiles */
.viewall { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.sub { margin: 1.8rem 0 .7rem; font-size: 1.05rem; }
.typenav { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 18px; border-bottom: 1px solid var(--line); }
.typenav a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.typenav a:hover { color: var(--fg); }
.typenav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.tilegrid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tile-link { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; }
.tile-link:hover { border-color: var(--accent); }
.tile-link .muted { font-size: .9rem; }
.count-line { margin-top: auto; padding-top: 6px; font-size: .85rem; color: var(--accent); font-weight: 600; }
.top nav a[aria-current="page"] { background: var(--bg2); font-weight: 600; }
.submit-band { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.submit-band h2 { margin-bottom: .2rem; }
.submit-band p { margin: 0; max-width: 56ch; }
.flow { padding-left: 1.2rem; max-width: 72ch; }
.flow li { margin: .6rem 0; }
.page-head .sec-head h1 { margin-bottom: .5rem; }

/* neutral home: type list beside the intro, explicit "View details" */
.hero-types .sub { margin-top: 0; }
.typelist { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.typelist li + li { border-top: 1px solid var(--line); }
.type-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 16px; color: var(--fg); text-decoration: none; }
.type-row:hover { background: var(--bg2); }
.type-row > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.type-row .muted { font-size: .88rem; }
.type-row .count-line { margin: 0; padding: 0; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0 0; }
.details { position: relative; z-index: 1; font-weight: 600; white-space: nowrap; }

.kind.warn { background: var(--warn-bg); color: var(--warn); }

.kind.pick { background: var(--accent); color: var(--accent-fg); }
.kind.own { background: var(--bg2); color: var(--muted); border: 1px solid var(--line); }
.pick-note { margin: 0 0 .7rem; padding: 8px 12px; background: var(--accent-bg); border-left: 3px solid var(--accent); border-radius: 4px; font-size: .93rem; }

.brand .logo { flex: none; }

/* tags: at most two rows on a card */
.taglist { list-style: none; padding: 0; margin: 0 0 .7rem; display: flex; flex-wrap: wrap; gap: 6px; max-height: calc(2 * 1.7rem + 6px); overflow: hidden; }
.tag { display: inline-block; font-size: .78rem; line-height: 1.5; padding: 1px 9px; border-radius: 99px; background: var(--code-bg); color: var(--muted); text-decoration: none; border: 1px solid transparent; position: relative; z-index: 1; }
a.tag:hover { border-color: var(--accent); color: var(--fg); }
.tag.more { cursor: help; }
.tag .count { opacity: .7; }
.tagcloud { margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tagindex { list-style: none; padding: 0; display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.page-head > .taglist { margin: .2rem 0 1rem; max-height: none; }
/* site search */
.site-search { position: relative; flex: 1; max-width: 300px; margin-inline: 14px; min-width: 0; }
.site-search input { width: 100%; font: inherit; font-size: .9rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); }
.site-search input:focus { border-color: var(--accent); }
.suggest, .results { list-style: none; padding: 0; margin: 0; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); z-index: 30; max-height: 70vh; overflow: auto; min-width: min(420px, 90vw); }
.suggest[hidden] { display: none; }
.suggest li, .results li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 9px 12px; border-top: 1px solid var(--line); }
.suggest li:first-child, .results li:first-child { border-top: 0; }
.results { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.r-kind { font-size: .78rem; color: var(--muted); align-self: center; }
.r-desc { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.search-page { display: flex; gap: 8px; margin: 10px 0; }
.search-page input { flex: 1; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); }
.submit-form label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
.submit-form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.submit-form input { flex: 1 1 320px; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); }
@media (max-width: 720px) { .site-search { max-width: none; margin-inline: 8px; } .brand span { display: none; } }

.save { margin-left: 12px; font-size: .9rem; }
.card-foot .save { white-space: nowrap; }

/* account slot in the header */
.acct { display: flex; align-items: center; margin-left: 8px; }
.acct .signin { font-size: .93rem; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 6px; text-decoration: none; color: var(--accent); }
.acct .signin:hover { background: var(--accent-bg); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: .9rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary img { border-radius: 50%; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; z-index: 40; display: grid; gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; border: 0; background: transparent; color: var(--fg); text-decoration: none; font-size: .93rem; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--bg2); }
.top nav a.admin-tab { font-weight: 600; color: var(--accent); }
@media (max-width: 720px) { .top nav a.admin-tab { display: none; } .menu summary span { display: none; } .menu summary { padding-right: 4px; } }
