:root {
    --navy-900: #090c1e;
    --navy-800: #162040;
    --navy-700: #1e2a55;
    --brand: #2c3e7a;
    --brand-mid: #3a52a0;
    --brand-soft: #eef2ff;
    --accent: #00bfa6;

    --bg: #f8fafc;
    --bg-2: #f1f5f9;
    --field: #f5f9ff;
    --field-hover: #eef5ff;
    --field-line: #dbe6f5;
    --field-line-strong: #b9cde8;
    --card: #ffffff;
    --line: #e2e8f0;
    --line-soft: #f1f5f9;

    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --muted-lt: #94a3b8;

    --green: #059669;
    --green-ink: #065f46;
    --mint: #ecfdf5;
    --sky: #eff6ff;
    --sky-ink: #1d4ed8;
    --cream: #fffbeb;
    --cream-ink: #c2410c;
    --amber: #d97706;
    --lilac: #f5f3ff;
    --lilac-ink: #7c3aed;
    --teal: #e6f2f3;
    --teal-ink: #136b71;
    --red: #dc2626;
    --red-soft: #fef2f2;

    --r-xs: 5px;
    --r-sm: 7px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 18px;
    --r-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, .07);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .14);

    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 18px;
    --sp-6: 22px;
    --sp-7: 34px;

    --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-num: 'DM Mono', 'Consolas', ui-monospace, monospace;

    --sidebar-w: 188px;
    --sidebar-rail-w: 72px;
    --topbar-h: 60px;

    --avm-primary: #263192;
    --avm-primary-dark: #1b246d;
    --avm-accent: #ed1c24;
    --avm-info: #00aeef;
    --avm-success: #16a34a;
    --avm-warning: #f59e0b;
    --avm-danger: #dc2626;
    --avm-bg: #f6f8fc;
    --avm-surface: #ffffff;
    --avm-border: #d9e1f2;
    --avm-text: #1f2937;
    --avm-muted: #6b7280;
}

:root {
    --avm-font-scale: 1;
}

html[data-font-scale="sm"] {
    --avm-font-scale: .94;
}

html[data-font-scale="md"] {
    --avm-font-scale: 1;
}

html[data-font-scale="lg"] {
    --avm-font-scale: 1.12;
}

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

* {
    scrollbar-width: thin;
    scrollbar-color: #c3ceda transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: #c3ceda;
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #9fb0c2;
}

html {
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: calc(14px * var(--avm-font-scale));
    margin: 0;
    min-height: 100vh;
}

a {
    color: var(--brand-mid);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }}

.avm-auth-page {
    align-items: center;
    display: grid;
    min-height: calc(100vh - 10rem);
}

.avm-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding: 2.5rem;
}

.avm-auth-form h2 {
    font-size: calc(1.6rem * var(--avm-font-scale));
    margin: 0;
}

.avm-auth-form-subtitle {
    color: var(--avm-muted);
    margin: -.4rem 0 .5rem;
}

.avm-alert {
    border-radius: .45rem;
    padding: .75rem .9rem;
}

.avm-alert-danger {
    background: rgba(220, 38, 38, .09);
    border: 1px solid rgba(220, 38, 38, .28);
    color: var(--avm-danger);
}

.avm-alert-success {
    background: rgba(22, 163, 74, .09);
    border: 1px solid rgba(22, 163, 74, .28);
    color: var(--avm-success);
}

.avm-auth-body {
    background: #253f7a;
    overflow: hidden;
}

.avm-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.avm-card,
.avm-table-shell,
.avm-filterbar,
.avm-modal {
    background: var(--avm-surface);
    border: 1px solid var(--avm-border);
    border-radius: .5rem;
    box-shadow: 0 10px 28px rgba(31, 41, 55, .06);
}

.avm-filterbar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem;
}

.avm-field {
    display: grid;
    gap: .35rem;
    min-width: 12rem;
}

.avm-label {
    color: var(--avm-muted);
    font-size: calc(.82rem * var(--avm-font-scale));
    font-weight: 600;
}

.avm-input,
.avm-select,
.avm-textarea {
    background: var(--avm-surface);
    border: 1px solid var(--avm-border);
    border-radius: .4rem;
    color: var(--avm-text);
    min-height: 2.4rem;
    padding: .5rem .65rem;
}

.avm-input:focus,
.avm-select:focus,
.avm-textarea:focus {
    border-color: var(--avm-primary);
    box-shadow: 0 0 0 .2rem rgba(38, 49, 146, .12);
    outline: 0;
}

.avm-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: .4rem;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: .45rem;
    justify-content: center;
    min-height: 2.4rem;
    padding: .5rem .8rem;
    text-decoration: none;
}

.avm-btn:disabled,
.avm-btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .6;
}

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

.avm-btn-primary:hover {
    background: var(--avm-primary-dark);
    color: #fff;
}

.avm-btn-ghost {
    background: var(--avm-surface);
    border-color: var(--avm-border);
    color: var(--avm-primary);
}

.avm-btn-danger {
    background: var(--avm-danger);
    color: #fff;
}

.avm-table-shell {
    overflow: hidden;
}

.avm-table-scroll {
    overflow: auto;
    width: 100%;
}

.avm-table {
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    width: 100%;
}

.avm-table th,
.avm-table td {
    border-bottom: 1px solid var(--avm-border);
    padding: .75rem;
    vertical-align: middle;
    white-space: nowrap;
}

