:root {
    --page-bg: #efe5d6;
    --page-bg-deep: #e3d3bc;
    --shell-neutral-flat: #faf8f2;
    --shell-neutral-start: #fffdf9;
    --shell-neutral-end: #f6f2ea;
    --card-bg: rgba(254, 252, 248, 0.92);
    --card-bg-strong: rgba(255, 255, 252, 0.98);
    --ink-strong: #2d251d;
    --ink-main: #4f4337;
    --ink-soft: rgba(79, 67, 55, 0.82);
    --ink-muted: rgba(79, 67, 55, 0.62);
    --accent: #8a5935;
    --accent-strong: #6f4326;
    --accent-soft: #c59667;
    --sage: #70724f;
    --sand: #c9ae86;
    --line: rgba(111, 73, 44, 0.16);
    --shadow: 0 24px 56px rgba(83, 58, 37, 0.10);
    --shadow-soft: 0 16px 34px rgba(83, 58, 37, 0.08);
    --blue-earth-bg: #dbeaf2;
    --blue-earth-bg-deep: #c5dbe8;
    --blue-earth-card: rgba(252, 253, 251, 0.94);
    --blue-earth-card-strong: rgba(255, 255, 254, 0.985);
    --blue-earth-ink: #2f4f65;
    --blue-earth-soft: rgba(47, 79, 101, 0.84);
    --blue-earth-muted: rgba(47, 79, 101, 0.64);
    --blue-earth-accent: #4f7a9a;
    --blue-earth-accent-strong: #3f6683;
    --blue-earth-accent-soft: #90b0c6;
    --blue-earth-line: rgba(79, 122, 154, 0.2);
    --blue-earth-shadow: 0 24px 56px rgba(54, 74, 84, 0.10);
    --shell-flat-bg: var(--shell-neutral-flat);
    --shell-radial-one: rgba(143, 188, 224, 0.05);
    --shell-radial-two: rgba(79, 122, 154, 0.025);
    --shell-radial-three: rgba(90, 131, 160, 0.015);
    --shell-gradient-start: var(--shell-neutral-start);
    --shell-gradient-end: var(--shell-neutral-end);
    --chrome-bg-start: rgba(243, 248, 252, 0.97);
    --chrome-bg-mid: rgba(243, 248, 252, 0.93);
    --chrome-bg-end: rgba(243, 248, 252, 0.79);
    --chrome-surface: rgba(249, 253, 255, 0.94);
    --chrome-surface-strong: rgba(253, 255, 255, 0.98);
    --chrome-surface-hover: rgba(244, 249, 252, 0.99);
    --chrome-border: rgba(79, 122, 154, 0.18);
    --chrome-border-strong: rgba(79, 122, 154, 0.28);
    --chrome-ink: #294d63;
    --chrome-ink-strong: #1f4158;
    --chrome-brand-ink: #27475d;
    --chrome-brand-soft: rgba(39, 71, 93, 0.82);
    --chrome-brand-accent: #3d6d90;
    --chrome-button-solid: #4f7a9a;
    --chrome-button-solid-hover: #3f6683;
    --chrome-session-bg: var(--chrome-button-solid);
    --chrome-session-bg-hover: var(--chrome-button-solid-hover);
    --chrome-session-border: color-mix(in srgb, var(--chrome-button-solid) 22%, white);
    --chrome-session-ink: #f6fbfd;
    --chrome-session-ink-hover: #ffffff;
    --pill-padding-y: 0.26rem;
    --pill-padding-x: 0.82rem;
    --pill-font-size: 0.78rem;
    --pill-line-height: 1.1;
}

