:root {
    color-scheme: light;
    --brand-950: #073f43;
    --brand-900: #09565a;
    --brand-800: #126f73;
    --brand-700: #16858a;
    --brand-600: #2d9ca0;
    --brand-200: #b9e0df;
    --brand-100: #dff1f0;
    --brand-50: #f0f8f7;
    --brand-rgb: 22 133 138;
    --ink-950: #172427;
    --ink-900: #223034;
    --ink-800: #2c3a3d;
    --ink-700: #465559;
    --ink-600: #637176;
    --ink-500: #7b888c;
    --ink-300: #b8c0c2;
    --ink-200: #d6dcdd;
    --ink-150: #e3e7e7;
    --ink-100: #edf0ef;
    --ink-50: #f6f7f5;
    --surface: #ffffff;
    --surface-soft: #f8f9f7;
    --surface-warm: #f3f3ec;
    --danger-700: #a63d45;
    --danger-600: #c44f58;
    --danger-100: #f9e8e9;
    --success-700: #287854;
    --success-100: #e3f4ea;
    --warning-700: #8d6a16;
    --warning-100: #fbf2d7;
    --shadow-xs: 0 1px 2px rgb(12 44 46 / 0.06);
    --shadow-sm: 0 4px 16px rgb(12 44 46 / 0.08);
    --shadow-md: 0 18px 48px rgb(12 44 46 / 0.14);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --focus-ring: 0 0 0 3px rgb(45 156 160 / 0.28);
    --header-background: #09565a;
    --header-background-accent: rgb(255 255 255 / 0.05);
    --header-border: rgb(255 255 255 / 0.13);
    --header-shadow: 0 2px 14px rgb(7 63 67 / 0.12);
    --header-text: #fff;
    --header-text-muted: rgb(255 255 255 / 0.72);
    --header-text-subtle: rgb(255 255 255 / 0.68);
    --header-hover: rgb(255 255 255 / 0.07);
    --header-control-background: #fff;
    --header-control-text: #073f43;
    --header-control-hover: #f0f8f7;
    --header-height: 4.5rem;
    --content-width: 112rem;
    --font-sans: Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --brand-950: #d9f3f1;
    --brand-900: #bfe8e5;
    --brand-800: #91d1ce;
    --brand-700: #6ac0bd;
    --brand-600: #45aaa8;
    --brand-200: #255d5e;
    --brand-100: #1a4446;
    --brand-50: #143537;
    --ink-950: #f2f6f5;
    --ink-900: #e6eceb;
    --ink-800: #d4dddc;
    --ink-700: #b4c0bf;
    --ink-600: #95a4a4;
    --ink-500: #7c8c8c;
    --ink-300: #526163;
    --ink-200: #3c494b;
    --ink-150: #303c3e;
    --ink-100: #273235;
    --ink-50: #20292b;
    --surface: #182124;
    --surface-soft: #12191b;
    --surface-warm: #1e282a;
    --danger-700: #ffb1b6;
    --danger-600: #e66d75;
    --danger-100: #42272b;
    --success-700: #91dfb8;
    --success-100: #193a2c;
    --warning-700: #f0cf72;
    --warning-100: #3b3420;
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-sm: 0 5px 20px rgb(0 0 0 / 0.28);
    --shadow-md: 0 22px 58px rgb(0 0 0 / 0.42);
    --focus-ring: 0 0 0 3px rgb(106 192 189 / 0.32);
    --header-background: #0b3639;
    --header-background-accent: rgb(106 192 189 / 0.08);
    --header-border: rgb(145 209 206 / 0.18);
    --header-shadow: 0 3px 18px rgb(0 0 0 / 0.38);
    --header-text: #f2f8f7;
    --header-text-muted: rgb(226 241 239 / 0.76);
    --header-text-subtle: rgb(226 241 239 / 0.66);
    --header-hover: rgb(145 209 206 / 0.11);
    --header-control-background: #d9f3f1;
    --header-control-text: #123f42;
    --header-control-hover: #bfe8e5;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        color-scheme: dark;
        --brand-950: #d9f3f1;
        --brand-900: #bfe8e5;
        --brand-800: #91d1ce;
        --brand-700: #6ac0bd;
        --brand-600: #45aaa8;
        --brand-200: #255d5e;
        --brand-100: #1a4446;
        --brand-50: #143537;
        --ink-950: #f2f6f5;
        --ink-900: #e6eceb;
        --ink-800: #d4dddc;
        --ink-700: #b4c0bf;
        --ink-600: #95a4a4;
        --ink-500: #7c8c8c;
        --ink-300: #526163;
        --ink-200: #3c494b;
        --ink-150: #303c3e;
        --ink-100: #273235;
        --ink-50: #20292b;
        --surface: #182124;
        --surface-soft: #12191b;
        --surface-warm: #1e282a;
        --danger-700: #ffb1b6;
        --danger-600: #e66d75;
        --danger-100: #42272b;
        --success-700: #91dfb8;
        --success-100: #193a2c;
        --warning-700: #f0cf72;
        --warning-100: #3b3420;
        --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.3);
        --shadow-sm: 0 5px 20px rgb(0 0 0 / 0.28);
        --shadow-md: 0 22px 58px rgb(0 0 0 / 0.42);
        --focus-ring: 0 0 0 3px rgb(106 192 189 / 0.32);
        --header-background: #0b3639;
        --header-background-accent: rgb(106 192 189 / 0.08);
        --header-border: rgb(145 209 206 / 0.18);
        --header-shadow: 0 3px 18px rgb(0 0 0 / 0.38);
        --header-text: #f2f8f7;
        --header-text-muted: rgb(226 241 239 / 0.76);
        --header-text-subtle: rgb(226 241 239 / 0.66);
        --header-hover: rgb(145 209 206 / 0.11);
        --header-control-background: #d9f3f1;
        --header-control-text: #123f42;
        --header-control-hover: #bfe8e5;
    }
}

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