.avm-table th {
    background: #eef2ff;
    color: var(--avm-primary-dark);
    font-size: calc(.8rem * var(--avm-font-scale));
    font-weight: 800;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.avm-table td.avm-num,
.avm-table td.avm-money {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.avm-table td.avm-date {
    text-align: center;
}

.avm-loader {
    align-items: center;
    color: var(--avm-muted);
    display: inline-flex;
    gap: .5rem;
}

.avm-spinner {
    animation: avm-spin .8s linear infinite;
    border: 2px solid var(--avm-border);
    border-top-color: var(--avm-primary);
    border-radius: 999px;
    height: 1rem;
    width: 1rem;
}

.avm-empty,
.avm-error {
    color: var(--avm-muted);
    padding: 2rem;
    text-align: center;
}

.avm-error {
    color: var(--avm-danger);
}

.avm-pagination {
    align-items: center;
    border-top: 1px solid var(--avm-border);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: space-between;
    padding: .75rem 1rem;
}

.avm-pagination-pages {
    display: flex;
    gap: .35rem;
}

.avm-page-button {
    background: var(--avm-surface);
    border: 1px solid var(--avm-border);
    border-radius: .35rem;
    color: var(--avm-text);
    min-height: 2rem;
    min-width: 2rem;
}

.avm-page-button[aria-current="page"] {
    background: var(--avm-primary);
    color: #fff;
}

.avm-modal-backdrop {
    align-items: center;
    background: rgba(31, 41, 55, .55);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1050;
}

.avm-modal-backdrop.is-open {
    display: flex;
}

.avm-modal {
    max-height: min(90vh, 48rem);
    max-width: 42rem;
    overflow: auto;
    width: 100%;
}

.avm-modal-header,
.avm-modal-footer {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: 1rem;
}

.avm-modal-body {
    border-bottom: 1px solid var(--avm-border);
    border-top: 1px solid var(--avm-border);
    padding: 1rem;
}

.avm-form-error {
    color: var(--avm-danger);
    font-size: calc(.85rem * var(--avm-font-scale));
    margin-top: .3rem;
}

.avm-truncate-15,
.avm-truncate-20,
.avm-truncate-30,
.avm-truncate-35,
.avm-truncate-name,
.avm-truncate-email,
.avm-truncate-address {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.avm-truncate-15 {
    max-width: 15ch;
}

.avm-truncate-20,
.avm-truncate-email {
    max-width: 20ch;
}

.avm-truncate-30,
.avm-truncate-name {
    max-width: 30ch;
}

.avm-truncate-35,
.avm-truncate-address {
    max-width: 35ch;
}

.avm-auth-page-standalone {
    align-items: center;
    --avm-auth-panel-width: clamp(30rem, 36vw, 38rem);
    --avm-auth-card-width: 25.5rem;
    --avm-auth-panel-gutter: max(1.25rem, calc((var(--avm-auth-panel-width) - var(--avm-auth-card-width)) / 2));
    background:
        linear-gradient(
            270deg,
            rgba(37, 63, 122, .95) 0%,
            rgba(45, 70, 125, .85) 45%,
            rgba(55, 80, 135, .55) 70%,
            rgba(55, 80, 135, .15) 100%
        ),
        url("/images/avm-lab-login-bg.png") center / cover no-repeat;
    display: flex;
    gap: clamp(1.25rem, 3vw, 3rem);
    justify-content: flex-end;
    height: 100vh;
    overflow: hidden;
    padding: .75rem var(--avm-auth-panel-gutter) .75rem clamp(1rem, 3vw, 3rem);
    position: relative;
}

.avm-auth-page-standalone::before {
    background:
        linear-gradient(
            180deg,
            rgba(28, 31, 58, .96) 0%,
            rgba(12, 26, 54, .98) 100%
        );
    border-left: 1px solid rgba(255, 255, 255, .12);
    bottom: 0;
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: var(--avm-auth-panel-width);
}

.avm-auth-intro {
    align-self: stretch;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-width: 48rem;
    padding: clamp(1.35rem, 3.2vh, 2.5rem) 0 clamp(1.2rem, 3vh, 2.15rem);
    position: relative;
    width: min(48rem, calc(100vw - var(--avm-auth-panel-width) - var(--avm-auth-panel-gutter) - 4rem));
    z-index: 1;
}

.avm-auth-intro-brand {
    align-items: center;
    display: inline-flex;
    gap: 1.15rem;
    justify-self: start;
}

.avm-auth-intro-logo {
    display: block;
    height: auto;
    max-height: 4.4rem;
    object-fit: contain;
    width: 8.4rem;
}

.avm-auth-intro-divider {
    background: linear-gradient(180deg, #1c74d8, #20aef3);
    border-radius: 999px;
    height: 3.35rem;
    width: 2px;
}

.avm-auth-intro-brand p {
    color: #eef7ff;
    font-size: calc(.92rem * var(--avm-font-scale));
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    text-shadow: 0 2px 8px rgba(8, 18, 48, .28);
}

.avm-auth-intro-main {
    align-self: center;
}

.avm-auth-intro-main h1 {
    color: #fff;
    font-size: clamp(2.4rem, 4.2vw, 4.85rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: .98;
    margin: 0 0 1.15rem;
    text-shadow: 0 3px 14px rgba(8, 18, 48, .34);
}

.avm-auth-intro-copy {
    color: #dcecff;
    font-size: calc(1.05rem * var(--avm-font-scale));
    font-weight: 600;
    line-height: 1.65;
    margin: 0 0 2.1rem;
    text-shadow: 0 2px 10px rgba(8, 18, 48, .26);
}

.avm-auth-feature-row {
    display: grid;
    gap: .95rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 39rem;
}

.avm-auth-feature-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(222, 231, 246, .88);
    border-radius: .9rem;
    box-shadow: 0 12px 30px rgba(19, 45, 82, .08);
    display: grid;
    gap: .28rem;
    min-height: 7.15rem;
    padding: 1rem .95rem;
}

.avm-auth-feature-icon,
.avm-auth-security-icon {
    align-items: center;
    background: #eaf6ff;
    border-radius: .65rem;
    color: #138fe3;
    display: inline-flex;
    justify-content: center;
}

.avm-auth-feature-icon {
    height: 2.15rem;
    margin-bottom: .22rem;
    width: 2.15rem;
}

.avm-auth-feature-icon svg,
.avm-auth-security-icon svg {
    fill: currentColor;
}

.avm-auth-feature-icon svg {
    height: 1.15rem;
    width: 1.15rem;
}

.avm-auth-feature-card strong {
    color: #102057;
    font-size: calc(.98rem * var(--avm-font-scale));
    line-height: 1.1;
}

.avm-auth-feature-card span:last-child {
    color: #71809a;
    font-size: calc(.78rem * var(--avm-font-scale));
    font-weight: 600;
    line-height: 1.25;
}

.avm-auth-security-note {
    align-items: center;
    color: #e7f2ff;
    display: flex;
    gap: .85rem;
    text-shadow: 0 2px 10px rgba(8, 18, 48, .28);
}

.avm-auth-security-icon {
    flex: 0 0 auto;
    height: 2.35rem;
    width: 2.35rem;
}

.avm-auth-security-icon svg {
    height: 1.18rem;
    width: 1.18rem;
}

.avm-auth-security-note p {
    font-size: calc(.86rem * var(--avm-font-scale));
    font-weight: 600;
    line-height: 1.55;
    margin: 0;
}

.avm-auth-security-row {
    color: rgba(255, 255, 255, .68);
    font-size: calc(.75rem * var(--avm-font-scale));
    letter-spacing: .08em;
    text-transform: uppercase;
}

.avm-auth-card {
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(217, 225, 242, .9);
    border-radius: 1.15rem;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .34);
    max-width: 25.5rem;
    overflow: hidden;
    padding: 0 clamp(1.15rem, 2vw, 1.65rem) clamp(1rem, 2vw, 1.25rem);
    position: relative;
    width: min(var(--avm-auth-card-width), calc(var(--avm-auth-panel-width) - 2.5rem), 100%);
    z-index: 1;
}

.avm-auth-card-bar {
    background: linear-gradient(90deg, #3744b0, #152081);
    height: .3rem;
    margin: 0 calc(clamp(1.15rem, 2vw, 1.65rem) * -1) .8rem;
}

.avm-auth-card-compact {
    grid-column: 1 / -1;
}

.avm-auth-card-logo {
    display: block;
    height: auto;
    margin: 0 auto .45rem;
    max-height: 4.15rem;
    max-width: 8.6rem;
    object-fit: contain;
    width: 48%;
}

.avm-auth-card h2 {
    color: var(--avm-primary-dark);
    font-size: calc(1.32rem * var(--avm-font-scale));
    letter-spacing: .02em;
    margin: 0;
    text-align: center;
}

.avm-auth-card .avm-auth-form-subtitle {
    color: #425174;
    font-size: calc(.74rem * var(--avm-font-scale));
    margin: .25rem 0 0;
    text-align: center;
}

.avm-auth-card .avm-auth-form {
    gap: .62rem;
    padding: 0;
}

.avm-auth-tagline {
    align-items: center;
    display: flex;
    gap: .75rem;
    margin: .62rem 0 .82rem;
}

.avm-auth-tagline span {
    background: #e6ecf7;
    flex: 1;
    height: 1px;
}

.avm-auth-tagline strong {
    color: var(--avm-primary);
    font-size: calc(.58rem * var(--avm-font-scale));
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.avm-label-row {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.avm-auth-link {
    align-items: center;
    color: var(--avm-primary);
    display: inline-flex;
    font-size: calc(.78rem * var(--avm-font-scale));
    font-weight: 700;
    gap: .25rem;
    text-decoration: none;
}

.avm-auth-link svg {
    fill: currentColor;
    height: .82rem;
    width: .82rem;
}

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

.avm-input-icon-wrap {
    position: relative;
}

.avm-input-icon {
    align-items: center;
    color: #8fa0bb;
    display: inline-flex;
    height: 100%;
    justify-content: center;
    left: 1rem;
    position: absolute;
    top: 0;
    width: 1.25rem;
}

.avm-input-icon svg,
.avm-input-action svg,
.avm-auth-security-row svg {
    fill: currentColor;
}

.avm-input-with-icon {
    background: #eaf2ff;
    border-color: #d7e3f7;
    border-radius: .75rem;
    color: #111827;
    font-size: calc(.9rem * var(--avm-font-scale));
    min-height: 2.75rem;
    padding-left: 3.2rem;
    width: 100%;
}

.avm-input-with-icon::placeholder {
    color: #8190aa;
}

.avm-input-with-icon:focus {
    background: #fff;
    border-color: var(--avm-primary);
}

.avm-input-with-action {
    padding-right: 3.1rem;
}

.avm-input-action {
    align-items: center;
    background: transparent;
    border: 0;
    color: #8090aa;
    cursor: pointer;
    display: inline-flex;
    height: 100%;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: .95rem;
    top: 0;
    width: 1.4rem;
}

.avm-input-action:hover,
.avm-input-action[aria-pressed="true"] {
    color: var(--avm-primary);
}

.avm-eye-hide,
.avm-input-action[aria-pressed="true"] .avm-eye-show {
    display: none;
}

.avm-input-action[aria-pressed="true"] .avm-eye-hide {
    display: block;
}

.avm-auth-remember {
    align-items: center;
    color: #55627a;
    cursor: pointer;
    display: inline-flex;
    font-size: calc(.78rem * var(--avm-font-scale));
    gap: .55rem;
    margin: 0 0 .55rem;
    user-select: none;
}

.avm-auth-remember input {
    accent-color: var(--avm-primary);
    height: 1.05rem;
    margin: 0;
    width: 1.05rem;
}

.avm-auth-submit {
    align-items: center;
    border-radius: .8rem;
    box-shadow: 0 14px 28px rgba(38, 49, 146, .28);
    display: inline-flex;
    font-size: calc(.82rem * var(--avm-font-scale));
    gap: .65rem;
    justify-content: center;
    letter-spacing: .13em;
    min-height: 2.8rem;
    text-transform: uppercase;
    width: 100%;
}

.avm-auth-submit.avm-is-loading {
    cursor: wait;
    opacity: .94;
}

.avm-submit-spinner {
    animation: avm-spin .65s linear infinite;
    border: 2px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    border-top-color: #fff;
    display: none;
    flex: 0 0 auto;
    height: 1rem;
    width: 1rem;
}

.avm-auth-submit.avm-is-loading .avm-submit-spinner {
    display: inline-block;
}

.avm-auth-form-message {
    color: var(--avm-danger);
    font-size: calc(.78rem * var(--avm-font-scale));
    font-weight: 700;
    line-height: 1.25;
    margin: -.2rem 0 0;
    min-height: 1rem;
    text-align: center;
}

.avm-auth-card-divider {
    background: #e8eef8;
    height: 1px;
    margin: .45rem 0 .55rem;
}

.avm-auth-card-note {
    color: #8391a8;
    font-size: calc(.7rem * var(--avm-font-scale));
    line-height: 1.55;
    margin: 0 0 .5rem;
    text-align: center;
}

.avm-auth-security-row {
    align-items: center;
    color: #9aabba;
    display: flex;
    flex-wrap: wrap;
    font-size: calc(.62rem * var(--avm-font-scale));
    font-weight: 700;
    gap: .85rem;
    justify-content: center;
    letter-spacing: .08em;
    margin-top: 0;
}

.avm-auth-security-row span {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
}

.avm-auth-security-row svg {
    height: .9rem;
    width: .9rem;
}

.avm-auth-back-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

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

@media (max-width: 768px) {
    .avm-auth-page-standalone {
        --avm-auth-panel-width: 100%;
        --avm-auth-card-width: 25.5rem;
        --avm-auth-panel-gutter: 1rem;
        background:
            linear-gradient(
                270deg,
                rgba(37, 63, 122, .95) 0%,
                rgba(45, 70, 125, .85) 45%,
                rgba(55, 80, 135, .55) 70%,
                rgba(55, 80, 135, .15) 100%
            ),
            url("/images/avm-lab-login-bg.png") left top / cover no-repeat;
        justify-content: center;
        min-height: 100vh;
        overflow-y: auto;
        padding: 1rem;
    }

    .avm-auth-page-standalone::before {
        width: 100%;
    }

    .avm-auth-intro {
        display: none;
    }

    .avm-auth-card {
        width: 100%;
    }

    .avm-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .avm-field,
    .avm-btn {
        width: 100%;
    }
}

html,
body {
    height: 100%;
}

body:not(.avm-auth-body) {
    overflow: hidden;
}

.avm-portal-shell {
    background: var(--bg);
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    transition: grid-template-columns .24s cubic-bezier(.4, 0, .2, 1);
}

.avm-sidebar {
    background:
        radial-gradient(120% 60% at 0% 0%, rgba(5, 150, 105, .10), transparent 60%),
        linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 46%, var(--navy-900) 100%);
    border-right: 1px solid rgba(255, 255, 255, .06);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    position: relative;
    z-index: 45;
}

.avm-sidebar::before {
    background: linear-gradient(to bottom, transparent, rgba(5, 150, 105, .55), transparent);
    content: "";
    height: 100%;
    opacity: .5;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
}

.avm-sidebar-frame {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.avm-sidebar-brand {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    flex-shrink: 0;
    min-height: 72px;
    text-decoration: none;
}

.avm-sidebar-logo {
    background: #fff;
    display: block;
    flex-shrink: 0;
    height: auto;
    max-height: 54px;
    max-width: 132px;
    object-fit: contain;
    padding: 4px 8px;
    margin-left: 25px;
}

.avm-sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: var(--sp-3) var(--sp-2);
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.avm-sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}

.avm-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border-radius: 2px;
}

.avm-nav-group + .avm-nav-group {
    margin-top: var(--sp-5);
}

.avm-nav-section-label {
    color: rgba(255, 255, 255, .28);
    font-family: var(--font-display);
    font-size: calc(9px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: var(--sp-1);
    padding: 0 var(--sp-3);
    text-transform: uppercase;
    white-space: nowrap;
}

.avm-nav-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--r-sm);
    color: rgba(255, 255, 255, .52);
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: calc(13px * var(--avm-font-scale));
    font-weight: 500;
    gap: var(--sp-3);
    margin-bottom: 2px;
    padding: 9px var(--sp-3);
    position: relative;
    text-align: left;
    text-decoration: none;
    transition: background .16s, color .16s;
    white-space: nowrap;
    width: 100%;
}

.avm-nav-item:hover,
.avm-nav-item.is-active {
    background: rgba(5, 150, 105, .14);
    color: #fff;
}

.avm-nav-item.is-active {
    font-weight: 600;
}

.avm-nav-item.is-active::before {
    background: var(--green);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px rgba(5, 150, 105, .45);
    content: "";
    height: 52%;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
}

.avm-nav-item.is-disabled {
    cursor: not-allowed;
    opacity: .38;
}

.avm-nav-item.is-disabled:hover {
    background: transparent;
    color: rgba(255, 255, 255, .52);
}

.avm-nav-icon {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    height: 18px;
    justify-content: center;
    opacity: .7;
    width: 18px;
}

.avm-nav-item.is-active .avm-nav-icon {
    opacity: 1;
}.avm-nav-icon svg,
.avm-icon-button svg {
    fill: currentColor;
    height: 100%;
    width: 100%;
}

.avm-nav-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avm-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, .07);
    flex-shrink: 0;
    overflow: hidden;
    padding: var(--sp-2) var(--sp-4) var(--sp-3);
}

.avm-sidebar-status {
    align-items: center;
    color: rgba(255, 255, 255, .5);
    display: flex;
    font-size: calc(10px * var(--avm-font-scale));
    font-weight: 600;
    gap: var(--sp-2);
    letter-spacing: .3px;
    text-transform: uppercase;
}

.avm-sidebar-status span {
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, .18);
    flex-shrink: 0;
    height: 6px;
    width: 6px;
}

.avm-sidebar-profile {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    flex-shrink: 0;
    gap: var(--sp-2);
    padding: 10px var(--sp-4);
}

.avm-sidebar-avatar {
    align-items: center;
    background: var(--green);
    border-radius: var(--r-sm);
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: calc(11px * var(--avm-font-scale));
    font-weight: 700;
    height: 30px;
    justify-content: center;
    letter-spacing: -.3px;
    width: 30px;
}

.avm-sidebar-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.avm-sidebar-identity strong {
    color: rgba(255, 255, 255, .9);
    font-size: calc(12px * var(--avm-font-scale));
    font-weight: 600;
    line-height: 1.3;
}

.avm-sidebar-identity span {
    color: rgba(255, 255, 255, .38);
    font-family: var(--font-num);
    font-size: calc(10px * var(--avm-font-scale));
    letter-spacing: .3px;
}

.avm-sidebar-backdrop {
    background: rgba(9, 12, 30, .55);
    display: none;
    inset: 0;
    position: fixed;
    z-index: 40;
}

.avm-shell-workspace {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.avm-topbar {
    align-items: center;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    flex-shrink: 0;
    gap: var(--sp-2);
    height: var(--topbar-h);
    padding: 0 var(--sp-4);
    position: sticky;
    top: 0;
    z-index: 30;
}

.avm-topbar::after {
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, .6), transparent);
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    opacity: .5;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.avm-crumb {
    align-items: center;
    color: rgba(255, 255, 255, .45);
    display: flex;
    font-size: calc(12px * var(--avm-font-scale));
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
}