html[data-omnis-theme="library"] {
    --shell-flat-bg: var(--shell-neutral-flat);
    --shell-radial-one: rgba(210, 176, 122, 0.06);
    --shell-radial-two: rgba(186, 152, 103, 0.03);
    --shell-radial-three: rgba(159, 123, 63, 0.018);
    --shell-gradient-start: var(--shell-neutral-start);
    --shell-gradient-end: var(--shell-neutral-end);
    --chrome-bg-start: rgba(250, 246, 239, 0.97);
    --chrome-bg-mid: rgba(250, 246, 239, 0.93);
    --chrome-bg-end: rgba(250, 246, 239, 0.79);
    --chrome-surface: rgba(254, 251, 246, 0.94);
    --chrome-surface-strong: rgba(255, 254, 250, 0.98);
    --chrome-surface-hover: rgba(249, 244, 236, 0.99);
    --chrome-border: rgba(186, 152, 103, 0.22);
    --chrome-border-strong: rgba(186, 152, 103, 0.34);
    --chrome-ink: #6c512c;
    --chrome-ink-strong: #5b4425;
    --chrome-brand-ink: #5d4423;
    --chrome-brand-soft: rgba(93, 68, 35, 0.82);
    --chrome-brand-accent: #9f7b3f;
    --chrome-button-solid: #9f7b3f;
    --chrome-button-solid-hover: #84642f;
    --chrome-session-bg: rgba(241, 228, 201, 0.96);
    --chrome-session-bg-hover: rgba(232, 214, 177, 0.98);
    --chrome-session-border: rgba(186, 152, 103, 0.3);
    --chrome-session-ink: #7c5f34;
    --chrome-session-ink-hover: #5b4425;
}

html[data-omnis-theme="active"] {
    --shell-flat-bg: var(--shell-neutral-flat);
    --shell-radial-one: rgba(111, 155, 120, 0.055);
    --shell-radial-two: rgba(92, 134, 101, 0.03);
    --shell-radial-three: rgba(154, 190, 162, 0.018);
    --shell-gradient-start: var(--shell-neutral-start);
    --shell-gradient-end: var(--shell-neutral-end);
    --chrome-bg-start: rgba(244, 249, 244, 0.97);
    --chrome-bg-mid: rgba(244, 249, 244, 0.93);
    --chrome-bg-end: rgba(244, 249, 244, 0.79);
    --chrome-surface: rgba(250, 253, 250, 0.94);
    --chrome-surface-strong: rgba(253, 255, 252, 0.98);
    --chrome-surface-hover: rgba(240, 247, 241, 0.99);
    --chrome-border: rgba(111, 155, 120, 0.24);
    --chrome-border-strong: rgba(111, 155, 120, 0.36);
    --chrome-ink: #4e6856;
    --chrome-ink-strong: #3f5647;
    --chrome-brand-ink: #466050;
    --chrome-brand-soft: rgba(70, 96, 80, 0.82);
    --chrome-brand-accent: #6f9b78;
    --chrome-button-solid: #6f9b78;
    --chrome-button-solid-hover: #5c8665;
    --chrome-session-bg: rgba(230, 240, 232, 0.96);
    --chrome-session-bg-hover: rgba(216, 232, 220, 0.98);
    --chrome-session-border: rgba(111, 155, 120, 0.3);
    --chrome-session-ink: #4e6856;
    --chrome-session-ink-hover: #3f5647;
}

html[data-omnis-theme="achievements"] {
    --shell-flat-bg: #f2f6f8;
    --shell-radial-one: rgba(143, 188, 224, 0.09);
    --shell-radial-two: rgba(79, 122, 154, 0.055);
    --shell-radial-three: rgba(90, 131, 160, 0.03);
    --shell-gradient-start: #f7fbfd;
    --shell-gradient-end: #eef4f8;
    --chrome-bg-start: rgba(242, 248, 252, 0.97);
    --chrome-bg-mid: rgba(242, 248, 252, 0.93);
    --chrome-bg-end: rgba(242, 248, 252, 0.79);
    --chrome-surface: rgba(249, 253, 255, 0.94);
    --chrome-surface-strong: rgba(253, 255, 255, 0.98);
    --chrome-surface-hover: rgba(244, 249, 252, 0.99);
    --chrome-border: rgba(79, 122, 154, 0.2);
    --chrome-border-strong: rgba(79, 122, 154, 0.3);
    --chrome-ink: #294d63;
    --chrome-ink-strong: #1f4158;
    --chrome-brand-ink: #27475d;
    --chrome-brand-soft: rgba(39, 71, 93, 0.82);
    --chrome-brand-accent: #3d6d90;
    --chrome-button-solid: #4f7a9a;
    --chrome-button-solid-hover: #3f6683;
    --chrome-session-bg: rgba(228, 241, 248, 0.96);
    --chrome-session-bg-hover: rgba(216, 233, 243, 0.98);
    --chrome-session-border: rgba(79, 122, 154, 0.28);
    --chrome-session-ink: #486f8d;
    --chrome-session-ink-hover: #36566c;
}

