
:root {
    /* Colors */
    --blue:#06c;
    --green:rgb(45, 206, 45);
    --red:rgb(247, 49, 49);
    --yellow:rgb(230, 226, 44);

    /* Frozen redesign foundation. Legacy pages opt in through design-system-page. */
    --color-primary-700: #4A33D1;
    --color-primary-600: #5B43F2;
    --color-primary-500: #6D5DF8;
    --color-primary-300: #B8AEFF;
    --color-primary-100: #F3F1FF;

    --color-background: #F7F8FC;
    --color-surface: #FFFFFF;
    --color-border: #E8EBF4;
    --color-control-border: #8992A6;
    --color-divider: #EEF2F8;

    --color-text-primary: #23263A;
    --color-text-secondary: #6C7487;
    --color-text-muted: #646D82;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    --radius-control: 0.75rem;
    --radius-menu: 1rem;
    --radius-card: 1.125rem;
    --radius-panel: 1.5rem;
    --radius-pill: 999rem;

    --font-family-ui: "Inter", sans-serif;
    --type-display-size: 2.5rem;
    --type-display-line-height: 3rem;
    --type-display-weight: 700;
    --type-h1-size: 2rem;
    --type-h1-line-height: 2.5rem;
    --type-h1-weight: 700;
    --type-h2-size: 1.5rem;
    --type-h2-line-height: 2rem;
    --type-h2-weight: 600;
    --type-h3-size: 1.125rem;
    --type-h3-line-height: 1.5rem;
    --type-h3-weight: 600;
    --type-body-size: 1rem;
    --type-body-line-height: 1.5rem;
    --type-body-weight: 400;
    --type-body-small-size: 0.875rem;
    --type-body-small-line-height: 1.25rem;
    --type-body-small-weight: 400;
    --type-label-size: 0.8125rem;
    --type-label-line-height: 1rem;
    --type-label-weight: 500;
    --type-caption-size: 0.75rem;
    --type-caption-line-height: 1rem;
    --type-caption-weight: 500;
    
    /* Translucent colors */
    --overlay-light: rgba(255, 255, 255, 0.8);
    --overlay-dark: rgba(0, 0, 0, 0.8);
    
    /* Main Brand Color */
    /* Form field selection, footer, nav */
    --brand-light: oklch(from var(--brand) calc(l + 0.1) c h);
    --brand: #9DC5BB;
    --brand-dark: oklch(from var(--brand) calc(l - 0.1) c h);

    /* Secondary - CTAs, btns, selected tabs, etc */
    --brand-secondary-light: oklch(from var(--brand-secondary) calc(l + 0.1) c h);
    --brand-secondary: #557472;
    --brand-secondary-dark: oklch(from var(--brand-secondary) calc(l - 0.1) c h);

    /* Badges, subtle emphasis, decorative, etc */
    --brand-accent-light: oklch(from var(--brand-accent) calc(l + 0.1) c h);
    --brand-accent: #0F8066;
    --brand-accent-dark: oklch(from var(--brand-accent) calc(l - 0.1) c h);

    /* To apply */
    /* surfaces (background colors) */
    --bg-page: #ffffff;
    --bg-surface: #f3f2f2; /* Portion of section */
    --bg-surface-secondary: #f7f7f7; /* Cards, modals, etc */
    --bg-input: #DEE5E5;
    --bg-nav-footer: var(--brand-dark);

    /* borders */
    --border-default: #e0e0e0;
    --border-focus: var(--brand);
    --border-focus-outline: var(--brand-light);

    /* text */
    --text-primary: #111111;
    --text-muted: #666666;
    --text-inverse: #ffffff;

    /* actions */
    --action-primary: var(--brand-secondary);
    --action-primary-hover: var(--brand-secondary-light);
    --action-dark: var(--brand-secondary-dark);
    --action-dark-hover: var(--brand-secondary);
    /* --action-secondary:  */
    /* --action-secondary-hover:  */
    --action-danger: var(--status-error);
    --action-danger-hover: #b91c1c;

    /* Canonical semantic status colors and opaque subtle surfaces. */
    --status-success: #2D7D52;
    --status-success-light: color-mix(in srgb, var(--status-success) 10%, var(--color-surface));
    --status-warning: #8A5A00;
    --status-warning-light: color-mix(in srgb, var(--status-warning) 12%, var(--color-surface));
    --status-error: #C73737;
    --status-error-light: color-mix(in srgb, var(--status-error) 10%, var(--color-surface));
    --status-info: #2C6FAE;
    --status-info-light: color-mix(in srgb, var(--status-info) 10%, var(--color-surface));
    --status-pending: #6C4ECB;
    --status-pending-light: color-mix(in srgb, var(--status-pending) 10%, var(--color-surface));

    /* ////////////////// */

    /* Standard sizing for fonts */
    --largest-font: 1.3rem;
    --larger-font: 1.2rem;
    --large-font: 1.1rem;
    --normal-font: 20px;
    --small-font: 0.9rem;
    --smaller-font: 0.8rem;
    --smallest-font: 0.7rem;
    
    /* Standard sizing for padding, margins, etc */
    --p-1: 5px;
    --p-2: 10px;
    --p-3: 20px;
    --p-4: 50px;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    :where(*:not(.spinner), *:not(.spinner)::before, *:not(.spinner)::after) {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Shared segmented-control treatment for compact, mutually exclusive views. */
[data-segmented-control] {
    align-items: center;
    background: var(--color-divider);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    display: inline-flex;
    max-width: 100%;
    padding: 0.1875rem;
}

[data-segmented-control] > [data-segmented-control-button] {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: calc(var(--radius-control) - 0.1875rem);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-family: var(--font-family-ui);
    font-size: var(--type-body-small-size);
    font-weight: 600;
    gap: var(--space-xs);
    justify-content: center;
    line-height: var(--type-body-small-line-height);
    min-height: 2.25rem;
    padding: 0.5rem 0.875rem;
    white-space: nowrap;
}

[data-segmented-control] > [data-segmented-control-button]:hover {
    color: var(--color-primary-700);
}

[data-segmented-control] > [data-segmented-control-button].is-active {
    background: var(--color-surface);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--color-text-primary) 12%, transparent);
    color: var(--color-primary-700);
}