.avm-crumb-sep {
    opacity: .35;
}

.avm-crumb-page {
    color: #fff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avm-topbar-search {
    align-items: center;
    background: rgba(58, 82, 160, .12);
    border: 1px solid rgba(58, 82, 160, .28);
    border-radius: var(--r-sm);
    display: flex;
    flex: 1;
    gap: var(--sp-2);
    max-width: 280px;
    padding: 7px var(--sp-3);
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.avm-topbar-search:focus-within {
    background: rgba(5, 150, 105, .14);
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, .18);
}

.avm-topbar-search svg {
    fill: rgba(255, 255, 255, .45);
    flex-shrink: 0;
    height: 13px;
    width: 13px;
}

.avm-topbar-search input {
    background: transparent;
    border: 0;
    color: #fff;
    font-family: inherit;
    font-size: calc(12.5px * var(--avm-font-scale));
    min-width: 0;
    outline: none;
    width: 100%;
}

.avm-topbar-search input::placeholder {
    color: rgba(255, 255, 255, .42);
}

.avm-topbar-right {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: var(--sp-2);
    margin-left: auto;
}

.avm-icon-button {
    align-items: center;
    background: rgba(58, 82, 160, .12);
    border: 1px solid rgba(58, 82, 160, .28);
    border-radius: var(--r-sm);
    color: rgba(255, 255, 255, .55);
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    height: 34px;
    justify-content: center;
    padding: 8px;
    position: relative;
    transition: background .15s, border-color .15s, color .15s;
    width: 34px;
}

.avm-icon-button:hover {
    background: rgba(5, 150, 105, .16);
    border-color: var(--green);
    color: #fff;
}

.avm-font-picker {
    align-items: center;
    background: rgba(58, 82, 160, .12);
    border: 1px solid rgba(58, 82, 160, .28);
    border-radius: var(--r-sm);
    display: inline-flex;
    gap: 2px;
    padding: 2px;
}

.avm-font-btn {
    background: transparent;
    border: 0;
    border-radius: var(--r-xs);
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: calc(11.5px * var(--avm-font-scale));
    font-weight: 700;
    height: 28px;
    line-height: 1;
    min-width: 28px;
    transition: background .15s, color .15s;
}

.avm-font-btn:hover,
.avm-font-btn[aria-pressed="true"] {
    background: var(--green);
    color: #fff;
}

.avm-balance-chip {
    align-items: center;
    background: rgba(5, 150, 105, .14);
    border: 1px solid rgba(5, 150, 105, .32);
    border-radius: var(--r-pill);
    display: inline-flex;
    flex-shrink: 0;
    gap: var(--sp-2);
    height: 34px;
    padding: 0 var(--sp-3);
    white-space: nowrap;
}

.avm-balance-chip-label {
    color: rgba(255, 255, 255, .5);
    font-size: calc(9px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.avm-balance-chip-value {
    color: #fff;
    font-family: var(--font-num);
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-size: calc(13px * var(--avm-font-scale));
    font-variant-numeric: tabular-nums lining-nums;
    font-weight: 500;
}

.avm-balance-chip-code {
    color: rgba(255, 255, 255, .45);
    font-size: calc(10px * var(--avm-font-scale));
    font-weight: 600;
}

.avm-visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.avm-dots {
    display: inline-flex;
    gap: 3px;
}

.avm-dots span {
    animation: avm-dot-pulse 1.4s infinite ease-in-out both;
    background: currentColor;
    border-radius: 50%;
    height: 5px;
    opacity: .25;
    width: 5px;
}

.avm-dots span:nth-child(1) {
    animation-delay: -.32s;
}

.avm-dots span:nth-child(2) {
    animation-delay: -.16s;
}

@keyframes avm-dot-pulse {
    0%,
    80%,
    100% {
        opacity: .2;
        transform: scale(.4);
    }

    40% {
        opacity: .8;
        transform: scale(1);
    }
}

.avm-balance-chip.is-loading {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .55);
}

.avm-balance-chip.is-loading .avm-balance-chip-value,
.avm-balance-chip.is-loading .avm-balance-chip-code {
    display: none;
}

.avm-balance-chip.is-unavailable {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .14);
}

.avm-balance-chip.is-unavailable .avm-balance-chip-value {
    color: rgba(255, 255, 255, .55);
    font-family: var(--font-body);
    font-size: calc(11.5px * var(--avm-font-scale));
}

.avm-paynow {
    align-items: center;
    background: var(--green);
    border: 0;
    border-radius: var(--r-pill);
    box-shadow: 0 2px 8px rgba(5, 150, 105, .34);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font-family: inherit;
    font-size: calc(12px * var(--avm-font-scale));
    font-weight: 700;
    gap: 6px;
    height: 34px;
    letter-spacing: .1px;
    padding: 0 var(--sp-4);
    text-decoration: none;
    transition: background .15s, box-shadow .15s, transform .15s;
}

.avm-paynow:hover {
    background: var(--green-ink);
    box-shadow: 0 4px 14px rgba(5, 150, 105, .42);
    transform: translateY(-1px);
}

.avm-signout-form {
    display: flex;
    flex-shrink: 0;
}

.avm-overdue-banner {
    align-items: center;
    background: linear-gradient(90deg, #b91c1c 0%, var(--red) 58%, #ef4444 100%);
    color: #fff;
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: var(--sp-3);
    padding: 10px var(--sp-6);
}

.avm-overdue-banner-icon {
    align-items: center;
    background: rgba(255, 255, 255, .18);
    border-radius: var(--r-sm);
    display: inline-flex;
    flex-shrink: 0;
    height: 28px;
    justify-content: center;
    padding: 6px;
    width: 28px;
}

.avm-overdue-banner-icon svg {
    fill: currentColor;
    height: 100%;
    width: 100%;
}

.avm-overdue-banner-text {
    flex: 1;
    font-size: calc(12.5px * var(--avm-font-scale));
    line-height: 1.5;
    min-width: 180px;
}

.avm-overdue-banner-text strong {
    font-family: var(--font-num);
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-variant-numeric: tabular-nums lining-nums;
    font-weight: 500;
}

.avm-overdue-banner-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: var(--sp-2);
}

