:root {
    color-scheme: dark;
    --bg-0: #01050a;
    --bg-1: #03101a;
    --bg-2: #071824;
    --panel: rgba(4, 15, 24, 0.92);
    --panel-strong: rgba(3, 12, 20, 0.97);
    --panel-soft: rgba(9, 27, 41, 0.78);
    --line: rgba(31, 196, 232, 0.24);
    --line-strong: rgba(31, 196, 232, 0.55);
    --text: #f3f8fb;
    --muted: #8fa8b5;
    --muted-2: #647d8a;
    --gold: #e9bd67;
    --green: #55e77d;
    --amber: #ffc44e;
    --red: #ff6f7c;
    --archived: #93b2c8;
    --purple: #be72ff;
    --beam: #14dfff;
    --beam-rgb: 20, 223, 255;
    --beam-soft: 0.117;
    --beam-mid: 0.273;
    --beam-strong: 0.553;
    --radius: 12px;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
    --header-height: 104px;
}

html[data-beam="purple"] {
    --beam: #b96cff;
    --beam-rgb: 185, 108, 255;
}

html[data-beam="gold"] {
    --beam: #ffbe45;
    --beam-rgb: 255, 190, 69;
}

html[data-beam="green"] {
    --beam: #54e86f;
    --beam-rgb: 84, 232, 111;
}

html[data-beam="white"] {
    --beam: #f2fbff;
    --beam-rgb: 242, 251, 255;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-0);
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 18% -4%, rgba(var(--beam-rgb), var(--beam-soft)), transparent 30rem),
        radial-gradient(circle at 92% 10%, rgba(var(--beam-rgb), calc(var(--beam-soft) * 0.7)), transparent 28rem),
        linear-gradient(145deg, #010409 0%, #03101a 50%, #01050a 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body::before {
    content: "";
    position: fixed;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--beam-rgb), 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--beam-rgb), 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
    content: "";
    position: fixed;
    z-index: -1;
    left: 50%;
    bottom: -26vh;
    width: min(92vw, 1300px);
    height: 62vh;
    pointer-events: none;
    transform: translateX(-50%) perspective(520px) rotateX(64deg);
    transform-origin: bottom center;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(var(--beam-rgb), 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--beam-rgb), 0.24) 1px, transparent 1px);
    background-size: 64px 48px;
    mask-image: linear-gradient(to top, black 20%, transparent 76%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button,
select {
    color: inherit;
}

button {
    border: 0;
}

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.08;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 7px;
    font-size: 1.15rem;
}

code {
    color: #d6eff8;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.shell {
    width: min(1480px, calc(100% - 40px));
    margin-inline: auto;
}

main {
    min-height: calc(100vh - var(--header-height) - 44px);
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--beam);
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(var(--beam-rgb), var(--beam-mid));
}

.muted {
    color: var(--muted);
}

.grid-panel {
    position: relative;
    border: 1px solid rgba(var(--beam-rgb), 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(var(--beam-rgb), 0.045), transparent 24%),
        linear-gradient(180deg, rgba(5, 18, 29, 0.96), rgba(2, 10, 17, 0.96));
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.3),
        inset 0 0 32px rgba(var(--beam-rgb), 0.02),
        0 0 24px rgba(var(--beam-rgb), calc(var(--beam-soft) * 0.55));
}

.grid-panel::before,
.grid-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.grid-panel::before {
    top: -1px;
    left: 22px;
    width: 72px;
    height: 1px;
    background: var(--beam);
    box-shadow: 0 0 15px rgba(var(--beam-rgb), var(--beam-strong));
}

.grid-panel::after {
    right: -1px;
    bottom: 18px;
    width: 1px;
    height: 54px;
    background: linear-gradient(transparent, var(--beam), transparent);
    opacity: 0.45;
}

/* Global header */
.grid-topbar {
    position: sticky;
    z-index: 100;
    top: 0;
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(var(--beam-rgb), 0.42);
    background: rgba(1, 6, 12, 0.95);
    box-shadow: 0 0 34px rgba(var(--beam-rgb), calc(var(--beam-soft) * 0.75));
    backdrop-filter: blur(18px);
}

.grid-topbar__inner {
    width: min(1520px, calc(100% - 28px));
    min-height: var(--header-height);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 12px;
}

.grid-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 8px 0;
}

.grid-brand__disc {
    position: relative;
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(233, 189, 103, 0.12), transparent 58%),
        rgba(3, 10, 17, 0.94);
    box-shadow:
        inset 0 0 18px rgba(233, 189, 103, 0.14),
        0 0 18px rgba(233, 189, 103, 0.18);
}

.grid-brand__disc::before,
.grid-brand__disc::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.grid-brand__disc::before {
    inset: 7px;
    border: 1px solid rgba(233, 189, 103, 0.52);
    border-radius: 50%;
}

.grid-brand__disc::after {
    width: 84px;
    height: 1px;
    transform: rotate(-34deg);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 10px rgba(233, 189, 103, 0.38);
}