[data-segmented-control] > [data-segmented-control-button]:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary-600) 62%, var(--color-surface));
    outline-offset: 1px;
    position: relative;
    z-index: 1;
}

.segmented-control__count {
    align-items: center;
    background: var(--color-divider);
    border-radius: var(--radius-pill);
    color: var(--color-text-secondary);
    display: inline-flex;
    font-size: var(--type-caption-size);
    justify-content: center;
    line-height: 1;
    min-width: 1.35rem;
    padding: 0.125rem 0.375rem;
}

[data-segmented-control-button].is-active .segmented-control__count {
    background: var(--color-primary-100);
    color: var(--color-primary-700);
}

.manager-list-view-control {
    align-items: center;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: 0;
    min-width: 0;
    padding: 0;
}

.manager-list-view-control legend {
    color: var(--color-text-secondary);
    float: left;
    font-size: var(--type-body-small-size);
    font-weight: 600;
    line-height: var(--type-body-small-line-height);
    padding: 0;
}

.manager-list-view-control__options {
    flex: 0 1 auto;
    min-width: 0;
}

.manager-list-view-control__options form {
    display: flex;
    margin: 0;
    min-width: 0;
}

.manager-list-view-control__options [data-segmented-control-button] {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: calc(var(--radius-control) - 0.1875rem);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-family: var(--font-family-ui);
    font-size: var(--type-body-small-size);
    font-weight: 600;
    justify-content: center;
    line-height: var(--type-body-small-line-height);
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    white-space: nowrap;
}

.manager-list-view-control__options [data-segmented-control-button]:hover {
    color: var(--color-primary-700);
}

.manager-list-view-control__options [data-segmented-control-button].is-active {
    background: var(--color-surface);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--color-text-primary) 12%, transparent);
    color: var(--color-primary-700);
    cursor: default;
    opacity: 1;
}

.manager-list-view-control__options [data-segmented-control-button]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary-500) 30%, var(--color-surface));
    outline-offset: 1px;
    position: relative;
    z-index: 1;
}

