:root {
  color-scheme: light;
  --white: #fff;
  --ink: #243b45;
  --muted: #52626b;
  --gold: #b38a39;
  --gold-dark: #735319;
  --line: #d1b779;
  --soft-line: #e6dcc6;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--white); font-size: 1rem; line-height: 1.6; }
a { color: var(--gold-dark); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea, [tabindex] { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; color: #626d72; border-color: #c7c9c9; box-shadow: none; }
main { max-width: 1240px; margin: auto; padding: 0 36px 80px; }
main:focus { outline: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.025em; margin: 0 0 1rem; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); max-width: 900px; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; }
small, .small { font-size: .9rem; color: var(--muted); }
.small { line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 20px; top: -120px; padding: 14px 20px; z-index: 10; background: var(--white); border: 2px solid var(--gold-dark); }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1440px; margin: auto; padding: 24px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--soft-line); }
.wordmark { display: flex; align-items: baseline; gap: 9px; text-decoration: none; color: var(--ink); }
.wordmark > span { color: var(--white); -webkit-text-stroke: 2px var(--gold-dark); paint-order: stroke fill; text-shadow: 0 2px 0 var(--gold-dark), 0 3px 0 var(--line); font-size: 1.8rem; font-weight: 750; letter-spacing: -.035em; }
.wordmark small { font-size: .8rem; color: var(--gold-dark); white-space: nowrap; }
.site-header nav a { display: inline-block; padding: 10px 0; font-size: .94rem; }
.demo-banner { padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--white); color: var(--gold-dark); text-align: center; font-size: .9rem; font-weight: 600; }
.hero { position: relative; padding: 62px 0 38px; }
.hero::after { content: ""; display: block; width: 84px; border-top: 2px solid var(--gold); margin-top: 30px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 650; color: var(--gold-dark); margin-bottom: 16px; }
.gold-mark { border: 1.5px solid var(--gold); width: 10px; height: 10px; transform: rotate(45deg); flex: 0 0 auto; }
.hero-intro { font-size: 1.15rem; max-width: 680px; margin-bottom: 16px; color: var(--muted); }
.context-line { font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; margin: 0; }
.panel { border: 1px solid var(--soft-line); background: var(--white); border-radius: 22px; padding: 32px; margin-top: 26px; box-shadow: 0 8px 30px #243b4505; }
.access-panel { display: flex; align-items: flex-start; gap: 22px; max-width: 800px; margin: 0 0 50px; }
.section-number { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-dark); font-size: .9rem; font-variant-numeric: tabular-nums; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.heading-with-number { display: flex; align-items: center; gap: 16px; }
.heading-with-number .eyebrow { margin-bottom: 6px; }
.heading-with-number h2 { margin-bottom: 0; }
.section-intro { max-width: 850px; color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 10px 18px; background: var(--white); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; line-height: 1.4; text-align: center; }
.button:hover:not(:disabled) { border-color: var(--gold-dark); box-shadow: 0 0 0 1px var(--gold-dark); }
.button-primary { border: 2px solid var(--gold-dark); padding: 9px 17px; }
.button-quiet { border-color: transparent; color: var(--gold-dark); text-decoration: underline; text-underline-offset: 4px; }
.notice { border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); padding: 16px 20px; margin: 0 0 24px; border-radius: 10px; background: var(--white); overflow-wrap: anywhere; }
.notice-error { border-inline-start-style: double; border-inline-start-width: 6px; border-color: var(--gold-dark); }
.overview { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--soft-line); padding-block: 25px; }
.stat { padding: 0 24px; border-inline-start: 1px solid var(--soft-line); }
.stat:first-child { padding-inline-start: 0; border: 0; }
.stat p { color: var(--muted); font-size: .92rem; margin-bottom: 2px; }
.stat strong { display: block; font-size: 2.55rem; line-height: 1.3; font-weight: 550; font-variant-numeric: tabular-nums; }
.stat small { display: block; font-size: .82rem; }
.declaration-note { font-size: .86rem; color: var(--muted); margin: 14px 0 30px; max-width: 870px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.import-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 26px; margin: 24px 0; }
label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 9px; }
input, select, textarea { width: 100%; max-width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 46px; }
input::placeholder, textarea::placeholder { color: #5f6e76; opacity: 1; }
textarea { resize: vertical; min-height: 180px; font-family: ui-monospace, Consolas, monospace; font-size: .94rem; line-height: 1.6; }
code { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.file-card { border: 1px dashed var(--line); border-radius: 14px; padding: 22px; align-self: stretch; }
input[type="file"] { border: 0; border-radius: 0; padding: 0; font-size: .88rem; min-height: 48px; }
input::file-selector-button { font: inherit; color: var(--ink); min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); margin-right: 9px; cursor: pointer; }
.file-card p:last-child { margin-bottom: 0; }
#file-name { overflow-wrap: anywhere; }
.text-entry .small { margin: 7px 0 0; }
.import-note { border-top: 1px solid var(--soft-line); margin: 22px 0 0; padding-top: 18px; font-size: .9rem; color: var(--muted); }
.preview { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.validation-errors { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.validation-errors h4 { margin-bottom: 8px; }
.validation-errors ul { padding-left: 22px; margin: 0; }
.validation-errors li { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--soft-line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .92rem; }
th, td { padding: 16px; border-bottom: 1px solid var(--soft-line); vertical-align: top; }
th { color: var(--gold-dark); font-size: .8rem; font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }
td { overflow-wrap: anywhere; }
.person-name { display: block; font-weight: 600; }
.person-email { display: block; font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.badge-list { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: .78rem; line-height: 1.5; }
.badge-revoked { border-style: dashed; }
.row-errors { margin: 8px 0 0; padding-left: 18px; font-size: .84rem; }
.commit-actions { margin-top: 20px; }
.commit-actions p { flex: 1; min-width: min(100%, 240px); margin: 0; }
.member-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 230px); gap: 18px; margin: 25px 0 16px; }
.empty-state { border: 1px dashed var(--line); border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); margin: 0; }
.member-actions { min-width: 180px; }
.member-actions .button { font-size: .84rem; padding: 8px 12px; }
.confirm-removal { border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-width: 200px; }
.confirm-removal p { font-size: .85rem; margin-bottom: 12px; }
.confirm-removal .actions { gap: 8px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 20px; padding: 26px 5vw; border-top: 1px solid var(--soft-line); font-size: .86rem; color: var(--muted); }
.site-footer > span { color: var(--gold-dark); font-weight: 600; }
.site-footer p { margin: 0; }
@media (max-width: 760px) {
  main { padding-inline: 20px; }
  .site-header { padding: 18px 20px; flex-wrap: wrap; gap: 5px 20px; }
  .site-header nav a { font-size: .86rem; }
  .hero { padding: 38px 0 28px; }
  .hero .eyebrow { font-size: .7rem; letter-spacing: .06em; }
  .hero-intro { font-size: 1rem; }
  .panel { padding: 22px 18px; border-radius: 16px; }
  .section-heading { flex-direction: column; }
  .section-heading > .button { align-self: flex-start; padding-inline: 0; }
  .import-layout, .member-filters { grid-template-columns: 1fr; gap: 18px; }
  .stat { padding-inline: 12px; }
  .stat p { font-size: .78rem; }
  .stat strong { font-size: 1.95rem; }
  .stat small { font-size: .72rem; }
  .table-scroll { border: 0; border-radius: 0; }
  table, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { border: 1px solid var(--soft-line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
  td, tbody tr:last-child td { padding: 8px 0; border: 0; }
  td::before { content: attr(data-label); display: block; color: var(--gold-dark); font-size: .74rem; font-weight: 650; margin-bottom: 4px; }
  .member-actions, .confirm-removal { min-width: 0; }
  .member-actions > .button { width: 100%; }
  .access-panel { gap: 14px; }
  .site-footer { flex-direction: column; gap: 12px; padding: 24px 20px; }
}
@media (max-width: 380px) {
  main { padding-inline: 14px; }
  .panel { padding-inline: 14px; }
  .overview { gap: 16px; grid-template-columns: 1fr; }
  .stat, .stat:first-child { border: 0; padding: 0; }
  .stat strong { display: inline-block; margin-right: 12px; }
  .stat small { display: inline-block; }
}
@media (prefers-contrast: more) {
  :root { --ink: #142934; --muted: #344650; --line: #735319; --soft-line: #735319; }
}
@media (forced-colors: active) {
  .wordmark > span { color: LinkText; -webkit-text-stroke: 0; }
  .button, .panel, .badge, input, select, textarea { border-color: CanvasText; }
}
@media print {
  .site-header nav, #import-form, #download-template, .member-filters, .member-actions .button, #refresh-members, .commit-actions { display: none; }
  main { padding: 0; }
  .panel { box-shadow: none; break-inside: avoid; }
}
