:root {
  color-scheme: light;
  --ink: #172d32;
  --muted: #5d7074;
  --brand: #176a60;
  --brand-hover: #10574f;
  --mint: #e7f3ed;
  --paper: #f5f7f5;
  --line: #dfe6e2;
  --danger: #a63c36;
  /* Compatibility aliases used by patient workflow modules. */
  --accent: var(--brand);
  --surface: #fff;
  --border: var(--line);
  --subtle: var(--paper);
  --warning: #9a6700;
  --radius: 14px;
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 3px solid #79bfa7; outline-offset: 3px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -.04em; line-height: 1.2; margin-bottom: 10px; }
h2 { font-size: 19px; letter-spacing: -.025em; line-height: 1.4; margin-bottom: 16px; }
h3 { font-size: 15px; margin: 24px 0 12px; }
h4 { font-size: 13px; margin: 20px 0 10px; }
p { margin-bottom: 16px; }
small, .small { font-size: 12px; }
.muted, .field-hint { color: var(--muted); }
.eyebrow { text-transform: uppercase; font-size: 10px; font-weight: 650; letter-spacing: .15em; margin-bottom: 18px; }
.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; }
.primary, .secondary, .danger, .quiet-button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: 12px;
  padding: 10px 16px; min-height: 42px; border: 1px solid transparent; border-radius: 8px;
  font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s;
}
.primary { background: var(--brand); color: white; }
.primary:hover:not(:disabled) { background: var(--brand-hover); }
.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.secondary:hover:not(:disabled) { border-color: #a3bdb1; background: #f1f7f3; }
.danger { background: #fff; border-color: #e6c2bd; color: var(--danger); }
.quiet-button { color: var(--muted); background: none; font-weight: 500; padding: 8px; }
.quiet-button:hover { color: var(--ink); background: #f0f4f0; }
.wide { width: 100%; }
.primary.wide { justify-content: space-between; padding: 12px 18px; }
.text-link { color: var(--brand); font-weight: 600; }
button.text-link { border: 0; background: transparent; padding: 0; text-align: inherit; }
.text-link:hover { text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 18px; }
input, select, textarea { width: 100%; border: 1px solid #cfdad4; border-radius: 8px; padding: 11px 12px; color: var(--ink); background: white; font-weight: 400; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); }
input[readonly] { background: #f4f6f4; color: var(--muted); }
input::placeholder, textarea::placeholder { color: #9aa8a6; }
textarea { resize: vertical; min-height: 112px; }
.field-hint { font-size: 11px; margin-top: -10px; }
.locale-control { display: block; width: 116px; flex-shrink: 0; }
.locale-control select { font-size: 12px; border-color: transparent; background: transparent; padding: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--brand); background: var(--mint); border-radius: 6px; padding: 4px 9px; font-size: 11px; font-weight: 600; }
.badge-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-list > .badge { max-width: 100%; overflow-wrap: anywhere; }
.notice { padding: 13px 16px; border: 1px solid #d3e7db; border-radius: 8px; color: #326256; background: #eff8f1; font-size: 13px; }
.error { color: var(--danger); font-size: 13px; }
.form-error { min-height: 0; margin: 4px 0 12px; }
.form-error:empty { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; font-size: 26px; font-weight: 650; letter-spacing: -.065em; }
.brand-mark { display: block; width: 35px; height: 35px; object-fit: contain; flex: 0 0 35px; }
.brand-product { display: block; font-size: 9px; letter-spacing: .35em; margin-top: -8px; font-weight: 500; }
.brand-dark { color: var(--brand); }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #8ebc9c; border-radius: 50%; margin-right: 8px; }
.auth-layout { display: grid; grid-template-columns: 1.04fr 1fr; min-height: 100vh; background: white; }
.brand-panel { background: #193c37; color: #f4f8ef; display: flex; flex-direction: column; padding: 42px clamp(32px, 6vw, 88px); position: relative; overflow: hidden; }
.brand-panel::after { content: ''; position: absolute; height: 440px; width: 440px; border: 1px solid #5a817045; border-radius: 50%; left: -245px; bottom: -230px; box-shadow: 0 0 0 44px #557b6820, 0 0 0 88px #557b6812; pointer-events: none; }
.brand-story { margin: auto 0; padding: 75px 0; z-index: 1; }
.brand-story .eyebrow { color: #a7c6b2; }
.brand-story h1 { font-weight: 450; font-size: clamp(35px, 4.2vw, 60px); letter-spacing: -.055em; line-height: 1.12; margin: 24px 0; }
.brand-copy { max-width: 420px; color: #b6ccc2; font-size: 15px; line-height: 1.8; }
.brand-steps { border-top: 1px solid #497161; padding-top: 28px; margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand-steps strong { display: block; font-weight: 550; font-size: 13px; margin: 10px 0 5px; }
.brand-steps p { color: #a8c1b5; font-size: 11px; line-height: 1.7; }
.step-number { font-size: 10px; color: #8ca996; }
.brand-footer { font-size: 11px; color: #a9c2b5; margin-bottom: 0; z-index: 1; }
.auth-main { padding: 28px clamp(24px, 6vw, 85px); display: flex; flex-direction: column; }
.auth-top { display: flex; justify-content: flex-end; }
.auth-form { max-width: 390px; width: 100%; margin: auto; padding: 40px 0; }
.auth-form h2 { font-size: 32px; letter-spacing: -.055em; margin-bottom: 12px; }
.auth-form .eyebrow { color: var(--brand); font-size: 9px; }
.auth-form > .muted { margin-bottom: 28px; font-size: 13px; line-height: 1.7; }
.auth-form .field { margin-bottom: 17px; }
.auth-form input { padding: 12px; }
.auth-form form .primary { margin-top: 4px; }
.auth-switch { text-align: center; font-size: 12px; margin: 26px 0 0; color: var(--muted); }
.auth-switch a { margin-left: 4px; }
.forgot-link { display: block; text-align: right; font-size: 11px; margin: -3px 0 22px; }
.back-link { display: block; text-align: center; font-size: 12px; margin-top: 20px; }
.auth-footer { text-align: center; color: #94a29b; font-size: 10px; margin: 22px 0 0; }
.app-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar { min-width: 0; min-height: 0; background: #fcfdfb; border-right: 1px solid var(--line); padding: 29px 17px 24px; display: flex; flex-direction: column; }
.sidebar .brand { margin: 0 14px; font-size: 25px; flex-shrink: 0; }
.sidebar-label { margin: 21px 14px 26px; font-size: 10px; line-height: 1.7; color: var(--muted); max-width: 150px; }
.sidebar nav { display: flex; flex-direction: column; gap: 7px; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.nav-item { display: flex; align-items: center; gap: 12px; border-radius: 8px; padding: 12px 14px; color: #6a7a75; font-size: 12px; }
.nav-item:hover { background: #eff4ef; }
.nav-item.active { color: #1b6251; background: #e6f0e7; font-weight: 650; }
.nav-icon { font-size: 18px; width: 18px; line-height: 1; text-align: center; }
.app-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.topbar { position: relative; z-index: 50; min-height: 80px; padding: 18px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-bottom: 1px solid var(--line); }
.page-scroll { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior-y: contain; scroll-padding-block: 24px; scrollbar-gutter: stable; }
.app-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 10px 24px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fcfdfb; color: var(--muted); font-size: 10px; }
.workspace-name { font-size: 12px; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #e6ede1; color: #627455; display: grid; place-items: center; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.user-summary { display: flex; flex-direction: column; line-height: 1.5; }
.user-summary strong { font-size: 11px; font-weight: 600; }
.user-summary small { font-size: 9px; color: var(--muted); }
.content { min-width: 0; padding: 36px clamp(22px, 3.3vw, 52px); max-width: 1500px; margin: 0 auto; }
.content > .card + .card { margin-top: 24px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-head p { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; min-width: 0; box-shadow: 0 2px 4px #284a3410; }
.card > :last-child { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.grid .card { padding: 24px; }
.grid .card h2 { font-size: 15px; }
.two-column { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 24px; align-items: start; }
.two-column > aside { position: sticky; top: 20px; }
.toolbar, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar { margin: 16px 0 22px; }
.toolbar .field { margin-bottom: 0; flex: 1 1 140px; }
.toolbar .field:first-child { flex: 2 1 180px; }
.actions { margin-top: 20px; }
.table-wrap { overflow: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th,td { padding: 14px 12px; text-align: left; border-bottom: 1px solid #e8ede8; vertical-align: middle; }
th:first-child,td:first-child { padding-left: 0; }
th { font-size: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; }
td { overflow-wrap: anywhere; }
td:first-child { font-weight: 550; }
td .secondary { padding: 5px 9px; min-height: 30px; font-size: 10px; margin: 3px 0; white-space: nowrap; overflow-wrap: normal; }
/* Short categorical values must not split within a word; table-wrap owns overflow. */
.users-table td.user-role, .users-table td.user-status,
.members-table td.member-role, .members-table td.member-status,
.users-table td.user-status .badge, .members-table td.member-status .badge { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 12px; }
.evidence-list, .list { margin: 0; padding: 0; list-style: none; }
.evidence-list > li, .list > li { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.evidence-list > li:last-child, .list > li:last-child { border-bottom: none; }
.list > li { line-height: 1.8; }
.list button { max-width: 100%; overflow-wrap: anywhere; }
.conversation { max-height: 440px; overflow: auto; }
.message { padding: 18px; border-radius: 10px; background: #f3f6f2; border: 1px solid #e6eee5; margin: 16px 0; font-size: 13px; }
.message strong { color: var(--brand); font-size: 10px; letter-spacing: .03em; }
.message p { margin: 5px 0 15px; }
.message .muted { font-size: 10px; margin-bottom: 0; }
#proposition-list { gap: 10px; }
#proposition-list button { text-align: left; justify-content: flex-start; }
#trace { overflow-wrap: anywhere; max-height: 70vh; overflow: auto; margin-top: 20px; font-size: 12px; }
#trace ul { list-style: none; padding-left: 12px; border-left: 1px solid #d9e6dc; margin-left: 0; }
.trace-node { padding: 10px 0 10px 10px; }
.trace-node > strong { font-size: 10px; color: var(--brand); }
.trace-node p { font-size: 11px; margin: 8px 0; color: var(--muted); }
.trace-node .muted { font: 10px/1.7 ui-monospace, monospace; }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: 0 25px 80px #173b3445; width: min(500px,calc(100vw - 32px)); max-height: calc(100vh - 50px); color: var(--ink); }
dialog::backdrop { background: #183b3655; backdrop-filter: blur(2px); }
dialog h2 { margin-bottom: 24px; }
dialog .actions { justify-content: flex-end; }
dialog[data-dialog="mailbox"] { width: min(900px, calc(100vw - 32px)); max-width: 900px; }
dialog[data-dialog="mailbox"] form { display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.mailbox-layout { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 18px; min-height: 220px; }
dialog[data-dialog="mailbox"] .mailbox-layout { flex: 1 1 auto; min-height: 0; overflow: auto; }
.mailbox-list { max-height: 420px; overflow: auto; }
.mailbox-list button { display: block; width: 100%; text-align: left; white-space: normal; overflow-wrap: break-word; word-break: normal; }
.mailbox-list button strong, .mailbox-list button span { display: block; }
.mailbox-list button span { margin-top: 4px; }
.mailbox-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 16px; font-size: 12px; overflow-wrap: anywhere; }
.mailbox-meta dt { color: var(--muted); }
.mailbox-meta dd { margin: 0; }
@media(max-width:650px) { dialog[data-dialog="mailbox"] { width: min(calc(100vw - 32px), 900px); } .mailbox-layout { grid-template-columns: 1fr; } .mailbox-list { max-height: 220px; } }
.notifications { position: fixed; right: 24px; bottom: 24px; z-index: 1000; width: min(410px,calc(100vw - 48px)); display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: flex-start; gap: 18px; border: 1px solid #d2e3d7; padding: 14px 16px; background: #f5fcf6; border-radius: 10px; box-shadow: 0 8px 30px #284a3420; color: #28553e; font-size: 12px; }
.toast.error { color: #843b35; background: #fff6f3; border-color: #edd4c9; }
.toast button { padding: 0; background: none; border: 0; font-size: 20px; margin-left: auto; color: inherit; }
.boot-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; color: var(--muted); }
@media(min-width:1600px) { .content { padding-top: 48px; } }
@media(max-width:1100px) { .app-layout { grid-template-columns: 190px minmax(0,1fr); } .sidebar { padding-left: 12px; padding-right: 12px; } .nav-item { font-size: 11px; gap: 9px; padding-left: 10px; } .content { padding: 28px 24px; } .topbar { padding: 16px 24px; } .user-summary { display: none; } .two-column { grid-template-columns: 1fr; } .two-column > aside { position: static; } .grid { gap: 12px; } .grid .card { padding: 18px; } }
@media(max-width:800px) { .auth-layout { grid-template-columns: .86fr 1fr; } .brand-panel { padding: 30px 25px; } .brand-story h1 { font-size: 37px; } .brand-steps { grid-template-columns: 1fr; gap: 7px; padding-top: 18px; margin-top: 28px; } .brand-steps > div { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; } .brand-steps strong { margin: 0; } .brand-steps p { grid-column: 2; margin: 3px 0 8px; } .auth-main { padding: 22px; } .auth-form h2 { font-size: 28px; } .app-layout { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; padding: 16px 20px 10px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar .brand { font-size: 21px; margin: 0; } .sidebar .brand-mark { width: 30px; height: 30px; flex-basis: 30px; } .sidebar-label { display: none; } .sidebar nav { flex-direction: row; overflow: auto; margin-top: 14px; gap: 3px; } .nav-item { flex-shrink: 0; padding: 10px; font-size: 11px; } .nav-icon { display: none; } .topbar { min-height: 62px; padding: 12px 22px; } .workspace-name { font-size: 11px; } .topbar-actions { gap: 8px; } .locale-control { width: 100px; } .content { padding: 28px 22px; } .page-head { align-items: flex-start; } .card { padding: 22px; } .grid { grid-template-columns: 1fr; } .grid .card { padding: 22px; } }
@media(max-width:550px) { .auth-layout { grid-template-columns: 1fr; } .brand-panel { padding: 25px; min-height: 250px; } .brand-story { padding: 26px 0 0; } .brand-story .eyebrow { display: none; } .brand-story h1 { font-size: 32px; margin: 0; } .brand-copy,.brand-steps,.brand-footer { display: none; } .auth-main { padding: 15px 25px 25px; min-height: calc(100vh - 250px); } .auth-form { padding: 25px 0; } .auth-form .eyebrow { display: none; } .workspace-name { display: none; } .topbar-actions { width: 100%; justify-content: flex-end; } .content { padding: 22px 16px; } .card { padding: 18px; } .page-head { flex-direction: column; gap: 16px; } .page-head h1 { font-size: 26px; } .toolbar { gap: 8px; } .toolbar button { flex-grow: 1; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; scroll-behavior: auto !important; } }
@media(max-width:800px) { .app-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); } .app-footer { padding-left: 16px; padding-right: 16px; } }

/* Shared form controls: keep browser semantics without platform-specific chrome. */
input, textarea, select, .select-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d4dfd9;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px #173b3405;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover:not(:disabled):not([readonly]), textarea:hover:not(:disabled), .select-trigger:hover:not(:disabled) { border-color: #a6bbb0; }
input:focus, textarea:focus, select:focus, .select-trigger:focus-visible, .select-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #176a6014;
}
input:disabled, textarea:disabled, .select-trigger:disabled { background: #f2f5f2; color: #7b8b83; border-color: #e1e8e3; cursor: not-allowed; opacity: .72; }
input[readonly] { background: #f6f8f5; border-color: #e3e9e3; }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 1000px #f3f9f5 inset; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
textarea { line-height: 1.65; }
[hidden], .select-native { display: none !important; }
.select-control { position: relative; min-width: 0; width: 100%; font-weight: 400; }
.select-control:has(.select-trigger[aria-expanded="true"]) { z-index: 30; }
.select-trigger { display: flex; align-items: center; gap: 18px; justify-content: space-between; width: 100%; min-height: 44px; padding: 10px 13px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-chevron { flex-shrink: 0; width: 7px; height: 7px; border-right: 1.5px solid #70897d; border-bottom: 1.5px solid #70897d; transform: translateY(-2px) rotate(45deg); font-size: 0; transition: transform .15s; margin-right: 3px; }
[aria-expanded="true"] .select-chevron { transform: translateY(2px) rotate(225deg); }
.select-menu { position: absolute; z-index: 40; top: calc(100% + 7px); left: 0; width: 100%; min-width: 150px; max-width: calc(100vw - 32px); max-height: min(260px, 45vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid #dce7df; border-radius: 12px; background: #fff; box-shadow: 0 12px 34px #193c371a, 0 2px 6px #193c3708; color: var(--ink); text-align: left; font-size: 13px; font-weight: 400; }
.opens-up .select-menu { top: auto; bottom: calc(100% + 7px); }
.select-option { position: relative; padding: 10px 34px 10px 12px; border-radius: 7px; min-height: 39px; display: flex; align-items: center; cursor: pointer; line-height: 1.5; }
.select-option + .select-option { margin-top: 3px; }
.select-option:hover, .select-option.is-active { background: #f1f6f2; }
.select-option[aria-selected="true"] { color: var(--brand); background: #eaf4ed; font-weight: 600; }
.select-option[aria-selected="true"]::after { content: ''; position: absolute; right: 14px; top: calc(50% - 6px); width: 5px; height: 9px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(45deg); }
.select-option[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.locale-control { width: 126px; }
.locale-control .select-trigger { font-size: 12px; min-height: 38px; padding: 8px 12px; background: #ffffffb3; border-color: #e0e8e2; }
.locale-control .select-trigger:hover, .locale-control .select-trigger[aria-expanded="true"] { border-color: #88ad9b; }
.locale-control .select-menu { left: auto; right: 0; min-width: 170px; }
.field:has([aria-invalid="true"]) { margin-bottom: 6px; }
.field-error { display: block; color: var(--danger); font-size: 11px; line-height: 1.5; margin: 0 0 17px; }
input[aria-invalid="true"], textarea[aria-invalid="true"], .select-trigger[aria-invalid="true"] { border-color: #c5766e; background: #fffcfa; }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus, .select-trigger[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px #a63c3610; }
.confirmation-dialog { max-width: 460px; }
.confirmation-dialog h2 { margin-bottom: 12px; }
.confirmation-dialog p { font-size: 13px; line-height: 1.7; }
.confirmation-dialog .danger { color: white; background: #a63c36; border-color: #a63c36; }
.confirmation-dialog .danger:hover { background: #8d302c; }
.confirmation-dialog .actions { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
@media (forced-colors: active) { .select-trigger, .select-menu { border: 1px solid ButtonText; } .select-option.is-active { outline: 1px solid Highlight; } }
@media (max-width:800px) { .table-wrap table { min-width: 680px; } }
@media (max-width:550px) {
  .table-wrap .users-table { min-width: 760px; }
  .table-wrap .users-table th, .table-wrap .users-table td { white-space: nowrap; overflow-wrap: normal; }
  .table-wrap .users-table th:nth-child(1), .table-wrap .users-table td:nth-child(1) { min-width: 130px; }
  .table-wrap .users-table th:nth-child(2), .table-wrap .users-table td:nth-child(2) { min-width: 220px; }
  .table-wrap .users-table th:nth-child(3), .table-wrap .users-table td:nth-child(3) { min-width: 115px; }
  .table-wrap .users-table th:nth-child(4), .table-wrap .users-table td:nth-child(4) { min-width: 105px; }
  .table-wrap .users-table th:nth-child(5), .table-wrap .users-table td:nth-child(5) { min-width: 105px; }
  .table-wrap .users-table th:nth-child(6), .table-wrap .users-table td:nth-child(6) { min-width: 240px; }
}
@media (prefers-reduced-motion: reduce) { input, textarea, select, .select-trigger, .select-chevron { transition: none; } }

/* Real-media research workflow */
.capture-card { margin-bottom: 24px; }
.capture-card h3 { margin-top: 28px; }
.capture-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.check-field { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check-field input[type="checkbox"] { appearance: none; flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; padding: 0; border: 1.5px solid #bcc9c4; border-radius: 5px; margin: 2px 0 0; background: white; cursor: pointer; }
.check-field input[type="checkbox"]:checked { background: #246c57; border-color: #246c57; box-shadow: inset 0 0 0 3px white; }
.check-field input[type="checkbox"]:focus-visible { outline: 3px solid #8dbfaf; outline-offset: 3px; }
.capture-card input[type="file"] { padding: 8px; max-width: 100%; font-size: 13px; }
.capture-card input::file-selector-button { border: 0; border-radius: 6px; padding: 8px 12px; margin-right: 10px; background: #edf3ef; color: #295d4e; cursor: pointer; font: inherit; }
.capture-card video { width: 100%; max-height: 420px; background: #192b25; border-radius: 12px; margin: 20px 0; }
.capture-card video[hidden] { display: none; }
.coverage-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 0 12px; }
.capture-card .evidence-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; }
.profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.session-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line,#d9e2df); }
.session-row > div, .session-row > span { min-width:0; overflow-wrap:anywhere; }
.session-row > button { flex-shrink:0; }
.session-row small { display:block; max-width:28rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted,#697572); }
@media (max-width:735px) { .profile-grid { grid-template-columns:1fr; } .session-row { align-items:flex-start; } .session-row small { max-width:13rem; } }

.member-filters { flex-wrap: wrap; }
.member-filters .field:first-child { flex: 2 1 220px; }
.member-filters .field { flex: 1 1 140px; }
.member-filters > button { align-self: center; }