.grid-brand__disc span {
    position: relative;
    z-index: 1;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 12px rgba(233, 189, 103, 0.42);
}

.grid-brand__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-right: 1px solid rgba(233, 189, 103, 0.18);
    padding-right: 16px;
}

.grid-brand__copy strong {
    overflow: hidden;
    color: #f0c876;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.05;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 14px rgba(233, 189, 103, 0.2);
}

.grid-brand__copy small {
    overflow: hidden;
    color: #b38d4c;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.grid-primary-nav {
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2px;
}

.grid-primary-nav a {
    position: relative;
    min-width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px 10px;
    color: #a9bdc8;
    font-size: 0.68rem;
    font-weight: 760;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.grid-primary-nav a svg {
    width: 26px;
    height: 26px;
    color: var(--beam);
    filter: drop-shadow(0 0 6px rgba(var(--beam-rgb), var(--beam-mid)));
}

.grid-primary-nav a::after {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: 1px;
    height: 1px;
    background: transparent;
}

.grid-primary-nav a:hover,
.grid-primary-nav a.is-active {
    color: #f8fdff;
    background: linear-gradient(180deg, rgba(var(--beam-rgb), 0.03), rgba(var(--beam-rgb), 0.11));
}

.grid-primary-nav a.is-active {
    border-inline: 1px solid rgba(var(--beam-rgb), 0.42);
    box-shadow: inset 0 0 24px rgba(var(--beam-rgb), 0.08);
}

.grid-primary-nav a.is-active::after {
    background: var(--beam);
    box-shadow: 0 0 16px 2px rgba(var(--beam-rgb), var(--beam-strong));
}

.grid-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
}

.beam-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.beam-picker button {
    --swatch: #14dfff;
    width: 18px;
    height: 18px;
    padding: 0;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 6px;
    background: var(--swatch);
    box-shadow: 0 0 10px var(--swatch);
    opacity: 0.72;
    transition: transform 120ms ease, opacity 120ms ease;
}

.beam-picker button:hover,
.beam-picker button.is-selected {
    transform: translateY(-1px) scale(1.08);
    opacity: 1;
}

.beam-picker button.is-selected {
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 3px;
}

.beam-picker button[data-beam-choice="cyan"] { --swatch: #14dfff; }
.beam-picker button[data-beam-choice="purple"] { --swatch: #b96cff; }
.beam-picker button[data-beam-choice="gold"] { --swatch: #ffbe45; }
.beam-picker button[data-beam-choice="green"] { --swatch: #54e86f; }
.beam-picker button[data-beam-choice="white"] { --swatch: #f2fbff; }

.beam-picker--compact {
    padding-right: 16px;
    border-right: 1px solid rgba(var(--beam-rgb), 0.2);
}

.top-icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--beam);
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
}

.top-icon-button:hover {
    border-color: rgba(var(--beam-rgb), 0.4);
    background: rgba(var(--beam-rgb), 0.08);
}

.top-icon-button svg {
    width: 22px;
    height: 22px;
}

.operator-chip {
    min-width: 156px;
    display: grid;
    grid-template-columns: 44px 1fr 18px;
    align-items: center;
    gap: 10px;
}

.operator-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--beam);
    border: 1px solid var(--beam);
    border-radius: 50%;
    background: rgba(var(--beam-rgb), 0.08);
    box-shadow: 0 0 18px rgba(var(--beam-rgb), var(--beam-mid));
    font-size: 1.05rem;
}

.operator-copy strong,
.operator-copy small {
    display: block;
    line-height: 1.22;
}

.operator-copy strong {
    font-size: 0.78rem;
}

.operator-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.68rem;
}

.operator-chevron {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.nav-toggle {
    display: none;
}

/* Public pages */
.hero,
.page-head {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(var(--beam-rgb), 0.22);
    background:
        radial-gradient(circle at 78% 15%, rgba(var(--beam-rgb), 0.18), transparent 29rem),
        linear-gradient(180deg, rgba(6, 22, 35, 0.9), rgba(2, 8, 14, 0.97));
}

.hero {
    padding: 86px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: 64px;
}

.hero-copy,
.page-head p {
    max-width: 720px;
    color: #aec0ca;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(var(--beam-rgb), 0.36);
    border-radius: 8px;
    font-weight: 800;
}

.button-primary {
    color: #021016;
    background: var(--beam);
    box-shadow: 0 0 22px rgba(var(--beam-rgb), var(--beam-mid));
}

.button-ghost {
    color: var(--beam);
    background: rgba(var(--beam-rgb), 0.05);
}

.button-disabled {
    cursor: not-allowed;
    color: #607681;
    border-color: rgba(125, 148, 159, 0.2);
    background: #071017;
}

.button-block {
    width: 100%;
    margin-top: 18px;
}

.status-panel,
.build-card,
.device-card,
.release-row {
    border: 1px solid rgba(var(--beam-rgb), 0.22);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(8, 27, 42, 0.86), rgba(3, 12, 20, 0.94));
    box-shadow: var(--shadow);
}

