/* =====================================================================
   Dropbear Portal — sign-in, account and stand-alone pages
   Used only by Views/Shared/_AuthLayout.cshtml (body.lp.au), on top of
   landingpage.css so these pages share the public website's tokens,
   type, buttons, form controls and grain. Every rule is scoped to .au.
   ===================================================================== */

.au {
    --au-card: rgb(7 47 77 / .72);
    --au-danger: 255 120 120;
    --au-warning: 254 146 0;
    --au-info: 59 212 255;
    --au-success: 64 209 64;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    color-scheme: dark;
}

.au-light {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(55% 65% at 92% 0%, rgb(22 179 235 / .28), transparent 70%),
        radial-gradient(45% 40% at 0% 70%, rgb(3 166 131 / .18), transparent 70%),
        linear-gradient(180deg, #063a60 0%, var(--bg) 70%);
}

.au-light::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgb(var(--fg) / .9) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .05;
    -webkit-mask-image: radial-gradient(55% 60% at 28% 45%, #000, transparent 75%);
    mask-image: radial-gradient(55% 60% at 28% 45%, #000, transparent 75%);
}

.au-bar,
.au-main,
.au-foot {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* ---------------------------------------------------------------------
   Bar
   --------------------------------------------------------------------- */
.au-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 60px;
    margin-top: 14px;
}

.au-bar .lp-brand {
    flex: 0 1 auto;
}

.au .au-back {
    gap: 10px;
    padding: 0 18px 0 16px;
}

.au-back .bi {
    font-size: 14px;
    transition: transform .3s var(--ease-out);
}

.au-back:hover .bi {
    transform: translateX(-3px);
}

/* ---------------------------------------------------------------------
   Main + split stage
   --------------------------------------------------------------------- */
.au-main {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    padding-top: clamp(24px, 5vh, 64px);
    padding-bottom: clamp(32px, 6vh, 72px);
}

.au-split {
    display: grid;
    width: 100%;
    gap: 28px;
    align-items: center;
}

.au-aside {
    min-width: 0;
}

.au-aside .lp-eyebrow {
    margin-bottom: 0;
}

.au-statement,
.au-lede,
.au-trust {
    display: none;
}

.au-statement {
    margin: 26px 0 0;
    font-size: clamp(44px, 4.6vw, 72px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.045em;
    color: rgb(var(--fg));
}

.au-statement span {
    display: block;
}

.au-statement em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.06em;
    letter-spacing: -.02em;
    padding-right: .1em;
    color: var(--brand-cyan);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .au-statement em {
        background: var(--accent-text);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.au-lede {
    max-width: 30rem;
    margin: 26px 0 36px;
    font-size: clamp(16.5px, 1.25vw, 18px);
    line-height: 1.6;
    color: rgb(var(--fg) / .66);
}

.au-trust {
    margin: 0;
    padding: 0;
    list-style: none;
}

.au-trust li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 0;
    font-size: 15px;
    font-weight: 500;
    color: rgb(var(--fg) / .82);
}

.au-trust__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 15px;
    color: var(--brand-cyan);
    background: rgb(var(--fg) / .06);
    border: 1px solid rgb(var(--fg) / .1);
}

@media (min-width: 992px) {
    .au-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
        gap: clamp(48px, 7vw, 112px);
    }

    .au-statement {
        display: block;
    }

    .au-lede {
        display: block;
    }

    .au-trust {
        display: grid;
        gap: 2px;
    }

    .au-split {
        align-items: start;
    }

    .au-aside {
        position: sticky;
        top: 32px;
        padding-top: clamp(28px, 3.4vw, 44px);
    }

    .au--split .au-main {
        align-items: center;
    }
}

/* ---------------------------------------------------------------------
   Card
   --------------------------------------------------------------------- */
.au-card {
    position: relative;
    min-width: 0;
    padding: clamp(24px, 3.4vw, 44px);
    border-radius: var(--radius-lg);
    background: var(--au-card);
    border: 1px solid rgb(var(--fg) / .1);
    box-shadow:
        inset 0 1px 0 rgb(var(--fg) / .06),
        0 40px 90px -40px rgb(0 12 24 / .7);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    overflow: hidden;
}

.au-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--spectrum);
    opacity: .9;
}

