:root {
    color-scheme: light;
    --ink: #17313a;
    --muted: #687b82;
    --line: #dce5e7;
    --soft: #f1f6f5;
    --surface: #ffffff;
    --brand: #174b5c;
    --brand-dark: #0d3442;
    --accent: #d69e2e;
    --danger: #a43838;
    --warning: #8a5a09;
    --shadow: 0 18px 45px rgba(18, 56, 68, .10);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #f5f8f7; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #f5f8f7; }
.error-body { display: grid; min-height: 100vh; place-items: center; padding: 1rem; background: linear-gradient(135deg, #eaf2f1, #f7f9f8); }
.error-shell { display: grid; gap: 1rem; width: min(100%, 37rem); }
.error-brand { display: flex; align-items: center; justify-content: center; gap: .65rem; color: var(--brand); }
.error-brand > span { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: .7rem; color: white; background: var(--accent); font-weight: 900; }
.error-card { display: grid; justify-items: center; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 18px 55px rgba(17,60,74,.1); text-align: center; }
.error-code { color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .14em; }
.error-card h1 { margin: .55rem 0; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.error-card p { max-width: 28rem; margin: 0; color: var(--muted); line-height: 1.55; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; margin: 1.5rem 0; }
.error-card > small { color: var(--muted); font-size: .68rem; line-height: 1.5; }
button, input { font: inherit; }
a { color: inherit; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: white; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .8rem; color: white; background: var(--accent); font-size: .8rem; letter-spacing: .04em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.brand-light { color: white; }
.eyebrow { display: block; margin-bottom: .6rem; color: #4f767f; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.guest-body { background: #eaf1ef; }
.guest-shell { display: grid; grid-template-columns: minmax(22rem, .9fr) minmax(28rem, 1.1fr); min-height: 100vh; }
.guest-intro { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 5vw, 5rem); color: #dcebed; background: radial-gradient(circle at 15% 15%, rgba(214,158,46,.24), transparent 28%), linear-gradient(145deg, #174b5c, #0c303d 68%); }
.guest-copy { max-width: 34rem; }
.guest-copy .eyebrow { color: #e5be6b; }
.guest-copy h1 { margin: 0 0 1.25rem; color: white; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.06em; }
.guest-copy p { max-width: 29rem; margin: 0; color: #bdd1d5; font-size: 1.06rem; line-height: 1.7; }
.guest-version { margin: 0; color: #9db8be; font-size: .78rem; }
.guest-content { display: grid; place-items: center; padding: 2rem; }
.login-panel { width: min(100%, 29rem); padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid rgba(23,75,92,.09); border-radius: 1.4rem; background: var(--surface); box-shadow: var(--shadow); }
.login-heading h2 { margin: 0 0 .5rem; font-size: 2rem; letter-spacing: -.04em; }
.login-heading p { margin: 0 0 2rem; color: var(--muted); }
.auth-form { display: grid; gap: .65rem; }
.auth-form label { font-size: .86rem; font-weight: 750; }
.auth-form input[type="email"], .auth-form .password-field input { width: 100%; min-height: 3.15rem; margin-bottom: .65rem; padding: .75rem .9rem; border: 1px solid #cbd9dc; border-radius: .7rem; color: var(--ink); background: #fbfdfd; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,75,92,.13); }
.password-field { position: relative; width: 100%; }
.password-field input { padding-right: 5.2rem !important; }
.auth-form > .password-field { margin-bottom: .65rem; }
.auth-form > .password-field input { margin-bottom: 0; }
.password-toggle { position: absolute; top: 50%; right: .55rem; translate: 0 -50%; min-width: 4.1rem; padding: .38rem .5rem; border: 0; border-radius: .45rem; color: var(--brand); background: #eaf2f2; cursor: pointer; font-size: .7rem; font-weight: 800; }
.password-toggle:hover, .password-toggle:focus-visible { color: white; background: var(--brand); outline: none; }
.password-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .8rem; margin: .1rem 0 1rem; padding: .85rem; border: 1px solid #dde7e8; border-radius: .7rem; background: #f8fbfa; }
.password-rules span { display: flex; align-items: center; gap: .4rem; color: #78898e; font-size: .69rem; line-height: 1.35; transition: color .15s; }
.password-rules span::before { content: ""; width: .48rem; height: .48rem; flex: none; border: 1px solid #9caaad; border-radius: 50%; background: white; transition: background .15s, border-color .15s; }
.password-rules span.is-valid { color: #276c57; font-weight: 750; }
.password-rules span.is-valid::before { border-color: #3b9276; background: #3b9276; box-shadow: inset 0 0 0 2px white; }
.password-rules-wide { max-width: 42rem; margin-top: 1rem; }
.label-row { display: flex; justify-content: space-between; gap: 1rem; }
.label-row span { color: #93a1a5; font-size: .75rem; }
.check-row { display: flex; align-items: center; gap: .6rem; margin: .25rem 0 1rem; color: var(--muted); font-weight: 500 !important; }
.check-row input { width: 1rem; height: 1rem; accent-color: var(--brand); }
.button { min-height: 3.15rem; border: 0; border-radius: .7rem; cursor: pointer; font-weight: 800; }
.button-primary { color: white; background: var(--brand); box-shadow: 0 8px 20px rgba(23,75,92,.18); }
.button-primary:hover { background: var(--brand-dark); }
.button-link { display: inline-grid; place-items: center; min-height: 2.8rem; padding: .7rem 1rem; color: white; background: var(--brand); text-decoration: none; }
.button-secondary { display: inline-grid; place-items: center; min-height: 2.8rem; padding: .7rem 1rem; border: 1px solid var(--line); color: var(--ink); background: white; text-decoration: none; }
.button.compact { min-height: 2.8rem; padding: .7rem 1rem; }
.privacy-note { margin: 1.5rem 0 0; color: #8a999d; font-size: .75rem; text-align: center; }
.session-expired-panel { display: grid; justify-items: center; text-align: center; }
.session-expired-icon { display: grid; width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; place-items: center; border-radius: 1rem; color: #73500c; background: #fff1cc; font-size: 1.45rem; box-shadow: inset 0 0 0 1px #ead6ad; }
.session-expired-panel .login-heading p { margin-bottom: 1.25rem; }
.session-expired-explanation { width: 100%; margin-bottom: 1.25rem; padding: 1rem; border: 1px solid #d7e5e2; border-radius: .75rem; color: #315d52; background: #f1f8f5; text-align: left; }
.session-expired-explanation strong { font-size: .8rem; }
.session-expired-explanation p { margin: .3rem 0 0; color: #617a74; font-size: .74rem; line-height: 1.5; }
.session-expired-action { width: 100%; text-decoration: none; }
.field-help { margin: -.35rem 0 .7rem; color: #7f9095; font-size: .72rem; line-height: 1.45; }
.secondary-form { margin-top: 1rem; text-align: center; }
.text-button { padding: .5rem; border: 0; color: #62787e; background: transparent; cursor: pointer; font-size: .78rem; text-decoration: underline; text-underline-offset: .2rem; }
.alert { display: flex; gap: 1rem; margin: 0 0 1.4rem; padding: 1rem 1.1rem; border-radius: .75rem; font-size: .87rem; }
.alert p { margin: .2rem 0 0; }
.alert-error { color: #7e2929; border: 1px solid #efcaca; background: #fff3f3; }
.alert-warning { color: #6c4709; border: 1px solid #ead6ad; background: #fff9e9; }
.alert-success { color: #25624f; border: 1px solid #bfe0d4; background: #edf9f4; }
.error-summary strong { display: block; margin-bottom: .35rem; }
.error-summary ul { display: grid; gap: .25rem; margin: 0; padding-left: 1.15rem; }

.app-shell { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 1.5rem 1.1rem; color: #dce9eb; background: #113c4a; }
.sidebar .brand { padding: 0 .55rem 1.5rem; color: white; }
.tenant-card { display: grid; gap: .3rem; margin-bottom: 1.4rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: .7rem; background: rgba(255,255,255,.06); }
.tenant-card span { color: #9fb9be; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.tenant-card strong { overflow: hidden; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.main-nav { display: grid; gap: .35rem; }
.nav-section { margin: 1rem .8rem .35rem; color: #7fa0a7; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: .75rem; min-height: 2.65rem; padding: .65rem .8rem; border-radius: .65rem; color: #c6dadd; font-size: .86rem; text-decoration: none; }
.nav-link > span { width: 1.1rem; color: #9ab7bd; text-align: center; }
.nav-link small { margin-left: auto; color: #6f9299; font-size: .62rem; }
.nav-link.is-active { color: white; background: rgba(255,255,255,.11); }
.nav-link.is-disabled { cursor: not-allowed; opacity: .7; }
.event-submenu { position: relative; display: grid; gap: .12rem; margin: -.1rem 0 .35rem 1.35rem; padding: .45rem 0 .35rem .8rem; border-left: 1px solid rgba(255,255,255,.18); }
.event-submenu-title { overflow: hidden; margin: 0 .55rem .3rem; color: #83a7ae; font-size: .58rem; font-weight: 850; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.event-submenu-link { position: relative; display: flex; align-items: center; min-height: 2rem; padding: .4rem .55rem; border-radius: .45rem; color: #adc7cc; font-size: .7rem; line-height: 1.25; text-decoration: none; }
.event-submenu-link::before { position: absolute; left: -.87rem; width: .42rem; height: 1px; background: rgba(255,255,255,.2); content: ''; }
.event-submenu-link:hover { color: white; background: rgba(255,255,255,.06); }
.event-submenu-link.is-active { color: white; background: rgba(255,255,255,.12); font-weight: 800; }
.audit-filters .filter-form { grid-template-columns: minmax(14rem, 1.4fr) repeat(5, minmax(8rem, 1fr)); }
.audit-filters .filter-actions { display: flex; align-items: end; justify-content: flex-end; gap: .5rem; grid-column: 1 / -1; }
.audit-results { margin-top: 1rem; }
.audit-results .results-heading > small { color: var(--muted); font-size: .66rem; }
.audit-table { min-width: 72rem; }
.audit-action { display: inline-flex; padding: .28rem .48rem; border-radius: 99rem; color: #245f54; background: #e7f3ef; font-size: .66rem; font-weight: 800; }
.audit-details summary { cursor: pointer; color: var(--brand); font-size: .7rem; font-weight: 800; }
.audit-details > div { display: grid; gap: .6rem; width: min(34rem, 70vw); margin-top: .55rem; }
.audit-details section { min-width: 0; }
.audit-details section > strong { display: block; margin-bottom: .25rem; color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.audit-details pre { max-height: 16rem; overflow: auto; margin: 0; padding: .65rem; border-radius: .5rem; color: #dbe8ea; background: #183943; font: .65rem/1.45 Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.sidebar-footer { display: grid; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.user-summary { display: flex; align-items: center; gap: .7rem; }
.avatar { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none; border-radius: 50%; color: #173b46; background: #e8bf68; font-weight: 850; }
.user-summary div { min-width: 0; display: grid; gap: .15rem; }
.user-summary strong, .user-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-summary strong { color: white; font-size: .78rem; }
.user-summary div span { color: #98b2b7; font-size: .66rem; }
.account-link { color: #d7e7e9; font-size: .7rem; text-decoration: none; }
.account-link:hover, .account-link:focus-visible { color: white; text-decoration: underline; text-underline-offset: .2rem; }
.logout-button { width: 100%; padding: .7rem; border: 1px solid rgba(255,255,255,.13); border-radius: .6rem; color: #c6dadd; background: transparent; cursor: pointer; font-size: .76rem; }
.logout-button:hover { color: white; background: rgba(255,255,255,.07); }
.main-content { min-width: 0; padding: clamp(1.5rem, 4vw, 3.5rem); }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.page-header h1 { margin: 0 0 .55rem; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.055em; }
.page-header p { max-width: 44rem; margin: 0; color: var(--muted); line-height: 1.6; }
.environment-badge, .status-dot { display: inline-flex; align-items: center; gap: .4rem; flex: none; padding: .45rem .7rem; border: 1px solid #cfe1dc; border-radius: 99rem; color: #356c5f; background: #edf8f3; font-size: .7rem; font-weight: 800; }
.environment-badge::before, .status-dot::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: #3e987d; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: 0 5px 22px rgba(18,56,68,.045); }
.metric-card { display: grid; gap: .55rem; padding: 1.4rem; }
.metric-card > span { color: var(--muted); font-size: .75rem; font-weight: 750; }
.metric-card strong { font-size: 2.35rem; letter-spacing: -.05em; }
.metric-card small { color: #8c9a9e; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(17rem, .7fr); gap: 1rem; }
.panel { padding: 1.5rem; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.status-list { display: grid; gap: .2rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.status-list li { display: flex; gap: .8rem; padding: .85rem 0; border-top: 1px solid #edf1f2; }
.status-list li > span { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; flex: none; border-radius: 50%; color: #256f59; background: #e3f4ed; font-size: .72rem; font-weight: 900; }
.status-list div { display: grid; gap: .2rem; }
.status-list strong { font-size: .83rem; }
.status-list small { color: var(--muted); line-height: 1.45; }
.next-panel { color: #dbe9eb; background: linear-gradient(155deg, #174b5c, #102f3b); }
.next-panel .eyebrow { color: #e3b95d; }
.next-panel h2 { color: white; font-size: 1.55rem; }
.next-panel p { color: #aec5ca; line-height: 1.6; }
.next-panel small { color: #8facb2; }
.progress-track { height: .4rem; margin: 2rem 0 .7rem; overflow: hidden; border-radius: 99rem; background: rgba(255,255,255,.12); }
.progress-track span { display: block; width: 28%; height: 100%; border-radius: inherit; background: var(--accent); }
.table-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.schools-table { min-width: 57rem; }
th, td { padding: 1rem 1.1rem; border-bottom: 1px solid #e8eeef; text-align: left; vertical-align: middle; }
th { color: #788a8f; background: #f8faf9; font-size: .67rem; letter-spacing: .07em; text-transform: uppercase; }
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link:hover, .sort-link:focus-visible { color: var(--brand); text-decoration: underline; text-underline-offset: .18rem; }
td { color: #435a61; font-size: .81rem; }
td strong, td small { display: block; }
td strong { color: var(--ink); font-size: .84rem; }
td small { margin-top: .2rem; color: #87979b; }
.table-action { width: 1%; text-align: right; white-space: nowrap; }
.table-action a, .link-button { border: 0; color: var(--brand); background: transparent; cursor: pointer; font-size: .78rem; font-weight: 750; text-decoration: none; }
.edit-link { display: inline-flex; padding: .5rem .7rem; border: 1px solid #cbdcdf !important; border-radius: .5rem; background: #f8fbfb !important; }
.edit-link:hover, .edit-link:focus-visible { border-color: var(--brand) !important; background: #edf5f5 !important; }
.status-label { display: inline-flex; padding: .3rem .55rem; border-radius: 99rem; font-size: .66rem; font-weight: 800; }
.status-label.is-success { color: #2e705b; background: #e6f5ef; }
.status-label.is-muted { color: #6e797c; background: #edf0f1; }
.empty-state { padding: 3rem; color: var(--muted); text-align: center; }
.entity-form { max-width: 58rem; }
.form-grid { display: grid; gap: 1.1rem; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; align-content: start; gap: .45rem; }
.field.span-2 { grid-column: span 2; }
.field label { font-size: .76rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 2.85rem; padding: .65rem .75rem; border: 1px solid #cbd9dc; border-radius: .65rem; color: var(--ink); background: #fbfdfd; outline: none; }
.field input[type="color"] { padding: .3rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,75,92,.11); }
.field input:disabled { color: #718287; background: #edf2f2; }
.field .password-field input { margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid #e6edee; }
.filter-panel { margin-bottom: 1rem; padding: 1.25rem; }
.filter-heading, .results-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.filter-heading { margin-bottom: 1rem; }
.filter-heading h2 { margin: 0 0 .2rem; font-size: 1rem; }
.filter-heading p { margin: 0; color: var(--muted); font-size: .74rem; }
.filter-clear { color: var(--brand); font-size: .74rem; font-weight: 750; text-decoration: none; }
.filter-clear:hover { text-decoration: underline; text-underline-offset: .2rem; }
.filter-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); align-items: end; gap: .8rem; }
.filter-search { grid-column: span 2; }
.filter-submit { display: flex; align-items: end; }
.filter-submit .button { width: 100%; }
.results-heading { min-height: 3.5rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); background: #fbfcfc; }
.results-heading div { display: flex; align-items: baseline; gap: .3rem; }
.results-heading strong { color: var(--brand); font-size: 1.2rem; }
.results-heading span, .results-heading small { color: var(--muted); font-size: .72rem; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; }
.checkbox-group legend { padding: 0 .35rem; font-size: .76rem; font-weight: 800; }
.checkbox-group label { display: flex; align-items: center; gap: .4rem; font-size: .78rem; }
.checkbox-group input { width: auto; min-height: auto; accent-color: var(--brand); }
.optional-label { color: var(--muted); font-weight: 500; }
.field-help-inline { margin-top: -.15rem; color: var(--muted); font-size: .7rem; }
.field-help-inline a { color: var(--brand); }
.location-label { display: inline-flex; margin-top: .35rem; padding: .25rem .45rem; border-radius: 99rem; color: #727f83; background: #edf0f1; font-size: .62rem; font-weight: 800; }
.location-label.is-rural { color: #557026; background: #eff6df; }
.location-label.is-urban { color: #28677b; background: #e4f2f6; }
.pagination-shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding: 1rem 1.1rem; background: white; }
.pagination-summary { margin: 0; color: var(--muted); font-size: .75rem; }
.pagination-list { display: flex; align-items: center; gap: .3rem; }
.pagination-button { display: inline-grid; place-items: center; min-width: 2.25rem; min-height: 2.25rem; padding: .45rem .65rem; border: 1px solid #d6e1e3; border-radius: .5rem; color: var(--brand); background: white; font-size: .72rem; font-weight: 750; text-decoration: none; }
.pagination-button:hover { border-color: var(--brand); background: #f0f6f6; }
.pagination-button.is-current { border-color: var(--brand); color: white; background: var(--brand); }
.pagination-button.is-disabled { color: #a0abad; background: #f5f7f7; cursor: default; }
.pagination-ellipsis { padding: 0 .25rem; color: var(--muted); }
.history-panel { margin-top: 1rem; }
.history-dates { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.history-dates span { padding: .4rem .6rem; border-radius: .45rem; color: var(--muted); background: var(--soft); font-size: .72rem; }
.date-list { display: grid; gap: .55rem; }
.date-row { display: flex; gap: .55rem; }
.date-row input { flex: 1; }
.date-remove { padding: .5rem .7rem; border: 1px solid #e2c9c9; border-radius: .5rem; color: var(--danger); background: #fff8f8; cursor: pointer; font-size: .72rem; font-weight: 750; }
.date-remove:disabled { color: #a9b1b3; border-color: var(--line); background: #f5f7f7; cursor: default; }
.add-date-button { width: max-content; margin-top: .55rem; }
.event-options { align-items: flex-start; flex-direction: column; }
.event-options .rule-option { align-items: flex-start; }
.rule-option > span { display: grid; gap: .22rem; }
.rule-option strong { color: var(--ink); font-size: .78rem; }
.rule-option small { max-width: 48rem; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: .76rem; font-style: italic; font-weight: 400; line-height: 1.5; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; }
.header-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.group-create-panel { width: 100%; max-width: 76rem; }
.group-create-panel .form-grid { gap: 1.25rem; }
.municipality-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: start; max-height: none; gap: .75rem 1.25rem; }
.municipality-options label { min-width: 0; }
.group-date-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; }
.group-date-options legend { padding: 0 .35rem; font-size: .76rem; font-weight: 800; }
.group-date-card { display: grid; gap: .75rem; min-width: 0; padding: .9rem; border: 1px solid #dce6e8; border-radius: .7rem; background: #fafcfc; transition: border-color .15s, background .15s, box-shadow .15s; }
.group-date-card.is-selected { border-color: #91b2ba; background: #f3f8f8; box-shadow: 0 0 0 2px rgba(23,75,92,.06); }
.group-date-title, .group-date-shifts, .group-date-shifts label { display: flex; align-items: center; gap: .5rem; }
.group-date-title { min-height: 1.5rem; font-size: .78rem; }
.group-date-title input, .group-date-shifts input { width: 1rem !important; height: 1rem; min-height: 0 !important; flex: none; margin: 0; padding: 0; accent-color: var(--brand); }
.group-date-shifts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; font-size: .72rem; }
.group-date-shifts label { min-width: 0; }
.group-date-card:not(.is-selected) .group-date-shifts { opacity: .4; }
.group-create-panel textarea { resize: vertical; }
.agenda-workspace-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(20rem, .55fr); align-items: start; gap: 1rem; }
.agenda-workspace-grid > :only-child { grid-column: 1 / -1; }
.agenda-create-panel, .agenda-list-panel { width: 100%; min-width: 0; margin: 0; }
.moment-priority-callout { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .75rem 1rem; margin-bottom: 1rem; padding: .9rem 1rem; border: 1px solid #c9dfdb; border-radius: .75rem; color: #31525a; background: #eef7f5; }
.moment-priority-callout strong { color: var(--brand); font-size: .8rem; }
.moment-priority-callout span { font-size: .7rem; line-height: 1.5; }
.moment-form-flow { display: grid; gap: 1rem; }
.moment-form-step { display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fbfcfc; }
.moment-step-heading { display: flex; align-items: flex-start; gap: .65rem; }
.moment-step-heading > span { display: grid; flex: 0 0 1.55rem; width: 1.55rem; height: 1.55rem; place-items: center; border-radius: 50%; color: white; background: var(--brand); font-size: .68rem; font-weight: 900; }
.moment-step-heading h3 { margin: 0; font-size: .88rem; }
.moment-step-heading p { margin: .18rem 0 0; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.moment-form-step .municipality-options { padding: 0; border: 0; }
.moment-form-step .municipality-options label { padding: .55rem .65rem; border: 1px solid #dce6e8; border-radius: .5rem; background: white; }
.moment-form-step .municipality-options label:has(input:checked) { border-color: #8eb4b6; background: #eaf4f3; }
.moment-form-step .municipality-options label:has(input:disabled) { opacity: .48; }
.moment-calendar-list { gap: .65rem; }
.moment-calendar-list .event-calendar-row { background: white; }
.moment-advanced-options { border: 1px solid var(--line); border-radius: .65rem; background: #fbfcfc; }
.moment-advanced-options summary { padding: .75rem 1rem; cursor: pointer; color: var(--brand); font-size: .72rem; font-weight: 800; }
.moment-advanced-options > .form-grid { padding: 0 1rem 1rem; }
.moment-summary-card { gap: .75rem; }
.moment-demand-action { width: 100%; justify-content: center; }
.event-next-step-note { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-color: #c9dfdb; background: #f1f8f6; }
.agenda-list-panel { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.agenda-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.agenda-panel-heading .eyebrow { margin-bottom: .35rem; }
.agenda-count { display: grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .55rem; border-radius: 99rem; color: var(--brand); background: #eaf2f2; font-size: .8rem; font-weight: 850; }
.agenda-summary-list { display: grid; gap: .75rem; }
.agenda-summary-card { display: grid; gap: .8rem; padding: 1rem; border: 1px solid #dce6e8; border-radius: .75rem; background: #fbfcfc; }
.agenda-summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.agenda-summary-heading > div { display: grid; gap: .2rem; }
.agenda-summary-heading strong { font-size: .9rem; }
.agenda-summary-heading small { color: var(--muted); font-size: .68rem; }
.agenda-date-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .45rem; }
.agenda-date-list div { display: grid; gap: .15rem; padding: .55rem; border-radius: .5rem; background: #eef4f4; }
.agenda-date-list strong { font-size: .74rem; }
.agenda-date-list span { color: var(--muted); font-size: .66rem; line-height: 1.35; }
.agenda-cities { display: grid; gap: .25rem; margin: 0; color: #425a61; font-size: .72rem; line-height: 1.45; }
.agenda-cities span, .agenda-demand-count span { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.agenda-demand-count { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .7rem; border-top: 1px solid #e5ecee; }
.agenda-demand-count strong { color: var(--brand); font-size: 1rem; }
.agenda-empty-state { padding: 2rem 1rem; color: var(--muted); text-align: center; }
.agenda-empty-state strong { color: var(--ink); }
.agenda-empty-state p { margin: .45rem auto 0; max-width: 20rem; font-size: .74rem; line-height: 1.5; }
.allocation-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.allocation-workspace-grid { display: grid; grid-template-columns: minmax(20rem, .72fr) minmax(0, 1.28fr); align-items: start; gap: 1rem; }
.allocation-review-panel { margin-bottom: 1rem; }
.allocation-review-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; padding: 0 1rem 1rem; }
.allocation-review-grid > div { display: grid; gap: .2rem; min-width: 0; padding: .8rem; border: 1px solid var(--line); border-radius: .65rem; background: #f8fafa; }
.allocation-review-grid span { color: var(--muted); font-size: .65rem; font-weight: 750; }
.allocation-review-grid strong { color: var(--brand); font-size: 1.25rem; }
.allocation-review-grid small { color: var(--muted); font-size: .62rem; line-height: 1.35; }
.allocation-review-result { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 1rem 1rem; padding: .9rem; border: 1px solid #eadcaf; border-radius: .7rem; background: #fff9e8; }
.allocation-review-result.is-ready { border-color: #bcded1; background: #edf8f3; }
.allocation-review-result strong { font-size: .78rem; }
.allocation-review-result p { margin: .2rem 0 0; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.allocation-review-actions { display: flex; align-items: center; gap: .55rem; }
.allocation-professionals-panel, .allocation-demands-panel { display: grid; gap: 1rem; min-width: 0; }
.allocation-professionals-panel { position: sticky; top: 1rem; }
.allocation-import-form { display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fafcfc; }
.allocation-import-heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.allocation-import-heading > div { display: grid; gap: .2rem; }
.allocation-import-heading strong { font-size: .78rem; }
.allocation-import-heading small { color: var(--muted); font-size: .65rem; line-height: 1.4; }
.allocation-import-heading > span { flex: 0 0 auto; padding: .28rem .5rem; border-radius: 99rem; color: var(--brand); background: #e8f2f1; font-size: .64rem; font-weight: 800; }
.allocation-import-form input[type="search"] { width: 100%; min-height: 2.6rem; padding: .6rem .7rem; border: 1px solid #cbd9dc; border-radius: .55rem; background: white; }
.professional-import-filters { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)); gap: .5rem; }
.professional-import-filters > div { display: grid; gap: .25rem; min-width: 0; }
.professional-import-filters label { font-size: .62rem; font-weight: 800; }
.professional-import-filters input, .professional-import-filters select { min-width: 0; width: 100%; padding: .55rem; border: 1px solid #cbd9dc; border-radius: .5rem; background: white; font-size: .68rem; }
.allocation-select-all, .professional-checklist label { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.allocation-select-all { padding: .55rem .65rem; border-radius: .5rem; color: var(--brand); background: #eef5f5; font-size: .68rem; font-weight: 800; }
.allocation-select-all input, .professional-checklist input { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; accent-color: var(--brand); }
.professional-checklist { display: grid; max-height: 18rem; overflow-y: auto; border: 1px solid var(--line); border-radius: .6rem; background: white; }
.professional-checklist label { padding: .58rem .65rem; border-bottom: 1px solid #edf1f2; }
.professional-checklist label:last-of-type { border-bottom: 0; }
.professional-checklist label:hover { background: #f4f8f8; }
.professional-checklist label:has(input:checked) { background: #eaf4f3; }
.professional-checklist [hidden] { display: none; }
.professional-checklist label > span { display: grid; gap: .12rem; min-width: 0; }
.professional-checklist strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.professional-checklist small { color: var(--muted); font-size: .61rem; }
.professional-search-empty { margin: 0; padding: 1.25rem .75rem; color: var(--muted); font-size: .68rem; text-align: center; }
.allocation-import-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.participant-list, .allocation-demand-list { display: grid; gap: .75rem; }
.participant-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .55rem; margin: 0 1rem 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: .7rem; background: #f7faf9; }
.participant-progress { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; }
.participant-progress strong { color: var(--brand); font-size: .9rem; }
.participant-progress span, .participant-toolbar small { color: var(--muted); font-size: .66rem; }
.participant-toolbar input, .participant-toolbar select { min-width: 0; padding: .6rem; border: 1px solid #cbd9dc; border-radius: .5rem; background: white; font-size: .7rem; }
.participant-toolbar small { grid-column: 1 / -1; text-align: right; }
.participant-filter-empty { grid-column: 1 / -1; }
.participant-card { overflow: hidden; border: 1px solid #dce6e8; border-radius: .7rem; background: #fbfcfc; }
.participant-card summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem; cursor: pointer; list-style: none; }
.participant-card summary::-webkit-details-marker { display: none; }
.participant-card summary > span:first-child { display: grid; gap: .2rem; }
.participant-card summary strong { font-size: .78rem; }
.participant-card summary small { color: var(--muted); font-size: .65rem; }
.participant-card[open] summary { border-bottom: 1px solid var(--line); background: #f3f7f7; }
.participant-card form { display: grid; gap: .8rem; padding: .85rem; }
.availability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .55rem; }
.availability-grid fieldset { display: grid; gap: .35rem; margin: 0; padding: .65rem; border: 1px solid var(--line); border-radius: .55rem; }
.availability-grid legend { padding: 0 .25rem; font-size: .67rem; font-weight: 850; }
.availability-grid label, .saeb-validation { display: flex; align-items: center; gap: .4rem; font-size: .68rem; }
.availability-grid input, .saeb-validation input { width: 1rem; height: 1rem; accent-color: var(--brand); }
.availability-bulk-actions { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .6rem; border-radius: .5rem; background: #eef5f4; }
.availability-bulk-actions > span { font-size: .67rem; font-weight: 850; }
.availability-bulk-actions > div, .availability-date-actions { display: flex; gap: .35rem; }
.availability-bulk-actions button, .availability-date-actions button { padding: .3rem .45rem; border: 1px solid #c8d8da; border-radius: .4rem; color: var(--brand); background: white; cursor: pointer; font-size: .6rem; font-weight: 800; }
.availability-date-actions { padding-bottom: .25rem; border-bottom: 1px solid #e5ecee; }
.availability-selection-count { margin: 0; color: var(--muted); font-size: .65rem; }
.availability-unsaved { color: #805b0b; font-size: .65rem; font-weight: 750; }
.saeb-validation { align-items: flex-start; padding: .65rem; border-radius: .55rem; color: #6d500f; background: #fff7df; line-height: 1.4; }
.allocation-demand-card { display: grid; gap: .8rem; padding: 1rem; border: 1px solid #dce6e8; border-radius: .75rem; background: #fbfcfc; }
.allocation-filter-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0 1rem 1rem; padding: 1rem; border: 1px solid #dce6e8; border-radius: .75rem; background: #f7faf9; }
.allocation-filter-form .field { margin: 0; min-width: 0; }
.allocation-filter-search { grid-column: 1 / -1; }
.allocation-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: .5rem; padding-top: .2rem; }
.allocation-filter-summary { margin: 0 1rem 1rem; color: #637b82; font-size: .88rem; }
.allocation-suggestion-legend { display: grid; gap: .2rem; margin: 0 1rem 1rem; padding: .7rem .8rem; border-left: .2rem solid var(--brand); border-radius: .4rem; color: #4e676e; background: #eef6f5; font-size: .68rem; line-height: 1.45; }
.allocation-suggestion-legend strong { color: var(--ink); font-size: .72rem; }
.allocation-moment-block { display: grid; gap: .85rem; padding: 1rem; border: 1px solid #cbdcdf; border-radius: .85rem; background: #f5f9f8; }
.allocation-moment-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #d6e2e4; }
.allocation-moment-heading > div { display: grid; gap: .15rem; }
.allocation-moment-heading h3 { margin: 0; font-size: 1rem; }
.allocation-moment-heading p { margin: 0; color: var(--muted); font-size: .7rem; }
.allocation-moment-progress { flex: none; padding: .4rem .65rem; border-radius: 99rem; color: #805b0b; background: #fff1c9; font-size: .68rem; font-weight: 850; }
.allocation-moment-progress.is-complete { color: #25614f; background: #dff2e9; }
.allocation-date-group { display: grid; gap: .6rem; }
.allocation-date-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .15rem .25rem; }
.allocation-date-heading strong { font-size: .8rem; }
.allocation-date-heading span { color: var(--muted); font-size: .68rem; font-weight: 750; }
.allocation-date-demands { display: grid; gap: .65rem; }
.allocation-demand-heading { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.allocation-demand-heading > div { display: grid; gap: .2rem; }
.allocation-demand-heading strong { font-size: .88rem; }
.allocation-demand-heading small { color: var(--muted); font-size: .68rem; line-height: 1.4; }
.allocation-demand-heading > span { display: grid; place-items: center; min-width: 2.7rem; height: 2rem; border-radius: 99rem; color: var(--brand); background: #e8f2f1; font-size: .72rem; font-weight: 850; }
.allocation-demand-heading > span.is-complete { color: #25614f; background: #dff2e9; }
.allocation-slot-row { display: grid; gap: .55rem; padding: .7rem; border-radius: .6rem; background: white; }
.slot-heading { display: flex; justify-content: space-between; gap: 1rem; font-size: .72rem; }
.slot-heading span { color: var(--muted); }
.assigned-professional { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .5rem .6rem; border-radius: .5rem; color: #286451; background: #edf8f3; font-size: .72rem; font-weight: 750; }
.assigned-professional form { display: flex; align-items: center; gap: .4rem; }
.assigned-professional input { width: 9rem; padding: .35rem; border: 1px solid #cbd9dc; border-radius: .4rem; font-size: .65rem; }
.assigned-professional-summary { display: grid; flex: 1; gap: .45rem; }
.assigned-professional-summary small { color: #52786b; font-size: .64rem; font-weight: 650; }
.allocation-management-dialog { width: min(calc(100% - 2rem), 42rem); max-height: calc(100vh - 2rem); padding: 0; overflow: auto; border: 0; border-radius: 1rem; color: var(--ink); background: white; box-shadow: 0 24px 70px rgba(11,35,43,.28); }
.allocation-management-dialog::backdrop { background: rgba(8,28,35,.68); backdrop-filter: blur(2px); }
.allocation-management-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--line); }
.allocation-management-header h2 { margin: .15rem 0 .3rem; font-size: 1.3rem; }
.allocation-management-header p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.4; }
.allocation-management-body { display: grid; gap: 1rem; padding: 1.25rem 1.5rem; }
.allocation-management-option { display: grid; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #f9fbfb; }
.allocation-management-option > div:first-child { display: flex; align-items: flex-start; gap: .7rem; }
.allocation-option-number { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; flex: none; border-radius: 50%; color: white; background: var(--brand); font-size: .68rem; font-weight: 850; }
.allocation-management-option h3 { margin: 0 0 .2rem; font-size: .88rem; }
.allocation-management-option p { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.allocation-management-option form { display: grid; gap: .55rem; }
.allocation-management-option label { font-size: .68rem; font-weight: 800; }
.allocation-management-option select, .allocation-management-option textarea { width: 100%; padding: .65rem; border: 1px solid #cbd9dc; border-radius: .55rem; background: white; }
.allocation-management-option textarea { min-height: 4.8rem; resize: vertical; }
.allocation-management-option form .button { justify-self: end; }
.allocation-management-option.is-danger { border-color: #ead1d1; background: #fffafa; }
.allocation-management-option.is-danger .allocation-option-number { background: var(--danger); }
.allocation-management-footer { display: flex; justify-content: flex-end; padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
.allocation-replacement { color: var(--ink); font-weight: 500; }
.allocation-replacement summary { width: max-content; color: var(--brand); cursor: pointer; font-size: .68rem; font-weight: 800; text-decoration: underline; text-underline-offset: .18rem; }
.allocation-replacement form { display: grid; gap: .45rem; margin-top: .55rem; padding: .75rem; border: 1px solid var(--line); border-radius: .55rem; background: white; }
.allocation-replacement label { font-size: .65rem; font-weight: 800; }
.allocation-replacement select, .allocation-replacement textarea { width: 100%; min-height: 2.5rem; padding: .55rem; border: 1px solid #cbd9dc; border-radius: .45rem; background: white; }
.allocation-replacement textarea { min-height: 4.5rem; resize: vertical; }
.allocation-remove-form { flex: 0 0 auto; }
.allocation-assign-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; }
.allocation-assign-form select { min-width: 0; min-height: 2.6rem; padding: .55rem .65rem; border: 1px solid #cbd9dc; border-radius: .55rem; background: white; }
.allocation-assignment-block { display: grid; gap: .55rem; }
.allocation-unavailable-reasons { display: grid; gap: .25rem; padding: .65rem .75rem; border: 1px solid #eadcaf; border-radius: .5rem; color: #735615; background: #fff9e8; font-size: .67rem; line-height: 1.45; }
.allocation-unavailable-reasons strong { color: #5b430e; font-size: .7rem; }
.allocation-unavailable-reasons p, .allocation-unavailable-reasons ul { margin: 0; }
.allocation-unavailable-reasons ul { display: grid; gap: .15rem; padding-left: 1.1rem; }
.requirement-create { margin-bottom: 1rem; }
.requirement-create h2 { margin-bottom: 1.25rem; }
.requirement-list { margin-top: 1rem; }
.back-link { display: inline-flex; margin-bottom: 1rem; color: var(--brand); font-size: .76rem; font-weight: 750; text-decoration: none; }
.back-link:hover, .back-link:focus-visible { text-decoration: underline; text-underline-offset: .2rem; }
.event-workspace-header .header-actions { align-items: center; }
.event-overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(18rem, .7fr); gap: 1rem; align-items: start; }
.event-progress-panel { padding: 0; overflow: hidden; }
.event-progress-panel > .panel-heading { padding: 1.5rem 1.5rem 1rem; }
.progress-value { color: var(--brand); font-size: 1.45rem; }
.event-progress-track { display: block; width: calc(100% - 3rem); height: .45rem; margin: 0 1.5rem 1.2rem; overflow: hidden; border: 0; border-radius: 99rem; background: #e7eeef; appearance: none; }
.event-progress-track::-webkit-progress-bar { border-radius: inherit; background: #e7eeef; }
.event-progress-track::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, var(--accent), #e0b95f); transition: width .25s ease; }
.event-progress-track::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--accent), #e0b95f); transition: width .25s ease; }
.event-task-list { margin: 0; padding: 0; list-style: none; }
.event-task { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto auto; align-items: center; gap: .9rem; min-height: 5rem; padding: 1rem 1.5rem; border-top: 1px solid #e8eeef; }
.task-marker { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 1px solid #cad7da; border-radius: 50%; color: #77898e; background: white; font-size: .72rem; font-weight: 850; }
.event-task > div { display: grid; gap: .2rem; }
.event-task strong { font-size: .86rem; }
.event-task small { color: var(--muted); line-height: 1.4; }
.event-task > a { color: var(--brand); font-size: .76rem; font-weight: 800; text-decoration: none; }
.event-task > a:hover, .event-task > a:focus-visible { text-decoration: underline; text-underline-offset: .2rem; }
.task-status { padding: .3rem .55rem; border-radius: 99rem; color: #6e797c; background: #edf0f1; font-size: .64rem; font-weight: 800; white-space: nowrap; }
.event-task.is-complete .task-marker { border-color: #5f9c88; color: white; background: #3e8a70; }
.event-task.is-complete .task-status { color: #2e705b; background: #e6f5ef; }
.event-task.is-current { background: #f8fbfa; }
.event-task.is-current .task-marker { border-color: var(--accent); color: #6f4b05; background: #fff4d8; box-shadow: 0 0 0 3px rgba(214,158,46,.12); }
.event-task.is-current .task-status { color: #73500c; background: #fff1cc; }
.event-task.is-locked { opacity: .65; }
.event-summary-panel { position: sticky; top: 1rem; }
.event-summary-list { display: grid; margin: 1rem 0 1.3rem; }
.event-summary-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #edf1f2; }
.event-summary-list dt { color: var(--muted); font-size: .76rem; }
.event-summary-list dd { margin: 0; color: var(--ink); font-size: 1.05rem; font-weight: 850; }
.event-next-block { display: grid; gap: .35rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #edf1f2; }
.event-next-block > span { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.event-next-block > strong { margin-bottom: .45rem; font-size: .8rem; line-height: 1.4; }
.event-next-action { display: grid; place-items: center; width: 100%; min-width: 0; min-height: 2.8rem; padding: .7rem .8rem; text-align: center; line-height: 1.25; white-space: normal; }
.event-review { display: grid; gap: 1.2rem; margin-top: 1rem; }
.readiness-issues { display: grid; gap: .55rem; margin: 0; padding-left: 1.25rem; color: #6c4709; font-size: .82rem; }
.review-success { margin: 0; color: #25624f; }
.event-review form { display: flex; justify-content: flex-end; }
.event-review-table { margin-top: 1rem; }
.button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
.form-section { display: grid; gap: 1.2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: .85rem; background: #fcfdfd; }
.form-section-heading { display: flex; align-items: flex-start; gap: .8rem; }
.form-section-heading > span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; flex: none; border-radius: 50%; color: white; background: var(--brand); font-size: .72rem; font-weight: 850; }
.form-section-heading h2 { margin: 0 0 .25rem; font-size: 1rem; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.event-calendar-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(27rem, 100%), 1fr)); gap: .75rem; }
.event-calendar-row { display: grid; grid-template-columns: minmax(9.5rem, .7fr) minmax(15rem, 1.3fr) auto; align-items: end; gap: 1rem; min-width: 0; min-height: 7rem; padding: 1rem; border: 1px solid #dce6e8; border-radius: .75rem; background: white; }
.event-calendar-row > .field { align-self: end; }
.calendar-shifts { gap: .45rem; min-width: 0; }
.calendar-shifts-label { font-size: .76rem; font-weight: 800; line-height: 1.2; }
.calendar-shift-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: .35rem 1rem; min-height: 2.85rem; padding: .45rem .7rem; border: 1px solid #cbd9dc; border-radius: .65rem; background: #fbfdfd; }
.calendar-shift-options label { display: flex; align-items: center; gap: .4rem; min-width: 0; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.calendar-shift-options input { width: 1rem !important; height: 1rem; min-height: 0 !important; flex: none; margin: 0; padding: 0; accent-color: var(--brand); }
.event-calendar-row > .date-remove { align-self: end; min-height: 2.85rem; margin: 0; }
.moment-calendar-list { grid-template-columns: repeat(2, minmax(20rem, 1fr)); align-items: start; }
.moment-calendar-list .event-calendar-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: end; gap: .75rem; min-height: 0; padding: .9rem; }
.moment-calendar-list .event-calendar-row > .field:first-child { grid-column: 1; grid-row: 1; align-self: end; }
.moment-calendar-list .event-calendar-row > .calendar-shifts { grid-column: 1 / -1; grid-row: 2; align-self: stretch; }
.moment-calendar-list .event-calendar-row > .date-remove { grid-column: 2; grid-row: 1; min-width: 6rem; min-height: 2.85rem; }
.moment-calendar-list .calendar-shift-options { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 3.6rem; }
.event-configuration-form { max-width: 76rem; }
.event-configuration-form > form > .form-grid.two-columns { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.event-configuration-form > form > .form-grid.two-columns > .field.span-2 { grid-column: 1 / -1; }
.configuration-basic-section, .configuration-rules-section, .configuration-calendar-section { grid-column: 1 / -1; min-width: 0; }
.configuration-basic-section > .form-grid { max-width: 48rem; }
.configuration-rules-section > .checkbox-group { width: 100%; }
.configuration-calendar-section { background: #f9fbfb; }
.configuration-calendar-section .add-date-button { justify-self: start; }
.demand-context { display: grid; gap: 1.4rem; }
.demand-rows-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.demand-rows-heading h3 { margin: 0 0 .2rem; font-size: 1rem; }
.demand-rows-heading p { margin: 0; color: var(--muted); font-size: .74rem; }
.demand-rows { display: grid; gap: .85rem; }
.demand-row { position: relative; display: grid; gap: .9rem; padding: 1rem; border: 1px solid #d9e4e6; border-radius: .8rem; background: #fbfcfc; }
.demand-row-number { color: var(--brand); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.demand-row-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.demand-row-notes { grid-column: span 3; }
.demand-row-remove { justify-self: end; padding: .35rem .55rem; border: 0; color: var(--danger); background: transparent; cursor: pointer; font-size: .7rem; font-weight: 750; }
.demand-row-remove:disabled { visibility: hidden; }
.danger-zone { display: flex; justify-content: flex-end; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #efdcdc; }
.danger-button, .danger-link { border: 0; color: var(--danger); background: transparent; cursor: pointer; font-size: .74rem; font-weight: 800; }
.danger-button { padding: .65rem .8rem; border: 1px solid #e2c9c9; border-radius: .55rem; background: #fff8f8; }
.danger-button:hover, .danger-link:hover { color: #7f2525; text-decoration: underline; text-underline-offset: .18rem; }
.confirmation-dialog { width: min(calc(100% - 2rem), 34rem); padding: 0; border: 0; border-radius: 1rem; color: var(--ink); background: white; box-shadow: 0 24px 70px rgba(11,35,43,.28); }
.confirmation-dialog::backdrop { background: rgba(8,28,35,.68); backdrop-filter: blur(2px); }
.confirmation-dialog form { display: grid; gap: 1.15rem; padding: 1.5rem; }
.dialog-warning-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: white; background: var(--danger); font-size: 1.2rem; font-weight: 900; }
.dialog-heading h2 { margin: 0 0 .55rem; font-size: 1.35rem; }
.dialog-heading p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.dialog-heading strong { color: var(--danger); }
.irreversible-confirmation { display: flex; align-items: flex-start; gap: .6rem; padding: .8rem; border: 1px solid #ead1d1; border-radius: .65rem; color: #753232; background: #fff7f7; font-size: .76rem; font-weight: 700; line-height: 1.45; }
.irreversible-confirmation input { width: 1rem; height: 1rem; flex: none; margin-top: .1rem; accent-color: var(--danger); }
.dialog-actions { display: flex; justify-content: flex-end; gap: .65rem; padding-top: .25rem; }
.dialog-delete-button { padding: .7rem 1rem; color: white; background: var(--danger); }
.dialog-delete-button:hover:not(:disabled) { background: #7f2525; }
.deletion-progress { display: grid; gap: .5rem; padding: .8rem; border-radius: .65rem; background: #f7fafa; }
.deletion-progress[hidden] { display: none; }
.deletion-progress-heading { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); font-size: .72rem; font-weight: 800; }
.deletion-progress-track { display: block; width: 100%; height: .42rem; overflow: hidden; border: 0; border-radius: 99rem; background: #e3eaeb; appearance: none; }
.deletion-progress-track::-webkit-progress-bar { border-radius: inherit; background: #e3eaeb; }
.deletion-progress-track::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, var(--danger), #d97777); transition: width .18s ease; }
.deletion-progress-track::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--danger), #d97777); transition: width .18s ease; }
.deletion-progress small { color: var(--muted); font-size: .68rem; }
.confirmation-dialog form.is-deleting > :not(.deletion-progress, .dialog-actions) { opacity: .48; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .deletion-progress-track::-webkit-progress-value, .deletion-progress-track::-moz-progress-bar { transition: none; } }

@media (max-width: 1200px) {
    .audit-filters .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agenda-workspace-grid { grid-template-columns: 1fr; }
    .agenda-list-panel { position: static; }
    .allocation-workspace-grid { grid-template-columns: 1fr; }
    .allocation-professionals-panel { position: static; }
    .allocation-review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
    .guest-shell { grid-template-columns: 1fr; }
    .guest-intro { min-height: 18rem; padding: 2rem; }
    .guest-copy h1 { font-size: 2.5rem; }
    .guest-version { display: none; }
    .guest-content { padding: 1.25rem; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .main-nav, .tenant-card { display: none; }
    .sidebar-footer { margin-top: 1rem; }
    .metric-grid, .content-grid, .event-overview-grid { grid-template-columns: 1fr; }
    .allocation-metrics { grid-template-columns: 1fr; }
    .event-summary-panel { position: static; }
    .agenda-workspace-grid { grid-template-columns: 1fr; }
    .agenda-list-panel { position: static; }
    .form-grid.two-columns { grid-template-columns: 1fr; }
    .event-calendar-row { grid-template-columns: 1fr; align-items: stretch; }
    .moment-calendar-list { grid-template-columns: 1fr; }
    .moment-calendar-list .event-calendar-row { grid-template-columns: minmax(0, 1fr) auto; }
    .demand-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .demand-row-notes { grid-column: span 2; }
    .field.span-2 { grid-column: span 1; }
    .filter-form { align-items: stretch; flex-direction: column; }
    .filter-search { grid-column: span 1; }
}

@media (min-width: 1200px) {
    .event-configuration-form > form > .form-grid.two-columns { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
    .configuration-basic-section { grid-column: 1; }
    .configuration-rules-section { grid-column: 2; }
    .configuration-calendar-section { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .audit-filters .filter-form { grid-template-columns: 1fr; }
    .allocation-filter-form { grid-template-columns: 1fr; margin-inline: .75rem; }
    .allocation-filter-search, .allocation-filter-actions { grid-column: auto; }
    .allocation-filter-actions { align-items: stretch; flex-direction: column; }
    .allocation-filter-actions .button { justify-content: center; width: 100%; }
    .allocation-filter-summary { margin-inline: .75rem; }
    .participant-toolbar { grid-template-columns: 1fr; margin-inline: .75rem; }
    .professional-import-filters { grid-template-columns: 1fr; }
    .participant-progress, .participant-toolbar small { grid-column: auto; }
    .allocation-review-grid { grid-template-columns: 1fr; }
    .allocation-review-result, .allocation-review-actions { align-items: stretch; flex-direction: column; }
    .allocation-review-actions .button { justify-content: center; width: 100%; }
    .moment-priority-callout { grid-template-columns: 1fr; }
    .event-next-step-note { align-items: stretch; flex-direction: column; }
    .main-content { padding: 1rem; }
    .schools-header .button { width: 100%; }
    .filter-heading, .results-heading, .pagination-shell { align-items: flex-start; flex-direction: column; }
    .filter-form { grid-template-columns: 1fr; }
    .table-panel.schools-results { overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .schools-results .table-wrap { overflow: visible; }
    .schools-table { min-width: 0; }
    .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
    .responsive-table thead { display: none; }
    .responsive-table tbody { display: grid; gap: .8rem; }
    .responsive-table tr { overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: white; box-shadow: 0 4px 16px rgba(18,56,68,.05); }
    .responsive-table td { display: grid; grid-template-columns: minmax(5.5rem, 32%) minmax(0, 1fr); gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid #edf1f2; text-align: left; }
    .responsive-table td::before { content: attr(data-label); color: #7d8d91; font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
    .responsive-table td > small { grid-column: 2; }
    .responsive-table td:last-child { border-bottom: 0; }
    .responsive-table .table-action { width: 100%; }
    .responsive-table .edit-link { justify-content: center; }
    .responsive-table .empty-state { display: block; }
    .responsive-table .empty-state::before { content: none; }
    .pagination-list { width: 100%; flex-wrap: wrap; }
    .pagination-number, .pagination-ellipsis { display: none; }
    .pagination-button { flex: 1; }
    .group-date-options, .municipality-options { grid-template-columns: 1fr; }
    .group-date-shifts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-task { grid-template-columns: 2rem minmax(0, 1fr) auto; }
    .event-task .task-status { grid-column: 2; width: max-content; }
    .event-task > a { grid-column: 3; grid-row: 1 / span 2; }
    .demand-rows-heading { align-items: stretch; flex-direction: column; }
    .demand-row-grid { grid-template-columns: 1fr; }
    .demand-row-notes { grid-column: span 1; }
    .allocation-assign-form { grid-template-columns: 1fr; }
    .assigned-professional { align-items: stretch; flex-direction: column; }
    .assigned-professional form { align-items: stretch; flex-direction: column; }
    .assigned-professional input { width: 100%; }
}

@media (max-width: 540px) {
    .guest-intro { min-height: 14rem; }
    .guest-copy p { display: none; }
    .login-panel { padding: 1.5rem; }
    .page-header { display: grid; }
    .metric-grid { grid-template-columns: 1fr; }
    .dashboard-metrics { grid-template-columns: 1fr; }
    .dashboard-event-item { grid-template-columns: 1fr; }
    .dashboard-event-item > .button, .dashboard-event-progress { grid-column: 1; grid-row: auto; }
    .secure-dialog-header { grid-template-columns: 2.5rem minmax(0, 1fr) 2.2rem; padding: 1rem; }
    .secure-dialog-body { padding: 1rem; }
    .secure-dialog-actions { align-items: stretch; flex-direction: column-reverse; padding: 1rem; }
    .secure-dialog-actions .button { width: 100%; }
}

.report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.report-metric { display: grid; gap: .45rem; padding: 1.25rem; }
.report-metric span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.report-metric strong { color: var(--ink); font-size: 2rem; }
.report-metric.has-pending { border-color: #e4b45c; }
.report-metric.has-pending strong, .report-pending { color: #9b5b00; }
.report-metric.is-complete strong { color: #287c62; }
.report-section { margin-top: 1rem; }
.report-section-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.report-section-nav a { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 99rem; color: var(--brand); background: white; font-size: .7rem; font-weight: 800; text-decoration: none; }
.report-section-complete { border-color: #bfe0d4; }
.report-complete-message { margin: 0; padding: 1rem 1.25rem; color: #287c62; font-weight: 750; }
.report-assignee { display: grid; gap: .15rem; padding: .25rem 0; }
.report-assignee + .report-assignee { border-top: 1px solid var(--line); }
.report-assignee small, .muted-text { color: var(--muted); }
.report-schedule-item { display: grid; gap: .1rem; padding: .35rem 0; }
.report-schedule-item + .report-schedule-item { border-top: 1px solid var(--line); }
.report-schedule-item span { color: var(--muted); font-size: .7rem; }
.report-alert-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.report-alert-list > div { display: grid; gap: .25rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.report-alert-list span { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.report-generator-dialog { width: min(42rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow: auto; border: 0; border-radius: 1rem; color: var(--ink); background: white; box-shadow: 0 28px 80px rgba(12,30,40,.34); }
.report-generator-dialog::backdrop { background: rgba(20,30,45,.72); backdrop-filter: blur(3px); }
.report-generator-dialog > form { display: grid; }
.report-generator-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; padding: 1.4rem; border-bottom: 1px solid var(--line); }
.report-generator-header h2 { margin: .2rem 0; font-size: 1.45rem; }
.report-generator-header p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.report-generator-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; padding: 1.4rem; }
.report-generator-body > .field:first-child, .report-generator-options, .report-generator-summary { grid-column: 1 / -1; }
.report-generator-body [data-report-filter][hidden] { display: none; }
.report-generator-options { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin: 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .7rem; }
.report-generator-options legend { padding: 0 .35rem; font-size: .72rem; font-weight: 850; }
.report-generator-options label { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 750; }
.report-generator-summary { padding: .85rem 1rem; border-radius: .65rem; color: #315b68; background: #edf6f5; font-size: .78rem; line-height: 1.45; }
.report-generator-actions { display: flex; justify-content: flex-end; gap: .65rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); background: #fbfcfc; }
.report-communication-section { margin-top: 1rem; }
.report-communication-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.report-communication-card { display: grid; align-content: start; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; background: white; box-shadow: var(--shadow); }
.report-communication-card > header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.report-communication-card h2 { margin: .2rem 0 0; font-size: 1.15rem; }
.communication-schedule { display: grid; border: 1px solid var(--line); border-radius: .65rem; }
.communication-schedule > div { display: grid; gap: .15rem; padding: .75rem; }
.communication-schedule > div + div { border-top: 1px solid var(--line); }
.communication-schedule span, .communication-phone { color: var(--muted); font-size: .73rem; }
.communication-phone { margin: 0; }
.communication-message { min-height: 9rem; margin: 0; padding: .9rem; overflow: auto; border: 1px solid var(--line); border-radius: .65rem; color: var(--ink); background: #f8fafb; font-family: inherit; font-size: .76rem; line-height: 1.55; white-space: pre-wrap; }
.report-communication-card > footer { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.whatsapp-button { color: white; background: #16784a; border-color: #16784a; }
.whatsapp-button:hover { background: #11633d; }
.communication-phone-warning { color: #985900; font-size: .7rem; font-weight: 750; }
.event-lifecycle-panel { display: grid; gap: 1rem; margin-top: 1rem; }
.event-lifecycle-panel p { margin: 0; color: var(--muted); }
.event-lifecycle-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.event-lifecycle-actions form { display: grid; gap: .6rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.event-lifecycle-actions label { font-weight: 800; }
.event-lifecycle-actions textarea { min-height: 5rem; }
.auth-back-link { display: inline-flex; margin-top: 1rem; color: var(--primary); font-weight: 700; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.dashboard-metrics .metric-card { min-width: 0; }
.dashboard-metrics .metric-attention { border-color: #e4b45c; background: #fffaf0; }
.dashboard-metrics .metric-attention strong { color: #9b5b00; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .65fr); align-items: start; gap: 1rem; }
.dashboard-events-panel, .dashboard-attention-panel { display: grid; gap: 1rem; }
.dashboard-event-list { display: grid; }
.dashboard-event-item { display: grid; grid-template-columns: minmax(14rem, 1.2fr) minmax(10rem, .7fr) auto; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.dashboard-event-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; }
.dashboard-event-main > div, .dashboard-event-progress { display: grid; gap: .2rem; }
.dashboard-event-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-event-main small, .dashboard-event-progress small { color: var(--muted); }
.dashboard-event-progress { color: var(--ink); font-size: .76rem; }
.dashboard-attention-panel h2 { margin: -.5rem 0 0; }
.attention-list { display: grid; }
.attention-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.attention-list a:hover span { color: var(--brand); text-decoration: underline; }
.attention-list span { font-size: .78rem; }
.attention-list strong { display: grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 99rem; color: var(--brand); background: #e8f2f1; }
.user-edit-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr); align-items: start; gap: 1rem; }
.password-reset-card { display: grid; gap: 1rem; }
.password-reset-card h2 { margin: .2rem 0; }
.password-reset-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.secure-reset-dialog { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow: auto; border: 0; border-radius: 1.15rem; color: var(--ink); background: white; box-shadow: 0 28px 80px rgba(12,30,40,.34); }
.secure-reset-dialog::backdrop { background: rgba(20,30,45,.72); backdrop-filter: blur(3px); }
.secure-reset-dialog > form { display: contents; }
.secure-dialog-header { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) 2.5rem; gap: .9rem; padding: 1.4rem; border-bottom: 1px solid var(--line); }
.secure-dialog-header h2 { margin: .2rem 0; font-size: 1.45rem; }
.secure-dialog-header p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.secure-dialog-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: .7rem; color: white; background: #2f55b5; box-shadow: 0 8px 18px rgba(47,85,181,.25); font-size: 1.1rem; font-weight: 900; }
.secure-dialog-icon.is-success { background: #2e8468; }
.dialog-close { align-self: start; width: 2.35rem; height: 2.35rem; border: 1px solid var(--line); border-radius: 50%; color: #65777d; background: #f8fafb; cursor: pointer; font-size: 1.15rem; }
.secure-dialog-body { display: grid; gap: 1rem; padding: 1.4rem; }
.selected-user-card { display: grid; gap: .18rem; padding: .9rem; border: 1px solid #cedbef; border-radius: .7rem; background: #f5f8fe; }
.selected-user-card span, .credential-field span { color: #65758d; font-size: .65rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.selected-user-card small { color: var(--muted); }
.secure-dialog-body textarea { min-height: 6rem; }
.secure-dialog-actions { display: flex; justify-content: flex-end; gap: .7rem; padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); background: #fbfcfc; }
.secure-dialog-actions .button { min-height: 2.8rem; padding: .65rem 1rem; }
.credential-field { display: grid; gap: .35rem; padding: .85rem; border: 1px solid var(--line); border-radius: .65rem; background: #fafcfc; }
.credential-field a { overflow-wrap: anywhere; color: var(--brand); }
.credential-field output { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.05rem; font-weight: 900; user-select: all; }
.credential-warning { margin: 0; padding: .8rem; border-radius: .6rem; color: #6c4709; background: #fff7e3; font-size: .76rem; }

@media (max-width: 900px) {
    .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-alert-list { grid-template-columns: 1fr; }
    .report-communication-list { grid-template-columns: 1fr; }
    .event-lifecycle-actions { grid-template-columns: 1fr; }
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .user-edit-grid { grid-template-columns: 1fr; }
    .dashboard-event-item { grid-template-columns: 1fr auto; }
    .dashboard-event-progress { grid-column: 1; }
    .dashboard-event-item > .button { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 600px) {
    .report-generator-body { grid-template-columns: 1fr; padding: 1rem; }
    .report-generator-header { padding: 1rem; }
    .report-generator-actions { align-items: stretch; flex-direction: column-reverse; padding: 1rem; }
    .report-generator-actions .button { width: 100%; }
}

@media print {
    @page { size: A4 landscape; margin: 12mm; }
    body { background: white; color: #172f37; font-size: 10pt; }
    .sidebar, .print-hidden, .skip-link { display: none !important; }
    .app-shell { display: block; }
    .main-content { max-width: none; padding: 0; }
    .panel { box-shadow: none; break-inside: avoid; }
    .report-metrics { grid-template-columns: repeat(4, 1fr); }
    .report-section { overflow: visible; }
    .table-wrap { overflow: visible; }
    .report-table { min-width: 0; }
    .report-page-header h1 { font-size: 24pt; }
    .report-professional-table tr { break-inside: avoid; }
    .report-communication-card { box-shadow: none; break-inside: avoid; }
}
