/* Mi Congreso uses the public FAAED tokens and shared header/nav unchanged. */
.congress-panel{padding:12px 14px 28px;color:var(--ink);overflow-wrap:anywhere;scroll-margin-bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 24px)}
.congress-panel [hidden]{display:none!important}
.congress-panel h1{font-size:1.28rem;font-weight:800;line-height:1.25;margin:4px 0 12px}
.congress-panel h2{font-size:1.1rem;font-weight:750;line-height:1.3;margin:0 0 12px}
.congress-panel p{line-height:1.5}
.congress-panel a{color:var(--brand);text-underline-offset:3px}
.congress-panel :focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.congress-panel section{min-width:0;margin:12px 0;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.congress-panel .congress-back{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap);font-size:.85rem;font-weight:650;text-decoration:none;margin:0 0 4px}
.congress-back .app-icon{width:16px;height:16px;transform:rotate(180deg)}
.congress-testing-notice{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:10px 12px;margin-bottom:8px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-soft);font-size:.75rem;line-height:1.4}
.congress-testing-notice strong{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.congress-testing-notice .app-icon{width:16px;height:16px;color:var(--brand)}
.congress-testing-notice a{display:inline-flex;align-items:center;min-height:var(--tap)}
.congress-event{font-weight:650;margin:12px 2px}
.congress-feedback{display:flex;align-items:flex-start;gap:8px;min-height:28px;padding:4px 2px;color:var(--muted);font-size:.82rem}
.congress-feedback p{margin:0;line-height:1.5}
.congress-help{font-size:.82rem;color:var(--muted);line-height:1.5;margin:10px 0 0}
.congress-panel form{display:grid;gap:12px;margin-top:14px}
.congress-panel label{font-size:.9rem;font-weight:650}
.congress-panel input{width:100%;min-width:0;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;font-size:1rem;scroll-margin:24px 0 calc(var(--bottom-nav-height) + 24px)}
.congress-panel button{min-height:var(--tap);max-width:100%;padding:10px 16px;border:1px solid var(--brand);border-radius:999px;background:var(--brand);color:var(--surface);font:inherit;font-size:.875rem;font-weight:700;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.congress-panel button:disabled{opacity:.6;cursor:default}
.congress-panel button:hover:not(:disabled){filter:brightness(.96)}
.congress-panel .congress-secondary{background:var(--surface-soft);color:var(--brand);border-color:var(--line)}
.congress-panel form .congress-help{margin:0}
#congress-new-code{margin-top:14px}
#congress-code-input{font-variant-numeric:tabular-nums;letter-spacing:.2em}
#congress-choices{display:grid;gap:10px;margin-top:16px}
#congress-choices button{text-align:left;border-radius:var(--radius-sm);background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
.congress-error{margin:0;color:var(--ink);font-weight:650;border-left:3px solid var(--brand);padding-left:10px;font-size:.85rem}
.congress-panel [aria-invalid=true]{border:2px solid var(--ink)}
.congress-card-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px;min-width:0}
.congress-card-heading>span{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:50%;color:var(--brand);background:var(--surface-soft)}
.congress-card-heading .app-icon{width:20px;height:20px}
.congress-card-heading h2{margin:0}
#congress-active .congress-eyebrow{font-size:.8rem;font-weight:650;color:var(--muted);letter-spacing:.025em}
#congress-name{display:block;font-size:clamp(1.5rem,5vw,1.85rem);font-weight:800;line-height:1.2;color:var(--ink);margin:0 0 16px;overflow-wrap:anywhere}
.congress-state{padding:12px 14px;border-radius:var(--radius-sm);background:var(--surface-soft);border-left:3px solid var(--brand)}
.congress-state:has([data-state="pending"]){background:color-mix(in srgb,var(--important) 10%,var(--surface));border-color:var(--important)}
.congress-state:has([data-state="confirmed"]){background:color-mix(in srgb,var(--accent) 9%,var(--surface));border-color:var(--accent)}
.congress-status{font-size:.9rem;font-weight:750;line-height:1.4;margin:0;color:var(--ink)}
.congress-status::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:7px}
.congress-status[data-state="pending"]{color:color-mix(in srgb,var(--important) 40%,var(--ink))}
.congress-status[data-state="confirmed"]{color:color-mix(in srgb,var(--accent) 50%,var(--ink))}
.congress-state .congress-help{margin:5px 0 0;color:var(--ink);font-size:.8rem}
.congress-registration-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.congress-registration-details>div{min-width:0}
#congress-active dt{font-size:.75rem;color:var(--muted);font-weight:500;margin:0 0 5px}
#congress-active dd{font-size:1rem;color:var(--ink);font-weight:750;margin:0}
.congress-event-details{border-top:1px solid var(--line);padding-top:14px}
.congress-event-details h3{font-size:.75rem;font-weight:500;color:var(--muted);margin:0 0 6px}
.congress-event-details p{margin:0 0 4px}
#congress-event{font-size:.95rem;font-weight:700}
#congress-edition{font-size:.82rem;color:var(--muted)}
#congress-dates{font-size:.9rem;font-weight:600;color:var(--brand)}
.congress-economic-summary{padding:12px 14px;margin-bottom:12px;background:var(--surface-soft);border-radius:var(--radius-sm)}
.congress-economic-summary .congress-help{margin:0;color:color-mix(in srgb,var(--muted) 75%,var(--ink))}
.congress-amount{font-size:clamp(1.25rem,5vw,1.65rem);font-weight:800;line-height:1.3;margin:4px 0 10px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.congress-economic-summary .congress-amount:last-child{margin-bottom:0}
.congress-economic-brief{margin-top:10px}
.congress-economic-brief p{margin:4px 0}
.congress-economic-account{border-top:1px solid var(--line);padding-block:16px}
.congress-economic-account:first-child{border-top:0;padding-top:0}
.congress-economic-account:last-child{padding-bottom:0}
.congress-economic-account h3{font-size:.95rem;font-weight:750;margin:0 0 6px}
.congress-economic-account h4{font-size:.82rem;font-weight:700;color:var(--ink);margin:16px 0 6px}
.congress-economic-account ul{padding-left:1.15rem;margin:6px 0 0;font-size:.85rem}
.congress-economic-account li{line-height:1.5;margin-bottom:8px}
.congress-proof-status{font-size:.82rem;font-weight:650;line-height:1.5;margin:8px 0 0}
#congress-economy-message:empty,#congress-proof-message:empty{display:none}
#congress-economy-link{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:var(--tap);margin-top:14px;padding:10px 14px;border-radius:999px;background:var(--surface-soft);font-size:.85rem;font-weight:700;text-decoration:none}
#congress-economy-link .app-icon{width:17px;height:17px}
.congress-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.congress-actions:has(button:not([hidden])){margin-bottom:8px}
.congress-actions:not(:has(button:not([hidden]))){display:none}
.congress-switch-help{display:none;margin:0 2px;font-size:.75rem}
.congress-panel:has(#congress-active:not([hidden])) .congress-switch-help{display:block}
.congress-proof-list{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.congress-proof-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);overflow-wrap:anywhere}
.congress-document-icon{display:grid;place-items:center;align-self:start;width:36px;height:40px;border-radius:var(--radius-sm);background:var(--surface-soft);color:var(--brand)}
.congress-document-icon .app-icon{width:21px;height:21px}
.congress-document-copy{min-width:0}
.congress-proof-row h3{font-size:.9rem;font-weight:750;line-height:1.4;margin:0 0 6px}
.congress-document-meta{font-size:.75rem;color:var(--muted);line-height:1.5;margin:0 0 8px}
.congress-document-state{display:inline-block;border-radius:6px;padding:4px 7px;font-size:.72rem;font-weight:700;line-height:1.4;color:var(--ink);background:var(--surface-soft)}
.congress-document-state[data-state="pending"]{background:color-mix(in srgb,var(--important) 12%,var(--surface))}
.congress-document-state[data-state="validated"]{background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
.congress-proof-row .congress-help{font-size:.75rem;margin:8px 0 0}
.congress-document-actions{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;margin-top:2px;display:flex;justify-content:flex-end}
.congress-panel .congress-proof-open{background:var(--surface-soft);color:var(--brand);border-color:var(--line);font-size:.82rem;padding-inline:16px}
.congress-proof-viewer{width:min(94vw,900px);max-width:calc(100% - 20px);max-height:calc(100dvh - 24px);padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);box-shadow:var(--shadow);overflow:auto}
.congress-proof-viewer[open]{display:flex;flex-direction:column;gap:14px}
.congress-proof-viewer::backdrop{background:color-mix(in srgb,var(--ink) 65%,transparent)}
.congress-proof-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;flex:none}
.congress-proof-toolbar h2{font-size:.95rem;font-weight:750;line-height:1.4;margin:0;align-self:center;max-height:5.6em;overflow:auto;overflow-wrap:anywhere}
.congress-panel #congress-proof-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);font-size:24px;font-weight:400;line-height:1}
#congress-proof-media{min-height:80px;flex:1 1 auto;overflow:auto;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--canvas);text-align:center}
#congress-proof-media:empty{display:none}
#congress-proof-media img{display:block;max-width:100%;max-height:65dvh;height:auto;object-fit:contain;margin:auto}
#congress-proof-media iframe{display:block;width:100%;height:55dvh;min-height:160px;border:0;background:var(--surface)}
.congress-proof-footer{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.congress-proof-footer .congress-help{flex:1 1 16rem;margin:0;font-size:.75rem}
#congress-proof-download{display:inline-flex;align-items:center;justify-content:center;min-height:var(--tap);padding:8px 12px;font-size:.82rem;font-weight:650;border-radius:999px;background:var(--surface-soft);text-decoration:none}
.congress-spinner{width:16px;height:16px;flex:0 0 16px;margin-top:2px;border:2px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:congress-spin .8s linear infinite}
@keyframes congress-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.congress-spinner{animation:none;border-style:dotted}}
@media(max-width:390px){.congress-panel{padding-inline:10px}.congress-panel section{padding:16px}.congress-proof-row{padding:12px}.congress-proof-viewer{width:calc(100% - 16px);max-width:calc(100% - 16px);padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}}
@media(max-width:360px){.congress-registration-details{grid-template-columns:1fr;gap:12px}}
/* Scope header wrapping to personal pages; shared public headers remain unchanged. */
.app-header:has(+.congress-panel) .app-header__title,.app-header:has(+.congress-panel) .app-brand__fallback{min-width:0;overflow-wrap:anywhere}
.congress-testing-notice strong{flex:1 1 8rem}
.congress-testing-notice a{flex:1 1 10rem}
/* Registered activities use the same card, typography and spacing tokens. */
.congress-course-list{list-style:none;padding:0;margin:0;display:grid;gap:16px}
.congress-course{padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;min-width:0}
.congress-course:last-child{border-bottom:0}
.congress-course h4{font-size:1.1rem;font-weight:800;margin:0 0 8px;color:var(--ink)}
.congress-course p{margin:0 0 8px}
.congress-course a{display:inline-flex;align-items:center;min-height:44px;margin-top:8px}
.congress-course-status,.congress-course-summary{font-weight:700;color:var(--ink)}