.au-card__head {
    margin-bottom: 28px;
}

.au .au-title {
    margin: 0;
    font-size: clamp(30px, 2.6vw, 38px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: rgb(var(--fg));
}

.au .au-title--page {
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.au .au-sub {
    margin: 10px 0 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: rgb(var(--fg) / .62);
}

.au-card > :last-child,
.au-card form > :last-child {
    margin-bottom: 0;
}

.au :where(.au-card) p {
    color: rgb(var(--fg) / .74);
}

.au .au-card a:not(.lp-btn):not(.btn):not(.au-provider):not(.page-link):not(.nav-link),
.au .au-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .3s var(--ease-out), color .2s;
}

.au .au-card a:not(.lp-btn):not(.btn):not(.au-provider):not(.page-link):not(.nav-link):hover,
.au .au-link:hover {
    color: #8de6ff;
    background-size: 100% 1px;
}

/* Wide panel (tables, documents) */
.au-wide {
    width: 100%;
}

.au-wide__head {
    max-width: 880px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.au-wide__head .lp-eyebrow {
    margin-bottom: 18px;
}

.au-wide__head .lp-eyebrow:last-child {
    margin-bottom: 0;
}

.au-wide__head:has(> .lp-eyebrow:only-child) {
    margin-bottom: clamp(20px, 2.6vw, 28px);
}

.au-wide__head .au-sub {
    margin-top: 16px;
    font-size: 17px;
}

.au--wide .au-main {
    align-items: flex-start;
}

/* ---------------------------------------------------------------------
   Fields
   --------------------------------------------------------------------- */
.au-field {
    margin-bottom: 18px;
}

.au-field__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.au-field__row .form-label {
    margin-bottom: 8px;
}

.au-field__row a {
    font-size: 13px;
}

.au .form-control:disabled,
.au .form-control[readonly] {
    background: rgb(var(--fg) / .03);
    color: rgb(var(--fg) / .86);
}

.au .form-control-sm {
    height: 40px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 14px;
}

.au textarea.form-control-sm {
    height: auto;
    min-height: 0;
    padding: 10px 12px;
}

.au .form-control-plaintext {
    padding: 0;
    color: rgb(var(--fg));
    font-size: 16px;
}

.au .form-select {
    height: 52px;
    padding: 0 40px 0 16px;
    border-radius: 14px;
    border: 1px solid rgb(var(--fg) / .14);
    background-color: rgb(var(--fg) / .04);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23eef3f7' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m3.5 6 4.5 4.5L12.5 6'/%3e%3c/svg%3e");
    color: rgb(var(--fg));
    font-size: 15.5px;
}

.au .form-select-sm {
    height: 40px;
    border-radius: 11px;
    font-size: 14px;
}

.au .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .25);
}

.au .form-select option {
    background: var(--bg-2);
    color: rgb(var(--fg));
}

.au .form-text,
.au small.text-muted {
    font-size: 13px;
    color: rgb(var(--fg) / .5) !important;
}

/* Checkboxes */
.au .form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 24px;
    margin-bottom: 14px;
    padding-left: 0;
}

.au .form-check .form-check-input {
    float: none;
    margin: 1px 0 0;
}

.au .form-check-input {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgb(var(--fg) / .3);
    background-color: transparent;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.au .form-check-input:hover {
    border-color: rgb(var(--fg) / .5);
}

.au .form-check-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .25);
}

.au .form-check-input:checked {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23022b44' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.au .form-check-label {
    font-size: 14.5px;
    line-height: 1.5;
    color: rgb(var(--fg) / .78);
    cursor: pointer;
}

