@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;
}
:root {
    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; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #14b8a6; outline-offset: 4px; }
.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: #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; }
.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: #20464e; }
.sidebar-footer { margin-top: auto; padding-top: 40px; font-size: 11px; color: #a6bcc4; }
.small-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #6be0bd; margin-right: 7px; }
.main-column { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 64px; padding: 8px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; 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: 16px; }
.button.login-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: #1e5b4b; color: #fff; border-color: #1e5b4b; }
.button.login-link:hover { background: #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: 8px; min-width: 0; }
.topbar .manager-identity .manager-avatar { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.topbar .copy-link-icon, .topbar .theme-toggle { background: transparent; border: 0; box-shadow: none; }
.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; }
.breadcrumbs-caption { display: block; margin-bottom: 2px; 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: 4px 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.4; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.breadcrumbs a, .breadcrumb-current { min-width: 0; min-height: 32px; display: inline-flex; align-items: center; padding: 6px 4px; 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: 6px 8px; background: var(--tone-e6f0ed, #e6f0ed); color: var(--tone-183e34, #183e34); font-weight: 600; }
.site-identity { min-width: 0; display: flex; flex-direction: column; gap: 2px; 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: 24px; overflow-wrap: anywhere; }
main h1, main [id] { scroll-margin-top: 9rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.eyebrow { color: var(--tone-39786c, #39786c); font-size: 10px; font-weight: 700; letter-spacing: .16em; margin: 0 0 12px; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.04em; margin: 0 0 10px; }
.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: 9px 14px; }
.status-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--tone-dfe7ea, #dfe7ea); border-radius: 10px; background: var(--surface, #fff); padding: 16px; }
.status-main { display: flex; align-items: center; gap: 16px; }
.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 6px; 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: 8px 12px; 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: 8px 12px; border: 1px solid var(--tone-cedadc, #cedadc); box-shadow: 0 3px 12px #102c351a; }
.section-heading { margin: 24px 0 12px; }
.section-heading h2, .next-section h2 { font-size: 19px; letter-spacing: -.02em; font-weight: 600; margin: 0 0 8px; }
.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: 12px; }
.layer-card { background: var(--surface, #fff); border: 1px solid var(--tone-dfe7ea, #dfe7ea); border-radius: 9px; padding: 16px; 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: 16px 0 10px; font-weight: 600; letter-spacing: -.02em; }
.layer-card p { font-size: 13px; line-height: 1.7; color: var(--tone-647680, #647680); margin: 0 0 16px; }
.card-label { font-size: 10px; color: var(--tone-587079, #587079); border-top: 1px solid var(--tone-e9eef0, #e9eef0); padding-top: 12px; margin-top: auto; width: 100%; }
.next-section { margin-top: 20px; padding: 20px; background: var(--tone-edf2f2, #edf2f2); border-radius: 9px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.next-section .eyebrow { margin-bottom: 12px; font-size: 10px; }
.next-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.next-list li { display: flex; gap: 16px; }
.next-list li > span { font-size: 11px; color: var(--tone-62877c, #62877c); padding-top: 3px; }
.next-list strong { font-size: 13px; font-weight: 600; }
.next-list p { font-size: 12px; margin-top: 3px; }
.page-footer { margin-top: auto; padding: 16px 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--tone-6f8088, #6f8088); font-size: 10px; }
h1:focus { outline: none; }
@media (max-width: 1100px) {
    .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@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: 8px 16px; }
    .topbar-actions { flex-wrap: wrap; gap: 8px 12px; }
    main { padding: 20px 16px; }
    .layer-grid { grid-template-columns: 1fr; }
    .layer-card h3 { margin-top: 16px; }
    .next-section { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
    .status-panel { align-items: flex-start; flex-direction: column; }
    .status-main { align-items: flex-start; }
    .page-footer { padding: 16px; }
}
@media (max-width: 820px), (pointer: coarse) {
    .button, .nav-link, .brand, .breadcrumbs a, .breadcrumb-current { 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: .5rem; }
.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: #28535b; }
.workspace-locations a:hover, .workspace-locations button:hover { background: #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; }

/* Fit desktop resident lists to the viewport; keep scrolling inside the list and sidebar. */
@media (min-width: 821px) and (min-height: 480px) {
    .shell:has([data-users-page]) { height: 100dvh; min-height: 0; grid-template-rows: minmax(0, 1fr); }
    .shell:has([data-users-page]) .sidebar { min-height: 0; overflow-y: auto; }
    .shell:has([data-users-page]) .main-column { min-height: 0; }
    .shell:has([data-users-page]) .topbar,
    .shell:has([data-users-page]) .page-footer { flex-shrink: 0; }
    .shell:has([data-users-page]) #main-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
    .shell:has([data-users-page]) .users-heading { flex-shrink: 0; }
    .shell:has([data-users-page]) .users-card { flex: 1; min-height: 0; display: flex; flex-direction: column; }
    .shell:has([data-users-page]) .users-scroll { flex: 1; min-height: 0; height: 0; }
    .shell:has([data-users-page]) .users-toolbar,
    .shell:has([data-users-page]) .users-loading,
    .shell:has([data-users-page]) .users-notice,
    .shell:has([data-users-page]) .users-paging { flex-shrink: 0; }
}
