/* Profile Atlas docs: a field notebook. Warm paper, Newsreader headings, Inter text, hairlines.
   The four activity colours are the only chroma, and they appear only where data does. */
:root {
  --bg: #f7f6f1;
  --fg: #22241f;
  --muted: #efede6;
  --muted-fg: #6b6e64;
  --faint: #93958b;
  --border: #e2dfd5;
  --border-strong: #cdc9bc;
  --surface: #fbfaf6;
  --stage: #f5f3ec;
  --sel-bg: #22241f;
  --sel-fg: #f7f6f1;
  --c-star: #b39462; --c-fork: #8e93b0; --c-project: #be876c; --c-commit: #6e9b86;
  --t-k: #a3462c; --t-s: #3c6b52; --t-c: #8f9186; --t-n: #6b5aa6; --t-t: #8a6a2c; --t-a: #3f6488; --t-f: #7a4a8c;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 8px;
  --header-h: 56px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151613; --fg: #ebeae2; --muted: #22231f; --muted-fg: #a6a69b; --faint: #7f8076;
    --border: #2c2d27; --border-strong: #3d3e36; --surface: #1a1b17; --stage: #1b1c18;
    --sel-bg: #ebeae2; --sel-fg: #151613;
    --c-star: #cdb17d; --c-fork: #a6aacb; --c-project: #d49d83; --c-commit: #86b8a1;
    --t-k: #e2906b; --t-s: #9cc8ad; --t-c: #7f8076; --t-n: #b3a6e0; --t-t: #d8bb7d; --t-a: #95b9d8; --t-f: #cfa3dd;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151613; --fg: #ebeae2; --muted: #22231f; --muted-fg: #a6a69b; --faint: #7f8076;
  --border: #2c2d27; --border-strong: #3d3e36; --surface: #1a1b17; --stage: #1b1c18;
  --sel-bg: #ebeae2; --sel-fg: #151613;
  --c-star: #cdb17d; --c-fork: #a6aacb; --c-project: #d49d83; --c-commit: #86b8a1;
  --t-k: #e2906b; --t-s: #9cc8ad; --t-c: #7f8076; --t-n: #b3a6e0; --t-t: #d8bb7d; --t-a: #95b9d8; --t-f: #cfa3dd;
  color-scheme: dark;
}
@media (min-width: 1024px) { :root { --header-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--sel-bg); color: var(--sel-fg); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
code, kbd, pre, .mono { font-family: var(--mono); font-feature-settings: "liga" 0, "calt" 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--fg); color: var(--bg); border-radius: 6px; text-decoration: none; font-size: 13px; }
.skip:focus { top: 10px; }
.noscript { padding: 40px 16px; text-align: center; color: var(--muted-fg); }

.wrap { max-width: 1360px; margin-inline: auto; width: 100%; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }
.grow { flex: 1; }

/* ───── header ───── */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-in { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; flex: none; }
.nav { display: flex; gap: 20px; font-size: 13.5px; }
.nav a { text-decoration: none; color: var(--muted-fg); transition: color 160ms var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.search { display: flex; align-items: center; gap: 8px; height: 32px; width: 232px; padding: 0 5px 0 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted-fg); font-size: 13px; cursor: pointer; transition: border-color 160ms var(--ease); }
.search:hover { border-color: var(--border-strong); }
.search svg { width: 15px; height: 15px; flex: none; }
.search span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--border); background: var(--bg); font: 500 11px/1 var(--mono); color: var(--muted-fg); white-space: nowrap; }
.sep { width: 1px; height: 16px; background: var(--border); margin: 0 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; color: var(--fg); text-decoration: none; transition: background 160ms var(--ease), color 160ms var(--ease); }
.icon-btn:hover { background: var(--muted); }
.icon-btn svg { width: 16px; height: 16px; }
.copy-btn { color: var(--muted-fg); }
.copy-btn:hover, .copy-btn[data-done] { color: var(--fg); }
.menu-btn { display: none; margin-left: -6px; }
@media (max-width: 1023px) {
  .nav { display: none; } .menu-btn { display: inline-grid; }
  .search { width: 32px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search span, .search .kbd { display: none; }
  .sep { display: none; }
}

/* drawer (below 1024px) */
.drawer { display: none; }
@media (max-width: 1023px) {
  .drawer-open .drawer { display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 40; overflow-y: auto; background: var(--bg); padding: 20px max(16px, env(safe-area-inset-left, 0px)) 40px; }
  .drawer-open { overflow: hidden; }
}

/* ───── buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: var(--radius); border: 1px solid transparent; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 160ms var(--ease), border-color 160ms var(--ease), opacity 160ms var(--ease); }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.primary:hover { opacity: .86; }
.btn.outline { border-color: var(--border-strong); background: transparent; }
.btn.outline:hover { background: var(--muted); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-color: var(--border); background: var(--surface); }
.btn.sm:hover { background: var(--muted); border-color: var(--border-strong); }
.btn svg { width: 15px; height: 15px; flex: none; }

/* ───── home ───── */
.home:focus { outline: none; }
.hero { padding-block: 72px 44px; }
.kicker { font: 500 11.5px/1 var(--mono); letter-spacing: .04em; color: var(--muted-fg); text-transform: uppercase; }
.hero h1 { margin-top: 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 80px); line-height: .98; letter-spacing: -.035em; max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--muted-fg); }
.lede { margin-top: 22px; font-size: 17px; line-height: 1.55; color: var(--muted-fg); max-width: 62ch; text-wrap: pretty; }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.install-chip { display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 0 3px 0 13px; border-radius: var(--radius); background: var(--muted); font-size: 13px; max-width: 100%; }
.install-chip code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-chip .dollar { color: var(--faint); margin-right: 8px; font-family: var(--mono); }
@media (max-width: 560px) { .hero { padding-block: 44px 32px; } .cta .btn { flex: 1 1 auto; } }