.status-panel {
    padding: 26px;
}

.status-step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-step > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--beam-rgb), 0.24);
    border-radius: 50%;
    color: var(--muted);
}

.status-step.active > span {
    color: #03130a;
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 0 20px rgba(85, 231, 125, 0.34);
}

.status-step strong,
.status-step small {
    display: block;
}

.status-step small {
    color: var(--muted);
}

.status-line {
    width: 1px;
    height: 34px;
    margin: 5px 0 5px 19px;
    background: rgba(var(--beam-rgb), 0.2);
}

.section {
    padding: 68px 0;
}

.section-dark {
    border-block: 1px solid rgba(var(--beam-rgb), 0.14);
    background: rgba(2, 9, 15, 0.62);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
}

.text-link,
.section-link {
    color: var(--beam);
    font-weight: 800;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.build-card {
    padding: 22px;
}

.card-topline,
.release-titleline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-pill,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.project-pill {
    padding: 5px 10px;
    color: var(--beam);
    border: 1px solid rgba(var(--beam-rgb), 0.25);
    background: rgba(var(--beam-rgb), 0.06);
}

.status-badge {
    padding: 5px 10px;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.02);
}

.status-lamp,
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.status-testing { color: var(--amber); }
.status-approved { color: var(--green); }
.status-rejected { color: var(--red); }
.status-archived { color: var(--archived); }

.stable-meter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #60727d;
}

.stable-meter.is-lit {
    color: var(--green);
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.device-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 20px;
    transition: transform 150ms ease, border-color 150ms ease;
}

.device-card:hover,
.build-card:hover,
.release-row:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--beam-rgb), 0.58);
    box-shadow: 0 0 28px rgba(var(--beam-rgb), 0.12);
}

.device-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #021016;
    border-radius: 10px;
    background: var(--beam);
    font-size: 1.25rem;
    font-weight: 900;
}

.device-card strong,
.device-card small {
    display: block;
}

.device-card small {
    color: var(--muted);
}

.arrow {
    color: var(--beam);
    font-size: 1.3rem;
}

.page-head {
    padding: 68px 0 44px;
}

.project-section + .project-section {
    margin-top: 70px;
}

.release-list {
    display: grid;
    gap: 14px;
}

.release-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    padding: 24px;
}

.release-actions {
    min-width: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.release-actions small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

/* Command Grid hero */
.portal-hero {
    margin-top: 16px;
    overflow: hidden;
}

.portal-hero::after {
    right: 0;
    bottom: 0;
    width: 58%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent, rgba(var(--beam-rgb), 0.08), transparent),
        repeating-linear-gradient(90deg, transparent 0 54px, rgba(var(--beam-rgb), 0.12) 55px 56px);
    mask-image: linear-gradient(to top, black, transparent 84%);
}

.portal-hero__grid {
    min-height: 270px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 60px;
    padding: 42px clamp(28px, 5vw, 86px);
}

.portal-hero__copy {
    position: relative;
    z-index: 1;
}

.portal-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(3rem, 5.4vw, 4.6rem);
}

.portal-intro {
    max-width: 690px;
    color: #a9bbc5;
    font-size: 1rem;
}

.portal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.portal-role,
.portal-group {
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-role {
    color: var(--beam);
    border: 1px solid var(--beam);
    background: rgba(var(--beam-rgb), 0.08);
}

.portal-group {
    color: #c3d1d8;
    border: 1px solid rgba(149, 180, 194, 0.36);
    background: rgba(255, 255, 255, 0.025);
}

.identity-card {
    position: relative;
    z-index: 2;
    padding: 22px;
    border: 1px solid rgba(var(--beam-rgb), 0.64);
    border-radius: 14px;
    background: rgba(3, 12, 19, 0.9);
    box-shadow: 0 0 30px rgba(var(--beam-rgb), 0.16);
}

.identity-label {
    display: block;
    margin-bottom: 10px;
    color: var(--beam);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.identity-card__main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.identity-avatar {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #021016;
    border-radius: 12px;
    background: var(--beam);
    box-shadow: 0 0 24px rgba(var(--beam-rgb), var(--beam-mid));
    font-size: 2rem;
    font-weight: 850;
}

.identity-copy strong,
.identity-copy small {
    display: block;
}

.identity-copy strong {
    margin-bottom: 4px;
    font-size: 1rem;
}

.identity-copy small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.identity-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: var(--green);
    font-size: 0.86rem;
    font-weight: 760;
}

.identity-status span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.portal-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(340px, 0.95fr);
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 24px;
}

.portal-main-column,
.portal-side-column {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 14px;
}

.dashboard-section__label {
    margin: 0 0 10px 16px;
    color: var(--beam);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.telemetry-section {
    padding: 12px 0 0;
}

.portal-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.portal-stat {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(var(--beam-rgb), 0.34);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(7, 25, 39, 0.86), rgba(2, 11, 18, 0.94));
    box-shadow: 0 0 20px rgba(var(--beam-rgb), 0.08);
}

