:root {
    --bg: #f4f7f6;
    --surface: #ffffff;
    --surface-accent: #eef6f4;
    --text: #102a2a;
    --muted: #5e7470;
    --line: #d6e2df;
    --primary: #0b6e69;
    --primary-dark: #094f4c;
    --secondary: #ecb64c;
    --danger: #af3a34;
    --success: #1f7a4a;
    --shadow: 0 20px 40px rgba(16, 42, 42, 0.08);
}

.measurement-controls {
    padding: 1.2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.measurement-controls summary { cursor: pointer; font-weight: 700; }
.measurement-controls p { line-height: 1.6; }
.marketing-guide { max-width: 850px; margin-inline: auto; }
.marketing-guide .card h2:not(:first-child) { margin-top: 2rem; }

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: linear-gradient(180deg, #f7fbfa 0%, #f0f5f4 100%);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
}

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

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-account-form {
    margin: 0;
}

.nav-account-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.nav-account-link {
    font-weight: 700;
    white-space: nowrap;
}

.nav-cta {
    padding: 0.65rem 1rem;
    white-space: nowrap;
}

.page-shell {
    padding: 2rem 0 4rem;
}

.hero,
.grid {
    display: grid;
    gap: 1.5rem;
}

.hero {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: 2rem 0 2.5rem;
}

.hero h1,
.page-heading h1 {
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    line-height: 1.05;
    margin: 0.2rem 0 1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: var(--primary);
    margin: 0;
}

.lede,
.page-heading p,
.card p,
.muted {
    color: var(--muted);
    line-height: 1.6;
}

.hero-panel,
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.card.accent {
    background: var(--surface-accent);
}

.metric {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.metric:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.metric-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.metric strong {
    display: block;
    font-size: 1.15rem;
}

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

.hero-actions,
.pager {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.button.primary {
    background: var(--primary);
    color: #fff;
}

.button.secondary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

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

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

.field label {
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid #bfd1cd;
    background: #fff;
    font: inherit;
}

.field textarea {
    min-height: 8rem;
    resize: vertical;
}

.field input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
}

.field ul.errorlist,
.field .helptext ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.nav-account-button:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(11, 110, 105, 0.25);
    outline-offset: 2px;
}

.messages {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.message {
    border-radius: 16px;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    background: #fff;
}

.message.success {
    border-color: rgba(31, 122, 74, 0.25);
    background: rgba(31, 122, 74, 0.08);
}

.message.warning {
    border-color: rgba(236, 182, 76, 0.25);
    background: rgba(236, 182, 76, 0.16);
}

.message.error {
    border-color: rgba(175, 58, 52, 0.25);
    background: rgba(175, 58, 52, 0.08);
}

.error-text {
    color: var(--danger);
    font-size: 0.95rem;
}

.status.good {
    color: var(--success);
}

.status.warn {
    color: var(--danger);
}

.summary-kpi,
.price {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feature-list {
    padding-left: 1.1rem;
    line-height: 1.8;
}

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

dl {
    margin: 0;
}

dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 1rem;
}

dd {
    margin: 0.2rem 0 0;
    line-height: 1.5;
}

.narrow {
    max-width: 680px;
}

.app-layout {
    align-items: start;
}

.purchase-from-app {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.access-list,
.results-header {
    display: grid;
    gap: 1rem;
}

.access-item + .access-item {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--line);
}

.visual-app-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
}

.filter-rail {
    position: sticky;
    top: 96px;
}

.kpi-grid,
.chart-grid {
    display: grid;
    gap: 1rem;
}

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

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

.kpi-card,
.chart-card {
    min-height: 100%;
}

.chart-card canvas {
    width: 100% !important;
    height: 280px !important;
    margin-top: 0.75rem;
}

.callout-card {
    margin-bottom: 1.5rem;
}

.profile-heading {
    margin-bottom: 1.5rem;
}

.profile-heading-row,
.profile-section-heading,
.profile-review-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.profile-heading-row > div:first-child,
.profile-section-heading > div {
    min-width: 0;
}

.profile-heading-row h1 {
    overflow-wrap: anywhere;
}

.profile-nav-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
    padding-top: 0.4rem;
}