html {
    color: var(--ink-950);
    font-family: var(--font-sans);
    font-size: 100%;
    line-height: 1.5;
    background: var(--surface-soft);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 0%, rgb(var(--brand-rgb) / 0.08), transparent 24rem),
        var(--surface-soft);
}

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

button,
select {
    cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled,
textarea:disabled {
    cursor: not-allowed;
}

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

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

h1,
h2,
h3,
h4,
p,
dl,
dd {
    margin-block: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--ink-950);
    font-weight: 720;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--brand-700);
    outline-offset: 2px;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 1rem;
    color: var(--surface);
    font-weight: 700;
    background: var(--brand-900);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transform: translateY(-200%);
    transition: transform 150ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.app-shell {
    min-height: 100vh;
}

.app-header {
    position: sticky;
    z-index: 100;
    top: 0;
    min-height: var(--header-height);
    color: var(--header-text);
    background:
        linear-gradient(105deg, var(--header-background-accent), transparent 30%),
        var(--header-background);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
}

.app-header[data-header-style="solid"] {
    background: var(--header-background);
}

.app-header__inner {
    display: flex;
    align-items: center;
    width: min(100%, var(--content-width));
    min-height: var(--header-height);
    padding-inline: clamp(1rem, 2.5vw, 2.25rem);
    margin-inline: auto;
    gap: clamp(1.25rem, 3vw, 3rem);
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 2.75rem;
    color: var(--header-text);
    gap: 0.55rem;
}

.brand__mark {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.16rem;
    color: var(--header-control-text);
    background: var(--header-control-background);
    border-radius: 0.55rem;
}

.brand__mark path {
    fill: currentColor;
    stroke: none;
}

.brand__custom-mark {
    display: grid;
    width: clamp(2rem, calc(2.65rem * var(--brand-logo-ratio, 1)), 9rem);
    height: 2.65rem;
    flex: 0 0 auto;
    place-items: center;
    overflow: visible;
    background: transparent;
}

.brand__custom-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand__wordmark {
    font-size: 1.1rem;
    font-weight: 790;
    letter-spacing: 0.025em;
}

.brand__product {
    padding-left: 0.65rem;
    color: var(--header-text-subtle);
    font-size: 0.78rem;
    font-weight: 640;
    border-left: 1px solid var(--header-border);
}

.primary-nav {
    display: flex;
    align-self: stretch;
    align-items: stretch;
    min-width: 0;
    gap: 0.25rem;
}

.primary-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-inline: 0.9rem;
    color: var(--header-text-muted);
    font-size: 0.9rem;
    font-weight: 650;
    background: transparent;
    border: 0;
    gap: 0.5rem;
    transition: color 150ms ease, background-color 150ms ease;
}

