@charset "UTF-8";

@font-face {
    font-family: "Josefin Sans";
    src: url("/fonts/josefin-sans-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
}

@font-face {
    font-family: "Bebas Neue";
    src: url("/fonts/bebas-neue-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: light;
    --su-teal: #015963;
    --su-teal-dark: #003e46;
    --su-mint: #69c0ac;
    --su-pink: #f36a95;
    --su-pink-light: #fce1e9;
    --su-pink-dark: #c03a66;
    --su-purple: #6a2f87;
    --su-lilac: #caabe7;
    --su-yellow: #fdd400;
    --su-blue: #84cefb;
    --canvas: #f5f8f9;
    --surface: #fff;
    --surface-raised: #fff;
    --ink: #231f20;
    --muted: #58696d;
    --line: #dce6e8;
    --control-border: #75878b;
    --tree-line: #75878b;
    --focus-ring: #6a2f87;
    --accent: var(--su-pink-dark);
    --accent-dark: var(--su-teal);
    --accent-light: var(--su-pink-light);
    --mint-light: #e8f5f1;
    --lilac-light: #f2eaf8;
    --blue-light: #eaf6fd;
    --yellow-light: #fff9da;
    --danger: #a32950;
    --success: #015963;
    --warning: #765b00;
    --warning-border: #b29a3e;
    --primary-bg: #f36a95;
    --primary-border: #c03a66;
    --primary-hover: #c03a66;
    --on-primary: #231f20;
    --on-primary-hover: #fff;
    --active-bg: #015963;
    --on-active: #fff;
    --sidebar-bg: #015963;
    --sidebar-ink: #fff;
    --sidebar-muted: #d1ebe6;
    --sidebar-line: #ffffff45;
    --sidebar-hover: #ffffff14;
    --sidebar-focus: #fff;
    --sidebar-control-bg: #003e46;
    --sidebar-control-border: #82afad;
    --sidebar-active-bg: #69c0ac;
    --sidebar-active-ink: #003e46;
    --backdrop: #003e4666;
    --logo-surface: #fff;
    --logo-ink: #015963;
    --logo-dark: #015963;
    --selection-bg: #fdd400;
    --selection-ink: #231f20;
    --google-surface: #fff;
    --google-hover: #f8faff;
    --google-ink: #1f1f1f;
    --google-border: #747775;
    --shadow-subtle: 0 2px 8px #01596304;
    --shadow-card: 0 4px 16px #0159630a;
    --shadow-popup: 0 12px 36px #003e4626;
    --shadow-drawer: 16px 0 60px #01596340;
    --shadow-login: 0 4px 20px #01596308;
    --shadow-small: 0 3px 15px #0002;
    --radius: 10px;
    --sidebar-width: 224px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-brand: "Josefin Sans", var(--font-sans);
    --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --su-teal: #83d5c4;
    --su-teal-dark: #b2eadf;
    --su-pink: #f68db0;
    --su-pink-light: #452836;
    --su-pink-dark: #ffa4c2;
    --su-purple: #d5b2f0;
    --canvas: #101b1e;
    --surface: #19272b;
    --surface-raised: #223439;
    --ink: #eef4f3;
    --muted: #b3c5c8;
    --line: #3c5156;
    --control-border: #7d969a;
    --tree-line: #7d969a;
    --focus-ring: #f7cf6c;
    --mint-light: #203e39;
    --lilac-light: #352a43;
    --blue-light: #203944;
    --yellow-light: #40371f;
    --danger: #ffacc6;
    --success: #83d5c4;
    --warning: #f7d374;
    --warning-border: #b29a3e;
    --primary-bg: #f68db0;
    --primary-border: #f68db0;
    --primary-hover: #ffa4c2;
    --on-primary: #231f20;
    --on-primary-hover: #231f20;
    --active-bg: #83d5c4;
    --on-active: #102d2a;
    --sidebar-bg: #0c333b;
    --sidebar-control-bg: #14454e;
    --backdrop: #0009;
    --shadow-subtle: 0 2px 8px #0002;
    --shadow-card: 0 4px 16px #0003;
    --shadow-popup: 0 12px 36px #0006;
    --shadow-drawer: 16px 0 60px #0008;
    --shadow-login: 0 4px 20px #0003;
    --shadow-small: 0 3px 15px #0005;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --su-teal: #83d5c4;
        --su-teal-dark: #b2eadf;
        --su-pink: #f68db0;
        --su-pink-light: #452836;
        --su-pink-dark: #ffa4c2;
        --su-purple: #d5b2f0;
        --canvas: #101b1e;
        --surface: #19272b;
        --surface-raised: #223439;
        --ink: #eef4f3;
        --muted: #b3c5c8;
        --line: #3c5156;
        --control-border: #7d969a;
        --tree-line: #7d969a;
        --focus-ring: #f7cf6c;
        --mint-light: #203e39;
        --lilac-light: #352a43;
        --blue-light: #203944;
        --yellow-light: #40371f;
        --danger: #ffacc6;
        --success: #83d5c4;
        --warning: #f7d374;
        --warning-border: #b29a3e;
        --primary-bg: #f68db0;
        --primary-border: #f68db0;
        --primary-hover: #ffa4c2;
        --on-primary: #231f20;
        --on-primary-hover: #231f20;
        --active-bg: #83d5c4;
        --on-active: #102d2a;
        --sidebar-bg: #0c333b;
        --sidebar-control-bg: #14454e;
        --backdrop: #0009;
        --shadow-subtle: 0 2px 8px #0002;
        --shadow-card: 0 4px 16px #0003;
        --shadow-popup: 0 12px 36px #0006;
        --shadow-drawer: 16px 0 60px #0008;
        --shadow-login: 0 4px 20px #0003;
        --shadow-small: 0 3px 15px #0005;
    }
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; outline-offset: 3px; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, select, textarea { min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
::selection { background: var(--selection-bg); color: var(--selection-ink); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
p { margin-bottom: 1em; }
img, svg { vertical-align: middle; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.divider { height: 1px; margin: 24px 0; border: 0; background: var(--line); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 24px 16px 20px; background: var(--sidebar-bg); color: var(--sidebar-ink); overflow-y: auto; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 30; border: 0; background: var(--backdrop); }
.sidebar-close { display: none; }
.brand-lockup { display: flex; flex-shrink: 0; align-items: flex-start; gap: 15px; flex-direction: column; }
.sidebar > .brand-lockup, .sidebar > a:first-child { margin: 0 7px; }
.sidebar-nav { display: flex; flex: 1 0 auto; flex-direction: column; gap: 6px; margin-top: 0; padding-bottom: 16px; }
.sidebar-admin-link { margin-top: auto; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 12px 15px; border-radius: 5px; color: var(--sidebar-ink); font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.nav-link:hover { background: var(--sidebar-hover); color: var(--sidebar-ink); }
.nav-link.is-active { background: var(--sidebar-active-bg); color: var(--sidebar-active-ink); }
.nav-link.is-active::before { position: absolute; top: 11px; bottom: 11px; left: 0; width: 4px; border-radius: 0; background: var(--su-pink); content: ""; }
.nav-icon, .nav-link > .icon { width: 19px; height: 19px; opacity: .9; }
.nav-link.is-active .nav-icon, .nav-link.is-active > .icon { color: var(--sidebar-active-ink); }
.sidebar-footer { margin-top: auto; padding: 22px 11px 0; border-top: 1px solid var(--sidebar-line); }
.workspace-label { display: flex; align-items: center; gap: 8px; color: var(--sidebar-ink); font-size: 13px; font-weight: 550; }
.sidebar-footer p { margin: 8px 0 0; color: var(--sidebar-muted); font-size: 12px; line-height: 1.65; }
.main-shell { margin-left: var(--sidebar-width); }
.topbar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--ink); }
.breadcrumb .icon { width: 13px; height: 13px; color: var(--muted); }
.global-search { position: relative; width: min(360px, 42%); margin-left: auto; }
.global-search input { width: 100%; height: 41px; padding: 10px 42px 9px 37px; border: 1px solid var(--control-border); border-radius: 5px; background: var(--canvas); color: var(--ink); font-size: 13px; }
.global-search .search-icon { position: absolute; top: 12px; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-shortcut { position: absolute; top: 11px; right: 11px; min-width: 19px; padding: 0 4px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 10px; line-height: 18px; text-align: center; }
.topbar-profile { display: flex; align-items: center; gap: 11px; font-size: 13px; }
.topbar-profile > div { line-height: 1.5; }
.topbar-profile small { display: block; color: var(--muted); font-size: 10px; }
.topbar-profile form { display: flex; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; flex-shrink: 0; border: 1px solid var(--su-mint); border-radius: 7px; background: var(--mint-light); color: var(--su-teal); font-size: 13px; font-weight: 600; line-height: 1; }
.avatar-small { width: 31px; height: 31px; font-size: 12px; }
.avatar-large { width: 76px; height: 76px; font: 34px/1 var(--font-display); }
.person-avatar { overflow: hidden; }
.person-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person-avatar img[hidden], .person-avatar [data-person-avatar-fallback][hidden] { display: none; }
.mobile-nav-toggle { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink); }
.page-content { width: 100%; max-width: 1550px; margin: 0 auto; padding: 28px 32px 48px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.directory-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
.directory-heading > .page-description { grid-column: 1 / -1; margin: 0; }
.directory-heading > .button { justify-self: end; }
.eyebrow { margin: 0 0 9px; color: var(--su-teal); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.page-title { margin: 0; font: 38px/1.1 var(--font-display); letter-spacing: .2px; color: var(--su-teal); }
.page-description { max-width: 650px; margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; transition: background .15s, border-color .15s, box-shadow .15s; }
.button .icon { width: 16px; height: 16px; }
.button-primary { border-color: var(--primary-border); background: var(--primary-bg); color: var(--on-primary); box-shadow: none; }
.button-primary:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: var(--on-primary-hover); }
.button-secondary { border-color: var(--su-teal); background: var(--surface); color: var(--su-teal); box-shadow: none; }
.button-secondary:hover { border-color: var(--su-teal); background: var(--mint-light); }
.button-ghost { background: transparent; color: var(--muted); }
.button-ghost:hover { background: var(--mint-light); color: var(--su-teal); }
.button-small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.button-danger { border-color: var(--danger); background: var(--su-pink-light); color: var(--danger); }
.button-danger:hover { border-color: var(--danger); background: var(--su-pink-light); }
.button-icon { width: 35px; min-height: 35px; padding: 7px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card { position: relative; padding: 18px 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); border-top: 4px solid var(--su-mint); box-shadow: var(--shadow-subtle); }
.stat-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 5px; background: var(--mint-light); color: var(--su-teal); }
.stat-icon .icon { width: 16px; height: 16px; }
.stat-card:nth-child(2) .stat-icon { background: var(--lilac-light); color: var(--su-purple); }
.stat-card:nth-child(3) .stat-icon { background: var(--blue-light); color: var(--su-teal); }
.stat-card:nth-child(4) .stat-icon { background: var(--su-pink-light); color: var(--su-pink-dark); }
.stat-label { color: var(--ink); font-size: 13px; font-weight: 600; }
.stat-value { display: block; margin: 11px 0 3px; font: 38px/1.1 var(--font-display); letter-spacing: .2px; color: var(--su-teal); }
.stat-caption { display: flex; margin: 0; color: var(--muted); font-size: 11px; align-items: center; justify-content: space-between; gap: 7px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 25px; }
.section-stack { display: flex; min-width: 0; flex-direction: column; gap: 25px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.panel-title { margin: 0; font: 23px/1.1 var(--font-display); letter-spacing: .3px; color: var(--su-teal); }
.panel-description { margin: 5px 0 0; color: var(--muted); font: 400 13px/1.6 var(--font-sans); letter-spacing: normal; }
.panel-body { padding: 23px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; color: var(--su-teal); font-size: 13px; font-weight: 600; }
.text-link:hover { color: var(--su-pink-dark); text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { width: 14px; height: 14px; }
.composer { padding: 22px 23px 0; }
.composer-title { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--su-teal); font: 23px/1.1 var(--font-display); letter-spacing: .3px; }
.composer-textarea { display: block; width: 100%; min-height: 134px; padding: 14px 16px; border: 1px solid var(--control-border); border-radius: 5px; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.8; }
.composer-textarea:focus { border-color: var(--su-teal); background: var(--surface); outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.mention-composer { position: relative; min-width: 0; }
.mention-editor { height: auto; overflow-wrap: anywhere; white-space: pre-wrap; cursor: text; }
.mention-editor[data-empty="true"]::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.mention-editor[aria-invalid="true"] { border-color: var(--danger); }
.composer .mention-help { margin: 8px 0 0; }
.mention-help kbd { font: inherit; font-weight: 700; color: var(--su-teal); }
.composer .mention-status { margin: 8px 0 0; }
.mention-status:empty { display: none; }
.mention-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 7px 2px 3px; border: 1px solid var(--su-teal); border-radius: 6px; background: var(--mint-light); color: var(--su-teal); font-size: 13px; font-weight: 600; line-height: 20px; vertical-align: middle; white-space: normal; text-decoration: none; }
.mention-chip[data-mention-type="organisation"], .mention-chip[data-type="organisation"] { border-color: var(--su-purple); background: var(--lilac-light); color: var(--su-purple); }
.mention-chip[data-mention-type="position"], .mention-chip[data-type="position"] { background: var(--blue-light); }
.mention-editor .mention-chip { cursor: default; user-select: all; }
.mention-chip-label { min-width: 0; overflow-wrap: anywhere; }
.mention-editor .mention-chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-chip-link:hover .mention-chip-label { text-decoration: underline; text-underline-offset: 3px; }
.mention-chip-link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.entity-preview { position: fixed; z-index: 80; width: min(360px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 18px; border: 1px solid var(--control-border); border-radius: 12px; background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-popup); font: 14px/1.5 var(--font-sans); overflow-wrap: anywhere; }
.entity-preview[hidden] { display: none; }
.entity-preview-header { display: flex; align-items: flex-start; gap: 22px; }
.entity-preview-header > :last-child { min-width: 0; flex: 1; }
.entity-preview-avatar { position: relative; flex: 0 0 56px; width: 56px; height: 56px; }
.entity-preview-organisation-badge[hidden] { display: none; }
.entity-preview-image { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--mint-light); color: var(--su-teal); }
.entity-preview-image[data-fit="contain"] { background: var(--logo-surface); color: var(--logo-ink); }
.entity-preview-image[data-background="dark"] { background: var(--logo-dark); color: var(--sidebar-ink); }
.entity-preview-image img { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.entity-preview-image[data-fit="contain"] img { object-fit: contain; padding: 5px; }
.entity-preview-initials { grid-area: 1 / 1; font: 600 20px/1 var(--font-brand); }
.entity-preview-type { margin: 0 0 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.entity-preview-name { margin: 0; color: var(--su-teal); font: 600 21px/1.25 var(--font-brand); }
.entity-preview-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; white-space: pre-line; }
.entity-preview-section { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.entity-preview-section-title { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.entity-preview-facts { display: grid; gap: 8px; margin: 0; }
.entity-preview-facts > dl { display: grid; grid-template-columns: minmax(0, 85px) minmax(0, 1fr); gap: 12px; align-items: baseline; margin: 0; }
.entity-preview-fact-label { margin: 0; color: var(--muted); font-size: 12px; }
.entity-preview-fact-value { margin: 0; color: var(--ink); font-size: 13px; }
.entity-preview-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.entity-preview-contact-action { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--control-border); border-radius: 6px; background: var(--surface); color: var(--su-teal); text-decoration: none; cursor: pointer; }
.entity-preview-contact-action svg { width: 18px; height: 18px; }
.entity-preview-contact-action:hover { border-color: var(--su-teal); background: var(--mint-light); color: var(--su-teal-dark); }
.entity-preview-contact-action:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.entity-preview-contact-action:disabled { color: var(--muted); cursor: default; }
.entity-preview-section[data-section="current-holders"] .entity-preview-facts > dl { grid-template-columns: minmax(0, 1fr); gap: 1px; }
.entity-preview-section[data-section="current-holders"] .entity-preview-fact-label { color: var(--ink); font-size: 14px; font-weight: 600; }
.entity-preview-section[data-section="current-holders"] .entity-preview-fact-value { color: var(--muted); font-size: 12px; }
.mention-image-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; overflow: hidden; border-radius: 4px; background: var(--mint-light); color: var(--su-teal); }
.mention-image-wrap[data-background="light"] { background: var(--logo-surface); color: var(--logo-ink); }
.mention-image-wrap[data-background="dark"] { background: var(--logo-dark); color: var(--sidebar-ink); }
.mention-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.mention-image[data-fit="contain"] { object-fit: contain; padding: 2px; }
.mention-fallback { font-size: 10px; line-height: 1; font-weight: 700; }
.mention-options { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 7px); max-height: min(340px, 45dvh); overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--surface-raised); box-shadow: var(--shadow-popup); }
.mention-option { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 56px; margin: 0; padding: 9px 10px; border: 0; border-left: 3px solid transparent; border-radius: 4px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.mention-option:hover, .mention-option.is-active, .mention-option[aria-selected="true"] { border-left-color: var(--su-teal); background: var(--mint-light); }
.mention-option .mention-image-wrap { flex-basis: 32px; width: 32px; height: 32px; border-radius: 5px; }
.mention-option-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.mention-option-name { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.mention-option-detail { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.mention-type { flex-shrink: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.mention-message { padding: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.mention-chip-date, .mention-chip[data-type="date"] { padding-left: 6px; border-color: var(--warning); background: var(--yellow-light); color: var(--warning); }
.mention-editor .mention-chip[data-type="date"] { cursor: pointer; }
.mention-date-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.mention-chip[data-type="date"]:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.date-picker { position: absolute; z-index: 40; top: calc(100% + 8px); inset-inline-start: 0; width: min(360px, 100%); max-height: min(620px, calc(100dvh - 24px)); overflow-y: auto; overscroll-behavior: contain; padding: 12px; border: 1px solid var(--control-border); border-radius: 10px; background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-popup); }
.date-picker[data-placement="above"] { top: auto; bottom: calc(100% + 8px); }
.date-picker-heading, .date-picker-month { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.date-picker-heading { padding-left: 8px; }
.date-picker-heading h3 { margin: 0; color: var(--ink); font: 600 16px/1.4 var(--font-sans); }
.date-picker-month { margin: 3px 0 9px; }
.date-picker-month-label { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4; text-align: center; }
.date-picker-close, .date-picker-month > button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.date-picker-close > .icon, .date-picker-month > button > .icon { width: 19px; height: 19px; }
.date-picker-close:hover, .date-picker-month > button:hover { background: var(--mint-light); color: var(--su-teal); }
.date-picker-weekdays, .date-picker-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.date-picker-weekdays { margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 24px; text-align: center; }
.date-picker-grid { display: grid; gap: 2px; }
.date-picker-day { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 40px; padding: 3px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font: 400 14px/1.2 var(--font-sans); cursor: pointer; }
.date-picker-day[data-outside-month="true"] { color: var(--muted); }
.date-picker-day[aria-current="date"] { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.date-picker-day:hover { background: var(--mint-light); color: var(--su-teal); }
.date-picker-day[aria-selected="true"] { background: var(--active-bg); color: var(--on-active); font-weight: 700; }
.date-picker :is(button, input):focus-visible { position: relative; z-index: 1; outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.date-picker-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.date-picker-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.date-picker-field-label { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.5; }
.date-picker-field input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 7px; border: 1px solid var(--control-border); border-radius: 5px; background: var(--surface); color: var(--ink); font: 14px/1.4 var(--font-sans); }
.date-picker-field input[aria-invalid="true"] { border-color: var(--danger); }
.date-picker-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.date-picker-cancel, .date-picker-insert { min-height: 44px; padding: 10px 14px; border: 1px solid var(--control-border); border-radius: 6px; font: 600 13px/1.4 var(--font-sans); cursor: pointer; }
.date-picker-cancel { background: var(--surface); color: var(--ink); }
.date-picker-insert { border-color: var(--active-bg); background: var(--active-bg); color: var(--on-active); }
.date-picker-cancel:hover { background: var(--mint-light); }
.date-picker-insert:hover { text-decoration: underline; text-underline-offset: 3px; }
.date-picker button:disabled { cursor: not-allowed; }
.date-picker .date-picker-help { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.date-picker .date-picker-timezone { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.date-picker .date-picker-error { margin: 8px 0 0; color: var(--danger); font-size: 12px; line-height: 1.5; }
.organisation-activity { margin-top: 24px; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px -23px 0; padding: 15px 23px; border-top: 1px solid var(--line); background: var(--surface); }
.composer-hint { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.composer-hint .icon { width: 13px; height: 13px; }
.composer-options { margin-top: 15px; }
.composer-options > summary { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 32px; list-style: none; color: var(--su-teal); font-size: 12px; cursor: pointer; justify-content: space-between; font-weight: 600; }
.composer-options > summary::-webkit-details-marker { display: none; }
.composer-options > summary::before { display: none; color: var(--su-teal); content: "+"; font-size: 16px; line-height: 1; }
.composer-options[open] > summary::before { content: "−"; }
.composer-options > summary:hover { color: var(--accent); }
.composer-options-body { display: flex; flex-direction: column; gap: 18px; padding: 18px 0 3px; }
.access-grant-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.access-grant-section > .field-help { margin-bottom: 12px; }
.access-grant-list { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
.access-grant-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 210px); align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.access-grant-row:last-child { border-bottom: 0; }
.access-grant-row > label { margin: 0; overflow-wrap: anywhere; }
.access-grant-row .field-help { display: block; margin-top: 4px; font-weight: 400; }
.access-individuals { margin-top: 0; }
@media (max-width: 600px) { .access-grant-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.field-label, .field > label { color: var(--ink); font-size: 13px; font-weight: 600; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .option-search { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control-border); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .option-search:focus { border-color: var(--su-teal); box-shadow: none; outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field textarea { min-height: 105px; }
.field-help { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.field-error { margin: 0; color: var(--danger); font-size: 12px; }
.contact-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-fields legend { padding: 0; margin-bottom: 7px; }
.contact-rows { display: grid; gap: 14px; margin: 14px 0; }
.contact-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: end; gap: 10px; }
.contact-remove { margin-bottom: 4px; }
.contact-row-error { grid-column: 1 / -1; }
.contact-fields > .field-error { margin-bottom: 8px; }
.birthday-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.birthday-fields legend { margin-bottom: 7px; padding: 0; }
.birthday-fields-grid { display: grid; grid-template-columns: minmax(64px, .6fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 14px; }
.birthday-detail-label { display: flex; align-items: center; gap: 6px; }
.birthday-detail-label > .icon { width: 15px; height: 15px; }
@media (max-width: 600px) {
    .birthday-fields-grid { grid-template-columns: minmax(64px, .7fr) minmax(0, 1.5fr); }
    .birthday-year-field { grid-column: 1 / -1; max-width: 180px; }
}
.profile-links-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-links-fields legend { padding: 0; margin-bottom: 7px; }
.profile-link-rows { display: grid; gap: 14px; margin: 14px 0; }
.profile-link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: end; gap: 10px; }
.profile-link-remove { margin-bottom: 4px; }
.profile-links-fields .field-error { margin-bottom: 8px; }
.profile-links { margin: 0; list-style: none; display: grid; gap: 12px; }
.profile-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--su-teal); font-size: 14px; overflow-wrap: anywhere; }
.profile-links a:hover { color: var(--accent); text-decoration: underline; }
.entity-options { display: flex; max-height: 170px; flex-direction: column; gap: 2px; overflow: auto; padding: 6px; border: 1px solid var(--control-border); border-radius: 6px; min-height: 46px; }
.entity-option { display: flex; align-items: flex-start; gap: 8px; padding: 6px; border-radius: 4px; color: var(--ink); font-size: 13px; line-height: 1.5; cursor: pointer; }
.entity-option:hover { background: var(--mint-light); }
.entity-option input { margin: 2px 0 0; accent-color: var(--su-teal); }
.entity-option small { display: block; color: var(--muted); font-size: 11px; }
.option-search { min-height: 34px; margin-bottom: 5px; padding: 7px 10px; font-size: 12px; }
.selection-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; margin-left: 4px; padding: 0 4px; border-radius: 4px; background: var(--mint-light); color: var(--su-teal); font-size: 10px; font-weight: 600; }
.activity-card { padding: 21px 23px; border-bottom: 1px solid var(--line); }
.activity-card:last-child { border-bottom: 0; }
.activity-topline { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.activity-symbol { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--mint-light); color: var(--su-teal); }
.activity-symbol .icon { width: 15px; height: 15px; }
.activity-symbol.kind-meeting { border-color: var(--su-mint); background: var(--mint-light); color: var(--su-teal); }
.activity-symbol.kind-discussion { border-color: var(--su-blue); background: var(--blue-light); color: var(--su-teal); }
.activity-symbol.kind-email { border-color: var(--su-pink); background: var(--su-pink-light); color: var(--su-pink-dark); }
.activity-symbol.kind-note { border-color: var(--su-lilac); background: var(--lilac-light); color: var(--su-purple); }
.activity-meta { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; }
.activity-kind { color: var(--su-teal); font-size: 13px; font-weight: 600; }
.activity-time { color: var(--muted); font-size: 12px; }
.activity-body { margin: 0 0 13px; overflow-wrap: anywhere; color: var(--ink); font-size: 15px; line-height: 1.8; white-space: pre-line; }
.activity-entities { display: flex; flex-wrap: wrap; gap: 6px; }
.activity-linked-records > summary { display: flex; align-items: center; gap: 7px; width: fit-content; min-height: 36px; max-width: 100%; border-radius: 5px; color: var(--su-teal); font-size: 12px; font-weight: 600; list-style: none; cursor: pointer; }
.activity-linked-records > summary::-webkit-details-marker { display: none; }
.activity-linked-records > summary:hover { color: var(--accent); }
.activity-linked-records > summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.activity-linked-records > summary .icon { width: 14px; height: 14px; flex-shrink: 0; }
.activity-linked-records > summary .selection-count { margin-left: 0; }
.activity-linked-records[open] .linked-records-chevron { transform: rotate(90deg); }
.activity-linked-records .activity-entities { gap: 8px; padding: 7px 0 3px; }
.entity-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 8px 2px; border: 1px solid var(--line); border-radius: 4px; background: var(--mint-light); color: var(--su-teal); font-size: 12px; line-height: 1.6; }
.entity-chip:hover { border-color: var(--su-teal); background: var(--mint-light); }
.entity-chip .icon { width: 11px; height: 11px; }
.activity-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.activity-author { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; }
.activity-author .avatar { width: 19px; height: 19px; font-size: 7px; }
.followup-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--warning-border); border-radius: 6px; background: var(--yellow-light); color: var(--warning); font-size: 12px; }
.followup-line .icon { width: 14px; height: 14px; }
.followup-due { display: inline-flex; align-items: center; gap: 5px; color: var(--warning); font-size: 12px; }
.followup-due.is-overdue { color: var(--danger); }
.followup-due.is-complete { color: var(--success); }
.complete-button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid var(--su-teal); border-radius: 4px; background: var(--surface); color: var(--su-teal); font-size: 11px; white-space: nowrap; }
.complete-button:hover { border-color: var(--su-teal-dark); color: var(--su-teal-dark); background: var(--mint-light); }
.complete-button .icon { width: 12px; height: 12px; }
.followup-list { padding: 0 20px; }
.followup-item { display: flex; align-items: flex-start; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.followup-item:last-child { border-bottom: 0; }
.followup-date { display: flex; align-items: center; justify-content: center; width: 37px; min-height: 41px; flex: 0 0 37px; flex-direction: column; padding: 4px; border: 1px solid var(--su-mint); border-radius: 6px; background: var(--mint-light); color: var(--su-teal); font-size: 9px; font-weight: 600; line-height: 1.3; text-align: center; }
.followup-date strong { font: 23px/1.1 var(--font-display); }
.followup-date small { font-size: 8px; letter-spacing: .5px; text-transform: uppercase; }
.followup-copy { min-width: 0; flex: 1; }
.followup-copy p { margin: 0 0 5px; color: var(--ink); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.followup-copy > a { display: block; color: var(--su-teal); font-size: 12px; font-weight: 500; line-height: 1.55; }
.followup-copy > a:hover { color: var(--accent); }
.followup-copy .complete-button { margin-top: 7px; }
.people-preview { padding: 5px 21px; }
.person-preview { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--canvas); }
.person-preview:last-child { border-bottom: 0; }
.person-preview > .icon { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.person-name { display: block; color: var(--su-teal); font-size: 14px; font-weight: 600; line-height: 1.6; }
.person-subtitle { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.person-preview:hover .person-name { color: var(--accent); }
.empty-state { padding: 35px 24px; color: var(--muted); text-align: center; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--mint-light); color: var(--su-teal); }
.empty-icon .icon { width: 22px; height: 22px; }
.empty-state h3 { margin: 0 0 7px; color: var(--su-teal); font-size: 15px; font-weight: 600; }
.empty-state p { max-width: 380px; margin: 0 auto; font-size: 13px; line-height: 1.7; }
.empty-state .button { margin-top: 18px; }
.panel-empty { padding: 16px 24px; }
.panel-body:has(> .panel-empty) { padding-block: 0; }
.panel-body > .panel-empty { padding-inline: 0; }
.holder-chip-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.holder-chip-list > li { min-width: 0; max-width: 100%; }
.flash { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 13px 16px; border: 1px solid; border-radius: 8px; font-size: 13px; }
.flash-success { border-color: var(--su-mint); background: var(--mint-light); color: var(--success); }
.flash-error { border-color: var(--su-pink); background: var(--su-pink-light); color: var(--danger); }
.flash .icon { width: 17px; height: 17px; }
.validation-errors { margin-bottom: 20px; padding: 14px 17px; border: 1px solid var(--su-pink); border-radius: 7px; background: var(--su-pink-light); color: var(--danger); font-size: 13px; }
.validation-errors ul { margin: 6px 0 0; padding-left: 20px; }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.directory-search { position: relative; display: flex; align-items: center; gap: 8px; width: min(500px, 100%); }
.directory-search > .icon { position: absolute; top: 14px; left: 14px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.directory-search input { width: 100%; height: 44px; padding: 10px 14px 10px 40px; border: 1px solid var(--control-border); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 14px; }
.directory-search .button { flex-shrink: 0; }
.directory-search .button-small { min-height: 44px; }
.position-filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; padding: 16px; overflow: visible; }
.live-search-status { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.live-search-status.is-error { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--danger); }
.live-search-retry { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
[data-live-results][aria-busy="true"] { cursor: progress; }
[data-live-results] { scroll-margin-top: 20px; }
.organisation-picker { position: relative; min-width: 0; }
.organisation-picker-control { position: relative; }
.field .organisation-picker-control input { padding-right: 68px; }
.organisation-picker-chevron { position: absolute; top: 14px; right: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.organisation-picker-clear { position: absolute; top: 2px; right: 29px; display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.organisation-picker-clear:hover { background: var(--canvas); color: var(--su-teal); }
.organisation-picker-clear .icon { width: 16px; height: 16px; }
.organisation-picker-popup { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; left: 0; padding: 6px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--surface-raised); box-shadow: var(--shadow-popup); }
.organisation-picker-popup.opens-above { top: auto; bottom: calc(100% + 6px); }
.organisation-picker-hint { padding: 6px 8px 8px; color: var(--muted); font-size: 12px; }
.organisation-picker-tree, .organisation-picker-children { margin: 0; padding: 0; list-style: none; }
.organisation-picker-tree { max-height: var(--organisation-tree-height, 320px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.organisation-picker-tree li { position: relative; margin: 0; padding: 0; }
.organisation-picker-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 8px; border-radius: 5px; color: var(--ink); font-size: 14px; line-height: 24px; cursor: pointer; }
.organisation-picker-option > span { min-width: 0; overflow-wrap: anywhere; }
.organisation-picker-tree > li > .organisation-picker-option { font-weight: 600; }
.organisation-picker-option:hover, [data-active] > .organisation-picker-option { background: var(--mint-light); color: var(--su-teal-dark); }
[data-active] > .organisation-picker-option { box-shadow: inset 0 0 0 2px var(--su-teal); }
[aria-selected="true"] > .organisation-picker-option { color: var(--su-teal); }
.organisation-picker-check { width: 16px; height: 16px; flex-shrink: 0; visibility: hidden; }
[aria-selected="true"] > .organisation-picker-option > .organisation-picker-check { visibility: visible; }
.organisation-picker-children { margin-left: 14px; }
.organisation-picker-children > li { padding-left: 18px; }
.organisation-picker-children > li::before { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--tree-line); content: ''; }
.organisation-picker-children > li[data-last-visible]::before { bottom: auto; height: 20px; }
.organisation-picker-children > li::after { position: absolute; top: 20px; left: 0; width: 13px; height: 1px; background: var(--tree-line); content: ''; }
.organisation-picker-empty { margin: 0; padding: 12px 8px; color: var(--muted); font-size: 14px; }
.organisation-picker .field-error { margin: 6px 0 0; font-size: 12px; }
.person-picker { position: relative; min-width: 0; }
.field .person-picker .organisation-picker-control input { padding-right: 68px; }
.person-picker-options { max-height: var(--person-options-height, 320px); margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; list-style: none; }
.person-picker-options li { margin: 0; padding: 0; }
.person-picker-copy { display: grid; flex: 1; gap: 1px; min-width: 0; }
.person-picker-name { font-weight: 600; }
.person-picker-context { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.person-picker .field-error { margin-top: 6px; }
.select-picker { position: relative; width: 100%; min-width: 0; }
.select-picker .organisation-picker-control > input { display: block; width: 100%; min-width: 0; min-height: 44px; height: auto; padding: 10px 68px 10px 12px; border: 1px solid var(--control-border); border-radius: 7px; background: var(--surface); color: var(--ink); font: 14px/1.5 var(--font-sans); }
.select-picker .organisation-picker-control > input:focus { border-color: var(--su-teal); outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: none; }
.select-picker .organisation-picker-control > input[aria-invalid="true"] { border-color: var(--danger); }
.select-picker .organisation-picker-control > input:disabled { background: var(--canvas); color: var(--muted); cursor: not-allowed; }
.select-picker .organisation-picker-control:not(:has([data-select-clear]:not([hidden]))) > input { padding-right: 36px; }
.organisation-picker-popup[popover] { position: fixed; inset: auto; z-index: 100; width: auto; max-width: none; max-height: none; margin: 0; color: var(--ink); }
.select-picker-options { margin: 0; padding: 0; max-height: 320px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; list-style: none; }
.select-picker-options > li { margin: 0; padding: 0; }
.select-picker-options .organisation-picker-option { min-height: 44px; }
.select-picker-options [aria-disabled="true"] > .organisation-picker-option { color: var(--muted); cursor: not-allowed; }
.select-picker-error { margin: 6px 0 0; color: var(--danger); font-size: 12px; line-height: 1.5; }
.directory-search > .select-picker { flex: 0 1 210px; }
@media (max-width: 600px) {
    .select-picker .organisation-picker-control > input { font-size: 16px; }
    .search-page-input { flex-wrap: wrap; }
    .search-page-input > .select-picker { flex-basis: 100%; }
}
.filter-search-row { display: flex; align-items: center; gap: 12px; }
.filter-search-row > .button { flex-shrink: 0; }
.directory-filter-options > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--su-teal); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.directory-filter-options > summary::-webkit-details-marker { display: none; }
.directory-filter-options > summary > span { display: flex; align-items: center; gap: 8px; }
.directory-filter-options > summary .icon { width: 17px; height: 17px; }
.directory-filter-options[open] > summary > .icon { transform: rotate(180deg); }
.directory-filter-options > .position-filter-fields { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.position-filters .directory-search { width: 100%; }
.position-filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field > .position-suborganisations { font-size: 12px; font-weight: 400; }
.position-filter-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.position-filter-footer .heading-actions { flex-wrap: wrap; justify-content: flex-start; }
.result-count { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); gap: 16px; }
.admin-tool-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.directory-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.directory-card:hover { border-color: var(--su-mint); box-shadow: var(--shadow-card); }
.directory-card-top { display: flex; align-items: flex-start; gap: 22px; padding: 20px 20px 0; margin-bottom: 8px; }
.directory-card-copy { flex: 1; min-width: 0; padding-top: 2px; }
.directory-card-top > div { min-width: 0; }
.directory-card-title { display: block; margin: 0 0 5px; color: var(--su-teal); font: 650 19px/1.35 var(--font-brand); overflow-wrap: anywhere; }
.directory-card-title:hover { color: var(--accent); }
.directory-card-subtitle { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.directory-card-bio { flex: 1; margin: 16px 21px 19px; color: var(--muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.directory-card-footer { display: flex; align-items: center; justify-content: flex-start; flex-wrap: nowrap; gap: 9px; margin-top: auto; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.person-card-profile { display: block; flex: 1; padding-bottom: 20px; }
.person-card-profile .directory-card-top { margin-bottom: 0; }
.person-card-profile:hover .directory-card-title { color: var(--accent); }
.person-card-profile:focus-visible { outline-offset: -4px; border-radius: var(--radius); }
.person-card:has(:focus-visible) { border-color: var(--su-mint); }
.person-card-contacts { padding: 16px 20px; border-top: 1px solid var(--line); }
.person-card-contacts ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.person-card-contacts li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.person-card-contacts li > .icon { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; }
.person-card-contacts li > div { min-width: 0; overflow-wrap: anywhere; }
.person-card-contact-label { display: block; margin-bottom: 2px; font-size: 12px; }
.person-card-contacts li a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.person-card-contacts li a:hover { color: var(--accent); text-decoration-color: currentColor; }
.person-card-more { margin-top: 14px; font-size: 12px; }
.position-card-holders { flex-direction: column; gap: 5px; margin: 16px 20px 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.position-card-holder-label { color: var(--muted); font-size: 12px; }
.position-card-holders > .muted { font-size: 14px; }
.position-card-profile { display: block; flex: 1; }
.position-card-profile:hover .directory-card-title { color: var(--accent); }
.position-card-profile:focus-visible { outline-offset: -4px; border-radius: var(--radius); }
.position-card-holders .panel-empty { width: 100%; padding: 8px 0; }
.position-card .avatar { background: var(--lilac-light); color: var(--su-purple); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--su-lilac); border-radius: 20px; background: var(--lilac-light); color: var(--su-purple); font-size: 11px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.badge .icon { width: 11px; height: 11px; }
.filter-tabs { display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--canvas); }
.filter-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.filter-tab:hover { color: var(--su-teal); }
.filter-tab.is-active { border-color: var(--su-teal); background: var(--active-bg); color: var(--on-active); box-shadow: none; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 25px; }
.profile-header { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.profile-heading { display: flex; flex: 1 1 320px; min-width: 0; align-items: center; justify-content: flex-start; flex-wrap: nowrap; gap: 20px; }
.profile-header > .heading-actions { max-width: 100%; flex-wrap: wrap; justify-content: flex-start; }
.profile-header > .heading-actions > .button { max-width: 100%; }
.profile-heading h1 { margin: 0 0 5px; font: 600 30px/1.2 var(--font-brand); letter-spacing: -.4px; color: var(--su-teal); }
.profile-heading .page-description a { color: var(--su-teal); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.profile-heading .page-description a:hover { text-decoration-color: currentColor; }
.profile-shortcuts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.profile-shortcuts .text-link { min-height: 32px; }
.position-profile-heading { flex-basis: 520px; }
.position-profile-copy { min-width: 0; overflow-wrap: anywhere; }
.position-profile-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.position-holder-subtitle { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--su-teal); font-size: 24px; font-weight: 500; line-height: 1.4; }
.position-holder-subtitle > li { min-width: 0; }
.position-holder-empty { color: var(--muted); font-size: 18px; }
.profile-info { min-width: 0; flex: 1; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.profile-meta .icon { width: 14px; height: 14px; margin-right: 4px; }
.profile-contact { display: inline-flex; align-items: center; gap: 6px; color: var(--su-teal); font-size: 13px; overflow-wrap: anywhere; }
.profile-contact:hover { color: var(--accent); }
.profile-contact .icon { width: 14px; height: 14px; }
.definition-list { margin: 0; }
.definition-row { padding: 14px 0; border-bottom: 1px solid var(--canvas); }
.definition-row:first-child { padding-top: 0; }
.definition-row:last-child { padding-bottom: 0; border-bottom: 0; }
.definition-row dt { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.definition-row dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 14px; line-height: 1.75; white-space: pre-line; }
.definition-row dd a:hover { color: var(--accent); }
.definition-row .contact-details { white-space: normal; }
.contact-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.contact-label { color: var(--muted); font-size: 12px; line-height: 1.5; }
.history-list { display: flex; flex-direction: column; gap: 0; padding: 0 23px; }
.history-item { padding: 17px 0; border-bottom: 1px solid var(--line); }
.history-item:first-child { padding-top: 20px; }
.history-item:last-child { padding-bottom: 20px; border-bottom: 0; }
.history-title { display: flex; margin: 0 0 4px; color: var(--su-teal); font-size: 14px; font-weight: 600; align-items: flex-start; justify-content: space-between; gap: 10px; }
a.history-title:hover { color: var(--accent); }
.history-dates { display: block; color: var(--muted); font-size: 12px; margin-bottom: 9px; }
.history-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.form-panel { max-width: 800px; }
.form-panel .panel-body { display: flex; flex-direction: column; gap: 22px; padding: 27px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 19px 27px; border-top: 1px solid var(--line); background: var(--canvas); }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; min-height: 24px; color: var(--ink); font-size: 13px; }
.checkbox-field input { width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--su-teal); }
.inline-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.inline-form .field { flex: 1; }
.inline-form .field input { min-height: 33px; padding: 6px 9px; font-size: 12px; }
.inline-form-actions { display: flex; align-items: center; gap: 7px; }
.appointment-form { display: flex; flex-direction: column; gap: 15px; margin-top: 17px; padding-top: 0; border-top: 0; }
.appointment-form .field-grid { gap: 12px; }
.appointment-form > .button { align-self: flex-start; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 27px; color: var(--muted); font-size: 12px; }
.pagination-list { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.pagination-link { display: inline-flex; align-items: center; justify-content: center; min-width: 33px; height: 33px; padding: 5px 10px; border: 1px solid var(--control-border); border-radius: 5px; background: var(--surface); color: var(--su-teal); font-size: 12px; }
.pagination-link:hover { border-color: var(--su-teal); color: var(--su-teal); }
.pagination-link.is-current { border-color: var(--su-teal); background: var(--active-bg); color: var(--on-active); }
.pagination-link.is-disabled { background: transparent; color: var(--muted); cursor: default; }
.pagination-link .icon { width: 14px; height: 14px; }
.search-sections { display: flex; flex-direction: column; gap: 25px; }
.search-result { display: flex; align-items: flex-start; gap: 13px; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.search-result:last-child { border-bottom: 0; }
.search-result > div { min-width: 0; flex: 1; }
.search-result > .icon:last-child { width: 15px; height: 15px; margin-top: 10px; color: var(--muted); }
.search-result > .position-avatar { margin-right: 4px; }
.search-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 5px; color: var(--su-teal); font-size: 16px; font-weight: 600; }
.search-result-heading a:hover, a.search-result:hover .search-result-heading { color: var(--accent); }
.search-result-excerpt { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; line-height: 1.75; display: block; }
.search-result .activity-entities { margin-top: 10px; }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding: 32px 20px; background: var(--canvas); }
.login-shell { width: 100%; max-width: 460px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-login); }
.login-brand { padding: 24px 28px; background: var(--sidebar-bg); color: var(--sidebar-ink); }
.login-brand .brand-lockup { flex-direction: row; align-items: center; gap: 20px; }
.login-brand .brand-logo { width: 64px; flex-shrink: 0; }
.login-brand .brand-product { padding: 8px 0 8px 20px; border-top: 0; border-left: 1px solid var(--sidebar-line); font-size: 15px; letter-spacing: 0; text-transform: none; }
.login-panel { padding: 28px; }
.login-panel h1 { margin: 0 0 24px; color: var(--su-teal); font-size: 26px; font-weight: 600; }
.login-form-content > .page-description { margin: -12px 0 24px; }
.login-panel form { display: flex; flex-direction: column; gap: 18px; }
.login-panel form > .button-primary { margin-top: 4px; }
.login-panel .field input { min-height: 45px; }
.login-submit { justify-content: space-between; }
.login-access-note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; padding: 10px 17px; border-radius: 6px; background: var(--surface); color: var(--su-teal); box-shadow: var(--shadow-small); }
.skip-link:focus { top: 12px; }
.sidebar > .workspace-label { margin: 24px 14px 12px; color: var(--sidebar-muted); font-size: 10px; font-weight: 600; letter-spacing: 1.4px; }
.sidebar-signout { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 12px 0 0; padding: 4px 0; border: 0; background: transparent; color: var(--sidebar-ink); font-size: 12px; }
.sidebar-signout:hover { color: var(--sidebar-ink); }
.sidebar-signout .icon { width: 14px; height: 14px; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }
.stat-card:hover { border-color: var(--su-teal); }
.stat-card-accent { border-color: var(--line); background: var(--surface); border-top-color: var(--su-pink); }
.stat-caption .icon { width: 13px; height: 13px; }
.composer-context { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.composer-context .icon { width: 13px; height: 13px; }
.composer-options > summary .icon { width: 13px; height: 13px; }
.composer-options > summary > span { display: inline-flex; align-items: center; gap: 5px; }
.composer-options[open] > summary > .icon { transform: rotate(180deg); }
.entity-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.entity-picker legend { padding: 0; margin-bottom: 9px; }
.panel-bottom { padding: 14px 21px; border-top: 1px solid var(--line); background: var(--canvas); }
.compact-empty { padding: 28px 8px; }
.compact-empty p { font-size: 11px; }
.followup-copy > strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.7; }
.followup-copy > span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.followup-copy > small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.followup-copy > small.text-danger { color: var(--danger); }
.followup-date > span { font-size: 8px; letter-spacing: .5px; text-transform: uppercase; }
.followup-date.is-overdue { border-color: var(--su-pink); background: var(--su-pink-light); color: var(--danger); }
.directory-empty { grid-column: 1 / -1; }
.directory-card-top > .icon { width: 16px; height: 16px; color: var(--muted); }
.directory-card-top > .avatar-large { width: 56px; height: 56px; font: 25px/1 var(--font-display); }
.directory-card > .directory-card-title { margin-right: 21px; margin-left: 21px; }
.directory-card > .directory-card-subtitle { margin-right: 21px; margin-left: 21px; }
.directory-card-footer > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-card-footer .icon { width: 13px; height: 13px; }
.position-symbol { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; flex-shrink: 0; border: 1px solid var(--su-lilac); border-radius: 7px; background: var(--lilac-light); color: var(--su-purple); }
.position-symbol .icon { width: 22px; height: 22px; }
.position-symbol-large { width: 76px; height: 76px; border-radius: 8px; }
.position-symbol-large .icon { width: 34px; height: 34px; }
.position-avatar { position: relative; display: inline-flex; width: 56px; height: 56px; flex-shrink: 0; }
.position-avatar-large { width: 76px; height: 76px; }
.position-avatar > [data-position-avatar-option] { width: 100%; height: 100%; }
.person-profile-avatar { position: relative; display: inline-flex; width: 76px; height: 76px; flex-shrink: 0; }
.person-profile-avatar > .person-avatar { width: 100%; height: 100%; }
.directory-card-top > .person-profile-avatar { width: 56px; height: 56px; }
.directory-card-top .person-profile-avatar > .person-avatar { font: 25px/1 var(--font-display); }
.organisation-logo { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex-shrink: 0; overflow: hidden; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--logo-surface); color: var(--logo-ink); }
.organisation-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.organisation-logo img[hidden], .organisation-logo-initials[hidden] { display: none; }
.organisation-logo-initials { font-size: 17px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.organisation-logo-dark { border-color: var(--logo-dark); background: var(--logo-dark); }
.organisation-logo-small { width: 36px; height: 36px; padding: 4px; border-radius: 5px; }
.organisation-logo-small .organisation-logo-initials { font-size: 12px; }
.organisation-logo-large { width: 80px; height: 80px; padding: 8px; border-radius: 8px; }
.organisation-logo-large .organisation-logo-initials { font-size: 25px; }
.position-avatar-badge, .person-organisation-badge { position: absolute; right: 0; bottom: 0; z-index: 1; width: 24px; height: 24px; padding: 2px; border: 2px solid var(--logo-surface); border-radius: 6px; box-shadow: 0 0 0 1px var(--line); transform: translate(50%, 50%); }
.position-avatar-large .position-avatar-badge, .person-profile-avatar .person-organisation-badge { width: 28px; height: 28px; }
.directory-card-top .person-organisation-badge { width: 24px; height: 24px; }
.organisation-table-link { gap: 10px; }
.organisation-table-link > .icon { flex-shrink: 0; }
.organisation-logo-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.organisation-about { margin-bottom: 25px; }
.organisation-filters { width: fit-content; flex-wrap: wrap; margin-bottom: 23px; }
.organisation-counts { flex-wrap: wrap; gap: 7px 16px; }
.organisation-counts > span { display: inline-flex; align-items: center; gap: 7px; }
.organisation-counts > span:last-child { overflow: visible; white-space: normal; }
.organisation-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-bottom: 20px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.organisation-breadcrumbs > .icon { width: 13px; height: 13px; flex-shrink: 0; }
.organisation-children { margin-bottom: 25px; }
.organisation-children > .panel-header { flex-wrap: wrap; }
.vacancy-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--su-pink-dark); }
.back-link { margin-bottom: 20px; }
.required-mark { color: var(--danger); }
.badge-green { border-color: var(--su-mint); background: var(--mint-light); color: var(--su-teal); }
.profile-heading > div { min-width: 0; overflow-wrap: anywhere; }
.profile-heading .page-description { margin-top: 7px; }
.profile-heading .eyebrow { margin-bottom: 6px; }
.profile-header > .button { flex-shrink: 0; }
.profile-about { margin-top: 19px; padding-top: 19px; border-top: 1px solid var(--line); }
.profile-about h3 { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--su-teal); }
.profile-about p, .profile-description { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.source-link { color: var(--su-teal); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.source-link:hover { color: var(--su-pink-dark); }
.history-title .icon { width: 13px; height: 13px; margin-top: 2px; color: var(--muted); }
.history-item .person-subtitle { margin-bottom: 9px; }
.appointment-edit[open] { width: 100%; }
.appointment-edit summary, .appointment-add summary { cursor: pointer; list-style: none; }
.appointment-edit summary::-webkit-details-marker, .appointment-add summary::-webkit-details-marker { display: none; }
.appointment-edit .inline-form { flex-direction: column; align-items: stretch; margin-top: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); }
.appointment-edit .inline-form > .button { align-self: flex-start; }
.appointment-add { padding: 17px 23px; border-top: 1px solid var(--line); }
.appointment-date-field { min-width: 0; }
.appointment-date-field > input { min-width: 0; }
.appointment-date-field .appointment-date-precision { display: inline-flex; align-items: center; align-self: flex-start; min-height: 32px; gap: 8px; margin-top: -2px; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
.appointment-date-precision input { width: 16px; height: 16px; margin: 0; accent-color: var(--su-teal); }
.appointment-date-field > .field-help { font-size: 12px; }
.person-role-notes { margin: 12px 0 0; color: var(--ink); font-size: 13px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.person-role-editor { margin-top: 12px; }
.person-role-editor > .appointment-form { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); }
.person-role-editor .field, .person-role-editor .field > input, .person-role-editor .field > textarea { min-width: 0; }
.person-role-remove { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.person-role-remove > summary { color: var(--danger); }
.person-role-remove p { margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.person-role-undo { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 23px; border-bottom: 1px solid var(--line); }
.person-role-undo > p { flex: 1; margin: 0; color: var(--muted); font-size: 13px; }
.form-panel .form-actions { margin: 0 -27px -27px; }
.panel-search { padding: 16px 23px; border-bottom: 1px solid var(--line); }
.panel-search .directory-search { width: 100%; }
.search-page-input { width: min(650px, 100%); }
.search-result-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.activity-kind, .field-label, .field > label { font-size: 13px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { font-size: 14px; }
.activity-author, .activity-time { color: var(--muted); font-size: 12px; }
.brand-logo { display: block; width: 88px; max-width: 100%; height: auto; }
.brand-product { display: block; padding-top: 12px; border-top: 1px solid var(--sidebar-line); color: var(--sidebar-ink); font-size: 10px; font-weight: 600; letter-spacing: 1.1px; line-height: 1.6; text-transform: uppercase; }
.stat-card:nth-child(2) { border-top-color: var(--su-lilac); }
.stat-card:nth-child(3) { border-top-color: var(--su-blue); }
.google-signin { width: 100%; min-height: 44px; justify-content: center; gap: 12px; border-color: var(--google-border); border-radius: 5px; background: var(--google-surface); color: var(--google-ink); font-family: Arial, sans-serif; font-size: 14px; font-weight: 500; }
.google-signin:hover { background: var(--google-hover); border-color: var(--google-border); box-shadow: var(--shadow-small); }
.google-signin:disabled { opacity: 1; color: var(--muted); border-color: var(--line); background: var(--canvas); box-shadow: none; }
.google-mark { width: 20px; height: 20px; flex: 0 0 auto; }
.google-signin:disabled .google-mark { opacity: .6; }
.auth-provider-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 25px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { height: 1px; background: var(--line); content: ""; flex: 1; }
.auth-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.auth-back-link { margin-top: 24px; }
.topbar-profile:hover { color: var(--su-teal); }
.topbar-profile:hover .avatar { border-color: var(--su-teal); background: var(--mint-light); }
.user-filter-form { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.user-filter-form .directory-search { width: auto; flex: 1; }
.user-filter-form .directory-search input { min-height: 41px; }
.user-status-filter { width: 164px; }
.user-filter-form .result-count { margin-left: auto; white-space: nowrap; }
.user-row { display: grid; grid-template-columns: 39px minmax(160px, 1fr) 145px 155px auto; align-items: center; gap: 17px; padding: 23px; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-row-person { min-width: 0; overflow-wrap: anywhere; }
.user-you { color: var(--muted); font-weight: 400; font-size: 12px; }
.user-row-status { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; }
.user-row-signin { display: flex; flex-direction: column; gap: 4px; }
.badge-neutral { border-color: var(--line); background: var(--canvas); color: var(--muted); }
.badge-inactive { border-color: var(--su-pink); background: var(--su-pink-light); color: var(--danger); }
.user-management-grid { display: grid; grid-template-columns: minmax(0, 800px) minmax(240px, 300px); align-items: start; gap: 25px; }
.user-management-grid .form-panel { width: 100%; }
.user-password-fields { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 19px 0 0; border: 0; border-top: 1px solid var(--line); }
.user-password-fields legend { margin: 0; padding: 0 8px 0 0; }
.account-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px; border-radius: 5px; background: var(--mint-light); color: var(--su-teal); font-size: 13px; line-height: 1.7; }
.account-notice > .icon { width: 17px; height: 17px; margin-top: 2px; }
.field input:disabled, .field select:disabled { background: var(--canvas); color: var(--muted); opacity: 1; cursor: not-allowed; }
.password-help-panel { display: flex; flex-direction: column; gap: 17px; }
.password-help-panel p { margin: 0; overflow-wrap: anywhere; }
.password-help-panel .button { max-width: 100%; }
.account-details-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.theme-settings { margin-bottom: 25px; }
.theme-control { min-width: 0; }
.theme-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; min-width: 0; margin: 0; padding: 3px; border: 1px solid var(--control-border); border-radius: 9px; background: var(--canvas); }
.theme-segment { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 48px; padding: 5px 2px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 16px; cursor: pointer; }
.theme-segment > .icon { width: 18px; height: 18px; }
.theme-segment:hover { background: var(--surface-raised); color: var(--ink); }
.theme-segment:has(input:checked) { background: var(--active-bg); color: var(--on-active); }
.theme-segment:has(input:focus-visible) { z-index: 1; outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.sidebar .theme-control { margin: 0 0 18px; }
.sidebar .theme-switch { border-color: var(--sidebar-control-border); background: var(--sidebar-control-bg); }
.sidebar .theme-segment { color: var(--sidebar-muted); }
.sidebar .theme-segment:hover { background: var(--sidebar-hover); color: var(--sidebar-ink); }
.sidebar .theme-segment:has(input:checked) { background: var(--sidebar-active-bg); color: var(--sidebar-active-ink); }
.sidebar .theme-segment:has(input:focus-visible) { outline-color: var(--sidebar-focus); }
.sidebar :focus-visible { outline-color: var(--sidebar-focus); }
.login-form-content > .theme-control { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; border: 0; }
.theme-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-content: start; align-items: center; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--surface); cursor: pointer; }
.theme-option > input { width: 18px; height: 18px; margin: 0; accent-color: var(--su-teal); }
.theme-option > .icon { width: 22px; height: 22px; justify-self: end; color: var(--muted); }
.theme-option-copy { grid-column: 1 / -1; display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.theme-option-copy > strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.theme-option-copy > span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.theme-option:hover { border-color: var(--su-teal); }
.theme-option:has(input:checked) { border-color: var(--su-teal); background: var(--mint-light); box-shadow: inset 0 0 0 1px var(--su-teal); }
.theme-option:has(input:checked) > .icon { color: var(--su-teal); }
.theme-option:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.theme-option > input:focus-visible { outline: none; }

@media (min-width: 1600px) {
    .dashboard-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1250px) {
    :root { --sidebar-width: 224px; }
    .sidebar { padding-right: 16px; padding-left: 16px; }
    .topbar { padding-right: 29px; padding-left: 29px; }
    .page-content { padding-right: 29px; padding-left: 29px; }
    .dashboard-grid, .profile-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
    .stat-grid { gap: 13px; }
    .stat-card { padding: 18px 16px 16px; }
    .topbar-profile > div:not(.avatar) { display: none; }
    .page-title { font-size: 38px; }
    .user-row { grid-template-columns: 39px minmax(0, 1fr) auto; gap: 10px 15px; }
    .user-row > .avatar { grid-column: 1; grid-row: 1 / 3; align-self: start; }
    .user-row-person { grid-column: 2; grid-row: 1; }
    .user-row-status { grid-column: 2; grid-row: 2; }
    .user-row-signin { grid-column: 2 / 4; grid-row: 3; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
    .user-row > .button { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 1080px) {
    .dashboard-grid, .profile-grid { grid-template-columns: minmax(0, 1fr); }
    .dashboard-grid > aside, .profile-grid > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .topbar { gap: 17px; }
    .global-search { width: min(310px, 55%); }
    .page-heading { align-items: flex-start; }
    .heading-actions { flex-wrap: wrap; }
    .composer-textarea { min-height: 140px; }
    .stat-label { font-size: 12px; }
    .stat-icon { width: 26px; height: 26px; border-radius: 6px; }
    .stat-icon .icon { width: 14px; height: 14px; }
    .stat-value { font-size: 34px; }
    .stat-caption { font-size: 11px; }
    .user-management-grid { grid-template-columns: minmax(0, 1fr); }
    .user-filter-form { flex-wrap: wrap; }
    .user-filter-form .directory-search { min-width: 240px; }
}
@media (max-width: 820px) {
    .sidebar { width: 242px; transform: translateX(-100%); transition: transform .2s; box-shadow: none; }
    .nav-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-drawer); }
    .nav-open { overflow: hidden; }
    .sidebar-close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--sidebar-control-border); border-radius: 7px; background: transparent; color: var(--sidebar-ink); }
    .main-shell { margin-left: 0; }
    .topbar { height: 68px; padding: 0 24px; }
    .mobile-nav-toggle { display: inline-flex; width: 44px; min-height: 44px; }
    .global-search { width: min(340px, 54%); }
    .topbar-profile { gap: 5px; }
    .topbar-profile > span:not(.avatar) { display: none; }
    .topbar-profile .button { padding: 5px 8px; }
    .page-content { padding: 24px 24px 40px; }
    .page-heading { margin-bottom: 25px; }
}
@media (max-width: 600px) {
    .date-picker-field input { font-size: 16px; }
    .topbar { gap: 10px; height: 62px; padding: 0 16px; }
    .breadcrumb { display: none; }
    .global-search { width: auto; flex: 1; }
    .global-search input { height: 44px; padding-right: 12px; font-size: 16px; }
    .global-search .search-icon { top: 14px; }
    .search-shortcut { display: none; }
    .topbar-profile .avatar { width: 31px; height: 31px; font-size: 10px; }
    .topbar-profile .button { min-height: 31px; padding: 6px; font-size: 10px; }
    .page-content { padding: 22px 16px 36px; }
    .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 14px; }
    .page-heading > div:first-child { min-width: 0; flex: 1 1 160px; }
    .page-title { font-size: 34px; }
    .page-description { font-size: 14px; }
    .heading-actions { justify-content: flex-start; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
    .stat-card { padding: 16px; border-radius: 7px; }
    .stat-label { font-size: 12px; }
    .stat-caption { font-size: 11px; }
    .stat-value { margin-top: 8px; }
    .dashboard-grid, .profile-grid { gap: 20px; }
    .dashboard-grid > aside, .profile-grid > aside { display: flex; flex-direction: column; }
    .dashboard-grid > aside > *, .profile-grid > aside > * { width: 100%; }
    .section-stack { gap: 20px; }
    .panel-header, .panel-body { padding: 18px; }
    .panel-title { font-size: 23px; }
    .composer { padding: 19px 18px 0; }
    .composer-footer { align-items: flex-end; margin-right: -18px; margin-left: -18px; padding: 15px 18px; }
    .composer-hint { max-width: 160px; font-size: 11px; }
    .composer-hint .icon { display: none; }
    .composer-footer .button { flex-shrink: 0; }
    .activity-card { padding: 20px 18px; }
    .activity-time { font-size: 11px; }
    .activity-body { font-size: 15px; }
    .followup-line { flex-wrap: wrap; gap: 8px; }
    .field-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
    .profile-link-row { grid-template-columns: minmax(0, 1fr); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
    .profile-link-remove { justify-self: start; margin-bottom: 0; }
    .contact-row { grid-template-columns: minmax(0, 1fr); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
    .contact-remove { justify-self: start; margin-bottom: 0; }
    .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .composer-textarea { font-size: 16px; }
    .composer-textarea { min-height: 145px; line-height: 1.7; }
    .directory-toolbar { align-items: stretch; flex-direction: column; gap: 14px; }
    .directory-search { width: 100%; }
    .directory-search input { font-size: 16px; }
    .position-filters { padding: 16px; }
    .filter-search-row { flex-wrap: wrap; }
    .filter-search-row > .button { width: 100%; }
    .position-filters .field input, .position-filters .field select { font-size: 16px; }
    .directory-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pagination-list { flex-wrap: wrap; justify-content: center; }
    .directory-card-top { padding: 20px 20px 0; gap: 18px; }
    .directory-card-top > .icon { display: none; }
    .directory-card-bio { margin-right: 20px; margin-left: 20px; }
    .filter-tabs { align-self: flex-start; }
    .profile-header { align-items: flex-start; flex-wrap: wrap; gap: 15px; margin-bottom: 23px; padding: 20px; }
    .profile-header .avatar-large { width: 58px; height: 58px; font-size: 23px; }
    .profile-header .position-symbol-large { width: 58px; height: 58px; }
    .profile-header .position-avatar-large, .profile-header .person-profile-avatar { width: 58px; height: 58px; }
    .profile-header .position-avatar-badge, .profile-header .person-organisation-badge { width: 24px; height: 24px; }
    .profile-heading { width: 100%; flex-basis: auto; flex-direction: column; align-items: flex-start; }
    .profile-heading h1 { font-size: 27px; }
    .profile-header > .heading-actions { width: 100%; }
    .profile-header > .heading-actions > .button { flex: 1 1 150px; }
    .position-holder-subtitle { font-size: 22px; }
    .position-holder-empty { font-size: 17px; }
    .profile-meta { gap: 7px 10px; }
    .form-panel .panel-body { padding: 21px 19px; }
    .form-actions { flex-wrap: wrap; padding: 17px 19px; }
    .form-panel .form-actions { margin: 0 -19px -21px; }
    .history-list { padding: 0 18px; }
    .appointment-add { padding: 17px 18px; }
    .panel-search { padding: 15px 18px; }
    .pagination { flex-wrap: wrap; justify-content: center; gap: 13px; }
    .search-result { padding: 18px; }
    .search-result-heading { flex-wrap: wrap; gap: 5px; }
    .login-page { padding: 24px 16px; }
    .login-brand { padding: 20px 24px; }
    .login-brand .brand-lockup { gap: 16px; }
    .login-brand .brand-logo { width: 56px; }
    .login-brand .brand-product { padding-left: 16px; font-size: 14px; }
    .login-panel { padding: 24px; }
    .login-panel .field input { font-size: 16px; }
    .user-filter-form { gap: 10px; }
    .user-filter-form .directory-search { width: 100%; min-width: 0; flex-basis: 100%; }
    .user-status-filter { width: auto; flex: 1; }
    .user-filter-form .result-count { width: 100%; }
    .user-row { grid-template-columns: 31px minmax(0, 1fr); padding: 18px; }
    .user-row > .avatar { width: 31px; height: 31px; }
    .user-row > .button { grid-column: 2; grid-row: 4; justify-self: start; margin-top: 5px; }
    .user-row-signin { grid-column: 2; flex-direction: column; }
    .user-management-grid { gap: 20px; }
    .theme-options { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .theme-option { grid-template-columns: 18px minmax(0, 1fr) 22px; align-items: center; padding: 14px; }
    .theme-option > input { grid-column: 1; grid-row: 1; }
    .theme-option > .icon { grid-column: 3; grid-row: 1; }
    .theme-option-copy { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

@media (max-width: 400px) {
    .directory-heading { grid-template-columns: minmax(0, 1fr); }
    .directory-heading > .button { grid-row: 3; justify-self: start; }
    .directory-heading > .page-description { grid-row: 2; }
}

.activity-detail-width { width: min(100%, 980px); }
.activity-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; }
.activity-kind .badge { margin-left: 6px; font-size: 10px; }
.activity-kind .badge .icon { width: 12px; height: 12px; }
.activity-time:hover { color: var(--su-teal); text-decoration: underline; text-underline-offset: 3px; }
.entity-link-origin { margin-left: 4px; color: var(--muted); font-size: 10px; }
.activity-next-step { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.activity-next-step p { margin: 0 0 4px; font-size: 13px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.activity-next-step strong { display: block; color: var(--su-teal); }
.interpret-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; margin-top: 12px; }
.interpret-toolbar .field-help { flex: 1; min-width: 160px; }
.interpret-status:not(:empty) { margin: 10px 0; }
.interpret-review { margin: 12px 0; padding: 15px; border: 1px solid var(--su-mint); border-radius: 5px; background: var(--mint-light); }
.interpret-review h3 { margin: 0 0 8px; color: var(--su-teal); font-size: 14px; }
.interpret-review ul { margin: 0 0 12px; padding-left: 20px; font-size: 13px; line-height: 1.8; }
.composer-access .user-password-fields { padding-top: 0; border-top: 0; }
.activity-search-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.activity-search-form .directory-search { flex: 1; min-width: 210px; }
.search-mode-field { min-width: 160px; }
.search-mode-field select { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.search-mode-field label { font-size: 11px; }
.search-interpretation { margin-top: 13px; padding: 12px 14px; border-radius: 5px; background: var(--mint-light); font-size: 12px; }
.search-interpretation ul { margin: 5px 0 8px; padding-left: 18px; }
.activity-filter-tabs { flex-wrap: wrap; gap: 2px; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.data-table th, .data-table td { min-width: 140px; max-width: 360px; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.data-table th { color: var(--su-teal); background: var(--canvas); font-weight: 600; }
.data-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
    .activity-search-form .directory-search { min-width: 0; flex-basis: 100%; }
    .activity-search-form .search-mode-field { width: 100%; }
    .activity-filter-tabs .filter-tab { padding: 7px 8px; font-size: 11px; }
    .composer-footer > .heading-actions { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

@media (forced-colors: active) {
    :root:not([data-theme]), :root[data-theme] { --focus-ring: Highlight; --sidebar-focus: Highlight; }
    .button, .theme-option, .filter-tab, .organisation-picker-option, .nav-link { border-color: ButtonText; }
    .theme-switch { border-color: ButtonText; }
    .mention-chip, .mention-options, .date-picker, .date-picker-field input, .entity-preview { border-color: ButtonText; }
    .mention-option.is-active, .mention-option[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
    .date-picker-day[aria-selected="true"] { border-color: Highlight; outline: 2px solid Highlight; outline-offset: -3px; }
    .mention-image-wrap { forced-color-adjust: none; }
    .theme-segment:has(input:checked) { border-color: Highlight; }
    .theme-option:has(input:checked), .filter-tab.is-active, .nav-link.is-active, .pagination-link.is-current { outline: 2px solid Highlight; outline-offset: -2px; }
    [data-active] > .organisation-picker-option { outline: 2px solid Highlight; outline-offset: -2px; }
    .organisation-picker-children > li::before, .organisation-picker-children > li::after { background: CanvasText; forced-color-adjust: none; }
    .organisation-logo, .brand-lockup { forced-color-adjust: none; }
    .brand-lockup { background: var(--logo-dark); color: var(--sidebar-ink); }
    .theme-option > input:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}

.profile-panel-heading { display: flex; min-width: 0; align-items: center; gap: 11px; }
.profile-panel-heading > div { min-width: 0; }
.profile-panel-heading .panel-title { overflow-wrap: anywhere; }
.profile-panel-icon { width: 21px; height: 21px; flex: 0 0 21px; color: var(--su-teal); }
.profile-panel-heading:has(.panel-description) { align-items: flex-start; }
.profile-panel-heading:has(.panel-description) > .profile-panel-icon { margin-top: 2px; }
.profile-section > .panel-header { gap: 12px; }
.profile-section-edit, [data-profile-manage] { min-height: 44px; flex-shrink: 0; }
.profile-section .profile-links { padding: 0; }
.profile-section-form { container-type: inline-size; }
.profile-section-fields { display: grid; gap: 22px; min-width: 0; }
.profile-section-fields > *, .profile-section-fields .field-grid > * { min-width: 0; }
.profile-section-fields .field-full { grid-column: 1 / -1; }
.profile-section-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-section-actions .button, .profile-section-fields .button { min-height: 44px; }
.profile-section-status { margin: 0; padding: 0 23px; color: var(--su-teal); font-size: 13px; line-height: 1.5; }
.profile-section-status:not(:empty) { padding-top: 12px; padding-bottom: 16px; border-top: 1px solid var(--line); }
.profile-section .validation-errors a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.profile-section [aria-disabled="true"] { cursor: wait; }
[data-profile-manage-panel][data-profile-manage-ready]:not(.is-managing) [data-profile-appointment-editor],
[data-profile-manage-panel][data-profile-manage-ready]:not(.is-managing) [data-profile-appointment-add],
[data-profile-manage-panel][data-profile-manage-ready]:not(.is-managing) [data-profile-role-editor],
[data-profile-manage-panel][data-profile-manage-ready]:not(.is-managing) [data-profile-role-add] { display: none; }

@container (max-width: 480px) {
    .profile-section-form .field-grid, .profile-section-form .contact-row, .profile-section-form .profile-link-row { grid-template-columns: minmax(0, 1fr); }
    .profile-section-form .contact-row, .profile-section-form .profile-link-row { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
    .profile-section-form .contact-remove, .profile-section-form .profile-link-remove { justify-self: start; margin-bottom: 0; }
    .profile-section-form .field-full { grid-column: auto; }
}

@media (max-width: 600px) {
    .profile-section .panel-header, [data-profile-manage-panel] > .panel-header { gap: 10px; }
    .profile-panel-heading { gap: 8px; }
    .profile-panel-icon { width: 19px; height: 19px; flex-basis: 19px; }
    .profile-section-status { padding-right: 18px; padding-left: 18px; }
    .profile-section-actions > .button { flex: 1 1 auto; }
}

.group-avatar { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex-shrink: 0; border: 1px solid var(--su-lilac); border-radius: 7px; background: var(--lilac-light); color: var(--su-purple); }
.group-avatar .icon { width: 28px; height: 28px; }
.group-avatar-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px; overflow: hidden; border-color: var(--control-border); background: var(--surface); }
.group-avatar-1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.group-avatar-2 { grid-template-rows: minmax(0, 1fr); }
.group-avatar-3 > :first-child { grid-row: span 2; }
.group-avatar > .group-avatar-member, .group-avatar-more { display: inline-flex; align-items: center; justify-content: center; min-width: 0; width: 100%; height: 100%; border: 0; border-radius: 0; font: 600 10px/1 var(--font-brand); }
.group-avatar-1 > .group-avatar-member { font-size: 20px; }
.group-avatar-2 > .group-avatar-member, .group-avatar-3 > .group-avatar-member:first-child { font-size: 14px; }
.group-avatar-more { background: var(--lilac-light); color: var(--su-purple); font-size: 11px; }
.group-card .directory-card-top { margin-bottom: 18px; }
.group-card-heading-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.group-card-heading-link > .icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.group-member-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.group-member-chips > li { min-width: 0; max-width: 100%; }
.group-included-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.group-included-chips > li { min-width: 0; max-width: 100%; }
.group-inclusion-chip { padding-left: 7px; border-color: var(--su-purple); background: var(--lilac-light); color: var(--su-purple); }
.group-inclusion-chip > .icon { width: 16px; height: 16px; flex-shrink: 0; }
.group-member-count { display: inline-flex; align-items: center; gap: 6px; }
.group-form-panel { max-width: 960px; }
.group-details-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; }
.group-members-picker { min-width: 0; margin: 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); }
.group-members-picker + .group-members-picker { margin-top: 26px; }
.group-members-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.group-members-heading .panel-title { display: inline-flex; align-items: center; gap: 10px; }
.group-members-heading .panel-title .icon { width: 23px; height: 23px; }
.group-members-picker > .field-help { margin: 0 0 16px; }
.group-member-search { position: relative; margin-bottom: 14px; }
.group-member-search > .icon { position: absolute; top: 13px; left: 14px; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.group-member-search > input { min-height: 44px; margin: 0; padding: 10px 12px 10px 43px; font-size: 14px; }
.group-member-list { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 4px; margin: -4px; }
.group-member-option { display: grid; grid-template-columns: 20px 48px minmax(0, 1fr) auto; align-items: center; flex-shrink: 0; gap: 14px; min-height: 88px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.group-member-option:hover { border-color: var(--control-border); background: var(--canvas); }
.group-member-option:has(input:checked) { border-color: var(--su-teal); background: var(--mint-light); }
.group-member-option:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.group-member-option > input { width: 18px; height: 18px; margin: 0; accent-color: var(--su-teal); cursor: pointer; }
.group-member-option > .group-member-avatar { width: 48px; height: 48px; border-radius: 7px; font-size: 17px; }
.group-member-copy, .group-member-details { display: block; min-width: 0; overflow-wrap: anywhere; }
.group-member-name { display: block; margin-bottom: 4px; color: var(--su-teal); font: 600 17px/1.35 var(--font-brand); }
.group-member-position { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.group-member-email { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.group-member-badges { display: flex; align-self: start; flex-wrap: wrap; justify-content: end; min-width: 0; max-width: 180px; gap: 6px; padding-top: 2px; }
.group-member-badges .badge { background: var(--surface); color: var(--muted); }
.group-member-badges .group-inherited-badge { max-width: 100%; overflow-wrap: anywhere; border: 1px solid var(--su-lilac); background: var(--lilac-light); color: var(--su-purple); white-space: normal; }
.group-member-empty { margin: 0; padding: 30px 16px; color: var(--muted); text-align: center; font-size: 14px; }
.group-inclusion-list { max-height: 340px; }
.group-inclusion-option { grid-template-columns: 20px 48px minmax(0, 1fr); }
.group-inclusion-option:has(input:disabled) { border-color: var(--line); background: var(--canvas); cursor: not-allowed; }
.group-inclusion-option:has(input:disabled) .group-member-name { color: var(--muted); }
.group-inclusion-option > input:disabled { cursor: not-allowed; }
.group-inclusion-disabled-reason { display: flex; align-items: start; gap: 6px; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.group-inclusion-disabled-reason > .icon { flex-shrink: 0; width: 14px; height: 14px; margin-top: 2px; }
.group-inherited-members { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.group-inherited-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.group-inherited-heading h3 { margin: 0; color: var(--ink); font: 600 14px/1.5 var(--font-brand); }
.group-inherited-chips { display: flex; flex-wrap: wrap; gap: 14px 16px; margin: 0; padding: 0; list-style: none; }
.group-inherited-chips > li { display: flex; min-width: 0; max-width: 100%; flex-direction: column; align-items: flex-start; gap: 5px; }
.group-member-provenance { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (max-width: 600px) {
    .group-details-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .group-member-option { grid-template-columns: 18px 40px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .group-member-option > .group-member-avatar { width: 40px; height: 40px; }
    .group-member-badges { grid-column: 3; justify-content: start; padding-top: 0; }
    .group-member-name { font-size: 16px; }
    .group-member-search > input { font-size: 16px; }
    .group-inherited-members { padding: 14px; }
}
.user-group-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.user-group-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.overview-calendar { margin-bottom: 28px; scroll-margin-top: 24px; }
.calendar-header { flex-wrap: wrap; }
.calendar-header .panel-title { display: flex; align-items: center; gap: 10px; }
.calendar-header .panel-title > .icon { width: 22px; height: 22px; }
.calendar-month-totals { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 12px; }
.calendar-month-totals strong { margin-right: 3px; color: var(--ink); font-size: 15px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
.calendar-month { min-width: 0; padding: 16px 18px 20px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 4px 12px; }
.calendar-toolbar h3 { margin: 0; color: var(--ink); font: 600 20px/1.3 var(--font-brand); }
.calendar-navigation { display: flex; align-items: center; gap: 3px; }
.calendar-nav-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid transparent; border-radius: 6px; color: var(--su-teal); }
.calendar-nav-button:hover { background: var(--mint-light); border-color: var(--line); }
.calendar-nav-button > .icon { width: 17px; height: 17px; }
.calendar-today { padding: 8px 12px; border-color: var(--line); font-size: 12px; font-weight: 600; }
.calendar-nav-button.is-disabled { color: var(--muted); opacity: .5; }
.calendar-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.calendar-table th { padding: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 500; text-align: center; }
.calendar-table th abbr { text-decoration: none; }
.calendar-table td { padding: 0; vertical-align: top; }
.calendar-day { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 96px; gap: 6px; padding: 7px 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.25; }
.calendar-day:hover { border-color: var(--control-border); background: var(--canvas); }
.calendar-day:focus-visible { position: relative; z-index: 1; outline-offset: 1px; }
.calendar-day.is-outside-month { background: var(--canvas); color: var(--muted); }
.calendar-day.is-selected { border-color: var(--su-teal); background: var(--mint-light); box-shadow: inset 0 0 0 1px var(--su-teal); }
.calendar-day-number { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; min-height: 23px; border-radius: 4px; }
.calendar-day.is-today .calendar-day-number { background: var(--active-bg); color: var(--on-active); font-weight: 700; }
.calendar-day-counts { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.calendar-count { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calendar-count .icon { width: 12px; height: 12px; }
.calendar-count-updates, .calendar-legend-updates { color: var(--su-teal); }
.calendar-count-references, .calendar-legend-references { color: var(--su-purple); }
.calendar-count-birthdays, .calendar-legend-birthdays, .calendar-reason-birthday { color: var(--su-pink-dark); }
.calendar-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 17px; margin: 14px 4px 0; font-size: 11px; }
.calendar-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend .icon { width: 14px; height: 14px; }
.calendar-legend-today { color: var(--muted); }
.calendar-legend-today > span { width: 11px; height: 11px; border-radius: 3px; background: var(--active-bg); }
.calendar-details { min-width: 0; padding: 22px; border-left: 1px solid var(--line); background: var(--canvas); }
.calendar-details-heading { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.calendar-details-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.calendar-details-heading h3 { margin: 0; color: var(--su-teal); font: 600 22px/1.3 var(--font-brand); }
.calendar-details-heading > span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.calendar-entries-scroll { max-height: 436px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; margin: 16px -5px -5px; padding: 0 5px 5px; }
.calendar-entries-scroll:focus-visible { outline-offset: 1px; }
.calendar-entries { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.calendar-entry { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow-wrap: anywhere; }
.calendar-entry-reasons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.calendar-entry-reason { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.calendar-entry-reason > .icon { width: 14px; height: 14px; }
.calendar-reason-update { color: var(--su-teal); }
.calendar-reason-reference { color: var(--su-purple); }
.calendar-reference-time { display: block; width: 100%; color: var(--ink); font-size: 12px; font-weight: 600; }
.calendar-reference-time > span { color: var(--muted); font-size: 10px; font-weight: 400; }
.calendar-entry-meta { margin-bottom: 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.calendar-entry .activity-body { margin: 0; font-size: 13px; line-height: 1.7; }
.calendar-entry .mention-chip { font-size: 12px; }
.calendar-entry-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: 13px; padding-top: 8px; border-top: 1px solid var(--line); }
.calendar-entry-footer > span { color: var(--muted); font-size: 11px; }
.calendar-entry-footer .text-link { min-height: 36px; font-size: 12px; }
.calendar-entry-footer .text-link > .icon { width: 14px; height: 14px; }
.calendar-birthday-age { color: var(--muted); font-size: 11px; }
.calendar-birthday-person { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--su-teal); font-size: 14px; font-weight: 600; }
.calendar-birthday-person > .person-avatar { flex-shrink: 0; }
.calendar-birthday-person > span:not(.person-avatar) { flex: 1; min-width: 0; }
.calendar-birthday-person > .icon { width: 15px; height: 15px; flex-shrink: 0; }
.calendar-birthday-person:hover > span:not(.person-avatar) { text-decoration: underline; text-underline-offset: 3px; }
.calendar-birthday-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.calendar-empty { padding: 40px 5px; text-align: center; }
.calendar-empty > .icon { width: 29px; height: 29px; margin-bottom: 14px; color: var(--su-teal); }
.calendar-empty > p { margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 600; }
.calendar-empty > span { color: var(--muted); font-size: 12px; }
.calendar-status:not(.sr-only) { margin: 0; padding: 12px 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.overview-calendar[aria-busy="true"] .calendar-navigation { cursor: progress; }

@media (max-width: 1100px) {
    .calendar-layout { grid-template-columns: minmax(0, 1fr); }
    .calendar-details { border-top: 1px solid var(--line); border-left: 0; }
    .calendar-entries-scroll { max-height: 390px; }
    .calendar-day { min-height: 76px; }
    .calendar-day-counts { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
    .calendar-empty { padding: 26px 5px; }
}

@media (max-width: 600px) {
    .calendar-header { gap: 12px; }
    .calendar-month { padding: 13px 10px 17px; }
    .calendar-toolbar { margin-right: 3px; margin-left: 3px; }
    .calendar-toolbar h3 { font-size: 18px; }
    .calendar-table { border-spacing: 3px; }
    .calendar-table th { font-size: 10px; }
    .calendar-day { min-height: 94px; padding: 6px 2px; gap: 4px; }
    .calendar-day-counts { flex-direction: column; gap: 4px; }
    .calendar-count { gap: 3px; font-size: 10px; }
    .calendar-count > .icon { width: 11px; height: 11px; }
    .calendar-legend { gap: 9px 12px; font-size: 10px; }
    .calendar-details { padding: 18px; }
    .calendar-entry { padding: 13px; }
    .calendar-entry-footer .text-link { min-height: 44px; }
}

.privacy-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px 0 0; }
.privacy-request-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .35fr); gap: 24px; align-items: start; }
.privacy-request-layout .form-panel, .privacy-workspace .form-panel { width: 100%; max-width: none; }
.privacy-workspace { max-width: 960px; }
.privacy-prose { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; line-height: 1.75; }
.privacy-inline-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.privacy-export-review { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.privacy-json { width: 100%; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.7; tab-size: 2; }
.privacy-event-list { margin: 0; padding: 0 22px; list-style: none; }
.privacy-event-list li { display: flex; flex-direction: column; gap: 5px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.privacy-event-list li:last-child { border-bottom: 0; }
.privacy-event-list strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.privacy-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 0; }
.privacy-counts > div { padding: 13px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); }
.privacy-counts dt { font-size: 12px; color: var(--muted); }
.privacy-counts dd { margin: 5px 0 0; color: var(--su-teal); font-size: 22px; font-weight: 600; }
.privacy-erasure-form { max-width: 980px; }
.privacy-erasure-form .form-panel { max-width: none; }
.privacy-erasure-record { display: flex; min-width: 0; flex-direction: column; gap: 18px; margin: 0; padding: 24px; border: 0; border-bottom: 1px solid var(--line); }
.privacy-erasure-record:last-child { border-bottom: 0; }
.privacy-erasure-record > legend { float: left; width: 100%; padding: 0; margin: 0; }
.privacy-review-notice { padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); }
.privacy-review-notice ul, .privacy-follow-up-list { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.8; }
.privacy-follow-up-list { margin-bottom: 14px; }
.privacy-original { padding: 12px 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); }
.privacy-original > summary { color: var(--su-teal); font-size: 13px; font-weight: 600; cursor: pointer; }
.privacy-original[open] > summary { margin-bottom: 14px; }
.privacy-original .definition-row dd, .privacy-original .privacy-prose { font-size: 13px; }
.privacy-record-navigation { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.privacy-record-editor { border-bottom: 1px solid var(--line); }
.privacy-record-editor:last-child { border-bottom: 0; }
.privacy-record-editor > summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 24px; list-style: none; cursor: pointer; }
.privacy-record-editor > summary::-webkit-details-marker { display: none; }
.privacy-record-editor > summary > span { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.privacy-record-editor > summary strong { color: var(--su-teal); font-size: 14px; overflow-wrap: anywhere; }
.privacy-record-editor > summary > .icon { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; color: var(--su-teal); }
.privacy-record-editor[open] > summary > .icon { transform: rotate(180deg); }
.privacy-record-context { color: var(--muted); font-size: 12px; }
.privacy-record-excerpt { color: var(--ink); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.privacy-record-form { display: flex; flex-direction: column; gap: 20px; padding: 0 24px 24px; }
.privacy-record-form .form-actions { margin: 0 -24px -24px; }
.privacy-stale-notice { margin-bottom: 24px; }
@media (max-width: 1000px) {
    .privacy-request-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .privacy-filter-fields { grid-template-columns: minmax(0, 1fr); }
    .privacy-erasure-record { padding: 20px; }
    .privacy-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .privacy-erasure-form .form-actions { flex-wrap: wrap; }
}

.two-factor-account { margin-bottom: 25px; }
.two-factor-account-body { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.two-factor-account-body > .field-help { max-width: 560px; }
.two-factor-account .panel-header, .two-factor-workspace .panel-header { flex-wrap: wrap; }
.two-factor-workspace { max-width: 780px; }
.two-factor-workspace form.panel-body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.two-factor-workspace form.panel-body > .field { width: 100%; max-width: 500px; }
.two-factor-copy { margin: 0 0 15px; color: var(--ink); font-size: 14px; line-height: 1.7; }
.two-factor-workspace form.panel-body > .two-factor-copy { margin: 0; }
.two-factor-setup-grid { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: center; gap: 26px; }
.two-factor-qr { display: block; width: 224px; max-width: 100%; height: auto; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.two-factor-manual { min-width: 0; }
.two-factor-manual > h3 { margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.two-factor-secret { display: block; margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); color: var(--ink); font: 14px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.two-factor-confirm-form { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.two-factor-confirm-form > .field { width: 100%; }
.field > input.two-factor-code-input { max-width: 320px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.field > input.two-factor-digits { max-width: 220px; font-size: 22px; letter-spacing: .18em; }
.two-factor-cancel-setup { margin-top: 10px; }
.two-factor-recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.two-factor-recovery-codes > li { min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); color: var(--ink); text-align: center; }
.two-factor-recovery-codes code { font: 14px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.two-factor-challenge-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 18px; }
.two-factor-challenge-actions > .text-link { min-height: 44px; }
.two-factor-challenge-actions .button-ghost { padding-left: 0; }

@media (max-width: 640px) {
    .two-factor-setup-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .two-factor-qr { justify-self: center; }
    .two-factor-recovery-codes { grid-template-columns: minmax(0, 1fr); }
    .two-factor-account-body > .button { width: 100%; }
}

.global-search .global-search-popup{position:absolute;z-index:25;top:calc(100% + 8px);width:min(480px,calc(100vw - 32px));max-height:min(480px,65dvh);overflow:auto;overscroll-behavior:contain;padding:8px;border:1px solid var(--control-border);border-radius:10px;background:var(--surface-raised);box-shadow:var(--shadow-popup)}.global-search-popup .global-search-group-label{margin:0;padding:10px 12px 4px;color:var(--muted);font-size:12px;font-weight:600}.global-search-popup .global-search-option{display:flex;flex-direction:column;gap:3px;min-height:44px;padding:10px 12px;border-radius:6px;color:var(--ink);font-size:14px;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}.global-search-popup .global-search-option strong{font-weight:600}.global-search-popup .global-search-option span{color:var(--muted);font-size:12px}.global-search-popup .global-search-option:is(:hover,:focus,[aria-selected=true]){outline:none;background:var(--canvas);box-shadow:inset 3px 0 var(--su-teal)}.global-search-popup .global-search-option:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.global-search-popup .global-search-view-all{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin-top:6px;border-top:1px solid var(--line);border-radius:0 0 6px 6px;color:var(--su-teal);font-weight:600}.global-search-popup .global-search-view-all svg{flex-shrink:0;width:16px;height:16px}.global-search-popup .global-search-message{margin:0;padding:14px 12px;color:var(--muted);font-size:14px;line-height:1.5}@media(forced-colors:active){.global-search-popup .global-search-option[aria-selected=true]{outline:2px solid Highlight;outline-offset:-2px}}
/*# sourceMappingURL=app.css.map */

/* Native Worker views retain the Cambridge SU component styles. */
.worker-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem; }
.worker-stack { display:grid; gap:1.25rem; }
.worker-form { max-width:52rem; }
.worker-form .form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; }
.worker-form textarea { min-height:8rem; }
.worker-empty { color:var(--muted); text-align:center; padding:1rem 1.25rem; }
.worker-contact-actions { display:flex; gap:.5rem; flex-wrap:wrap; }
.worker-contact-actions a { display:inline-flex; width:2.5rem; height:2.5rem; align-items:center; justify-content:center; border:1px solid var(--control-border); border-radius:6px; }
.worker-profile-heading { display:flex; align-items:center; gap:1.4rem; }
.worker-profile-heading img { width:5rem; height:5rem; object-fit:cover; border-radius:8px; }
.worker-profile-heading h1 { margin:0; }
.worker-error { border:1px solid var(--danger); border-radius:var(--radius); padding:1rem; }

/* Shared section rendering uses the same hierarchy and spacing as the Blade UI. */
.page-content > .panel + .panel,
.page-content > .user-management-grid + .panel { margin-top: 25px; }
.panel-body > :first-child { margin-top: 0; }
.panel-body > :last-child { margin-bottom: 0; }
.panel-body > form { display: flex; flex-direction: column; gap: 18px; }
.panel-body > form + form { margin-top: 20px; }
.panel-body > form > .button { align-self: flex-start; }
.panel-empty:not(.empty-state),
.panel-body > .worker-empty { margin: 0; color: var(--muted); text-align: center; }
.panel-body pre { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.panel-header .heading-actions { flex-wrap: wrap; }
.profile-panel-heading > .panel-title { min-width: 0; }
.organisation-positions-table { table-layout: fixed; }
.organisation-positions-table th:first-child { width: 55%; }
.organisation-positions-table th,
.organisation-positions-table td { min-width: 0; max-width: none; vertical-align: middle; }
.organisation-positions-table .text-link > span { min-width: 0; }
.search-page-input > input { flex: 1; min-width: 0; }
.search-explanation:not(:empty) { margin-bottom: 18px; }
.people-preview .person-preview { flex-direction: column; align-items: flex-start; gap: 5px; }
.login-form-content > .panel { overflow: visible; border: 0; background: transparent; }
.login-form-content > .panel > .panel-header { display: none; }
.login-form-content > .panel > .panel-body { padding: 0; }
.login-form-content .auth-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.login-form-content .auth-options a { color: var(--su-teal); text-decoration: underline; text-underline-offset: 3px; }
.login-form-content .panel-body > form > .button-primary { align-self: stretch; }
.login-form-content .google-signin { margin-bottom: 20px; }
@media (max-width: 560px) {
    .panel-header { align-items: flex-start; flex-wrap: wrap; }
    .panel-header .heading-actions { margin-left: auto; }
    .worker-form .form-grid { grid-template-columns: minmax(0, 1fr); }
}