.portal-stat svg {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    color: var(--beam);
    filter: drop-shadow(0 0 8px rgba(var(--beam-rgb), var(--beam-mid)));
}

.portal-stat small,
.portal-stat strong {
    display: block;
}

.portal-stat small {
    color: var(--beam);
    font-size: 0.67rem;
    font-weight: 850;
    text-transform: uppercase;
}

.portal-stat strong {
    margin-top: 2px;
    font-size: 1.65rem;
    line-height: 1;
}

.portal-stat--testing svg,
.portal-stat--testing small {
    color: var(--amber);
}

.portal-stat--stable svg,
.portal-stat--stable small {
    color: var(--green);
}

.release-cockpit {
    padding: 20px;
}

.release-cockpit__head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(var(--beam-rgb), 0.12);
}

.release-cockpit__head p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
}

.section-link {
    flex: 0 0 auto;
    align-self: start;
    font-size: 0.76rem;
    text-transform: uppercase;
}

.section-link span {
    margin-left: 6px;
    font-size: 1rem;
}

.cockpit-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.status-frame {
    --status-color: var(--beam);
}

.status-frame--testing { --status-color: var(--amber); }
.status-frame--approved { --status-color: var(--green); }
.status-frame--archived { --status-color: var(--archived); }
.status-frame--rejected { --status-color: var(--red); }

.cockpit-build {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(var(--beam-rgb), 0.16);
    border-radius: 10px;
    background: rgba(2, 10, 17, 0.7);
}

.cockpit-build::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--status-color);
    box-shadow: 0 0 16px var(--status-color);
}

.cockpit-build-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.cockpit-labels,
.cockpit-links,
.cockpit-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.cockpit-build h3 {
    margin-top: 12px;
    font-size: 1.15rem;
}

.build-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.build-meta span + span::before {
    content: "•";
    margin: 0 9px;
    color: rgba(var(--beam-rgb), 0.55);
}

.cockpit-branch {
    margin: 8px 0 0;
    color: var(--muted-2);
    font-size: 0.78rem;
}

.cockpit-links {
    justify-content: flex-end;
}

.cockpit-links a {
    color: var(--beam);
    font-size: 0.78rem;
    font-weight: 800;
}

.cockpit-changelog {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--beam-rgb), 0.14);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.16);
}

.cockpit-changelog summary {
    cursor: pointer;
    color: #c7d8df;
    font-weight: 750;
}

.cockpit-changelog p {
    margin: 10px 0 0;
}

.cockpit-artifacts {
    margin-top: 14px;
}

.cockpit-artifacts h4,
.artifact-build__files h3 {
    margin-bottom: 7px;
    color: #dce7ec;
    font-size: 0.82rem;
    font-weight: 760;
}

.artifact-table {
    border-top: 1px solid rgba(var(--beam-rgb), 0.1);
}

.artifact-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 82px 122px minmax(170px, 260px) 38px;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(var(--beam-rgb), 0.08);
    background: linear-gradient(90deg, rgba(var(--beam-rgb), 0.025), transparent 55%);
}

.artifact-file {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.artifact-type-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #e7c3ff;
    border: 1px solid #8e4bc5;
    border-radius: 6px;
    background: linear-gradient(145deg, #6d2fa0, #241139);
    box-shadow: 0 0 12px rgba(185, 108, 255, 0.24);
    font-size: 0.58rem;
    font-weight: 900;
}

.artifact-type-icon--zip {
    color: #d4ffd9;
    border-color: #3ea551;
    background: linear-gradient(145deg, #297a39, #102c18);
    box-shadow: 0 0 12px rgba(84, 232, 111, 0.2);
}

.artifact-type-icon--md5,
.artifact-type-icon--sha256,
.artifact-type-icon--manifest,
.artifact-type-icon--info {
    color: #bceeff;
    border-color: rgba(var(--beam-rgb), 0.48);
    background: linear-gradient(145deg, rgba(var(--beam-rgb), 0.24), rgba(3, 17, 27, 0.92));
}

.artifact-file__copy {
    min-width: 0;
}

.artifact-file__copy strong,
.artifact-file__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artifact-file__copy strong {
    font-size: 0.78rem;
}

.artifact-file__copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.68rem;
}

.artifact-size {
    color: #c8d6dc;
    font-size: 0.76rem;
    text-align: right;
}

.artifact-download-button,
.artifact-missing-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 0 10px;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 800;
}

.artifact-download-button {
    color: var(--purple);
    background: rgba(185, 108, 255, 0.06);
    box-shadow: 0 0 14px rgba(185, 108, 255, 0.12);
}

.artifact-download-button--zip {
    color: var(--green);
    background: rgba(84, 232, 111, 0.05);
    box-shadow: 0 0 14px rgba(84, 232, 111, 0.1);
}

.artifact-download-button svg {
    width: 15px;
    height: 15px;
}

.artifact-missing-button {
    color: var(--red);
    opacity: 0.72;
}

.artifact-checksum {
    min-width: 0;
}

