@font-face {
    font-family: "Roboto";
    src: url("fonts/roboto/Roboto.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "ABC Monument Grotesk";
    src: url("fonts/monument-grotesk/ABCMonumentGrotesk-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 400;
    font-display: swap;
}
@font-face {
    font-family: "ABC Monument Grotesk";
    src: url("fonts/monument-grotesk/ABCMonumentGrotesk-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500 900;
    font-display: swap;
}
/* Expanding unit history adds rows without shifting columns when a scrollbar appears. */
html:has(.unit-fields-card) { scrollbar-gutter: stable; }
:root {
    --font-numeric: "Roboto", Arial, sans-serif;
    font-family: "ABC Monument Grotesk", system-ui, sans-serif;
    color: var(--tone-182b34, #182b34);
    background: var(--tone-f5f7f8, #f5f7f8);
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
.numeric-value { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
/* A two-colour ring remains visible on light, dark and tenant-coloured surfaces. */
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #182b34;
}
html { scroll-padding-top: calc(var(--portal-header-height, 48px) + 8px); }
#main-content { scroll-margin-top: 8px; }
.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 10000;
    padding: 12px 16px; background: #fff; color: #182b34; border: 2px solid #182b34;
    border-radius: 4px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.sidebar { background: #102c35; color: #d7e4e8; padding: 24px 16px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px; text-decoration: none; }
.brand-logo { display: block; width: 100%; max-height: 48px; object-fit: contain; }
.nav-heading { font-size: 10px; font-weight: 600; color: #91aeb9; letter-spacing: .14em; margin: 32px 10px 12px; }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px 10px; border-radius: 7px; text-decoration: none; font-size: 14px; }
.nav-link.active { color: white; background: var(--brand-sidebar-active, #20464e); }
.bank-tabs .workspace-residents { list-style: none; padding: 0 0 0 16px; margin: 0; width: 100%; }
.bank-tabs .workspace-residents li { display: flex; align-items: center; gap: 2px; }
.bank-tabs .workspace-residents a { flex: 1; min-width: 0; }
.bank-tabs .workspace-residents a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bank-tabs .workspace-residents img { flex: none; }
/* Enlarge workspace icons while preserving their layout slots and row spacing. */
.sidebar [data-manager-navigation] img { transform: scale(1.25); }
.bank-tabs .workspace-residents button { flex: none; padding: 4px 7px; border: 0; border-radius: 4px; color: inherit; background: transparent; cursor: pointer; font-size: 18px; }
.bank-tabs .workspace-residents button:hover { background: var(--brand-sidebar-active, #20464e); }
.sidebar-footer { margin-top: auto; padding-top: 40px; font-size: 11px; color: #a6bcc4; }
.sidebar-footer p { margin: 6px 0 0; line-height: 1.5; }
.small-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #6be0bd; margin-right: 7px; }
:root .sidebar-footer .small-dot[data-api-connection-state="checking"] { --api-dot-color: #94a3a8; }
:root .sidebar-footer .small-dot[data-api-connection-state="connected"] { --api-dot-color: #4ac337; }
:root .sidebar-footer .small-dot[data-api-connection-state="disconnected"] { --api-dot-color: #f04f54; }
:root .sidebar-footer .small-dot[data-api-connection-state="connected"][data-api-region="fra"] { --api-dot-color: #cbd5e1; }
:root .sidebar-footer .small-dot[data-api-connection-state="connected"][data-api-region="ams"] { --api-dot-color: #ff8c00; }
:root .sidebar-footer .small-dot[data-api-connection-state="connected"][data-api-region="local"] { --api-dot-color: #fff; }
.small-dot[data-api-connection] { display: inline-flex; position: relative; align-items: center; justify-content: center;
    width: 24px; height: 24px; vertical-align: middle; background: transparent; }
.small-dot[data-api-connection]::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--api-dot-color, #94a3a8); box-shadow: 0 0 0 1px #94a3a8; }
.small-dot[data-api-connection]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.api-connection-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.main-column { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 48px; padding: 6px 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; background: var(--surface, #fff); border-bottom: 1px solid var(--tone-d5e0e4, #d5e0e4); font-size: 13px; color: var(--tone-5d7079, #5d7079); }
.topbar-actions { min-width: 0; margin-left: auto; display: flex; align-items: center; gap: 12px; }
.button.login-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: var(--brand-primary, #1e5b4b); color: var(--brand-primary-text, #fff); border-color: var(--brand-primary, #1e5b4b); }
.button.login-link:hover { background: var(--brand-primary-hover, #174a3d); }
.manager-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--tone-234951, #234951); }
.manager-identity { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: inherit; text-decoration: none; }
.topbar .manager-identity .manager-avatar { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.topbar .copy-link-icon, .topbar .theme-toggle { width: 2rem; height: 2rem; min-height: 2rem; flex: none; color: var(--tone-182b34, #182b34); background: var(--surface, #fff); border: 1px solid var(--tone-dfe7ea, #dfe7ea); border-radius: .3rem; box-shadow: none; }
.topbar .copy-link-icon:hover, .topbar .theme-toggle:hover { background: var(--tone-dfe7ea, #dfe7ea); }
.topbar .copy-link-icon:focus-visible, .topbar .theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.manager-text { display: flex; flex-direction: column; min-width: 0; }
.manager-organisation { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--tone-536b75, #536b75); }
.logout-form { margin: 0; }
.breadcrumbs { min-width: 0; flex: 1 1 300px; container-type: inline-size; container-name: breadcrumbs; }
.breadcrumbs a, .breadcrumb-current, .breadcrumb-label { gap: 6px; }
.breadcrumb-label { display: inline-flex; align-items: center; }
.breadcrumb-icon { display: inline-flex; flex: 0 0 16px; height: 16px; align-items: center; justify-content: center; transform: translateY(-2px); }
.breadcrumbs .breadcrumb-icon .manager-avatar { width: 16px; height: 16px; border-radius: 0; background: transparent; color: inherit; }
.breadcrumbs .breadcrumb-icon img, .breadcrumbs .breadcrumb-icon .manager-avatar img { display: block; width: 16px; height: 16px; object-fit: contain; }
:root[data-theme='dark'] .breadcrumb-icon img[src="https://static.kombine.services/kombinelogo1/black.svg"] { filter: invert(1); }
.breadcrumbs-caption { display: block; margin-bottom: 1.5px; color: var(--tone-5d7079, #5d7079); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.4; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.breadcrumbs a, .breadcrumb-current { min-width: 0; min-height: 32px; display: inline-flex; align-items: center; padding: 4.5px 3px; border-radius: 4px; overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--tone-285c65, #285c65); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--tone-234951, #102c35); background: var(--tone-edf4f3, #edf4f3); }
.breadcrumb-separator { flex-shrink: 0; color: var(--tone-647680, #647680); font-size: 19px; }
.breadcrumb-current { padding: 4.5px 6px; background: var(--tone-e6f0ed, #e6f0ed); color: var(--tone-183e34, #183e34); font-weight: 600; }
.site-identity { min-width: 0; display: flex; flex-direction: column; gap: 1.5px; text-align: right; overflow-wrap: anywhere; font-size: 11px; }
.site-identity strong { color: var(--tone-234951, #234951); font-size: 13px; font-weight: 600; }
main { width: 100%; min-width: 0; padding: 18px; overflow-wrap: anywhere; }
main h1, main [id] { scroll-margin-top: 9rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.eyebrow { color: var(--tone-39786c, #39786c); font-size: 10px; font-weight: 700; letter-spacing: .16em; margin: 0 0 9px; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.04em; margin: 0 0 7.5px; }
.lead { color: var(--tone-647680, #647680); font-size: 14px; margin: 0; line-height: 1.7; }
.phase-label { white-space: nowrap; background: var(--tone-e6f0ed, #e6f0ed); color: var(--tone-346957, #346957); font-size: 11px; border-radius: 20px; padding: 6.75px 10.5px; }
.status-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--tone-dfe7ea, #dfe7ea); border-radius: 10px; background: var(--surface, #fff); padding: 12px; }
.status-main { display: flex; align-items: center; gap: 12px; }
.status-symbol { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; }
.pending { background: var(--tone-f5eedf, #f5eedf); color: var(--tone-896a25, #896a25); }
.connected { background: var(--tone-e2f4ed, #e2f4ed); color: var(--tone-20775c, #20775c); }
.status-panel h2 { margin: 0 0 4.5px; font-size: 15px; font-weight: 600; }
.status-panel p { font-size: 12px; color: var(--tone-647680, #647680); line-height: 1.6; margin: 0; max-width: 550px; }
.button { cursor: pointer; white-space: nowrap; min-height: 36px; border: 1px solid var(--tone-cedadc, #cedadc); background: var(--surface, #fff); border-radius: 6px; padding: 6px 9px; font-size: 13px; color: var(--tone-234951, #234951); }
.button:hover { background: var(--tone-f2f8f6, #f2f8f6); }
.button:disabled { cursor: wait; opacity: .6; }
.page-link-control { position: relative; flex-shrink: 0; }
.page-link-status { position: absolute; top: calc(100% + 8px); right: 0; z-index: 2; width: max-content; max-width: min(280px, calc(100vw - 32px)); font-size: 12px; line-height: 1.5; color: var(--tone-234951, #234951); background: var(--surface, #fff); border-radius: 6px; }
.page-link-status:not(:empty) { padding: 6px 9px; border: 1px solid var(--tone-cedadc, #cedadc); box-shadow: 0 3px 12px #102c351a; }
.section-heading { margin: 18px 0 9px; }
.section-heading h2, .next-section h2 { font-size: 19px; letter-spacing: -.02em; font-weight: 600; margin: 0 0 6px; }
.section-heading p, .next-section p { color: var(--tone-647680, #647680); font-size: 13px; line-height: 1.7; margin: 0; }
.layer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.layer-card { background: var(--surface, #fff); border: 1px solid var(--tone-dfe7ea, #dfe7ea); border-radius: 9px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; }
.layer-number { font-size: 10px; color: var(--tone-68858b, #68858b); letter-spacing: .12em; font-weight: 600; }
.layer-card h3 { font-size: 19px; margin: 12px 0 7.5px; font-weight: 600; letter-spacing: -.02em; }
.layer-card p { font-size: 13px; line-height: 1.7; color: var(--tone-647680, #647680); margin: 0 0 12px; }
.card-label { font-size: 10px; color: var(--tone-587079, #587079); border-top: 1px solid var(--tone-e9eef0, #e9eef0); padding-top: 9px; margin-top: auto; width: 100%; }
.next-section { margin-top: 15px; padding: 15px; background: var(--tone-edf2f2, #edf2f2); border-radius: 9px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.next-section .eyebrow { margin-bottom: 9px; font-size: 10px; }
.next-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.next-list li { display: flex; gap: 12px; }
.next-list li > span { font-size: 11px; color: var(--tone-62877c, #62877c); padding-top: 2.25px; }
.next-list strong { font-size: 13px; font-weight: 600; }
.next-list p { font-size: 12px; margin-top: 2.25px; }
/* FocusOnNavigate announces the heading; it is not an interactive control. */
h1[tabindex="-1"]:focus { outline: none; box-shadow: none; }
@media (max-width: 1100px) {
    .page-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
}
@media (max-width: 820px) {
    .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .sidebar { padding: 12px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
    .nav-heading, .sidebar-footer { display: none; }
    .brand { width: 200px; max-width: 100%; padding: 8px 12px; }
    .topbar { padding: 6px 12px; }
    .topbar-actions { flex-wrap: wrap; gap: 6px 9px; }
    main { padding: 15px 12px; }
    .layer-grid { grid-template-columns: 1fr; }
    .layer-card h3 { margin-top: 12px; }
    .next-section { grid-template-columns: 1fr; padding: 12px; gap: 15px; }
    .status-panel { align-items: flex-start; flex-direction: column; }
    .status-main { align-items: flex-start; }
}
@media (max-width: 820px), (pointer: coarse) {
    .button, .nav-link, .brand, .breadcrumbs a, .breadcrumb-current { min-height: 44px; }
    .topbar .copy-link-icon, .topbar .theme-toggle { width: 44px; height: 44px; min-height: 44px; }
}
.bank-kid-menu { position: fixed; z-index: 1000; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 16px)); padding: 12px; color: var(--tone-17343d, #17343d); background: var(--surface, #fff); border: 1px solid var(--tone-b7c7cc, #b7c7cc); border-radius: 8px; box-shadow: 0 6px 24px #0003; }
.bank-kid-menu code { overflow-wrap: anywhere; user-select: text; }
.bank-kid-menu { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.bank-kid-menu button { cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; padding: 4px; border: 0; border-radius: 4px; background: transparent; color: inherit; }
.bank-kid-menu button:hover { background: var(--tone-edf4f3, #edf4f3); }
.bank-kid-menu [role="status"] { grid-column: 1 / -1; font-size: 13px; }
.bank-kid-menu [role="status"]:empty { display: none; }
@media (pointer: coarse) { .bank-kid-menu button { width: 44px; height: 44px; } }
:root { color-scheme: light; --surface: #fff; --accent: #174a3d; }
:root[data-theme='dark'] { color-scheme: dark; --surface: #1a2a33; --accent: #9bdcc5;
    --tone-17343d: #e1eaee;
    --tone-182b34: #e1eaee;
    --tone-183e34: #b7e5d5;
    --tone-20775c: #91dfba;
    --tone-234951: #d4e8ed;
    --tone-245444: #b4e4cf;
    --tone-247057: #91dfba;
    --tone-285747: #b4e4cf;
    --tone-285c65: #9bd5d3;
    --tone-292b32: #f1d899;
    --tone-346957: #a4ddc8;
    --tone-39786c: #8bceb8;
    --tone-536b75: #abbfc8;
    --tone-587079: #abbfc8;
    --tone-5d7079: #abbfc8;
    --tone-62877c: #9ac5b6;
    --tone-647680: #abbfc8;
    --tone-68858b: #a7bfc5;
    --tone-6f8088: #a3b6bf;
    --tone-839399: #a3b6bf;
    --tone-85382e: #ffc4b9;
    --tone-896a25: #f1d899;
    --tone-b7c7cc: #435b65;
    --tone-b8c9cf: #435b65;
    --tone-bbd9cf: #426c5c;
    --tone-cedadc: #435b65;
    --tone-d5e0e4: #354b56;
    --tone-dfe7ea: #354b56;
    --tone-e2f4ed: #213c32;
    --tone-e6c1bd: #79504e;
    --tone-e6f0ed: #243e38;
    --tone-e9eef0: #30444e;
    --tone-edf1f3: #30444e;
    --tone-edf2f2: #1c2d35;
    --tone-edf4f3: #263c42;
    --tone-edf8f3: #213c32;
    --tone-f1f5f6: #23343d;
    --tone-f2f8f6: #294047;
    --tone-f5eedf: #403821;
    --tone-f5f7f8: #101a20;
    --tone-fafcfc: #1d3039;
    --tone-fff3d7: #403821;
    --tone-fff3f1: #402928;
}
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 0.375rem; }
.theme-toggle [data-theme-icon] { width: 16px; text-align: center; font-size: 17px; }

.workspace-locations { list-style: none; padding: 0 0 0 12px; margin: 0 0 0 17px; border-left: 1px solid #46616a; }
.workspace-locations li { display: flex; align-items: center; gap: 2px; font-size: 13px; }
.workspace-locations a { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; padding: 7px 5px; border-radius: 5px; text-decoration: none; }
.workspace-locations a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-locations img { flex: none; }
.workspace-locations a.active { background: var(--brand-sidebar-active, #20464e); }
.workspace-locations a:hover, .workspace-locations button:hover { background: var(--brand-sidebar-active, #20464e); }
.workspace-locations button { flex: none; padding: 4px 7px; border: 0; border-radius: 4px; color: inherit; background: transparent; cursor: pointer; font-size: 18px; }
.workspace-locations li.workspace-location-branch { display: block; }
.workspace-location-heading { display: flex; align-items: center; gap: 2px; }
.workspace-units { list-style: none; padding: 0 0 0 16px; margin: 0; }
.workspace-locations li.workspace-unit-branch { display: block; }
.workspace-unit-groups { list-style: none; padding: 0 0 0 16px; margin: 0; }

/* One visual shortcut; navigation and close remain separate keyboard controls. */
.sidebar nav .workspace-shortcut { position: relative; gap: 0; border-radius: 5px; }
.sidebar nav .workspace-shortcut:is(:hover, :focus-within, :has(> a.active)) { background: var(--brand-sidebar-active, #20464e); color: var(--brand-sidebar-active-text, #fff); }
.sidebar nav .workspace-shortcut > a { width: 100%; padding-inline-end: 34px; }
.sidebar nav .workspace-shortcut > button { position: absolute; inset-inline-end: 2px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; }
.sidebar nav .workspace-shortcut > button:is(:hover, :focus-visible) { background: color-mix(in srgb, currentColor 12%, transparent); outline-offset: -2px; }
.sidebar nav .workspace-shortcut > a.workspace-loading { padding-inline-end: 54px; }
.sidebar nav .workspace-shortcut > a.workspace-loading::after { inset-inline-end: 36px; }
@media (pointer: coarse) {
    .sidebar nav .workspace-shortcut > a { min-height: 44px; padding-inline-end: 44px; }
    .sidebar nav .workspace-shortcut > button { width: 40px; height: 40px; }
    .sidebar nav .workspace-shortcut > a.workspace-loading { padding-inline-end: 64px; }
    .sidebar nav .workspace-shortcut > a.workspace-loading::after { inset-inline-end: 46px; }
}

/* Shared resident/status layout: keep desktop scrolling inside the list and sidebar. */
@media (min-width: 821px) and (min-height: 480px) {
    .shell:has(.portal-list-fill) { height: 100dvh; min-height: 0; grid-template-rows: minmax(0, 1fr); }
    .shell:has(.portal-list-fill) .sidebar { min-height: 0; overflow-y: auto; }
    .shell:has(.portal-list-fill) .main-column { min-height: 0; }
    .shell:has(.portal-list-fill) .topbar { flex-shrink: 0; }
    .shell:has(.portal-list-fill) #main-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
    .shell:has(.portal-list-fill) .shared-heading { flex-shrink: 0; }
    .portal-list-fill,
    .portal-list-fill [data-status-content],
    .portal-list-fill .tenant-status-results { flex: 1; min-height: 0; display: flex; flex-direction: column; }
    .portal-list-fill .portal-list-scroll { flex: 1; min-height: 0; height: 0; }
    .portal-list-fill > :not(.portal-list-scroll, [data-status-content]),
    .portal-list-fill .tenant-status-summary { flex-shrink: 0; }
}

/* Keep resident activation letters free of workspace navigation when printed. */
@media print {
    body:has(.activation-letter) .sidebar,
    body:has(.activation-letter) .topbar,
    body:has(.activation-letter) #blazor-error-ui { display: none !important; }
    body:has(.activation-letter) .shell { display: block; min-height: 0; }
    body:has(.activation-letter) .main-column { margin: 0; width: 100%; }
    body:has(.activation-letter) #main-content { padding: 0; }
}
#main-content { position: relative; }
.page-loading { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; pointer-events: none; }
/* Reserve the same heading space while idle so the icon and title never shift. */
.page-loading[hidden] { display: inline-flex; visibility: hidden; }
.page-loading-spinner, .workspace-loading::after, .users-status-loading::before { box-sizing: border-box; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: page-loading-spin .7s linear infinite; }
.users-status-loading { display: inline-flex; align-items: center; gap: .5rem; }
.users-status-loading::before { content: ''; flex: 0 0 14px; width: 14px; height: 14px; }
.sidebar nav a.workspace-loading { position: relative; padding-inline-end: 1.8rem; }
.workspace-loading::after { content: ''; position: absolute; inset-inline-end: .4rem; top: calc(50% - 7px); width: 14px; height: 14px; animation: page-loading-spin .7s linear infinite, workspace-loading-fade .3s ease-out both; }
@keyframes workspace-loading-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-loading-spin { to { transform: rotate(360deg); } }
/* Shared resident/administrator list template, including rows appended by JavaScript. */
.portal-list-card { background: var(--surface); border: 1px solid var(--tone-dfe7ea, #dfe7ea); border-radius: .75rem; overflow: hidden; }
.portal-list-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; padding: .5625rem .75rem; }
.portal-list-toolbar input, .portal-list-toolbar button { color: inherit; background: var(--surface); border: 1px solid var(--tone-dfe7ea, #dfe7ea); border-radius: .3rem; padding: .2625rem .375rem; }
.portal-list-scroll { overflow: auto; height: max(220px, calc(100dvh - 330px)); overflow-anchor: none; }
.portal-list-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .9rem; }
.portal-list-table :where(th) { text-align: left; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.portal-list-table :where(th, td) { padding: .45rem .6rem; border-bottom: 1px solid var(--tone-dfe7ea, #dfe7ea); vertical-align: top; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-sort-heading { display: flex; align-items: center; justify-content: space-between; gap: .225rem; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; text-align: start; }
.portal-sort-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-sort-heading [data-sort-arrow] { flex: none; }
.portal-sort-heading:hover .portal-sort-label { text-decoration: underline; }
.portal-sort-heading:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
@media (max-width: 640px) { .portal-list-table { min-width: 700px; } }

.manager-directory .portal-list-table { min-width: 80rem; }
.manager-directory[data-service-directory] .portal-list-table { min-width: 32rem; }
.installer-directory .portal-sort-heading { justify-content: flex-start; }
.manager-column-name { width: 18%; }
.manager-column-organisation { width: 11%; }
.manager-column-email { width: 18%; }
.manager-column-last-active { width: 14%; }
.manager-column-tabs { width: 11%; }
.manager-column-state { width: 9%; }
.manager-column-kids { width: 10%; }
.manager-directory-input { position: relative; width: min(100%, 18rem); }
.manager-directory-input input { width: 100%; padding-inline-end: 2rem; }
.manager-directory-input input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.manager-directory-input .page-loading-spinner { position: absolute; right: .65rem; top: calc(50% - 9px); pointer-events: none; }
.manager-directory-input .page-loading-spinner[hidden] { display: none; }
.manager-directory-filter button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2rem; height: 2rem; min-height: 2rem; padding: .3rem; margin-inline-start: auto; }
.manager-directory-state small { display: block; white-space: nowrap; color: var(--tone-647680, #647680); }
.manager-directory-identity { display: flex; gap: .5rem; align-items: center; min-width: 0; }
.manager-directory-identity > span { min-width: 0; }
.manager-directory-name { display: block; overflow: hidden; text-overflow: ellipsis; }
.manager-directory-grants { list-style: none; padding: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manager-directory-grants li { display: inline; margin-inline-end: .8rem; }
.manager-directory-grants small { color: var(--tone-647680, #647680); }
.manager-directory-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3.5rem; padding: .5625rem .75rem; }
.manager-pin { display: inline-flex; flex: none; border-radius: .25rem; }
.manager-pin:focus-visible, .manager-directory-tabs [tabindex]:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.manager-directory-tabs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.manager-directory-tabs li { display: flex; }
.manager-directory-tabs [role="img"] { display: inline-flex; align-items: center; justify-content: center; }
.manager-directory-tabs img { width: 24px; height: 24px; }
.manager-tabs-truncated { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manager-tabs-truncated li { display: inline-block; margin-inline-end: .5rem; vertical-align: middle; }
.manager-tabs-truncated li:last-child { margin-inline-end: 0; }
.manager-tabs-truncated:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.statistics-card-flash { position: absolute; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--accent, #174a3d) 22%, transparent); box-shadow: inset 0 0 0 3px var(--accent, #174a3d); opacity: 0; pointer-events: none; animation: statistics-card-flash 1.8s ease-out; }
@keyframes statistics-card-flash { 0%, 100% { opacity: 0; } 12%, 45% { opacity: 1; } }
.statistics-count-updated { transform-origin: left center; animation: statistics-count-zoom 1.2s ease-out; }
@keyframes statistics-count-zoom { 0%, 100% { transform: scale(1); } 20%, 40% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce), print { .statistics-card-flash, .statistics-count-updated { animation: none; } }
@media (prefers-reduced-motion: reduce) { .page-loading-spinner, .workspace-loading::after, .users-status-loading::before { animation: none; } }

.installer-pin { color: inherit; text-decoration: none; }
.installer-pin:hover .manager-directory-name { text-decoration: underline; }
.installer-pin:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (forced-colors: active) {
    :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
        outline: 2px solid Highlight;
        outline-offset: 2px;
    }
    .small-dot[data-api-connection]::before {
        background: CanvasText;
        outline: 1px solid CanvasText;
    }
}
