:root {
    --bg: #081018;
    --bg-elevated: rgba(12, 20, 31, 0.88);
    --bg-soft: rgba(16, 27, 40, 0.9);
    --line: rgba(154, 177, 200, 0.18);
    --line-strong: rgba(154, 177, 200, 0.32);
    --text: #f4f8fb;
    --muted: #afc2d3;
    --muted-strong: #d8e7f2;
    --accent: #87f5d2;
    --accent-strong: #b8ffe7;
    --accent-glow: rgba(135, 245, 210, 0.18);
    --danger: #ffb58e;
    --shadow: 0 8px 20px rgba(3, 7, 13, 0.2);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1160px;
    --header-height: 88px;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text);
    background: linear-gradient(180deg, #0a121b 0%, #071018 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body::before {
    display: none;
}

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

img {
    max-width: 100%;
    display: block;
}

main,
header,
footer {
    position: relative;
    z-index: 1;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.narrow {
    width: min(calc(100% - 2rem), 760px);
}

.section {
    padding: 6rem 0;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.section--tight {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section--auth {
    padding-bottom: 6rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.eyebrow::before {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(135, 245, 210, 0.5);
    box-shadow: inset 0 0 0 3px rgba(135, 245, 210, 0.14);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 8vw, 5.6rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.04;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
}

p,
li {
    color: var(--muted);
}

.lead {
    max-width: 54ch;
    font-size: clamp(1.08rem, 1.85vw, 1.25rem);
    line-height: 1.65;
    color: #dde9f4;
}

.hero-title {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
    font-size: clamp(1.95rem, 3.7vw, 2.55rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-title span {
    display: block;
    white-space: nowrap;
}

.hero-title + .lead {
    margin-top: 0.9rem;
}

.hero-microcopy {
    font-size: 0.95rem;
    color: #d6e5f1;
    opacity: 0.88;
}

.hero-trust {
    max-width: 54ch;
    font-size: 1rem;
    color: #c2d3e1;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero .button-row {
    gap: 1rem;
    align-items: flex-start;
}

.hero .button--primary {
    min-width: 18.5rem;
}

.hero .button--ghost {
    min-width: 11.5rem;
}

.button-row--center {
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.4rem;
    border: 1px solid rgba(135, 245, 210, 0.35);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(135, 245, 210, 0.16), rgba(135, 245, 210, 0.08));
    color: var(--text);
    font-size: 0.925rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button--primary {
    min-height: 58px;
    padding: 1rem 1.6rem;
    border-color: rgba(231, 255, 248, 0.92);
    background: linear-gradient(180deg, #a8ffe8 0%, #69e7c2 100%);
    color: #051018;
    font-weight: 700;
    box-shadow: 0 18px 38px rgba(105, 231, 194, 0.34);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(135, 245, 210, 0.55);
}

.button--primary:hover,
.button--primary:focus-visible {
    border-color: #f2fffb;
    box-shadow: 0 22px 42px rgba(105, 231, 194, 0.42);
}

.button--ghost {
    background: rgba(8, 16, 24, 0.28);
    border-color: rgba(154, 177, 200, 0.16);
    color: #a7bacb;
}

.button--danger {
    border-color: rgba(255, 181, 142, 0.38);
    background: rgba(255, 181, 142, 0.1);
    color: var(--danger);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    color: var(--accent-strong);
    font-weight: 600;
}

.text-link::after {
    content: "→";
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 1rem 0 0;
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1rem;
    min-height: calc(var(--header-height) - 16px);
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(154, 177, 200, 0.12);
    border-radius: 999px;
    background: rgba(8, 16, 24, 0.92);
    box-shadow: 0 10px 24px rgba(2, 6, 10, 0.16);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(135, 245, 210, 0.3);
    background:
        linear-gradient(135deg, rgba(135, 245, 210, 0.2), transparent 55%),
        rgba(15, 25, 36, 0.92);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-strong);
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand__text strong {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand__text small {
    color: var(--muted);
    font-size: 0.84rem;
}

.site-nav {
    justify-self: end;
}

.site-nav__list {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 160ms ease, background 160ms ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible,
.site-nav__list a.is-active {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.site-nav__login--mobile,
.menu-toggle {
    display: none;
}

.hero {
    padding-top: 5.25rem;
}

.hero__grid,
.page-hero__grid,
.split-layout,
.demo-layout,
.beta-grid {
    display: grid;
    gap: 2rem;
}

.hero__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 2.8rem;
}

.hero__content {
    display: grid;
    max-width: 38rem;
    gap: 1.45rem;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.mini-card,
.card,
.panel,
.list-card,
.login-card,
.demo-stage,
.product-shell,
.placeholder-note {
    border: 1px solid rgba(154, 177, 200, 0.16);
    background: linear-gradient(180deg, rgba(15, 24, 35, 0.92), rgba(10, 18, 27, 0.92));
    box-shadow: var(--shadow);
}

.mini-card,
.card,
.panel,
.list-card,
.login-card {
    border-radius: var(--radius-md);
    padding: 1.3rem;
}

.mini-card h2,
.mini-card p {
    font-size: 0.92rem;
}

.mini-card {
    display: grid;
    gap: 0.6rem;
}

.hero__visual {
    display: grid;
    gap: 1rem;
    align-self: start;
    padding-top: 0.8rem;
    will-change: transform;
}

.product-shell {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.product-shell__bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(154, 177, 200, 0.12);
    background: rgba(9, 15, 23, 0.96);
}

.product-shell__bar span {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.product-shell__bar p {
    margin-left: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--muted);
}

.product-shell__body {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
}

.product-pane {
    display: grid;
    gap: 0.8rem;
    padding: 1.15rem;
}

.product-pane + .product-pane {
    border-left: 1px solid rgba(154, 177, 200, 0.12);
}

.pane-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.pane-header span,
.pane-header small,
.status-chip,
.stack-slot strong,
.placeholder-inline {
    font-family: var(--font-mono);
}

.pane-header span {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.pane-header small {
    font-size: 0.74rem;
    color: var(--muted);
}

.code-line {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.8rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.9rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.015);
}

.code-line span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-feature-settings: "tnum";
}

.code-line code {
    font-family: var(--font-mono);
    color: var(--muted-strong);
}

.code-line--active {
    border: 1px solid rgba(135, 245, 210, 0.3);
    background: rgba(135, 245, 210, 0.08);
}

.pane-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.status-chip,
.placeholder-inline {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(135, 245, 210, 0.25);
    border-radius: 999px;
    color: var(--accent-strong);
    background: rgba(135, 245, 210, 0.08);
    font-size: 0.72rem;
}

.status-chip--muted,
.placeholder-inline {
    border-color: rgba(154, 177, 200, 0.2);
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.03);
}

.product-pane--stack {
    align-content: start;
}

.stack-slot {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(154, 177, 200, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.stack-slot strong {
    font-size: 0.78rem;
    font-feature-settings: "tnum";
    color: var(--text);
}

.stack-slot span {
    text-align: right;
    color: var(--muted-strong);
}

.stack-slot--buffer {
    border-color: rgba(135, 245, 210, 0.22);
}

.stack-slot--alert {
    border-color: rgba(255, 181, 142, 0.32);
    background: rgba(255, 181, 142, 0.08);
}

.placeholder-note,
.placeholder-banner {
    border-radius: 999px;
    padding: 0.85rem 1rem;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.04);
}

.section-heading {
    display: grid;
    gap: 1rem;
    max-width: 60rem;
    margin-bottom: 2rem;
}

.text-stack {
    display: grid;
    gap: 1rem;
}

.problem-copy {
    max-width: 34rem;
}

.problem-panel {
    gap: 1.2rem;
    padding: 1.45rem;
}

.split-layout {
    grid-template-columns: 0.96fr 1.04fr;
    align-items: start;
}

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

.comparison-column {
    display: grid;
    gap: 1rem;
}

.comparison-label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    width: fit-content;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.03);
}

.list-card {
    display: grid;
    gap: 0.8rem;
}

.list-card--accent {
    border-color: rgba(135, 245, 210, 0.24);
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    display: grid;
    gap: 1rem;
    min-height: 100%;
    will-change: transform;
}

.card,
.panel,
.list-card {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.card:hover,
.panel:hover,
.list-card:hover {
    transform: translateY(-4px);
    border-color: rgba(154, 177, 200, 0.28);
    box-shadow: 0 20px 46px rgba(3, 7, 13, 0.34);
}

.card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card--priority {
    border-color: rgba(135, 245, 210, 0.28);
    background:
        radial-gradient(circle at top right, rgba(135, 245, 210, 0.1), transparent 38%),
        linear-gradient(180deg, rgba(17, 28, 39, 0.96), rgba(10, 18, 27, 0.96));
    box-shadow:
        0 22px 52px rgba(3, 7, 13, 0.34),
        0 0 0 1px rgba(135, 245, 210, 0.06);
    padding-top: 1.55rem;
}

.feature-card--priority::after {
    content: "";
    position: absolute;
    top: 0;
    left: 1.3rem;
    right: 1.3rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(168, 255, 232, 0.95), rgba(89, 218, 183, 0.55));
}

.feature-card--priority h3 {
    font-size: 1.3rem;
}

.feature-card--priority:hover {
    border-color: rgba(184, 255, 231, 0.44);
    box-shadow:
        0 26px 58px rgba(3, 7, 13, 0.38),
        0 0 0 1px rgba(135, 245, 210, 0.12);
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(135, 245, 210, 0.12), transparent 35%);
    pointer-events: none;
}

.feature-card:hover::before {
    background: radial-gradient(circle at top right, rgba(135, 245, 210, 0.18), transparent 38%);
}

.tag-list,
.bullet-list,
.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.tag-list li {
    padding: 0.28rem 0.6rem;
    border: 1px solid rgba(154, 177, 200, 0.18);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.03);
}

.demo-layout {
    grid-template-columns: 1.06fr 0.94fr;
    align-items: start;
}

.demo-stage {
    min-height: 380px;
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.demo-stage__inner {
    display: grid;
    align-content: end;
    gap: 1rem;
    min-height: 100%;
    padding: 1.4rem;
    border: 1px dashed rgba(154, 177, 200, 0.22);
    border-radius: calc(var(--radius-lg) - 8px);
    background:
        radial-gradient(circle at top, rgba(135, 245, 210, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(14, 24, 35, 0.42), rgba(8, 16, 24, 0.78));
}

.stack {
    display: grid;
    gap: 1rem;
}

.beta-grid {
    grid-template-columns: 1.1fr 1fr 1fr;
    align-items: start;
}

.panel {
    display: grid;
    gap: 1rem;
}

.panel--stacked {
    align-content: start;
}

.bullet-list {
    display: grid;
    gap: 0.8rem;
}

.bullet-list li {
    position: relative;
    padding-left: 1.1rem;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--accent);
}

.use-case-detail,
.beta-priority {
    font-size: 0.92rem;
    color: var(--accent-strong);
}

.use-case-detail {
    margin-top: auto;
}

.beta-priority {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 40px;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(135, 245, 210, 0.22);
    border-radius: 14px;
    background: rgba(135, 245, 210, 0.08);
    font-weight: 600;
}

.page-hero {
    padding-top: 5rem;
}

.page-hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
}

.page-hero--centered .login-card {
    text-align: center;
}

.login-card {
    display: grid;
    gap: 1.4rem;
}

.site-footer {
    padding: 1rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.7fr 0.8fr;
    gap: 1rem;
    padding: 2rem;
    border: 1px solid rgba(154, 177, 200, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(8, 16, 24, 0.76);
}

.footer-brand {
    display: grid;
    gap: 0.9rem;
}

.footer-column {
    display: grid;
    gap: 0.85rem;
}

.footer-column h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-strong);
}

.footer-links {
    display: grid;
    gap: 0.7rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted);
    transition: color 140ms ease;
}

.footer-links a:hover {
    color: var(--text);
}

.resource-status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-bottom {
    padding-top: 1rem;
}

.footer-bottom p {
    font-size: 0.92rem;
}

.page-glow {
    position: fixed;
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    filter: blur(72px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.page-glow--one {
    top: 6rem;
    right: 10%;
    background: rgba(74, 255, 210, 0.28);
}

.page-glow--two {
    bottom: 10%;
    left: 6%;
    background: rgba(45, 98, 167, 0.24);
}

[data-reveal] {
    opacity: 1;
    transform: none;
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
        align-items: center;
        min-height: 44px;
        padding: 0.75rem 0.95rem;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.03);
        color: var(--text);
        font: inherit;
    }

    .site-nav__login {
        display: none;
    }

    .site-nav__login--mobile {
        display: inline-flex;
        width: 100%;
        margin-top: 0.8rem;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.8rem);
        left: 0;
        right: 0;
        padding: 1rem;
        border: 1px solid rgba(154, 177, 200, 0.16);
        border-radius: 1.5rem;
        background: rgba(8, 16, 24, 0.95);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    }

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

    .site-nav__list {
        display: grid;
        justify-content: stretch;
    }

    .site-nav__list a {
        width: 100%;
    }

    .hero__grid,
    .page-hero__grid,
    .split-layout,
    .demo-layout,
    .beta-grid,
    .footer-grid,
    .card-grid--three,
    .card-grid--four,
    .hero-highlights,
    .comparison-grid,
    .product-shell__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 80px;
    }

    .section {
        padding: 4.4rem 0;
    }

    .hero {
        padding-top: 2.2rem;
    }

    .site-header {
        padding-top: 0.7rem;
    }

    .site-header__inner {
        padding-inline: 0.85rem;
    }

    .brand__text small {
        display: none;
    }

    h1 {
        max-width: none;
    }

    .hero-title {
        font-size: clamp(1rem, 4.35vw, 1.58rem);
        line-height: 1.08;
    }

    .hero-title span {
        white-space: nowrap;
    }

    .hero__content {
        gap: 1.1rem;
    }

    .hero .button-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero-microcopy,
    .hero-trust {
        font-size: 0.9rem;
    }

    .hero .button {
        width: 100%;
        min-width: 0;
    }

    .hero .button--primary {
        min-height: 56px;
        padding-inline: 1.28rem;
    }

    .container {
        width: min(calc(100% - 1.1rem), var(--container));
    }

    .product-pane,
    .mini-card,
    .card,
    .panel,
    .list-card,
    .login-card {
        padding: 1.1rem;
    }

    .demo-stage {
        min-height: 300px;
    }

    .code-line {
        grid-template-columns: 80px 1fr;
        gap: 0.65rem;
        padding-inline: 0.65rem;
    }

    .stack-slot {
        flex-direction: column;
        align-items: flex-start;
    }

    .stack-slot span {
        text-align: left;
    }

.page-glow {
        display: none;
    }
}

.flash-stack {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.flash {
    padding: 0.95rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(154, 177, 200, 0.16);
    background: rgba(10, 18, 27, 0.82);
    color: var(--muted-strong);
}

.flash--success {
    border-color: rgba(135, 245, 210, 0.28);
    color: var(--accent-strong);
}

.flash--error {
    border-color: rgba(255, 181, 142, 0.28);
    color: var(--danger);
}

.flash--info {
    color: var(--muted-strong);
}

/* ── Auth single-card layout ──────────────────────── */

.auth-shell {
    max-width: 460px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.auth-shell__label {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid rgba(135, 245, 210, 0.22);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 70% 0%, rgba(135, 245, 210, 0.07) 0%, transparent 55%),
        linear-gradient(180deg, rgba(16, 27, 40, 0.98) 0%, rgba(9, 16, 25, 0.98) 100%);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(135, 245, 210, 0.04),
        inset 0 1px 0 rgba(135, 245, 210, 0.08);
    display: grid;
    gap: 1.75rem;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(168, 255, 232, 0.8), transparent);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(154, 177, 200, 0.1);
}

.auth-tab {
    padding: 0.6rem 1rem;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 160ms ease;
    letter-spacing: 0.005em;
}

.auth-tab--active {
    background: rgba(135, 245, 210, 0.1);
    border-color: rgba(135, 245, 210, 0.2);
    color: var(--text);
}

.auth-tab:not(.auth-tab--active):hover {
    color: var(--muted-strong);
    background: rgba(154, 177, 200, 0.06);
}

.auth-panel {
    display: none;
}

.auth-panel--active {
    display: grid;
    gap: 1rem;
    animation: auth-panel-in 200ms ease;
}

@keyframes auth-panel-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button--full {
    width: 100%;
    justify-content: center;
}

/* ── Legacy auth/dashboard grids ─────────────────── */

.auth-header {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.auth-heading {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.auth-grid,
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
}

.auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid {
    grid-template-columns: 0.8fr 1.2fr;
}

/* ── Dashboard (logged-in) ────────────────────────── */

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(154, 177, 200, 0.14);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(14, 23, 34, 0.96) 0%, rgba(9, 16, 25, 0.96) 100%);
}