.artifact-checksum small,
.artifact-checksum code {
    display: block;
}

.artifact-checksum small {
    color: #bbcbd2;
    font-size: 0.65rem;
}

.artifact-checksum code {
    margin-top: 2px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checksum-copy {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--beam);
    border: 1px solid rgba(var(--beam-rgb), 0.36);
    border-radius: 7px;
    background: rgba(var(--beam-rgb), 0.04);
}

.checksum-copy svg {
    width: 17px;
    height: 17px;
}

.checksum-copy:hover,
.checksum-copy.is-copied {
    border-color: var(--beam);
    background: rgba(var(--beam-rgb), 0.12);
    box-shadow: 0 0 15px rgba(var(--beam-rgb), var(--beam-mid));
}

.checksum-copy--disabled {
    opacity: 0.28;
    cursor: default;
}

.cockpit-controls {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(var(--beam-rgb), 0.1);
}

.cockpit-controls form {
    margin: 0;
}

.cockpit-button {
    min-height: 36px;
    padding: 0 12px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 850;
}

.cockpit-approve {
    color: #03160a;
    background: var(--green);
}

.cockpit-testing {
    color: #211603;
    background: var(--amber);
}

.cockpit-reject {
    color: #ffc3c8;
    border-color: rgba(255, 111, 124, 0.52);
    background: rgba(255, 111, 124, 0.1);
}

.cockpit-archive {
    color: #c2d2db;
    border-color: rgba(147, 178, 200, 0.36);
    background: rgba(147, 178, 200, 0.08);
}

.cockpit-disabled {
    color: #617681;
    border-color: rgba(97, 118, 129, 0.25);
    background: rgba(97, 118, 129, 0.06);
    cursor: not-allowed;
}

.cockpit-owner-note,
.cockpit-approved-meta {
    margin: 12px 0 0;
    color: var(--muted-2);
    font-size: 0.75rem;
}

.cockpit-empty-artifacts {
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

/* Right column */
.tools-section {
    padding-top: 12px;
}

.portal-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.portal-tool-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: 42px 1fr 18px;
    align-items: start;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(var(--beam-rgb), 0.34);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(7, 25, 39, 0.86), rgba(2, 11, 18, 0.94));
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.portal-tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--beam-rgb), 0.7);
    box-shadow: 0 0 26px rgba(var(--beam-rgb), 0.14);
}

.portal-tool-card > svg {
    width: 38px;
    height: 38px;
    color: var(--beam);
    filter: drop-shadow(0 0 7px rgba(var(--beam-rgb), var(--beam-mid)));
}

.portal-tool-card strong,
.portal-tool-card small {
    display: block;
}

.portal-tool-card strong {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.portal-tool-card small {
    color: var(--muted);
    font-size: 0.72rem;
}

.portal-tool-card b {
    align-self: end;
    color: var(--beam);
    font-size: 1.2rem;
}

.garage-card,
.theme-card {
    padding: 20px;
}

.garage-card__body {
    display: grid;
    grid-template-columns: 104px 1fr;
    align-items: center;
    gap: 18px;
}

.garage-orb {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    color: var(--beam);
    border: 2px solid rgba(var(--beam-rgb), 0.72);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--beam-rgb), 0.13), transparent 68%);
    box-shadow: inset 0 0 18px rgba(var(--beam-rgb), 0.12), 0 0 22px rgba(var(--beam-rgb), 0.18);
}

.garage-orb svg {
    width: 44px;
    height: 44px;
}

.garage-copy strong,
.garage-copy small {
    display: block;
}

.garage-copy strong {
    font-size: 1.15rem;
}

.garage-copy strong span {
    color: #b7c8d0;
    font-size: 0.84rem;
}

.garage-copy small {
    margin-top: 5px;
    color: var(--beam);
    font-size: 0.73rem;
    font-weight: 850;
    text-transform: uppercase;
}

.garage-copy p {
    margin: 8px 0 0;
    color: var(--muted-2);
    font-size: 0.72rem;
}

.garage-meter {
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(var(--beam-rgb), 0.58);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
}

.garage-meter span {
    display: block;
    width: var(--garage-used);
    height: 100%;
    background: repeating-linear-gradient(135deg, var(--beam) 0 8px, rgba(var(--beam-rgb), 0.58) 8px 14px);
    box-shadow: 0 0 16px rgba(var(--beam-rgb), var(--beam-strong));
}

.beam-picker--large button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.beam-slider {
    display: block;
    margin-top: 20px;
}

.beam-slider span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.72rem;
}

.beam-slider input {
    width: 100%;
    accent-color: var(--beam);
}

/* Artifact browser */
.artifact-browser {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 24px;
}

.artifact-sidebar {
    display: grid;
    align-content: start;
    gap: 16px;
}

.filter-card {
    padding: 20px;
}

