:root {
  color-scheme: light;
  --bg: #f7f8f3;
  --paper: #fff;
  --ink: #18362d;
  --muted: #63756d;
  --green: #17644b;
  --green-dark: #104c39;
  --lime: #d8e98b;
  --line: #e1e7de;
  --red: #a63e3e;
  --amber: #8c5d12;
  --radius: 24px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
}
.metrics.association-metrics { grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #92b5f2;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.association-tabs { margin-bottom: 28px; }
.association-welcome { display:flex; align-items:center; justify-content:space-between; gap:24px; background:#e7eddc; border:1px solid var(--line); border-radius:24px; padding:38px; margin-bottom:24px; }
.association-welcome h1 { margin:8px 0 12px; }
.association-welcome p { max-width:640px; }
.association-leaf { background:var(--green,#17644b); color:#e7eddc; font:italic 76px Georgia,serif; width:120px; height:120px; border-radius:60% 15% 60% 15%; display:grid; place-items:center; flex-shrink:0; }
.association-metrics { grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); }
.association-metrics .metric-value { font-size:30px; overflow-wrap:anywhere; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:22px; }
.section-heading p { margin:8px 0 0; }
.association-projects { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.project-card { display:flex; flex-direction:column; min-height:230px; }
.project-card h2 { margin-top:10px; }
.project-card p { margin:16px 0; }
.project-card-bottom { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.association-project-detail { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:24px; }
.association-project-detail>.card { min-width:0; }
.project-course { margin-bottom:32px; }
.project-families { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr)); gap:20px; margin:24px 0; }
.project-family { min-width:0; }
.project-family h3 { margin:0; }
.project-family>.row { justify-content:space-between; gap:12px; margin-bottom:20px; }
.project-family-people { display:grid; gap:12px; }
.project-family-people>div { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 16px; }
.project-family-people span { color:var(--muted); font-size:13px; }
.project-family-amounts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:20px 0; margin-top:18px; border-top:1px solid var(--line); }
.project-family-amounts small,.project-family-amounts strong { display:block; }
.project-family-amounts small { font-size:11px; margin-bottom:8px; color:var(--muted); }
.project-family-amounts strong { font-size:18px; }
.project-family-calendar { border-top:1px solid var(--line); padding-top:16px; }
.project-family-calendar summary { cursor:pointer; color:var(--green); font-weight:600; font-size:13px; }
.project-family-calendar .table-wrap { margin-top:16px; }
.project-family-adults { padding:14px 0; margin-bottom:14px; border-bottom:1px solid var(--line); font-size:14px; }
.project-family-adults small { display:block; margin-bottom:8px; color:var(--muted); }
.project-family-adults button { display:block; margin-top:10px; }
.household-card h3,.household-card h4 { margin:0; }
.household-card h4 { font-size:13px; margin:24px 0 12px; }
.household-card p { margin:12px 0; }
.household-card .sub,.pending-card .sub { display:block; margin-top:6px; color:var(--muted); font-size:12px; }
.household-card>.btn { margin-top:16px; }
.household-adult,.household-new-adult { min-width:0; }
.household-new-adult { border:0; padding:0; margin:18px 0 0; display:grid; gap:16px; }
.household-new-adult[hidden] { display:none; }
.household-new-adult details label { display:block; margin-top:16px; }
.association-update { padding:24px 0; border-top:1px solid var(--line); }
.association-update p { margin:16px 0; }
.association-update button { margin-top:14px; }
.preserve-lines { white-space:pre-wrap; overflow-wrap:anywhere; }
.account-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 0; border-bottom:1px solid var(--line); }
.account-row p { font-size:25px; margin:10px 0; }
.treasury-month { margin-bottom:24px; }
.participation-fields { border:1px solid var(--line); padding:18px; border-radius:14px; display:grid; gap:16px; }
.participation-fields legend { padding:0 8px; font-weight:700; }
.import-card { margin-top:26px; padding-top:24px; border-top:1px solid var(--line); }
.import-card .notice { margin-top:16px; }
.association-tabs+section table td .btn { margin:4px; }
.access-links { display:flex; gap:14px; flex-wrap:wrap; margin-top:24px; }
@media(max-width:700px) {
 .association-welcome { padding:24px; }
 .association-welcome h1 { font-size:30px; }
 .association-leaf { display:none; }
 .association-projects,.association-project-detail { grid-template-columns:1fr; }
 .association-metrics { grid-template-columns:1fr; }
 .section-heading { align-items:flex-start; }
 .account-row { align-items:flex-start; }
 .association-projects .project-card { min-height:0; }
 #nav { flex-wrap:wrap; justify-content:flex-end; gap:8px; }
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1.4px;
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 750;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.header {
  max-width: 1180px;
  margin: auto;
  min-height: 100px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.7px;
  font-weight: 700;
  line-height: 1.15;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 1.8px;
  font-weight: 650;
  margin-top: 5px;
}
nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 32px 48px;
  min-height: 65vh;
}
.footer {
  max-width: 1116px;
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 19px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  min-height: 46px;
  background: var(--green);
  color: #fff;
}
.btn:hover {
  background: var(--green-dark);
}
.btn.secondary {
  background: #edf2e9;
  color: var(--green);
}
.btn.secondary:hover {
  background: #e0e9db;
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn.danger {
  background: #f9eeee;
  color: var(--red);
}
.btn.small {
  padding: 7px 11px;
  min-height: 36px;
  font-size: 12px;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--green);
  font-size: 13px;
  padding: 10px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 3px 10px #17352903;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stack {
  display: grid;
  gap: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 650;
  background: #f0f3ed;
  color: var(--muted);
  white-space: nowrap;
}
.badge.green {
  background: #e8f3e9;
  color: var(--green);
}
.badge.amber {
  background: #fff3dd;
  color: var(--amber);
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
}
.form {
  display: grid;
  gap: 18px;
}
.form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.form input,
.form select,
.form textarea,
.filters input,
.filters select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d6dfd4;
  background: #fbfcf9;
  border-radius: 11px;
  color: var(--ink);
}
.form textarea {
  resize: vertical;
  min-height: 84px;
}
.form small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.form .btn {
  width: 100%;
}
.error {
  color: var(--red);
  background: #fbefec;
  border: 1px solid #f0d3cb;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 13px;
  margin: 0;
}
.notice {
  padding: 15px 18px;
  background: #f0f4e9;
  border: 1px solid #dfe8d1;
  border-radius: 13px;
  font-size: 13px;
  color: #456046;
}
.notice.amber {
  background: #fff6e7;
  border-color: #efdfc0;
  color: var(--amber);
}
.loading {
  text-align: center;
  padding: 100px 0;
  color: var(--muted);
}
.welcome {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
  max-width: 920px;
  margin: 30px auto 70px;
}
.welcome-copy h1 {
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -2px;
  max-width: 450px;
}
.welcome-copy p {
  max-width: 390px;
  font-size: 16px;
  color: var(--muted);
}
.welcome-copy .eyebrow {
  font-size: 11px;
}
.welcome-steps {
  margin-top: 35px;
  display: grid;
  gap: 18px;
}
.step {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
}
.step-number {
  width: 30px;
  height: 30px;
  border: 1px solid #d8e1d2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--green);
  flex-shrink: 0;
}
.login-card {
  padding: 32px;
}
.login-card h2 {
  font-size: 25px;
}
.login-card > .muted {
  font-size: 13px;
  margin-bottom: 25px;
}
.login-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
}
.install-hint {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.employee-layout {
  max-width: 800px;
  margin: 8px auto;
  display: grid;
  gap: 22px;
}
.greeting {
  margin-bottom: 2px;
}
.greeting h1 {
  font-size: 32px;
}
.greeting p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--muted);
}
.punch-card {
  text-align: center;
  padding: 30px 24px 28px;
  position: relative;
  overflow: hidden;
}
.punch-card:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, #f0f5e8, transparent 65%);
  pointer-events: none;
}
.punch-card > * {
  position: relative;
}
.clock {
  font-size: 49px;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  line-height: 1.2;
  margin: 18px 0 4px;
}
.clock-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.punch-button {
  width: 200px;
  height: 200px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 23px;
  box-shadow:
    0 0 0 10px #eaf0e3,
    0 0 0 11px #dae5d1;
  transition:
    transform 0.15s,
    background 0.15s;
}
.punch-button:hover {
  background: var(--green-dark);
  transform: scale(1.02);
}
.punch-button.exit {
  background: #8b572d;
  box-shadow:
    0 0 0 10px #f5ede2,
    0 0 0 11px #e9dac5;
}
.punch-symbol {
  font-size: 35px;
  line-height: 1;
}
.punch-title {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.punch-caption {
  font-size: 11px;
  opacity: 0.8;
}
.punch-help {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.session-strip {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.session-strip .label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.session-strip strong {
  display: block;
  font-size: 16px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.success-panel {
  background: #eaf4e7;
  border: 1px solid #ccdfc4;
  border-radius: 18px;
  padding: 22px;
  margin: 12px auto 22px;
  max-width: 420px;
}
.success-panel strong {
  display: block;
  font-size: 22px;
  margin: 7px 0;
}
.success-panel p {
  font-size: 13px;
  margin-bottom: 0;
  color: var(--green);
}
.success-check {
  font-size: 32px;
  color: var(--green);
}
.event-list {
  margin-top: 18px;
}
.event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.event-icon {
  width: 35px;
  height: 35px;
  background: #eef5e9;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 17px;
  flex-shrink: 0;
}
.event-icon.out {
  background: #f6eee4;
  color: #8b572d;
}
.event-copy {
  flex: 1;
  font-size: 13px;
}
.event-copy small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.event-hour {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}
.empty {
  color: var(--muted);
  text-align: center;
  padding: 35px 20px;
  font-size: 13px;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-intro p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 14px;
}
.page-intro h1 {
  font-size: 34px;
}
.admin-tabs {
  display: flex;
  gap: 5px;
  margin: 0 0 25px;
  border-bottom: 1px solid var(--line);
}
.tab {
  border: 0;
  background: transparent;
  padding: 12px 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--green);
  border-color: var(--green);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.metric {
  padding: 22px 24px;
}
.metric-label {
  color: var(--muted);
  font-size: 12px;
}
.metric-value {
  font-size: 33px;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 10px 0 5px;
  font-weight: 600;
}
.metric-caption {
  font-size: 11px;
  color: var(--muted);
}
.metric.dark {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.metric.dark .metric-label,
.metric.dark .metric-caption {
  color: #d3e6d8;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  align-items: start;
}
.team-list {
  display: grid;
  margin-top: 17px;
}
.person {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 40px;
  height: 40px;
  background: #eff3e8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
  color: var(--green);
  flex-shrink: 0;
}
.person-name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}
.person-name small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
  margin-top: 2px;
}
.station-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  background: #f7f9f2;
  border-radius: 16px;
  margin: 20px 0;
}
.station-preview img {
  width: 170px;
  height: 170px;
}
.station-preview .qr-placeholder {
  font-size: 12px;
  color: var(--muted);
}
.station-card p {
  font-size: 12px;
  color: var(--muted);
}
.station-card .btn {
  width: 100%;
  margin-top: 7px;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  align-items: end;
  gap: 12px;
  margin: 20px 0;
}
.filters label {
  font-size: 11px;
  color: var(--muted);
  display: grid;
  gap: 5px;
}
.filters input,
.filters select {
  font-size: 12px;
  min-height: 42px;
}
.filters .btn {
  min-height: 42px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 10px;
  background: #f6f8f2;
}
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
td .btn {
  white-space: nowrap;
}
td .sub {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
tr.voided {
  color: var(--muted);
  text-decoration: line-through;
}
.report-note {
  font-size: 11px;
  color: var(--muted);
  margin: 17px 0 0;
}
.section-gap {
  margin-top: 24px;
}
.employees-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.employee-card .avatar {
  width: 48px;
  height: 48px;
  font-size: 16px;
}
.employee-card .employee-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.employee-card.inactive {
  opacity: 0.75;
}
.audit-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  font-size: 12px;
}
.audit-item small {
  color: var(--muted);
  display: block;
}
.audit-detail {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  margin: 8px 0 0;
  color: var(--muted);
}
.station-full {
  max-width: 750px;
}
.station-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 20px;
}
.station-layout img {
  width: 240px;
  height: 240px;
}
.url-box {
  font-size: 12px;
  overflow-wrap: anywhere;
  background: #f3f6ee;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}
.station-instructions {
  font-size: 13px;
  color: var(--muted);
  padding-left: 20px;
}
.station-instructions li {
  margin: 10px 0;
}
.print-poster {
  display: none;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  width: max-content;
  background: var(--ink);
  color: white;
  border-radius: 13px;
  padding: 13px 20px;
  font-size: 13px;
  box-shadow: 0 10px 30px #0002;
  z-index: 20;
}
.toast.failure {
  background: #8c3333;
}
.connection {
  background: #fff1d5;
  color: #734c0c;
  text-align: center;
  font-size: 12px;
  padding: 9px 15px;
}
.fatal {
  max-width: 460px;
  margin: 50px auto;
}
.fatal .btn {
  margin-top: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 28px;
  width: calc(100% - 32px);
  max-width: 470px;
  color: var(--ink);
  box-shadow: 0 20px 80px #0002;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
dialog::backdrop {
  background: #14312666;
  backdrop-filter: blur(3px);
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 22px;
}
.modal-top h2 {
  font-size: 24px;
}
.close {
  background: transparent;
  border: 0;
  font-size: 24px;
  color: var(--muted);
  padding: 0 5px;
}
.dialog-actions {
  display: flex;
  gap: 12px;
}
.form .dialog-actions .btn {
  width: auto;
  flex: 1;
}
.checkbox {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
}
.checkbox input {
  width: 18px !important;
  min-height: 18px !important;
}
.inline-fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}
@media (max-width: 850px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .station-card {
    display: none;
  }
  .welcome {
    gap: 35px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 20px;
  }
  .station-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .station-layout img {
    margin: auto;
  }
  .station-instructions {
    text-align: left;
  }
  .footer {
    margin: 0 32px;
  }
  .page-intro .row {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .header {
    min-height: 80px;
    padding: 20px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .header nav .nav-name {
    display: none;
  }
  main {
    padding: 10px 18px 35px;
  }
  .footer {
    margin: 0 20px;
    display: grid;
    gap: 6px;
    font-size: 10px;
  }
  .welcome {
    display: block;
    margin: 20px auto 35px;
    max-width: 430px;
  }
  .welcome-copy {
    margin-bottom: 28px;
  }
  .welcome-copy h1 {
    font-size: 38px;
    max-width: none;
  }
  .welcome-copy p {
    font-size: 14px;
  }
  .welcome-steps {
    display: none;
  }
  .login-card {
    padding: 25px;
  }
  .welcome-copy .eyebrow {
    margin-bottom: 10px;
  }
  .card {
    padding: 20px;
    border-radius: 20px;
  }
  .greeting h1 {
    font-size: 28px;
  }
  .greeting .row {
    align-items: start;
  }
  .greeting .eyebrow {
    font-size: 9px;
  }
  .punch-card {
    padding: 24px 20px;
  }
  .punch-button {
    width: 185px;
    height: 185px;
  }
  .clock {
    font-size: 45px;
  }
  .employee-layout {
    gap: 18px;
  }
  .page-intro {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .page-intro h1 {
    font-size: 30px;
  }
  .page-intro .btn {
    min-height: 40px;
  }
  .admin-tabs {
    overflow: auto;
    white-space: nowrap;
    gap: 0;
  }
  .tab {
    padding: 12px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric:first-child {
    grid-column: span 2;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric:first-child .metric-value {
    font-size: 32px;
  }
  .metric-caption {
    font-size: 10px;
  }
  .employees-grid {
    grid-template-columns: 1fr;
  }
  .person .badge {
    font-size: 9px;
  }
  .audit-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .row.wrap {
    align-items: start;
    flex-wrap: wrap;
  }
  .filters {
    gap: 10px;
  }
  .table-wrap {
    margin-left: -5px;
    margin-right: -5px;
  }
  .station-layout {
    gap: 15px;
  }
  .session-strip {
    gap: 25px;
  }
  .inline-fields {
    grid-template-columns: 1fr;
  }
  .toast {
    bottom: 18px;
  }
}
.card,
.stack,
.admin-grid > * {
  min-width: 0;
}
.table-wrap {
  max-width: 100%;
}
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.report-card { display: grid; gap: 24px; padding: clamp(20px, 3vw, 36px); }
.report-card > h2, .report-card > p, .report-overview > p { margin: 0; }
.report-card .monthly-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; margin: 0; }
.report-card .employee-filters { grid-template-columns: minmax(0, 1fr) auto; }
.monthly-filters .btn { padding-inline: 28px; }
.report-overview { display: grid; gap: 16px; }
.report-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.report-total strong { font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -1px; line-height: 1.2; }
.report-total span { color: var(--muted); font-size: 12px; }
.report-records { display: grid; gap: 16px; min-width: 0; }
.report-records h3 { margin: 0; font-size: 15px; }
.report-records .report-note { margin: 0; line-height: 1.7; }
.report-card .table-wrap { margin: 0; }
.report-card .notice { margin: 0; padding: 18px 20px; line-height: 1.6; }
.report-actions, .report-versions { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 12px; }
.report-review { border-top: 1px solid var(--line); padding-top: 24px; }
.report-versions { margin-top: 16px; }
.punch-report td { font-variant-numeric: tabular-nums; }
.punch-report th, .punch-report td { padding: 16px; }
.punch-report td:nth-child(2), .punch-report td:nth-child(3) { white-space: normal; min-width: 140px; line-height: 1.6; }
.session-help { margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.session-help summary { cursor: pointer; color: var(--green); font-weight: 600; }
.session-help ol { padding-left: 20px; margin: 14px 0; }
.session-help li + li { margin-top: 8px; }
.session-help p { margin: 14px 0 0; }
.absence-calendar { min-width: 0; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
.calendar-weekdays { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.calendar-days { list-style: none; padding: 0; margin: 0; }
.calendar-day { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 7px; overflow-wrap: anywhere; }
.calendar-day strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.calendar-day.has-absence { background: #f0f4e9; }
.week-start-0 { grid-column-start: 1; } .week-start-1 { grid-column-start: 2; } .week-start-2 { grid-column-start: 3; } .week-start-3 { grid-column-start: 4; } .week-start-4 { grid-column-start: 5; } .week-start-5 { grid-column-start: 6; } .week-start-6 { grid-column-start: 7; }
.calendar-mark { font-size: 11px; line-height: 1.4; color: var(--green); }
.calendar-mark.communicated { color: var(--amber); }
.calendar-punch { font-size: 10px; color: var(--muted); }
.absence-list { display: grid; gap: 16px; }
.absence-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.absence-item p { margin: 10px 0; line-height: 1.6; overflow-wrap: anywhere; }
.absence-item .report-actions { align-content: start; }
.absence-item.cancelled { background: #f6f8f2; color: var(--muted); }
@media (max-width: 700px) {
  .calendar-weekdays, .calendar-days { gap: 4px; }
  .calendar-day { min-height: 74px; padding: 6px 4px; border-radius: 7px; gap: 5px; }
  .calendar-mark { font-size: 9px; } .calendar-punch { font-size: 8px; }
  .absence-item { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
}
@media screen and (max-width: 700px) {
  :is(.report-card, .document) .punch-report { display: block; white-space: normal; }
  :is(.report-card, .document) .punch-report thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  :is(.report-card, .document) .punch-report tbody { display: grid; gap: 12px; }
  :is(.report-card, .document) .punch-report tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
  :is(.report-card, .document) .punch-report td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  :is(.report-card, .document) .punch-report td:first-child { grid-column: 1 / -1; font-weight: 600; padding-bottom: 8px; }
  :is(.report-card, .document) .punch-report td:nth-child(2)::before { content: 'Entrada'; }
  :is(.report-card, .document) .punch-report td:nth-child(3)::before { content: 'Salida'; }
  :is(.report-card, .document) .punch-report td:nth-child(2)::before, :is(.report-card, .document) .punch-report td:nth-child(3)::before { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
  :is(.report-card, .document) .punch-report td:nth-child(4) { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
  :is(.report-card, .document) .punch-report td:nth-child(4)::before { content: 'Tiempo del día'; color: var(--muted); }
}
@media (max-width: 700px) {
  .report-card { gap: 20px; }
  .report-card .monthly-filters, .report-card .employee-filters { grid-template-columns: 1fr; gap: 14px; }
  .monthly-filters .btn { width: 100%; }
  .report-card .notice { padding: 16px; }
  .punch-report th, .punch-report td { padding: 14px 12px; }
  .report-actions .btn { flex: 1 1 auto; text-align: center; }
}
.document-page .document { max-width: 850px; margin: 40px auto; padding: 30px; }
.document h1 { font-size: 32px; }
.document h2 { margin-top: 24px; }
.document p { margin: 18px 0; overflow-wrap: anywhere; }
.document table { width: 100%; }
@media (max-width: 700px) { .settings-grid { grid-template-columns: 1fr; } .document-page .document { margin: 10px auto; padding: 15px; } }
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body {
    background: white;
  }
  body main {
    display: block !important;
    padding: 0;
    max-width: none;
  }
  main > * {
    display: none !important;
  }
  main .print-poster {
    display: flex !important;
    min-height: 90vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #18362d;
  }
  main .print-poster h1 {
    font-size: 55px;
  }
  main .print-poster img {
    width: 300px;
    height: 300px;
  }
  main .print-poster p {
    font-size: 20px;
    max-width: 500px;
  }
  main .print-poster small {
    font-size: 13px;
  }
  .print-poster .eyebrow {
    font-size: 14px;
  }
  .document-page main.document, main .document { display: block !important; max-width: none; margin: 0; padding: 0; }
  main.document > *, main .document > * { display: revert !important; }
  .document h1 { font-size: 24px; }
  .document p, .document td, .document th { font-size: 12px; }
  .document table { break-inside: auto; }
  .document .punch-report { white-space: normal; table-layout: fixed; }
  .document .punch-report td, .document .punch-report th { min-width: 0; padding: 10px 6px; font-size: 10px; overflow-wrap: anywhere; }
  .document tr { break-inside: avoid; }
}
.finance-tabs { display:flex; overflow-x:auto; gap:8px; padding:8px 0 16px; }
.finance-tabs .btn { flex:0 0 auto; white-space:nowrap; }
.form fieldset { border:1px solid #d7e0d4; border-radius:12px; padding:16px; display:grid; gap:12px; min-width:0; }
.form fieldset legend { padding:0 6px; font-weight:600; }
.source-cell { white-space:normal; overflow-wrap:anywhere; display:block; min-width:180px; max-width:420px; }
.source-formula { font-family:monospace; font-size:12px; }
.finance-daily-tabs { gap:12px; border-bottom:0; margin-bottom:8px; }
.finance-daily-tabs .btn { padding:13px 22px; font-size:15px; }
.finance-settings { margin:0 0 28px; color:var(--muted); }
.finance-settings > summary { cursor:pointer; padding:12px 0; font-size:13px; }
.cash-summary { padding:30px; background:#123f33; color:#fff; border-radius:22px; display:grid; grid-template-columns:1.5fr 1fr; gap:30px; }
.cash-summary h2 { color:white; font-size:44px; margin:10px 0; }
.cash-summary .eyebrow { color:#c6dfca; }
.cash-summary p { margin:10px 0 18px; }
.cash-summary .row { gap:12px 24px; font-size:13px; color:#e3efe4; }
.cash-summary-side { display:flex; flex-direction:column; gap:12px; justify-content:center; align-items:flex-start; }
.cash-summary-side p { margin:0; color:#e3efe4; }
.cash-summary .ghost { color:white; border-color:#6c9985; }
.cash-metrics { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:22px 0; }
.cash-metrics > :is(button,div) { display:flex; flex-direction:column; align-items:flex-start; padding:24px; border:1px solid var(--line); border-radius:16px; background:white; color:var(--ink); text-align:left; font:inherit; gap:8px; min-width:0; }
.cash-metrics button { cursor:pointer; }
.cash-metrics button:hover { background:#edf3e9; border-color:#9fb5a2; }
.cash-metrics strong { font-size:30px; line-height:1.2; overflow-wrap:anywhere; }
.cash-metrics small { color:var(--muted); }
.cash-metrics.compact > div { background:#f5f7f2; border:none; padding:18px; }
.pending-card,.bank-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; padding:24px 0; border-top:1px solid var(--line); }
.pending-card h3,.bank-row h3 { font-size:19px; margin:12px 0 8px; overflow-wrap:anywhere; }
.pending-card p,.bank-row p { margin:8px 0; overflow-wrap:anywhere; }
.pending-actions,.bank-row-actions { display:flex; flex-direction:column; align-items:flex-end; gap:12px; justify-content:center; }
.pending-actions > strong,.bank-row-actions > strong { font-size:25px; white-space:nowrap; }
.bank-row-actions > small { color:var(--muted); }
.finance-badge { display:inline-block; padding:5px 9px; border-radius:7px; background:#f0f3ed; font-size:11px; font-weight:600; }
.finance-badge.success { background:#dcefe3; color:#185738; }
.finance-badge.amber { background:#fff0d9; color:#865519; }
.amount-in { color:#176946; }
.amount-out { color:#704331; }
.followup-note { padding:12px 14px; background:#f6f4eb; border-radius:9px; max-width:640px; }
.followup-note .sub { margin-top:8px; }
.bank-progress { margin:24px 0; }
.bank-progress > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; font-size:13px; }
.bank-progress progress { width:100%; height:8px; accent-color:#23614b; margin-top:12px; }
.bank-steps { display:flex; gap:20px; list-style:none; padding:0; margin:22px 0; }
.bank-steps li { display:flex; align-items:center; gap:12px; flex:1; font-size:13px; }
.bank-steps span { background:#e7eee1; border-radius:50%; width:28px; height:28px; display:grid; place-items:center; flex-shrink:0; font-weight:700; }
.banking-filters { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; padding:18px; border-radius:12px; background:#f5f7f2; margin:24px 0; }
.banking-filters label { flex:1 1 160px; min-width:0; }
.banking-filters button { flex:0 0 auto; }
.match-hint { display:flex; flex-direction:column; gap:6px; background:#eef4eb; border-radius:10px; padding:14px; margin-top:14px; max-width:650px; overflow-wrap:anywhere; font-size:13px; }
.match-hint small { color:var(--muted); }
.match-options { display:grid; gap:12px; }
.match-options article { background:#f2f6ee; border:1px solid #d4e1cb; border-radius:12px; padding:16px; display:grid; gap:8px; }
.match-options p { margin:0; overflow-wrap:anywhere; }
.match-options .btn { justify-self:start; }
.bank-review-summary { padding:20px; background:#f6f6ee; border-radius:12px; overflow-wrap:anywhere; }
.bank-review-summary > strong { font-size:32px; }
.bank-review-summary p { margin:10px 0; }
.bank-mapping { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form details { border:1px solid var(--line); padding:14px; border-radius:10px; min-width:0; }
.form details summary { cursor:pointer; font-weight:600; }
.form details[open] > :is(label,p,.table-wrap) { margin-top:16px; }
.split-allocation[open] { max-height:350px; overflow-y:auto; }
.finance-empty { padding:30px 12px; text-align:center; color:var(--muted); }
@media (max-width:700px) {
 .finance-daily-tabs { display:grid; grid-template-columns:1fr 1fr; overflow:visible; gap:8px; }
 .finance-daily-tabs .btn { white-space:normal; padding:12px 10px; font-size:13px; justify-content:center; }
 .cash-summary { grid-template-columns:1fr; padding:24px; gap:12px; }
 .cash-summary h2 { font-size:36px; }
 .cash-summary-side { border-top:1px solid #547463; padding-top:20px; align-items:stretch; }
 .cash-metrics { gap:10px; }
 .cash-metrics > :is(button,div) { padding:16px 12px; }
 .cash-metrics strong { font-size:23px; }
 .cash-metrics span,.cash-metrics small { font-size:12px; }
 .pending-card,.bank-row { grid-template-columns:1fr; gap:14px; }
 .pending-actions,.bank-row-actions { align-items:stretch; flex-direction:row; flex-wrap:wrap; justify-content:flex-start; }
 .pending-actions > strong,.bank-row-actions > strong { flex-basis:100%; }
 .bank-row-actions > small { flex-basis:100%; }
 .pending-actions .btn,.bank-row-actions .btn { flex:1 1 auto; }
 .bank-steps { flex-direction:column; gap:12px; }
 .bank-mapping { grid-template-columns:1fr; }
 .banking-filters { padding:14px; }
 .banking-filters label { flex-basis:100%; }
 .banking-filters button { width:100%; }
}
/* Personal identity and association management are distinct workspaces. */
.association-space { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:0 0 24px; padding:24px 28px; border:1px solid var(--line, #dfe6dc); border-radius:20px; background:#f0f5eb; }
.association-space strong { display:block; font-size:20px; }
.association-space p { margin:6px 0 0; }
.association-space .eyebrow { margin:0 0 6px; }
.management-space { background:#e8eeef; border-color:#b5c6cb; }
.space-switch { display:flex; gap:8px; padding:6px; border-radius:16px; background:#fff; flex-shrink:0; }
.space-switch .btn { white-space:nowrap; }
.space-switch [aria-pressed="true"] { box-shadow:inset 0 0 0 2px #266453; }
.permission-guide { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.permission-guide .card { padding:24px; }
.permission-guide h3 { margin:0 0 12px; }
.account-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:28px 0; }
.account-facts small,.account-facts strong { display:block; }
.account-facts strong { margin-top:8px; overflow-wrap:anywhere; }
@media(max-width:700px) {
 .association-space { flex-direction:column; align-items:stretch; padding:20px; gap:20px; }
 .space-switch { align-self:stretch; }
 .space-switch .btn { flex:1; padding:12px 10px; }
 .permission-guide,.account-facts { grid-template-columns:1fr; }
 .personal-space ~ .association-metrics { grid-template-columns:1fr; }
}

.access-page { max-width: 640px; margin: 48px auto; }
.access-page .login-card { max-width: none; }
.recovery-link { display: inline-block; margin-top: 20px; }
.account-security-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; margin-top: 24px; }
.account-security-grid > section { min-width: 0; padding: 24px; background: var(--surface-soft, #f6f8f3); border-radius: 16px; }
.account-security-grid .report-note { min-height: 54px; }
.account-access p strong { overflow-wrap: anywhere; }
@media(max-width:700px) { .access-page { margin: 24px auto; } .account-security-grid { grid-template-columns: 1fr; gap: 20px; } .account-security-grid > section { padding: 18px; } .account-security-grid .report-note { min-height: 0; } }