.dash-header__left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.dash-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dash-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(135, 245, 210, 0.3);
    background: linear-gradient(135deg, rgba(135, 245, 210, 0.15), rgba(135, 245, 210, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-strong);
    letter-spacing: 0;
}

.dash-identity {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
}

.dash-name {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.dash-col {
    display: grid;
    gap: 1.25rem;
}

.dash-card {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.dash-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

.dash-card__hint {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* Plans */

.plan-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(154, 177, 200, 0.1);
}

.plan-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.plan-row:first-child {
    padding-top: 0;
}

.plan-row__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.plan-row__info strong {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.plan-status {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}

.plan-status--active {
    color: var(--accent-strong);
}

.plan-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.plan-badge--active {
    color: var(--accent-strong);
    border-color: rgba(135, 245, 210, 0.25);
    background: rgba(135, 245, 210, 0.08);
}

.plan-badge--warning {
    color: #f3c884;
    border-color: rgba(243, 200, 132, 0.25);
    background: rgba(243, 200, 132, 0.08);
}

.plan-row__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.plan-row__actions form {
    margin: 0;
}

.plan-row__form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.plan-seats-input {
    width: 56px;
    min-height: 36px;
    padding: 0.4rem 0.5rem;
    border: 1px solid rgba(154, 177, 200, 0.18);
    border-radius: 8px;
    background: rgba(9, 16, 25, 0.8);
    color: var(--text);
    font-size: 0.85rem;
    text-align: center;
}

.button--sm {
    min-height: 36px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    border-radius: 999px;
}

.button--danger {
    border-color: rgba(255, 132, 143, 0.28);
    background: rgba(255, 132, 143, 0.08);
    color: #ff9ca5;
}

.button--danger:hover {
    border-color: rgba(255, 132, 143, 0.48);
    background: rgba(255, 132, 143, 0.14);
}

.button--disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* Plugins du compte */

.account-plugin-list {
    display: grid;
    gap: 0.65rem;
}

.account-plugin {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid rgba(154, 177, 200, 0.12);
    border-radius: 14px;
    background: rgba(9, 16, 25, 0.52);
}

.account-plugin__identity,
.account-plugin__meta {
    display: flex;
    align-items: center;
    min-width: 0;
}

.account-plugin__identity {
    gap: 0.75rem;
}

.account-plugin__meta {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.account-plugin__mark {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(135, 245, 210, 0.2);
    background: rgba(135, 245, 210, 0.07);
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 700;
}

.account-plugin__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.account-plugin__copy strong {
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-plugin__copy span {
    color: var(--muted);
    font-size: 0.75rem;
}

.account-plugin__copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plugin-download-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.plugin-version-select {
    min-height: 36px;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border: 1px solid rgba(154, 177, 200, 0.18);
    border-radius: 999px;
    background: rgba(9, 16, 25, 0.8);
    color: var(--text);
    font: inherit;
    font-size: 0.8rem;
}

.plugin-version-select:focus-visible {
    outline: 2px solid rgba(135, 245, 210, 0.55);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Sub sections */

.sub-section {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(154, 177, 200, 0.1);
    padding-top: 1rem;
}

.sub-section__header {
    margin-bottom: 0.6rem;
}

.sub-section__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Subscriptions list */

.sub-list {
    display: grid;
    gap: 0;
}

.sub-row {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(154, 177, 200, 0.1);
}

.sub-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sub-row:first-child {
    padding-top: 0;
}

.sub-row__plugin {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-mono);
}

.sub-row__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sub-row__meta span:not(.status-pill) {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Content keys */

.key-list {
    display: grid;
    gap: 0;
}

.key-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(154, 177, 200, 0.1);
}

.key-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.key-row:first-child {
    padding-top: 0;
}

.key-row__plugin {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted-strong);
    font-family: var(--font-mono);
}

.key-row__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-row__value {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.03em;
    background: rgba(135, 245, 210, 0.07);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.key-copy-btn {
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(154, 177, 200, 0.2);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 140ms ease, border-color 140ms ease;
    white-space: nowrap;
}

.key-copy-btn:hover {
    color: var(--text);
    border-color: rgba(154, 177, 200, 0.4);
}

.key-copy-btn--done {
    color: var(--accent-strong);
    border-color: rgba(135, 245, 210, 0.35);
}

/* Status pill accent */

.status-pill--accent {
    border-color: rgba(135, 245, 210, 0.3);
    background: rgba(135, 245, 210, 0.1);
    color: var(--accent-strong);
}

.status-pill--danger {
    border-color: rgba(255, 181, 142, 0.34);
    background: rgba(255, 181, 142, 0.1);
    color: var(--danger);
}

/* ── Admin dashboard ─────────────────────────────── */

.admin-page .dash-name {
    max-width: none;
}

.admin-login {
    margin-top: 2rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.25rem;
    align-items: start;
}

.admin-side {
    display: grid;
    gap: 1.25rem;
}

.admin-panel {
    display: grid;
    gap: 1.25rem;
    padding: 1.35rem;
    border: 1px solid rgba(154, 177, 200, 0.14);
    border-radius: var(--radius-md);
    background: rgba(10, 18, 27, 0.82);
}

.admin-panel__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.admin-panel__head h2 {
    margin-top: 0.45rem;
    font-size: 1.25rem;
    line-height: 1.15;
}

.admin-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 140px auto;
    gap: 0.75rem;
    align-items: end;
    min-width: min(100%, 520px);
}

.admin-user-list {
    display: grid;
    gap: 0.9rem;
}

.admin-user {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(154, 177, 200, 0.13);
    border-radius: 14px;
    background: rgba(8, 16, 24, 0.72);
}

.admin-user__form {
    display: grid;
    gap: 0.9rem;
}

.admin-user__identity,
.admin-user__actions,
.admin-user__revoke {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-user__identity strong {
    display: block;
    max-width: 38rem;
    overflow: hidden;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user__identity span:not(.status-pill) {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.admin-user__fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-user__fields .field input,
.admin-user__fields .field select,
.admin-filter .field input,
.admin-filter .field select {
    min-height: 42px;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
}

.admin-user__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-user__meta span,
.admin-empty {
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(154, 177, 200, 0.12);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.76rem;
}

.admin-empty {
    border-radius: 14px;
    padding: 1rem;
}

.admin-user__access {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid rgba(154, 177, 200, 0.12);
    border-radius: 12px;
    background: rgba(3, 7, 13, 0.18);
}

.admin-user__access-head,
.plugin-access-row,
.plugin-access-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-user__access-head strong,
.plugin-access-row strong {
    color: var(--text);
    font-size: 0.88rem;
}

.admin-user__access-head span,
.plugin-access-row span {
    color: var(--muted);
    font-size: 0.76rem;
}

.plugin-access-list {
    display: grid;
    gap: 0.5rem;
}

.plugin-access-row {
    min-height: 46px;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(154, 177, 200, 0.1);
    border-radius: 10px;
    background: rgba(8, 16, 24, 0.42);
}

.plugin-access-row > div {
    display: grid;
    min-width: 0;
}

.plugin-access-form {
    align-items: end;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(154, 177, 200, 0.1);
}

.plugin-access-form .field:first-of-type {
    flex: 1;
}

.plugin-access-form .field input {
    min-height: 42px;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
}

.plugin-download-list {
    display: grid;
    border-top: 1px solid rgba(154, 177, 200, 0.1);
}

.plugin-download-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(154, 177, 200, 0.1);
}

.plugin-download-row:last-child {
    border-bottom: 0;
}

.plugin-download-row__identity {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.plugin-download-row__identity strong {
    color: var(--text);
    font-size: 0.92rem;
}

.plugin-download-row__identity span,
.plugin-download-row__unavailable {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    overflow-wrap: anywhere;
}

.plugin-download-row__action {
    display: grid;
    grid-template-columns: 120px auto;
    align-items: end;
    gap: 0.65rem;
}

.field--compact {
    gap: 0.3rem;
}

.field--compact span {
    font-size: 0.72rem;
}

.field--compact select {
    min-height: 36px;
    padding: 0.4rem 2rem 0.4rem 0.65rem;
    border-radius: 8px;
    font-size: 0.82rem;
}

.plan-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(90px, auto);
    gap: 1rem;
}

.plan-row__info {
    display: grid;
    gap: 0.2rem;
}

.plan-row__info strong {
    max-width: none;
}

.plan-row__info > span:not(.plan-status) {
    color: var(--muted);
    font-size: 0.76rem;
}

.plan-row__danger {
    display: flex;
    justify-content: flex-end;
    min-width: 90px;
    padding-left: 1rem;
    border-left: 1px solid rgba(154, 177, 200, 0.1);
}

.plan-row__danger .button--danger {
    opacity: 0.82;
}

.plan-row__danger .button--danger:hover {
    opacity: 1;
}

.admin-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-header .dash-name {
    margin-top: 0.35rem;
    letter-spacing: 0;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-action,
.admin-workspace {
    border: 1px solid rgba(154, 177, 200, 0.14);
    border-radius: 8px;
    background: rgba(10, 18, 27, 0.82);
}

.admin-action summary,
.admin-user__summary {
    cursor: pointer;
    list-style: none;
}

.admin-action summary::-webkit-details-marker,
.admin-user__summary::-webkit-details-marker {
    display: none;
}

.admin-action summary {
    position: relative;
    padding: 0.85rem 2.2rem 0.85rem 1rem;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
}

.admin-action summary::after,
.admin-user__summary::after {
    content: "+";
    position: absolute;
    right: 1rem;
    color: var(--muted);
    font-size: 1rem;
}

.admin-action[open] summary::after,
.admin-user[open] .admin-user__summary::after {
    content: "−";
}

.admin-action__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0 1rem 1rem;
    border-top: 1px solid rgba(154, 177, 200, 0.1);
}

.admin-action__form--short {
    grid-template-columns: 1fr auto;
    align-items: end;
}

.admin-action__form .field:first-of-type {
    margin-top: 0.85rem;
}

.admin-action__form .field input,
.admin-action__form .field select {
    min-height: 40px;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
}

.admin-action__form > .button,
.admin-action__form > .toggle-field {
    align-self: end;
    margin-top: 0.85rem;
}

.admin-workspace {
    padding: 1rem;
}

.admin-workspace__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(154, 177, 200, 0.12);
}

.admin-workspace__head h2 {
    margin-top: 0.3rem;
    font-size: 1.15rem;
    letter-spacing: 0;
}

.admin-user-list {
    gap: 0;
}

.admin-user {
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(154, 177, 200, 0.12);
    border-radius: 0;
    background: transparent;
}

.admin-user:last-child {
    border-bottom: 0;
}

.admin-user__summary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 68px;
    padding: 0.7rem 2.5rem 0.7rem 0;
}

.admin-user__summary:hover {
    background: rgba(135, 245, 210, 0.025);
}

.admin-user__identity {
    display: grid;
    justify-content: start;
    gap: 0.15rem;
}

.admin-user__identity strong {
    max-width: none;
}

.admin-user__identity span:not(.status-pill) {
    margin: 0;
    font-family: inherit;
    font-size: 0.78rem;
}

.admin-user__summary-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.admin-user__summary-meta .status-pill {
    min-height: 28px;
    padding: 0.35rem 0.6rem;
}

.admin-user__body {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-top: 1px solid rgba(154, 177, 200, 0.1);
    background: rgba(3, 7, 13, 0.22);
}

.admin-user__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user__access {
    border-radius: 8px;
}

.admin-user__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-user__id {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    overflow-wrap: anywhere;
}

.toggle-field {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-strong);
    font-size: 0.88rem;
    font-weight: 600;
}

.toggle-field input {
    width: 1rem;
    height: 1rem;
    accent-color: #69e7c2;
}

/* ── End dashboard ────────────────────────────────── */

.form-card,
.pricing-panel {
    display: grid;
    gap: 1rem;
}

.form-card h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.form-stack {
    display: grid;
    gap: 0.9rem;
}

.form-stack--inline {
    grid-template-columns: 1fr auto;
    align-items: end;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field span {
    font-size: 0.88rem;
    color: var(--muted-strong);
}

.field input,
.field select {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(154, 177, 200, 0.18);
    border-radius: 16px;
    background: rgba(9, 16, 25, 0.8);
    color: var(--text);
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: rgba(135, 245, 210, 0.4);
    box-shadow: 0 0 0 3px rgba(135, 245, 210, 0.12);
}

.field--grow {
    min-width: 0;
}

.journey-card,
.plan-card,
.detail-columns > div {
    display: grid;
    gap: 0.9rem;
}

.journey-list,
.plan-list,
.list-stack,
.detail-columns {
    display: grid;
    gap: 0.9rem;
}

.journey-step {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(154, 177, 200, 0.14);
    border-radius: 18px;
    background: rgba(10, 18, 27, 0.72);
}

.journey-step--done {
    border-color: rgba(135, 245, 210, 0.26);
    box-shadow: inset 0 0 0 1px rgba(135, 245, 210, 0.08);
}

.journey-step strong,
.plan-card h3,
.detail-columns h3 {
    color: var(--text);
}

.status-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(135, 245, 210, 0.18);
    background: rgba(135, 245, 210, 0.08);
    color: var(--accent-strong);
    font-size: 0.8rem;
    line-height: 1;
}

.plan-meta {
    font-size: 0.95rem;
    color: var(--muted-strong);
}

.bullet-list--compact {
    margin-top: 0.25rem;
}

.detail-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 920px) {
    .auth-grid,
    .dashboard-grid,
    .card-grid--two,
    .dash-grid,
    .admin-grid,
    .detail-columns,
    .form-stack--inline {
        grid-template-columns: 1fr;
    }

    .admin-filter,
    .admin-user__fields {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        grid-template-columns: 1fr;
    }

    .admin-workspace__head,
    .admin-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-user__summary {
        grid-template-columns: 1fr;
    }

    .admin-user__summary-meta {
        flex-wrap: wrap;
    }

    .plugin-access-row,
    .plugin-access-form {
        align-items: stretch;
        flex-direction: column;
    }

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

    .plugin-download-row__action {
        grid-template-columns: minmax(0, 1fr) auto;
    }

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

    .plan-row__danger {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding: 0.75rem 0 0;
        border-top: 1px solid rgba(154, 177, 200, 0.1);
        border-left: 0;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }

    .account-plugin,
    .plan-row {
        grid-template-columns: 1fr;
    }

    .account-plugin__meta,
    .plan-row__actions {
        justify-content: flex-start;
    }

    .account-status {
        flex-direction: column;
        padding: 1.25rem;
    }
}
