:root {
  color-scheme: light;
  --green: #174f3b;
  --green-dark: #103e2e;
  --ink: #203c31;
  --muted: #53665c;
  --line: #d9e3dc;
  --paper: #f4f6f2;
  --white: #fff;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
button, input, a { touch-action: manipulation; }
input { width: 100%; min-height: 54px; border: 1px solid #879c8f; border-radius: 9px; background: white; color: var(--ink); padding: 12px 16px; }
input::placeholder { color: #69786f; opacity: 1; }
input[type="search"] { appearance: none; }
label { display: block; font-weight: 600; margin-bottom: 9px; }
:focus-visible { outline: 3px solid #916319; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 2.7vw, 2.3rem); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
h2 { font-size: 1.4rem; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
h3 { font-size: 1.12rem; line-height: 1.4; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px; color: white; background: var(--green); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.eyebrow { display: block; color: var(--green); font-size: .78rem; font-weight: 700; letter-spacing: .15em; margin-bottom: 12px; }
.brand-mark { display: inline-grid; place-items: center; flex-shrink: 0; height: 52px; width: 52px; background: var(--green); color: white; border-radius: 16px 16px 16px 4px; font-size: .85rem; font-weight: 700; letter-spacing: .02em; }
.button { min-height: 48px; min-width: 48px; border: 1px solid transparent; border-radius: 8px; padding: 10px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; line-height: 1.4; transition: background-color .15s ease; }
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--green-dark); }
.secondary { background: white; color: var(--green); border-color: #b5c7bb; }
.secondary:hover { background: #eaf1eb; }
.plain { background: transparent; color: var(--green); }
.plain:hover { background: #e2eae2; }
.message:empty { display: none; }
.message { padding: 15px 18px; background: #e9f1eb; color: var(--green-dark); border-radius: 8px; margin-bottom: 20px; overflow-wrap: anywhere; }
.message.error { background: #fff0ed; color: #8c3025; border: 1px solid #e1b8b1; margin-top: 16px; }
.message.warning { background: #fff5df; color: #674815; border: 1px solid #dec58e; }
.hint { color: var(--muted); font-size: 1rem; }
.entry { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 42px 24px 24px; background: radial-gradient(ellipse at top left, #e5eee4, transparent 55%), var(--paper); }
.entry-brand { display: flex; align-items: center; gap: 14px; font-size: .78rem; font-weight: 650; letter-spacing: .12em; margin-bottom: 32px; }
.login-card { width: 100%; max-width: 560px; padding: 44px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 16px; box-shadow: 0 12px 50px #25432e08; }
.login-card h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.title-igc { white-space: nowrap; color: var(--green); }
.subtitle { color: var(--muted); margin-top: 18px; }
.entry-divider { height: 1px; background: var(--line); margin: 28px 0; }
.login-card form { margin-top: 26px; }
.password-field { display: flex; border: 1px solid #879c8f; border-radius: 9px; }
.password-field input { border: 0; min-width: 0; background: transparent; }
.password-toggle { border: 0; border-left: 1px solid var(--line); border-radius: 0 9px 9px 0; background: #f4f7f3; color: var(--green); padding: 10px 14px; min-height: 54px; font-weight: 600; }
#id-help { margin-top: 10px; }
.enter { width: 100%; margin-top: 24px; min-height: 58px; justify-content: space-between; padding-inline: 22px; }
.privacy-note { color: var(--muted); text-align: center; margin-top: 28px; }
.privacy-note > span { color: var(--green); }
.entry-footer { margin-top: 28px; color: var(--muted); font-size: 1rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 22px max(32px, calc((100vw - 1510px) / 2)); border-bottom: 1px solid var(--line); gap: 20px; background: white; }
.brand { display: flex; align-items: center; gap: 16px; font-weight: 650; }
.restricted { background: #edf3ec; color: var(--green); padding: 7px 13px; border: 1px solid #d7e4d6; border-radius: 100px; white-space: nowrap; }
.dashboard-content { width: min(100%, 1574px); margin: auto; padding: 42px 32px 24px; }
.heading-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.welcome { color: var(--muted); margin-top: 14px; overflow-wrap: anywhere; }
.welcome strong { font-weight: 600; color: var(--ink); }
.header-actions { display: flex; gap: 10px; flex-shrink: 0; }
.overview { display: grid; grid-template-columns: .78fr repeat(3, 1.1fr) 1fr; gap: 16px; }
.metric { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px; background: white; }
.metric-label { font-size: 1rem; color: var(--muted); margin: 0 0 13px; font-weight: 500; }
.metric strong { font-size: clamp(1.45rem, 1.9vw, 1.9rem); line-height: 1.25; letter-spacing: -.04em; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.metric-description { color: var(--muted); margin-top: 12px; font-size: 1rem; }
.metric.received { background: var(--green); color: white; border-color: var(--green); }
.received .metric-label, .received .metric-description { color: #e2eee4; }
.progress-metric { background: #ecf2e9; border-color: #d8e3d2; }
progress { display: block; width: 100%; height: 10px; margin-top: 24px; border: 0; border-radius: 20px; overflow: hidden; background: #d1dfd0; accent-color: var(--green); }
progress::-webkit-progress-bar { background: #d1dfd0; border-radius: 20px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 20px; }
.consultation-row { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); margin: 20px 0 36px; }
.participants-section { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: clip; }
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; }
.list-heading .eyebrow { margin-bottom: 8px; }
.readonly { color: var(--muted); white-space: nowrap; }
.tools { display: flex; align-items: end; gap: 24px; padding: 0 28px; }
.search-field { flex: 1; max-width: 530px; }
.filters { margin: 0; padding: 0; border: 0; min-width: 0; }
.filters legend { font-weight: 600; padding: 0; margin-bottom: 9px; }
.filter-buttons { display: flex; gap: 5px; padding: 4px; background: #edf1eb; border: 1px solid var(--line); border-radius: 9px; }
.filter-buttons button { min-height: 44px; border: 0; border-radius: 6px; padding: 8px 16px; color: var(--muted); background: transparent; white-space: nowrap; font-weight: 600; }
.filter-buttons button[aria-pressed="true"] { background: var(--green); color: white; }
.filter-buttons button:hover { box-shadow: inset 0 0 0 1px var(--green); }
.result-count { color: var(--muted); padding: 20px 28px; }
.participants-table { border-collapse: collapse; width: 100%; table-layout: fixed; text-align: left; }
.participants-table th, .participants-table td { padding: 21px 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.participants-table thead th { background: #f5f7f3; font-size: 1rem; color: var(--muted); font-weight: 600; line-height: 1.4; }
.participants-table thead th:first-child { width: 24%; }
.participants-table thead th:nth-child(2), .participants-table thead th:nth-child(3) { width: 10%; }
.participants-table thead th:nth-child(4), .participants-table thead th:nth-child(5) { width: 13%; }
.participants-table thead th:nth-child(6) { width: 17%; }
.participants-table thead th:last-child { width: 13%; }
.participants-table th:first-child { padding-left: 28px; }
.participants-table td:last-child { padding-right: 20px; }
.participant-name { font-weight: 600; }
.table-value { font-variant-numeric: tabular-nums; }
.participants-table td:nth-child(5) { font-weight: 650; }
.participants-table tbody tr:hover { background: #fafbf8; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 6px; font-size: 1rem; line-height: 1.4; white-space: nowrap; }
.badge.paid { background: #e9f2e9; color: #235736; }
.badge.pending { background: #fff3d9; color: #745117; }
.details-button { padding: 10px 8px; background: transparent; color: var(--green); text-decoration: underline; text-underline-offset: 5px; white-space: nowrap; }
.details-button:hover { background: #edf3ec; }
.participant-cards { display: none; }
.participant-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.card-heading { display: flex; flex-direction: column; align-items: start; gap: 12px; }
.card-heading h3 { overflow-wrap: anywhere; }
.card-values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin: 24px 0; }
.card-values > div { min-width: 0; }
.card-values dt { color: var(--muted); margin-bottom: 3px; }
.card-values dd { margin: 0; font-weight: 650; font-size: 1.15rem; overflow-wrap: anywhere; }
.card-last { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }
.card-last strong { color: var(--ink); font-weight: 600; }
.participant-card .details-button { width: 100%; border: 1px solid #b5c7bb; margin-top: 22px; text-decoration: none; }
.empty { padding: 30px 24px 48px; text-align: center; }
.empty > span { display: block; font-size: 3rem; color: var(--green); }
.empty p { color: var(--muted); margin: 10px 0 24px; }
.dashboard-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 30px; color: var(--muted); }
dialog { color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 16px; padding: 30px; width: min(660px, calc(100% - 32px)); max-height: calc(100svh - 40px); overflow-y: auto; }
dialog::backdrop { background: #10291ec2; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.dialog-header .eyebrow { margin-bottom: 0; }
dialog h2 { overflow-wrap: anywhere; }
#dialog-description { color: var(--muted); margin-top: 12px; }
.last-installment { padding: 16px; background: #eef3eb; border-radius: 8px; margin: 20px 0; }
.installment { border: 1px solid var(--line); border-radius: 9px; padding: 18px; margin-top: 14px; }
.installment-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.installment-date, .installment-value, .installment .hint { margin-top: 12px; }
.receipt-link { color: var(--green); display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; margin-top: 8px; }
@media (max-width: 1350px) {
  .participants-table { display: none; }
  .participant-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0 28px 28px; }
  .overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric strong { font-size: 1.7rem; }
}
@media (max-width: 1050px) {
  .participant-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { flex-wrap: wrap; }
  .search-field { max-width: none; flex-basis: 100%; }
  .heading-row { align-items: start; }
  .brand-suffix { display: none; }
}
@media (max-width: 700px) {
  .entry { padding: 26px 16px; }
  .entry-brand { font-size: .7rem; gap: 10px; margin-bottom: 24px; }
  .login-card { padding: 28px 24px; }
  .topbar { padding: 16px; align-items: start; }
  .brand { gap: 10px; line-height: 1.3; font-size: 1rem; }
  .brand-mark { width: 44px; height: 44px; border-radius: 12px 12px 12px 3px; }
  .restricted { font-size: .8rem; padding: 7px 9px; }
  .dashboard-content { padding: 28px 16px 22px; }
  .heading-row { flex-direction: column; gap: 20px; margin-bottom: 26px; }
  .header-actions { width: 100%; }
  .header-actions .secondary { flex: 1; }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .metric { padding: 20px 16px; }
  .metric strong { font-size: 1.45rem; }
  .metric-label, .metric-description { font-size: 1rem; }
  .metric:first-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
  .metric:first-child .metric-label { margin: 0; }
  .metric:first-child strong { margin-left: auto; }
  .metric:first-child .metric-description { display: none; }
  .consultation-row { margin: 20px 0 28px; }
  .list-heading { padding: 24px 20px; align-items: start; }
  .readonly { display: none; }
  .tools { padding: 0 20px; gap: 18px; }
  .filters { width: 100%; }
  .filter-buttons { flex-wrap: wrap; }
  .filter-buttons button { flex: 1 1 auto; padding-inline: 12px; }
  .result-count { padding: 20px; }
  .participant-cards { grid-template-columns: minmax(0, 1fr); padding: 0 16px 16px; gap: 16px; }
  .participant-card { padding: 22px 18px; }
  .dashboard-footer { gap: 10px; }
  dialog { padding: 22px; }
  .dialog-header { align-items: start; gap: 10px; }
  .dialog-header .eyebrow { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