.primary-nav__link::after {
    position: absolute;
    right: 0.8rem;
    bottom: 0;
    left: 0.8rem;
    height: 3px;
    background: var(--header-text);
    border-radius: 99px 99px 0 0;
    content: "";
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 150ms ease, transform 150ms ease;
}

.primary-nav__link:hover,
.primary-nav__link.is-active {
    color: var(--header-text);
    background: var(--header-hover);
}

.primary-nav__link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.primary-nav__link svg,
.app-header__actions svg,
.button svg,
.icon-button svg,
.toast svg,
.detail-empty svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.app-header__actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0.65rem;
}

.button {
    display: inline-flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 1rem;
    font-size: 0.9rem;
    font-weight: 690;
    line-height: 1.1;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    gap: 0.5rem;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button:not(:disabled):active,
.icon-button:not(:disabled):active {
    transform: translateY(1px);
}

.button:disabled,
.icon-button:disabled {
    opacity: 0.5;
}

.button--header {
    color: var(--header-control-text);
    background: var(--header-control-background);
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
}

.button--header:hover:not(:disabled) {
    background: var(--header-control-hover);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.14);
}

.button--header-icon {
    width: 2.65rem;
    min-width: 2.65rem;
    padding-inline: 0;
}

.button--primary {
    color: #fff;
    background: var(--brand-800);
    border-color: var(--brand-800);
    box-shadow: 0 2px 7px rgb(var(--brand-rgb) / 0.2);
}

.button--primary:hover:not(:disabled) {
    background: var(--brand-900);
    border-color: var(--brand-900);
}

.button--secondary {
    color: var(--ink-800);
    background: var(--surface);
    border-color: var(--ink-200);
    box-shadow: var(--shadow-xs);
}

.button--secondary:hover:not(:disabled) {
    color: var(--brand-900);
    background: var(--brand-50);
    border-color: var(--brand-200);
}

.button--ghost {
    color: var(--ink-700);
}

.button--ghost:hover:not(:disabled) {
    color: var(--ink-950);
    background: var(--ink-100);
}

.button--danger {
    color: var(--danger-700);
    background: var(--danger-100);
    border-color: #f2cfd2;
}

.button--danger:hover:not(:disabled) {
    color: #fff;
    background: var(--danger-600);
    border-color: var(--danger-600);
}

.button--compact {
    min-height: 2.35rem;
    padding: 0.48rem 0.8rem;
    font-size: 0.82rem;
}