.specimens { display: grid; gap: 28px; padding-bottom: 20px; }
.specimen { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.specimen figcaption { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--border); }
.specimen figcaption > div:first-child { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; min-width: 0; }
.specimen figcaption a.mono { font-size: 13px; font-weight: 500; text-decoration: none; }
.specimen figcaption a.mono:hover { text-decoration: underline; }
.specimen figcaption span { color: var(--muted-fg); font-size: 13px; }
.specimen-actions { display: flex; gap: 4px; align-items: center; flex: none; }
.specimen-stage { background: var(--stage); }

.index { padding-block: 56px 72px; }
.index h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -.02em; }
.index ol { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--border); }
.index a { display: grid; grid-template-columns: 40px minmax(160px, 260px) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background 160ms var(--ease); }
.index a:hover { background: var(--muted); }
.index .num { font: 12px var(--mono); color: var(--faint); }
.index b { font-weight: 500; font-size: 15px; }
.index b.mono { font-size: 13.5px; }
.index .sum { color: var(--muted-fg); font-size: 14px; }
@media (max-width: 720px) { .index a { grid-template-columns: 32px minmax(0, 1fr); } .index .sum { grid-column: 2; } }

/* ───── docs layout ───── */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .docs { grid-template-columns: 232px minmax(0, 1fr); } }
@media (min-width: 1280px) { .docs { grid-template-columns: 232px minmax(0, 1fr) 196px; } }
.sidebar { display: none; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; scrollbar-width: none; padding: 28px 16px 40px 0; border-right: 1px solid var(--border); }
@media (min-width: 1024px) { .sidebar { display: block; } }
.nav-group + .nav-group { margin-top: 22px; }
.nav-group h4 { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 0 10px 8px; }
.nav-group a { display: block; padding: 5px 10px; border-radius: 6px; font-size: 14px; color: var(--muted-fg); text-decoration: none; transition: color 160ms var(--ease), background 160ms var(--ease); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-group a.mono { font-size: 12.5px; }
.nav-group a:hover { color: var(--fg); }
.nav-group a[aria-current="page"] { color: var(--fg); background: var(--muted); font-weight: 500; }
.docs main { min-width: 0; padding: 32px 0 64px; }
.docs main:focus { outline: none; }
@media (min-width: 1024px) { .docs main { padding: 40px 0 80px 48px; } }
@media (min-width: 1280px) { .docs main { padding-right: 40px; } }
.toc { display: none; position: sticky; top: var(--header-h); align-self: start; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 40px 0 40px; scrollbar-width: none; }
@media (min-width: 1280px) { .toc { display: block; } }
.toc h4 { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 10px; }
.toc a { display: block; font-size: 13px; color: var(--muted-fg); text-decoration: none; padding: 4px 0 4px 10px; border-left: 1px solid var(--border); line-height: 1.4; }
.toc a.sub { padding-left: 22px; }
.toc a:hover { color: var(--fg); }
.toc a[aria-current] { color: var(--fg); border-left-color: var(--fg); }

/* ───── article ───── */
.article { max-width: 780px; }
.crumb { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 14px; }
.page-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.page-title h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.025em; min-width: 0; overflow-wrap: anywhere; }
.article h1 .h-code, .pager .h-code { font-family: var(--mono); font-size: .6em; letter-spacing: -.02em; font-weight: 500; background: none; padding: 0; }
.page-actions { display: flex; align-items: center; gap: 2px; }
.desc { margin-top: 12px; font-size: 17px; color: var(--muted-fg); line-height: 1.55; text-wrap: pretty; }
.article > p, .article section > p { margin-top: 14px; }
.article h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -.02em; margin-top: 52px; padding-top: 4px; }
.article h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-top: 32px; }
.article h3 code { font-size: 14px; font-weight: 500; }
.article h2 + p, .article h3 + p { margin-top: 10px; }
.article ul { margin: 12px 0 0; padding-left: 20px; }
.article li { margin-top: 6px; padding-left: 2px; }
.article li::marker { color: var(--faint); }
.article :not(pre) > code, .article td code, .desc code { font-size: .86em; padding: 1px 5px; border-radius: 4px; background: var(--muted); overflow-wrap: anywhere; }
.article p a, .article li a, .article td a { text-decoration-color: var(--border-strong); }
.article p a:hover, .article li a:hover, .article td a:hover { text-decoration-color: currentColor; }
.note { margin-top: 10px !important; font-size: 13.5px; color: var(--muted-fg); }
.example + .example { margin-top: 8px; }