.au-checks {
    margin: 6px 0 22px;
}

/* Input groups */
.au .input-group > .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.au .input-group > .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.au .input-group > .btn,
.au .input-group > a.btn {
    height: 52px;
    border-radius: 0;
    padding: 0 16px;
}

.au .input-group > .btn:last-child {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.au .input-group-sm > .btn,
.au .input-group-sm > a.btn {
    height: 40px;
    padding: 0 12px;
}

.au .input-group-sm > .btn:last-child {
    border-top-right-radius: 11px;
    border-bottom-right-radius: 11px;
}

.au .input-group-sm > .form-control {
    border-radius: 11px 0 0 11px;
}

/* ---------------------------------------------------------------------
   Buttons — Bootstrap buttons follow the public site's pills
   --------------------------------------------------------------------- */
.au .lp-btn.au-block {
    width: 100%;
    justify-content: space-between;
    padding-left: 24px;
}

.au .lp-btn--glass.au-block {
    justify-content: center;
}

.au .lp-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.au .lp-btn--brand:disabled {
    opacity: .6;
    cursor: progress;
}

.au .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1;
    transition: background-color .25s, color .25s, border-color .25s, transform .2s;
}

.au .btn:active {
    transform: scale(.97);
}

.au .btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: none;
}

.au .btn-sm {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

.au .btn-lg {
    min-height: 52px;
    font-size: 15px;
}

.au .btn-primary {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--brand-navy);
    box-shadow: 0 10px 30px -12px rgb(64 209 64 / .55);
}

.au .btn-primary:hover,
.au .btn-primary:focus {
    background: #62de62;
    border-color: #62de62;
    color: var(--brand-navy);
}

.au .btn-secondary,
.au .btn-outline-secondary,
.au .btn-outline-primary,
.au .btn-light {
    background: rgb(var(--fg) / .06);
    border-color: rgb(var(--fg) / .14);
    color: rgb(var(--fg));
}

.au .btn-secondary:hover,
.au .btn-outline-secondary:hover,
.au .btn-outline-primary:hover,
.au .btn-light:hover {
    background: rgb(var(--fg) / .12);
    border-color: rgb(var(--fg) / .26);
    color: rgb(var(--fg));
}

.au .btn-outline-primary {
    color: var(--accent);
    border-color: rgb(var(--accent-rgb) / .4);
}

.au .btn-danger {
    background: #ff7a7a;
    border-color: #ff7a7a;
    color: #2a0c0c;
}

.au .btn-danger:hover {
    background: #ff9292;
    border-color: #ff9292;
    color: #2a0c0c;
}

.au .btn-outline-danger {
    background: rgb(var(--au-danger) / .08);
    border-color: rgb(var(--au-danger) / .32);
    color: #ffb4b4;
}

.au .btn-outline-danger:hover {
    background: rgb(var(--au-danger) / .18);
    border-color: rgb(var(--au-danger) / .5);
    color: #ffd1d1;
}

.au .btn-link {
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
}

.au .btn-close {
    filter: invert(1) grayscale(1) brightness(1.4);
    opacity: .6;
}

.au .btn-close:hover {
    opacity: 1;
}

/* ---------------------------------------------------------------------
   Login: steps, divider, providers, card foot
   --------------------------------------------------------------------- */
.au-step {
    animation: auStep .45s var(--ease-out) both;
}

@keyframes auStep {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

.au-passkey {
    margin-top: 12px;
}

.au-or {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgb(var(--fg) / .45);
}

.au-or::before,
.au-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgb(var(--fg) / .12);
}

.au-providers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.au .au-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #f4f7fa;
    color: #060b12;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.01em;
    cursor: pointer;
    transition: background-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}

.au .au-provider:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -14px rgb(0 0 0 / .6);
}

.au .au-provider:active {
    transform: scale(.97);
}