.icon-button {
    display: inline-grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    padding: 0;
    color: var(--ink-700);
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    place-items: center;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.icon-button:hover:not(:disabled) {
    color: var(--brand-900);
    background: var(--brand-50);
    border-color: var(--brand-200);
}

.avatar {
    display: inline-grid;
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 auto;
    color: var(--brand-950);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: var(--brand-100);
    border: 1px solid var(--header-border);
    border-radius: 50%;
    place-items: center;
}

.avatar--large {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.82rem;
}

.avatar img,
.person-chip__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.user-menu {
    position: relative;
}

.user-menu > summary {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    padding: 0.3rem 0.45rem;
    list-style: none;
    color: var(--header-text);
    background: var(--header-hover);
    border: 1px solid var(--header-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    gap: 0.55rem;
}

.user-menu > summary::-webkit-details-marker {
    display: none;
}

.user-menu > summary > svg {
    width: 0.95rem;
    height: 0.95rem;
    margin-inline: 0.15rem;
    color: var(--header-text-subtle);
    transition: transform 150ms ease;
}

.user-menu[open] > summary > svg {
    transform: rotate(180deg);
}

.user-menu__identity {
    display: grid;
    min-width: 5.5rem;
    max-width: 10rem;
    line-height: 1.15;
}

.user-menu__identity strong {
    overflow: hidden;
    font-size: 0.79rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__identity small {
    margin-top: 0.15rem;
    overflow: hidden;
    color: var(--header-text-subtle);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__popover {
    position: absolute;
    z-index: 120;
    top: calc(100% + 0.6rem);
    right: 0;
    display: grid;
    width: min(18rem, calc(100vw - 2rem));
    padding: 0.45rem;
    color: var(--ink-800);
    background: var(--surface);
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.user-menu__profile {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.65rem 0.85rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--ink-150);
    gap: 0.7rem;
}

.user-menu__profile > div {
    display: grid;
    min-width: 0;
}

.user-menu__profile strong,
.user-menu__profile small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__profile strong {
    font-size: 0.88rem;
}

.user-menu__profile small {
    color: var(--ink-600);
    font-size: 0.75rem;
}

.user-menu__popover > a,
.user-menu__popover > button,
.user-menu__popover > form > button {
    display: flex;
    width: 100%;
    min-height: 2.4rem;
    align-items: center;
    padding: 0.5rem 0.65rem;
    color: var(--ink-700);
    font-size: 0.84rem;
    font-weight: 620;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0.4rem;
    cursor: pointer;
    gap: 0.55rem;
}

.user-menu__popover > a:hover,
.user-menu__popover > button:hover,
.user-menu__popover > form > button:hover {
    color: var(--brand-900);
    background: var(--brand-50);
}

.user-menu__popover > form {
    margin: 0;
}

.eyebrow {
    color: var(--brand-700);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.field {
    display: grid;
    align-content: start;
    gap: 0.4rem;
}

.field > label,
.field > legend {
    padding: 0;
    color: var(--ink-800);
    font-size: 0.79rem;
    font-weight: 720;
}

.field > label span {
    color: var(--ink-500);
    font-size: 0.72rem;
    font-weight: 520;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.66rem 0.75rem;
    color: var(--ink-950);
    background: var(--surface);
    border: 1px solid var(--ink-300);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 2px rgb(23 36 39 / 0.04);
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.field textarea {
    min-height: 6.8rem;
    line-height: 1.5;
    resize: vertical;
}

.field input:not([type="radio"]):not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--ink-500);
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
    outline: 0;
    border-color: var(--brand-700);
    box-shadow: var(--focus-ring);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--danger-600);
}

.field__hint,
.field__meta,
.field__error {
    color: var(--ink-600);
    font-size: 0.72rem;
    line-height: 1.4;
}

.field__error {
    color: var(--danger-700);
    font-weight: 620;
}

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

.field__meta > span {
    margin-left: auto;
    white-space: nowrap;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.2rem;
    background: var(--ink-100);
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-sm);
    gap: 0.2rem;
}

.segmented-control label {
    position: relative;
    min-width: 0;
}

.segmented-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.segmented-control span {
    display: flex;
    min-height: 2.3rem;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.55rem;
    color: var(--ink-600);
    font-size: 0.76rem;
    font-weight: 660;
    text-align: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.segmented-control input:checked + span {
    color: var(--brand-900);
    background: var(--surface);
    border-color: var(--ink-150);
    box-shadow: var(--shadow-xs);
}

.segmented-control input:focus-visible + span {
    outline: 2px solid var(--brand-700);
    outline-offset: 1px;
}

.noscript-message {
    position: fixed;
    z-index: 300;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: 0.9rem 1rem;
    color: var(--warning-700);
    font-size: 0.86rem;
    font-weight: 650;
    text-align: center;
    background: var(--warning-100);
    border: 1px solid #ead89e;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.login-page {
    display: grid;
    min-height: 100vh;
    padding: clamp(1rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 15% 12%, rgb(45 156 160 / 0.2), transparent 28rem),
        radial-gradient(circle at 88% 84%, rgb(18 111 115 / 0.1), transparent 30rem),
        linear-gradient(135deg, #eef6f5, #f8f8f4 48%, #edf4f3);
    place-items: center;
}

.login-shell {
    display: grid;
    width: min(100%, 28rem);
    justify-items: center;
    gap: 1.2rem;
}

.login-card {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: rgb(255 255 255 / 0.96);
    border: 1px solid rgb(18 111 115 / 0.13);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 70px rgb(7 63 67 / 0.15);
}

.login-card__banner {
    display: grid;
    min-height: 7.25rem;
    padding: 1rem 1.5rem;
    background: var(--login-primary, var(--brand-700));
    place-items: center;
}

.login-card__body {
    padding: clamp(1.5rem, 5vw, 2.35rem);
}

.brand--login {
    width: max-content;
    min-height: 0;
    color: #fff;
}

.brand--login .brand__mark {
    display: block;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0.32rem;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0.65rem;
}

.brand--login .brand__mark path {
    fill: currentColor;
}

.login-logo {
    display: grid;
    width: clamp(7rem, calc(4.25rem * var(--login-logo-ratio, 1)), 10rem);
    height: 4.25rem;
    place-items: center;
}

.login-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-card__body > h1 {
    margin-top: 0.45rem;
    font-size: clamp(1.65rem, 6vw, 2rem);
}

.login-card__intro {
    margin-top: 0.55rem;
    color: var(--ink-600);
    font-size: 0.88rem;
    line-height: 1.55;
}

.form-alert {
    padding: 0.72rem 0.8rem;
    margin-top: 1.15rem;
    color: var(--danger-700);
    font-size: 0.78rem;
    font-weight: 630;
    background: var(--danger-100);
    border: 1px solid #f1cdd0;
    border-radius: var(--radius-sm);
}

.login-form {
    display: grid;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.field-label {
    margin-top: 0.45rem;
    color: var(--ink-800);
    font-size: 0.78rem;
    font-weight: 710;
}

.text-input {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.67rem 0.75rem;
    color: var(--ink-950);
    background: var(--surface);
    border: 1px solid var(--ink-300);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 2px rgb(23 36 39 / 0.04);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.text-input:hover {
    border-color: var(--ink-500);
}

.text-input:focus {
    outline: 0;
    border-color: var(--brand-700);
    box-shadow: var(--focus-ring);
}

.text-input--large {
    min-height: 3.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-align: center;
}

.check-field {
    display: inline-flex;
    width: max-content;
    align-items: center;
    margin-block: 0.6rem 0.85rem;
    color: var(--ink-600);
    font-size: 0.77rem;
    cursor: pointer;
    gap: 0.5rem;
}

.check-field input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--brand-800);
}

input[type="checkbox"] {
    appearance: none;
    display: inline-grid;
    padding: 0;
    margin: 0;
    color: #fff;
    background-color: var(--surface, #fff);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 72%;
    border: 1px solid var(--ink-400, #8a9699);
    border-radius: 0.3rem;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgb(23 36 39 / 0.05);
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

input[type="checkbox"]:hover:not(:disabled) {
    border-color: var(--brand-700);
}

input[type="checkbox"]:checked {
    background-color: var(--brand-800);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.2 8.2 3 3.1 6.7-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    border-color: var(--brand-800);
    box-shadow: none;
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--brand-700);
    outline-offset: 2px;
}

input[type="checkbox"]:disabled {
    cursor: default;
    opacity: 0.55;
}

.button--wide {
    width: 100%;
    margin-top: 1rem;
}

.login-footer {
    color: var(--ink-600);
    font-size: 0.72rem;
    text-align: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 70rem) {
    .app-header__inner {
        gap: 1rem;
    }

    .primary-nav__link {
        padding-inline: 0.65rem;
    }

    .user-menu__identity {
        display: none;
    }
}

@media (max-width: 52rem) {
    :root {
        --header-height: 4rem;
    }

    body {
        padding-bottom: 4.25rem;
    }

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

    .primary-nav {
        position: fixed;
        z-index: 150;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        height: 4.25rem;
        grid-auto-columns: 1fr;
        grid-auto-flow: column;
        padding: 0.28rem max(0.5rem, env(safe-area-inset-right)) max(0.3rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
        color: var(--ink-700);
        background: var(--surface);
        border-top: 1px solid var(--ink-150);
        box-shadow: 0 -6px 24px rgb(12 44 46 / 0.09);
        backdrop-filter: blur(14px);
    }

    .primary-nav__link {
        display: grid;
        min-width: 0;
        align-content: center;
        justify-items: center;
        padding: 0.25rem 0.4rem;
        color: var(--ink-600);
        font-size: 0.66rem;
        line-height: 1;
        border-radius: var(--radius-sm);
        gap: 0.2rem;
    }

    .primary-nav__link::after {
        display: none;
    }

    .primary-nav__link:hover,
    .primary-nav__link.is-active {
        color: var(--brand-900);
        background: var(--brand-50);
    }

    .primary-nav__link svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .button--header {
        width: 2.6rem;
        height: 2.6rem;
        min-height: 0;
        padding: 0;
    }

    .button--header span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
}

@media (max-width: 32rem) {
    .brand__product,
    .brand__wordmark {
        display: none;
    }

    .brand__mark,
    .brand__custom-mark {
        height: 2.15rem;
    }

    .brand__mark {
        width: 2.15rem;
    }

    .brand__custom-mark {
        width: clamp(2rem, calc(2.15rem * var(--brand-logo-ratio, 1)), 6.5rem);
    }

    .segmented-control {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