/* split button + menu */
.split { position: relative; display: inline-flex; }
.split > .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.split > .btn:nth-child(2) { border-radius: 0 var(--radius) var(--radius) 0; margin-left: -1px; padding: 0 7px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 32px -12px rgb(20 20 10 / .25); }
.menu [role="menuitem"] { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; text-decoration: none; cursor: pointer; text-align: left; }
.menu [role="menuitem"]:hover, .menu [role="menuitem"]:focus-visible { background: var(--muted); outline: none; }
.menu svg { width: 15px; height: 15px; color: var(--muted-fg); }

/* ───── preview ───── */
.preview { margin-top: 24px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; border-bottom: 1px solid var(--border); }
.preview-stage { background: var(--stage); min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.preview.sm .preview-stage { min-height: 240px; }
.stage-inner { width: 100%; }
.preview-stage profile-atlas, .preview-stage github-activity-timeline, .specimen-stage profile-atlas, .specimen-stage github-activity-timeline { display: block; }
.stage-inner > profile-atlas:not([compact]) { margin: 16px; }
.preview-code .code { margin: 0; border: 0; border-radius: 0; }
.preview-code .code pre { max-height: 520px; }
.stage-wait { display: grid; place-items: center; gap: 14px; text-align: center; padding: 48px 20px; color: var(--muted-fg); font-size: 14px; }
.stage-wait p { max-width: 46ch; }
.stage-error { padding: 20px; color: var(--t-k); font-size: 13px; }
.picked { margin: 0; padding: 14px 26px 20px; font-size: 13.5px; color: var(--muted-fg); border-top: 1px solid var(--border); background: var(--surface); }
.readout { margin: 0; padding: 24px 26px; font: 12.5px/1.7 var(--mono); color: var(--fg); white-space: pre; overflow-x: auto; }

/* segmented control */
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: var(--radius); background: var(--muted); }
.seg button { position: relative; z-index: 1; height: 26px; padding: 0 11px; border: 0; background: transparent; border-radius: 5px; font-size: 13px; font-weight: 500; color: var(--muted-fg); cursor: pointer; transition: color 160ms var(--ease); }
.seg button[aria-pressed="true"] { color: var(--fg); }
.seg .pill { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 5px; background: var(--bg); box-shadow: 0 0 0 1px var(--border); transition: left 220ms var(--ease), width 220ms var(--ease); }