.au .au-provider:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.au-provider img {
    flex: none;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.au-provider--wide {
    grid-column: 1 / -1;
}

.au-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: rgb(var(--fg) / .6);
}

.au-card__foot p {
    margin: 0;
    color: inherit !important;
}

/* ---------------------------------------------------------------------
   Status pages (confirmations, lockout, access denied)
   --------------------------------------------------------------------- */
.au-status {
    --hue: var(--kp);
}

.au-status--danger { --hue: var(--au-danger); }
.au-status--success { --hue: var(--au-success); }
.au-status--warning { --hue: var(--au-warning); }

.au-status {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
}

.au-status > :not(.au-status__icon) {
    grid-column: 2;
}

.au-status > .au-status__icon + * {
    margin-top: 12px;
}

.au-status__icon {
    grid-row: 1 / span 4;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 50%;
    font-size: 22px;
    color: rgb(var(--hue));
    background: rgb(var(--hue) / .12);
    box-shadow: 0 0 0 7px rgb(var(--hue) / .05);
}

.au-status p {
    font-size: 16px;
    line-height: 1.6;
}

.au .au-status__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: rgb(var(--fg));
}

.au .au-code {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .18em;
    font-variant-numeric: tabular-nums;
}

.au .au-code::placeholder {
    letter-spacing: .18em;
}

/* One-time secret recipient view */
.au-secret .form-label {
    margin-bottom: 8px;
}

.au-secret .form-control-plaintext {
    margin-bottom: 4px;
    font-weight: 600;
}

.au-secret .card-body.p-0 .table {
    margin: 0;
}

.au-secret .card .table > :not(caption) > * > * {
    border-bottom-color: var(--line);
}

.au-secret .card .table tr:last-child > * {
    border-bottom: 0;
}

.au-status p:last-child {
    margin-bottom: 0;
}

.au-status + .lp-actions,
.au-status + .au-card__foot {
    margin-top: 28px;
}

.au-docs {
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.au .au-docs a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgb(var(--fg) / .03) !important;
    color: rgb(var(--fg)) !important;
    font-size: 15px;
    transition: border-color .2s, background-color .2s !important;
}

.au .au-docs a:hover {
    border-color: rgb(var(--accent-rgb) / .45);
    background: rgb(var(--fg) / .06) !important;
}

.au-docs .bi {
    color: rgb(var(--fg) / .5);
    font-size: 14px;
}

/* ---------------------------------------------------------------------
   Bootstrap components on the dark canvas
   --------------------------------------------------------------------- */
.au .alert {
    margin-bottom: 18px;
    line-height: 1.5;
}

.au .alert-warning {
    background: rgb(var(--au-warning) / .1);
    border-color: rgb(var(--au-warning) / .32);
    color: #ffd58a;
}

.au .alert-info {
    background: rgb(var(--au-info) / .08);
    border-color: rgb(var(--au-info) / .28);
    color: #bfeeff;
}

.au .alert-light {
    background: rgb(var(--fg) / .04);
    border-color: var(--line) !important;
    color: rgb(var(--fg) / .78);
}

.au .alert h4 {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
    color: inherit;
}

.au .alert p:last-child {
    margin-bottom: 0;
    color: inherit;
}

.au .alert .text-muted {
    color: inherit !important;
    opacity: .75;
}

.au .alert-dismissible {
    padding-right: 48px;
}

.au .alert-dismissible .btn-close {
    padding: 16px;
}

.au .validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1em;
}

.au div.validation-summary-errors {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgb(var(--au-danger) / .28);
    background: rgb(var(--au-danger) / .08);
    color: #ffc6c6 !important;
    font-size: 14.5px;
}

.au code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgb(var(--fg) / .08);
    color: #8de6ff;
    font-size: .9em;
}

/* Tabs → segmented pills */
.au .nav-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(var(--fg) / .04);
}

