html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Phase 22h.WB2 item 3a (2026-06-09) — eForm required-field highlight.
   Sections that fail validation add `is-invalid` to the empty required
   inputs (and to <SearchableSelect>'s CssClass, which targets the inner
   text box via the descendant selector below). The red border + soft glow
   reads as "fix me"; the `archer-flash` animation (replayed from JS via
   archerFlashFirstInvalid) draws the eye to the first offender. */
.is-invalid,
.searchable-select.is-invalid > input {
    border-color: #e50000 !important;
    box-shadow: 0 0 0 0.18rem rgba(229, 0, 0, 0.22) !important;
}

/* Shake/flash keyframes — a brief horizontal jitter so the field is
   noticeable even if it was already in view (e.g. clicking Save without
   moving the page). Added/removed by JS to (re)trigger on each Save/Next. */
@keyframes archer-flash {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-5px); }
    30%  { transform: translateX(5px); }
    45%  { transform: translateX(-4px); }
    60%  { transform: translateX(4px); }
    75%  { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.archer-flash {
    animation: archer-flash 0.45s ease-in-out;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Phase 22c — login page chrome. Archer logo top-left in a tinted
   topbar; tenant logo in the centre above the form card. Each portal
   tints the topbar to its own brand colour by setting --archer-login-topbar. */
.archer-login-topbar {
    background: var(--archer-login-topbar, #1e293b);
    color: #fff;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.archer-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}
.archer-login-brand img {
    background: #fff;
    border-radius: 4px;
    padding: 3px 6px;
}
.archer-login-brand:hover { color: #fff; text-decoration: none; opacity: 0.9; }
.archer-login-brand-text { letter-spacing: 0.04em; }
.archer-login-main {
    min-height: calc(100vh - 56px);
    background: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.archer-login-center { width: 100%; max-width: 460px; }
.archer-login-tenantlogo { text-align: center; }
.archer-login-tenantlogo img {
    max-height: 96px;
    max-width: 240px;
    object-fit: contain;
}
.archer-login-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
:root { --archer-login-topbar: #0284c7; }

/* Phase 22h.LoginAlign-2col (2026-06-08) — two-column split auth layout
   for the per-tenant client login + register pages, mirroring the Team
   app's 5/7 split: left brand panel (tenant logo + name + welcome), a
   1px divider, right form panel. Because the client web pages are
   reached per-tenant via subdomain, there is no "change agency" link or
   "connected to {agency}" chip anymore — the tenant is implicit. */
.archer-auth-split {
    display: flex;
    min-height: 100vh;
    background: #fff;
}
.archer-auth-brand {
    flex: 0 0 42%;
    max-width: 42%;
    background: #f4f7fb;
    border-right: 1px solid var(--line, #e2eaf1);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2.25rem;
}
.archer-auth-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.archer-auth-brand-mark img { height: 26px; width: auto; }
.archer-auth-brand-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem 0 3rem;
}
.archer-auth-brand-logo { max-height: 170px; max-width: 290px; object-fit: contain; }
.archer-auth-brand-name {
    font-size: 1.55rem; font-weight: 800; line-height: 1.2;
    color: var(--ink, #0c1e2e);
}
.archer-auth-brand-blurb {
    font-size: 0.95rem; line-height: 1.55; max-width: 340px;
    color: var(--ink-3, #5a7790);
}
.archer-auth-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #fff;
}
.archer-auth-form-inner { width: 100%; max-width: 420px; }

@media (max-width: 860px) {
    .archer-auth-split { flex-direction: column; }
    .archer-auth-brand {
        flex: none; max-width: none;
        border-right: none;
        border-bottom: 1px solid var(--line, #e2eaf1);
        padding: 1.75rem 1.5rem;
    }
    .archer-auth-brand-center { padding: 0.75rem 0; gap: 0.6rem; }
    .archer-auth-brand-logo { max-height: 84px; max-width: 200px; }
    .archer-auth-brand-name { font-size: 1.25rem; }
    .archer-auth-form { padding: 1.75rem 1.25rem; }
}

/* Phase 22h.MiGuideDarkAuth (2026-06-08) — DARK "Welcome back" auth theme.
   Scoped to the .archer-auth-dark modifier on .archer-auth-split, applied
   ONLY for the miguide tenant (subdomain == "miguide") on /login and
   /register. Left = solid near-black brand/feature panel with white text;
   right = white form panel that keeps the tenant brand at the top. Other
   tenants never get .archer-auth-dark so their light pages are untouched. */
.archer-auth-dark {
    background: #fff;
}
.archer-auth-dark .archer-dark-brand {
    flex: 0 0 46%;
    max-width: 46%;
    background: #0a0a0a;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 3rem 3rem 2.5rem;
}
.archer-auth-dark .archer-dark-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #8a8a8a;
    font-weight: 600;
    margin: 0 0 1.25rem;
}
.archer-auth-dark .archer-dark-heading {
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.05;
    color: #fff;
    margin: 0 0 1rem;
}
.archer-auth-dark .archer-dark-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #b0b0b0;
    max-width: 360px;
    margin: 0 0 2.25rem;
}
.archer-auth-dark .archer-dark-features {
    list-style: none;
    margin: 0 0 auto;
    padding: 0;
}
.archer-auth-dark .archer-dark-feature {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
    border-top: 1px solid #262626;
}
.archer-auth-dark .archer-dark-feature-num {
    flex: 0 0 auto;
    font-size: 0.8rem;
    color: #6b6b6b;
    font-weight: 600;
    line-height: 1.6;
}
.archer-auth-dark .archer-dark-feature-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}
.archer-auth-dark .archer-dark-feature-desc {
    color: #9a9a9a;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}
.archer-auth-dark .archer-dark-foot {
    font-size: 0.85rem;
    color: #8a8a8a;
    margin: 2.25rem 0 0;
    line-height: 1.5;
}
.archer-auth-dark .archer-dark-foot a {
    color: #fff;
    text-decoration: underline;
}

/* Right white panel */
.archer-auth-dark .archer-dark-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3rem;
    background: #fff;
}
.archer-auth-dark .archer-dark-form-inner { width: 100%; max-width: 400px; margin: 0 auto; }
.archer-auth-dark .archer-dark-wordmark {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 2.5rem;
}
.archer-auth-dark .archer-dark-wordmark img {
    height: 40px; width: auto; object-fit: contain;
}
.archer-auth-dark .archer-dark-wordmark-name {
    font-size: 0.95rem; font-weight: 600; color: #0a0a0a; letter-spacing: 0.01em;
}
.archer-auth-dark .archer-dark-form-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #999;
    font-weight: 600;
    margin: 0 0 0.6rem;
}
.archer-auth-dark .archer-dark-form-heading {
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.15;
    color: #111;
    margin: 0 0 0.4rem;
}
.archer-auth-dark .archer-dark-form-sub {
    font-size: 0.92rem;
    color: #777;
    line-height: 1.5;
    margin: 0 0 1.75rem;
}
.archer-auth-dark .archer-dark-field { margin-bottom: 1.4rem; }
.archer-auth-dark .archer-dark-label {
    display: block;
    font-size: 0.78rem;
    color: #555;
    font-weight: 600;
    margin: 0 0 0.45rem;
    letter-spacing: 0.01em;
}
.archer-auth-dark .archer-dark-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #d4d4d4;
    background: transparent;
    padding: 0.5rem 0;
    font: inherit;
    font-size: 0.98rem;
    color: #111;
    border-radius: 0;
}
.archer-auth-dark .archer-dark-input:focus {
    outline: none;
    border-bottom-color: #0a0a0a;
}
.archer-auth-dark .archer-dark-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 1.75rem;
    font-size: 0.85rem;
}
.archer-auth-dark .archer-dark-remember {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #555;
    cursor: pointer;
}
.archer-auth-dark .archer-dark-remember input {
    accent-color: #0a0a0a;
    width: 15px; height: 15px; cursor: pointer;
}
.archer-auth-dark .archer-dark-forgot {
    color: #555;
    text-decoration: underline;
}
.archer-auth-dark .archer-dark-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #0a0a0a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s ease;
}
.archer-auth-dark .archer-dark-btn:hover { background: #222; }
.archer-auth-dark .archer-dark-form-foot {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
    margin: 1.5rem 0 0;
}
.archer-auth-dark .archer-dark-form-foot a { color: #0a0a0a; text-decoration: underline; }
.archer-auth-dark .archer-dark-error {
    padding: 0.7rem 0.9rem;
    background: #fdecec;
    color: #b42318;
    border: 1px solid #f5c2c0;
    border-radius: 8px;
    font-size: 0.85rem;
    margin: 0 0 1.25rem;
}

@media (max-width: 860px) {
    .archer-auth-dark { flex-direction: column; }
    .archer-auth-dark .archer-dark-brand {
        flex: none; max-width: none;
        padding: 2rem 1.5rem;
    }
    .archer-auth-dark .archer-dark-heading { font-size: 2rem; }
    .archer-auth-dark .archer-dark-features { margin-bottom: 1.5rem; }
    .archer-auth-dark .archer-dark-form { padding: 2rem 1.5rem; }
}

/* Phase 22h.61d — OTP verify page (/otp). Six individual digit inputs
   with auto-advance, danger state on bad code, success chip after
   resend. Token-driven so the same CSS theme-flips with the rest of
   the Clients Portal once archer-tokens.css is loaded. */
.archer-otp-back {
    display: inline-block;
    color: var(--ink-3, #5a7790);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 1rem;
}
.archer-otp-back:hover { color: var(--ink-2, #2c4258); text-decoration: underline; }
.archer-otp-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--primary-soft, #EFF8FF);
    color: var(--primary-soft-ink, #0EA5E9);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.archer-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin: 0.5rem 0;
}
.archer-otp-digit {
    width: 100%;
    height: 52px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 1px solid var(--line, #e2eaf1);
    border-radius: 10px;
    background: var(--surface, #fff);
    color: var(--ink, #0c1e2e);
    outline: none;
    font-family: inherit;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.archer-otp-digit:focus,
.archer-otp-digit.filled {
    border-color: var(--primary, #38BDF8);
    box-shadow: 0 0 0 3px var(--primary-soft, #EFF8FF);
}
.archer-otp-error {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--danger-ink, #991b1b);
    background: var(--danger-soft, #fef2f2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}
.archer-otp-resent {
    color: var(--success-ink, #065f46);
    font-weight: 600;
}
.archer-otp-resend-btn {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--primary, #38BDF8);
    font-weight: 600;
    cursor: pointer;
    font: inherit;
}
.archer-otp-resend-btn:hover { text-decoration: underline; }
.archer-otp-footnote {
    font-size: 0.72rem;
    color: var(--ink-3, #5a7790);
    line-height: 1.55;
}

/* Phase 22h.61h — Connect-to-agency page (/connect) + the green
   "Connected to {Agency}" chip that shows on /login after a match. */
.archer-connect-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.archer-connect-input {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.archer-connect-verify { padding: 0 1.1rem; white-space: nowrap; }
.archer-connect-match {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--success-ink, #065f46);
    background: var(--success-soft, #ecfdf5);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #a7f3d0;
}
.archer-connect-back {
    color: var(--ink-3, #5a7790);
    text-decoration: none;
}
.archer-connect-back:hover { color: var(--primary, #38BDF8); text-decoration: underline; }

/* Phase 22h.61i — First-login Welcome carousel.
   3 panels, simple dot indicators, Continue / Get started button. */
.archer-welcome-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface, #fff);
}
.archer-welcome-top { padding: 12px 18px; display: flex; justify-content: flex-end; }
.archer-welcome-skip {
    background: transparent; border: 0;
    color: var(--ink-3, #5a7790);
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}
.archer-welcome-skip:hover { background: var(--surface-2, #eef4f9); color: var(--ink-2, #2c4258); }

.archer-welcome-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.75rem;
    text-align: center;
}
.archer-welcome-visual {
    width: 220px;
    height: 200px;
    margin-bottom: 1.75rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.archer-welcome-agent-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--primary-soft, #EFF8FF) 0%, transparent 70%);
}
.archer-welcome-agent-ring {
    width: 110px; height: 110px;
    border-radius: 999px;
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e2eaf1);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.archer-welcome-agent-photo {
    width: 84px; height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex; align-items: center; justify-content: center;
}
.archer-welcome-checklist {
    list-style: none;
    padding: 0; margin: 0 0 0.75rem 0;
    display: flex; flex-direction: column; gap: 0.45rem;
    text-align: left;
}
.archer-welcome-checklist li {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink, #0c1e2e);
}
.archer-welcome-checklist .check {
    width: 18px; height: 18px; border-radius: 999px;
    background: var(--surface-2, #eef4f9);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
}
.archer-welcome-checklist .check.on { background: var(--success, #10b981); }
.archer-welcome-progress {
    height: 8px;
    width: 100%;
    background: var(--surface-2, #eef4f9);
    border-radius: 999px;
    overflow: hidden;
}
.archer-welcome-progress > span {
    display: block; height: 100%;
    background: var(--primary, #38BDF8);
    border-radius: 999px;
}
.archer-welcome-noti {
    position: absolute;
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e2eaf1);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(12,30,46,0.06));
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    width: 85%;
}
.archer-welcome-noti .dot {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}
.archer-welcome-noti .dot.info    { background: var(--primary, #38BDF8); }
.archer-welcome-noti .dot.success { background: var(--success, #10b981); }
.archer-welcome-noti .dot.warn    { background: #f59e0b; }
.archer-welcome-noti-1 { left: 10%; top: 10%;  transform: rotate(-2deg); }
.archer-welcome-noti-2 { left: 14%; top: 42%; }
.archer-welcome-noti-3 { left: 18%; top: 70%;  transform: rotate(2deg); }

.archer-welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}
.archer-welcome-text {
    color: var(--ink-3, #5a7790);
    line-height: 1.55;
    max-width: 320px;
    margin: 0;
}

.archer-welcome-foot {
    padding: 1.5rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.archer-welcome-dots {
    display: flex; justify-content: center; gap: 6px;
}
.archer-welcome-dots .dot {
    width: 6px; height: 6px; border-radius: 999px;
    background: var(--line-2, #cfdae5);
    transition: width 0.2s ease, background 0.2s ease;
}
.archer-welcome-dots .dot.active {
    width: 22px;
    background: var(--primary, #38BDF8);
}

/* Phase 22h.61j — Clients Portal Home hero header + 9-segment status. */
.archer-home-hero {
    background: var(--surface, #fff);
    border-bottom: 1px solid var(--line, #e2eaf1);
    padding: 14px 18px 18px;
}
.archer-home-hero-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.archer-home-brand {
    display: inline-flex; align-items: center; gap: 0.6rem;
    color: var(--ink, #0c1e2e);
    text-decoration: none;
}
.archer-home-brand-text {
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 1rem;
}
.archer-home-actions { display: flex; gap: 6px; align-items: center; }
.archer-home-bell {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 999px;
    color: var(--ink-2, #2c4258);
    background: transparent;
    text-decoration: none;
}
.archer-home-bell:hover { background: var(--surface-2, #eef4f9); color: var(--ink, #0c1e2e); }
.archer-home-bell-dot {
    position: absolute; top: 6px; right: 6px;
    width: 7px; height: 7px;
    border-radius: 999px;
    background: var(--danger, #dc2626);
    border: 2px solid var(--surface, #fff);
}
.archer-home-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    color: #7c2d12;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}
.archer-home-avatar:hover { filter: brightness(1.05); color: #7c2d12; }

.archer-home-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 8px;
    background: var(--surface-2, #eef4f9);
    border-radius: 999px;
    margin-bottom: 14px;
    text-decoration: none;
    color: var(--ink-3, #5a7790);
    font-size: 0.75rem;
}
.archer-home-pill:hover { background: var(--line, #e2eaf1); color: var(--ink-2, #2c4258); }
.archer-home-pill-label { font-weight: 500; }
.archer-home-pill-tenant {
    background: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    border: 1px solid var(--line, #e2eaf1);
    color: var(--ink, #0c1e2e);
    font-size: 0.75rem;
    font-weight: 600;
}
.archer-home-greet-prefix {
    font-size: 0.78rem;
    color: var(--ink-3, #5a7790);
    margin-bottom: 2px;
}
.archer-home-greet-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink, #0c1e2e);
}

.archer-home-main {
    padding: 18px 16px;
    background: var(--surface-2, #f4f7fb);
    max-width: 960px;
    margin: 0 auto;
}
.archer-home-status {
    display: block;
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e2eaf1);
    border-radius: var(--radius-lg, 16px);
    padding: 16px;
    margin-bottom: 18px;
    text-decoration: none;
    color: var(--ink, #0c1e2e);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.archer-home-status:hover {
    border-color: var(--line-2, #cfdae5);
    box-shadow: 0 2px 8px rgba(12,30,46,0.06);
    color: var(--ink, #0c1e2e);
}
.archer-home-status-overline {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3, #5a7790);
    margin-bottom: 4px;
}
.archer-home-status-current {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.archer-home-status-meta {
    font-size: 0.72rem;
    color: var(--ink-3, #5a7790);
    margin-top: 2px;
    margin-bottom: 14px;
}
.archer-home-status-bar {
    display: flex; gap: 3px;
}
.archer-home-status-bar .seg {
    flex: 1;
    height: 6px;
    border-radius: 99px;
    background: var(--surface-2, #eef4f9);
}
.archer-home-status-bar .seg.done    { background: var(--success, #10b981); }
.archer-home-status-bar .seg.current { background: var(--primary, #38BDF8); }

.archer-home-sec-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3, #5a7790);
    margin: 0 0 8px;
    font-weight: 600;
}

/* Phase 22h.61k — BusinessSponsor variant of the hero. Adds a
   "BUSINESS" chip next to the ARCHER wordmark, swaps the round avatar
   for a dark square block, and replaces the greeting with a business
   card showing logo / name / ABN / primary contact. */
.archer-home-brand-chip {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--primary, #38BDF8);
    background: var(--primary-soft, #EFF8FF);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.08em;
    margin-left: 0.4rem;
}
.archer-home-avatar.is-business {
    border-radius: 8px;
    background: var(--ink, #0c1e2e);
    color: #fff;
    font-size: 0.68rem;
}

.archer-home-bizcard {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e2eaf1);
    border-radius: var(--radius, 12px);
    text-decoration: none;
    color: var(--ink, #0c1e2e);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.archer-home-bizcard:hover {
    border-color: var(--line-2, #cfdae5);
    box-shadow: 0 2px 8px rgba(12,30,46,0.06);
    color: var(--ink, #0c1e2e);
}
.archer-home-bizcard-logo {
    flex: 0 0 52px;
    width: 52px; height: 52px;
    border-radius: 10px;
    background: var(--ink, #0c1e2e);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex; align-items: center; justify-content: center;
}
.archer-home-bizcard-body {
    flex: 1;
    min-width: 0;
}
.archer-home-bizcard-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.archer-home-bizcard-meta {
    font-size: 0.72rem;
    color: var(--ink-3, #5a7790);
    line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.archer-home-bizcard-edit {
    flex: 0 0 28px;
    width: 28px; height: 28px;
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink-3, #5a7790);
    background: transparent;
}
.archer-home-bizcard:hover .archer-home-bizcard-edit {
    background: var(--surface-2, #eef4f9);
    color: var(--ink, #0c1e2e);
}
/* Phase 22h.WB2 Pass R (2026-05-22) — Whiteboard v2 §A feedback:
   static (display-only) bizcard variant. No hover lift / no pointer
   cursor because /my/details is reachable through the "Business
   details" tile below, so the header card is purely informational. */
.archer-home-bizcard-static { cursor: default; }
.archer-home-bizcard-static:hover {
    border-color: var(--line, #e2eaf1);
    box-shadow: none;
}

/* Phase 22h.61l — Reusable inner-page shell (TopBar + body). Used
   by every Clients Portal page except Home / Welcome / OTP / Connect
   / Login. Sticky white header with Back arrow + centred title +
   optional right-side action; body sits on surface-2 with consistent
   padding. */
.archer-inner-shell {
    min-height: 100vh;
    background: var(--surface-2, #f4f7fb);
    display: flex;
    flex-direction: column;
}
.archer-inner-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface, #fff);
    border-bottom: 1px solid var(--line, #e2eaf1);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.archer-inner-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--ink-2, #2c4258);
    background: transparent;
    text-decoration: none;
    flex: 0 0 36px;
}
.archer-inner-back:hover {
    background: var(--surface-2, #eef4f9);
    color: var(--ink, #0c1e2e);
}
.archer-inner-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--ink, #0c1e2e);
}
.archer-inner-action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.archer-inner-body {
    flex: 1;
    padding: 18px 16px;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .archer-inner-body {
        padding: 24px 24px;
    }
}

/* Phase 22h.61l — section title used inside inner pages, matches Home. */
.archer-section-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3, #5a7790);
    margin: 0 0 8px;
    font-weight: 600;
}

/* Card-like sections used inside the inner-page body for grouping
   form fields, lists, etc. Mirrors the .tile + .card primitives. */
.archer-section-card {
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e2eaf1);
    border-radius: var(--radius, 12px);
    padding: 16px;
    margin-bottom: 16px;
}
