:root { color-scheme: light; --ink: #242c2b; --muted: #596360; --line: #d6dedb; --paper: #f8faf9; --surface: #fff; --surface-muted: #edf2ef; --green: #236448; --soft-green: #e6f0e8; --red: #963b3b; --amber: #745c1c; --soft-red: #faeded; --soft-amber: #f6efda; --subtle: #f0f2f1; --input-border: #a6b4ad; --focus: #a16f13; }
:root[data-theme="dark"] { color-scheme: dark; --ink: #e4ece8; --muted: #aab8b1; --line: #3a4943; --paper: #141a18; --surface: #202925; --surface-muted: #293630; --green: #73c89a; --soft-green: #244534; --red: #f08b8b; --amber: #e5c66f; --soft-red: #482a2a; --soft-amber: #4a4024; --subtle: #29312e; --input-border: #60746a; --focus: #e7bb5e; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Trebuchet MS", "DejaVu Sans", sans-serif; font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--green); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.app-header { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px 32px; background: var(--surface); border-bottom: 1px solid var(--line); min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 700; white-space: nowrap; }
.brand-logo { width: auto; height: 24px; }
nav { display: flex; align-items: center; gap: 24px; flex: 1; }
nav a { color: var(--muted); text-decoration: none; padding-block: 8px; border-bottom: 2px solid transparent; }
nav a[aria-current="page"] { color: var(--green); border-color: var(--green); }
.main-nav { flex: 1; min-width: 0; }
.nav-list, .nav-group-menu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.main-nav a, .nav-group-toggle { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 14px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.main-nav svg { width: 18px; height: 18px; }
.main-nav a:hover, .nav-group-toggle:hover { color: var(--ink); background: var(--subtle); }
.main-nav a[aria-current="page"], .nav-group-toggle.active { color: var(--green); background: var(--soft-green); font-weight: 600; }
.nav-group { position: relative; }
.nav-group-toggle .nav-chevron { width: 16px; height: 16px; transition: transform 0.15s; }
.nav-group-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-group-label { display: none; }
.nav-group:last-child .nav-group-menu { left: auto; right: 0; }
.nav-group-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: 0 8px 20px #242c2b24; }
.nav-group-toggle[aria-expanded="true"] ~ .nav-group-menu { display: grid; gap: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .nav-toggle, .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }
@media (min-width: 1181px) and (max-width: 1319px) { .nav-list > li > a svg, .nav-group-toggle svg:first-child { display: none; } }
@media (max-width: 1180px) {
	.app-header { row-gap: 12px; }
	.header-actions .nav-toggle { display: inline-flex; }
	.main-nav { display: none; order: 3; flex-basis: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
	.app-header:has(.nav-toggle[aria-expanded="true"]) .main-nav { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav a { font-size: 15px; }
	.nav-group-toggle { display: none; }
	.nav-group-label { display: block; padding: 16px 12px 6px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; }
	.nav-group-menu { display: grid; gap: 2px; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
}
.workspace { width: min(1160px, 100%); padding: 44px 32px 72px; margin-inline: auto; flex: 1; }
.auth-layout { width: min(448px, 100%); padding: 76px 24px; margin-inline: auto; flex: 1; }
.auth-layout h1 { font-size: 30px; line-height: 1.2; margin-bottom: 32px; }
h1 { font-size: 28px; font-weight: 700; line-height: 1.25; margin: 0 0 24px; overflow-wrap: anywhere; }
h2 { font-size: 18px; font-weight: 700; margin: 0 0 20px; }
.section-mark { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 13px; margin-bottom: 20px; }
.form-stack { display: grid; gap: 24px; }
label { display: block; font-weight: 600; margin-bottom: 8px; }
input:not([type="checkbox"]), select { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--muted); border-radius: 4px; padding: 11px 12px; min-height: 46px; color: var(--ink); }
input:focus, select:focus { border-color: var(--green); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; cursor: pointer; font-weight: 600; text-align: center; }
.primary { color: white; background: var(--green); }
.primary:hover { background: #184f38; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); cursor: pointer; }
.icon-button:hover { color: var(--green); background: var(--soft-green); }
.theme-toggle [data-theme-icon="moon"] { display: none; }
:root[data-theme="dark"] .theme-toggle [data-theme-icon="sun"] { display: none; }
:root[data-theme="dark"] .theme-toggle [data-theme-icon="moon"] { display: block; }
.text-link { font-size: 14px; }
.flash { padding: 14px 16px; margin-bottom: 24px; border-left: 3px solid var(--green); background: var(--soft-green); overflow-wrap: anywhere; }
.flash.alert { background: var(--soft-red); border-color: var(--red); color: var(--red); }
.flash ul { margin: 0; padding-left: 18px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin: 0; }
.eyebrow { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.table-scroll { overflow-x: auto; position: relative; }
table { border-collapse: collapse; width: 100%; text-align: left; background: var(--surface); }
th { color: var(--muted); background: var(--surface-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
td, th { border-bottom: 1px solid var(--line); padding: 16px; }
td:first-child { overflow-wrap: anywhere; min-width: 180px; }
td:last-child { text-align: right; }
.status { display: inline-block; white-space: nowrap; padding: 4px 9px; font-size: 12px; border-radius: 4px; }
.status.active { color: var(--green); background: var(--soft-green); }
.status.inactive { color: var(--amber); background: var(--soft-amber); }
.status.leave { color: var(--muted); background: var(--subtle); }
.narrow-section { max-width: 480px; }
.account-email { overflow-wrap: anywhere; color: var(--muted); margin-bottom: 28px; }
.checkbox { display: flex; gap: 12px; align-items: center; font-weight: 400; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; }
dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
dt { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
dd { margin: 0; overflow-wrap: anywhere; }
.qr-code { display: block; max-width: 100%; height: auto; margin: 0 auto 24px; }
details { margin-bottom: 24px; }
summary { color: var(--muted); cursor: pointer; }
.setup-key { display: block; overflow-wrap: anywhere; margin-top: 12px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; gap: 12px; list-style: none; margin: 28px 0; }
.recovery-codes li { background: var(--surface); padding: 10px; border: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.app-footer { display: flex; justify-content: space-between; gap: 16px; padding: 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; background: linear-gradient(110deg, var(--soft-green), var(--surface) 70%, var(--paper)); }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { padding: 12px; background: var(--surface); }
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter-bar label { font-size: 12px; color: var(--muted); }
.filter-bar .search-field { grid-column: span 2; }
.filter-actions { display: flex; gap: 8px; align-items: center; min-height: 46px; }
.filter-bar.compact { display: flex; gap: 16px; flex-wrap: wrap; }
.filter-bar.compact > div { min-width: 200px; }
.directory-table { font-size: 14px; }
.directory-table td { text-align: left; vertical-align: top; overflow-wrap: anywhere; max-width: 300px; }
.directory-table .record-name { font-weight: 600; }
.secondary-text { color: var(--muted); font-size: 13px; display: block; overflow-wrap: anywhere; }
.label-list { display: flex; flex-wrap: wrap; gap: 6px; }
.label { font-size: 12px; background: var(--soft-green); padding: 3px 7px; color: var(--green); border-radius: 3px; overflow-wrap: anywhere; }
.label.subtle { color: var(--muted); background: var(--subtle); }
.label.chapter { white-space: nowrap; overflow-wrap: normal; }
.empty-state { color: var(--muted); padding: 32px 0; margin: 0; }
.list-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; color: var(--muted); font-size: 13px; }
.pagination { flex: 0 1 auto; gap: 12px; }
.secondary { color: var(--green); border-color: var(--line); background: var(--surface); }
.secondary:hover { background: var(--soft-green); }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 13px; }
.detail-section { padding-block: 28px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.directory-form { max-width: 900px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; min-width: 0; }
legend { font-weight: 700; padding-right: 16px; font-size: 16px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.checkbox-grid label { min-height: 44px; margin: 0; overflow-wrap: anywhere; }
.checkbox-item { display: flex; align-items: center; gap: 4px; min-width: 0; }
.info-button { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: var(--green); background: transparent; cursor: pointer; }
.info-button:hover { background: var(--soft-green); }
.info-button svg { width: 18px; height: 18px; }
.info-popover { max-width: min(440px, calc(100vw - 32px)); padding: 16px 20px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--surface); box-shadow: 0 8px 20px #242c2b24; }
.info-popover p { margin: 8px 0 0; line-height: 1.5; }
.duplicate-dialog { max-width: min(560px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--surface); box-shadow: 0 8px 20px #242c2b24; }
.duplicate-dialog::backdrop { background: #242c2b66; }
.duplicate-dialog h2 { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; font-size: 18px; }
.duplicate-dialog h2 svg { color: var(--amber); }
.duplicate-list { margin: 12px 0 20px; padding-left: 20px; }
.duplicate-list li { margin-bottom: 8px; }
.duplicate-list small { display: block; }
input[type="checkbox"] { flex: 0 0 20px; }
textarea { width: 100%; border: 1px solid var(--input-border); border-radius: 4px; padding: 12px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.section-tabs { flex-wrap: wrap; gap: 24px; padding-bottom: 28px; }
.issue-list { list-style: none; padding: 0; margin: 0; }
.issue-list li { border-top: 1px solid var(--line); padding-block: 20px; }
.review-detail { white-space: pre-wrap; overflow-wrap: anywhere; }
.event-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event-history .event-summary { margin-bottom: 28px; }
.input-with-action { display: flex; gap: 12px; align-items: stretch; }
.input-with-action input { flex: 1; min-width: 0; }
@media (max-width: 640px) { .input-with-action { flex-direction: column; } }
.evaluation-table meter { width: 100%; min-width: 120px; height: 12px; }
.evaluation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.evaluation-grid h4 { margin: 0 0 8px; }
.evaluation-list { display: block; columns: 220px; column-gap: 40px; }
.evaluation-list div { display: flex; justify-content: space-between; gap: 12px; padding-block: 4px; border-bottom: 1px solid var(--line); break-inside: avoid; }
.evaluation-list dt { margin: 0; }
.evaluation-list dd { font-variant-numeric: tabular-nums; }
.event-summary dd { font-size: 20px; font-weight: 600; }
.roster-times { min-width: 150px; margin: 0; }
.roster-times dl { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.roster-pending { color: var(--amber); margin-bottom: 24px; }
.danger { color: var(--red); border-color: var(--red); background: var(--surface); }
.privacy-command { margin: 0; max-width: 100%; }
.privacy-command .button { max-width: 100%; white-space: normal; }
.detail-section details > form { margin-top: 20px; }
.export-payload { font-family: monospace; font-size: 13px; overflow-wrap: anywhere; }
.mobile-label { display: none; }
.insight-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-block: 20px; border-block: 1px solid var(--line); margin-bottom: 28px; }
.insight-summary > div { display: grid; align-content: start; gap: 8px; min-width: 0; }
.insight-summary span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.insight-summary strong { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.insight-summary > div:nth-child(4n) strong { color: var(--amber); }
.insight-summary > div:nth-child(4n + 1) strong { color: var(--green); }
.insight-table td { min-width: 130px; }
.company-picker { position: relative; }
.company-options { position: absolute; top: 100%; inset-inline: 0; z-index: 5; margin: 0; padding: 4px; list-style: none; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 6px 12px #242c2b18; }
.company-options li { padding: 10px; min-height: 44px; overflow-wrap: anywhere; cursor: pointer; }
.company-options li:hover, .company-options li[aria-selected="true"] { background: var(--soft-green); }
.record-form { max-width: 760px; display: grid; gap: 24px; }
.record-form .check-option { display: inline-flex; align-items: center; gap: 10px; margin-right: 24px; min-height: 44px; }
.record-form input[type="radio"] { width: 20px; min-height: 20px; accent-color: var(--green); }
.record-form .detail-list { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.error-summary { border-left: 3px solid var(--red); padding: 12px; background: var(--soft-red); }
@media (max-width: 640px) { .insight-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .insight-filters > div { min-width: 0; } }
@media (max-width: 640px) {
	.roster-table, .roster-table tbody { display: block; }
	.roster-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); }
	.roster-table tr { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px 12px; border-bottom: 1px solid var(--line); padding: 16px; }
	.directory-table.roster-table td { display: block; min-width: 0; max-width: none; padding: 4px 0; border: 0; grid-column: 1 / -1; }
	.roster-table td:first-child { grid-column: 1; grid-row: 1; align-self: center; }
	.roster-table td:last-child { grid-column: 2; grid-row: 1; }
	.roster-table .status { white-space: normal; }
	.mobile-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
	.roster-times summary { padding-block: 10px; }
}
@media (max-width: 640px) { .event-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dashboard-group { margin-bottom: 28px; }
.dashboard-group h2 { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.directory-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.directory-summary a { display: grid; grid-template-columns: 24px 1fr; align-content: start; gap: 8px 12px; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); text-decoration: none; }
.directory-summary a:hover { background: var(--soft-green); }
.directory-summary strong { color: var(--ink); font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.directory-summary span { grid-column: 2; color: var(--muted); font-size: 13px; }

@media (max-width: 1000px) { .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .filter-bar, .form-grid, .checkbox-grid { grid-template-columns: 1fr; } .filter-bar .search-field { grid-column: auto; } .filter-bar.compact > div { min-width: 0; flex: 1; } .directory-summary { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .directory-summary a { padding: 12px; } .directory-summary span { grid-column: 1 / -1; } .section-tabs { gap: 16px; } .page-heading .actions { gap: 12px; } .directory-table td { padding: 12px; } .section-heading .button { max-width: 100%; } }
@media (max-width: 640px) { .app-header { padding: 16px 20px; gap: 12px; } .brand { font-size: 20px; } nav:not(.main-nav) { font-size: 14px; gap: 20px; } .workspace { padding: 28px 20px 48px; } .auth-layout { padding-top: 48px; } h1 { font-size: 25px; } .app-footer { padding: 20px; flex-wrap: wrap; } dl { grid-template-columns: 1fr; } .recovery-codes { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .app-header[data-controller] .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; } }