.au .nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: rgb(var(--fg) / .66);
    transition: background-color .2s, color .2s;
}

.au .nav-tabs .nav-link:hover {
    color: rgb(var(--fg));
    background: rgb(var(--fg) / .06);
}

.au .nav-tabs .nav-link.active {
    color: var(--brand-navy);
    background: #f4f7fa;
}

.au .nav-tabs .nav-link.active .badge {
    background: var(--brand-navy) !important;
    color: #f4f7fa;
}

.au .tab-content {
    margin-top: 20px;
    padding: 0 !important;
    border: 0 !important;
}

/* Tables */
.au .table {
    --bs-table-color: rgb(var(--fg) / .78);
    --bs-table-hover-color: rgb(var(--fg));
}

.au .table > :not(caption) > * > * {
    background-color: transparent;
    color: inherit;
}

.au .table thead,
.au .table .table-light {
    --bs-table-bg: transparent;
    --bs-table-color: rgb(var(--fg) / .6);
    background: transparent;
}

.au .table .table-light th {
    color: rgb(var(--fg) / .6);
    border-bottom-color: var(--line-2);
}

.au .table-hover > tbody > tr:hover > * {
    background-color: rgb(var(--fg) / .04);
}

.au .table tr:is(.table-danger, .table-warning, .table-info, .table-success) {
    --bs-table-color: rgb(var(--fg) / .86);
    --bs-table-border-color: var(--line);
    color: rgb(var(--fg) / .86);
}

.au .table tr:is(.table-danger, .table-warning, .table-info, .table-success) > :first-child {
    box-shadow: inset 3px 0 0 rgb(var(--row-hue));
}

.au .table tr.table-danger { --row-hue: var(--au-danger); }
.au .table tr.table-warning { --row-hue: var(--au-warning); }
.au .table tr.table-info { --row-hue: var(--au-info); }
.au .table tr.table-success { --row-hue: var(--au-success); }

.au .table tr:is(.table-danger, .table-warning, .table-info, .table-success) > * {
    background-color: rgb(var(--row-hue) / .07);
}

.au .table-sm > :not(caption) > * > * {
    padding: 10px 12px;
}

.au .table-responsive {
    border: 1px solid var(--line);
    border-radius: 18px;
}

.au .table-responsive > .table {
    margin: 0;
}

@media (max-width: 767.98px) {
    /* Scroll the table sideways instead of crushing every column */
    .au .table-responsive > .table {
        min-width: 760px;
    }
}

.au .table-responsive > .table tr:last-child > * {
    border-bottom: 0;
}

/* Badges */
.au .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .01em;
}

