:root {
  color-scheme: light;
  --ink: #192d38;
  --muted: #596c77;
  --brand: #126c65;
  --brand-hover: #0c554f;
  --brand-soft: #edf6f3;
  --canvas: #f5f7f8;
  --surface: #fff;
  --line: #dce4e7;
  --field-line: #a4b5bd;
  --danger: #a32e3b;
  --danger-soft: #fff1f2;
  --radius-sm: .6rem;
  --radius: 1rem;
  --shadow: 0 16px 48px -28px #1e3c4d40;
  --space-1: .225rem;
  --space-2: .45rem;
  --space-3: .675rem;
  --space-4: .9rem;
  --space-5: 1.35rem;
  --space-6: 1.8rem;
  --space-7: 2.7rem;
  --space-8: 3.6rem;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: break-word; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--brand-hover); }
p { margin: 0 0 var(--space-4); color: var(--muted); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; }
h1 { margin: var(--space-2) 0 var(--space-3); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 650; }
h2 { margin: 0 0 var(--space-3); font-size: 1.25rem; font-weight: 650; }
h3 { margin: 0 0 var(--space-3); font-size: 1rem; font-weight: 650; }
small, .help { font-size: .85rem; line-height: 1.5; color: var(--muted); }
.help { display: block; margin: var(--space-2) 0 0; font-weight: 400; }
.field-error { color: var(--danger); }
.field-message { margin: 0; font-size: .85rem; font-weight: 600; color: var(--danger); }
.field-message::before { content: "\2715"; margin-right: .4rem; font-weight: 700; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
strong { font-weight: 650; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 20; padding: .8rem 1rem; background: var(--ink); color: #fff; border-radius: var(--radius-sm); opacity: 0; pointer-events: none; }
.skip-link:focus { opacity: 1; pointer-events: auto; }
:focus-visible { outline: 3px solid #2a83c5; outline-offset: 3px; }
.eyebrow { color: var(--brand); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; margin: 0; }
.muted { color: var(--muted); }
.brand { display: inline-flex; gap: .75rem; align-items: center; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -.035em; }
.brand-mark { width: 2.35rem; height: 2.35rem; min-width: 0; min-height: 0; flex: 0 0 2.35rem; display: inline-grid; place-items: center; overflow: hidden; border-radius: .75rem .75rem .75rem .2rem; background: var(--brand); }
.brand-mark img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; padding: .3rem; object-fit: contain; }
.brand small { display: block; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }

/* Shared form primitives keep all auth and administration flows consistent. */
form { margin: 0; }
.field { display: grid; align-content: start; gap: var(--space-2); margin-bottom: var(--space-4); min-width: 0; }
label, legend { font-size: .9rem; font-weight: 600; color: var(--ink); }
fieldset { margin: 0 0 var(--space-4); padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: var(--space-2); }
input, select, textarea { width: 100%; min-width: 0; min-height: 2.5rem; padding: .5rem .7rem; border: 1px solid var(--field-line); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--brand); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
input[readonly] { background: var(--canvas); }
input[readonly], textarea[readonly] { caret-color: transparent; cursor: default; }
.readonly-value { display: flex; align-items: center; min-height: 2.5rem; padding: .5rem .75rem; border-radius: var(--radius-sm); background: var(--canvas); color: var(--ink); cursor: default; overflow-wrap: anywhere; }
.readonly-value:empty::before { content: "\2014"; color: var(--muted); }
input:disabled, select:disabled { background: var(--canvas); color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; min-height: 0; flex: 0 0 1.1rem; padding: 0; margin: .15rem 0 0; accent-color: var(--brand); }
input:user-invalid, select:user-invalid, [aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: var(--space-3); font-weight: 400; padding: var(--space-3); border-radius: var(--radius-sm); cursor: pointer; }
.check:has(input:checked) { background: var(--brand-soft); }
.check strong { display: block; }
.check small { display: block; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--space-4); }
.form-grid .field { margin: 0; }
.form-grid > button { align-self: end; justify-self: start; }
.form-section { margin-top: var(--space-4); }
.form-section + .form-section { border-top: 1px solid var(--line); padding-top: var(--space-4); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 2.5rem; padding: .5rem .9rem; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s; }
button:hover:not(:disabled), .button:hover { background: var(--brand-hover); color: #fff; }
button:disabled, .button[aria-disabled="true"] { background: #e9edef; border-color: var(--line); color: #647780; cursor: not-allowed; }
.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.secondary:hover:not(:disabled), .button.secondary:hover { color: var(--ink); background: var(--canvas); border-color: var(--field-line); }
.quiet { background: transparent; color: var(--muted); border-color: transparent; }
.quiet:hover:not(:disabled) { background: var(--canvas); color: var(--ink); }
.danger { color: var(--danger); border-color: #ebcdd2; background: var(--surface); }
.danger:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); }
.full-width { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }
.notice { margin: var(--space-3) 0; padding: var(--space-3) var(--space-4); border: 1px solid #cfe2df; border-radius: var(--radius-sm); color: #215b55; background: var(--brand-soft); font-size: .9rem; overflow-wrap: anywhere; }
.notice:empty { display: none; }
.notice p:last-child { margin-bottom: 0; }
.notice.error, .notice[data-tone="error"] { color: #8f2734; background: var(--danger-soft); border-color: #edced2; }
.notice[data-tone="info"] { color: #315d92; background: #edf3fd; border-color: #c9daf2; }
.notice[data-tone="success"] { color: #236742; background: #e9f5ee; border-color: #c4e2d0; }
.notice[data-tone="warning"] { color: #805216; background: #fff4e3; border-color: #f0d9b0; }
.notice[data-tone]:not([data-tone="busy"])::before { margin-right: .5rem; font-weight: 700; }
.notice[data-tone="info"]::before { content: "i"; }
.notice[data-tone="success"]::before { content: "\2713"; }
.notice[data-tone="warning"]::before { content: "!"; }
.notice[data-tone="error"]::before { content: "\2715"; }
.help:empty { display: none; }
.panel > .help { margin: 0 0 var(--space-3); }
.help[data-tone="error"] { color: var(--danger); }
.help[data-tone="warning"] { color: #805216; }
.help[data-tone="success"] { color: #236742; }
.notice[data-tone="busy"]::before { content: ""; display: inline-block; width: .8rem; height: .8rem; margin-right: .55rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }
.portal-dialog { width: min(38rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); overflow: auto; overflow-wrap: anywhere; }
.portal-dialog > :not(.portal-toasts) { padding: var(--space-5); }
.portal-dialog .actions { position: sticky; bottom: 0; z-index: 1; margin: var(--space-4) calc(-1 * var(--space-5)) calc(-1 * var(--space-5)); padding: var(--space-3) var(--space-5); background: var(--surface); border-top: 1px solid var(--line); }
.portal-dialog h2 { margin-bottom: var(--space-3); }
.portal-dialog h2 + .help, .portal-dialog h2 + p { margin: 0 0 var(--space-4); }
.portal-dialog .help { margin-top: var(--space-2); }
.portal-dialog::backdrop { background: #192d3899; }
body:has(.portal-dialog[open]) { overflow: hidden; }
.portal-toasts { position: fixed; inset: auto 1rem 1rem auto; margin: 0; width: min(28rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: .25rem; border: 0; background: transparent; }
.portal-toasts:popover-open { display: grid; gap: var(--space-3); }
.portal-toast { display: flex; align-items: start; gap: var(--space-3); padding: var(--space-4); border: 1px solid; border-left-width: .35rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow-wrap: anywhere; font: inherit; }
.portal-toast[data-tone="success"] { background: #e9f5ee; color: #236742; border-color: #236742; }
.portal-toast[data-tone="info"] { background: #edf3fd; color: #315d92; border-color: #315d92; }
.portal-toast[data-tone="warning"] { background: #fff4e3; color: #805216; border-color: #805216; }
.portal-toast[data-tone="error"] { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.portal-toast button { flex-shrink: 0; color: inherit; padding: .3rem; min-height: 2rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.divider { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-4) 0; color: var(--muted); font-size: .8rem; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.ms-mark { display: grid; grid-template-columns: 7px 7px; grid-template-rows: 7px 7px; gap: 2px; }
.ms-mark i:nth-child(1) { background: #f25022; }
.ms-mark i:nth-child(2) { background: #7fba00; }
.ms-mark i:nth-child(3) { background: #00a4ef; }
.ms-mark i:nth-child(4) { background: #ffb900; }
.code-input { font-size: 1.7rem; font-variant-numeric: tabular-nums; letter-spacing: .4em; text-align: center; }
.password-control { display: flex; align-items: stretch; gap: var(--space-2); }
.password-control input { flex: 1; width: 0; }
.password-control button { flex: none; white-space: nowrap; }

/* The public flow uses the same frame at every step. */
.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(260px, .5fr) minmax(0, 1.5fr); }
.auth-story { background: #123d3c; color: #fff; padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); position: relative; overflow: hidden; }
.auth-story::after { content: ""; pointer-events: none; position: absolute; width: 480px; height: 480px; border: 1px solid #ffffff0f; border-radius: 50%; right: -230px; bottom: -240px; box-shadow: 0 0 0 70px #ffffff03, 0 0 0 140px #ffffff03; }
.auth-story .brand { color: #fff; }
.auth-story .brand-mark { background: #ffffff14; border: 1px solid #ffffff20; }
.auth-story .brand small, .auth-story p { color: #b6d2cf; }
.story-copy { max-width: 27rem; position: relative; z-index: 1; }
.story-copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; font-weight: 500; margin: 0 0 var(--space-5); letter-spacing: -.045em; }
.story-copy p { font-size: 1rem; line-height: 1.6; }
.story-note { display: flex; align-items: center; gap: var(--space-3); color: #b6d2cf; font-size: .8rem; }
.story-note span:first-child { width: .5rem; height: .5rem; border-radius: 50%; background: #8dcab7; }
.auth-content { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-5); }
.auth-card { width: 100%; max-width: 27.5rem; }
.auth-card header { margin-bottom: var(--space-4); }
.auth-card h1 { font-size: 1.5rem; }
.auth-footer { max-width: 27.5rem; width: 100%; margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.auth-footer p { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: var(--space-5); font-size: .9rem; }
.mobile-only { display: none; }
.identity-card { padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: var(--space-5); overflow-wrap: anywhere; }
.identity-card strong, .identity-card span { display: block; }
.identity-card span { font-size: .9rem; color: var(--muted); }

/* Signed-in shell and data-light access administration. */
.app-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-header .brand-mark { background: var(--brand-soft); }
.app-header-inner { max-width: 1240px; margin: auto; padding: var(--space-3) var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.session-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.session-nav a { padding: .6rem .9rem; text-decoration: none; border-radius: var(--radius-sm); color: var(--muted); font-size: .9rem; font-weight: 600; }
.session-nav a:hover, .session-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.session-nav button { min-height: 2.4rem; padding: .5rem .85rem; }
.app-main { max-width: 1240px; padding: var(--space-5) var(--space-5) var(--space-7); margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-3); }
.page-heading p:last-child { margin: 0; max-width: 40rem; }
.page-heading h1 { margin: 0 0 var(--space-1); font-size: clamp(1.4rem, 2.2vw, 1.75rem); overflow-wrap: anywhere; }
.page-heading p:not(.eyebrow) { font-size: .9rem; margin: 0; }
.page-heading .eyebrow { display: none; }
.panel { background: var(--surface); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 1px 2px #1e3c4d14; margin-bottom: var(--space-4); min-width: 0; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); }
.section-heading p { margin: 0; font-size: .9rem; }
.section-heading .field { margin: 0; min-width: 12rem; }
.home-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.action-card { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--brand-soft); border: 1px solid #cfe2df; border-radius: var(--radius-sm); }
.action-card h2 { margin: 0; }
.action-card p { margin: 0; font-size: .9rem; }
.action-card .button { flex: none; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: var(--space-5); align-items: start; }
.context-list { padding: 0; margin: var(--space-5) 0 0; }
.context-list div { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.context-list dt { color: var(--muted); font-size: .9rem; }
.context-list dd { margin: 0; text-align: right; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.office-list { margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.office-list li { padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.office-list small { display: block; }
.badge, .status-chip { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .25rem .65rem; background: #edf1f3; color: #4b606c; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.summary-chips .badge::before { display: none; }
.badge::before { content: ""; width: .4rem; height: .4rem; background: currentColor; border-radius: 50%; }
.badge.success, .status-chip[data-status="Completed"] { background: #e9f5ee; color: #236742; }
.account-badge[data-tone="success"] { background: #e9f5ee; color: #236742; }
.account-badge[data-tone="info"] { background: #edf3fd; color: #315d92; }
.account-badge[data-tone="warning"] { background: #fff4e3; color: #8a5a17; }
.account-badge[data-tone="danger"] { background: var(--danger-soft); color: var(--danger); }
.account-badge .action-icon, .account-badge .ms-mark { order: -1; flex: none; }
.status-chip[data-status="Pending"] { background: #edf3fd; color: #315d92; }
.status-chip[data-status="Expired"] { background: #fff4e3; color: #8a5a17; }
.status-chip[data-status="Revoked"] { background: var(--danger-soft); color: var(--danger); }
.status-chip::before { content: ""; width: .4rem; height: .4rem; background: currentColor; border-radius: 50%; }
.status-chip[data-status="Draft"] { background: #edf1f3; color: #4b606c; }
.status-chip[data-status="New"] { background: #edf3fd; color: #315d92; }
.status-chip[data-status="InProgress"] { background: #e3f4f2; color: #0f5e57; }
.status-chip[data-status="NeedsInformation"] { background: #fff4e3; color: #8a5a17; }
.status-chip[data-status="AmReview"] { background: #f1ecfb; color: #5b3e96; }
.status-chip[data-status="DoNotSeeClient"] { background: var(--danger-soft); color: var(--danger); }
.status-cell { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.status-steps { display: inline-flex; gap: 3px; }
.status-steps i { width: 1.1rem; height: .3rem; border-radius: 2px; background: var(--line); }
.status-cell[data-status="New"] .status-steps .on { background: #315d92; }
.status-cell[data-status="InProgress"] .status-steps .on { background: #0f5e57; }
.status-cell[data-status="NeedsInformation"] .status-steps .on { background: #b7791f; }
.status-cell[data-status="AmReview"] .status-steps .on { background: #5b3e96; }
.status-cell[data-status="Completed"] .status-steps .on { background: #236742; }
.status-cell[data-status="DoNotSeeClient"] .status-steps .on { background: var(--danger); }
.requests-table td { vertical-align: top; overflow-wrap: anywhere; }
.requests-table td strong { white-space: nowrap; }
.requests-table td small { display: block; color: var(--muted); }
.requests-table time { white-space: nowrap; font-size: .8125rem; }
th .sort { padding: 0; min-height: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
th .sort::after { content: " \2195"; opacity: .45; }
th .sort[data-direction="asc"]::after { content: " \25B2"; opacity: 1; }
th .sort[data-direction="desc"]::after { content: " \25BC"; opacity: 1; }
th[aria-sort] { color: var(--ink); }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-2); }
.filter-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .2rem .1rem .6rem; border-radius: 999px; background: var(--brand-soft); color: var(--ink); font-size: .8125rem; font-weight: 600; }
.filter-chip button { min-height: 1.6rem; width: 1.6rem; padding: 0; border: 0; background: none; color: inherit; }
.pager { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-2); margin-top: var(--space-3); color: var(--muted); font-size: .875rem; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.tabs a { padding: .6rem .1rem; margin-bottom: -1px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; font-size: .9rem; font-weight: 600; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
.toolbar h2 { margin: 0; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-3) 0; }
.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.item-list li > span { flex: 1 1 12rem; color: var(--muted); }
.item-list li > button, .item-list li > a { flex: none; font-size: .85rem; }
dl.kv { display: grid; grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr); gap: var(--space-1) var(--space-4); margin: 0 0 var(--space-3); font-size: .9rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.portal-dialog h3 { margin: var(--space-4) 0 var(--space-2); font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.toolbar .toolbar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.toolbar .field { margin: 0; grid-auto-flow: column; align-items: center; gap: var(--space-2); }
.toolbar .field select { width: auto; min-width: 11rem; }
.toolbar .table-filter { margin: 0; position: relative; }
.toolbar .table-filter .office-picker { position: absolute; z-index: 5; right: 0; width: min(22rem, 90vw); margin-top: var(--space-2); background: var(--surface); box-shadow: var(--shadow); }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.tile-grid li { padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; }
.tile-grid small { display: block; font-weight: 400; }
.summary-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.table-wrap { width: 100%; overflow-x: auto; }
.table-wrap table { table-layout: auto; }
.table-filter { margin: var(--space-3) 0; }
.table-filter summary { cursor: pointer; font-size: .875rem; color: var(--ink); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
th { padding: .5rem .7rem; background: var(--canvas); color: var(--muted); font-size: .75rem; font-weight: 600; white-space: nowrap; }
td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
td:first-child { font-weight: 600; }
td .cell-secondary { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); margin-top: .2rem; }
td .actions { margin: 0; gap: var(--space-2); flex-wrap: wrap; }
td button { font-size: .8rem; min-height: 2.1rem; padding: .35rem .6rem; white-space: nowrap; }
.accounts-table td:first-child { min-width: 11rem; }
.accounts-table td .account-actions { flex-wrap: wrap; gap: .3rem; }
.account-action { display: inline-flex; align-items: center; gap: .35rem; }
.account-action .action-icon { display: inline-flex; order: -1; flex: none; }
.account-action svg { width: 1rem; height: 1rem; }
@media (min-width: 601px) {
  .accounts-table .account-action { padding: .35rem; min-width: 2.1rem; }
  .accounts-table .account-action { font-size: 0; gap: 0; }
}
.empty-cell { text-align: center; padding: var(--space-5) var(--space-4); color: var(--muted); font-weight: 400 !important; }
.empty-state { text-align: center; padding: var(--space-6); }
.empty-state h3 { margin-top: var(--space-4); }
.office-picker { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-3); margin-top: var(--space-3); }
.office-picker input[type="search"] { min-height: 2.5rem; font-size: .85rem; margin-bottom: var(--space-2); }
.office-options { max-height: 11rem; overflow: auto; }
.office-picker .check { font-size: .85rem; padding: .65rem; }
.office-picker .check small { font-size: .75rem; }
.workforce-search-results { list-style: none; margin: var(--space-2) 0 0; padding: 0; max-height: 14rem; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.workforce-search-results [role="option"] { padding: .7rem; overflow-wrap: anywhere; cursor: pointer; }
.workforce-search-results [role="option"] + [role="option"] { border-top: 1px solid var(--line); }
.workforce-search-results [role="option"][aria-selected="true"], .workforce-search-results [role="option"]:hover { background: var(--brand-soft); }
.combobox { position: relative; min-width: 0; }
.combobox-row { display: flex; }
.combobox-row input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.combobox-toggle { flex: none; width: 2.5rem; min-height: 2.5rem; padding: 0; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface); color: var(--muted); }
.combobox-list { position: absolute; z-index: 20; left: 0; right: 0; margin: var(--space-2) 0 0; padding: 0; list-style: none; max-height: 16rem; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); }
.combobox-list [role="option"] { padding: .55rem .7rem; overflow-wrap: anywhere; cursor: pointer; }
.combobox-list [role="option"] small { margin-left: var(--space-2); color: var(--muted); }
.combobox-list [role="option"][aria-selected="true"], .combobox-list [role="option"]:hover { background: var(--brand-soft); }
.combobox-list .combobox-group { padding: .4rem .7rem .2rem; color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.combobox-list .combobox-empty { padding: .55rem .7rem; color: var(--muted); }
.combobox-list .combobox-action { border-top: 1px solid var(--line); color: var(--brand); font-weight: 600; }
.workforce-selected-user { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); overflow-wrap: anywhere; }
.workforce-office-details { max-width: 14rem; }
.workforce-office-details summary { cursor: pointer; overflow-wrap: anywhere; }
.workforce-office-details ul { max-height: 12rem; margin: var(--space-2) 0 0; padding-left: 1.25rem; overflow: auto; overflow-wrap: anywhere; }
.editor { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); scroll-margin-top: var(--space-5); }
.inline-note { background: var(--canvas); border-radius: var(--radius-sm); padding: var(--space-4); font-size: .85rem; color: var(--muted); }
.stack > * + * { margin-top: var(--space-4); }
.link-panel input { font-size: .85rem; margin-top: var(--space-3); }
.worker-search { display: flex; align-items: flex-start; gap: var(--space-4); margin-top: var(--space-5); }
.worker-search .field { flex: 1; }
.worker-search > button { margin-top: 1.9rem; }
.worker-results { margin-top: var(--space-5); }
.worker-result { padding: var(--space-5) 0; border-top: 1px solid var(--line); display: flex; gap: var(--space-5); align-items: flex-start; justify-content: space-between; }
.worker-result-content { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.worker-result h3 { margin-bottom: var(--space-2); }
.worker-result .actions { margin-top: 0; flex-shrink: 0; }
.worker-result p { margin: var(--space-2) 0 0; font-size: .875rem; }
.worker-result .badge { margin-top: var(--space-3); }
.app-footer { max-width: 1240px; padding: var(--space-3) var(--space-5); margin: 0 auto; color: var(--muted); font-size: .75rem; display: flex; justify-content: space-between; gap: var(--space-4); }
.app-footer span:last-child { display: none; }
noscript p { padding: var(--space-5); background: var(--danger-soft); color: var(--danger); }

@media (min-width: 1100px) {
  .invite-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
  .invite-layout > .panel:first-child { position: sticky; top: 5rem; }
  .invite-layout .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { padding: var(--space-4) var(--space-5); gap: 0; }
  .story-copy, .story-note { display: none; }
  .auth-content { padding: var(--space-5); justify-content: flex-start; }
  .workspace-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
  .app-header-inner { align-items: flex-start; padding: var(--space-4); flex-direction: column; gap: var(--space-4); }
  .brand { font-size: 1.1rem; }
  .session-nav { width: 100%; }
  .session-nav button { margin-left: auto; }
  .app-main { padding: var(--space-4) var(--space-3) var(--space-6); }
  .page-heading, .section-heading { align-items: stretch; flex-direction: column; }
  .section-heading .field { width: 100%; }
  .panel { padding: var(--space-4); }
  .portal-dialog > :not(.portal-toasts) { padding: var(--space-4); }
  .portal-dialog .actions { margin: var(--space-3) calc(-1 * var(--space-4)) calc(-1 * var(--space-4)); padding: var(--space-3) var(--space-4); }
  .app-footer { flex-direction: column; padding: var(--space-5) var(--space-4); }
  .tabs a { padding: .6rem .7rem; }
  .worker-search, .worker-result { flex-direction: column; align-items: stretch; }
  .worker-search > button { margin-top: 0; }
  .page-heading .button { align-self: flex-start; }
  .worker-search .field { margin-bottom: 0; }
  .mobile-only { display: inline-flex; margin: var(--space-3) 0; }
  .responsive-table, .responsive-table tbody { display: block; width: 100%; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .responsive-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
  .responsive-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .responsive-table td:first-child, .responsive-table td:last-child { grid-column: 1 / -1; }
  .responsive-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .75rem; font-weight: 400; margin-bottom: var(--space-2); }
  .responsive-table .empty-cell { grid-column: 1 / -1; }
  .responsive-table .actions { flex-wrap: wrap; }
  .responsive-table td button { min-height: 2.5rem; }
  .requests-table time { white-space: normal; }
  .accounts-table td:first-child { min-width: 0; }
  .workforce-office-details { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.notify { position: relative; }
.notify-button { position: relative; min-width: 2.5rem; padding: .45rem .6rem; }
.notify-icon { width: 1.1rem; height: 1.1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm7-6V11a7 7 0 0 0-5.5-6.84V3a1.5 1.5 0 0 0-3 0v1.16A7 7 0 0 0 5 11v5l-2 2v1h18v-1Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm7-6V11a7 7 0 0 0-5.5-6.84V3a1.5 1.5 0 0 0-3 0v1.16A7 7 0 0 0 5 11v5l-2 2v1h18v-1Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.notify-count { min-width: 1.2rem; padding: 0 .3rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; line-height: 1.2rem; text-align: center; }
.notify-panel { position: absolute; right: 0; top: calc(100% + var(--space-2)); z-index: 15; width: min(22rem, calc(100vw - 2rem)); max-height: min(70vh, 32rem); overflow-y: auto; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); }
.notify-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.notify-head h2 { margin: 0; font-size: 1rem; }
.notify-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.notify-item a { display: grid; gap: .1rem; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); border-left: .25rem solid transparent; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.notify-item a:hover, .notify-item a:focus-visible { background: var(--brand-soft); }
.notify-item.unread a { border-left-color: var(--brand); background: var(--canvas); }
.notify-item.unread strong::before { content: "New: "; color: var(--brand); }
.notify-desktop { width: 100%; justify-content: flex-start; margin-top: var(--space-2); font-size: .85rem; }
@media (max-width: 600px) { .notify-panel { position: fixed; left: 1rem; right: 1rem; top: auto; width: auto; } }
