:root { --ink: #242c2b; --muted: #596360; --line: #d6dedb; --paper: #f8faf9; --green: #236448; --soft-green: #e6f0e8; --red: #963b3b; --amber: #745c1c; }
* { 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 #a16f13; outline-offset: 3px; }
.app-header { display: flex; align-items: center; gap: 36px; padding: 20px 40px; background: white; 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 svg { width: 28px; height: 28px; color: var(--green); }
.brand small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 5px; }
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); }
.app-header > form { margin-left: auto; }
.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: white; border: 1px solid #a6b4ad; 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); }
.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: #faeded; 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: white; }
th { color: var(--muted); background: #edf2ef; 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: #f6efda; }
.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; }
.account-section { padding-block: 10px 32px; border-bottom: 1px solid var(--line); }
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; }
.directory-link { display: flex; gap: 16px; align-items: center; padding-block: 28px; text-decoration: none; max-width: 480px; }
.directory-link span { flex: 1; }
.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: white; 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, #eff5f0, #f5f5f3 70%, #f2f0ea); }
.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: white; }
.app-header { flex-wrap: wrap; gap: 24px; }
.app-header nav { flex-wrap: wrap; gap: 18px; font-size: 14px; }
.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: #f0f2f1; }
.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: white; }
.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; }
input[type="checkbox"] { flex: 0 0 20px; }
textarea { width: 100%; border: 1px solid #a6b4ad; border-radius: 4px; padding: 12px; background: white; 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-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: #fff; }
.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: white; 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: #faeded; }
@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)); } }
.directory-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; padding: 0 0 32px; }
.directory-summary a { display: grid; grid-template-columns: 24px 1fr; gap: 8px 12px; text-decoration: none; }
.directory-summary strong { color: var(--ink); font-size: 24px; line-height: 1; }
.directory-summary span { grid-column: 2; color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) { .app-header nav { order: 3; flex-basis: 100%; } .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: 24px; grid-template-columns: 1fr; } .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: 18px; flex-wrap: wrap; } .brand { font-size: 20px; } nav { order: 3; flex-basis: 100%; 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; } }