.au .badge.bg-primary { background: rgb(var(--au-info) / .16) !important; color: #bfeeff; }
.au .badge.bg-secondary { background: rgb(var(--fg) / .1) !important; color: rgb(var(--fg) / .86); }
.au .badge.bg-success { background: rgb(var(--au-success) / .16) !important; color: #b8f0b8; }
.au .badge.bg-danger { background: rgb(var(--au-danger) / .16) !important; color: #ffc0c0; }
.au .badge.bg-warning { background: rgb(var(--au-warning) / .18) !important; color: #ffd58a; }
.au .badge.bg-info { background: rgb(var(--au-info) / .16) !important; color: #bfeeff; }
.au .badge.bg-dark,
.au .badge.bg-light { background: rgb(var(--fg) / .1) !important; color: rgb(var(--fg) / .86); }

/* Cards inside the panel */
.au .card {
    --bs-card-bg: rgb(var(--fg) / .03);
    --bs-card-border-color: var(--line);
    border-radius: 18px;
    color: inherit;
    box-shadow: none !important;
    overflow: hidden;
}

/* Pagination */
.au .pagination {
    gap: 6px;
    margin: 20px 0 0;
}

.au .page-link {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px !important;
    background: rgb(var(--fg) / .04);
    color: rgb(var(--fg) / .78);
    font-size: 14px;
    font-weight: 600;
}

.au .page-link:hover {
    background: rgb(var(--fg) / .1);
    color: rgb(var(--fg));
}

.au .page-item.active .page-link {
    background: #f4f7fa;
    border-color: #f4f7fa;
    color: var(--brand-navy);
}

.au .page-item.disabled .page-link {
    background: transparent;
    color: rgb(var(--fg) / .3);
}

/* Modals and toasts */
.au .modal-content {
    border: 1px solid rgb(var(--fg) / .12);
    border-radius: 24px;
    background: var(--bg-2);
    color: rgb(var(--fg) / .78);
    box-shadow: 0 40px 90px -30px rgb(0 10 20 / .8);
}

.au .modal-header,
.au .modal-footer {
    border-color: var(--line);
    padding: 18px 24px;
}

.au .modal-body {
    padding: 24px;
}

.au .modal-title {
    font-size: 19px;
    font-weight: 600;
    color: rgb(var(--fg));
}

.au .modal-backdrop.show {
    opacity: .7;
}

.au .toast {
    border-radius: 14px;
}

.au .spinner-border {
    --bs-spinner-border-width: .16em;
}

/* Utility colours that assume a white page */
.au .text-dark {
    color: rgb(var(--fg)) !important;
}

.au .text-primary,
.au .text-info {
    color: var(--accent) !important;
}

.au .text-secondary {
    color: rgb(var(--fg) / .6) !important;
}

.au .text-warning {
    color: #ffc266 !important;
}

.au .text-success {
    color: #8fe38f !important;
}

.au .border {
    border-color: var(--line) !important;
}

.au dl dt {
    color: rgb(var(--fg) / .55);
    font-weight: 600;
}

.au dl dd {
    color: rgb(var(--fg) / .86);
}

/* Public invoice */
.au-embed {
    display: block;
    width: 100%;
    height: min(78vh, 1100px);
    border: 0;
    border-radius: 18px;
    background: #fff;
}

/* ---------------------------------------------------------------------
   Footer + ghost wordmark
   --------------------------------------------------------------------- */
.au-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding-top: 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    font-size: 13.5px;
    color: rgb(var(--fg) / .5);
}

.au-foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.au .au-foot a {
    color: rgb(var(--fg) / .62);
    transition: color .2s;
}

.au .au-foot a:hover {
    color: rgb(var(--fg));
}

.au-ghost {
    display: none;
}

@media (min-width: 992px) {
    .au-ghost {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        display: block;
        height: clamp(110px, 13vw, 200px);
        margin: 0;
        overflow: hidden;
        padding-left: calc(max(var(--gutter), (100vw - var(--container)) / 2) - .06em);
        font-size: clamp(150px, 21vw, 330px);
        font-weight: 700;
        line-height: .8;
        letter-spacing: -.07em;
        white-space: nowrap;
        background: var(--spectrum);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        opacity: .16;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / .55) 45%, transparent 88%);
        mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / .55) 45%, transparent 88%);
        pointer-events: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* ---------------------------------------------------------------------
   Small screens
   --------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .au-split {
        max-width: 560px;
        margin: 0 auto;
        gap: 18px;
    }

    .au-main {
        align-items: flex-start;
        padding-top: 20px;
    }
}

@media (max-width: 575.98px) {
    .au-card {
        border-radius: 24px;
    }

    .au-bar {
        margin-top: 10px;
    }

    .au .au-back {
        padding: 0 16px 0 14px;
        font-size: 13.5px;
    }

    .au-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .au .nav-tabs {
        display: flex;
    }

    .au .nav-tabs .nav-item {
        flex: 1;
    }

    .au .nav-tabs .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0 10px;
    }
}

@media (max-width: 359.98px) {
    .au-providers {
        grid-template-columns: minmax(0, 1fr);
    }
}