.filter-card__title {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 16px;
    color: var(--beam);
    border-bottom: 1px solid rgba(var(--beam-rgb), 0.13);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.filter-card__title svg {
    width: 21px;
    height: 21px;
}

.filter-field {
    display: block;
    margin-top: 20px;
}

.filter-field > span:first-child,
.status-filter legend {
    display: block;
    margin-bottom: 8px;
    color: var(--beam);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.filter-field select,
.filter-search__box {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(var(--beam-rgb), 0.24);
    border-radius: 7px;
    background: rgba(2, 10, 17, 0.8);
}

.filter-field select {
    padding: 0 12px;
}

.status-filter {
    margin: 22px 0 0;
    padding: 0;
    border: 0;
}

.status-filter__option {
    display: grid;
    grid-template-columns: 9px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    cursor: pointer;
    border: 1px solid rgba(var(--beam-rgb), 0.13);
    border-radius: 6px;
    color: var(--muted);
    background: rgba(2, 10, 17, 0.54);
}

.status-filter__option + .status-filter__option {
    margin-top: 5px;
}

.status-filter__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.status-filter__option strong {
    font-size: 0.77rem;
}

.status-filter__option small {
    font-size: 0.73rem;
}

.status-filter__option .status-dot {
    color: var(--beam);
}

.status-filter__option--approved .status-dot { color: var(--green); }
.status-filter__option--testing .status-dot { color: var(--amber); }
.status-filter__option--archived .status-dot { color: var(--archived); }
.status-filter__option--rejected .status-dot { color: var(--red); }

.status-filter__option:has(input:checked) {
    color: #e8f5fa;
    border-color: rgba(var(--beam-rgb), 0.48);
    background: rgba(var(--beam-rgb), 0.08);
}

.filter-search__box {
    display: grid;
    grid-template-columns: 1fr 34px;
    align-items: center;
}

.filter-search__box input {
    min-width: 0;
    height: 42px;
    padding: 0 0 0 12px;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
}

.filter-search__box svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.filter-apply {
    min-height: 38px;
    padding: 0 14px;
    cursor: pointer;
    color: #021016;
    border-radius: 6px;
    background: var(--beam);
    font-size: 0.75rem;
    font-weight: 850;
}

.filter-actions a {
    color: var(--muted);
    font-size: 0.74rem;
}

.artifact-results {
    min-width: 0;
    padding: 18px;
}

.artifact-results__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 0 4px 16px;
    border-bottom: 1px solid rgba(var(--beam-rgb), 0.12);
}

.artifact-results__head h1 {
    margin-bottom: 6px;
    color: var(--beam);
    font-size: 1.7rem;
    letter-spacing: -0.025em;
}

.artifact-results__head p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.artifact-results__head > span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.82rem;
}

.artifact-results__head > span strong {
    color: var(--beam);
}

.artifact-build-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.artifact-build {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 5px minmax(0, 1fr);
    border: 1px solid rgba(var(--beam-rgb), 0.16);
    border-radius: 10px;
    background: rgba(2, 10, 17, 0.72);
}

.artifact-build__rail {
    background: var(--status-color);
    box-shadow: 0 0 18px var(--status-color);
}

.artifact-build__content {
    min-width: 0;
    padding: 14px 14px 10px;
}

.artifact-build__header {
    display: grid;
    grid-template-columns: 102px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(var(--beam-rgb), 0.09);
}

.artifact-status-emblem {
    min-height: 92px;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 1px solid rgba(var(--beam-rgb), 0.18);
    border-radius: 8px;
    background: rgba(3, 15, 23, 0.76);
}

.artifact-status-emblem svg {
    width: 44px;
    height: 44px;
    color: var(--status-color);
    filter: drop-shadow(0 0 8px var(--status-color));
}

.artifact-status-emblem .status-badge {
    padding: 3px 8px;
    color: var(--status-color);
    font-size: 0.58rem;
}

.artifact-build__identity h2 {
    margin-bottom: 5px;
    font-size: 1.18rem;
}

.artifact-build__identity > strong {
    display: block;
    margin-bottom: 8px;
    color: var(--status-color);
    font-size: 0.9rem;
}

.build-info-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: var(--beam);
    border: 1px solid rgba(var(--beam-rgb), 0.36);
    border-radius: 6px;
    background: rgba(var(--beam-rgb), 0.04);
    font-size: 0.74rem;
    font-weight: 800;
}

.build-info-button svg {
    width: 17px;
    height: 17px;
}

.artifact-build__files {
    margin-top: 8px;
}

/* Footer and quick drawer */
.grid-footer {
    border-top: 1px solid rgba(var(--beam-rgb), 0.18);
    background: rgba(1, 5, 9, 0.96);
}

.grid-footer__inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #57788a;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

.footer-dot {
    color: var(--beam);
}

.flynn-chathead {
    position: fixed;
    z-index: 120;
    right: 22px;
    bottom: 24px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #021016;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: var(--beam);
    box-shadow: 0 0 26px rgba(var(--beam-rgb), var(--beam-strong));
}

.flynn-chathead__pulse {
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(var(--beam-rgb), 0.34);
    border-radius: 50%;
    animation: flynn-pulse 2.4s ease-out infinite;
}

