/* EgoIndex: Perceptron product kit (dense). Tokens mirror the Figma "EgoIndex" collection, light and dark. */

/* Hero headline only: the serif used for blog post titles on perceptron.inc (Regular 400, -0.02em, 1.1). */
@font-face { font-family: "ABC Arizona Flare"; src: url("fonts/abc-arizona-flare-regular-trial.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fragment Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fragment-mono-regular.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #eceae4;
  --raised: #ffffff;
  --group: #d8d3ca38;
  --tint: #26251e1a;
  --hover: #26251e0d;
  --selected: #dce8f4;
  --inverse: #222220;
  --fg: #222220;
  --fg-inverse: #ffffff;
  --muted: #6b675f;
  --border: #d8d3ca;
  --hairline: #e6e3dd;
  --error: #b42318;
  --done: #039654;
  --running: #7dadde;
  --waiting: #d8d3ca;
  --blue: #1b69b6;
  --orange: #f5820f;
  --shadow-card: 0 4px 4px #00000012;
  --mark: url("brand/mark-espresso.svg");
  --hero-image: url("brand/hero-gradient-2880.webp");
  --hero-ink: #f8f4eb;
  --content-max: 1440px;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1e130e;
  --raised: #160d09;
  --group: #ffffff08;
  --tint: #ffffff1a;
  --hover: #ffffff0d;
  --selected: #183e67;
  --inverse: #ebebeb;
  --fg: #ffffff;
  --fg-inverse: #222220;
  --muted: #ffffffad;
  --border: #ffffff1a;
  --hairline: #ffffff12;
  --error: #f0857a;
  --done: #0dc271;
  --running: #adcae9;
  --waiting: #ffffff24;
  --blue: #2b8ae9;
  --shadow-card: none;
  --mark: url("brand/mark-cream.svg");
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 13px; line-height: 18px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: #1b69b64d; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small-mark { width: 17px; height: 9px; opacity: .68; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 16px; }
.mono { font-family: var(--font-mono); font-size: 12px; line-height: 16px; }
.strong { font-weight: 600; }
.strong-15 { font-size: 15px; line-height: 20px; font-weight: 600; }
.icon { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mark { display: inline-block; width: 27px; height: 14px; flex: none; background: var(--mark) center / contain no-repeat; }

/* Header */
/* Content is capped at --content-max and centred; the header and footer rules still run the full width of the window. */
.app-header { --gutter: max(0px, (100% - var(--content-max)) / 2); display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 calc(16px + var(--gutter)) 0 calc(20px + var(--gutter)); border-bottom: 1px solid var(--border); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
/* Header logo: the Perceptron mark from the brand assets beside the product name set in the UI face. */
.logo-name { color: var(--fg); font-size: 15px; line-height: 20px; font-weight: 500; }
.tabs { display: flex; gap: 4px; }
.tab { height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 500; }
.tab:hover { background: var(--hover); color: var(--fg); }
.tab.active { background: var(--raised); border-color: var(--border); color: var(--fg); }
.ghost-link { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.ghost-link:hover { background: var(--hover); color: var(--fg); }

/* Page */
main { --gutter: max(0px, (100% - var(--content-max)) / 2); display: flex; flex-direction: column; gap: 20px; padding: 20px calc(24px + var(--gutter)) 32px; }
/* Overview hero on the Leaderboard tab: a rounded card, inset 8px from the header and the screen edges, filled by the dark
   grainy gradient from the Figma mock (node 101:1177). The image is the same in both themes, so the type on it is always cream. */
.hero { position: relative; margin: -12px -16px 0; padding: 14px 32px 64px; border-radius: 16px; overflow: hidden; color: var(--hero-ink);
  background: #2a1a12 var(--hero-image) center / cover no-repeat; }
/* Text on the left, the hand-annotation loop (16:9, up to 504px wide) on the right, both centred on the row. */
.hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 303px; }
.hero-text { display: flex; flex-direction: column; gap: 14px; max-width: 600px; }
.hero-media { position: relative; flex: 0 1 504px; min-width: 0; max-width: 504px; aspect-ratio: 16 / 9; }
/* Two stacked players: the one showing a clip is .is-active, and the opacity transition is the crossfade (app.js: HERO_FADE_MS). */
.hero-media video { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; transform: translateY(var(--clip-shift, 0)); opacity: 0; transition: opacity .7s ease-in-out; }
.hero-media video.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-media video { transition: none; } }
@media (max-width: 980px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; min-height: 0; }
  .hero-media { flex: none; width: 100%; max-width: 440px; align-self: flex-end; }
}
.hero-title { margin: 0; font-family: "ABC Arizona Flare", "Iowan Old Style", Georgia, serif; font-size: 48px; line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.hero-sub { margin: 0; max-width: 520px; font-size: 16px; line-height: 24px; color: color-mix(in srgb, var(--hero-ink) 78%, transparent); }
@media (max-width: 720px) {
  .hero { margin: -8px -8px 0; padding: 24px 16px 40px; }
  .hero-media { max-width: 360px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; line-height: 22px; }
}
.bench-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.segmented { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--group); max-width: 100%; overflow-x: auto; }
.segment { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 500; white-space: nowrap; }
.segment small { font-size: 12px; font-weight: 400; color: var(--muted); }
.segment:hover:not(:disabled) { color: var(--fg); }
.segment[aria-pressed="true"] { background: var(--raised); border-color: var(--border); color: var(--fg); }
.segmented:empty { display: none; }
.segment:disabled { cursor: default; opacity: .6; }

.panel { display: none; flex-direction: column; gap: 20px; }
.panel.active { display: flex; }
/* Switching benchmark: the panel fades out, is redrawn, and fades back in (app.js: BOARD_FADE_MS). */
#panel-leaderboard { transition: opacity .16s ease-out; }
#panel-leaderboard.board-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #panel-leaderboard { transition: none; } }
.title-block { display: flex; flex-direction: column; gap: 6px; }
.board-title { display: flex; align-items: center; gap: 8px; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.pixel-pair { width: 14px; height: 14px; flex: none; fill: var(--orange); }
.lede { max-width: 760px; color: var(--muted); }

/* Controls */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-count { margin-left: auto; white-space: nowrap; }
.search, .select, .field input, .field select, .field textarea, .status-lookup input { border: 1px solid var(--border); border-radius: 8px; background: var(--raised); }
.search { display: flex; align-items: center; gap: 8px; width: 320px; max-width: 100%; height: 32px; padding: 0 10px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--fg); }
.search:focus-within, .select:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.select { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-left: 10px; color: var(--muted); font-size: 12px; }
.select select { appearance: none; height: 30px; padding: 0 26px 0 0; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: 13px; font-weight: 500; max-width: 180px; text-overflow: ellipsis; }
.select::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters:empty { display: none; }
.sort-group { display: flex; align-items: center; gap: 4px; }
.icon-button { width: 32px; padding: 0; color: var(--muted); }
.icon-button.ascending .icon { transform: rotate(180deg); }
/* Light/dark switch at the right end of the header: it shows the mode a click switches to (moon in light, sun in dark). */
/* Header account: name then one action, pushed to the right together with the theme toggle. */
.account { display: flex; align-items: center; gap: 4px; margin-left: auto; min-width: 0; }
.account-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 6px; }
.account .ghost-link { height: 28px; padding: 0 8px; }
@media (max-width: 440px) { .account-name { max-width: 110px; } }
.theme-toggle .icon-sun, :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.field select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b675f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; }
:root[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.68' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
/* Nothing loaded: only the notice and its retry button. */
body.no-data .panel, body.no-data #benchmark-switcher, body.no-data .tabs { display: none; }
.notice [data-retry] { margin-left: 8px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.button.primary { background: var(--inverse); color: var(--fg-inverse); }
.button.primary:hover:not(:disabled) { opacity: .9; }
.button.secondary { background: var(--raised); border-color: var(--border); color: var(--fg); }
.button.secondary:hover { background: var(--hover); }
.button:disabled { opacity: .5; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border: 1px solid transparent; border-radius: 4px; background: var(--tint); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip .mark { width: 13px; height: 7px; }
.chip.outline { background: transparent; border: 1px dashed var(--border); color: var(--muted); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--waiting); }
.chip.scored .dot { background: var(--done); }
.chip.scoring .dot { background: var(--running); }
.chip.failed { color: var(--error); }
.chip.failed .dot { background: var(--error); }
.chip.review .dot { background: var(--blue); }
.chip.approved .dot { background: var(--done); }
.chip.rejected { color: var(--muted); }
.chip.rejected .dot { background: var(--muted); }

.card, .table-card { background: var(--raised); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-card); }
.card { display: flex; flex-direction: column; gap: 16px; padding: 20px; }

.notice { padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--group); overflow-wrap: anywhere; }
.notice.success { border-left: 3px solid var(--done); }
.notice.error, .notice.warning { border-left: 3px solid var(--error); }
.notice code, .prose code, .status-result code { font-family: var(--font-mono); font-size: 12px; }
.error-text { color: var(--error); }

/* Top 3 callout and score vs cost chart, side by side above the table */
.insights { display: flex; align-items: stretch; gap: 20px; }
.insights > * { flex: 1 1 0; min-width: 0; }
.insights:not(:has(.card:not(.hidden))) { display: none; }
/* Left column: Top 3 at its own height, the dataset card takes what the chart leaves over. */
.insights-side { display: flex; flex-direction: column; gap: 20px; }
.insights-side:not(:has(.card:not(.hidden))) { display: none; }
.dataset-card { flex: 1 1 auto; gap: 12px; min-height: 0; color: inherit; text-decoration: none; transition: border-color .15s, background-color .15s; }
.dataset-card:hover { border-color: var(--muted); }
.dataset-card:focus-visible { outline: 2px solid var(--blue, currentColor); outline-offset: 2px; }
.ds-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-repo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.ds-repo .icon { flex: none; color: var(--muted); }
.ds-open { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.dataset-card:hover .ds-open { color: var(--fg); }
.ds-title { font-size: 15px; line-height: 20px; font-weight: 600; text-wrap: balance; }
/* One paragraph, cut at two lines. */
.ds-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; color: var(--muted); }
/* Clip carousel (Figma 140:1929): the front clip is centred and sharp; its neighbours sit behind it to either side,
   smaller, blurred and faded, running off the card's edges; other slides wait hidden behind. app.js sets data-pos. */
.ds-carousel { --clip-w: min(389px, 59%); --pad-b: 22px; position: relative; margin: 0 -20px; padding: 8px 0 var(--pad-b); overflow-x: clip; }
.ds-stage { position: relative; width: var(--clip-w); margin: 0 auto; aspect-ratio: 16 / 9; }
.ds-slide { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: var(--group); opacity: 0; transform: scale(.72); transition: transform .5s cubic-bezier(.3, .7, .2, 1), opacity .5s ease, filter .5s ease; }
.ds-slide img, .ds-slide video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-slide video { opacity: 0; transition: opacity .2s; }
.ds-slide video.is-playing { opacity: 1; }
.ds-slide[data-pos="0"] { z-index: 2; opacity: 1; transform: none; box-shadow: 0 20px 36px #00000059; }
/* The front clip's top highlight and inner shading, drawn above the picture. */
.ds-slide[data-pos="0"]::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; border-top: 1px solid #ffffffb3; box-shadow: inset 0 -1px 4px #00000040, inset 0 2px 2px #ffffff40; pointer-events: none; }
.ds-slide[data-pos="-1"], .ds-slide[data-pos="1"] { z-index: 1; opacity: .6; filter: blur(28px); }
.ds-slide[data-pos="-1"] { transform: translateX(-64%) scale(.72); }
.ds-slide[data-pos="1"] { transform: translateX(64%) scale(.72); }
/* Arrows: light round buttons over the side clips, shown while the card is hovered or focused (always on touch). */
.ds-nav { position: absolute; top: 8px; bottom: var(--pad-b); z-index: 3; margin: auto 0; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #ffffff73; color: #222220; box-shadow: 0 1px 4px #0000001f; backdrop-filter: blur(6px); opacity: 0; transition: opacity .15s, background-color .15s; cursor: pointer; }
.ds-nav.prev { left: 20px; }
.ds-nav.next { right: 20px; }
.ds-nav.prev .icon { transform: rotate(180deg); }
.ds-nav:hover { background: #ffffffb3; }
.dataset-card:hover .ds-nav, .dataset-card:focus-within .ds-nav { opacity: 1; }
@media (hover: none) { .ds-nav { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ds-slide { transition: none; } }
/* A board with no chart (WGO-Bench) keeps its Top 3 and dataset row low, so the clips are smaller there. */
.insights:has(> #chart-card.hidden) .ds-carousel { --clip-w: min(288px, 66%); --pad-b: 22px; }
.ds-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; color: var(--muted); font-size: 12px; line-height: 16px; }
.top-card { gap: 16px; }
#top-subtitle { margin-top: 4px; } /* same title-to-subtitle gap as .chart-head */
/* Podium: the list is in rank order for readers and assistive tech; `order` shows it as 2-1-3. Each place is a logo and
   name above a bar that holds the score at its top and the rank badge at its foot. Bar heights are fixed per rank
   (they do not encode the score); first place is the one orange bar. */
.top-list { --bar: linear-gradient(#f2f0eb, #e6e0d1); --badge: #5a410326; --badge-ink: #372503; display: flex; align-items: flex-end; justify-content: center; gap: 40px; margin: 0; padding: 0; list-style: none; }
:root[data-theme="dark"] .top-list { --bar: linear-gradient(#ffffff0f, #ffffff1f); --badge: #ffffff1f; --badge-ink: #ffffff; }
.podium-place { display: flex; flex-direction: column; gap: 10px; flex: 0 1 128px; min-width: 0; }
.podium-place.place-1 { order: 2; }
.podium-place.place-2 { order: 1; }
.podium-place.place-3 { order: 3; }
.podium-info { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 4px; text-align: center; }
.podium-bar { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 84px; padding: 14px 8px; border-radius: 8px; background: var(--bar); color: var(--muted); }
.place-2 .podium-bar { height: 116px; }
.place-1 .podium-bar { height: 160px; background: linear-gradient(#f5a85a, #f08011); box-shadow: inset 0 1px 0 #ffffff59; color: #ffffff; }
.podium-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: var(--badge); color: var(--badge-ink); font-size: 13px; line-height: 16px; font-weight: 700; }
.place-1 .podium-rank { width: 32px; height: 32px; background: #de7711; color: #ffffff; font-size: 16px; line-height: 20px; }
/* Beside the chart (EgoHome) on wide screens the podium is pulled up so the first-place logo sits level with the
   card's title, which is short and left-aligned, well clear of the centred podium. Bars keep their heights. */
@media (min-width: 1320px) { .insights:has(> #chart-card:not(.hidden)) .top-list { margin-top: -36px; } }
/* A board with no chart (WGO-Bench) puts Top 3 beside the dataset card; a shorter podium keeps that row about 15% lower. */
.insights:has(> #chart-card.hidden) .top-card { gap: 12px; }
.insights:has(> #chart-card.hidden) .podium-place, .insights:has(> #chart-card.hidden) .podium-info { gap: 8px; }
.insights:has(> #chart-card.hidden) .podium-bar { height: 80px; padding: 12px 8px; }
.insights:has(> #chart-card.hidden) .place-2 .podium-bar { height: 108px; }
.insights:has(> #chart-card.hidden) .place-1 .podium-bar { height: 150px; }
.org-logo { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--border); border-radius: 8px; background: var(--raised); color: var(--fg); }
.org-logo svg { width: 24px; height: 24px; fill: currentColor; }
.org-logo .mark { width: 26px; height: 14px; }
/* A submitter's uploaded logo: on white so a dark mark stays visible in dark mode. */
.org-logo.upload { background: #fff; }
.org-logo.upload img { max-width: 70%; max-height: 70%; object-fit: contain; }
.org-logo.monogram { font-size: 16px; font-weight: 600; color: var(--muted); }
.top-score { font-family: var(--font-mono); font-size: 15px; line-height: 20px; font-weight: 500; }
.top-name { color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 440px) {
  .top-list { gap: 16px; }
  .org-logo { width: 32px; height: 32px; }
  .org-logo svg { width: 19px; height: 19px; }
  .org-logo .mark { width: 21px; height: 11px; }
  .top-score { font-size: 13px; }
}
.chart-plot .frontier-area { fill: color-mix(in srgb, var(--orange) 14%, var(--raised)); stroke: none; }
/* First draw of a view: the frontier is revealed left to right and the shaded area fades in with it. */
.chart-plot .draw-in #frontier-reveal rect { transform-box: fill-box; transform-origin: left center; animation: frontier-reveal .9s cubic-bezier(.4, 0, .2, 1) both; }
.chart-plot .draw-in .frontier-area, .chart-plot .draw-in .grid.on-area { animation: frontier-fade .9s ease-out both; }
@keyframes frontier-reveal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes frontier-fade { from { opacity: 0; } to { opacity: 1; } }
/* Waiting to scroll into view: line and shading are held back, then draw-in plays. */
@media (prefers-reduced-motion: no-preference) {
  .chart-plot .pre-draw #frontier-reveal rect { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
  .chart-plot .pre-draw .frontier-area, .chart-plot .pre-draw .grid.on-area { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .chart-plot .draw-in #frontier-reveal rect, .chart-plot .draw-in .frontier-area, .chart-plot .draw-in .grid.on-area { animation: none; } }
/* No chart on this board: Top 3 and the dataset card sit side by side. */
@media (min-width: 981px) {
  .insights:has(> #chart-card.hidden) .insights-side { flex-direction: row; }
  .insights:has(> #chart-card.hidden) .insights-side > .card { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 980px) { .insights { flex-direction: column; } .ds-body { flex: none; max-height: 9em; } }

/* Score vs cost chart */
.chart-card { gap: 14px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-head p { max-width: 640px; margin-top: 4px; }
.chart-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 14px; min-width: 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.chart-legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; flex: none; border-radius: 50%; }
.swatch.line { width: 16px; height: 0; border-radius: 0; border-top: 2px dashed var(--fg); }
/* The plot takes the card's spare height; the svg is out of flow so its own height never props the card open. */
.chart-plot { position: relative; flex: 1 1 auto; min-width: 0; }
.chart-plot svg { position: absolute; top: 0; left: 0; display: block; max-width: 100%; overflow: visible; }
.chart-plot .grid { stroke: var(--hairline); }
.chart-plot .grid.on-area { stroke: color-mix(in srgb, var(--orange) 30%, var(--raised)); }
.chart-plot .axis { stroke: var(--border); }
.chart-plot .leader { stroke: var(--muted); stroke-width: 1; opacity: .6; }
.chart-plot .tick { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.chart-plot .axis-title { fill: var(--muted); font-size: 12px; }
.chart-plot .pt-label { fill: var(--fg); font-size: 12px; font-weight: 500; }
/* Wide charts: a logo tile per system (frontier systems outlined, Perceptron's in orange) and a name pill beside it. */
.chart-plot .pt-tile { cursor: pointer; outline: none; }
.chart-plot .pt-tile rect { fill: var(--raised); stroke: var(--border); stroke-width: 1; }
.chart-plot .pt-tile.front rect { stroke: var(--fg); stroke-width: 2; }
.chart-plot .pt-tile path { fill: var(--fg); }
.chart-plot .pt-tile rect.logo-chip { fill: #fff; stroke: none; }
.chart-plot .pt-tile image { pointer-events: none; }
.chart-plot .pt-tile .monogram { fill: var(--muted); font-size: 13px; font-weight: 600; }
.chart-plot .pt-tile foreignObject { pointer-events: none; }
.chart-plot .pt-tile:hover rect, .chart-plot .pt-tile:focus-visible rect { stroke-width: 3; }
.chart-plot .pt-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.chart-plot .pt-pill { cursor: default; }
.chart-plot .pt-pill rect { fill: var(--raised); stroke: var(--border); stroke-width: 1; }
.chart-plot .pt-pill text { fill: var(--fg); font-size: 12px; font-weight: 500; }
.chart-plot .frontier { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 6 5; }
.chart-plot .note { fill: var(--fg); font-size: 12px; }
.chart-plot .pt { stroke: var(--raised); stroke-width: 2; cursor: pointer; outline: none; }
.chart-plot .pt.house { fill: var(--orange); }
.chart-plot .pt.other { fill: color-mix(in srgb, var(--fg) 65%, var(--raised)); }
.chart-plot .pt:hover, .chart-plot .pt:focus-visible { stroke-width: 3; }
.chart-plot .pt:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.chart-tip { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 4px; max-width: min(360px, 90%); padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--raised); box-shadow: 0 4px 12px #0000001a; font-size: 12px; line-height: 16px; color: var(--muted); pointer-events: none; overflow-wrap: anywhere; }
.chart-tip strong { color: var(--fg); font-weight: 500; }
.chart-tip .mono { font-size: 11px; }
.chart-key { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-left: 20px; }
.chart-key:empty { display: none; }
.chart-key li { overflow-wrap: anywhere; }
.chart-key .mono { font-size: 11px; white-space: nowrap; }
.chart-caption { margin: 0; max-width: 80ch; text-wrap: pretty; }

/* Table */
.table-card { overflow: hidden; }
.table-scroll { position: relative; overflow-x: auto; }
.board { width: 100%; border-collapse: collapse; }
.board th, .board td { padding: 12px 8px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: middle; white-space: nowrap; }
.board th { padding-top: 10px; padding-bottom: 10px; color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; vertical-align: bottom; }
.board th.c-score, .board th.c-number { font-family: var(--font-sans); }
/* Long metric names wrap instead of widening the table. */
.board th.c-score { white-space: normal; }
.board th.c-score .sort-button span { max-width: 112px; text-align: right; }
.self-mark { margin-left: 2px; color: var(--orange); font-family: var(--font-sans); font-size: 14px; font-weight: 700; line-height: 1; cursor: help; }
.table-legend .self-mark { margin: 0 2px 0 0; cursor: default; }
.board > * > tr > :first-child { padding-left: 20px; }
.board > * > tr > :last-child { padding-right: 20px; }
.board .c-rank { width: 44px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.board th.c-rank { font-family: var(--font-sans); }
.board .c-system { width: 99%; min-width: 220px; max-width: 420px; white-space: normal; }
.board .c-score, .board .c-number { text-align: right; font-family: var(--font-mono); }
.board td.c-score { padding-left: 16px; }
.board td.c-number, .board td.c-text, .board td.c-pill-text { color: var(--muted); }
.board td.c-pill-text, .board td.c-text { font-size: 12px; }
.board .c-toggle { width: 36px; text-align: right; }
.board .is-null { color: var(--muted); }
.sort-button { display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: transparent; color: inherit; font-weight: inherit; }
.sort-button .icon { width: 12px; height: 12px; visibility: hidden; }
.sort-button:hover, th[aria-sort] .sort-button { color: var(--fg); }
th[aria-sort] .sort-button .icon { visibility: visible; }
th[aria-sort="ascending"] .sort-button .icon { transform: rotate(180deg); }
.system-name { display: block; font-weight: 500; overflow-wrap: anywhere; text-decoration: none; }
/* A linked name is inline so only its text is the link; the rest of the cell opens the row's drawer. */
a.system-name { display: inline; }
a.system-name:hover { text-decoration: underline; }
.system-meta { display: block; color: var(--muted); font-size: 12px; line-height: 16px; margin-top: 2px; overflow-wrap: anywhere; }
.data-row { cursor: pointer; }
.data-row:hover { background: var(--hover); }
.data-row.open, .data-row.open:hover { background: var(--selected); }
.toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.toggle .icon { width: 16px; height: 16px; transition: transform .15s ease-out; }
.toggle[aria-expanded="true"] .icon { transform: rotate(90deg); }
.detail-row > td { padding: 0; background: var(--group); white-space: normal; }
/* Drawer: the row's height comes from a one-row grid, so opening can animate it from 0 to the content's height. */
.detail-drawer { display: grid; grid-template-rows: 1fr; }
.detail-clip { min-height: 0; overflow: hidden; }
.detail-pad { padding: 16px 20px 16px 72px; }
.detail-row.is-opening .detail-drawer { animation: drawer-open .22s cubic-bezier(.2, .7, .2, 1); }
.detail-row.is-opening .detail-pad { animation: drawer-content .22s ease-out; }
.data-row.is-opening .toggle .icon { animation: toggle-open .15s ease-out; }
.detail-row.is-closing .detail-drawer { animation: drawer-close .18s cubic-bezier(.4, 0, .6, 1) forwards; }
.detail-row.is-closing .detail-pad { animation: drawer-content-out .14s ease-in forwards; }
@keyframes drawer-open { from { grid-template-rows: 0fr; } }
@keyframes drawer-close { to { grid-template-rows: 0fr; } }
@keyframes drawer-content-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes drawer-content { from { opacity: 0; transform: translateY(-4px); } }
@keyframes toggle-open { from { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .is-opening .detail-drawer, .is-opening .detail-pad, .is-opening .toggle .icon { animation: none; } }
.detail-grid { display: grid; grid-template-columns: var(--detail-main, minmax(0, 1.7fr)) minmax(0, 1fr) minmax(0, .8fr); gap: 16px 40px; align-items: start; }
/* Without a Notes block (EgoHome seed rows) the Details column follows the breakdown directly instead of leaving an empty third column. */
.detail-grid:not(:has(> :nth-child(3))) { grid-template-columns: var(--detail-main, minmax(0, 1.7fr)) minmax(0, 1fr); }
.detail-grid h3 { margin-bottom: 8px; font-size: 12px; line-height: 16px; font-weight: 600; }
.detail-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-right: var(--detail-inset, 0); }
.mini-wrap { overflow-x: auto; }
.mini { width: 100%; border-collapse: collapse; }
.mini th, .mini td { padding: 6px 0 6px 12px; border-bottom: 1px solid var(--hairline); text-align: right; white-space: nowrap; }
.mini th { color: var(--muted); font-size: 12px; font-weight: 500; }
.mini td { font-family: var(--font-mono); font-size: 12px; }
.mini th:first-child, .mini td:first-child { padding-left: 0; text-align: left; font-family: var(--font-sans); font-size: 13px; white-space: normal; }
.mini th:first-child { font-size: 12px; }
.mini tbody tr:last-child td { border-bottom: 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.facts dt { color: var(--muted); font-size: 12px; line-height: 16px; }
.facts dd { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.notes { color: var(--muted); overflow-wrap: anywhere; }
.table-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 20px; }
/* Board-wide note under the table (what the cost column covers): its own full-width line below the summary. */
.table-note { flex: 0 0 100%; margin: -8px 0 0; text-align: right; }
.empty-state { padding: 40px 20px; text-align: center; border-bottom: 1px solid var(--hairline); }
.skeleton { display: block; width: 72px; height: 12px; border-radius: 4px; background: var(--tint); animation: pulse 1.4s ease-in-out infinite; }
.skeleton.wide { width: 240px; }
@keyframes pulse { 50% { opacity: .4; } }

/* Submit */
/* Your submissions: the signed-in user's own uploads (the page carries no public queue). */
.mine-head { display: flex; flex-direction: column; gap: 2px; }
.mine-list { display: flex; flex-direction: column; gap: 8px; }
.mine-item { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--group); overflow-wrap: anywhere; }
.mine-item .id-row { margin-top: 0; }
.mine-item code { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; border: 1px dashed var(--border); border-radius: 12px; background: var(--group); text-align: center; cursor: pointer; }
.dropzone .icon { width: 16px; height: 16px; color: var(--muted); }
.dropzone .mono { font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.dropzone:hover { background: var(--tint); }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field-label { font-weight: 500; }
.field-label small { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.field input, .field select { width: 100%; height: 32px; padding: 0 10px; }
.field textarea { width: 100%; min-height: 64px; padding: 8px 10px; resize: vertical; }
/* A fixed unit in front of the value (the $ on the cost field): it sits inside the box and the number starts after it. */
.input-prefix { position: relative; display: block; }
.input-prefix .prefix { position: absolute; top: 0; bottom: 0; left: 10px; display: flex; align-items: center; color: var(--muted); pointer-events: none; }
.field .input-prefix input { padding-left: 22px; }
/* One line of guidance under a field's input. */
.field-help { text-wrap: pretty; }
/* Logo upload: an input-shaped box with the file name, a small preview, and Remove; the real file input covers it. */
.file-pick { position: relative; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--raised); cursor: pointer; }
.file-pick:hover { background: var(--hover); }
.file-pick:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.file-pick input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.file-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pick .copy-button { position: relative; z-index: 1; }
.logo-preview { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border-radius: 4px; background: #fff; overflow: hidden; }
.logo-preview img { max-width: 18px; max-height: 18px; }
.field-row { display: flex; gap: 16px; }
.field-spacer { flex: 1; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-lookup { display: flex; gap: 8px; }
.status-lookup input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; }
.status-result { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--group); overflow-wrap: anywhere; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 500; }
.id-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.copy-button { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; }
.copy-button:hover { background: var(--hover); color: var(--fg); }

/* Prose (markdown copy) */
.prose { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; }
.prose h2 { margin-top: 20px; font-size: 15px; line-height: 20px; font-weight: 600; scroll-margin-top: 16px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 13px; font-weight: 600; }
.prose a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.prose code { padding: 1px 4px; border-radius: 4px; background: var(--tint); overflow-wrap: break-word; }
.prose pre code { padding: 0; border-radius: 0; background: transparent; }
.prose ol, .prose ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 20px; }
.prose ul { gap: 6px; }
.prose ul li::marker { color: var(--muted); }
.about-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.about-links > span { margin-left: 4px; }
.link-button { color: var(--fg); }
.link-button .icon { color: var(--muted); }
.link-button .icon:last-child { width: 12px; height: 12px; }
.prose ol li::marker { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.prose.steps { font-size: 13px; line-height: 18px; }
.prose.steps p { color: var(--muted); font-size: 12px; line-height: 16px; }
.prose details.disclosure { border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; }
.prose details.disclosure summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.prose details.disclosure summary::-webkit-details-marker { display: none; }
.prose details.disclosure summary::before { content: ""; width: 6px; height: 6px; margin: 0 2px 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
.prose details.disclosure[open] summary::before { transform: rotate(45deg); margin-bottom: 4px; }
.prose details.disclosure summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 4px; }
.prose .disclosure-body { display: flex; flex-direction: column; gap: 8px; padding: 0 0 12px; }
.code-block, .prose pre { margin: 0; padding: 12px; border-radius: 8px; background: var(--tint); font-family: var(--font-mono); font-size: 12px; line-height: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Contents, text and a cite rail; the text column takes the spare width. The rail drops under the text, then everything stacks. */
.about-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.about-layout:has(#citation-card.hidden) { grid-template-columns: 200px minmax(0, 1fr); }
.about-rail:has(#citation-card.hidden) { display: none; }
.about-body, .about-rail { min-width: 0; }
@media (max-width: 1240px) {
  .about-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .about-rail { grid-column: 2; }
}
.toc { display: flex; flex-direction: column; gap: 2px; }
.toc-title { margin-bottom: 6px; color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 600; }
.toc a { display: flex; align-items: center; min-height: 30px; padding: 4px 8px; border-radius: 8px; color: var(--muted); font-weight: 500; text-decoration: none; }
.toc a:hover { background: var(--hover); color: var(--fg); }
.citation-card { gap: 12px; }
.citation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Review (Perceptron reviewers only) */
.review-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.review-card { gap: 10px; padding: 16px; }
.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review-head h2 { font-size: 15px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.review-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
.review-meta a { color: var(--fg); }
.review-notes { padding: 8px 10px; border-radius: 8px; background: var(--group); overflow-wrap: anywhere; }
.review-card textarea { width: 100%; min-height: 56px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--raised); resize: vertical; }
.review-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-actions .ghost-link { margin-left: auto; }
.review-card.busy { opacity: .6; pointer-events: none; }

/* Footer */

@media (max-width: 980px) {
  .submit-layout, .about-layout, .about-layout:has(#citation-card.hidden) { grid-template-columns: minmax(0, 1fr); }
  .about-rail { grid-column: auto; }
  .detail-grid, .detail-grid:not(:has(> :nth-child(3))) { grid-template-columns: minmax(0, 1fr); }
  .detail-pad { padding-left: 20px; }
  .toc { flex-direction: row; flex-wrap: wrap; }
  .toc-title { width: 100%; }
}

/* Mobile: rows become cards. */
@media (max-width: 720px) {
  .app-header { flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; }
  .tabs { order: 3; width: 100%; }
  main { padding: 16px 16px 24px; gap: 16px; }
  .search { width: 100%; }
  .toolbar-count { margin-left: 0; width: 100%; }
  .review-list { grid-template-columns: minmax(0, 1fr); }
  .field-row { flex-direction: column; }
  .field-spacer { display: none; }

  .table-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .table-scroll { overflow: visible; }
  /* Child selectors only: the breakdown tables nested in a detail row stay real tables. */
  .board, .board > tbody { display: block; }
  .board > thead { display: none; }
  .board > tbody > tr > td { display: block; padding: 0; border: 0; white-space: normal; }
  .board > tbody > tr > td:first-child, .board > tbody > tr > td:last-child { padding: 0; }
  .board tr.data-row { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-bottom: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--raised); box-shadow: var(--shadow-card); }
  .board tr.data-row.open { background: var(--selected); border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
  .board .c-rank { position: absolute; top: 13px; left: 14px; width: auto; }
  .board .c-system { grid-column: 1 / -1; width: auto; min-width: 0; max-width: none; padding: 0 32px 0 26px !important; }
  .board .c-toggle { position: absolute; top: 8px; right: 8px; width: auto; }
  .board .c-score, .board .c-number, .board .c-text, .board .c-pill-text { text-align: left; }
  .board td.c-score { padding-left: 0; }
  .board td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-family: var(--font-sans); font-size: 12px; line-height: 16px; }
  .board td.is-empty { display: none; }
  .board tr.detail-row { display: block; margin-bottom: 8px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; }
  .board > tbody > tr.detail-row > td { padding: 0; }
  .detail-pad { padding: 14px; }
  .board tr.loading-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .board tr.loading-row .skeleton.wide { width: 160px; }
  .empty-state { border: 1px dashed var(--border); border-radius: 12px; }
  .table-footer { padding: 4px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.app-footer { --gutter: max(0px, (100% - var(--content-max)) / 2); display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; padding: 12px calc(24px + var(--gutter)); border-top: 1px solid var(--border); }
.built-by { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 720px) { .app-footer { padding: 12px 16px; } }