@media (max-width: 360px) {
    .manager-list-view-control {
        align-items: stretch;
        display: grid;
    }

    .manager-list-view-control legend {
        float: none;
    }

    .manager-list-view-control__options,
    .manager-list-view-control__options form,
    .manager-list-view-control__options [data-segmented-control-button] {
        flex: 1 1 0;
    }
}

/* Canonical compact icon-only action. Keep an accessible name and tooltip in markup. */
.compact-icon-action {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.75rem;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.625rem;
    width: 2.75rem;
}

.compact-icon-action .icon {
    height: 1rem;
    width: 1rem;
}

/* Shared presentation for human-authored messages quoted inside system UI. */
.quoted-message {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-inline-start: 0.25rem solid var(--color-primary-500);
    border-radius: var(--radius-control);
    margin: 0;
    padding: var(--space-md);
}

.quoted-message__label {
    color: var(--color-text-secondary);
    display: block;
    font-size: var(--type-caption-size);
    font-style: normal;
    font-weight: 700;
    line-height: var(--type-caption-line-height);
    margin-bottom: var(--space-xs);
}

.quoted-message__body {
    color: var(--color-text-primary);
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

/* Compact semantic markers always pair text with color. */
.change-marker {
    align-items: center;
    background: var(--status-info-light);
    border: 1px solid color-mix(in srgb, var(--status-info) 34%, var(--color-border));
    border-radius: var(--radius-pill);
    color: color-mix(in srgb, var(--status-info) 76%, var(--color-text-primary));
    display: inline-flex;
    font-size: var(--type-caption-size);
    font-weight: 700;
    line-height: 1;
    min-height: 1.5rem;
    padding: 0.2rem 0.45rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease;
    white-space: nowrap;
}

.change-marker--recheck {
    background: var(--status-warning-light);
    border-color: color-mix(in srgb, var(--status-warning) 42%, var(--color-border));
    color: color-mix(in srgb, var(--status-warning) 68%, var(--color-text-primary));
}

.change-marker.popover-trigger {
    height: auto;
    margin-left: 0;
    top: auto;
    width: auto;
}

.change-marker.change-marker--recheck.popover-trigger {
    background: var(--status-warning-light);
    border: 1px solid color-mix(in srgb, var(--status-warning) 42%, var(--color-border));
    color: color-mix(in srgb, var(--status-warning) 68%, var(--color-text-primary));
}

.change-marker.change-marker--recheck.popover-trigger:hover {
    background: color-mix(in srgb, var(--status-warning-light) 92%, var(--status-warning));
    border-color: color-mix(in srgb, var(--status-warning) 52%, var(--color-border));
}

.change-marker.change-marker--recheck.popover-trigger[aria-expanded="true"] {
    background: color-mix(in srgb, var(--status-warning-light) 84%, var(--status-warning));
    border-color: color-mix(in srgb, var(--status-warning) 62%, var(--color-border));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--status-warning) 18%, transparent);
}

.change-marker.change-marker--recheck.popover-trigger:focus-visible {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-primary-500) 28%, transparent);
}

/***** FONT *****/
@font-face {
    font-family: "Inter";
    src: url('/font/Inter/InterVariable.woff2') format('woff2-variations');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-Thin.ttf");
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-ThinItalic.ttf");
    font-weight: 100;
    font-style: italic;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-ExtraLight.ttf");
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-ExtraLightItalic.ttf");
    font-weight: 200;
    font-style: italic;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-Light.ttf");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-LightItalic.ttf");
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-Regular.ttf");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-Italic.ttf");
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-Medium.ttf");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-MediumItalic.ttf");
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-SemiBold.ttf");
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-SemiBoldItalic.ttf");
    font-weight: 600;
    font-style: italic;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-Bold.ttf");
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-BoldItalic.ttf");
    font-weight: 700;
    font-style: italic;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-ExtraBold.ttf");
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-ExtraBoldItalic.ttf");
    font-weight: 800;
    font-style: italic;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-Black.ttf");
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: "Poppins";
    src: url("../../font/Poppins/Poppins-BlackItalic.ttf");
    font-weight: 900;
    font-style: italic;
}