.flynn-chathead__letter {
    position: relative;
    font-size: 1.35rem;
    font-weight: 900;
}

@keyframes flynn-pulse {
    0% { transform: scale(0.86); opacity: 0.8; }
    75%, 100% { transform: scale(1.35); opacity: 0; }
}

.flynn-drawer {
    position: fixed;
    z-index: 119;
    right: 22px;
    bottom: 90px;
    width: min(360px, calc(100vw - 32px));
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.98);
    border: 1px solid rgba(var(--beam-rgb), 0.48);
    border-radius: 14px;
    background: rgba(2, 10, 17, 0.97);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.52), 0 0 28px rgba(var(--beam-rgb), 0.16);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.flynn-drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.flynn-drawer__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(var(--beam-rgb), 0.14);
}

.flynn-drawer__head strong {
    display: block;
}

.flynn-drawer__head button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--beam);
    border: 1px solid rgba(var(--beam-rgb), 0.24);
    border-radius: 7px;
    background: rgba(var(--beam-rgb), 0.04);
}

.flynn-drawer__head svg {
    width: 17px;
    height: 17px;
}

.flynn-drawer__links {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.flynn-drawer__links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    color: #c7d8df;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(var(--beam-rgb), 0.025);
}

.flynn-drawer__links a:hover {
    color: var(--beam);
    border-color: rgba(var(--beam-rgb), 0.3);
    background: rgba(var(--beam-rgb), 0.07);
}

.flynn-drawer__links svg {
    width: 21px;
    height: 21px;
    color: var(--beam);
}

.flynn-drawer-backdrop {
    position: fixed;
    z-index: 118;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: rgba(0, 0, 0, 0.34);
    transition: opacity 160ms ease;
}

.flynn-drawer-open .flynn-drawer-backdrop {
    pointer-events: auto;
    opacity: 1;
}

.empty-state {
    padding: 30px;
    color: var(--muted);
    border: 1px dashed rgba(var(--beam-rgb), 0.24);
    border-radius: 10px;
    text-align: center;
    background: rgba(var(--beam-rgb), 0.02);
}