/* ───── code ───── */
.code { position: relative; margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.code-title { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 48px 0 13px; border-bottom: 1px solid var(--border); font: 12.5px var(--mono); color: var(--muted-fg); }
.code-title svg { width: 14px; height: 14px; }
.code pre { margin: 0; padding: 14px 48px 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.65; tab-size: 2; }
.code pre:focus-visible { outline-offset: -2px; }
.code-copy { position: absolute; top: 9px; right: 6px; }
.code:has(.code-title) .code-copy { top: 3px; }
.code.collapsed pre { max-height: 360px; overflow: hidden; }
.fade { position: absolute; inset: auto 0 0; height: 110px; display: grid; place-items: end center; padding-bottom: 16px; background: linear-gradient(to bottom, transparent, var(--surface) 72%); }
.t-k { color: var(--t-k); } .t-s { color: var(--t-s); } .t-c { color: var(--t-c); font-style: italic; } .t-n { color: var(--t-n); } .t-t { color: var(--t-t); } .t-a { color: var(--t-a); } .t-f { color: var(--t-f); }

/* install */
.tabs { margin-top: 12px; }
.tablist { display: flex; gap: 18px; border-bottom: 1px solid var(--border); }
.tablist [role="tab"] { position: relative; padding: 8px 0 10px; border: 0; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted-fg); cursor: pointer; }
.tablist [role="tab"][aria-selected="true"] { color: var(--fg); }
.tablist [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--fg); border-radius: 2px; }
[role="tabpanel"] { padding-top: 16px; }
[role="tabpanel"]:focus-visible { outline: none; }
[role="tabpanel"] > p { margin-top: 0; color: var(--muted-fg); font-size: 14.5px; }
[role="tabpanel"] > p + * { margin-top: 12px; }
.cmd { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.cmd-bar { display: flex; align-items: center; gap: 2px; height: 38px; padding: 0 3px 0 12px; border-bottom: 1px solid var(--border); }
.cmd-bar > svg { width: 15px; height: 15px; color: var(--faint); margin-right: 8px; }
.cmd-bar [role="tab"] { height: 26px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; font: 12.5px var(--mono); color: var(--muted-fg); cursor: pointer; }
.cmd-bar [role="tab"][aria-selected="true"] { color: var(--fg); background: var(--muted); }
.cmd pre { margin: 0; padding: 13px 16px; font-size: 13px; overflow-x: auto; }
.file-list { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.file-list a { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 16px; gap: 14px; align-items: baseline; padding: 10px 14px; text-decoration: none; border-top: 1px solid var(--border); transition: background 160ms var(--ease); }
.file-list a:first-child { border-top: 0; }
.file-list a:hover { background: var(--muted); }
.file-list .mono { font-size: 12.5px; }
.file-list small { color: var(--muted-fg); font-size: 13px; }
.file-list svg { width: 15px; height: 15px; color: var(--faint); align-self: center; }
@media (max-width: 600px) { .file-list a { grid-template-columns: minmax(0, 1fr) 16px; } .file-list small { grid-column: 1; grid-row: 2; } .file-list svg { grid-row: 1 / 3; grid-column: 2; } }

/* tables */
.table-wrap { margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted-fg); padding: 9px 14px; background: var(--surface); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: top; }
tbody tr:first-child td { border-top: 0; }
td:first-child { white-space: nowrap; }
td:first-child code { background: transparent; padding: 0; font-weight: 500; color: var(--fg); }
td:nth-child(3):not(.desc-cell) { white-space: nowrap; }
td:not(:first-child):not(.desc-cell) code { white-space: normal; color: var(--t-a); background: transparent; padding: 0; }
.desc-cell { color: var(--muted-fg); min-width: 220px; }
@media (max-width: 600px) { td:first-child { white-space: normal; } .desc-cell { min-width: 180px; } }

/* pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; }
.pager a { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: border-color 160ms var(--ease), background 160ms var(--ease); min-width: 0; }
.pager a:hover { border-color: var(--border-strong); background: var(--surface); }
.pager .next { text-align: right; grid-column: 2; }
.pager small { font-size: 12.5px; color: var(--muted-fg); }
.pager b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager b code { font-size: 13px; }

/* ───── palette ───── */
.scrim { position: fixed; inset: 0; z-index: 80; display: grid; justify-items: center; align-items: start; padding: max(12vh, 64px) 16px 16px; background: rgb(18 19 14 / .38); }
.palette { width: min(600px, 100%); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 24px 64px -16px rgb(10 10 5 / .4); overflow: hidden; animation: pop 180ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.99); } }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.palette-input svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.palette input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; font: 15px var(--sans); color: var(--fg); }
.palette input::placeholder { color: var(--faint); }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: min(52vh, 420px); overflow-y: auto; }
.palette li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.palette li .mono { font-size: 13px; }
.palette li small { color: var(--faint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette li[aria-selected="true"] { background: var(--muted); }
.palette li.group { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 12px 10px 6px; cursor: default; }
.palette li.group.empty { text-transform: none; letter-spacing: 0; font: 14px var(--sans); padding: 18px 10px; }
.palette-foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--faint); }
@media (max-width: 560px) { .palette-foot { display: none; } .scrim { padding-top: 64px; } }

/* ───── footer ───── */
.footer { border-top: 1px solid var(--border); padding-block: 24px 32px; font-size: 13px; color: var(--muted-fg); }
.footer a { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}
@media (max-width: 560px) {
  .specimen figcaption { align-items: flex-start; padding: 12px 10px 12px 14px; }
  .specimen figcaption span { font-size: 12.5px; }
}
.code-copy .icon-btn, .cmd-bar .icon-btn { background: var(--surface); }
.code-copy .icon-btn:hover, .cmd-bar .icon-btn:hover { background: var(--muted); }