.profile-summary-grid,
.profile-record-grid,
.profile-field-grid {
    display: grid;
    gap: 1rem;
}

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

.profile-summary-grid .card,
.profile-subcard,
.profile-record-card {
    min-width: 0;
}

.profile-summary-grid h2 {
    margin: 0.5rem 0 0;
    font-size: 1.25rem;
    overflow-wrap: anywhere;
}

.profile-section {
    margin-bottom: 1.5rem;
}

.profile-section-heading {
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.profile-section-heading h2,
.profile-subcard h3,
.profile-record-card h3,
.profile-review-card h4 {
    margin: 0.35rem 0 0;
}

.profile-count,
.profile-review-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    background: var(--surface-accent);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.profile-count--review,
.profile-review-badge {
    background: rgba(236, 182, 76, 0.18);
    color: #815511;
}

.profile-link-list {
    display: grid;
    gap: 0.65rem;
}

.profile-link-list form {
    margin: 0;
}

.profile-link-list a,
.profile-link-list button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-accent);
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.profile-link-list a:hover,
.profile-link-list button:hover {
    border-color: var(--primary);
}

.profile-inline-link {
    display: inline-flex;
    margin-top: 1rem;
    font-weight: 700;
}

.profile-record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.profile-record-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-summary-grid--nested {
    margin: 0;
}

.profile-subcard,
.profile-record-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfc;
    padding: 1rem;
}