.avm-overdue-settle {
    background: #fff;
    border: 0;
    border-radius: var(--r-pill);
    color: #b91c1c;
    cursor: pointer;
    font-family: inherit;
    font-size: calc(11.5px * var(--avm-font-scale));
    font-weight: 700;
    height: 28px;
    padding: 0 var(--sp-4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.avm-overdue-dismiss {
    background: rgba(255, 255, 255, .16);
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: calc(15px * var(--avm-font-scale));
    height: 26px;
    line-height: 1;
    width: 26px;
}

.avm-overdue-dismiss:hover {
    background: rgba(255, 255, 255, .3);
}

.avm-content {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px var(--sp-6) var(--sp-7);
}

.avm-content:focus {
    outline: none;
}

.avm-footer {
    align-items: center;
    background: var(--card);
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: grid;
    flex-shrink: 0;
    font-size: calc(10.5px * var(--avm-font-scale));
    gap: var(--sp-2);
    grid-template-columns: 1fr auto 1fr;
    padding: var(--sp-2) var(--sp-6);
}

.avm-footer-left {
    align-items: center;
    display: flex;
    gap: var(--sp-2);
    min-width: 0;
}

.avm-footer-brand {
    align-items: center;
    color: var(--ink-2);
    display: inline-flex;
    font-family: var(--font-display);
    font-size: calc(10.5px * var(--avm-font-scale));
    font-weight: 700;
    gap: 6px;
}

.avm-footer-dot {
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    height: 6px;
    width: 6px;
}

.avm-footer-ver {
    background: var(--mint);
    border: 1px solid rgba(5, 150, 105, .22);
    border-radius: var(--r-xs);
    color: var(--green-ink);
    font-family: var(--font-display);
    font-size: calc(10px * var(--avm-font-scale));
    font-weight: 600;
    letter-spacing: .2px;
    padding: 2px 7px;
    white-space: nowrap;
}

.avm-footer-center {
    text-align: center;
    white-space: nowrap;
}

.avm-footer-right {
    text-align: right;
    white-space: nowrap;
}

.avm-sidebar-collapsed .avm-portal-shell {
    grid-template-columns: var(--sidebar-rail-w) minmax(0, 1fr);
}

.avm-sidebar-collapsed .avm-sidebar-brand {
    justify-content: center;
    padding-left: var(--sp-2);
    padding-right: var(--sp-2);
}

.avm-sidebar-collapsed .avm-sidebar-logo {
    max-width: 46px;
    padding: 3px;
}

.avm-sidebar-collapsed .avm-nav-text,
.avm-sidebar-collapsed .avm-nav-section-label,
.avm-sidebar-collapsed .avm-sidebar-identity {
    display: none;
}

.avm-sidebar-collapsed .avm-sidebar-profile {
    justify-content: center;
    padding-left: var(--sp-2);
    padding-right: var(--sp-2);
}

.avm-sidebar-collapsed .avm-nav-item {
    justify-content: center;
    padding-left: var(--sp-2);
    padding-right: var(--sp-2);
}

.avm-sidebar-collapsed .avm-sidebar-status {
    justify-content: center;
}@media (max-width: 1180px) {
    .avm-topbar-search {
        max-width: 190px;
    }}
@media (max-width: 899px) {
    .avm-portal-shell,
    .avm-sidebar-collapsed .avm-portal-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .avm-sidebar {
        bottom: 0;
        left: 0;
        position: fixed;
        top: 0;
        transform: translateX(-100%);
        transition: transform .26s cubic-bezier(.4, 0, .2, 1);
        width: var(--sidebar-w);
    }

    .avm-sidebar-open .avm-sidebar {
        transform: translateX(0);
    }

    .avm-sidebar-open .avm-sidebar-backdrop {
        display: block;
    }

    .avm-sidebar-collapsed .avm-nav-text,
    .avm-sidebar-collapsed .avm-nav-section-label,
    .avm-sidebar-collapsed .avm-sidebar-identity {
        display: revert;
    }

    .avm-sidebar-collapsed .avm-sidebar-profile {
        justify-content: flex-start;
        padding-left: var(--sp-4);
        padding-right: var(--sp-4);
    }

    .avm-sidebar-collapsed .avm-nav-item,
    .avm-sidebar-collapsed .avm-sidebar-brand {
        justify-content: flex-start;
        padding-left: var(--sp-3);
        padding-right: var(--sp-3);
    }

    .avm-sidebar-collapsed .avm-sidebar-logo {
        max-width: 132px;
        padding: 4px 8px;
    }

    .avm-crumb {
        display: none;
    }}
@media (max-width: 720px) {
    .avm-topbar-search,
    .avm-footer-center {
        display: none;
    }

    .avm-footer {
        grid-template-columns: 1fr auto;
    }}
@media (max-width: 760px) {
    .avm-topbar-optional {
        display: none;
    }}
@media (max-width: 620px) {
    .avm-content {
        padding: var(--sp-4) var(--sp-3) 26px;
    }

    .avm-overdue-banner {
        padding: 10px var(--sp-3);
    }

    .avm-balance-chip-label {
        display: none;
    }}
@media (max-width: 380px) {
    .avm-font-btn {
        min-width: 24px;
        padding: 0 2px;
    }

    .avm-balance-chip {
        padding: 0 10px;
    }

    .avm-balance-chip-code {
        display: none;
    }}
@media (max-width: 420px) {
    .avm-footer-right {
        display: none;
    }

    .avm-footer {
        grid-template-columns: 1fr;
    }

    .avm-paynow {
        padding: 0 var(--sp-3);
    }}

.avm-auth-card {
    border-color: rgba(215, 227, 247, .96);
    border-radius: .55rem;
    box-shadow: 0 28px 70px rgba(8, 17, 42, .34), inset 0 0 0 1px rgba(255, 255, 255, .75);
}

.avm-auth-card::before {
    background: linear-gradient(180deg, rgba(37, 63, 122, .08), rgba(37, 63, 122, 0));
    content: "";
    height: 6rem;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
}

.avm-auth-card-bar {
    background: linear-gradient(90deg, #3141ba, #10207a 55%, #00aeef);
    height: .32rem;
    position: relative;
    z-index: 1;
}

.avm-auth-card .avm-auth-form,
.avm-auth-card-logo,
.avm-auth-card h2,
.avm-auth-card .avm-auth-form-subtitle,
.avm-auth-tagline,
.avm-auth-card-divider,
.avm-auth-card-note,
.avm-auth-security-row {
    position: relative;
    z-index: 1;
}

.avm-input-with-icon {
    border-radius: .45rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.avm-auth-submit {
    border-radius: .45rem;
    position: relative;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.avm-auth-submit:hover {
    transform: translateY(-1px);
}

.avm-auth-submit.avm-is-loading {
    background: linear-gradient(90deg, #15803d, #16a34a, #22c55e);
    box-shadow: 0 16px 34px rgba(22, 163, 74, .3);
    color: #fff;
}

.avm-confirm-modal {
    align-items: center;
    background: rgba(7, 17, 36, .62);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1200;
}

.avm-confirm-modal[hidden] {
    display: none;
}

.avm-confirm-card {
    background: #fff;
    border: 1px solid rgba(217, 225, 242, .95);
    border-radius: .5rem;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
    display: grid;
    gap: 1rem;
    max-width: 26rem;
    padding: 1.25rem;
    width: 100%;
}

.avm-confirm-icon {
    align-items: center;
    background: #eef3ff;
    border: 1px solid #d7e3f7;
    border-radius: .5rem;
    color: var(--avm-primary);
    display: inline-flex;
    height: 2.6rem;
    justify-content: center;
    width: 2.6rem;
}

.avm-confirm-icon svg {
    fill: currentColor;
    height: 1.3rem;
    width: 1.3rem;
}

.avm-confirm-card h2 {
    color: var(--avm-primary-dark);
    font-size: calc(1.2rem * var(--avm-font-scale));
    margin: 0;
}

.avm-confirm-card p {
    color: var(--avm-muted);
    font-size: calc(.9rem * var(--avm-font-scale));
    line-height: 1.45;
    margin: .25rem 0 0;
}

.avm-confirm-actions {
    display: flex;
    gap: .65rem;
    justify-content: flex-end;
}

@keyframes avm-skeleton {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

@keyframes avm-progress-pulse {
    0%,
    100% {
        opacity: .62;
        transform: translateX(-8%);
    }

    50% {
        opacity: 1;
        transform: translateX(18%);
    }
}@media (max-width: 768px) {.avm-confirm-actions {
        flex-direction: column;
        grid-template-columns: 1fr;
    }}

.avm-dash {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin: 0 auto;
    max-width: 1640px;
}

.avm-hero {
    align-items: flex-start;
    animation: avm-rise .32s cubic-bezier(.22, 1, .36, 1) both;
    background:
        radial-gradient(80% 140% at 100% 0%, rgba(5, 150, 105, .3), transparent 60%),
        linear-gradient(120deg, var(--navy-700) 0%, var(--navy-800) 52%, var(--navy-900) 100%);
    border-radius: var(--r-lg);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: space-between;
    padding: 12px var(--sp-5);
}

.avm-hero-main {
    min-width: 0;
}

.avm-hero-eyebrow {
    color: rgba(255, 255, 255, .48);
    font-size: calc(9.5px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.avm-hero-title {
    font-family: var(--font-display);
    font-size: calc(19px * var(--avm-font-scale));
    font-weight: 600;
    letter-spacing: -.3px;
    line-height: 1.3;
    margin: 2px 0 0;
}

.avm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    min-width: 0;
}

.avm-chip {
    align-items: center;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--r-pill);
    color: #fff;
    display: inline-flex;
    font-size: calc(10.5px * var(--avm-font-scale));
    font-weight: 600;
    gap: 5px;
    padding: 3px 10px;
    white-space: nowrap;
}

.avm-chip-key {
    color: rgba(255, 255, 255, .5);
    font-weight: 500;
}

.avm-chip.is-live {
    background: rgba(5, 150, 105, .18);
    border-color: rgba(5, 150, 105, .36);
}

.avm-chip-dot {
    animation: avm-pulse 2s ease-in-out infinite;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    height: 6px;
    width: 6px;
}

@keyframes avm-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.7);
    }
}

@keyframes avm-rise {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.avm-hero-side {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.avm-band {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin: 6px 0 -2px;
}

.avm-band-title {
    color: var(--ink-2);
    font-size: calc(10px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: 1.1px;
    margin: 0;
    text-transform: uppercase;
}

.avm-band-meta {
    color: var(--muted-lt);
    font-size: calc(10.5px * var(--avm-font-scale));
}

.avm-band-action {
    background: none;
    border: 0;
    color: var(--brand-mid);
    cursor: pointer;
    font-family: inherit;
    font-size: calc(10.5px * var(--avm-font-scale));
    font-weight: 600;
    margin-left: auto;
    padding: 0;
}

.avm-equation {
    align-items: stretch;
    display: flex;
    gap: 3px;
}

.avm-operator {
    align-items: center;
    color: var(--muted-lt);
    display: flex;
    flex: 0 0 auto;
    font-size: calc(13px * var(--avm-font-scale));
    justify-content: center;
    width: 13px;
}

.avm-position-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.avm-position-row .avm-tile {
    flex: 1 1 152px;
    max-width: 340px;
    min-width: 140px;
}

.avm-tile {
    animation: avm-rise .32s cubic-bezier(.22, 1, .36, 1) both;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding: 10px 12px 9px;
    position: relative;
}

.avm-tile[data-avm-kpi] {
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.avm-tile[data-avm-kpi]:hover {
    border-color: #c7d4e3;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.avm-tile-label {
    color: var(--muted);
    font-size: calc(9.5px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.avm-tile-value {
    align-items: baseline;
    color: var(--ink);
    display: flex;
    font-family: var(--font-display);
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-size: calc(20px * var(--avm-font-scale));
    font-variant-numeric: tabular-nums lining-nums;
    font-weight: 600;
    flex-wrap: wrap;
    gap: 0 4px;
    letter-spacing: -.4px;
    line-height: 1.25;
    margin-top: 2px;
    min-width: 0;
}

.avm-tile-value.is-zero {
    color: var(--muted-lt);
}

.avm-tile-amount {
    word-break: break-word;
}

.avm-tile-ccy {
    color: var(--muted-lt);
    font-family: var(--font-body);
    font-size: calc(9.5px * var(--avm-font-scale));
    font-weight: 600;
    letter-spacing: .3px;
}

.avm-tile-note {
    color: var(--muted-lt);
    font-size: calc(10px * var(--avm-font-scale));
    line-height: 1.45;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avm-tile-pill {
    background: var(--red-soft);
    border-radius: var(--r-pill);
    color: var(--red);
    font-size: calc(9px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: .2px;
    margin-left: 4px;
    padding: 1px 7px;
    white-space: nowrap;
}

.avm-tile.is-sky {
    background: var(--sky);
    border-color: rgba(29, 78, 216, .16);
}

.avm-tile.is-sky .avm-tile-value {
    color: var(--sky-ink);
}

.avm-tile.is-amber {
    background: var(--cream);
    border-color: rgba(217, 119, 6, .18);
}

.avm-tile.is-amber .avm-tile-value {
    color: var(--cream-ink);
}

.avm-tile.is-red {
    background: var(--red-soft);
    border-color: rgba(220, 38, 38, .18);
}

.avm-tile.is-red .avm-tile-value {
    color: var(--red);
}

.avm-tile.is-teal {
    background: var(--teal);
    border-color: rgba(19, 107, 113, .18);
}

.avm-tile.is-teal .avm-tile-value {
    color: var(--teal-ink);
}

.avm-tile.is-lilac {
    background: var(--lilac);
    border-color: rgba(124, 58, 237, .16);
}

.avm-tile.is-lilac .avm-tile-value {
    color: var(--lilac-ink);
}

.avm-tile.is-mint {
    background: var(--mint);
    border-color: rgba(5, 150, 105, .2);
}

.avm-tile.is-mint .avm-tile-value {
    color: var(--green-ink);
}

.avm-tile.is-refreshed {
    animation: avm-tile-refresh .62s ease both;
}

@keyframes avm-tile-refresh {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 191, 166, .22);
    }

    45% {
        box-shadow: 0 0 0 5px rgba(0, 191, 166, .10);
    }

    100% {
        box-shadow: none;
    }
}

.avm-note {
    align-items: flex-start;
    background: var(--cream);
    border-left: 3px solid var(--amber);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    color: var(--cream-ink);
    display: flex;
    font-size: calc(10.5px * var(--avm-font-scale));
    gap: 7px;
    line-height: 1.55;
    margin: 0;
    padding: 7px 12px;
}

.avm-note svg {
    fill: currentColor;
    flex-shrink: 0;
    height: 13px;
    margin-top: 1px;
    width: 13px;
}

.avm-grid-2 {
    display: grid;
    gap: var(--sp-2);
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.avm-panel {
    animation: avm-rise .32s cubic-bezier(.22, 1, .36, 1) both;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    display: flex;
    flex-direction: column;
    padding: 12px var(--sp-4) var(--sp-4);
}

.avm-panel.is-combo-open {
    position: relative;
    z-index: 70;
}

.avm-flow-section {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

.avm-flow-section.is-open {
    opacity: 1;
    transform: translateY(0);
}

.avm-flow-section.is-leaving {
    pointer-events: none;
}

.avm-panel-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    justify-content: space-between;
    margin-bottom: 10px;
}

.avm-panel-title {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: calc(12.5px * var(--avm-font-scale));
    font-weight: 600;
    margin: 0;
}

.avm-panel-sub {
    color: var(--muted-lt);
    font-size: calc(10.5px * var(--avm-font-scale));
    margin: 2px 0 0;
}

.avm-live-badge {
    align-items: center;
    background: var(--mint);
    border-radius: var(--r-pill);
    color: var(--green-ink);
    display: inline-flex;
    font-size: calc(9.5px * var(--avm-font-scale));
    font-weight: 700;
    gap: 5px;
    padding: 2px 8px;
}

.avm-empty {
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: var(--sp-5) var(--sp-4);
    text-align: center;
}

.avm-empty strong {
    color: var(--ink-2);
    font-size: calc(12.5px * var(--avm-font-scale));
    font-weight: 600;
}

.avm-empty span {
    font-size: calc(11px * var(--avm-font-scale));
    line-height: 1.55;
    margin: 0 auto;
    max-width: 48ch;
}@media (max-width: 1440px) {
    .avm-hero-side {
        align-items: flex-start;
        width: 100%;
    }

    .avm-chip-row {
        justify-content: flex-start;
    }}
@media (max-width: 1180px) {
    .avm-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }}

/* Three across keeps the last row balanced instead of leaving one tile alone. */
@media (min-width: 561px) and (max-width: 1100px) {
    .avm-position-row .avm-tile {
        flex-basis: 30%;
        max-width: none;
    }
}@media (max-width: 980px) {
    .avm-equation {
        display: grid;
        gap: var(--sp-2);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .avm-operator {
        display: none;
    }}
@media (max-width: 720px) {
    .avm-equation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .avm-hero-side {
        align-items: flex-start;
        width: 100%;
    }

    .avm-chip-row {
        justify-content: flex-start;
    }}
@media (max-width: 560px) {
    .avm-hero {
        padding: 12px var(--sp-3);
    }

    .avm-hero-title {
        font-size: calc(17px * var(--avm-font-scale));
    }

    .avm-equation,
    .avm-position-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .avm-position-row .avm-tile,
    .avm-equation .avm-tile {
        min-width: 0;
    }

    .avm-position-row[data-avm-collapsed="true"] .avm-tile:nth-child(n + 3) {
        display: none;
    }

    .avm-equation[data-avm-collapsed="true"] .avm-tile:not(.is-sky),
    .avm-equation[data-avm-collapsed="true"] .avm-operator {
        display: none;
    }

    .avm-band-action {
        display: inline-block;
    }

    .avm-tile {
        padding: 9px 11px 8px;
    }}
@media (min-width: 561px) {
    .avm-band-action {
        display: none;
    }}

.avm-toggle {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    display: inline-flex;
    gap: 2px;
    padding: 2px;
}

.avm-toggle-btn {
    background: transparent;
    border: 0;
    border-radius: var(--r-xs);
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    font-size: calc(10.5px * var(--avm-font-scale));
    font-weight: 600;
    padding: 4px 10px;
    transition: background .15s, color .15s;
}

.avm-toggle-btn:hover {
    color: var(--ink);
}

.avm-toggle-btn.is-active {
    background: var(--navy-800);
    color: #fff;
}

.avm-panel-action {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--ink-2);
    cursor: pointer;
    font-family: inherit;
    font-size: calc(10.5px * var(--avm-font-scale));
    font-weight: 600;
    padding: 5px 11px;
    transition: background .15s, border-color .15s;
}

.avm-panel-action:hover {
    background: var(--bg);
    border-color: #c7d4e3;
}

.avm-chart {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avm-chart svg {
    display: block;
    height: 168px;
    width: 100%;
}

.avm-chart-area,
.avm-chart-line {
    transition: opacity .2s;
}

.avm-chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.avm-chart-line.is-turnover {
    stroke: var(--green);
}

.avm-chart-line.is-patients {
    stroke: var(--lilac-ink);
    stroke-dasharray: 4 3;
}

.avm-chart[data-avm-series-state="turnover"] .avm-chart-line.is-patients,
.avm-chart[data-avm-series-state="patients"] .avm-chart-line.is-turnover,
.avm-chart[data-avm-series-state="patients"] .avm-chart-area {
    opacity: 0;
}

.avm-chart-axis {
    color: var(--muted-lt);
    display: flex;
    font-size: calc(9.5px * var(--avm-font-scale));
    justify-content: space-between;
}

.avm-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: 8px;
}

.avm-legend-item {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: calc(10.5px * var(--avm-font-scale));
    gap: 6px;
}

.avm-legend-key {
    border-radius: 2px;
    display: inline-block;
    height: 3px;
    width: 14px;
}

.avm-legend-key.is-turnover {
    background: var(--green);
}

.avm-legend-key.is-patients {
    background: var(--lilac-ink);
}

.avm-counters {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.avm-counter {
    background: var(--bg);
    border-radius: var(--r-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    text-align: center;
}

.avm-counter-label {
    color: var(--muted);
    font-size: calc(9px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.avm-counter-value {
    color: var(--ink);
    font-family: var(--font-display);
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-size: calc(17px * var(--avm-font-scale));
    font-variant-numeric: tabular-nums lining-nums;
    font-weight: 600;
    line-height: 1.1;
}

.avm-counter.is-sky {
    background: var(--sky);
}

.avm-counter.is-sky .avm-counter-value {
    color: var(--sky-ink);
}

.avm-counter.is-mint {
    background: var(--mint);
}

.avm-counter.is-mint .avm-counter-value {
    color: var(--green-ink);
}

.avm-counter.is-amber {
    background: var(--cream);
}

.avm-counter.is-amber .avm-counter-value {
    color: var(--cream-ink);
}

.avm-counter.is-red {
    background: var(--red-soft);
}

.avm-counter.is-red .avm-counter-value {
    color: var(--red);
}

.avm-rates {
    display: grid;
    gap: var(--sp-2) var(--sp-3);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.avm-rate {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avm-rate-top {
    display: flex;
    justify-content: space-between;
}

.avm-rate-label {
    color: var(--muted);
    font-size: calc(10px * var(--avm-font-scale));
    font-weight: 600;
}

.avm-rate-value {
    color: var(--ink-2);
    font-family: var(--font-display);
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-size: calc(10.5px * var(--avm-font-scale));
    font-variant-numeric: tabular-nums lining-nums;
    font-weight: 600;
}

.avm-rate-track {
    background: var(--line-soft);
    border-radius: var(--r-pill);
    display: block;
    height: 5px;
    overflow: hidden;
}

.avm-rate-fill {
    border-radius: var(--r-pill);
    display: block;
    height: 100%;
    transition: width .45s cubic-bezier(.22, 1, .36, 1);
}

.avm-rate-fill.is-mint {
    background: var(--green);
}

.avm-rate-fill.is-amber {
    background: var(--amber);
}

.avm-rate-fill.is-red {
    background: var(--red);
}

.avm-rate-fill.is-sky {
    background: var(--sky-ink);
}

.avm-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
}

.avm-tab {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    font-size: calc(10.5px * var(--avm-font-scale));
    font-weight: 600;
    padding: 5px 11px;
    transition: background .15s, color .15s, border-color .15s;
}

.avm-tab:hover {
    color: var(--ink);
}

.avm-tab.is-active {
    background: var(--brand-soft);
    border-color: rgba(58, 82, 160, .2);
    color: var(--brand-mid);
}

.avm-table-scroll {
    overflow-x: auto;
}

.avm-table {
    border-collapse: collapse;
    min-width: 100%;
    width: 100%;
}

.avm-table th,
.avm-table td {
    padding: 7px 10px;
    text-align: left;
    white-space: nowrap;
}

.avm-table th {
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: calc(9.5px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.avm-table td {
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-2);
    font-size: calc(11.5px * var(--avm-font-scale));
}

.avm-table tbody tr:last-child td {
    border-bottom: 0;
}

.avm-table tbody tr:hover td {
    background: var(--bg);
}

.avm-table .is-right {
    text-align: right;
}

.avm-table .is-muted {
    color: var(--muted-lt);
}

.avm-table .is-figure {
    font-family: var(--font-display);
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-variant-numeric: tabular-nums lining-nums;
    font-weight: 600;
}

.avm-table th.is-current {
    color: var(--brand-mid);
}

.avm-table td.is-current {
    background: var(--brand-soft);
    color: var(--brand-mid);
}

.avm-table td.is-total {
    color: var(--ink);
}

.avm-code {
    background: var(--bg-2);
    border-radius: var(--r-xs);
    color: var(--ink-2);
    font-family: var(--font-num);
    font-size: calc(10.5px * var(--avm-font-scale));
    letter-spacing: .3px;
    padding: 2px 6px;
}

.avm-pill {
    border-radius: var(--r-pill);
    display: inline-block;
    font-size: calc(9.5px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: .2px;
    padding: 2px 8px;
}

.avm-pill.is-mint {
    background: var(--mint);
    color: var(--green-ink);
}

.avm-pill.is-amber {
    background: var(--cream);
    color: var(--cream-ink);
}

.avm-pill.is-red {
    background: var(--red-soft);
    color: var(--red);
}

.avm-pill.is-sky {
    background: var(--sky);
    color: var(--sky-ink);
}

.avm-pill.is-neutral {
    background: var(--bg-2);
    color: var(--muted);
}

.avm-tests {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.avm-test-chip {
    background: var(--bg-2);
    border-radius: var(--r-xs);
    color: var(--ink-2);
    font-size: calc(10px * var(--avm-font-scale));
    max-width: 18ch;
    overflow: hidden;
    padding: 2px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avm-test-chip.is-extra {
    display: none;
}

.avm-tests.is-expanded .avm-test-chip.is-extra {
    display: inline-block;
}

.avm-test-more {
    background: var(--brand-soft);
    border: 0;
    border-radius: var(--r-xs);
    color: var(--brand-mid);
    cursor: pointer;
    font-family: inherit;
    font-size: calc(10px * var(--avm-font-scale));
    font-weight: 600;
    padding: 2px 7px;
}@media (max-width: 620px) {
    .avm-counters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .avm-rates {
        grid-template-columns: minmax(0, 1fr);
    }}

.avm-cases {
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
}

.avm-cases-label {
    color: var(--muted);
    font-size: calc(9.5px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.avm-cases-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.avm-case {
    border-radius: var(--r-xs);
    font-family: var(--font-num);
    font-size: calc(10px * var(--avm-font-scale));
    letter-spacing: .2px;
    padding: 2px 7px;
}

.avm-case.is-amber {
    background: var(--cream);
    color: var(--cream-ink);
}

.avm-case.is-red {
    background: var(--red-soft);
    color: var(--red);
}

.avm-case.is-neutral {
    background: var(--bg-2);
    color: var(--muted);
}
.avm-form-grid {
    display: grid;
    gap: 10px var(--sp-3);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.avm-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.avm-field.is-span-2 {
    grid-column: span 2;
}

.avm-field.is-span-3 {
    grid-column: span 3;
}

.avm-field.is-span-4 {
    grid-column: span 4;
}

.avm-field.is-disabled {
    opacity: .55;
}

.avm-field-label {
    color: var(--ink-2);
    font-size: calc(10.5px * var(--avm-font-scale));
    font-weight: 600;
    letter-spacing: .2px;
}

.avm-field-required {
    color: var(--red);
    margin-left: 2px;
}

.avm-field-control {
    display: flex;
    min-width: 0;
    position: relative;
}

.avm-field-control.has-affix {
    align-items: stretch;
}

.avm-mobile-code {
    flex: 0 0 82px;
    max-width: 82px;
}

.avm-field-affix {
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: var(--muted);
    display: inline-flex;
    font-size: calc(11.5px * var(--avm-font-scale));
    padding: 0 9px;
    white-space: nowrap;
}

.avm-field-affix:first-child {
    border-radius: var(--r-sm) 0 0 var(--r-sm);
    border-right: 0;
}

.avm-field-affix:last-child {
    border-left: 0;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.avm-field-control.has-affix .avm-input,
.avm-field-control.has-affix .avm-select {
    border-radius: 0;
}

.avm-field-control.has-affix > :first-child.avm-input,
.avm-field-control.has-affix > :first-child.avm-select {
    border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.avm-field-control.has-affix > :last-child.avm-input,
.avm-field-control.has-affix > :last-child.avm-select {
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.avm-input,
.avm-select {
    background: var(--field);
    border: 1px solid var(--field-line);
    border-radius: var(--r-sm);
    color: var(--ink);
    font-family: inherit;
    font-size: calc(12px * var(--avm-font-scale));
    min-width: 0;
    padding: 8px 10px;
    transition: background .18s ease, border-color .18s ease, box-shadow .22s cubic-bezier(.22, 1, .36, 1);
    width: 100%;
}

.avm-input::placeholder {
    color: var(--muted-lt);
}

.avm-input:hover:not(:disabled),
.avm-select:hover:not(:disabled) {
    background: var(--field-hover);
    border-color: var(--field-line-strong);
}

.avm-input:focus,
.avm-select:focus {
    background: var(--card);
    border-color: var(--brand-mid);
    box-shadow: 0 0 0 4px rgba(58, 82, 160, .13);
    outline: none;
}

.avm-input:disabled,
.avm-select:disabled {
    background: var(--bg-2);
    cursor: not-allowed;
}

.avm-input:read-only {
    background: var(--bg);
}

.avm-textarea {
    line-height: 1.5;
    min-height: 62px;
    resize: vertical;
}

.avm-select[multiple] {
    min-height: 78px;
    padding: 4px;
}

.avm-field.is-invalid .avm-input,
.avm-field.is-invalid .avm-select {
    background: var(--red-soft);
    border-color: var(--red);
}

.avm-field.is-invalid .avm-input:focus,
.avm-field.is-invalid .avm-select:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .16);
}

.avm-field-hint {
    color: var(--muted-lt);
    font-size: calc(10px * var(--avm-font-scale));
    line-height: 1.45;
    margin: 0;
}

.avm-field-error {
    align-items: flex-start;
    color: var(--red);
    display: flex;
    font-size: calc(10px * var(--avm-font-scale));
    font-weight: 500;
    gap: 4px;
    line-height: 1.45;
    margin: 0;
}

.avm-field-error[hidden] {
    display: none;
}

.avm-check,
.avm-radio {
    align-items: center;
    color: var(--ink-2);
    cursor: pointer;
    display: inline-flex;
    font-size: calc(11.5px * var(--avm-font-scale));
    gap: 7px;
    min-height: 34px;
}

.avm-check input,
.avm-radio input {
    accent-color: var(--brand-mid);
    height: 15px;
    width: 15px;
}

.avm-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.avm-combo {
    position: relative;
    width: 100%;
}

.avm-combo-input {
    cursor: pointer;
}

.avm-combo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.avm-combo-tag {
    align-items: center;
    background: var(--brand-soft);
    border-radius: var(--r-xs);
    color: var(--brand-mid);
    display: inline-flex;
    font-size: calc(12px * var(--avm-font-scale));
    font-weight: 600;
    gap: 5px;
    padding: 3px 5px 3px 9px;
}

.avm-combo-tag button {
    background: none;
    border: 0;
    border-radius: 3px;
    color: inherit;
    cursor: pointer;
    font-size: calc(12px * var(--avm-font-scale));
    line-height: 1;
    padding: 1px 4px;
}

.avm-combo-tag button:hover {
    background: rgba(58, 82, 160, .16);
}

.avm-combo-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-md);
    left: 0;
    max-height: 248px;
    overflow-y: auto;
    padding: 4px;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 60;
}

.avm-combo-panel[hidden] {
    display: none;
}

.avm-combo-option {
    background: none;
    border: 0;
    border-radius: var(--r-xs);
    color: var(--ink-2);
    cursor: pointer;
    display: block;
    font-family: inherit;
    font-size: calc(13.5px * var(--avm-font-scale));
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

.avm-combo-option:not(.is-disabled):hover,
.avm-combo-option:not([aria-disabled="true"]):hover,
.avm-combo-option.is-active {
    background: var(--bg);
    color: var(--ink);
}

.avm-combo-option.is-selected {
    background: var(--brand-soft);
    color: var(--brand-mid);
    font-weight: 600;
}

.avm-combo-option.is-disabled,
.avm-combo-option[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .48;
}

.avm-combo-empty {
    color: var(--muted-lt);
    font-size: calc(11px * var(--avm-font-scale));
    padding: 10px 9px;
    text-align: center;
}

@media (max-width: 1100px) {
    .avm-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .avm-field.is-span-3,
    .avm-field.is-span-4 {
        grid-column: span 2;
    }
}

@media (max-width: 620px) {
    .avm-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .avm-field.is-span-2,
    .avm-field.is-span-3,
    .avm-field.is-span-4 {
        grid-column: span 1;
    }
}

.avm-field-icon {
    fill: currentColor;
    flex-shrink: 0;
    height: 15px;
    width: 15px;
}

.avm-choice {
    background: var(--field);
    border: 1px solid var(--field-line);
    border-radius: var(--r-sm);
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    width: 100%;
}

.avm-choice-input {
    height: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 0;
}

.avm-choice-item {
    align-items: center;
    border-radius: var(--r-xs);
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    flex: 1;
    font-size: calc(11.5px * var(--avm-font-scale));
    font-weight: 600;
    gap: 6px;
    justify-content: center;
    padding: 7px 10px;
    transition: background .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
    user-select: none;
}

.avm-choice-item:hover {
    color: var(--ink-2);
}

.avm-choice-item:active {
    transform: scale(.97);
}

.avm-choice-input:checked + .avm-choice-item {
    background: var(--card);
    box-shadow: 0 1px 3px rgba(15, 32, 56, .12);
    color: var(--brand-mid);
}

.avm-choice-input:focus-visible + .avm-choice-item {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.avm-choice-input:disabled + .avm-choice-item {
    cursor: not-allowed;
    opacity: .45;
}

.avm-switch {
    align-items: center;
    background: var(--field);
    border: 1px solid var(--field-line);
    border-radius: var(--r-sm);
    cursor: pointer;
    display: flex;
    gap: 9px;
    min-height: 38px;
    padding: 5px 11px;
    transition: background .18s ease, border-color .18s ease;
    user-select: none;
}

.avm-switch:hover {
    background: var(--field-hover);
    border-color: var(--field-line-strong);
}

.avm-switch input {
    height: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 0;
}

.avm-switch-track {
    background: #cbd8ea;
    border-radius: var(--r-pill);
    flex-shrink: 0;
    height: 18px;
    position: relative;
    transition: background .24s cubic-bezier(.22, 1, .36, 1);
    width: 32px;
}

.avm-switch-knob {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15, 32, 56, .28);
    height: 14px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform .24s cubic-bezier(.34, 1.56, .64, 1);
    width: 14px;
}

.avm-switch input:checked + .avm-switch-track {
    background: var(--green);
}

.avm-switch input:checked + .avm-switch-track .avm-switch-knob {
    transform: translateX(14px);
}

.avm-switch input:focus-visible + .avm-switch-track {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, .28);
}

.avm-switch-text {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: calc(11.5px * var(--avm-font-scale));
    font-weight: 500;
    gap: 6px;
    transition: color .18s ease;
}

.avm-switch input:checked ~ .avm-switch-text {
    color: var(--green-ink);
    font-weight: 600;
}

.avm-combo-trigger {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: calc(13.5px * var(--avm-font-scale));
    gap: 8px;
    justify-content: space-between;
    text-align: left;
}

.avm-combo-label {
    flex: 0 1 auto;
    min-width: 0;
}

/* An out lab test is sent to a partner lab and cannot share an order with main lab work,
   so it is marked where it is chosen. */
.avm-combo-tagline {
    background: var(--lilac);
    border: 1px solid #ddd6fe;
    border-radius: var(--r-xs);
    color: var(--lilac-ink);
    flex-shrink: 0;
    font-size: calc(9.5px * var(--avm-font-scale));
    font-weight: 800;
    letter-spacing: .06em;
    padding: 2px 6px;
}

/* The price is what the operator scans the list for, so it is set apart from the name. */
.avm-combo-price {
    color: var(--brand-mid);
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
    font-family: var(--font-num);
    font-size: calc(12.5px * var(--avm-font-scale));
    font-weight: 700;
    padding: 0;
    white-space: nowrap;
}

.avm-combo-price::before {
    content: "- ";
}

.avm-combo-option.is-selected .avm-combo-price {
    color: var(--brand-mid);
}

.avm-combo-clear {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    color: var(--red);
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
    font-size: calc(11.5px * var(--avm-font-scale));
    font-weight: 600;
    padding: 0 10px;
}

.avm-combo-clear:hover {
    background: var(--red-soft);
    border-color: var(--red);
}

.avm-combo-clear[hidden] {
    display: none;
}

.avm-combo-tag-clear {
    align-self: flex-start;
    background: transparent;
    border: 0;
    color: var(--red);
    cursor: pointer;
    font-family: inherit;
    font-size: calc(11.5px * var(--avm-font-scale));
    font-weight: 700;
    padding: 2px 0;
}

.avm-combo-tag-clear[hidden] {
    display: none;
}

.avm-combo-caret {
    fill: var(--muted-lt);
    flex-shrink: 0;
    height: 14px;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1);
    width: 14px;
}

.avm-combo.is-open .avm-combo-caret {
    transform: rotate(180deg);
}

.avm-combo-search {
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    gap: 6px;
    padding: 6px;
    position: sticky;
    top: 0;
    background: var(--card);
    z-index: 1;
}

.avm-combo-panel {
    animation: avm-pop .18s cubic-bezier(.22, 1, .36, 1) both;
    padding: 0 0 4px;
    transform-origin: top center;
}

@keyframes avm-pop {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(.99);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.avm-combo-list {
    padding: 4px;
}

.avm-combo-option {
    align-items: center;
    display: flex;
    gap: 9px;
    transition: background .14s ease;
}

.avm-combo-box {
    align-items: center;
    background: var(--card);
    border: 1.5px solid var(--field-line-strong);
    border-radius: 4px;
    display: inline-flex;
    flex-shrink: 0;
    height: 15px;
    justify-content: center;
    transition: background .16s ease, border-color .16s ease;
    width: 15px;
}

.avm-combo-box svg {
    fill: #fff;
    height: 11px;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .16s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1);
    width: 11px;
}

.avm-combo-option.is-selected .avm-combo-box {
    background: var(--brand-mid);
    border-color: var(--brand-mid);
}

.avm-combo-option.is-selected .avm-combo-box svg {
    opacity: 1;
    transform: none;
}

.avm-combo-count {
    color: var(--muted);
    font-size: calc(10.5px * var(--avm-font-scale));
}

.avm-combo-tag {
    animation: avm-pop .16s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .avm-combo-panel,
    .avm-combo-tag {
        animation: none;
    }
}

.avm-combo.is-above .avm-combo-panel {
    bottom: calc(100% + 4px);
    top: auto;
    transform-origin: bottom center;
}

.avm-form-banner {
    border-radius: var(--r-sm);
    font-size: calc(11.5px * var(--avm-font-scale));
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    padding: 9px var(--sp-4);
}

.avm-form-banner[hidden] {
    display: none;
}

.avm-form-banner.is-error {
    background: var(--red-soft);
    border-left: 3px solid var(--red);
    color: var(--red);
}

.avm-form-banner.is-success {
    background: var(--mint);
    border-left: 3px solid var(--green);
    color: var(--green-ink);
}

.avm-price-rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.avm-price-row {
    align-items: center;
    color: var(--ink-2);
    display: flex;
    font-size: calc(11.5px * var(--avm-font-scale));
    justify-content: space-between;
    padding: 6px 0;
}

.avm-price-row[hidden] {
    display: none;
}

.avm-price-row + .avm-price-row {
    border-top: 1px solid var(--line-soft);
}

.avm-price-row strong {
    font-family: var(--font-display);
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-variant-numeric: tabular-nums lining-nums;
    font-weight: 600;
}

.avm-price-row.is-total {
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    padding-top: 9px;
}

.avm-price-row.is-total strong {
    font-size: calc(16px * var(--avm-font-scale));
}

.avm-price-note {
    color: var(--muted-lt);
    font-size: calc(10px * var(--avm-font-scale));
}

.avm-price-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--sp-3);
}

[data-avm-price-panel].is-busy .avm-price-rows {
    opacity: .55;
    transition: opacity .2s;
}

.avm-dob {
    display: grid;
    gap: 6px;
    grid-template-columns: 0.9fr 1.4fr 1fr;
}

.avm-age-chip {
    background: var(--mint);
    border-radius: var(--r-pill);
    color: var(--green-ink);
    font-weight: 600;
    margin-right: 8px;
    padding: 2px 9px;
}

.avm-age-chip[hidden] {
    display: none;
}

.avm-linkish {
    background: none;
    border: 0;
    color: var(--brand-mid);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.avm-tat {
    align-items: center;
    background: linear-gradient(120deg, var(--brand-mid), #5b6fc4);
    border-radius: var(--r-pill);
    box-shadow: 0 2px 10px rgba(58, 82, 160, .3);
    color: #fff;
    display: inline-flex;
    font-size: calc(10.5px * var(--avm-font-scale));
    gap: 6px;
    margin-left: auto;
    padding: 4px 12px;
}

.avm-tat[hidden] {
    display: none;
}

.avm-tat strong {
    font-family: var(--font-display);
    font-weight: 700;
}

.avm-tat svg {
    animation: avm-clock-run 1.4s steps(12) infinite;
    transform-origin: center;
}

@keyframes avm-clock-run {
    to {
        transform: rotate(360deg);
    }
}

.avm-barcodes {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.avm-barcode-row {
    align-items: center;
    animation: avm-rise .26s cubic-bezier(.22, 1, .36, 1) both;
    background: var(--field);
    border: 1px solid var(--field-line);
    border-radius: var(--r-sm);
    display: grid;
    gap: var(--sp-2);
    grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
    padding: 8px 10px;
}

.avm-barcode-sample {
    color: var(--ink-2);
    font-size: calc(11px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: .3px;
}

.avm-barcode-row .avm-field {
    gap: 0;
}

.avm-barcode-row .avm-input {
    background: var(--card);
    font-family: var(--font-num);
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* The typed barcode is upper case; the prompt that asks for it is not. */
.avm-barcode-row .avm-input::placeholder {
    font-family: var(--font-body);
    letter-spacing: normal;
    text-transform: none;
}

.avm-barcode-row .avm-input.is-invalid {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.avm-summary {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.avm-summary-tests {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avm-summary-chips {
    align-content: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.avm-summary-empty {
    color: var(--muted-lt);
    font-size: calc(11px * var(--avm-font-scale));
}

.avm-summary-price {
    background: var(--field);
    border: 1px solid var(--field-line);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
}

.avm-summary-price .avm-price-row strong.is-vat {
    color: var(--cream-ink);
}

.avm-submit-order {
    align-items: center;
    background: linear-gradient(120deg, var(--green), #0d9e6d);
    border: 0;
    border-radius: var(--r-sm);
    box-shadow: 0 3px 12px rgba(5, 150, 105, .34);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: calc(12.5px * var(--avm-font-scale));
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    letter-spacing: .2px;
    margin-top: var(--sp-3);
    padding: 11px;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    width: 100%;
}

.avm-submit-order:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(5, 150, 105, .42);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.avm-submit-order:active:not(:disabled) {
    transform: translateY(0);
}

.avm-submit-order:disabled {
    cursor: progress;
    opacity: .92;
}

.avm-submit-order.is-busy {
    background: linear-gradient(120deg, #167c5b, #0f6f58);
}

.avm-submit-order .avm-submit-spinner,
.avm-dialog-btn .avm-submit-spinner {
    flex: 0 0 auto;
    height: 16px;
    width: 16px;
}

.avm-submit-order.is-busy .avm-submit-spinner,
.avm-dialog-btn.is-busy .avm-submit-spinner {
    display: inline-block;
}

@media (max-width: 900px) {
    .avm-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .avm-barcode-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.avm-field[hidden],
.avm-age-manual[hidden],
.avm-band[hidden],
.avm-panel[hidden] {
    display: none;
}

.avm-age-manual {
    display: grid;
    gap: var(--sp-3);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.avm-age-manual.is-span-2 {
    grid-column: span 2;
}

@media (max-width: 620px) {
    .avm-age-manual.is-span-2 {
        grid-column: span 1;
    }
}

.avm-page-head {
    align-items: center;
    background:
        radial-gradient(70% 160% at 100% 0%, rgba(5, 150, 105, .26), transparent 60%),
        linear-gradient(120deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
    border-radius: var(--r-md);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: space-between;
    padding: 12px var(--sp-5);
}

.avm-page-head-left {
    align-items: center;
    display: flex;
    gap: var(--sp-3);
    min-width: 0;
}

.avm-page-head-icon {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border-radius: var(--r-sm);
    display: inline-flex;
    flex-shrink: 0;
    height: 38px;
    justify-content: center;
    padding: 9px;
    width: 38px;
}

.avm-page-head-icon svg {
    fill: #fff;
    height: 100%;
    width: 100%;
}

.avm-page-head-title {
    font-family: var(--font-display);
    font-size: calc(17px * var(--avm-font-scale));
    font-weight: 600;
    letter-spacing: -.2px;
    margin: 0;
}

.avm-page-head-crumb {
    color: rgba(255, 255, 255, .55);
    font-size: calc(10.5px * var(--avm-font-scale));
    margin: 2px 0 0;
}

.avm-page-head-right {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.avm-cal-wrap {
    position: relative;
    width: 100%;
}

.avm-calendar-input {
    padding-right: 34px;
}

.avm-cal-open {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--r-xs);
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 26px;
    width: 26px;
    z-index: 2;
}

.avm-cal-open:hover {
    background: var(--bg-2);
    color: var(--brand-mid);
}

.avm-cal-open svg {
    fill: currentColor;
    height: 15px;
    width: 15px;
}

.avm-cal {
    animation: avm-pop .18s cubic-bezier(.22, 1, .36, 1) both;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    left: 0;
    padding: var(--sp-3);
    position: absolute;
    top: calc(100% + 6px);
    width: 300px;
    z-index: 70;
}

.avm-cal[hidden] {
    display: none;
}

.avm-cal-head {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: space-between;
    margin-bottom: var(--sp-2);
}

.avm-cal-nav {
    background: transparent;
    border: 0;
    border-radius: var(--r-xs);
    color: var(--ink-2);
    cursor: pointer;
    font-size: calc(17px * var(--avm-font-scale));
    height: 28px;
    line-height: 1;
    width: 28px;
}

.avm-cal-nav:hover {
    background: var(--bg);
}

.avm-cal-title {
    background: transparent;
    border: 0;
    border-radius: var(--r-xs);
    color: var(--ink);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: calc(12.5px * var(--avm-font-scale));
    font-weight: 600;
    padding: 4px 10px;
}

.avm-cal-title:hover {
    background: var(--bg);
}

.avm-cal-grid {
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(7, 1fr);
}

.avm-cal-weekday {
    color: var(--muted-lt);
    font-size: calc(9.5px * var(--avm-font-scale));
    font-weight: 600;
    padding-bottom: 4px;
    text-align: center;
}

.avm-cal-day,
.avm-cal-year {
    background: transparent;
    border: 0;
    border-radius: var(--r-xs);
    color: var(--ink-2);
    cursor: pointer;
    font-family: inherit;
    font-size: calc(11.5px * var(--avm-font-scale));
    height: 32px;
    transition: background .14s ease, color .14s ease, transform .12s ease;
}

.avm-cal-day:hover:not(:disabled),
.avm-cal-year:hover:not(:disabled) {
    background: var(--bg-2);
}

.avm-cal-day.is-outside {
    color: var(--muted-lt);
}

.avm-cal-day.is-picked,
.avm-cal-year.is-picked {
    background: var(--brand-mid);
    color: #fff;
    font-weight: 600;
}

.avm-cal-day:disabled,
.avm-cal-year:disabled {
    color: #cfd8e5;
    cursor: not-allowed;
}

.avm-cal-day:active:not(:disabled) {
    transform: scale(.92);
}

.avm-cal-years {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, 1fr);
}

.avm-cal-year {
    height: 38px;
}

.avm-dialog-btn {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--ink-2);
    cursor: pointer;
    flex: 1;
    font-family: inherit;
    font-size: calc(11.5px * var(--avm-font-scale));
    font-weight: 600;
    padding: 8px;
}

.avm-dialog-btn.is-primary {
    background: var(--brand-mid);
    border-color: var(--brand-mid);
    color: #fff;
}

.avm-help {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--muted-lt);
    cursor: help;
    display: inline-flex;
    height: 16px;
    justify-content: center;
    margin-left: 5px;
    padding: 0;
    position: relative;
    vertical-align: -3px;
    width: 16px;
}

.avm-help svg {
    fill: currentColor;
    height: 15px;
    width: 15px;
}

.avm-help:hover,
.avm-help:focus-visible {
    color: var(--brand-mid);
}

.avm-help-pop {
    background: var(--navy-800);
    font-weight: 400;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-md);
    color: #fff;
    font-size: calc(10.5px * var(--avm-font-scale));
    font-weight: 500;
    left: 50%;
    line-height: 1.55;
    opacity: 0;
    padding: 8px 11px;
    pointer-events: none;
    position: absolute;
    text-align: left;
    transform: translate(-50%, -4px);
    transition: opacity .16s ease, transform .16s ease;
    width: 268px;
    z-index: 80;
    bottom: calc(100% + 7px);
}

.avm-help:hover .avm-help-pop,
.avm-help:focus-visible .avm-help-pop {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* VIP and traveller share one column, side by side in the space of one field. */
.avm-switch-pair {
    display: grid;
    gap: var(--sp-2);
    grid-template-columns: 1fr 1fr;
    min-width: 0;
}

.avm-switch-pair .avm-field {
    min-width: 0;
}

.avm-switch-pair .avm-switch-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avm-switch-pair .avm-switch {
    max-width: 100%;
    padding: 6px 9px;
}

.avm-switch-pair .avm-switch-text span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.avm-switch-pair.is-span-1 {
    grid-column: span 1;
}

/* The address sits beside the collection time, so it starts at that height and grows by hand. */
.avm-field .avm-textarea {
    min-height: 2.4rem;
}

.avm-covered-note {
    grid-column: 1 / -1;
    background: var(--cream);
    border: 1px solid var(--amber);
    border-radius: var(--r-sm);
    color: var(--cream-ink);
    font-size: calc(10.5px * var(--avm-font-scale));
    line-height: 1.5;
    margin: 0;
    padding: 7px 10px;
}

.avm-covered-note.is-warn {
    background: var(--red-soft);
    border-color: var(--red);
    color: var(--red);
}

.avm-covered-note[hidden] {
    display: none;
}

.avm-order-confirm {
    backdrop-filter: blur(2px);
    background: rgba(11, 18, 44, .55);
    opacity: 0;
    transition: opacity .2s ease, backdrop-filter .2s ease;
}

.avm-order-confirm-card {
    background: var(--bg);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: min(92vh, 52rem);
    max-width: 880px;
    overflow: hidden;
    transform: translateY(14px) scale(.98);
    transition: transform .24s cubic-bezier(.22, 1, .36, 1);
    width: 100%;
}

.avm-order-confirm.is-open,
.avm-order-confirm.is-closing {
    display: flex;
}

.avm-order-confirm.is-open {
    opacity: 1;
}

.avm-order-confirm.is-open .avm-order-confirm-card {
    transform: translateY(0) scale(1);
}

.avm-order-confirm.is-closing {
    opacity: 0;
}

.avm-order-confirm.is-closing .avm-order-confirm-card {
    transform: translateY(10px) scale(.985);
}

.avm-order-confirm-head {
    align-items: center;
    background: var(--navy-800);
    display: flex;
    gap: 10px;
    padding: var(--sp-3) var(--sp-4);
}

.avm-order-confirm-mark {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border-radius: var(--r-sm);
    color: #fff;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.avm-order-confirm-mark svg {
    fill: currentColor;
    height: 17px;
    width: 17px;
}

.avm-order-confirm-title {
    color: #fff;
    flex: 1;
    font-family: var(--font-display);
    font-size: calc(14px * var(--avm-font-scale));
    font-weight: 700;
    margin: 0;
}

.avm-order-confirm-close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, .72);
    cursor: pointer;
    font-size: calc(19px * var(--avm-font-scale));
    line-height: 1;
    padding: 0 4px;
}

.avm-order-confirm-close:hover {
    color: #fff;
}

.avm-order-confirm-body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    overflow: auto;
    padding: var(--sp-4);
}

.avm-confirm-banner {
    display: grid;
    gap: var(--sp-3);
    grid-template-columns: 1fr 1fr;
}

.avm-confirm-total,
.avm-confirm-tat {
    align-items: center;
    border-radius: var(--r-sm);
    display: flex;
    gap: 10px;
    padding: 11px var(--sp-3);
}

.avm-confirm-total {
    background: var(--card);
    border: 1px solid var(--line);
    justify-content: space-between;
}

.avm-confirm-total strong {
    color: var(--red);
    font-family: var(--font-display);
    font-size: calc(17px * var(--avm-font-scale));
    font-weight: 700;
}

.avm-confirm-tat {
    background: linear-gradient(120deg, var(--brand), var(--brand-mid));
    color: #fff;
}

.avm-confirm-tat .avm-tile-label {
    color: rgba(255, 255, 255, .78);
    display: block;
}

.avm-confirm-tat strong {
    font-family: var(--font-display);
    font-size: calc(14px * var(--avm-font-scale));
}

.avm-confirm-tat-icon svg {
    fill: currentColor;
    height: 22px;
    width: 22px;
}

.avm-confirm-grid {
    display: grid;
    gap: var(--sp-3);
    grid-template-columns: 1fr 1fr;
}

.avm-confirm-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--sp-3);
}

.avm-confirm-block.is-wide {
    grid-column: 1 / -1;
}

.avm-confirm-block-title {
    border-bottom: 1px solid var(--line-soft);
    color: var(--brand-mid);
    font-family: var(--font-display);
    font-size: calc(10.5px * var(--avm-font-scale));
    font-weight: 700;
    letter-spacing: .06em;
    margin: 0;
    padding-bottom: 6px;
    text-transform: uppercase;
}

.avm-order-confirm-list {
    display: grid;
    gap: 4px var(--sp-3);
    grid-template-columns: auto 1fr;
    margin: 0;
}

.avm-order-confirm-list dt {
    color: var(--muted);
    font-size: calc(11px * var(--avm-font-scale));
}

.avm-order-confirm-list dd {
    color: var(--ink);
    font-size: calc(11.5px * var(--avm-font-scale));
    font-weight: 600;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.avm-order-confirm-list.is-money dd:last-of-type,
.avm-order-confirm-list.is-money dt:last-of-type {
    border-top: 1px solid var(--line-soft);
    font-size: calc(14px * var(--avm-font-scale));
    font-weight: 700;
    padding-top: 6px;
}

.avm-order-confirm-samples {
    display: flex;
    flex-direction: column;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.avm-order-confirm-samples li {
    align-items: center;
    background: var(--bg);
    border-radius: var(--r-xs);
    display: flex;
    font-size: calc(11.5px * var(--avm-font-scale));
    justify-content: space-between;
    padding: 7px 10px;
}

.avm-order-confirm-samples li {
    border-left: 3px solid var(--brand-mid);
}

.avm-order-confirm-samples li strong {
    background: var(--brand-soft);
    border-radius: var(--r-xs);
    color: var(--brand-mid);
    font-family: var(--font-num);
    letter-spacing: .05em;
    padding: 3px 8px;
}

.avm-confirm-sample-name {
    align-items: center;
    display: flex;
    font-weight: 600;
    gap: 8px;
}

.avm-confirm-sample-icon {
    align-items: center;
    background: var(--card);
    border-radius: var(--r-xs);
    color: var(--brand-mid);
    display: inline-flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.avm-confirm-sample-icon svg {
    fill: currentColor;
    height: 15px;
    width: 15px;
}

.avm-order-confirm-samples li.is-missing {
    border-left-color: var(--red);
}

.avm-order-confirm-samples li.is-missing .avm-confirm-sample-icon {
    color: var(--red);
}

.avm-order-confirm-samples li.is-missing strong {
    color: var(--red);
    font-family: inherit;
    font-weight: 500;
    letter-spacing: normal;
}

.avm-order-confirm-foot {
    background: var(--card);
    border-top: 1px solid var(--line);
    display: flex;
    gap: var(--sp-2);
    justify-content: flex-end;
    padding: var(--sp-3) var(--sp-4);
}

.avm-order-confirm-foot .avm-dialog-btn {
    flex: 0 0 auto;
    min-width: 150px;
}

.avm-order-confirm-foot .avm-dialog-btn.is-primary {
    background: var(--brand-mid);
    border-color: var(--brand-mid);
}

.avm-dialog-btn.is-busy {
    align-items: center;
    cursor: progress;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
}

.avm-dialog-btn:disabled {
    opacity: .85;
}

@media (max-width: 720px) {
    .avm-confirm-banner,
    .avm-confirm-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.avm-help-pop .avm-price-note {
    color: rgba(255, 255, 255, .78);
    display: block;
    margin-top: 4px;
}

.avm-summary-chips .avm-test-chip {
    background: var(--brand-soft);
    border: 1px solid #cdd8f7;
    color: var(--brand-mid);
    font-size: calc(12.5px * var(--avm-font-scale));
    font-weight: 700;
    max-width: none;
    overflow: visible;
    padding: 5px 10px;
    text-overflow: clip;
    white-space: normal;
}

.avm-barcode-sample {
    align-items: center;
    display: flex;
    gap: 7px;
}

.avm-barcode-sample svg {
    fill: var(--brand-mid);
    flex-shrink: 0;
    height: 17px;
    width: 17px;
}

.avm-topbar {
    background: linear-gradient(90deg, #253f7a 0%, #1b316c 56%, #121e49 100%);
    border-bottom-color: rgba(255, 255, 255, .08);
    box-shadow: 0 14px 32px rgba(18, 30, 73, .18);
}

.avm-topbar::after {
    content: none;
}

.avm-sidebar {
    background: linear-gradient(180deg, #253f7a 0%, #182d66 48%, #0d193e 100%);
    box-shadow: 18px 0 42px rgba(13, 25, 62, .22);
}

.avm-sidebar::before {
    content: none;
}

.avm-topbar-search:focus-within {
    border-color: rgba(0, 174, 239, .68);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, .16);
}

.avm-auth-page-standalone::before {
    background: linear-gradient(180deg, rgba(37, 63, 122, .98) 0%, rgba(18, 30, 73, .98) 100%);
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.avm-auth-page-standalone .avm-auth-card {
    padding-top: clamp(1rem, 2.2vw, 1.45rem);
}

.avm-auth-card-bar {
    background: linear-gradient(90deg, #ed1c24 0%, #253f7a 38%, #00aeef 100%);
    border-radius: 0;
}

.avm-auth-form .avm-input-icon-wrap {
    align-items: center;
    display: flex;
    isolation: isolate;
    min-height: 48px;
    position: relative;
}

.avm-auth-form .avm-input-icon {
    align-items: center;
    color: #8294b4;
    display: inline-flex;
    height: 22px;
    justify-content: center;
    left: 16px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    z-index: 2;
}

.avm-auth-form .avm-input-icon svg {
    display: block;
    height: 16px;
    width: 16px;
}

.avm-auth-form .avm-input-with-icon {
    box-sizing: border-box;
    color: #15234f;
    display: block;
    font-size: calc(15px * var(--avm-font-scale));
    height: 48px;
    line-height: normal;
    min-height: 48px;
    padding: 0 18px 0 52px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.avm-auth-form .avm-input-with-action {
    padding-right: 54px;
}

.avm-auth-form .avm-input-with-icon::placeholder {
    color: #7f8eab;
}

.avm-auth-form .avm-input-action {
    align-items: center;
    color: #8190aa;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    z-index: 3;
}

.avm-auth-form .avm-input-action svg {
    display: block;
    height: 20px;
    width: 20px;
}

.avm-auth-form .avm-input-action .avm-eye-hide,
.avm-auth-form .avm-input-action[aria-pressed="true"] .avm-eye-show {
    display: none;
}

.avm-auth-form .avm-input-action[aria-pressed="true"] .avm-eye-hide {
    display: block;
}

.avm-auth-submit {
    align-items: center;
    background: linear-gradient(90deg, #253f7a 0%, #182b68 56%, #121f58 100%);
    border: 0;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    min-height: 48px;
    overflow: hidden;
    white-space: nowrap;
}

.avm-auth-submit:hover {
    background: linear-gradient(90deg, #1f376f 0%, #15245e 100%);
}

.avm-auth-submit.avm-is-loading {
    background: linear-gradient(90deg, #167c5b 0%, #0f6f58 100%);
    color: #fff;
}

.avm-auth-submit .avm-submit-label {
    display: inline-flex;
    line-height: 1;
    white-space: nowrap;
}

.avm-auth-submit .avm-submit-spinner {
    flex: 0 0 16px;
    height: 16px;
    width: 16px;
}

.avm-loader {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-width: max-content;
    white-space: nowrap;
}

.avm-loader .avm-spinner {
    flex: 0 0 16px;
}

.avm-nav-item.is-loading {
    color: #fff;
    pointer-events: none;
}

.avm-nav-item.is-loading::after {
    animation: avm-spin .72s linear infinite;
    border: 2px solid rgba(255, 255, 255, .28);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    display: block;
}

.avm-nav-item.is-loading::after {
    flex: 0 0 14px;
    height: 14px;
    margin-left: auto;
    width: 14px;
}

.avm-page-loader {
    align-items: center;
    backdrop-filter: blur(0);
    background: rgba(8, 16, 40, 0);
    display: flex;
    bottom: 34px;
    justify-content: center;
    opacity: 0;
    padding: 24px;
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--topbar-h);
    transition: opacity .18s ease, background-color .18s ease, backdrop-filter .18s ease;
    z-index: 1400;
}

.avm-page-loader::before {
    animation: avm-overlay-drift 1.6s ease-in-out infinite;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .16) 45%, transparent 100%);
    content: "";
    height: 100%;
    left: -35%;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: skewX(-12deg);
    width: 30%;
}

.avm-page-loader[hidden] {
    display: none;
}

.avm-page-loader.is-visible {
    backdrop-filter: blur(3px);
    background: rgba(8, 16, 40, .28);
    opacity: 1;
    pointer-events: auto;
}

.avm-page-loader-card {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(37, 63, 122, .14);
    box-shadow: 0 26px 70px rgba(13, 25, 62, .2);
    display: grid;
    gap: 7px;
    justify-items: center;
    min-width: 250px;
    overflow: hidden;
    padding: 22px 26px 20px;
    position: relative;
    text-align: center;
    transform: translateY(10px) scale(.98);
    transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}

.avm-page-loader.is-visible .avm-page-loader-card {
    transform: translateY(0) scale(1);
}

.avm-page-loader-card::before {
    animation: avm-loader-sweep 1.2s ease-in-out infinite;
    background: linear-gradient(90deg, transparent 0%, #00aeef 26%, #253f7a 54%, transparent 100%);
    content: "";
    height: 3px;
    left: -55%;
    position: absolute;
    right: auto;
    top: 0;
    width: 55%;
}

.avm-page-loader-mark {
    animation: avm-spin .78s linear infinite, avm-loader-pulse 1.2s ease-in-out infinite;
    border: 3px solid rgba(37, 63, 122, .16);
    border-top-color: #253f7a;
    border-radius: 50%;
    display: block;
    height: 30px;
    width: 30px;
}

.avm-page-loader-title {
    color: #15234f;
    font-family: var(--font-display);
    font-size: calc(14px * var(--avm-font-scale));
    font-weight: 800;
    line-height: 1.2;
}

.avm-page-loader-text {
    color: #687898;
    font-size: calc(11px * var(--avm-font-scale));
    line-height: 1.4;
}

.avm-page-loader.is-error {
    background: rgba(80, 13, 20, .18);
}

.avm-page-loader.is-error .avm-page-loader-card {
    border-color: rgba(237, 28, 36, .22);
}

.avm-page-loader.is-error .avm-page-loader-card::before {
    animation: none;
    background: #ed1c24;
    left: 0;
    width: 100%;
}

.avm-page-loader.is-error .avm-page-loader-mark {
    animation: none;
    border-color: rgba(237, 28, 36, .18);
    border-top-color: #ed1c24;
}

.avm-shell-busy .avm-page-main {
    pointer-events: none;
}

.avm-shell-busy .avm-content {
    pointer-events: none;
}

@keyframes avm-loader-sweep {
    0% {
        left: -55%;
    }

    55% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes avm-loader-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 63, 122, .18);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(37, 63, 122, .06);
    }
}

@keyframes avm-overlay-drift {
    0% {
        left: -35%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 105%;
        opacity: 0;
    }
}

.avm-spinner,
.avm-submit-spinner,
.avm-page-loader-mark,
.avm-nav-item.is-loading::after {
    animation-duration: .72s !important;
    animation-iteration-count: infinite !important;
    animation-name: avm-circle-spin !important;
    animation-timing-function: linear !important;
    transform-origin: center center;
    will-change: transform;
}

.avm-page-loader-mark {
    animation: avm-circle-spin .72s linear infinite, avm-loader-pulse 1.2s ease-in-out infinite !important;
}

@keyframes avm-circle-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.avm-confirm-card {
    gap: 1rem;
    max-width: 39rem;
}

.avm-confirm-main {
    align-items: flex-start;
    display: grid;
    gap: 1rem;
    grid-template-columns: 3rem minmax(0, 1fr);
}

.avm-confirm-copy {
    min-width: 0;
    padding-top: .15rem;
}

.avm-confirm-copy h2 {
    line-height: 1.2;
}

.avm-confirm-copy p {
    max-width: 29rem;
}

@media (max-width: 520px) {
    .avm-confirm-card {
        max-width: calc(100vw - 2rem);
    }

    .avm-confirm-main {
        grid-template-columns: 2.7rem minmax(0, 1fr);
    }
}

.avm-toasts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(380px, calc(100vw - 32px));
    pointer-events: none;
    position: fixed;
    right: 16px;
    z-index: 1200;
}

.avm-toasts.is-top {
    top: 16px;
}

.avm-toasts.is-bottom {
    bottom: 16px;
    flex-direction: column-reverse;
}

.avm-toast {
    align-items: flex-start;
    animation: avm-toast-in .26s cubic-bezier(.22, 1, .36, 1) both;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--muted-lt);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    display: flex;
    font-size: calc(12px * var(--avm-font-scale));
    gap: 9px;
    line-height: 1.5;
    padding: 11px 12px;
    pointer-events: auto;
    transition: opacity .25s ease, transform .25s ease;
}

.avm-toast.is-out {
    opacity: 0;
    transform: translateX(18px);
}

.avm-toast-icon {
    flex-shrink: 0;
    height: 17px;
    width: 17px;
}

.avm-toast-icon svg {
    fill: currentColor;
    height: 17px;
    width: 17px;
}

.avm-toast-text {
    flex: 1;
    min-width: 0;
}

.avm-toast-close {
    background: transparent;
    border: 0;
    color: var(--muted-lt);
    cursor: pointer;
    flex-shrink: 0;
    font-size: calc(16px * var(--avm-font-scale));
    line-height: 1;
    padding: 0 2px;
}

.avm-toast-close:hover {
    color: var(--ink);
}

.avm-toast.is-success {
    border-left-color: var(--green);
}

.avm-toast.is-success .avm-toast-icon {
    color: var(--green);
}

.avm-toast.is-error {
    border-left-color: var(--red);
}

.avm-toast.is-error .avm-toast-icon {
    color: var(--red);
}

.avm-toast.is-warning {
    border-left-color: var(--amber);
}

.avm-toast.is-warning .avm-toast-icon {
    color: var(--amber);
}

.avm-toast.is-info {
    border-left-color: var(--brand-mid);
}

.avm-toast.is-info .avm-toast-icon {
    color: var(--brand-mid);
}

@keyframes avm-toast-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .avm-toast {
        animation: none;
    }
}

