@font-face { font-family: Orbitron; src: url("../assets/fonts/orbitron-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Orbitron; src: url("../assets/fonts/orbitron-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Orbitron; src: url("../assets/fonts/orbitron-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --base: #02080b;
  --surface: rgba(6, 20, 25, .95);
  --surface-2: rgba(9, 29, 35, .92);
  --surface-3: #0c242b;
  --text: #e6f1f3;
  --muted: #8aa2a8;
  --quiet: #86a2a8;
  --cyan: #65e7f4;
  --cyan-strong: #27bed2;
  --cyan-soft: rgba(101, 231, 244, .18);
  --gold: #d9b86a;
  --gold-soft: rgba(217, 184, 106, .17);
  --failure: #ff9c9c;
  --failure-strong: #ff7f7f;
  --removed-surface: #2b0d11;
  --removed-surface-active: #3d1419;
  --ok: #75dfad;
  --line: rgba(111, 193, 205, .22);
  --line-bright: rgba(101, 231, 244, .52);
  --shadow: 0 24px 64px rgba(0, 0, 0, .42);
  --body-font: "Segoe UI", Arial, sans-serif;
  --display-font: Orbitron, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; min-width: 0; background: var(--base); color: var(--text); font-family: var(--body-font); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums lining-nums; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -3; background: linear-gradient(rgba(72, 167, 181, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(72, 167, 181, .035) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, black, transparent 78%); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -4; background: radial-gradient(circle at 68% 0%, rgba(34, 144, 159, .18), transparent 34%), linear-gradient(155deg, #05151a, #02080b 54%, #061115); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { min-width: 24px; min-height: 24px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
/* biome-ignore lint/complexity/noImportantStyles: an element with the hidden attribute stays hidden even where its class sets display, as .identity-mark-media does */
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 10px; transform: translateY(-160%); padding: 10px 14px; color: #001014; background: var(--cyan); font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.noscript-note { margin: 0; padding: 16px 20px; color: var(--text); background: var(--surface-3); border-bottom: 1px solid var(--line-bright); font-size: 14px; line-height: 1.65; }
.ambient { position: fixed; z-index: -2; border-radius: 50%; filter: blur(80px); opacity: .19; pointer-events: none; }
.ambient-a { width: 420px; height: 420px; right: -170px; top: 120px; background: #137a87; }
.ambient-b { width: 340px; height: 340px; left: 5%; bottom: -190px; background: #735d2e; opacity: .11; }

.rsi-icon { --icon: none; display: inline-block; width: 1.35em; height: 1.35em; flex: 0 0 auto; background: var(--icon) center / contain no-repeat; filter: invert(85%) sepia(47%) saturate(856%) hue-rotate(150deg) brightness(102%) contrast(93%); }
.icon-citizen { --icon: url("../assets/icons/citizen.svg"); }
.icon-hangar { --icon: url("../assets/icons/flyable.svg"); }
.icon-buybacks { --icon: url("../assets/icons/bundle-star-citizen.svg"); }
.icon-ship { --icon: url("../assets/icons/ship.svg"); }
.icon-game-package { --icon: url("../assets/icons/game-package.svg"); }
.icon-gear { --icon: url("../assets/icons/gear.svg"); }
.icon-billing { --icon: url("../assets/icons/billing.svg"); }
.icon-uec { --icon: url("../assets/icons/uec.svg"); }
.icon-referrals { --icon: url("../assets/icons/referral-rewards.svg"); }
.icon-media-pending { --icon: url("../assets/icons/game-status.svg"); }
.icon-organizations { --icon: url("../assets/icons/organizations.svg"); }
.icon-lock { --icon: url("../assets/icons/lock.svg"); }
.icon-download { --icon: url("../assets/icons/download.svg"); }
.icon-filter { --icon: url("../assets/icons/filter.svg"); }
.icon-grid { --icon: url("../assets/icons/grid-view.svg"); }
.icon-list { --icon: url("../assets/icons/list-view.svg"); }
.subscriber-icon { display: inline-block; width: 38px; height: 38px; flex: 0 0 38px; color: var(--subscriber-color, var(--muted)); }
.subscriber-icon > svg { display: block; width: 100%; height: 100%; }
[data-tier="centurion"] { --subscriber-color: #54adf7; }
[data-tier="imperator"] { --subscriber-color: #dbaf70; }

.topbar { position: relative; z-index: 40; min-height: 78px; display: flex; align-items: stretch; border-bottom: 1px solid var(--line-bright); background: rgba(2, 10, 13, .94); box-shadow: 0 12px 36px rgba(0, 0, 0, .35); backdrop-filter: blur(20px); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: linear-gradient(90deg, transparent 3%, var(--cyan-strong) 20%, transparent 52%, var(--gold) 82%, transparent 97%); opacity: .35; }
.brand { min-width: 344px; display: flex; align-items: center; gap: 13px; padding: 0 27px; text-decoration: none; border-right: 1px solid var(--line); background: linear-gradient(110deg, rgba(23, 86, 96, .28), transparent); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%); }
.brand-icon { width: 40px; height: 40px; flex: 0 0 40px; filter: drop-shadow(0 0 12px rgba(101, 231, 244, .22)); }
.brand > span:last-child, .topbar-status > span:last-child { min-width: 0; display: grid; }
dialog li b { grid-column: 2; }
.brand b { font: 700 15px/1.25 var(--display-font); letter-spacing: .12em; }
.brand small, .topbar-status small { color: var(--quiet); font: 500 11px/1.35 var(--display-font); letter-spacing: .1em; }
.brand small { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.topbar-status { display: flex; align-items: center; gap: 11px; margin-left: 22px; }
.topbar-status b { font: 700 11px var(--display-font); letter-spacing: .11em; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 13px rgba(117, 223, 173, .65); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; padding: 13px 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); color: #bdd0d3; background: rgba(7, 28, 34, .8); text-decoration: none; cursor: pointer; font: 700 12px var(--display-font); letter-spacing: .04em; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.button:hover { border-color: var(--line-bright); color: var(--text); }
.button-primary { color: #001115; border-color: var(--cyan); background: linear-gradient(135deg, #90f0f7, #39c7d9); box-shadow: 0 0 24px rgba(55, 207, 224, .13); }
.button-primary:hover { color: #001115; filter: brightness(1.08); }
.button-build { color: #071317; border-color: var(--gold); background: linear-gradient(135deg, #ead08f, #c79d48); }
.button-build:hover { color: #071317; filter: brightness(1.08); }
.button-build.bridge-gated { color: var(--gold); background: var(--gold-soft); }
.button-quiet .rsi-icon { color: var(--cyan); }
.wide { width: 100%; }

.app-shell { width: min(1780px, 100%); margin: 0 auto; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.section-rail { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; padding: 26px 14px 22px; border-right: 1px solid var(--line); background: linear-gradient(90deg, rgba(3, 14, 18, .98), rgba(5, 21, 26, .85)); }
.rail-label { padding: 0 13px 13px; color: var(--quiet); font: 700 11px var(--display-font); letter-spacing: .12em; }
.rail-nav { display: grid; flex: 0 0 auto; gap: 5px; }
.rail-nav a { position: relative; display: grid; grid-template-columns: 33px 1fr; align-items: center; gap: 10px; min-height: 57px; padding: 8px 11px; color: #8ea8ad; border: 1px solid transparent; text-decoration: none; }
.rail-nav a::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; background: transparent; }
.rail-nav a:hover, .rail-nav a.active { color: var(--text); border-color: var(--line); background: linear-gradient(90deg, rgba(40, 160, 177, .17), transparent); }
.rail-nav a.active::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.rail-nav .rsi-icon { width: 28px; height: 28px; color: var(--cyan); opacity: .82; }
.identity-badge > span:last-child { min-width: 0; }
.record-button > span:last-child { min-width: 0; display: grid; }
.inspector-item > span:last-child { min-width: 0; display: grid; }
.rail-nav a > span:last-child { display: grid; gap: 2px; font-weight: 600; }
.rail-nav small { color: var(--quiet); font-size: 12px; font-weight: 400; }
.rail-evidence { position: static; margin-top: auto; padding: 14px; border-top: 1px solid var(--line); background: rgba(4, 16, 20, .65); }
.eyebrow { display: block; color: var(--cyan); font: 700 11px var(--display-font); letter-spacing: .11em; }
.rail-evidence dl { margin: 11px 0 0; }
.identity-meta div { min-width: 0; display: grid; align-content: start; gap: 5px; }
.snapshot-state div { min-width: 0; display: grid; overflow-wrap: anywhere; }
.inspector-items > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 7px; }
.subscription-details > div { min-width: 0; }
.balance-list div { display: grid; padding: 10px; border: 1px solid var(--line); }
.referral-grid > div { padding: 10px; border: 1px solid var(--line); }
.collection-toolbar > div { flex: 1 1 200px; min-width: 0; }
.media-plan > div { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.media-plan > div { border-bottom: 0; }
.community-footer > div { position: relative; z-index: 1; }
.collection-activity > div { min-width: 0; display: grid; gap: 5px; }
.ccu-step > div { min-width: 0; display: grid; gap: 6px; }
.rail-evidence dl div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 4px 0; }
.rail-evidence dd { overflow-wrap: anywhere; }
.rail-evidence dt { color: var(--quiet); font-size: 12px; }.rail-evidence dd { margin: 0; color: #b5c8cb; font-size: 12px; text-align: right; }

main { min-width: 0; padding: 24px 27px; container-type: inline-size; container-name: dashboard; }
/* Build Status is fixed to the bottom of the window. Room is kept under the footer only while it is shown. */
body:has(.parser-overlay:not([hidden])) main { padding-bottom: 110px; }
.panel, .angled-panel { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.angled-panel { clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.identity-panel { min-height: 224px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); align-items: center; gap: 28px; padding: 26px 30px; overflow: hidden; background: linear-gradient(110deg, rgba(13, 55, 65, .96), rgba(5, 21, 27, .95) 62%, rgba(39, 32, 18, .75)); }
.identity-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(101, 231, 244, .08) 1px, transparent 1px), linear-gradient(rgba(101, 231, 244, .05) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, transparent, #000 65%, transparent); }
.identity-hero-art { --hero-art: url("../assets/decor/radar.svg"); position: absolute; z-index: 0; right: 28px; top: 28px; width: 360px; height: 360px; transform: translate(50%, -50%); pointer-events: none; opacity: .18; background: var(--hero-art) center / contain no-repeat; filter: invert(85%) sepia(47%) saturate(856%) hue-rotate(150deg) brightness(102%) contrast(93%) drop-shadow(0 0 24px rgba(101, 231, 244, .24)); }
.identity-hero-art[data-hero-art="radar"] { --hero-art: url("../assets/decor/radar.svg"); }
.identity-hero-art[data-hero-art="holo-render"] { --hero-art: url("../assets/decor/holo-render.svg"); }
.identity-hero-art[data-hero-art="staff-pick"] { --hero-art: url("../assets/decor/staff-pick.svg"); }
.identity-hero-art[data-hero-art="customize"] { --hero-art: url("../assets/decor/customize.svg"); }
.identity-main, .identity-aside { position: relative; z-index: 1; }
.identity-panel { isolation: isolate; }
.identity-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 23px; min-width: 0; }
/* The avatar with Switch Account below it, centred on it; the pair keeps to the start of the card at every width. */
.identity-account-controls { min-width: 0; display: grid; justify-items: center; align-content: start; justify-self: start; gap: 12px; }
.identity-panel .identity-hero-art { transform-origin: 50% 50%; }
.hero-embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.avatar { width: 100px; height: 100px; flex: 0 0 100px; display: grid; place-items: center; position: relative; border: 1px solid var(--line-bright); background: radial-gradient(circle, rgba(101, 231, 244, .18), transparent 60%), #06171c; clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.avatar::before, .avatar::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--cyan); border-style: solid; }
.avatar::before { left: 7px; top: 7px; border-width: 1px 0 0 1px; }.avatar::after { right: 7px; bottom: 7px; border-width: 0 1px 1px 0; }
.avatar img { width: 100%; height: 100%; padding: 4px; object-fit: contain; object-position: center bottom; }
dialog li span { grid-column: 2; }
dialog li span { color: var(--muted); font-size: 11px; }
.avatar span { color: var(--cyan); font: 500 25px var(--display-font); letter-spacing: .08em; }
.identity-copy { min-width: 0; }
.identity-copy h1 { margin: 5px 0 8px; font: 500 clamp(27px, 3vw, 42px)/1.2 var(--display-font); letter-spacing: .03em; overflow-wrap: anywhere; }
.identity-title { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; margin: 0; color: #9fb5b9; font-size: 14px; }
.identity-title > span { min-width: 0; color: var(--gold); overflow-wrap: anywhere; }
.identity-title-separator { margin: 0 1px; }
.uee-record { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; max-width: 100%; }
.uee-record > span { white-space: nowrap; }
.identity-badge { display: inline-flex; align-items: flex-start; gap: 8px; max-width: 100%; overflow-wrap: anywhere; }
.identity-mark-media { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; overflow: hidden; }
.identity-badge .identity-mark-media { width: 24px; height: 24px; flex-basis: 24px; }
.identity-mark-media img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.media-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.inspector-item-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-card img { width: 48px; height: 48px; object-fit: contain; }
.sort-button img { width: 27px; height: 27px; filter: invert(85%) sepia(47%) saturate(856%) hue-rotate(150deg) brightness(102%) contrast(93%); transition: transform .18s ease; }
.community-footer img { position: relative; z-index: 1; width: 170px; height: 170px; flex: 0 0 170px; filter: none; opacity: 1; }
.collection-activity img { width: 58px; height: 72px; object-fit: contain; object-position: center bottom; }
.collection-activity-link { display: grid; place-items: center; width: 58px; height: 72px; border: 1px solid transparent; }
.collection-activity-link:hover, .collection-activity-link:focus-visible { border-color: var(--cyan); background: rgba(101, 231, 244, .08); }
.media-gallery-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.identity-badge .identity-mark-media img { padding: 0; }
.identity-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 16px 24px; margin: 18px 0 0; }
.identity-meta dt { color: var(--quiet); font: 700 11px var(--display-font); letter-spacing: .07em; text-transform: uppercase; }
.identity-meta dt, .identity-meta dd { overflow-wrap: anywhere; }
.identity-meta dd { margin: 0; color: #c6d5d7; font-size: 13px; }
.identity-organization dd { display: flex; align-items: center; gap: 8px; }
.identity-organization dd > span:last-child { min-width: 0; }
.identity-aside { min-width: 0; padding-left: 22px; border-left: 1px solid var(--line); }
.identity-panel .identity-main, .identity-panel .identity-aside { z-index: 2; }
.identity-mark-fallback { color: var(--cyan); font: 700 14px var(--display-font); }
.identity-mark-media .rsi-icon { width: 28px; height: 28px; }
.snapshot-state { min-width: 0; display: flex; align-items: center; gap: 12px; }
.state-emblem { width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; }
.snapshot-state b { font: 500 14px/1.5 var(--display-font); }.snapshot-state span { color: var(--gold); font-size: 12px; }

.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 14px 0; border: 1px solid var(--line); background: var(--line); }
.summary-strip a { min-height: 94px; display: flex; align-items: center; gap: 13px; padding: 14px 15px; background: rgba(6, 22, 27, .96); text-decoration: none; }
.summary-strip a:hover { background: rgba(13, 43, 50, .98); }
.summary-strip .rsi-icon, .currency-glyph { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; color: var(--cyan); border: 1px solid var(--line); padding: 6px; }
.currency-glyph { font: 500 17px var(--display-font); }
.summary-strip .billing-total { background: linear-gradient(135deg, rgba(14, 49, 57, .98), rgba(6, 22, 27, .96)); }
.summary-strip a > span:last-child { min-width: 0; display: grid; }
.summary-strip small { color: var(--quiet); font: 700 10px var(--display-font); letter-spacing: .07em; text-transform: uppercase; }
.summary-strip b { margin: 1px 0; font: 500 19px var(--display-font); overflow-wrap: anywhere; }
.summary-strip em { color: var(--muted); font-size: 12px; font-style: normal; }

.data-health { grid-column: 1 / -1; margin-top: 0; padding: 0; }
.data-health > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 20px; cursor: pointer; list-style: none; }
.data-health > summary::-webkit-details-marker { display: none; }
.search-field > span:first-child { color: var(--cyan); font-size: 21px; line-height: 1; }
.data-health > summary > span:first-child { display: grid; gap: 2px; }
.record-button small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.inspector-art small { position: absolute; z-index: 2; right: 9px; bottom: 8px; color: var(--gold); font: 700 8px var(--display-font); letter-spacing: .08em; }
.media-thumbnail small { position: absolute; right: 2px; bottom: 0; color: var(--muted); font-size: 8px; }
.inspector-item small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.inspector-items > small { display: block; margin-top: 6px; color: var(--quiet); font-size: 10px; }
.balance-list small { color: var(--muted); font-size: 11px; }
.overlay-header small { margin-left: 4px; padding: 3px 5px; color: var(--gold); border: 1px solid rgba(217, 184, 106, .32); font: 700 9px var(--display-font); }
.overlay-route small { grid-column: 1 / -1; color: var(--quiet); font: 700 9px var(--display-font); letter-spacing: .08em; }
.overlay-header small { min-width: 0; overflow-wrap: anywhere; }
.data-health > summary small { color: var(--cyan); font: 700 10px var(--display-font); letter-spacing: .08em; }
.button-filter b { min-width: 18px; padding: 2px 5px; color: var(--cyan); border: 1px solid var(--line); }
.record-button b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.empty-state b { color: var(--text); font: 500 14px var(--display-font); }
.inspector-item b { color: #cbdadc; font-size: 12px; overflow-wrap: anywhere; }
.inspector-note b { color: var(--gold); font-size: 12px; }
.badge-card b, .badge-card span { overflow-wrap: anywhere; }
.balance-list b { margin: 2px 0; font: 500 15px var(--display-font); }
.overlay-header b { font: 700 11px var(--display-font); letter-spacing: .08em; white-space: nowrap; }
.overlay-route b { margin-top: 2px; font: 500 15px var(--display-font); }
.collection-activity b { color: var(--text); font: 700 10px var(--display-font); letter-spacing: .05em; }
.overlay-counts b { color: #d1dfe1; }
.build-choice b { font: 500 16px var(--display-font); }
.extension-notice b { color: var(--gold); }
.data-health > summary::after { content: "+"; color: var(--cyan); font: 500 20px var(--display-font); }
.badge-panel > summary::after { content: "+"; color: var(--cyan); font: 500 19px var(--display-font); }
.detail-panel summary::after { content: "+"; margin-left: 8px; color: var(--cyan); font: 500 19px var(--display-font); }
.data-health[open] > summary::after { content: "−"; }
.health-summary-detail { color: var(--muted); font-size: 12px; text-align: right; }
.health-details { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.health-details dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 12px 0 0; border: 1px solid var(--line); }
.health-details dl > div { min-width: 0; padding: 12px; border-right: 1px solid var(--line); }
.media-plan > div:last-child { border-right: 0; }
.health-details dl > div:last-child { border-right: 0; }
.health-details dt { color: var(--quiet); font: 700 10px var(--display-font); letter-spacing: .06em; text-transform: uppercase; }
.health-details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.section-heading, .inventory-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
dialog h2 { margin: 5px 0 10px; font: 500 24px var(--display-font); }
.text-button { color: var(--cyan); border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 12px; }
.health-marker { width: 12px; height: 12px; flex: 0 0 12px; border: 2px solid currentColor; transform: rotate(45deg); }.health-marker.complete { color: var(--ok); background: var(--ok); box-shadow: 0 0 11px rgba(117, 223, 173, .25); }.health-marker.partial { color: var(--gold); }

.inventory { margin-top: 14px; padding: 22px; }
dialog p { color: var(--muted); font-size: 13px; line-height: 1.6; }
dialog h2, dialog p { overflow-wrap: anywhere; }
.inventory-heading p { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.inventory-view-tabs { align-self: center; display: flex; border: 1px solid var(--line); background: #041216; }
.inventory-view-tabs button { min-height: 40px; padding: 8px 13px; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; font: 700 11px var(--display-font); letter-spacing: .03em; }
.inventory-view-tabs button:last-child { border-right: 0; }.inventory-view-tabs button.active { color: var(--text); background: var(--cyan-soft); box-shadow: inset 0 -2px var(--cyan); }
.filter-bar { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px; border: 1px solid var(--line); background: rgba(3, 14, 18, .82); }
.search-field { min-width: 260px; flex: 1; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); background: #020b0e; }
.search-field input { width: 100%; color: var(--text); border: 0; outline: 0; background: transparent; }.search-field input::placeholder { color: var(--quiet); }
.button-filter { min-height: 38px; padding: 7px 11px; color: #a7bec2; background: #06161b; clip-path: none; }
.result-count { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.filter-panel { padding: 12px 14px; border: 1px solid var(--line); border-top: 0; background: #06161b; }
.filter-panel fieldset { margin: 0; padding: 0; border: 0; }.filter-panel legend { color: var(--quiet); font: 700 11px var(--display-font); letter-spacing: .07em; }.filter-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.filter-chip, .filter-clear { min-height: 34px; padding: 6px 10px; color: var(--muted); border: 1px solid var(--line); background: rgba(3, 13, 16, .7); cursor: pointer; }.filter-chip.active { color: var(--text); border-color: var(--cyan-strong); background: var(--cyan-soft); }.filter-clear { margin-left: auto; color: var(--gold); border-color: rgba(217, 184, 106, .3); }
.inventory-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .65fr); min-height: 410px; border: 1px solid var(--line); border-top: 0; }
/* The record list and, directly under it, its page bar. */
.inventory-list { min-width: 0; display: flex; flex-direction: column; }
.table-shell { flex: 1 1 auto; min-width: 0; max-height: 470px; overflow: auto; position: relative; background: rgba(2, 11, 14, .7); container: inventory-table / inline-size; }
table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
thead { position: sticky; z-index: 4; top: 0; }
th { padding: 10px 12px; color: #91abb0; border-bottom: 1px solid var(--line-bright); background: #06191f; text-align: left; text-transform: uppercase; font: 700 11px var(--display-font); letter-spacing: .07em; }
.inventory-sort-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: inherit; border: 0; background: transparent; cursor: pointer; text-align: left; text-transform: inherit; font: inherit; letter-spacing: inherit; }
.inventory-sort-button span { white-space: nowrap; }
.inventory-sort-icon { width: 15px; height: 15px; opacity: .42; filter: invert(85%) sepia(47%) saturate(856%) hue-rotate(150deg) brightness(102%) contrast(93%); transition: opacity .18s ease, transform .18s ease; }
.inventory-sort-button.active { color: var(--cyan); }
.inventory-sort-button:hover .inventory-sort-icon, .inventory-sort-button:focus-visible .inventory-sort-icon, .inventory-sort-button.active .inventory-sort-icon { opacity: .72; }
.inventory-sort-button.ascending .inventory-sort-icon { transform: rotate(180deg); }
th:first-child { position: sticky; z-index: 5; left: 0; min-width: 330px; }
td { height: 56px; padding: 7px 12px; color: #a9bdc1; border-bottom: 1px solid rgba(111, 193, 205, .14); background: rgba(3, 14, 17, .92); font-size: 13px; }
td:first-child { position: sticky; z-index: 2; left: 0; background: #05161b; }
.collection-table-shell th, .collection-table-shell td { position: static; min-width: 0; height: auto; padding: 12px; overflow-wrap: anywhere; }
.table-shell th:first-child, .table-shell td:first-child { position: static; width: 42%; min-width: 0; }
tbody tr.selected td:first-child { box-shadow: inset 3px 0 var(--cyan); }
tbody tr.record-ghost td:first-child { box-shadow: inset 3px 0 var(--failure-strong); }
.record-button { width: 100%; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; padding: 0; color: var(--text); border: 0; background: transparent; text-align: left; cursor: pointer; }
.record-button .row-icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--cyan); border: 1px solid var(--line); background: rgba(101, 231, 244, .05); }.record-button .rsi-icon { width: 20px; height: 20px; }.inspector-art .rsi-icon { width: 70px; height: 70px; color: rgba(101, 231, 244, .66); z-index: 1; filter: invert(85%) sepia(47%) saturate(856%) hue-rotate(150deg) brightness(102%) contrast(93%) drop-shadow(0 0 16px rgba(101, 231, 244, .22)); }.media-thumbnail .rsi-icon { width: 20px; height: 20px; }.inspector-item-media .rsi-icon { width: 23px; height: 23px; }
.record-button .row-icon.has-image { padding: 0; }
.row-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.media-label { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 7px; border: 1px solid rgba(217, 184, 106, .24); color: var(--gold); white-space: nowrap; }.media-gallery-trigger { font: inherit; background: transparent; cursor: pointer; }.media-gallery-trigger:hover, .media-gallery-trigger:focus-visible { color: var(--text); border-color: var(--gold); }
.sample-boundary { margin: 13px; padding: 11px 13px; color: var(--muted); border: 1px dashed var(--line); background: rgba(8, 29, 35, .5); font-size: 12px; }
.empty-state { min-height: 250px; display: grid; place-content: center; gap: 5px; padding: 30px; color: var(--muted); text-align: center; }

.record-inspector { min-width: 0; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 38, 46, .96), rgba(4, 17, 21, .98)); }
.inspector-art { min-height: 164px; position: relative; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle, rgba(101, 231, 244, .12), transparent 45%), linear-gradient(145deg, #0c3039, #061419); }
.inspector-art::before, .inspector-art::after { content: ""; position: absolute; width: 200px; height: 200px; border: 1px solid rgba(101, 231, 244, .1); border-radius: 50%; }.inspector-art::after { width: 150px; height: 150px; border-color: rgba(217, 184, 106, .1); }
.inspector-gallery-main { position: absolute; z-index: 1; inset: 8px 8px 52px; width: calc(100% - 16px); padding: 0; border: 0; background: transparent; cursor: zoom-in; }.inspector-image { width: 100%; height: 100%; object-fit: contain; }.inspector-gallery-thumbnails { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 7px; display: flex; gap: 5px; overflow-x: auto; margin: 0; padding: 0; list-style: none; }.inspector-gallery-thumbnails[hidden] { display: none; }
.media-thumbnail { position: relative; flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; padding: 2px; color: var(--muted); border: 1px solid var(--line); background: #061419; cursor: pointer; }.media-thumbnail.active { border-color: var(--cyan); box-shadow: inset 0 -2px var(--cyan); }.media-thumbnail.error { color: #ff9393; border-color: rgba(255, 147, 147, .65); }.detail-panel summary small { color: var(--cyan); font: 700 10px var(--display-font); letter-spacing: .09em; }.org-roster-checklist label small { color: var(--muted); }.media-thumbnail.error small { color: #ff9393; }
.inspector-body { padding: 18px; }.inspector-body h3 { margin: 5px 0; font: 500 17px/1.3 var(--display-font); }.inspector-body > p { min-height: 42px; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.inspector-body dl { margin: 0 0 13px; border-top: 1px solid var(--line); }.inspector-body dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }.inspector-body dt { color: var(--quiet); font-size: 12px; }.inspector-body dd { margin: 0; color: #c4d4d6; font-size: 12px; text-align: right; }
.inspector-wiki { min-width: 0; margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.inspector-wiki a { color: var(--cyan); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.inspector-items { margin: 13px 0; }
dialog h2, dialog form > .eyebrow { margin-right: 28px; }
.inspector-items > .eyebrow { margin-bottom: 7px; font-size: 9px; }
.inspector-item { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 7px; padding: 6px; border: 1px solid var(--line); background: rgba(2, 11, 14, .72); }
.inspector-item-media { width: 42px; height: 34px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(101, 231, 244, .16); }
.inspector-body h3, .inspector-body p, .inspector-body dd, .inspector-body .button { min-width: 0; overflow-wrap: anywhere; }
.inspector-body dl div { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.inspector-note { display: grid; gap: 3px; margin: 12px 0; padding: 10px; border-left: 2px solid var(--gold); background: var(--gold-soft); }.inspector-note span { color: #b7c7c9; font-size: 12px; }
.source-pending { display: block; width: 100%; min-height: 38px; padding: 9px 12px; color: var(--gold); border: 1px solid rgba(217, 184, 106, .3); background: rgba(217, 184, 106, .06); text-align: center; font: 700 11px var(--display-font); }

.secondary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.balance-detail { width: 100%; margin-top: 14px; }
.subscription-panel { padding: 16px 18px; margin-top: 14px; }
.subscription-panel .section-heading { gap: 12px; flex-wrap: wrap; }
.subscription-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 14px 0 0; }
.subscription-details dt { color: var(--quiet); font-size: 12px; }
.subscription-details dd { min-width: 0; min-height: 32px; margin: 5px 0 0; font: 500 16px/1.5 var(--display-font); overflow-wrap: anywhere; }
.subscription-plan { display: flex; align-items: center; gap: 10px; color: var(--subscriber-color, var(--text)); }
.subscription-plan .subscriber-icon { width: 28px; height: 28px; flex-basis: 28px; }
.subscription-amount { display: block; overflow-wrap: anywhere; }
.subscription-note { min-width: 0; color: var(--gold); font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 440px) { .subscription-details { grid-template-columns: 1fr; gap: 8px; }.subscription-panel { padding: 14px; } }
.badge-panel { margin-top: 14px; }
.badge-panel > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; }
.badge-panel > summary::-webkit-details-marker { display: none; }
.badge-panel[open] > summary::after { content: "\2212"; }
.badge-panel > summary span:first-child { display: grid; gap: 4px; }
.badge-content { display: grid; gap: 16px; padding: 0 18px 18px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.badge-item { display: grid; min-width: 0; }
.badge-card { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; color: inherit; border: 1px solid var(--line); background: rgba(3, 14, 18, .72); text-decoration: none; }
.badge-card:hover, .badge-card:focus-visible { border-color: var(--cyan); background: var(--cyan-soft); }
.badge-card span { color: var(--muted); font-size: 11px; }
.badge-empty, .badge-note { margin: 0; color: var(--muted); }
.unlockable-badges { border-top: 1px solid var(--line); padding-top: 12px; }
.unlockable-badges > summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; color: var(--muted); }
.detail-panel summary { min-height: 74px; display: grid; grid-template-columns: 43px minmax(0, 1fr) auto 24px; align-items: center; gap: 12px; padding: 12px 15px; list-style: none; cursor: pointer; }
.unlockable-badges[open] > summary { margin-bottom: 12px; }
.balance-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.balance-detail .balance-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-panel { min-width: 0; }
.detail-panel summary::-webkit-details-marker { display: none; }.detail-panel[open] summary::after { content: "−"; }
.summary-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--cyan); border: 1px solid var(--line); }.summary-icon .rsi-icon { width: 24px; height: 24px; }
.authorization-label .rsi-icon { width: 22px; height: 22px; }
.ccu-history-button .rsi-icon { width: 20px; height: 20px; }
.summary-strip a:nth-child(2) .rsi-icon, .summary-strip .billing-total .currency-glyph, .summary-strip a:nth-child(5) .currency-glyph { color: var(--gold); }
.detail-panel summary > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }.summary-total { max-width: 150px; color: var(--gold); font: 500 11px/1.5 var(--display-font); overflow-wrap: anywhere; }
.details-content { border-top: 1px solid var(--line); padding: 14px 16px; background: rgba(4, 16, 20, .7); }
.balance-list span { color: var(--quiet); font-size: 12px; }
.referral-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.collection-search span { color: var(--muted); white-space: nowrap; }.person-identity > span, .person-identity > a { min-width: 0; overflow-wrap: anywhere; }.collection-pagination > span { min-width: 0; text-align: center; overflow-wrap: anywhere; }.overlay-route span { color: var(--cyan); font-size: 11px; }.collection-activity span { color: var(--muted); font-size: 11px; }.build-choice span { color: var(--muted); font-size: 12px; line-height: 1.45; }.extension-notice span { color: var(--muted); }.referral-grid > div > span { color: var(--gold); font: 700 11px var(--display-font); letter-spacing: .05em; }.referral-grid dl { display: flex; margin: 9px 0 0; }.referral-grid dl div { flex: 1; }.referral-grid dt { color: var(--quiet); font-size: 11px; }.referral-grid dd { margin: 0; font: 500 17px var(--display-font); }
.org-content { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.org-content h3 { margin: 4px 0; font: 500 15px var(--display-font); }.org-content p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; }.offline-detail .summary-icon { color: var(--gold); }

.collection-detail { grid-column: 1 / -1; }
.export-card { grid-column: 2; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px; }
.export-card .button { width: 100%; min-width: 0; min-height: 64px; padding: 10px 13px; }
.project-support { grid-column: 1; align-self: start; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; }
.project-support p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.project-support a { color: var(--cyan); text-underline-offset: .2em; }
.project-support a:hover { color: var(--text); }
.project-support .support-thanks { margin-top: auto; padding-top: 14px; }
.project-support .support-thanks > summary { display: inline-grid; place-items: center; width: 28px; height: 24px; margin-left: -8px; cursor: pointer; list-style: none; }
.project-support .support-thanks > summary::-webkit-details-marker { display: none; }
.project-support .support-thanks > summary::before { content: ""; border: 6px solid transparent; border-top: 8px solid var(--cyan); border-bottom-width: 0; transform: rotate(180deg); }
.project-support .support-thanks > summary:hover::before { border-top-color: var(--text); }
.project-support .support-thanks[open] > summary::before { transform: none; }
.media-workflow > p { margin: 0; color: var(--muted); }
.community-footer p { max-width: 780px; margin: 0; color: var(--muted); font-size: 13px; }
.event-log p { margin: 4px 0; color: #9bb0b4; font: 11px Consolas, monospace; }
.media-gallery-viewer p { max-width: 42ch; padding: 20px; text-align: center; }
.export-messages p { margin: 0; color: var(--gold); font-size: 12px; line-height: 1.45; }
.export-footer p { flex: 1 1 140px; min-width: 0; margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.export-messages p + p { margin-top: 5px; }
.project-support .support-thanks > p { margin-top: 4px; }
.project-support .support-terms { margin-top: auto; padding-top: 14px; }
.project-support .support-thanks + .support-terms { margin-top: 6px; padding-top: 0; }
.offline-detail { grid-column: 1 / -1; align-self: start; container: offline-card / inline-size; }
.offline-detail .org-content { flex-wrap: wrap; }
.offline-detail .org-content > div { flex: 1 1 220px; min-width: 0; }
.organization-section-actions .button { min-height: 34px; padding: 7px 11px; font-size: 10px; }
.organization-data-actions { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.organization-data-actions .button { min-height: 42px; padding: 8px 14px; }
.collection-controls .button { min-width: 0; min-height: 34px; padding: 7px 9px; font-size: 10px; }
.media-controls .button { min-height: 34px; padding: 7px 9px; font-size: 10px; }
.export-footer .button { max-width: 100%; min-height: 42px; padding: 9px 13px; }
.offline-detail .org-content .button { max-width: 100%; }
.ladder-card { min-width: 0; padding: 13px; border: 1px solid var(--line); background: rgba(3, 14, 18, .78); }
.ladder-card h3 { margin: 0 0 9px; color: var(--gold); font: 500 14px var(--display-font); }
.ladder-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.ladder-actions button { min-width: 0; min-height: 58px; display: grid; gap: 2px; padding: 9px 11px; color: var(--muted); border: 1px solid var(--line); background: rgba(4, 18, 22, .8); text-align: left; cursor: pointer; }
.ladder-actions button:hover, .ladder-actions button.active { color: var(--text); border-color: var(--line-bright); background: var(--cyan-soft); }
.ladder-actions button span { font-size: 12px; }
.collection-browser { margin-top: 13px; border: 1px solid var(--line); background: rgba(2, 11, 14, .76); }
.collection-toolbar { min-height: 70px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.collection-toolbar > * { max-width: 100%; overflow-wrap: anywhere; }
.collection-toolbar h3 { margin: 3px 0 0; font: 500 16px/1.45 var(--display-font); }
.collection-search { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.collection-search input { min-width: 0; flex: 1; color: var(--text); background: rgba(2, 12, 16, .82); border: 1px solid var(--line); padding: 10px 12px; }
.referral-search { flex: 1 1 340px; max-width: 620px; padding: 0; border-bottom: 0; }
.referral-outcome { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.sort-button { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; color: var(--text); border: 1px solid var(--line); background: rgba(6, 25, 30, .9); cursor: pointer; font-weight: 700; }
.sort-button:hover { border-color: var(--line-bright); }
.sort-button.ascending img { transform: rotate(180deg); }
.outcome-label { min-height: 30px; display: inline-flex; align-items: center; padding: 5px 9px; color: var(--muted); border: 1px solid var(--line); background: rgba(5, 20, 25, .72); font-size: 11px; }
.collection-table-shell { max-height: 440px; overflow: auto; container: collection-table / inline-size; }
.collection-table-shell table { min-width: 0; table-layout: fixed; }
.collection-table-shell th { font-size: 10px; }
.collection-cell-label { display: none; }
.handle-cell { color: var(--cyan); }
.person-identity { min-width: 0; display: flex; align-items: center; gap: 8px; }
.person-link { color: inherit; text-decoration-color: var(--line-bright); text-underline-offset: .2em; }
.person-link:hover, .person-link:focus-visible { color: var(--cyan); text-decoration-color: currentColor; }
.person-avatar { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
#inspectorItemsToggle { margin-top: 8px; min-height: 36px; }
/* biome-ignore lint/complexity/noImportantStyles: .collection-table-shell td is more specific and sets height: auto; the empty referral and roster cell keeps its 90px */
.empty-table-cell { height: 90px !important; color: var(--muted); text-align: center; }
.collection-pagination { min-height: 52px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.collection-pagination button:disabled { color: var(--quiet); opacity: .45; cursor: not-allowed; }
.inventory-pagination { flex: none; }
.collection-note { margin: 0 0 12px; padding: 10px 12px; color: var(--muted); border-left: 2px solid var(--gold); background: var(--gold-soft); font-size: 13px; }
.membership-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.membership-card { min-width: 0; }
.membership-list button { width: 100%; height: 100%; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: var(--muted); border: 1px solid var(--line); background: rgba(3, 14, 18, .75); text-align: left; cursor: pointer; }
.membership-emblem { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
.membership-copy { min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.membership-list button:hover, .membership-list button.active { color: var(--text); border-color: var(--line-bright); background: var(--cyan-soft); }
.membership-list button span { font-size: 11px; }
.authorization-label { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: var(--gold); border: 1px solid transparent; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.authorization-label:hover, .authorization-label:focus-visible { color: var(--text); border-color: var(--line-bright); background: var(--cyan-soft); }
.authorization-label:disabled { color: var(--quiet); cursor: not-allowed; opacity: .65; }
.media-workflow { display: grid; gap: 14px; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.media-zip-actions { gap: 14px; }
.media-zip-loaded-state { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 12px; color: var(--gold); border: 1px solid rgba(217, 184, 106, .5); background: var(--gold-soft); font: 700 10px/1.4 var(--display-font); letter-spacing: .06em; }
.organization-summary-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.organization-section-actions { display: flex; align-items: center; gap: 6px; }
.organization-file-status { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.organization-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.organization-title-row h3 { flex: 0 1 auto; margin-right: 4px; }
.organization-selector-label { color: var(--muted); font-size: 11px; }
.detail-panel .organization-selector { position: static; }
.detail-panel .organization-selector > summary { width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0; color: var(--cyan); border: 1px solid var(--line); background: rgba(6, 25, 30, .9); cursor: pointer; list-style: none; }
.detail-panel .organization-selector > summary::-webkit-details-marker { display: none; }
.detail-panel .organization-selector > summary::after { content: "+"; margin: 0; color: inherit; font: 500 18px var(--display-font); }
.detail-panel .organization-selector[open] > summary::after { content: "−"; }
.organization-toolbar { position: relative; }
.organization-selector > .membership-list { position: absolute; z-index: 12; top: calc(100% + 7px); left: 14px; right: 14px; width: auto; max-height: 440px; overflow: auto; padding: 10px; border: 1px solid var(--line-bright); background: #071a20; box-shadow: var(--shadow); }
.organization-selector:not([open]) > .membership-list { display: none; }
.organization-toolbar > .organization-data-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
#organizations .collection-note { margin: 12px 14px; }
.status-media-content { display: grid; gap: 18px; }
.status-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.media-plan-total { color: var(--gold); font: 500 11px/1.5 var(--display-font); }
.operation-blocker { padding: 10px 12px; color: var(--gold); border: 1px solid rgba(216, 179, 91, .45); background: rgba(216, 179, 91, .08); }
.org-roster-checklist { max-height: min(52vh, 520px); overflow: auto; display: grid; gap: 8px; padding: 4px; }
.org-roster-checklist label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); }
.org-roster-checklist label span { display: grid; gap: 3px; }
.media-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); }
.media-plan dt { color: var(--quiet); font: 700 10px var(--display-font); letter-spacing: .06em; text-transform: uppercase; }
.media-plan dd { margin: 4px 0 0; color: var(--text); overflow-wrap: anywhere; }
.media-status { min-height: 1.5em; }
.media-build-note { padding: 10px 12px; border-left: 2px solid var(--cyan); background: var(--cyan-soft); }

.community-footer { min-height: 220px; display: flex; align-items: center; gap: 30px; margin-top: 18px; padding: 24px 36px; overflow: hidden; position: relative; border-top: 1px solid var(--line-bright); border-bottom: 1px solid var(--line); background: linear-gradient(110deg, rgba(10, 38, 45, .9), rgba(3, 14, 18, .96)); }
.community-footer::after { content: ""; position: absolute; right: -80px; width: 390px; height: 390px; border: 1px solid rgba(101, 231, 244, .08); border-radius: 50%; box-shadow: 0 0 0 40px rgba(101, 231, 244, .02), 0 0 0 90px rgba(101, 231, 244, .015); }
.community-footer .trademark-notice { margin-top: 11px; color: #c7d5d7; font-size: 14px; }

.parser-overlay { position: fixed; z-index: 50; right: 24px; bottom: 20px; width: min(370px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; border: 1px solid var(--line-bright); background: rgba(4, 18, 23, .97); box-shadow: 0 24px 70px rgba(0, 0, 0, .62), 0 0 28px rgba(54, 202, 219, .1); backdrop-filter: blur(16px); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.overlay-header { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 8px 9px 8px 13px; color: inherit; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(43, 160, 176, .2), transparent); }.overlay-heading { min-width: 0; display: flex; align-items: center; gap: 7px; }.overlay-window-controls { display: flex; flex: 0 0 auto; }.overlay-window-button { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; color: #a9bec2; border: 0; background: transparent; cursor: pointer; font-size: 18px; }.overlay-window-button:hover, .overlay-window-button:focus-visible { color: var(--text); background: var(--cyan-soft); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(99, 229, 242, .6); animation: pulse 2s infinite; }.pulse.idle { background: var(--quiet); animation: none; box-shadow: none; } @keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(99, 229, 242, 0); } }
.pulse.warning { background: var(--gold); }.pulse.failure { background: var(--failure-strong); }.table-shell .record-button small { overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }.ccu-steps .ccu-step span { grid-column: auto; } .parser-overlay[data-tone="failure"] .overlay-header small, .parser-overlay[data-tone="failure"] .overlay-route span { color: var(--failure); border-color: rgba(255, 127, 127, .45); }.parser-overlay[data-tone="warning"] .overlay-header small { color: var(--gold); }.parser-overlay[data-tone="success"] .overlay-header small { color: var(--cyan); }
.overlay-body { padding: 14px; }.overlay-route { display: grid; grid-template-columns: 1fr auto; align-items: end; }
.collection-activity { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 12px; padding: 9px; border: 1px solid var(--line); background: rgba(101, 231, 244, .05); }
.collection-activity.has-activity-image { grid-template-columns: 58px minmax(0, 1fr); }
.collection-activity progress { width: 100%; height: 8px; accent-color: var(--cyan); }
.request-progress { display: grid; gap: 4px; margin-top: 5px; padding-top: 7px; border-top: 1px solid var(--line); }
.request-progress progress { height: 5px; }
.collection-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.media-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.progress { height: 4px; margin: 11px 0; background: #132b31; }.progress i { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }.overlay-counts { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.event-log { max-height: 150px; overflow: auto; margin: 12px 0; padding: 8px 9px; border: 1px solid var(--line); background: #031014; }.event-log time { color: var(--quiet); margin-right: 7px; }.event-log .waiting { color: var(--gold); }.event-log .failure { color: #ff9393; }.overlay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.overlay-actions button { min-height: 36px; color: #b9cacc; border: 1px solid var(--line); background: rgba(78, 137, 147, .07); cursor: pointer; font: 700 11px var(--display-font); }.parser-overlay.minimized { width: min(340px, calc(100vw - 24px)); }.parser-overlay.minimized .overlay-body, .parser-overlay.minimized .overlay-header small { display: none; }

dialog { width: min(560px, calc(100vw - 24px)); padding: 0; color: var(--text); border: 1px solid var(--line-bright); background: #071a20; box-shadow: var(--shadow); } dialog::backdrop { background: rgba(0, 8, 11, .78); backdrop-filter: blur(5px); } dialog form { position: relative; padding: 28px; } dialog ol { list-style: none; padding: 0; counter-reset: steps; } dialog li { counter-increment: steps; display: grid; grid-template-columns: 38px 1fr; padding: 10px 0; border-top: 1px solid var(--line); } dialog li::before { content: counter(steps, decimal-leading-zero); grid-row: 1 / 3; color: var(--cyan); font: 500 12px var(--display-font); } .dialog-close { position: absolute; right: 13px; top: 11px; color: var(--muted); border: 0; background: transparent; font-size: 23px; cursor: pointer; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 12px 18px; color: var(--text); border: 1px solid var(--gold); background: rgba(8, 25, 31, .98); box-shadow: var(--shadow); font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.build-choice-grid { display: grid; gap: 10px; margin: 18px 0; }
.build-choice { min-width: 0; display: grid; gap: 5px; padding: 14px; color: var(--text); border: 1px solid var(--line-bright); background: rgba(101, 231, 244, .05); text-align: left; cursor: pointer; }
.build-choice:hover, .build-choice:focus-visible { background: var(--cyan-soft); border-color: var(--cyan); }
.build-choice:disabled { color: var(--quiet); cursor: not-allowed; opacity: .6; }
a.build-choice { text-decoration: none; }
.build-choice-install { border-color: var(--gold); }
.extension-notice { margin: 0; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid rgba(216, 179, 91, .45); background: rgba(216, 179, 91, .08); font-size: 12px; line-height: 1.45; }
.flash { animation: flash .7s ease; } @keyframes flash { 50% { box-shadow: 0 0 0 4px rgba(101, 231, 244, .45), var(--shadow); } }

.overlay-heading { flex-wrap: wrap; }
/* The Build Status header wears the look of the extension popup's approval card, which borrows the hero: the same
   gradient and grid lines, a scanning line along the top, artwork turning on the top right corner, and embers. */
.overlay-header { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(110deg, rgba(13, 55, 65, .96), rgba(5, 21, 27, .95) 62%, rgba(39, 32, 18, .78)); }
.parser-overlay.minimized .overlay-header { border-bottom: 0; }
.overlay-header::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(101, 231, 244, .08) 1px, transparent 1px), linear-gradient(rgba(101, 231, 244, .05) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000 70%, transparent); }
.overlay-header::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; pointer-events: none; background: linear-gradient(90deg, transparent, #d9b86a 35%, #65e7f4 65%, transparent); background-size: 200% 100%; animation: overlay-header-scan 3.2s linear infinite; }
/* The artwork is larger than the header and centred on its corner. This layer cuts it to the header's own box, so
   the header itself never holds more than it shows. */
.overlay-header-decor { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.overlay-header-art { position: absolute; z-index: 0; right: 18px; top: 18px; width: 210px; height: 210px; transform: translate(50%, -50%); transform-origin: 50% 50%; pointer-events: none; opacity: .2; background: url("../assets/decor/radar.svg") center / contain no-repeat; filter: invert(85%) sepia(47%) saturate(856%) hue-rotate(150deg) brightness(102%) contrast(93%) drop-shadow(0 0 16px rgba(101, 231, 244, .24)); }
.overlay-embers { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.overlay-header .overlay-heading, .overlay-header .overlay-window-controls { position: relative; z-index: 2; }
@keyframes overlay-header-scan { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pulse { flex-shrink: 0; }
.overlay-route { grid-template-columns: minmax(0, 1fr); gap: 5px; overflow-wrap: anywhere; }
.event-log { overflow-wrap: anywhere; }
dialog { max-height: calc(100dvh - 24px); overflow: auto; }
.section-heading h2, .inventory-heading h2 { margin: 4px 0 0; font: 500 20px var(--display-font); }
.subscription-panel h2 { margin: 0; }
.project-support h2 { margin: 0 0 12px; color: var(--cyan); font: 500 15px/1.4 var(--display-font); }
.community-footer h2 { max-width: 790px; margin: 6px 0; font: 500 clamp(19px, 2vw, 28px)/1.35 var(--display-font); }
.dialog-link { color: var(--cyan); text-underline-offset: .2em; }
.dialog-close { min-width: 44px; min-height: 44px; right: 5px; top: 5px; }
.media-gallery-dialog { width: min(980px, calc(100vw - 24px)); }.media-gallery-dialog form { padding: 22px; }.media-gallery-viewer { min-height: min(58vh, 620px); display: grid; place-items: center; margin: 14px 0 10px; border: 1px solid var(--line); background: #031014; }.media-gallery-viewer a { width: 100%; height: min(58vh, 620px); display: grid; place-items: center; cursor: zoom-in; }.media-gallery-thumbnails { display: flex; gap: 7px; overflow-x: auto; margin: 0; padding: 4px 0 12px; list-style: none; }
/* A thumbnail is a list item inside the gallery dialog, not one of the numbered steps that dialogs list. */
.media-gallery-thumbnails > .media-thumbnail-item { display: block; padding: 0; border: 0; counter-increment: none; }
.media-gallery-thumbnails > .media-thumbnail-item::before { content: none; }.media-gallery-thumbnails .media-thumbnail { flex-basis: 62px; width: 62px; height: 62px; }
.toast { width: max-content; max-width: calc(100vw - 24px); overflow-wrap: anywhere; }

.export-dialog { width: min(480px, calc(100vw - 24px)); }
.export-dialog form { padding: 20px; }
.export-dialog h2 { margin: 0 34px 18px 0; font-size: 20px; line-height: 1.3; }
.export-fields { display: grid; gap: 13px; }
.export-field { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.export-field select { width: 100%; min-width: 0; min-height: 40px; padding: 7px 9px; color: var(--text); border: 1px solid var(--line-bright); border-radius: 0; background: #071a20; font: 13px var(--body-font); }
.export-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#exportInventoryOptions { grid-template-columns: minmax(105px, .75fr) minmax(0, 1.25fr); }
.export-custom { min-width: 0; margin: 0; padding: 0; border: 0; }
.export-custom legend { margin-bottom: 5px; padding: 0; color: var(--muted); font-size: 12px; }
.export-checkboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 5px 10px; }
.export-checkboxes label { min-width: 0; min-height: 36px; display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 13px; cursor: pointer; }
.export-checkboxes input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--cyan); }
.export-messages { margin-top: 13px; padding: 9px 11px; border-left: 2px solid var(--gold); background: var(--gold-soft); overflow-wrap: anywhere; }
.export-messages .export-error { color: var(--text); }
.export-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); }
.export-footer .button:disabled { cursor: not-allowed; opacity: .5; }
@media (max-width: 420px) {
  .export-card { grid-template-columns: minmax(0, 1fr); }
  .export-dialog form { padding: 16px; }
  #exportInventoryOptions { grid-template-columns: minmax(0, 1fr); }
  .export-footer .button { width: 100%; }
}
@media (max-height: 420px) {
  .export-dialog form { padding-top: 14px; padding-bottom: 14px; }
  .export-dialog h2 { margin-bottom: 11px; }
  .export-fields { gap: 8px; }
  .export-footer { margin-top: 11px; padding-top: 10px; }
}

@media (max-width: 1220px) {
  .topbar-status { display: none; }
  .summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .health-details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health-details dl > div:nth-child(2) { border-right: 0; }
}

@media (max-width: 1400px) {
  .topbar { flex-wrap: wrap; min-height: 0; }
  .brand { min-height: 72px; }
  .top-actions { flex: 1; justify-content: flex-end; flex-wrap: wrap; }
  .inventory-heading { flex-direction: column; }
  .inventory-view-tabs { width: 100%; }
  .inventory-view-tabs button { flex: 1; }
  .filter-bar { flex-wrap: wrap; }
  .search-field { min-width: 100%; }
  .result-count { width: 100%; margin-left: 0; white-space: normal; }
  .inventory-layout { grid-template-columns: 1fr; }
  .record-inspector { border-left: 0; border-top: 1px solid var(--line); }
  .inspector-art { min-height: 164px; }
}

@media (max-width: 980px) {
  .project-support, .offline-detail, .data-health, .export-card { grid-column: 1 / -1; }
  html { scroll-padding-top: 130px; }
  .brand { min-width: 300px; }
  .app-shell { display: block; }
  .section-rail { position: sticky; z-index: 30; top: 0; width: 100%; height: auto; display: block; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
  .rail-label, .rail-evidence { display: none; }
  .rail-nav { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rail-nav a { min-width: 0; grid-template-columns: 23px minmax(0, 1fr); min-height: 48px; padding: 7px 10px; }
  .rail-nav a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .rail-nav .rsi-icon { width: 20px; height: 20px; }
  .rail-nav small { display: none; }
  main { padding: 18px 14px; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-heading { flex-direction: column; }.inventory-view-tabs { width: 100%; }.inventory-view-tabs button { flex: 1; }
  .filter-bar { flex-wrap: wrap; }.search-field { min-width: 100%; }.result-count { width: 100%; margin-left: 0; }
  .inventory-layout { grid-template-columns: 1fr; }.record-inspector { border-left: 0; border-top: 1px solid var(--line); }.inspector-art { min-height: 164px; }
  .secondary-grid { grid-template-columns: 1fr; }.community-footer { padding: 24px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 184px; }
  body { font-size: 15px; }.brand { width: 100%; min-width: 0; }.top-actions { justify-content: flex-start; padding: 10px 14px 14px; }
  .rail-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-panel { padding: 21px; }.identity-main { grid-template-columns: auto minmax(0, 1fr); gap: 16px; }.avatar { width: 72px; height: 72px; flex-basis: 72px; }.identity-meta { gap: 12px 20px; }
  .summary-strip { grid-template-columns: 1fr; }.summary-strip a { min-height: 76px; }
  .data-health > summary { grid-template-columns: 1fr auto; }.health-summary-detail { grid-column: 1 / -1; text-align: left; }.health-details dl, .media-plan { grid-template-columns: 1fr; }.media-plan > div, .health-details dl > div { border-right: 0; border-bottom: 1px solid var(--line); }.media-plan > div:last-child, .health-details dl > div:last-child { border-bottom: 0; }.inventory { padding: 15px; }.filter-bar { padding: 8px; }.button-filter { flex: 1; }.filter-clear { margin-left: 0; }
  th:first-child { min-width: 220px; }.record-button b, .record-button small { overflow: visible; white-space: normal; }.record-button small { line-height: 1.25; }
  .secondary-grid { gap: 9px; }.detail-panel summary { grid-template-columns: 39px minmax(0, 1fr) 24px; }.summary-total { grid-column: 2; }.detail-panel summary::after { grid-column: 3; grid-row: 1 / 3; }#organizations .organization-summary-controls { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }#organizations .organization-summary-controls .summary-total { grid-column: auto; }.balance-list, .balance-detail .balance-list, .referral-grid, .membership-list { grid-template-columns: 1fr; }.org-content { align-items: flex-start; flex-direction: column; }.collection-toolbar { align-items: flex-start; flex-direction: column; }.referral-search, .sort-button { width: 100%; max-width: none; }.sort-button { justify-content: center; }
  .health-summary-detail { grid-column: 2; text-align: left; }.organization-title-row, .organization-data-actions { width: 100%; }.organization-data-actions .button { flex: 1; }.organization-selector[open] { flex: 1 1 100%; width: 100%; }.detail-panel .organization-selector > summary { display: inline-flex; grid-template-columns: none; }.detail-panel .organization-selector > summary::after { grid-column: auto; grid-row: auto; }.organization-selector > .membership-list { position: static; width: 100%; max-height: 360px; margin-top: 7px; }.referral-search, .sort-button { width: 100%; max-width: none; }
  .community-footer { align-items: flex-start; flex-direction: column; }.community-footer img { width: 140px; height: 140px; flex-basis: 140px; }.parser-overlay:not(.minimized) { left: 12px; right: 12px; bottom: 12px; width: auto; }.parser-overlay.minimized { right: 12px; bottom: 12px; }.overlay-actions button { min-height: 44px; }
}

@media (max-width: 480px) {
  .brand { padding-right: 18px; padding-left: 18px; }
  .brand-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .brand b { font-size: 13px; letter-spacing: .08em; }
  .brand small { font-size: 9px; letter-spacing: .06em; }
  .top-actions { width: 100%; margin-left: 0; }
  .top-actions .button { flex: 1 1 100%; }
  .identity-main { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .identity-copy { width: 100%; min-width: 0; }
  .identity-copy h1 { font-size: 27px; overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .parser-overlay.minimized { left: 12px; right: 12px; width: auto; max-width: none; }
}

@media (max-width: 640px) {
  .collection-toolbar > div { flex-basis: auto; }
  .collection-pagination { gap: 8px 14px; }
  .collection-pagination > span { text-align: center; }
}

@media (max-width: 980px) and (max-height: 500px) {
  html { scroll-padding-top: 16px; }
  .section-rail { position: static; }
}

@container offline-card (max-width: 500px) {
  .offline-detail summary { grid-template-columns: 39px minmax(0, 1fr) 24px; }
  .offline-detail .summary-total { grid-column: 2; max-width: none; }
  .offline-detail summary::after { grid-column: 3; grid-row: 1 / 3; }
}

@container collection-table (max-width: 680px) {
  .collection-table-shell table, .collection-table-shell tbody { display: block; }
  .collection-table-shell thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .collection-table-shell tr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; padding: 8px 12px; gap: 6px 14px; border-bottom: 1px solid var(--line); }
  .collection-table-shell td { grid-column: span 2; padding: 0; border: 0; background: transparent; }
  .collection-table-shell td:nth-child(1), .collection-table-shell td:nth-child(2) { grid-column: span 3; }
  .collection-table-shell td:last-child:nth-child(3), .collection-table-shell .empty-table-cell { grid-column: 1 / -1; }
  .collection-cell-label { display: inline; flex: 0 0 auto; color: var(--quiet); font-size: 11px; white-space: nowrap; }
  .collection-table-shell td:nth-child(-n+2) .collection-cell-label { display: none; }
  .collection-table-shell td:nth-child(n+3) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
  .collection-cell-value { min-width: 0; overflow-wrap: anywhere; }
}

@container collection-table (max-width: 360px) {
  .collection-table-shell td:nth-child(3) { grid-column: span 4; }
  .collection-table-shell td:nth-child(4) { grid-column: span 2; }
  .collection-table-shell td:last-child { grid-column: 1 / -1; }
}

@container collection-table (max-width: 260px) {
  .collection-table-shell td:nth-child(1), .collection-table-shell td:nth-child(2), .collection-table-shell td:nth-child(n+3) { grid-column: 1 / -1; }
  .collection-table-shell tr:has(.person-avatar:not([hidden])) td:nth-child(2) { padding-left: 40px; }
}

/* Reflow components by their actual content width, including browser zoom. */
@container dashboard (max-width: 1000px) {
  .identity-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .identity-aside { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

.table-shell table { min-width: 0; table-layout: fixed; }
.table-shell th, .table-shell td { min-width: 0; overflow-wrap: anywhere; padding-left: 10px; padding-right: 10px; }
tbody tr:hover td, tbody tr.selected td { background: #0b2930; }
/* A record RSI no longer lists, with no Hangar Log entry that accounts for it. */
tbody tr.record-ghost { position: relative; }
tbody tr.record-ghost td { padding-top: 43px; }
tbody tr.record-ghost td, tbody tr.record-ghost td:first-child { background: var(--removed-surface); }
tbody tr.record-ghost:hover td, tbody tr.record-ghost.selected td { background: var(--removed-surface-active); }
.record-warning { position: absolute; z-index: 3; top: 8px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: center; min-height: 27px; padding: 3px 9px; color: var(--failure); border: 1px solid var(--failure-strong); background: rgba(39, 8, 12, .58); font: 700 11px var(--display-font); letter-spacing: .08em; text-align: center; white-space: nowrap; }
.record-warning::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--failure-strong); }
.inventory-col-record { width: auto; }
.inventory-col-category { width: 8.75rem; }
.inventory-col-value { width: 8.5rem; }
.inventory-col-date { width: 6.5rem; }
.inventory-col-media { width: 7rem; }
.table-shell .record-button { min-width: 0; grid-template-columns: 34px minmax(0, 1fr); min-height: 44px; }
.table-shell .media-label { max-width: 100%; white-space: normal; }
.inventory-amount { color: var(--text); font-variant-numeric: tabular-nums; }
.cell-label { display: none; }

@container inventory-table (max-width: 680px) {
  .table-shell table, .table-shell tbody { display: block; }
  .table-shell colgroup { display: none; }
  .table-shell thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-shell tr { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, .85fr); border-bottom: 1px solid var(--line); }
  .table-shell td { width: auto; height: auto; border: 0; padding: 6px 10px 10px; }
  .table-shell td:first-child { width: auto; grid-column: 1 / -1; padding-top: 10px; padding-bottom: 6px; }
  .table-shell tr.record-ghost { padding-top: 36px; }
  .table-shell tr.record-ghost td { padding-top: 6px; }
  .table-shell tr.record-ghost td:first-child { padding-top: 10px; }
  .cell-label { display: block; margin-bottom: 2px; color: var(--quiet); font-size: 11px; }
}

@container inventory-table (max-width: 420px) {
  .table-shell tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The approved B2 warning at the top of Build Status. */
.parser-overlay { --band-line: #ff8a5c; --band-fill: rgba(255, 106, 61, .45); --band-glow: rgba(255, 106, 61, .75); --band-text: #ffc6a8; --band-plate: rgba(20, 8, 5, .96); }
.caution-tape { display: none; }
.caution-tape.is-active { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 34px auto; place-items: center; min-height: 34px; padding: 4px 12px 5px; overflow: hidden; pointer-events: none; border-block: 2px solid var(--band-line); background: repeating-linear-gradient(0deg, rgba(255, 106, 61, .07) 0 1px, transparent 1px 3px), rgba(22, 7, 3, .8); box-shadow: 0 0 10px var(--band-glow), inset 0 0 12px rgba(255, 106, 61, .28); }
.caution-tape.is-active::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 4px; height: 34px; background: linear-gradient(135deg, transparent 0 6%, var(--band-line) 6% 9%, var(--band-fill) 9% 35%, var(--band-line) 35% 38%, transparent 38% 56%, var(--band-line) 56% 59%, var(--band-fill) 59% 85%, var(--band-line) 85% 88%, transparent 88% 100%) 0 0 / 40px 40px; filter: drop-shadow(0 0 3px var(--band-glow)); animation: caution-band-bars 1.4s linear infinite; }
@keyframes caution-band-bars { to { background-position: 40px 0; } }
.caution-tape-word { display: none; }
.caution-tape.is-active .caution-tape-word { position: relative; z-index: 1; display: grid; place-items: center; grid-row: 1; align-self: stretch; padding: 0 14px 0 calc(14px + .16em); background: repeating-linear-gradient(0deg, rgba(255, 106, 61, .07) 0 1px, transparent 1px 3px), var(--band-plate); color: rgba(255, 106, 61, .28); -webkit-text-stroke: 1px var(--band-line); font: 700 22px/1 var(--display-font); letter-spacing: .16em; text-shadow: 0 0 8px var(--band-glow); }
.caution-tape-text { position: relative; z-index: 1; grid-row: 2; margin-top: 5px; padding: 2px 12px; color: var(--band-text); font: 700 13px/1.35 var(--display-font); letter-spacing: .12em; text-align: center; text-transform: uppercase; text-shadow: 0 0 4px var(--band-glow), 0 0 10px rgba(255, 106, 61, .45); }

/* Build Status around the tape: the warning sentence wraps at any zoom, focused controls stay clear of the tape,
   unavailable starts keep the half-opacity, not-allowed look while they stay focusable, and warning prose and warning
   log rows are at least 13 px. */
.caution-tape-text { max-width: 100%; overflow-wrap: anywhere; }
.parser-overlay.caution-active { scroll-padding-top: 96px; }
.button[aria-disabled="true"], .build-choice[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.parser-overlay .overlay-route span[data-prose="warning"] { font-size: 13px; }
.event-log p.waiting { font-size: 13px; }

/* The notice that RSI changed a page the parser reads: it asks the user to report it on GitHub. */
.parser-change-notice { display: grid; gap: 10px; margin-bottom: 12px; }
.parser-change-entry { padding: 10px 12px; border: 1px solid var(--band-line); border-left-width: 4px; overflow-wrap: anywhere; }
.parser-change-entry b { display: block; font: 700 13px/1.35 var(--display-font); letter-spacing: .12em; color: var(--band-text); }
.parser-change-notice .parser-change-entry p { margin: 6px 0 0; font-size: max(13px, 1em); }
.parser-change-technical { font-family: ui-monospace, monospace; }
.parser-change-entry a + a { margin-left: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    /* biome-ignore lint/complexity/noImportantStyles: with reduced motion every animation ends at once, whatever rule sets its duration; * has no specificity */
    animation-duration: .01ms !important;
    /* biome-ignore lint/complexity/noImportantStyles: with reduced motion no animation repeats, whatever rule sets its count; * has no specificity */
    animation-iteration-count: 1 !important;
    /* biome-ignore lint/complexity/noImportantStyles: with reduced motion every transition is immediate, whatever rule sets its duration; * has no specificity */
    transition-duration: .01ms !important;
  }
  .collection-activity img { display: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(190, 239, 245, .55); --line-bright: #8ff4ff; --muted: #bed0d3; --quiet: #9fb7bc; }
  .panel, .angled-panel, .summary-strip, .table-shell, .record-inspector { box-shadow: none; }
}

@media (forced-colors: active) {
  :root { --text: CanvasText; --muted: CanvasText; --quiet: CanvasText; --cyan: LinkText; --gold: Highlight; --line: CanvasText; --line-bright: Highlight; }
  body, .topbar, .section-rail, .panel, .angled-panel, .record-inspector, td, th, .parser-overlay, .overlay-header, dialog { background: Canvas; color: CanvasText; }
  .overlay-header::before, .overlay-header::after, .overlay-header-decor, .overlay-embers { display: none; }
  .rsi-icon { background: currentColor; filter: none; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; forced-color-adjust: auto; }
  .rail-nav a.active, .inventory-view-tabs button.active, tbody tr.selected td { border-color: Highlight; box-shadow: inset 3px 0 Highlight; }
  .health-marker, .status-dot, .pulse, .record-warning::before { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
  :focus-visible { outline: 3px solid Highlight; }
  .caution-tape.is-active::before { display: none; }
  .caution-tape.is-active { border-block: 3px solid CanvasText; background: Canvas; }
  .caution-tape-text, .caution-tape.is-active .caution-tape-word { color: CanvasText; -webkit-text-stroke: 0; }
}

/* Upgrade history stays alongside the record, with independent selection controls. */
.icon-computer { --icon: url("../assets/icons/computer.svg"); }
.record-entry { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.record-entry > .record-button { flex: 1; min-width: 0; }
.ccu-history-button { flex: 0 0 34px; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 6px; border: 1px solid var(--line-bright); background: rgba(101, 231, 244, .07); color: var(--cyan); cursor: pointer; }
.ccu-history-button:hover { background: rgba(101, 231, 244, .18); }
.inspector-title-row { display: flex; align-items: flex-start; gap: 10px; }
.inspector-title-row h3 { flex: 0 1 auto; min-width: 0; }
.ccu-dialog { width: min(900px, calc(100vw - 24px)); }
.ccu-dialog form { padding: 22px; }
.ccu-dialog h2 { font-size: 22px; }
.ccu-dialog .ccu-pledge-name { margin: 0 30px 14px 0; color: var(--text); font-size: 14px; }
.ccu-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.ccu-summary b { margin-left: 6px; color: var(--text); font-variant-numeric: tabular-nums; }
.data-health > summary b { font: 500 17px var(--display-font); }
.inventory-view-tabs button b { margin-left: 6px; color: var(--quiet); }
.detail-panel summary b { overflow-wrap: anywhere; font-size: 13px; }
.ladder-actions button b { color: var(--cyan); font: 500 18px var(--display-font); }
.membership-list button b { overflow-wrap: anywhere; }
.membership-list button b { font-size: 14px; }
.table-shell .record-button b { overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.ccu-steps .ccu-step b { grid-column: auto; }
.inventory-view-tabs button.active b { color: var(--cyan); }
.parser-overlay.minimized .overlay-header b { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.ccu-steps { margin: 14px 0; }
.ccu-steps .ccu-step { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1.2fr) minmax(100px, .65fr) minmax(82px, .55fr) minmax(94px, .6fr); align-items: start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ccu-steps .ccu-step + .ccu-step { border-top: 0; }
.ccu-steps .ccu-step::before { grid-column: 1; grid-row: 1; padding-top: 23px; }
.ccu-steps .ccu-step .ccu-label { font-size: 11px; color: var(--muted); }
.ccu-value { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ccu-cost, .ccu-total { text-align: right; font-variant-numeric: tabular-nums; }
.ccu-total .ccu-value { color: var(--gold); }
@media (max-width: 760px) {
  .ccu-dialog form { padding: 18px; }
  .ccu-steps .ccu-step { grid-template-columns: 22px repeat(6, minmax(0, 1fr)); gap: 14px 10px; }
  .ccu-steps .ccu-step::before { grid-row: 1 / 3; }
  .ccu-from { grid-column: 2 / span 3; }
  .ccu-to { grid-column: 5 / span 3; }
  .ccu-applied { grid-column: 2 / span 2; }
  .ccu-cost { grid-column: 4 / span 2; }
  .ccu-total { grid-column: 6 / span 2; }
  .ccu-cost, .ccu-total { text-align: left; }
}
@media (max-width: 440px) {
  .ccu-steps .ccu-step { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr); }
  .ccu-steps .ccu-step::before { grid-row: 1 / 4; }
  .ccu-from { grid-column: 2; }
  .ccu-to { grid-column: 3; }
  .ccu-step > .ccu-applied { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .ccu-cost { grid-column: 2; }
  .ccu-total { grid-column: 3; }
}

/* Switch Account: a menu button below the account avatar. Its menu opens in the top layer, so the account card does
   not clip it; the dashboard places it below the button, centred on it, inside the viewport. */
.switch-account-button { white-space: nowrap; }
.switch-account-arrow { width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.switch-account-button[aria-expanded="true"] .switch-account-arrow { transform: translateY(2px) rotate(225deg); }
.account-popup { position: fixed; z-index: 60; inset: auto; margin: 0; width: min(320px, calc(100vw - 24px)); max-height: min(420px, calc(100vh - 120px)); overflow-y: auto; padding: 6px; color: var(--text); border: 1px solid var(--line-bright); background: #071a20; box-shadow: var(--shadow); }
.account-menu, .account-menu-accounts { display: grid; gap: 2px; }
.account-menu-item { position: relative; width: 100%; min-height: 44px; display: grid; gap: 2px; align-content: center; padding: 8px 10px 8px 30px; color: var(--text); border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; font: 600 14px/1.3 var(--body-font); overflow-wrap: anywhere; }
.account-menu-item:hover, .account-menu-item:focus-visible { border-color: var(--cyan); background: var(--cyan-soft); }
.account-menu-item[aria-checked="true"]::before { content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 11px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: translateY(-65%) rotate(45deg); }
.account-menu-item[aria-checked="true"] .account-menu-label { color: var(--cyan); }
.account-menu-detail { color: var(--muted); font-size: 13px; font-weight: 500; }
.account-menu-item[aria-disabled="true"] { color: var(--quiet); cursor: not-allowed; }
.account-menu-separator { height: 1px; margin: 4px 0; border: 0; background: var(--line); }
.account-menu-status { margin: 4px 4px 8px; color: var(--gold); font-size: 14px; line-height: 1.4; }
.account-empty-state { margin: 14px 0; padding: 22px 24px; }
.account-empty-state h2 { margin: 0 0 8px; font: 700 17px/1.35 var(--display-font); letter-spacing: .02em; }
.account-empty-detail { margin: 0; color: var(--muted); }
/* An added account without a backup shows its handle and the empty state, and no account section. */
body[data-account-state="identity-only"] :is(.summary-strip, #subscriptions, #inventory, .secondary-grid, #exportData, .rail-nav, .identity-title, .identity-meta, .identity-aside) { display: none; }
@media (forced-colors: active) { .account-menu-item[aria-checked="true"]::before { border-color: CanvasText; } }

/* Beside an image run's Cancel: turns while the run is alive, in every phase; still under reduced motion. */
.media-busy { width: 18px; height: 18px; flex: 0 0 18px; align-self: center; border: 2px solid var(--line-bright); border-top-color: var(--cyan); border-radius: 50%; animation: media-busy-turn .9s linear infinite; }
@keyframes media-busy-turn { to { transform: rotate(360deg); } }
.media-controls #mediaCancelOverlay[aria-disabled="true"] { color: var(--quiet); cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .media-busy { animation: none; border-color: var(--cyan); } }
@media (forced-colors: active) { .media-busy { border-color: CanvasText; border-top-color: Highlight; } }

/* The inventory as cards: a picture with the title over its foot. The open card's details sit under its row. */
.inventory-layout.cards-layout { grid-template-columns: minmax(0, 1fr); }
.inventory-layout.cards-layout .table-shell { max-height: min(80vh, 900px); }
.inventory-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 0; padding: 12px; list-style: none; }
.inventory-card { position: relative; min-width: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: rgba(3, 13, 16, .7); }
.inventory-card:hover { border-color: var(--line-bright); }
.inventory-card:has(.inventory-card-select:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.inventory-card.expanded { border-color: var(--cyan-strong); box-shadow: 0 0 0 1px var(--cyan-strong), 0 0 18px rgba(101, 231, 244, .2); }
.inventory-card.record-ghost { border-color: var(--failure-strong); }
.inventory-card .record-warning { pointer-events: none; }
.inventory-card-select { position: absolute; inset: 0; display: block; width: 100%; padding: 0; color: var(--text); border: 0; background: transparent; text-align: left; cursor: pointer; }
.inventory-card-select:focus-visible { outline: 0; }
.inventory-card-art { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 18%; background: rgba(101, 231, 244, .05); }
.inventory-card-art.has-image { padding: 0; }
/* biome-ignore lint/style/noDescendingSpecificity: .summary-strip a:nth-child(2) .rsi-icon is an icon of the summary strip, never one of a card */
.inventory-card-art .rsi-icon { width: 46px; height: 46px; }
.inventory-card-image { width: 100%; height: 100%; object-fit: cover; }
.inventory-card-title { position: absolute; right: 0; bottom: 0; left: 0; display: -webkit-box; overflow: hidden; padding: 40px 12px 10px; background: linear-gradient(180deg, rgba(2, 8, 11, 0), rgba(2, 8, 11, .8) 48%, rgba(2, 8, 11, .94)); font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.inventory-card-detail { position: relative; grid-column: 1 / -1; min-width: 0; border: 1px solid var(--cyan-strong); background: linear-gradient(180deg, rgba(11, 38, 46, .96), rgba(4, 17, 21, .98)); container: card-detail / inline-size; }
.inventory-card-detail::before { content: ""; position: absolute; top: -8px; left: calc(var(--pointer-left, 50%) - 7px); width: 14px; height: 14px; border-top: 1px solid var(--cyan-strong); border-left: 1px solid var(--cyan-strong); background: #0b262e; transform: rotate(45deg); }
.inventory-card-detail-bar { display: flex; justify-content: flex-end; padding: 6px 10px 0; }
.inventory-card-close { min-height: 32px; padding: 4px 8px; font-size: 13px; }
.inventory-card-detail .record-inspector { border: 0; background: transparent; }
@container card-detail (min-width: 720px) { .inventory-card-detail .record-inspector { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .inventory-card-detail .inspector-art { border-right: 1px solid var(--line); border-bottom: 0; } }
@media (forced-colors: active) { .inventory-card.expanded, .inventory-card-detail { outline: 3px solid Highlight; outline-offset: -3px; } }

/* A coupon code in a title: blurred until it is clicked, then the code. In the inspector's title it is a button. */
.coupon-code { cursor: pointer; white-space: nowrap; }
button.coupon-code { min-width: 0; min-height: 0; padding: 0; border: 0; color: inherit; background: none; font: inherit; letter-spacing: inherit; text-align: inherit; }
.coupon-code-mask { display: inline-block; letter-spacing: 0; }
.coupon-code-mask::before { content: "XXXXXXXXXX"; color: var(--gold); font-family: Consolas, "Cascadia Mono", monospace; filter: blur(4px); }
.coupon-code-value { color: var(--gold); font-family: Consolas, "Cascadia Mono", monospace; letter-spacing: .04em; text-decoration: underline dotted rgba(217, 184, 106, .7); text-underline-offset: 3px; }
.coupon-code:hover .coupon-code-mask { filter: brightness(1.25); }