.profile-record-card summary,
.profile-raw-details summary {
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.profile-record-card[open] summary,
.profile-raw-details[open] summary {
    margin-bottom: 0.75rem;
}

.profile-subheading {
    margin: 1.5rem 0 0;
}

.profile-subsection-heading,
.profile-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.profile-subsection-heading {
    margin-top: 1.5rem;
}

.profile-subsection-heading .profile-subheading {
    margin-top: 0.35rem;
}

.profile-pagination {
    margin-top: 1rem;
}

.profile-pagination > span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-code-value {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.profile-review-section {
    border-color: rgba(236, 182, 76, 0.5);
}

.profile-review-group + .profile-review-group {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.profile-review-card-heading {
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.profile-raw-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

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

.profile-field {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdfc;
}

.profile-field span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-field strong {
    display: block;
    line-height: 1.45;
}

@media (max-width: 860px) {
    .hero,
    .two-up,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .nav-shell,
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 0;
    }

    .visual-app-layout,
    .kpi-grid,
    .chart-grid {
        grid-template-columns: 1fr;
    }

    .filter-rail {
        position: static;
    }

    .profile-heading-row,
    .profile-section-heading,
    .profile-subsection-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-nav-actions {
        justify-content: flex-start;
    }

    .profile-summary-grid,
    .profile-record-grid,
    .profile-record-grid--compact,
    .profile-field-grid {
        grid-template-columns: 1fr;
    }
}

/* Standalone records share the explorer workbench theme while preserving their
   server-rendered profile layout. */
body.record-detail-page {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-accent: #e8f0ff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #d9e2ec;
    --line-strong: #bdc9d8;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #a15c07;
    --danger: #b42318;
    --success: #15803d;
    --focus: #60a5fa;
    --shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.record-detail-page .site-header {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
}

body.record-detail-page .nav-shell {
    width: min(1580px, calc(100% - 2rem));
    min-height: 58px;
}

body.record-detail-page .brand {
    color: var(--text);
    font-size: 1rem;
    letter-spacing: -0.015em;
}

body.record-detail-page .nav-links {
    gap: 0.25rem;
}

body.record-detail-page .nav-links a {
    border-radius: 6px;
    color: var(--muted);
    padding: 0.48rem 0.64rem;
    font-size: 0.82rem;
    font-weight: 650;
}

body.record-detail-page .nav-links a:hover,
body.record-detail-page .nav-links a:focus-visible {
    background: #f1f5f9;
    color: var(--text);
}

body.record-detail-page .nav-links .nav-cta {
    background: var(--primary);
    color: #ffffff;
}

body.record-detail-page .container.page-shell {
    width: min(1580px, calc(100% - 1.5rem));
    padding: 0.75rem 0 2rem;
}

body.record-detail-page .profile-heading {
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

body.record-detail-page .page-heading h1 {
    margin: 0.18rem 0 0;
    color: var(--text);
    font-size: clamp(1.4rem, 2.4vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

body.record-detail-page .page-heading p:last-child {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

body.record-detail-page .eyebrow,
body.record-detail-page dt,
body.record-detail-page .profile-field span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

body.record-detail-page .button {
    min-height: 2.2rem;
    border-radius: 6px;
    padding: 0.42rem 0.68rem;
    font-size: 0.78rem;
}

body.record-detail-page .button.secondary {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--primary);
}

body.record-detail-page .button:hover {
    border-color: var(--primary);
}

body.record-detail-page .card,
body.record-detail-page .profile-subcard,
body.record-detail-page .profile-record-card,
body.record-detail-page .profile-field {
    border-color: var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

body.record-detail-page .card {
    padding: 0.9rem;
}

body.record-detail-page .profile-summary-grid,
body.record-detail-page .profile-section {
    margin-bottom: 0.75rem;
}

body.record-detail-page .profile-summary-grid {
    gap: 0.75rem;
}

body.record-detail-page .profile-summary-grid .card h2 {
    margin-top: 0.2rem;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.25;
}

body.record-detail-page .profile-summary-grid .card dl {
    margin-top: 0.55rem;
}

body.record-detail-page dt {
    margin-top: 0.65rem;
}

body.record-detail-page dd {
    margin-top: 0.12rem;
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.4;
}

body.record-detail-page .profile-section-heading {
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
}

body.record-detail-page .profile-section-heading h2,
body.record-detail-page .profile-subcard h3,
body.record-detail-page .profile-record-card h3,
body.record-detail-page .profile-review-card h4 {
    color: var(--text);
    font-size: 1rem;
}

body.record-detail-page .profile-count,
body.record-detail-page .profile-review-badge {
    background: var(--surface-accent);
    color: var(--primary);
    font-size: 0.74rem;
}

body.record-detail-page .profile-count--review,
body.record-detail-page .profile-review-badge {
    background: #fff2c6;
    color: #8a5200;
}

body.record-detail-page .profile-link-list {
    gap: 0.5rem;
}

body.record-detail-page .profile-link-list a,
body.record-detail-page .profile-link-list button {
    border-color: var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--primary);
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
}

body.record-detail-page .profile-link-list a:hover,
body.record-detail-page .profile-link-list button:hover {
    border-color: var(--primary);
    background: var(--surface-accent);
}

/* Public Data Lists storefront. These rules stay scoped so the existing
   authenticated workbenches retain their established density and theme. */
body.storefront-page {
    --storefront-navy: #0d2a3a;
    --storefront-ink: #112f3c;
    --storefront-mint: #dff4ee;
    --storefront-coral: #ec7d5d;
    background:
        radial-gradient(circle at 88% 3%, rgba(223, 244, 238, 0.82), transparent 28rem),
        linear-gradient(180deg, #fbfdfc 0%, #f3f8f6 100%);
    color: var(--storefront-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.storefront-page .site-header {
    background: rgba(251, 253, 252, 0.94);
}

body.storefront-page .brand {
    color: var(--storefront-navy);
    font-size: 1rem;
    letter-spacing: -0.015em;
}

body.storefront-page .brand-mark {
    background: var(--storefront-navy);
}

body.storefront-page .nav-links a,
body.storefront-page .nav-account-link,
body.storefront-page .nav-account-button {
    color: #3d5963;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 650;
}

body.storefront-page .nav-links a:hover,
body.storefront-page .nav-account-link:hover,
body.storefront-page .nav-account-button:hover {
    color: var(--primary);
}

body.storefront-page .page-shell {
    padding-top: 0;
}

body.storefront-page h1,
body.storefront-page h2,
body.storefront-page h3 {
    color: var(--storefront-navy);
    letter-spacing: -0.03em;
}

body.storefront-page h2 {
    font-size: clamp(1.6rem, 2.7vw, 2.5rem);
    line-height: 1.12;
}

body.storefront-page h3 {
    font-size: 1.15rem;
}

body.storefront-page .button {
    min-height: 2.85rem;
    font-family: inherit;
    font-size: 0.92rem;
}

body.storefront-page .button:hover {
    transform: translateY(-1px);
}

body.storefront-page .button.primary {
    background: var(--storefront-navy);
}

body.storefront-page .button.secondary {
    border-color: #9eb9b4;
}

.storefront-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
    gap: clamp(2rem, 6vw, 5.5rem);
    align-items: center;
    min-height: 620px;
    padding: 5rem 0;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0.7rem 0 1.25rem;
    font-size: clamp(3rem, 6vw, 5.75rem);
    line-height: 0.98;
}

.hero-copy .lede {
    max-width: 700px;
    font-size: 1.12rem;
}

.inline-proof {
    display: flex;
    gap: 0.65rem 1.4rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 0;
    padding: 0;
    color: #557077;
    font-size: 0.82rem;
    font-weight: 650;
    list-style: none;
}

.inline-proof li::before {
    content: "✓";
    margin-right: 0.4rem;
    color: var(--primary);
}

.hero-data-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    background: var(--storefront-navy);
    box-shadow: 0 30px 70px rgba(13, 42, 58, 0.22);
    color: #fff;
    padding: 1.6rem;
}

.hero-data-card::before {
    content: "";
    position: absolute;
    width: 12rem;
    height: 12rem;
    top: -7rem;
    right: -5rem;
    border-radius: 50%;
    background: rgba(94, 203, 169, 0.16);
}

.hero-data-heading,
.sample-filter,
.sample-total,
.card-heading-row,
.builder-heading,
.order-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.hero-data-heading {
    margin-bottom: 1.2rem;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sample-filter {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1rem 0;
}

.sample-filter span,
.sample-total span,
.hero-data-card p {
    color: rgba(255, 255, 255, 0.68);
}

.sample-total {
    margin: 0.4rem -0.25rem 0;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.09);
    padding: 1rem;
}

.hero-data-card p {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    line-height: 1.55;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: #edf2f1;
    color: #526a70;
    padding: 0.42rem 0.68rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.hero-data-card .status-pill {
    background: rgba(121, 227, 193, 0.15);
    color: #9ce8d0;
}

.status-pill--ready {
    background: rgba(31, 122, 74, 0.1);
    color: var(--success);
}

.status-pill--pending {
    background: rgba(236, 182, 76, 0.17);
    color: #805812;
}

.status-pill--failed {
    background: rgba(175, 58, 52, 0.09);
    color: var(--danger);
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid var(--line);
    margin-bottom: 6rem;
}

.trust-strip span {
    padding: 1.1rem;
    color: #587079;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.trust-strip span + span {
    border-left: 1px solid var(--line);
}

.section-heading {
    max-width: 720px;
    margin: 5.5rem 0 2rem;
}

.section-heading h2 {
    margin: 0.5rem 0 0.8rem;
}

.section-heading p:last-child {
    color: var(--muted);
    line-height: 1.65;
}

.centered {
    margin-inline: auto;
    text-align: center;
}

.centered-actions {
    justify-content: center;
}

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

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

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

.feature-card {
    min-height: 240px;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
}

.feature-card h3 {
    margin: 2rem 0 0.5rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.65;
}

.step-number {
    color: var(--storefront-coral);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.compact-features .feature-card {
    min-height: 180px;
}

.compact-features .feature-card h3 {
    margin-top: 0;
}

.split-callout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    margin: 6rem 0;
    border-radius: 1.5rem;
    background: var(--storefront-mint);
    padding: clamp(2rem, 6vw, 4.5rem);
}

.split-callout h2 {
    margin: 0.5rem 0 1rem;
}

.split-callout p:not(.eyebrow) {
    color: #4d6a70;
    line-height: 1.65;
}

.text-link {
    font-weight: 750;
}

.field-cloud {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-content: center;
}

.field-cloud span {
    border: 1px solid rgba(13, 42, 58, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    padding: 0.7rem 0.9rem;
    color: #31545e;
    font-size: 0.82rem;
    font-weight: 700;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 5rem 0 2rem;
    border-radius: 1.5rem;
    background: var(--storefront-navy);
    padding: clamp(2rem, 5vw, 3.5rem);
}

.cta-band h2,
.cta-band .eyebrow {
    color: #fff;
}

.cta-band h2 {
    margin: 0.5rem 0 0;
}

.button.light {
    background: #fff;
    color: var(--storefront-navy);
    white-space: nowrap;
}

.storefront-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--line);
    padding: 3.5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.5rem;
}

.footer-grid p,
.footer-note {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-grid nav {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    font-size: 0.86rem;
}

.footer-grid nav strong {
    color: var(--storefront-navy);
}

.footer-note {
    margin: 3rem 0 0;
    border-top: 1px solid var(--line);
    padding: 1.4rem 0 0;
}

.public-heading {
    max-width: 840px;
    margin: 0 auto;
    padding: 5.5rem 0 3.5rem;
}

.public-heading h1 {
    font-size: clamp(2.7rem, 5vw, 4.75rem);
}

.public-heading > p:not(.eyebrow) {
    max-width: 720px;
    font-size: 1.08rem;
}

.public-heading.centered > p:not(.eyebrow) {
    margin-inline: auto;
}

.public-heading .hero-actions {
    margin-top: 1.5rem;
}

.public-section {
    margin: 2rem 0 5rem;
}

.soft-card {
    background: var(--storefront-mint);
}

.boundary-card {
    border-left: 5px solid var(--storefront-coral);
}

.check-list {
    display: grid;
    gap: 0.8rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.55rem;
    color: #405f68;
    line-height: 1.5;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

.notice-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    margin: 4rem 0;
    border: 1px solid #b9d8d0;
    border-radius: 1rem;
    background: #f2fbf8;
    padding: 1.5rem;
}

.notice-card h2 {
    margin: 0;
    font-size: 1.25rem;
}

.notice-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.notice-icon,
.success-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: var(--storefront-mint);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
}

.pricing-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    max-width: 920px;
    margin: 1rem auto 4rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: var(--shadow);
}

.pricing-copy,
.pricing-formula {
    padding: clamp(2rem, 5vw, 3.5rem);
}

.pricing-copy h2 {
    margin: 0.5rem 0;
}

.pricing-copy > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.6;
}

.pricing-formula {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: var(--storefront-navy);
    color: #fff;
}

.pricing-formula > span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.pricing-formula > strong {
    margin: 0.4rem 0;
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: -0.06em;
}

.pricing-formula .button {
    width: 100%;
    margin-top: 1.5rem;
    background: #fff;
    color: var(--storefront-navy);
}

.faq-preview {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    margin: 5rem 0;
}

.faq-preview h2 {
    margin-top: 0.5rem;
}

.faq-preview details,
.faq-list details {
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 0;
}

.faq-preview summary,
.faq-list summary {
    position: relative;
    padding-right: 2.2rem;
    color: var(--storefront-navy);
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.faq-preview summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-preview summary::after,
.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    color: var(--primary);
    font-size: 1.3rem;
}

.faq-preview details[open] summary::after,
.faq-list details[open] summary::after {
    content: "−";
}

.faq-preview details p,
.faq-list details p {
    max-width: 760px;
    margin: 0.8rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto 5rem;
}

.faq-list summary {
    font-size: 1.05rem;
}

.timeline {
    max-width: 850px;
    margin: 1rem auto 5rem;
}

.timeline article {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline article::before {
    content: "";
    position: absolute;
    top: 3rem;
    bottom: 0;
    left: 1.5rem;
    width: 1px;
    background: var(--line);
}

.timeline article:last-child::before {
    display: none;
}

.timeline article > span {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--storefront-navy);
    color: #fff;
    font-weight: 800;
}

.timeline h2 {
    margin: 0;
    font-size: 1.4rem;
}

.timeline p {
    color: var(--muted);
    line-height: 1.65;
}

.builder-heading {
    align-items: flex-end;
    padding: 4rem 0 2.5rem;
}

.builder-heading > div:first-child {
    max-width: 760px;
}

.builder-heading h1 {
    margin: 0.5rem 0 0.8rem;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.02;
}

.builder-heading p:last-child {
    color: var(--muted);
    line-height: 1.6;
}

.builder-rate {
    flex: 0 0 auto;
    border-left: 2px solid var(--storefront-coral);
    padding-left: 1rem;
}

.builder-rate span,
.builder-rate strong {
    display: block;
}

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

.builder-rate strong {
    margin-top: 0.25rem;
}

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

.builder-filter-card {
    position: sticky;
    top: 92px;
    box-shadow: none;
}

.card-heading-row {
    align-items: flex-start;
}

.card-heading-row h2 {
    margin: 0.35rem 0 0;
    font-size: 1.45rem;
}

.builder-form {
    margin-top: 1.5rem;
}

.builder-results {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.quote-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--storefront-navy);
    color: #fff;
    padding: 1.75rem;
}

.quote-card .eyebrow,
.quote-card .snapshot-line {
    color: rgba(255, 255, 255, 0.7);
}

.quote-count {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    letter-spacing: -0.06em;
}

.quote-count-label {
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
}

.snapshot-line {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.quote-price-block {
    min-width: 180px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    padding-left: 2rem;
    text-align: right;
}

.quote-price-block span,
.quote-price-block strong,
.quote-price-block small {
    display: block;
}

.quote-price-block span,
.quote-price-block small {
    color: rgba(255, 255, 255, 0.65);
}

.quote-price-block strong {
    margin: 0.2rem 0;
    font-size: 2.25rem;
}

.action-card h2,
.empty-state h2 {
    margin: 0.45rem 0;
    font-size: 1.55rem;
}

.action-card > p:not(.eyebrow),
.empty-state p {
    color: var(--muted);
    line-height: 1.6;
}

.preview-card {
    min-width: 0;
    box-shadow: none;
}

.preview-table {
    min-width: 860px;
}

.preview-table td {
    color: #405b64;
    font-size: 0.86rem;
}

.preview-table td strong,
.preview-table td small {
    display: block;
}

.preview-table td small {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.builder-placeholder {
    display: grid;
    place-items: center;
    min-height: 430px;
    border: 1px dashed #a9bfbb;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.45);
    padding: 2rem;
    text-align: center;
}

.builder-placeholder h2 {
    margin: -1rem 0 0;
}

.builder-placeholder > p:not(.eyebrow) {
    max-width: 540px;
    margin: -1rem auto 0;
    color: var(--muted);
    line-height: 1.6;
}

.placeholder-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--storefront-mint);
    color: var(--primary);
    font-size: 2rem;
}

.data-disclaimer {
    border-left: 3px solid #a7bdb9;
    padding: 0.4rem 0 0.4rem 1rem;
}

.data-disclaimer strong {
    font-size: 0.8rem;
}

.data-disclaimer p {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.data-disclaimer.compact {
    margin-top: 1.5rem;
}

.sales-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: start;
    max-width: 980px;
    margin: 0 auto 5rem;
}

.form-card h2 {
    margin-top: 0;
}

.request-summary {
    background: var(--storefront-mint);
}

.filter-summary {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.filter-summary > div {
    border-bottom: 1px solid rgba(13, 42, 58, 0.1);
    padding-bottom: 0.7rem;
}

.filter-summary dt {
    margin: 0;
}

.filter-summary dd {
    overflow-wrap: anywhere;
    font-weight: 700;
}

.filter-summary--inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legal-heading {
    border-bottom: 1px solid var(--line);
}

.legal-copy {
    max-width: 820px;
    margin: 3rem auto 6rem;
}

.legal-copy section {
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}

.legal-copy h2 {
    font-size: 1.25rem;
}

.legal-copy p {
    color: #506a73;
    line-height: 1.75;
}

.auth-shell,
.completion-shell {
    display: grid;
    place-items: center;
    min-height: 68vh;
    padding: 4rem 0;
}

.auth-card,
.completion-card {
    width: min(100%, 560px);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 28px 65px rgba(13, 42, 58, 0.1);
    padding: clamp(1.5rem, 5vw, 3rem);
}

.auth-shell--wide .auth-card {
    width: min(100%, 680px);
}

.auth-card h1,
.completion-card h1 {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.auth-card > p:not(.eyebrow),
.completion-card > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.6;
}

.auth-card form {
    margin-top: 1.5rem;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
}

.auth-footnote {
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.success-icon {
    margin-bottom: 0.8rem;
}

.success-icon--warning {
    background: rgba(236, 182, 76, 0.18);
    color: #805812;
}

.account-heading {
    padding-bottom: 1.5rem;
}

.orders-card {
    margin-top: 1.5rem;
}

.orders-table td strong,
.orders-table td small {
    display: block;
}

.orders-table td small {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.inline-empty {
    padding: 2.5rem 0 1rem;
    text-align: center;
}

.inline-empty h3 {
    margin-bottom: 0;
}

.order-heading {
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.order-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.order-status-card h2 {
    margin-bottom: 0.5rem;
}

.order-status-card > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.6;
}

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

.receipt-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0;
}

.receipt-list dt,
.receipt-list dd {
    margin: 0;
}

.receipt-list dd {
    font-weight: 700;
    text-align: right;
}

.order-filters-card {
    margin-top: 1.5rem;
}

.progress-spinner {
    display: inline-block;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 0.75rem;
    border: 4px solid var(--storefront-mint);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: storefront-spin 0.85s linear infinite;
}

@keyframes storefront-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .progress-spinner { animation: none; }
    body.storefront-page .button:hover { transform: none; }
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 2rem 0 1rem;
}

.progress-steps > div {
    position: relative;
    display: grid;
    gap: 0.4rem;
    justify-items: center;
    color: #71868c;
    font-size: 0.72rem;
    text-align: center;
}

.progress-steps > div::after {
    content: "";
    position: absolute;
    top: 0.85rem;
    left: calc(50% + 1rem);
    width: calc(100% - 2rem);
    height: 2px;
    background: var(--line);
}

.progress-steps > div:last-child::after {
    display: none;
}

.progress-steps span {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: #e4ecea;
    font-weight: 800;
}

.progress-steps .complete {
    color: var(--success);
}

.progress-steps .complete span {
    background: var(--success);
    color: #fff;
}

@media (max-width: 980px) {
    .nav-shell {
        align-items: flex-start;
        gap: 0.75rem;
        padding-block: 0.8rem;
    }

    .nav-actions,
    .nav-links {
        flex-wrap: wrap;
    }

    .storefront-hero,
    .pricing-card,
    .builder-layout,
    .sales-layout,
    .order-layout,
    .faq-preview {
        grid-template-columns: 1fr;
    }

    .storefront-hero {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-data-card {
        max-width: 620px;
    }

    .builder-filter-card {
        position: static;
    }

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

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

@media (max-width: 720px) {
    body.storefront-page .container {
        width: min(100% - 1.25rem, 1120px);
    }

    .nav-shell {
        flex-direction: column;
    }

    .nav-shell,
    .nav-actions,
    .nav-links {
        align-items: flex-start;
    }

    .nav-actions {
        width: 100%;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, auto);
    }

    .nav-cta {
        min-height: 2.25rem !important;
        padding: 0.45rem 0.8rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.7rem, 15vw, 4.2rem);
    }

    .trust-strip,
    .three-up,
    .four-up,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .trust-strip span + span {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .feature-card {
        min-height: auto;
    }

    .feature-card h3 {
        margin-top: 1rem;
    }

    .split-callout {
        grid-template-columns: 1fr;
        margin: 4rem 0;
    }

    .cta-band,
    .builder-heading,
    .order-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-band .button {
        width: 100%;
    }

    .public-heading {
        padding-top: 3.5rem;
    }

    .quote-card {
        grid-template-columns: 1fr;
    }

    .quote-price-block {
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        border-left: 0;
        padding-top: 1rem;
        padding-left: 0;
        text-align: left;
    }

    .card-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-links {
        flex-direction: column;
    }

    .filter-summary--inline {
        grid-template-columns: 1fr;
    }
}

body.record-detail-page .profile-record-grid {
    gap: 0.75rem;
    margin-top: 0.75rem;
}

body.record-detail-page .profile-subcard,
body.record-detail-page .profile-record-card,
body.record-detail-page .profile-field {
    padding: 0.75rem;
    box-shadow: none;
}

body.record-detail-page .profile-record-card summary,
body.record-detail-page .profile-raw-details summary,
body.record-detail-page .profile-inline-link {
    color: var(--primary);
    font-size: 0.82rem;
}

body.record-detail-page .profile-field-grid {
    gap: 0.75rem;
}

body.record-detail-page .profile-field strong {
    color: var(--text);
    font-size: 0.8rem;
    line-height: 1.35;
}

body.record-detail-page .table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

body.record-detail-page th {
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.68rem;
}

body.record-detail-page th,
body.record-detail-page td {
    border-color: var(--line);
    padding: 0.58rem 0.65rem;
    font-size: 0.78rem;
}

body.record-detail-page tbody tr:hover {
    background: #f1f5f9;
}

body.record-detail-page :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

html[data-workbench-view="terminal"] body.record-detail-page {
    --bg: #050607;
    --surface: #090b0c;
    --surface-accent: #211a08;
    --text: #e5e7eb;
    --muted: #89939e;
    --line: #283038;
    --line-strong: #3b4650;
    --primary: #ffb000;
    --primary-dark: #ffc247;
    --focus: #ffd166;
    --shadow: none;
    color-scheme: dark;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}

html[data-workbench-view="terminal"] body.record-detail-page .site-header {
    display: none;
}

html[data-workbench-view="terminal"] body.record-detail-page .container.page-shell {
    width: 100%;
    min-height: 100vh;
    padding: 0.5rem;
}

html[data-workbench-view="terminal"] body.record-detail-page .profile-heading,
html[data-workbench-view="terminal"] body.record-detail-page .card,
html[data-workbench-view="terminal"] body.record-detail-page .profile-subcard,
html[data-workbench-view="terminal"] body.record-detail-page .profile-record-card,
html[data-workbench-view="terminal"] body.record-detail-page .profile-field,
html[data-workbench-view="terminal"] body.record-detail-page .table-wrap,
html[data-workbench-view="terminal"] body.record-detail-page .profile-link-list a,
html[data-workbench-view="terminal"] body.record-detail-page .profile-link-list button {
    border-radius: 0;
    box-shadow: none;
}

html[data-workbench-view="terminal"] body.record-detail-page .profile-heading {
    background: #07090a;
}

html[data-workbench-view="terminal"] body.record-detail-page .eyebrow,
html[data-workbench-view="terminal"] body.record-detail-page dt,
html[data-workbench-view="terminal"] body.record-detail-page .profile-field span {
    color: var(--primary);
}

html[data-workbench-view="terminal"] body.record-detail-page .button {
    min-height: 1.75rem;
    border-radius: 0;
    padding: 0.2rem 0.4rem;
    font-family: inherit;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-workbench-view="terminal"] body.record-detail-page .button.primary {
    background: var(--primary);
    color: #050607;
}

html[data-workbench-view="terminal"] body.record-detail-page .button.secondary {
    background: transparent;
    color: var(--primary);
}

html[data-workbench-view="terminal"] body.record-detail-page .profile-subcard,
html[data-workbench-view="terminal"] body.record-detail-page .profile-record-card,
html[data-workbench-view="terminal"] body.record-detail-page .profile-field,
html[data-workbench-view="terminal"] body.record-detail-page .profile-link-list a,
html[data-workbench-view="terminal"] body.record-detail-page .profile-link-list button {
    background: transparent;
}

html[data-workbench-view="terminal"] body.record-detail-page th {
    background: #0d1012;
    color: var(--primary);
}

html[data-workbench-view="terminal"] body.record-detail-page tbody tr:hover {
    background: var(--surface-accent);
}

html[data-workbench-view="terminal"] body.record-detail-page .profile-count,
html[data-workbench-view="terminal"] body.record-detail-page .profile-review-badge {
    border-radius: 0;
    background: transparent;
    color: var(--primary);
}

@media (max-width: 980px) {
    body.record-detail-page .nav-shell,
    body.record-detail-page .nav-links {
        flex-direction: row;
        align-items: center;
        padding: 0;
    }

    body.record-detail-page .nav-links {
        justify-content: flex-start;
        overflow-x: auto;
    }
}

@media (max-width: 700px) {
    body.record-detail-page .site-header {
        position: static;
    }

    body.record-detail-page .nav-shell {
        width: min(100% - 1rem, 1580px);
        align-items: flex-start;
        flex-direction: column;
        padding: 0.55rem 0;
    }

    body.record-detail-page .nav-links {
        width: 100%;
    }

    body.record-detail-page .container.page-shell {
        width: min(100% - 0.75rem, 1580px);
    }

    body.record-detail-page .profile-heading {
        padding: 0.75rem;
    }
}