html[data-omnis-theme="results"] {
    --shell-flat-bg: #eff5f8;
    --shell-radial-one: rgba(143, 188, 224, 0.082);
    --shell-radial-two: rgba(79, 122, 154, 0.05);
    --shell-radial-three: rgba(90, 131, 160, 0.028);
    --shell-gradient-start: #f7fbfd;
    --shell-gradient-end: #edf4f8;
    --chrome-bg-start: rgba(243, 248, 252, 0.97);
    --chrome-bg-mid: rgba(243, 248, 252, 0.93);
    --chrome-bg-end: rgba(243, 248, 252, 0.79);
    --chrome-surface: rgba(249, 253, 255, 0.94);
    --chrome-surface-strong: rgba(253, 255, 255, 0.98);
    --chrome-surface-hover: rgba(244, 249, 252, 0.99);
    --chrome-border: rgba(79, 122, 154, 0.19);
    --chrome-border-strong: rgba(79, 122, 154, 0.29);
    --chrome-ink: #294d63;
    --chrome-ink-strong: #1f4158;
    --chrome-brand-ink: #27475d;
    --chrome-brand-soft: rgba(39, 71, 93, 0.82);
    --chrome-brand-accent: #3d6d90;
    --chrome-button-solid: #4f7a9a;
    --chrome-button-solid-hover: #3f6683;
}

html[data-omnis-theme="login"] {
    --shell-flat-bg: #eef5f8;
    --shell-radial-one: rgba(143, 188, 224, 0.076);
    --shell-radial-two: rgba(79, 122, 154, 0.046);
    --shell-radial-three: rgba(90, 131, 160, 0.024);
    --shell-gradient-start: #f7fbfd;
    --shell-gradient-end: #edf3f7;
    --chrome-bg-start: rgba(243, 248, 252, 0.97);
    --chrome-bg-mid: rgba(243, 248, 252, 0.93);
    --chrome-bg-end: rgba(243, 248, 252, 0.79);
    --chrome-surface: rgba(249, 253, 255, 0.94);
    --chrome-surface-strong: rgba(253, 255, 255, 0.98);
    --chrome-surface-hover: rgba(244, 249, 252, 0.99);
    --chrome-border: rgba(79, 122, 154, 0.18);
    --chrome-border-strong: rgba(79, 122, 154, 0.28);
    --chrome-ink: #294d63;
    --chrome-ink-strong: #1f4158;
    --chrome-brand-ink: #27475d;
    --chrome-brand-soft: rgba(39, 71, 93, 0.82);
    --chrome-brand-accent: #3d6d90;
    --chrome-button-solid: #4f7a9a;
    --chrome-button-solid-hover: #3f6683;
}

html[data-omnis-theme="public"] {
    --shell-flat-bg: var(--shell-neutral-flat);
    --shell-radial-one: rgba(143, 188, 224, 0.055);
    --shell-radial-two: rgba(79, 122, 154, 0.03);
    --shell-radial-three: rgba(90, 131, 160, 0.018);
    --shell-gradient-start: var(--shell-neutral-start);
    --shell-gradient-end: var(--shell-neutral-end);
    --chrome-bg-start: rgba(243, 248, 252, 0.97);
    --chrome-bg-mid: rgba(243, 248, 252, 0.93);
    --chrome-bg-end: rgba(243, 248, 252, 0.79);
    --chrome-surface: rgba(249, 253, 255, 0.94);
    --chrome-surface-strong: rgba(253, 255, 255, 0.98);
    --chrome-surface-hover: rgba(244, 249, 252, 0.99);
    --chrome-border: rgba(79, 122, 154, 0.18);
    --chrome-border-strong: rgba(79, 122, 154, 0.28);
    --chrome-ink: #294d63;
    --chrome-ink-strong: #1f4158;
    --chrome-brand-ink: #27475d;
    --chrome-brand-soft: rgba(39, 71, 93, 0.82);
    --chrome-brand-accent: #3d6d90;
    --chrome-button-solid: #4f7a9a;
    --chrome-button-solid-hover: #3f6683;
}

html[data-omnis-session-tab="library"] {
    --chrome-session-bg: rgba(241, 228, 201, 0.96);
    --chrome-session-bg-hover: rgba(232, 214, 177, 0.98);
    --chrome-session-border: rgba(186, 152, 103, 0.3);
    --chrome-session-ink: #7c5f34;
    --chrome-session-ink-hover: #5b4425;
}