/***** GENERAL ELEMENTS *****/
html{
    font-size: var(--normal-font);
    font-family: 'Poppins', sans-serif;
    height: 100%;
}

body{
    margin: 0;
    overflow-x: hidden;
    height: 100%;
    background: var(--bg-page);
    color: var(--text-primary);
}

#main-page-content,
#layout-wrapper,
main {
    width: 100%;
    min-width: 0;
}

/* Full-viewport, blocking progress for irreversible navigation-bound actions. */
#main-loading-overlay {
    align-items: center;
    background: color-mix(in srgb, var(--color-text-primary) 48%, transparent);
    display: none;
    inset: 0;
    justify-content: center;
    padding: var(--space-lg);
    position: fixed;
    z-index: 11000;
}

#main-loading-overlay.is-active {
    display: flex;
}

.blocking-busy {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: 0 1.25rem 3rem color-mix(in srgb, var(--color-text-primary) 24%, transparent);
    color: var(--color-text-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 28rem;
    padding: var(--space-xl);
    text-align: center;
    width: 100%;
}

.blocking-busy__message {
    font-family: var(--font-family-ui);
    font-size: var(--type-body-size);
    font-weight: 600;
    line-height: var(--type-body-line-height);
    margin: 0;
}

/* Make sure page is at least full window height */
#layout-wrapper{
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main{
    flex: 1 0 auto;
}

section{
    padding: var(--p-3);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 576px) {
    section{
        padding: var(--p-2);
    }
}

/* CARDS (inside of sections - dashboard portions, etc) */
.card{
    background-color: var(--bg-surface);
    margin: var(--p-2);
    padding: var(--p-3);
    min-width: 0;
    box-sizing: border-box;
}

/***** VISIBILITY *****/
.is-hidden, [hidden] {
    display: none !important;
}

/***** TEXT *****/
.text-bold{
    font-weight: bolder;
}
.text-center{
    text-align: center;
}

/***** Z-INDEX *****/
.z-index.z-1{
    z-index: 1;
}
.z-index.z-2{
    z-index: 2;
}
.z-index.z-3{
    z-index: 3;
}
.z-index.z-4{
    z-index: 4;
}
.z-index.z-5{
    z-index: 5;
}
.z-index.z-6{
    z-index: 6;
}
.z-index.z-7{
    z-index: 7;
}
.z-index.z-8{
    z-index: 8;
}
.z-index.z-9{
    z-index: 9;
}
.z-index.z-10{
    z-index: 10;
}

/***** LAYOUT *****/
/* FLEX */
.flex-row{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}
.flex-row.flex-direction-row{
    flex-direction: row;
}
.flex-row.justify-content-center{
    justify-content: center;
}
.flex-row.justify-content-space-between{
    justify-content: space-between;
}
.flex-row.align-items-center{
    align-items: center;
}
.flex-row.align-items-flex-start{
    align-items: flex-start;
}

/* GRID */
.grid{
    display: grid;
    gap: var(--p-3);
    min-width: 0;
    max-width: 100%;
}

.grid > * {
    min-width: 0;
}

/* Compact label/value facts for summaries and example timelines. */
.detail-list {
    display: grid;
    gap: var(--space-xs);
    margin: 0;
}

.detail-list > div {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: minmax(8rem, auto) minmax(0, 1fr);
}

.detail-list dt {
    font-weight: 700;
}

.detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 576px) {
    .detail-list > div {
        gap: var(--space-xs);
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 768px) {
    /* 2 Columns if not small screen */
    .grid.c-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    /* 3 Columns if not small screen */
    .grid.c-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .grid-span-2 {
        grid-column: span 2;
    }
}

/* WIDTH */
.width-100vw{
    width: 100vw;
}
.width-50vw{
    width: 50vw;
}
.width-100{
    width: 100%;
}
.width-50{
    width: 50%;
}

@media (max-width: 992px) {
    .width-50{
        width: 80%;
        margin: auto;
    }
    .width-50vw{
        width: 80vw;
    }
}
@media (max-width: 767px) {
    .width-50{
        width: 90%;
    }
    .width-50vw{
        width: 90vw;
    }
}
@media (max-width: 576px) {
    .width-50{
        width: 95%;
    }
    .width-50vw{
        width: 95vw;
    }
}

.width-max-large{
    max-width: 1600px;
}
.width-max-medium{
    max-width: 1200px;
}
.width-max-small{
    max-width: 900px;
}

/* OTHER-LAYOUT */
.margin-auto{
    margin: auto;
}



/***** BUTTONS & LINKS *****/
.btn{
    display: inline-block;
    background-color: var(--action-primary);
    color: var(--text-inverse);
    cursor: pointer;
    width: fit-content;
    max-width: 100%;
    padding: var(--p-2);
    border: none;
    transition: 0.3s;
    font-size: var(--normal-font);
    margin: var(--p-2) 0;
    overflow-wrap: anywhere;
}
.btn:hover{
    background-color: var(--action-primary-hover);
}

.btn.btn-secondary {
    background-color: var(--bg-input);
    color: var(--text-primary);
}

.btn.btn-secondary:hover {
    background-color: var(--border-default);
}

.btn.btn-danger {
    background-color: var(--action-danger);
    color: var(--text-inverse);
}

.btn.btn-danger:hover {
    background-color: var(--action-danger-hover);
}

/* After clicking with mouse, for example */
.btn:focus{
    
}

/* Selecting with keyboard, for example */
.btn:focus-visible{
    outline: 2px solid var(--action-primary);
    background-color: var(--action-primary-hover);
}

/* Disabled button */
.btn:disabled{
    cursor: not-allowed;
    opacity: 0.6;
}
.btn:disabled:hover{
    cursor: not-allowed;
    opacity: 0.6;
    background-color: var(--action-primary);
}

.btn.btn-danger:disabled:hover {
    background-color: var(--action-danger);
}

/* Keyboard-focusable disabled actions use aria-disabled and shared JS activation guards. */
.btn[aria-disabled="true"],
.btn[aria-disabled="true"]:hover,
.btn[aria-disabled="true"]:active {
    background-color: var(--border-default);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn[aria-disabled="true"]:focus-visible {
    background-color: var(--border-default);
    color: var(--text-muted);
    cursor: not-allowed;
    outline: 2px solid var(--action-primary);
    outline-offset: 2px;
}

a:link{
    text-decoration: none;
    color: var(--action-primary);
    transition: 0.3s;
}
a:visited{
    color: var(--action-primary);
}
a:hover{
    color: var(--action-primary-hover);
}
a:focus, a:focus-visible, a:active{
    color: var(--action-primary-hover);
    border: none;
    outline: none;
    text-decoration: underline;
}

/* If the <a> is also .btn */
a:link.btn, a:visited.btn {
    color: var(--text-inverse);
}
a:link.btn.btn-secondary, a:visited.btn.btn-secondary {
    color: var(--text-primary);
}
a:focus.btn, a:focus-visible.btn, a:active.btn{
    text-decoration: none;
}

/* Opt-in redesign typography and actions. The legacy 20px/Poppins root remains above. */
html.design-system-page {
    font-family: var(--font-family-ui);
    font-size: 16px;
}

.design-system-page body,
.design-system-page input,
.design-system-page select,
.design-system-page textarea,
.design-system-page button {
    font-family: var(--font-family-ui);
}

.design-system-page body {
    background: var(--color-background);
    color: var(--color-text-primary);
    font-size: var(--type-body-size);
    font-weight: var(--type-body-weight);
    line-height: var(--type-body-line-height);
}

.design-system-page h1,
.design-system-page h2,
.design-system-page h3,
.design-system-page p {
    margin-top: 0;
}

.design-system-page h1 {
    font-size: var(--type-h1-size);
    font-weight: var(--type-h1-weight);
    line-height: var(--type-h1-line-height);
}

.design-system-page h2 {
    font-size: var(--type-h2-size);
    font-weight: var(--type-h2-weight);
    line-height: var(--type-h2-line-height);
}

.design-system-page h3 {
    font-size: var(--type-h3-size);
    font-weight: var(--type-h3-weight);
    line-height: var(--type-h3-line-height);
}

.design-system-page a:link,
.design-system-page a:visited {
    color: var(--color-primary-700);
}

.design-system-page a:hover {
    color: var(--color-primary-600);
}

.design-system-page a:focus-visible,
.design-system-page button:focus-visible {
    border-radius: var(--space-xs);
    outline: 3px solid color-mix(in srgb, var(--color-primary-500) 30%, var(--color-surface));
    outline-offset: 2px;
}

.design-system-page .btn,
.design-system-page .btn.btn-primary {
    align-items: center;
    background: var(--color-primary-600);
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    color: var(--color-surface);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-family-ui);
    font-size: var(--type-body-size);
    font-weight: 600;
    gap: var(--space-sm);
    justify-content: center;
    line-height: var(--type-body-line-height);
    margin: 0;
    min-height: 3.25rem;
    padding: 0.75rem 1.5rem;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease, opacity 0.2s ease;
}

.design-system-page .btn:hover,
.design-system-page .btn.btn-primary:hover {
    background: var(--color-primary-700);
}

.design-system-page .btn.btn-secondary {
    background: var(--color-surface);
    border-color: var(--color-primary-600);
    color: var(--color-primary-700);
}

.design-system-page .btn.btn-secondary:hover {
    background: var(--color-primary-100);
}

.design-system-page .btn.btn-danger {
    background: var(--status-error);
    border-color: var(--status-error);
    color: var(--color-surface);
}

.design-system-page .btn.btn-danger:hover {
    background: color-mix(in srgb, var(--status-error) 85%, var(--color-text-primary));
    border-color: color-mix(in srgb, var(--status-error) 85%, var(--color-text-primary));
}

.design-system-page .btn:focus-visible {
    background: var(--color-primary-700);
    box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--color-primary-500) 24%, var(--color-surface));
    outline: 2px solid var(--color-primary-600);
    outline-offset: 2px;
}