:focus-visible {
    outline: 2px solid var(--beam);
    outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1320px) {
    .grid-topbar__inner {
        grid-template-columns: 230px minmax(0, 1fr) auto;
    }

    .grid-brand {
        gap: 10px;
    }

    .grid-brand__disc {
        width: 58px;
        height: 58px;
    }

    .grid-brand__copy strong {
        font-size: 1.08rem;
    }

    .grid-brand__copy small {
        font-size: 0.5rem;
    }

    .grid-primary-nav a {
        min-width: 70px;
        padding-inline: 7px;
    }

    .operator-copy,
    .operator-chevron,
    .beam-picker--compact {
        display: none;
    }

    .operator-chip {
        min-width: 44px;
        grid-template-columns: 44px;
    }

    .portal-stat {
        padding: 14px;
    }

    .portal-stat svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 1120px) {
    :root {
        --header-height: 84px;
    }

    .grid-topbar__inner {
        min-height: var(--header-height);
        grid-template-columns: 205px minmax(0, 1fr) auto;
    }

    .grid-brand__disc {
        width: 52px;
        height: 52px;
    }

    .grid-brand__disc span {
        font-size: 1.6rem;
    }

    .grid-brand__copy strong {
        font-size: 0.98rem;
    }

    .grid-primary-nav a {
        min-width: 56px;
        gap: 4px;
        font-size: 0;
    }

    .grid-primary-nav a svg {
        width: 25px;
        height: 25px;
    }

    .portal-dashboard {
        grid-template-columns: 1fr;
    }

    .portal-side-column {
        grid-template-columns: 1.4fr 1fr;
    }

    .tools-section {
        grid-row: span 2;
    }

    .portal-stat-grid {
        grid-template-columns: repeat(5, minmax(130px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .artifact-row {
        grid-template-columns: minmax(240px, 1fr) 74px 112px minmax(150px, 220px) 36px;
        gap: 9px;
    }
}

@media (max-width: 900px) {
    .shell {
        width: min(100% - 24px, 1480px);
    }

    .grid-topbar__inner {
        width: min(100% - 18px, 1520px);
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
    }

    .grid-brand__disc {
        width: 52px;
        height: 52px;
    }

    .grid-brand__copy strong {
        font-size: 1rem;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 0 12px;
        cursor: pointer;
        color: var(--beam);
        border: 1px solid rgba(var(--beam-rgb), 0.3);
        border-radius: 7px;
        background: rgba(var(--beam-rgb), 0.05);
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .nav-toggle svg {
        width: 18px;
        height: 18px;
    }

    .grid-primary-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1px;
        padding: 10px 12px 14px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        border-bottom: 1px solid rgba(var(--beam-rgb), 0.35);
        background: rgba(1, 7, 13, 0.98);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.44);
        transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
    }

    .grid-primary-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .grid-primary-nav a {
        min-height: 72px;
        font-size: 0.62rem;
    }

    .grid-top-actions {
        padding-left: 0;
    }

    .top-icon-button {
        display: none;
    }

    .portal-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 26px;
    }

    .portal-hero h1 {
        font-size: 3.5rem;
    }

    .identity-card {
        max-width: 460px;
    }

    .portal-side-column {
        grid-template-columns: 1fr;
    }

    .tools-section {
        grid-row: auto;
    }

    .artifact-browser {
        grid-template-columns: 1fr;
    }

    .artifact-sidebar {
        grid-template-columns: 1fr 1fr;
    }

    .artifact-build__header {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .build-info-button {
        grid-column: 1 / -1;
        width: fit-content;
        justify-self: end;
    }

    .artifact-row {
        grid-template-columns: minmax(220px, 1fr) 80px 120px 36px;
    }

    .artifact-checksum {
        grid-column: 1 / -1;
        padding-left: 50px;
    }
}

@media (max-width: 700px) {
    :root {
        --header-height: 76px;
    }

    .grid-brand__disc {
        width: 48px;
        height: 48px;
    }

    .grid-brand__copy {
        padding-right: 8px;
    }

    .grid-brand__copy strong {
        font-size: 0.9rem;
    }

    .grid-brand__copy small {
        display: none;
    }

    .operator-chip {
        display: none;
    }

    .grid-primary-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .hero {
        padding: 62px 0 52px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-grid,
    .device-grid,
    .portal-tool-grid {
        grid-template-columns: 1fr;
    }

    .release-row {
        grid-template-columns: 1fr;
    }

    .release-actions {
        min-width: 0;
        text-align: left;
    }

    .portal-hero {
        margin-top: 10px;
    }

    .portal-hero__grid {
        padding: 28px 20px;
    }

    .portal-hero h1 {
        font-size: 3rem;
    }

    .portal-stat-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        overflow: visible;
    }

    .portal-stat:last-child {
        grid-column: 1 / -1;
    }

    .release-cockpit__head,
    .cockpit-build-head,
    .artifact-results__head {
        flex-direction: column;
        align-items: start;
    }

    .cockpit-links {
        justify-content: flex-start;
    }

    .artifact-sidebar {
        grid-template-columns: 1fr;
    }

    .artifact-build__header {
        grid-template-columns: 1fr;
    }

    .artifact-status-emblem {
        min-height: 74px;
        grid-template-columns: auto auto;
        justify-content: start;
        gap: 16px;
    }

    .artifact-status-emblem svg {
        width: 34px;
        height: 34px;
    }

    .build-info-button {
        grid-column: auto;
        justify-self: start;
    }

    .artifact-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px 4px;
    }

    .artifact-file {
        grid-column: 1 / -1;
    }

    .artifact-size {
        text-align: left;
    }

    .artifact-download {
        width: 130px;
    }

    .artifact-checksum {
        grid-column: 1 / 2;
        padding-left: 0;
    }

    .checksum-copy {
        grid-column: 2 / 3;
    }

    .garage-card__body {
        grid-template-columns: 76px 1fr;
    }

    .garage-orb {
        width: 72px;
        height: 72px;
    }

    .garage-orb svg {
        width: 34px;
        height: 34px;
    }

    .grid-footer__inner {
        padding: 12px 0;
    }

    .flynn-chathead {
        right: 16px;
        bottom: 18px;
    }

    .flynn-drawer {
        right: 16px;
        bottom: 82px;
    }
}

@media (max-width: 430px) {
    .grid-brand {
        gap: 7px;
    }

    .grid-brand__disc {
        width: 42px;
        height: 42px;
    }

    .grid-brand__disc span {
        font-size: 1.3rem;
    }

    .grid-brand__copy strong {
        font-size: 0.76rem;
        letter-spacing: 0.035em;
    }

    .nav-toggle span {
        display: none;
    }

    .nav-toggle {
        width: 40px;
        justify-content: center;
        padding: 0;
    }

    .portal-stat-grid {
        grid-template-columns: 1fr;
    }

    .portal-stat:last-child {
        grid-column: auto;
    }

    .identity-card__main {
        align-items: start;
    }

    .identity-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .artifact-results,
    .release-cockpit,
    .filter-card,
    .garage-card,
    .theme-card {
        padding: 14px;
    }
}

/* Official A-Team Grid SVG wordmark */
.grid-brand__logo {
    display: block;
    flex: 0 1 auto;
    width: clamp(150px, 17vw, 250px);
    max-width: 100%;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
    filter:
        drop-shadow(0 0 8px rgba(233, 189, 103, 0.22))
        drop-shadow(0 0 18px rgba(20, 210, 255, 0.10));
}

@media (max-width: 900px) {
    .grid-brand__logo {
        width: clamp(135px, 24vw, 205px);
        max-height: 52px;
    }
}

@media (max-width: 700px) {
    .grid-brand__logo {
        width: 150px;
        max-height: 46px;
    }
}

@media (max-width: 430px) {
    .grid-brand__logo {
        width: 126px;
        max-height: 40px;
    }
}