html[data-omnis-session-tab="active"] {
    --chrome-session-bg: rgba(230, 240, 232, 0.96);
    --chrome-session-bg-hover: rgba(216, 232, 220, 0.98);
    --chrome-session-border: rgba(111, 155, 120, 0.3);
    --chrome-session-ink: #4e6856;
    --chrome-session-ink-hover: #3f5647;
}

html[data-omnis-session-tab="achievements"] {
    --chrome-session-bg: rgba(228, 241, 248, 0.96);
    --chrome-session-bg-hover: rgba(216, 233, 243, 0.98);
    --chrome-session-border: rgba(79, 122, 154, 0.28);
    --chrome-session-ink: #486f8d;
    --chrome-session-ink-hover: #36566c;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--shell-flat-bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, var(--shell-radial-one), transparent 42%),
        radial-gradient(circle at top right, var(--shell-radial-two), transparent 38%),
        radial-gradient(circle at bottom left, var(--shell-radial-three), transparent 40%),
        linear-gradient(180deg, var(--shell-gradient-start) 0%, var(--shell-flat-bg) 54%, var(--shell-gradient-end) 100%);
    color: var(--ink-main);
    font-family: "Aptos", "Trebuchet MS", sans-serif;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink-strong);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
    letter-spacing: -0.02em;
}

p,
li {
    line-height: 1.6;
}

.hero-grid,
.feature-grid,
.next-grid,
.catalog-shell,
.panel-stack,
.meta-row {
    display: grid;
    gap: 1.25rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.95fr);
    margin-bottom: 1.25rem;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

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

.catalog-shell {
    margin-bottom: 1.25rem;
}

.panel-stack {
    gap: 1rem;
}

.hero-card,
.blueprint-card,
.feature-card,
.next-card,
.status-card,
.not-found-card,
.panel-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-bg-strong), var(--card-bg));
    box-shadow: var(--shadow);
    border-radius: 1.4rem;
}

.hero-card,
.blueprint-card,
.next-card,
.not-found-card,
.panel-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.status-card {
    margin-top: 1.4rem;
    padding: 1rem 1.1rem;
}

.feature-card {
    padding: 1.3rem 1.2rem;
}

.muted-card {
    background: rgba(248, 245, 239, 0.76);
}

.eyebrow,
.feature-kicker,
.status-label,
.metric-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--ink-muted);
}

.lede {
    margin: 1rem 0 0;
    font-size: clamp(1.12rem, 2vw, 1.4rem);
    color: var(--ink-strong);
}

.body-copy,
.selection-copy {
    color: var(--ink-soft);
}

.selection-copy {
    font-style: italic;
}

.button-row,
.panel-actions {
    margin-top: 1.35rem;
}

.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    padding: 0.88rem 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--accent-soft), var(--accent));
    color: #fffaf4;
    box-shadow: 0 14px 30px rgba(111, 67, 38, 0.18);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
    filter: brightness(0.92);
}

.secondary-button {
    background: rgba(255, 252, 247, 0.82);
    color: var(--accent-strong);
    border: 1px solid rgba(111, 67, 38, 0.18);
    box-shadow: var(--shadow-soft);
}

.rail-list,
.step-list,
.flow-list {
    display: grid;
    gap: 0.9rem;
    padding-left: 1.1rem;
}

.metrics-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.metrics-strip strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.9rem;
    color: var(--ink-strong);
}

.feature-card h3,
.next-card h2,
.blueprint-card h2,
.panel-card h2 {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

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

.feature-card::after {
    content: "";
    position: absolute;
    inset: auto -1.8rem -1.8rem auto;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(112, 114, 79, 0.18), transparent 68%);
}

.panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.meta-row {
    grid-template-columns: repeat(auto-fit, minmax(10rem, max-content));
    gap: 0.75rem;
    margin-top: 1rem;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: var(--pill-padding-y) var(--pill-padding-x);
    background: rgba(112, 114, 79, 0.12);
    border: 1px solid rgba(112, 114, 79, 0.18);
    color: var(--sage);
    font-size: var(--pill-font-size);
    line-height: var(--pill-line-height);
    font-weight: 700;
}