.design-system-page .btn.btn-secondary:focus-visible {
    background: var(--color-primary-100);
}

.design-system-page .btn.btn-danger:focus-visible {
    background: color-mix(in srgb, var(--status-error) 85%, var(--color-text-primary));
}

.design-system-page .btn:disabled,
.design-system-page .btn:disabled:hover,
.design-system-page .btn.is-disabled,
.design-system-page .btn[aria-disabled="true"],
.design-system-page .btn[aria-disabled="true"]:hover,
.design-system-page .btn[aria-disabled="true"]:active,
.design-system-page .btn[aria-disabled="true"]:focus-visible {
    background: var(--color-divider);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 1;
}

.design-system-page a:link.btn,
.design-system-page a:visited.btn,
.design-system-page a:link.btn.btn-danger,
.design-system-page a:visited.btn.btn-danger {
    color: var(--color-surface);
}

.design-system-page a:link.btn.btn-secondary,
.design-system-page a:visited.btn.btn-secondary,
.design-system-page a:link.btn.is-disabled,
.design-system-page a:visited.btn.is-disabled {
    color: var(--color-primary-700);
}

.design-system-page a:link.btn.is-disabled,
.design-system-page a:visited.btn.is-disabled {
    color: var(--color-text-muted);
}

/* Preserve the canonical compact target inside the redesigned button family. */
.design-system-page .btn.compact-icon-action {
    height: 2.75rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.625rem;
    width: 2.75rem;
}

/* Shared customer-facing comparison table. The wrapper owns horizontal
   containment while semantic table markup keeps row/column relationships. */
.comparison-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  max-width: 100%;
  overflow-x: auto;
}

.comparison-table {
  border-collapse: collapse;
  min-width: 44rem;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-md);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--color-divider);
  color: var(--color-text-primary);
}

.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-table__current {
  background: var(--color-primary-100);
}

.comparison-table__plan-label {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.comparison-table small {
  color: var(--color-text-secondary);
  display: block;
  margin-top: var(--space-xs);
}

/* Opt-in boundary for trusted, escaped user-authored text rendered in public UI. */
.user-content-boundary {
    min-width: 0;
    overflow-wrap: anywhere;
}

.comparison-table__action .btn {
  width: 100%;
}

.comparison-table__action-status {
  color: var(--color-text-secondary);
}