.text-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}

.not-found-card {
    max-width: 40rem;
}

.public-page-shell {
    display: grid;
    gap: 1.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.public-page-shell .hero-card,
.public-page-shell .blueprint-card,
.public-page-shell .feature-card,
.public-page-shell .next-card,
.public-page-shell .status-card,
.public-page-shell .not-found-card,
.public-page-shell .panel-card {
    border-color: var(--blue-earth-line);
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.99), rgba(238, 246, 249, 0.95));
    box-shadow: var(--blue-earth-shadow);
}

.public-page-shell .eyebrow,
.public-page-shell .feature-kicker,
.public-page-shell .status-label,
.public-page-shell .metric-label,
.public-page-shell .body-copy,
.public-page-shell .selection-copy {
    color: var(--blue-earth-soft);
}

.public-page-shell h1,
.public-page-shell h2,
.public-page-shell h3,
.public-page-shell .lede,
.public-page-shell .metrics-strip strong,
.public-page-shell .meta-pill {
    color: var(--blue-earth-ink);
}

.public-page-shell .muted-card {
    background: rgba(238, 246, 249, 0.84);
}

.public-page-shell .feature-card::after {
    background: radial-gradient(circle, rgba(79, 122, 154, 0.18), transparent 68%);
}

.public-page-shell .meta-pill {
    background: rgba(238, 246, 250, 0.94);
    border-color: rgba(79, 122, 154, 0.22);
}

.public-page-shell .primary-button {
    background: linear-gradient(135deg, var(--blue-earth-accent-soft), var(--blue-earth-accent));
    box-shadow: 0 14px 30px rgba(72, 96, 109, 0.2);
}

.public-page-shell .secondary-button,
.public-page-shell .text-link {
    color: var(--blue-earth-accent-strong);
}

.public-page-shell .secondary-button {
    background: rgba(246, 250, 252, 0.94);
    border: 1px solid rgba(79, 122, 154, 0.18);
    box-shadow: 0 14px 28px rgba(54, 74, 84, 0.10);
}

.anonymous-surface {
    gap: 1rem;
}

.anonymous-hero-card,
.anonymous-surface .panel-card,
.anonymous-footer-note {
    display: grid;
    gap: 1rem;
}

.anonymous-copy-block,
.anonymous-copy-stack,
.anonymous-faq-item-body,
.anonymous-footer-note {
    display: grid;
    gap: 0.75rem;
}

.anonymous-copy-block h2,
.anonymous-surface .panel-card h2,
.anonymous-footer-note h2 {
    margin: 0;
}

.anonymous-cta-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.anonymous-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.anonymous-link-row .text-link {
    margin-top: 0;
}

.anonymous-faq-list {
    display: grid;
    gap: 0.85rem;
}

.anonymous-faq-item {
    border: 1px solid var(--blue-earth-line);
    border-radius: 1rem;
    background: rgba(250, 253, 254, 0.92);
    box-shadow: 0 10px 22px rgba(54, 74, 84, 0.08);
    overflow: hidden;
}

.anonymous-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    color: var(--blue-earth-ink);
    font-weight: 700;
}

.anonymous-faq-item summary::-webkit-details-marker {
    display: none;
}

.anonymous-faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--blue-earth-accent-strong);
    font-size: 1.15rem;
    line-height: 1;
}

.anonymous-faq-item[open] summary {
    background: rgba(226, 240, 246, 0.88);
}

.anonymous-faq-item[open] summary::after {
    content: "\2212";
}

.anonymous-faq-item-body {
    padding: 0 1.1rem 1.05rem;
}

.anonymous-footer-note {
    border: 1px solid var(--blue-earth-line);
    border-radius: 1rem;
    background: rgba(235, 246, 250, 0.9);
    box-shadow: 0 12px 26px rgba(54, 74, 84, 0.08);
    padding: 1rem 1.1rem;
}

@media (max-width: 980px) {
    .hero-grid,
    .feature-grid,
    .next-grid {
        grid-template-columns: 1fr;
    }

    .panel-card-header {
        flex-direction: column;
    }

    .anonymous-cta-cluster {
        flex-direction: column;
        align-items: stretch;
    }

    .anonymous-cta-cluster .primary-button,
    .anonymous-cta-cluster .secondary-button {
        width: 100%;
    }

    .anonymous-link-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}
