:root {
    color-scheme: light;
    --ink: #202e60;
    --muted: #717788;
    --green: #283569;
    --green-dark: #1c2853;
    --mint: #edf0f8;
    --line: #e2e5ef;
    --paper: #fff;
    --background: #f7f8fb;
    --red: #a3473d;
    --gold: #fcb717;
    --gold-soft: #fff5d8;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--background); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.auth-page { min-height: 100vh; background: radial-gradient(ellipse at 50% 0%, #eef0f8, transparent 55%), var(--background); }
.auth-shell { width: min(100% - 32px, 440px); min-height: 100vh; margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #284639; font-family: 'Segoe UI', Arial, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .11em; }
.brand-logo { display: block; width: clamp(260px, 28vw, 360px); height: auto; }
.auth-card { width: 100%; margin-top: 32px; padding: 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 18px 50px #203b2c0b; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Segoe UI', Arial, sans-serif; }
.auth-card h1 { margin: 10px 0 8px; font-size: 28px; letter-spacing: -.045em; }
.muted { color: var(--muted); }
.auth-card > .muted { margin-bottom: 26px; font-size: 14px; line-height: 1.6; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.auth-foot { margin: 24px 0 0; color: #929c96; font-size: 12px; }
.public-agenda-link { margin-top: 10px; color: var(--green); font-size: 12px; font-weight: 600; text-underline-offset: 3px; }
.form-stack { display: grid; gap: 17px; }
.form-stack label { display: grid; gap: 8px; color: #34423b; font-size: 12px; font-weight: 600; }
.form-stack input, .form-stack select, .form-stack textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #dfe5e0; border-radius: 7px; outline: none; background: #fff; color: var(--ink); font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.form-stack textarea { resize: vertical; line-height: 1.6; }
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #fcb71735; }
.form-stack input::placeholder, .form-stack textarea::placeholder { color: #a5aea8; }
.form-stack small { color: #919b95; font-size: 11px; font-weight: 400; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 600; transition: background .15s, border-color .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-wide { width: 100%; min-height: 45px; justify-content: space-between; padding: 0 15px; margin-top: 3px; }
.button-secondary { border-color: #dce4de; color: #385746; background: #fff; }
.button-secondary:hover { border-color: #a8bcae; background: #f6f9f6; }
.button-quiet { min-height: 34px; border-color: #e4e9e5; color: #617169; background: #fff; }
.button-danger { color: var(--red); background: #fff6f4; }
.button-danger:hover { background: #fcebe8; }
.button-small { min-height: 31px; padding: 0 10px; font-size: 11px; }
.alert, .notice { margin: 0 0 18px; padding: 11px 13px; border: 1px solid #f0cfca; border-radius: 7px; color: #8f3c33; background: #fff6f4; font-size: 12px; line-height: 1.5; }
.notice { border-color: #e7d59e; color: #5c4a17; background: #fff9e8; }
.topbar { position: relative; z-index: 5; min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(32px, calc((100% - 1180px) / 2)); border-bottom: 2px solid var(--gold); background: #fff; }
.header-menu { position: relative; }
.menu-toggle { min-height: 39px; cursor: pointer; list-style: none; }
.menu-toggle::-webkit-details-marker { display: none; }
.header-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 10; width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 12px 30px #203b2c1c; }
.header-menu-user { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-bottom: 1px solid var(--line); color: #68766e; font-size: 12px; overflow-wrap: anywhere; }
.header-menu-reminders { display: grid; gap: 7px; margin: 6px 2px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.header-menu-reminders-heading { color: var(--ink); font-size: 11px; }
.header-menu-agenda-list { display: grid; gap: 5px; max-height: 112px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.header-menu-agenda-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; align-items: baseline; }
.header-menu-agenda-list time { color: #68766e; font-size: 9px; white-space: nowrap; }
.header-menu-agenda-list li span { overflow-wrap: anywhere; color: #56645b; font-size: 10px; }
.header-menu-reminder-status { color: var(--muted); font-size: 9px; }
.header-menu-reminder-toggle { min-height: 32px; padding: 0 9px; border: 1px solid #dce4de; border-radius: 6px; color: #385746; background: #fff; text-align: center; font-size: 11px; font-weight: 600; cursor: pointer; }
.header-menu-reminder-toggle:hover:not(:disabled) { border-color: #a8bcae; background: #f6f9f6; }
.header-menu-reminder-toggle:disabled { cursor: default; opacity: .7; }
.header-menu-panel > a, .header-menu-panel form > button { width: 100%; min-height: 39px; display: flex; align-items: center; padding: 0 11px; border: 0; border-radius: 6px; color: #56645b; background: transparent; text-align: left; font-size: 12px; font-weight: 600; cursor: pointer; }
.header-menu-panel > a { margin-top: 2px; }
.header-menu-panel > a:hover, .header-menu-panel > a.menu-link-active { color: var(--green); background: #eff5f0; }
.header-menu-panel form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.header-menu-panel form > button { color: var(--red); }
.header-menu-panel form > button:hover { background: #fff6f4; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.main-shell { width: min(100% - 64px, 1180px); margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 40px 0 26px; }
.page-heading h1 { margin: 8px 0 5px; font-size: 30px; letter-spacing: -.05em; }
.page-heading p { margin: 0; font-size: 13px; }
.page-heading > .button { min-height: 41px; }
.page-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.page-heading-actions .button { min-height: 41px; }
.export-dialog { width: min(100% - 32px, 680px); max-height: min(90vh, 780px); padding: 22px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #203b2c30; }
.export-dialog::backdrop { background: #17251f80; backdrop-filter: blur(2px); }
.export-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.export-dialog-heading h2 { margin: 6px 0 0; font-size: 20px; }
.export-day-select { display: grid; gap: 7px; margin-bottom: 12px; color: #34423b; font-size: 12px; font-weight: 600; }
.export-day-select select { min-height: 40px; padding: 8px 10px; border: 1px solid #dfe5e0; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; }
.export-message { width: 100%; min-height: 280px; padding: 13px; border: 1px solid #dfe5e0; border-radius: 8px; color: #34423b; background: #fbfcfb; font: 13px/1.65 'Segoe UI', Arial, sans-serif; resize: vertical; white-space: pre-wrap; }
.export-dialog-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.button-whatsapp { color: #fff; border-color: #168a51; background: #168a51; }
.button-whatsapp:hover { color: #fff; border-color: #117343; background: #117343; }
.export-copy-status { color: #38664a; font-size: 12px; }
.summary-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.summary-card { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.summary-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); font-size: 20px; }
.summary-icon-green { color: #9a6c00; background: var(--gold-soft); }
.summary-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.summary-card strong { font-family: 'Segoe UI', Arial, sans-serif; font-size: 18px; }
.content-grid { display: block; }
.agenda-section { display: flex; min-height: 0; flex-direction: column; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 13px; }
.section-heading h2, .form-panel-heading h2 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.025em; }
.section-heading p, .form-panel-heading p { margin: 0; font-size: 11px; }
.agenda-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 190px) auto; align-items: end; gap: 10px; margin-bottom: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.agenda-filters label { display: grid; gap: 6px; color: #68766e; font-size: 10px; font-weight: 600; }
.agenda-filters input { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #dfe5e0; border-radius: 6px; outline: none; color: var(--ink); background: #fff; font-size: 12px; }
.agenda-filters input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #fcb71735; }
.agenda-filter-actions { display: flex; gap: 6px; }
.agenda-period-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; padding-top: 0; border-top: 0; }
.agenda-period-filters .button { width: 100%; }
.agenda-list { display: grid; gap: 8px; }
.agenda-scroll-container { padding: 2px; }
.agenda-card { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.agenda-card-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; }
.agenda-card-main { min-width: 0; flex: 1; }
.agenda-card-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.agenda-card h3 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; letter-spacing: -.02em; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 20px; font-size: 10px; font-weight: 600; }
.badge-onsite { color: #283569; background: #edf0f8; }
.badge-online { color: #56688b; background: #eef1f8; }
.agenda-meta { display: flex; flex-wrap: wrap; gap: 4px 13px; margin-top: 2px; color: #727e77; font-size: 10px; }
.agenda-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta-icon { color: #87978d; font-size: 13px; }
.agenda-meta > span { min-width: 0; overflow-wrap: anywhere; }
.agenda-card-submeta { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 5px; color: #7c8780; font-size: 10px; line-height: 1.45; }
.agenda-card-submeta strong { color: #68766e; font-weight: 600; }
.attendees { display: flex; gap: 7px; margin-top: 5px; color: #68766e; font-size: 10px; line-height: 1.45; }
.attendee-label { flex: 0 0 auto; color: #9aa49d; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.agenda-actions { display: flex; align-items: flex-start; gap: 5px; }
.agenda-actions form { margin: 0; }
.agenda-actions .button { min-height: 28px; padding: 0 8px; font-size: 10px; }
.form-panel { padding: 21px; border: 1px solid var(--line); border-radius: 10px; background: #fff; scroll-margin-top: 20px; }
.form-panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 21px; }
.panel-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--mint); font-size: 19px; }
.form-panel .form-stack { gap: 14px; }
.form-panel .form-stack label { font-size: 11px; }
.form-panel .form-stack input, .form-panel .form-stack select, .form-panel .form-stack textarea { min-height: 39px; font-size: 12px; }
.form-panel .form-stack textarea { min-height: 86px; }
.agenda-dialog { width: min(100% - 32px, 680px); max-height: min(92vh, 860px); padding: 22px; overflow-y: auto; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #203b2c30; }
.agenda-dialog::backdrop { background: #17251f80; backdrop-filter: blur(2px); }
.agenda-dialog .form-panel { padding: 0; border: 0; }
.agenda-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.agenda-dialog-heading .form-panel-heading { margin-bottom: 0; }
.agenda-dialog-heading > .button { flex: 0 0 auto; }
.attendee-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.attendee-picker legend { margin-bottom: 8px; color: #34423b; font-size: 11px; font-weight: 600; }
.participant-options { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; padding: 5px; border: 1px solid #e2e8e3; border-radius: 7px; }
.participant-option { display: flex !important; align-items: center; gap: 10px !important; padding: 8px; border-radius: 5px; cursor: pointer; }
.participant-option:hover { background: #f5f8f5; }
.participant-option input { flex: 0 0 auto; width: 15px !important; min-height: 15px !important; height: 15px; margin: 0; accent-color: var(--green); }
.participant-option > span { display: grid; gap: 3px; min-width: 0; }
.participant-option strong { overflow: hidden; color: #34423b; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.participant-option small { overflow: hidden; color: #849088; font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.attendee-picker > small { display: block; margin-top: 6px; }
.no-participants { margin: 0; padding: 11px; border: 1px dashed #dce4de; border-radius: 7px; color: #78837e; font-size: 11px; line-height: 1.6; }
.no-participants a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.participant-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.participant-card { align-items: center; }
.participant-card h3 { margin: 0; }
.participant-avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font-size: 14px; font-weight: 700; }
.participant-card .agenda-meta { margin-top: 6px; }
.public-agenda-shell { padding-bottom: 12px; }
.public-page-heading { padding-bottom: 22px; }
.public-agenda-filters { margin-bottom: 12px; }
.public-period-filters { margin-bottom: 12px; }
.public-team-filters { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 7px; padding-bottom: 5px; scrollbar-width: thin; }
.public-team-filters .button { flex: 0 0 auto; width: auto; white-space: nowrap; }
.public-agenda-count { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.public-agenda-list { display: grid; gap: 12px; }
.public-agenda-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.public-agenda-card .agenda-card-heading { justify-content: space-between; }
.public-agenda-card .agenda-card-heading h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 16px; letter-spacing: -.02em; }
.public-agenda-team { margin-top: 8px; color: var(--muted); font-size: 11px; }
.public-agenda-team strong { color: var(--ink); }
.public-agenda-details { display: grid; gap: 7px; margin-top: 15px; color: #68766e; font-size: 12px; line-height: 1.6; }
.public-agenda-details p { margin: 0; overflow-wrap: anywhere; }
.public-agenda-details strong { color: #34423b; }
.label-optional { color: #9aa49d; font-size: 10px; font-weight: 400; }
.form-actions { display: grid; gap: 11px; }
.cancel-link { color: #78837e; text-align: center; font-size: 11px; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 54px 24px; border: 1px dashed #dbe3dc; border-radius: 10px; background: #fbfcfb; text-align: center; }
.empty-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 50%; color: #64806e; background: #edf3ee; font-size: 22px; }
.empty-state h3 { margin: 0 0 5px; font-size: 14px; }
.empty-state p { max-width: 260px; margin-bottom: 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.site-footer { padding: 35px 0 24px; color: #9ba49e; text-align: center; font-size: 11px; }
.site-footer span { padding: 0 4px; }
.page-alert { margin-top: 0; }

@media (max-width: 900px) {
    .participant-grid { grid-template-columns: minmax(0, 1fr) 310px; }
    .agenda-card { padding: 11px 12px; }
}
@media (max-width: 680px) {
    .topbar { min-height: 62px; padding: 0 14px; }
    .main-shell { width: min(100% - 36px, 500px); }
    .page-heading { align-items: stretch; flex-direction: column; padding: 30px 0 20px; }
    .page-heading h1 { font-size: 25px; }
    .page-heading p { max-width: 260px; line-height: 1.5; }
    .page-heading > .button { flex: 0 0 auto; padding: 0 10px; font-size: 11px; }
    .page-heading-actions { align-items: stretch; justify-content: flex-start; }
    .page-heading-actions .button { min-height: 42px; padding: 0 12px; font-size: 12px; }
    .summary-row { display: none; }
    .participant-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .agenda-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 160px); }
    .agenda-filter-actions { grid-column: 1 / -1; }
    .agenda-period-filters { gap: 8px; }
    .agenda-filter-actions .button { min-height: 40px; }
    .agenda-period-filters .button { min-height: 40px; }
    .agenda-actions { flex-direction: row; }
    .agenda-card { padding: 10px; }
    .agenda-card-top { grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
    .agenda-card-heading { gap: 5px; }
    .agenda-card h3 { font-size: 12px; }
    .agenda-actions { gap: 4px; }
    .agenda-actions .button { padding: 0 6px; }
    .agenda-meta { gap: 4px 9px; }
    .agenda-scroll-container { padding-right: 5px; }
    .agenda-dialog { padding: 17px; }
    .public-topbar { flex-wrap: nowrap; gap: 10px; }
    .public-topbar .brand { min-width: 0; font-size: 11px; }
    .public-topbar > .button { flex: 0 0 auto; }
    .public-page-heading { padding-top: 28px; }
    .public-agenda-card { padding: 16px; }
    .public-agenda-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 160px); }
}
@media (max-width: 420px) {
    .topbar { padding-right: 12px; padding-left: 12px; }
    .main-shell { width: min(100% - 28px, 500px); }
    .page-heading { gap: 14px; padding-top: 24px; }
    .page-heading-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-heading-actions .button { width: 100%; padding: 0 8px; font-size: 11px; }
    .auth-card { padding: 28px 23px; }
    .summary-row { grid-template-columns: 1fr; }
    .agenda-filters { grid-template-columns: 1fr; }
    .agenda-filter-actions { grid-column: auto; }
    .agenda-period-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .export-dialog { padding: 17px; }
    .export-dialog-actions { align-items: flex-start; flex-direction: column; }
    .public-topbar { padding-right: 14px; padding-left: 14px; }
    .public-topbar .brand { gap: 7px; font-size: 10px; }
    .public-topbar .brand-light { padding-left: 3px; }
    .public-agenda-filters { grid-template-columns: 1fr; }
    .public-agenda-filters .agenda-filter-actions { grid-column: auto; }
}

/* Refined layout system shared by admin, public, and sign-in pages. */
:root {
    --ink: #202e60;
    --muted: #717788;
    --green: #283569;
    --green-dark: #1c2853;
    --mint: #edf0f8;
    --line: #e2e5ef;
    --paper: #fff;
    --background: #f7f8fb;
    --red: #a13f36;
    --gold: #fcb717;
    --gold-soft: #fff5d8;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body { color: var(--ink); background: var(--background); }
a { text-underline-offset: 3px; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.topbar {
    min-height: 64px;
    padding: 0 max(24px, calc((100% - 1200px) / 2));
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 10px #183b2606;
}
.brand { gap: 9px; }
.brand-logo { width: clamp(250px, 25vw, 330px); }
.menu-toggle { min-height: 40px; padding-inline: 14px; border-radius: 9px; }
.header-menu-panel {
    top: calc(100% + 8px);
    width: 232px;
    padding: 7px;
    border-color: var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 42px #1829231c;
}
.header-menu-user { min-height: 42px; padding-inline: 12px; }
.header-menu-panel > a, .header-menu-panel form > button { min-height: 42px; padding-inline: 12px; border-radius: 8px; }
.main-shell { width: min(100% - 48px, 1200px); }
.page-heading { padding: 34px 0 22px; }
.page-heading h1 { margin-top: 7px; font-size: clamp(26px, 3vw, 32px); line-height: 1.16; letter-spacing: -.045em; }
.page-heading p { max-width: 560px; line-height: 1.55; }
.eyebrow { letter-spacing: .13em; }
.button { min-height: 40px; border-radius: 9px; font-size: 12px; transition: background .15s, border-color .15s, box-shadow .15s; }
.button:hover { transform: none; }
.button-primary { box-shadow: 0 2px 4px #202e6018; }
.button-primary:hover { box-shadow: 0 4px 10px #202e6025; }
.summary-icon { color: var(--green); }
.summary-icon-green { color: #9a6c00; background: var(--gold-soft); }
.eyebrow { color: #9a6c00; }
.button-secondary { border-color: #d8e3da; }
.button-small { min-height: 32px; border-radius: 8px; }
.page-heading-actions { gap: 10px; }
.page-heading-actions .button { min-height: 42px; }
.alert, .notice { padding: 13px 15px; border-radius: 9px; }

.summary-row { gap: 12px; margin-bottom: 22px; }
.summary-card { min-height: 78px; gap: 13px; padding: 14px 16px; border-radius: 12px; box-shadow: 0 2px 8px #1c392508; }
.summary-icon { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; }
.summary-label { margin-bottom: 3px; font-size: 11px; }
.summary-card strong { font-size: 20px; }

.content-grid { min-width: 0; }
.agenda-section { width: 100%; }
.agenda-filters {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px;
    border-color: var(--line);
    border-radius: 12px;
    box-shadow: 0 2px 8px #1c392506;
}
.agenda-filters label { gap: 7px; color: #53645a; font-size: 11px; }
.agenda-filters input { min-height: 40px; padding-inline: 12px; border-color: #dce5de; border-radius: 8px; font-size: 13px; }
.agenda-filter-actions { align-items: center; gap: 7px; }
.agenda-filter-actions .button { min-height: 40px; }
.agenda-period-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}
.agenda-period-filters .button {
    width: auto;
    min-height: 34px;
    padding-inline: 13px;
    border-radius: 999px;
    font-size: 11px;
}
.agenda-list { gap: 9px; }
.agenda-scroll-container { max-height: none; overflow: visible; padding: 1px; }
.agenda-card {
    gap: 8px;
    padding: 14px 16px;
    border-color: var(--line);
    border-radius: 12px;
    box-shadow: 0 2px 8px #1c392506;
    transition: border-color .15s, box-shadow .15s;
}
.agenda-card:hover { border-color: #cbdacf; box-shadow: 0 5px 16px #1c39250d; }
.agenda-card-top { gap: 12px; }
.agenda-card-heading { gap: 8px; }
.agenda-card h3 { font-size: 14px; line-height: 1.4; }
.badge { padding: 5px 9px; border-radius: 999px; font-size: 10px; }
.agenda-meta { gap: 5px 18px; margin-top: 1px; color: #5d6e64; font-size: 11px; line-height: 1.5; }
.agenda-meta > span { gap: 7px; }
.agenda-card-submeta { gap: 4px 18px; margin-top: 5px; color: #687970; font-size: 11px; }
.attendees { gap: 9px; margin-top: 5px; color: #4f6157; font-size: 11px; line-height: 1.5; }
.attendee-label { min-width: 42px; color: #76867c; font-size: 9px; }
.agenda-actions { align-items: center; gap: 6px; }
.agenda-actions .button { min-height: 32px; padding-inline: 10px; font-size: 11px; }
.button-danger { border: 1px solid #f1dfdc; }
.empty-state { padding: 44px 24px; border-color: #d7e2d9; border-radius: 12px; }
.empty-icon { width: 42px; height: 42px; margin-bottom: 12px; }
.empty-state p { max-width: 360px; line-height: 1.65; }

.agenda-dialog, .export-dialog {
    max-height: min(90vh, 820px);
    padding: 24px;
    border-color: var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 80px #14291f38;
}
.agenda-dialog .form-panel { background: transparent; }
.agenda-dialog-heading { margin-bottom: 20px; }
.agenda-dialog-heading .form-panel-heading { gap: 12px; }
.agenda-dialog-heading .form-panel-heading h2 { font-size: 19px; }
.agenda-dialog .form-stack { gap: 15px; }
.agenda-dialog .form-stack label { gap: 7px; color: #405248; font-size: 12px; }
.agenda-dialog .form-stack input, .agenda-dialog .form-stack select, .agenda-dialog .form-stack textarea {
    min-height: 42px;
    border-color: #dce5de;
    border-radius: 8px;
    font-size: 13px;
}
.agenda-dialog .form-stack input[type="file"] { min-height: auto; padding: 9px; }
.invitation-file-current { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--background); font-size: 12px; }
.invitation-file-current small { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.agenda-dialog .form-stack textarea { min-height: 82px; }
.participant-options { max-height: 180px; border-color: #dce5de; border-radius: 9px; }
.participant-option { min-height: 42px; padding-inline: 10px; border-radius: 7px; }
.export-dialog-heading { margin-bottom: 20px; }
.export-dialog-heading h2 { font-size: 22px; }
.export-day-select { gap: 8px; font-size: 12px; }
.export-day-select select, .export-message { border-color: #dce5de; border-radius: 9px; }
.export-message { min-height: 250px; }

.participant-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 22px; }
.participant-grid .section-heading { margin-bottom: 12px; }
.participant-grid .section-heading h2 { font-size: 17px; }
.participant-grid .agenda-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.participant-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 13px;
}
.participant-avatar { width: 38px; height: 38px; }
.participant-card .agenda-card-main { min-width: 0; }
.participant-card h3 { overflow-wrap: anywhere; font-size: 13px; }
.participant-card .agenda-meta { margin-top: 4px; font-size: 11px; }
.participant-card .agenda-actions { flex-direction: row; }
.participant-grid .form-panel { padding: 20px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 8px #1c392506; }
.participant-grid .form-panel-heading { margin-bottom: 18px; }
.participant-grid .form-stack { gap: 14px; }
.participant-grid .form-stack label { gap: 7px; font-size: 12px; }
.participant-grid .form-stack input { min-height: 42px; border-radius: 8px; font-size: 13px; }

.public-agenda-shell { padding-bottom: 20px; }
.public-page-heading { padding-bottom: 18px; }
.public-agenda-filters { margin-bottom: 10px; }
.public-period-filters { margin-bottom: 10px; }
.public-agenda-count { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.public-agenda-list { gap: 10px; }
.public-agenda-card {
    padding: 18px 20px;
    border-color: var(--line);
    border-radius: 12px;
    box-shadow: 0 2px 8px #1c392506;
}
.public-agenda-card .agenda-card-heading h2 { font-size: 16px; line-height: 1.45; }
.public-agenda-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin-top: 12px; font-size: 12px; }
.public-topbar > .button { min-height: 38px; }

.auth-shell { width: min(100% - 32px, 420px); }
.auth-card { padding: 36px; border-color: var(--line); border-radius: 16px; box-shadow: 0 18px 50px #203b2c0d; }
.auth-card h1 { font-size: 30px; }
.auth-card > .muted { font-size: 13px; line-height: 1.65; }
.auth-card .form-stack { gap: 16px; }
.auth-card .form-stack label { gap: 7px; font-size: 12px; }
.auth-card .form-stack input { min-height: 44px; border-color: #dce5de; border-radius: 8px; font-size: 13px; }
.auth-card .button-wide { min-height: 46px; }
.site-footer { padding: 28px 0 22px; color: #819087; }

@media (max-width: 900px) {
    .participant-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
    .participant-grid .agenda-list { grid-template-columns: 1fr; }
    .participant-card { grid-template-columns: 38px minmax(0, 1fr); }
    .participant-card .agenda-actions { grid-column: 2; }
}
@media (max-width: 680px) {
    .topbar { min-height: 60px; padding-inline: 18px; }
    .main-shell { width: min(100% - 36px, 560px); }
    .page-heading { gap: 14px; padding: 27px 0 18px; }
    .page-heading h1 { font-size: 27px; }
    .page-heading p { max-width: 100%; font-size: 13px; }
    .page-heading-actions { display: flex; gap: 8px; }
    .page-heading-actions .button { min-height: 42px; }
    .summary-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
    .summary-card { min-height: 68px; gap: 8px; padding: 10px; border-radius: 10px; }
    .summary-icon { width: 30px; height: 30px; border-radius: 8px; font-size: 16px; }
    .summary-label { font-size: 10px; line-height: 1.3; }
    .summary-card strong { font-size: 17px; }
    .agenda-filters { grid-template-columns: minmax(0, 1fr) minmax(135px, .65fr); gap: 10px; margin-bottom: 9px; padding: 12px; }
    .agenda-filter-actions { grid-column: 1 / -1; }
    .agenda-filter-actions .button { min-height: 38px; }
    .agenda-period-filters { gap: 6px; margin-bottom: 12px; }
    .agenda-period-filters .button { min-height: 33px; padding-inline: 11px; }
    .agenda-card { padding: 12px; }
    .agenda-card-top { gap: 8px; }
    .agenda-card h3 { font-size: 13px; }
    .agenda-meta { gap: 4px 12px; font-size: 10px; }
    .agenda-card-submeta, .attendees { font-size: 10px; }
    .agenda-scroll-container { padding: 1px; }
    .agenda-dialog, .export-dialog { width: min(100% - 24px, 600px); max-height: 92dvh; padding: 18px; border-radius: 14px; }
    .participant-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .participant-grid .agenda-list { grid-template-columns: 1fr; }
    .participant-card { grid-template-columns: 38px minmax(0, 1fr) auto; }
    .participant-card .agenda-actions { grid-column: auto; }
    .public-topbar { padding-inline: 14px; }
    .public-topbar .brand { font-size: 11px; }
    .public-topbar > .button { padding-inline: 11px; font-size: 11px; }
    .public-page-heading { padding-top: 26px; }
    .public-agenda-card { padding: 14px; }
    .public-agenda-details { gap: 7px 12px; font-size: 11px; }
    .auth-card { padding: 30px 25px; }
}
@media (max-width: 420px) {
    .topbar { padding-inline: 14px; }
    .topbar .brand { max-width: calc(100% - 75px); gap: 7px; }
    .topbar .brand-logo { width: clamp(205px, 60vw, 250px); }
    .public-topbar .brand-logo { width: clamp(190px, 55vw, 230px); }
    .main-shell { width: min(100% - 28px, 560px); }
    .page-heading { align-items: flex-start; }
    .page-heading-actions { width: 100%; }
    .page-heading-actions .button { flex: 1 1 0; padding-inline: 8px; font-size: 11px; }
    .summary-row { gap: 6px; }
    .summary-card { align-items: flex-start; flex-direction: column; gap: 6px; padding: 9px; }
    .summary-icon { display: none; }
    .summary-label { min-height: 25px; }
    .agenda-filters { grid-template-columns: 1fr; }
    .agenda-filter-actions { grid-column: auto; }
    .agenda-period-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agenda-period-filters .button { width: 100%; }
    .agenda-card-top { grid-template-columns: minmax(0, 1fr); }
    .agenda-actions { grid-row: 2; }
    .agenda-actions .button { min-height: 30px; }
    .participant-card { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
    .participant-avatar { width: 34px; height: 34px; }
    .participant-card .agenda-actions { grid-column: 2; }
    .public-agenda-details { grid-template-columns: 1fr; }
    .auth-card { padding: 26px 21px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.agenda-period-filters.team-quick-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}
.agenda-period-filters.team-quick-filters .button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
}

.team-agenda-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}
.team-agenda-selector label { color: #53645a; font-size: 12px; font-weight: 650; }
.team-agenda-selector select {
    min-width: min(260px, 100%);
    min-height: 38px;
    padding: 7px 34px 7px 10px;
    border: 1px solid #dce5de;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 12px;
}
.team-agenda-selector .button { min-height: 36px; }
.admin-management-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 22px; }
.admin-account-list .section-heading { margin-bottom: 12px; }
.admin-account-list .section-heading h2 { margin-bottom: 4px; font-size: 17px; }
.admin-account-list .agenda-list { gap: 9px; }
.admin-account-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px; }
.admin-account-card h3 { font-size: 13px; }
.admin-account-card .agenda-meta { margin-top: 5px; }
.admin-account-card .agenda-actions { align-items: center; }
.admin-account-card form { margin: 0; }
.admin-account-form { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 8px #1c392506; }
.admin-account-form .form-panel-heading { margin-bottom: 18px; }
.admin-account-form .form-stack { gap: 14px; }
.admin-account-form .form-stack label { gap: 7px; font-size: 12px; }
.admin-account-form .form-stack input { min-height: 42px; border-color: #dce5de; border-radius: 8px; font-size: 13px; }

@media (max-width: 900px) {
    .admin-management-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
    .admin-account-card { grid-template-columns: 36px minmax(0, 1fr); }
    .admin-account-card .agenda-actions { grid-column: 2; flex-wrap: wrap; }
}
@media (max-width: 680px) {
    .admin-management-grid { grid-template-columns: minmax(0, 1fr); }
    .team-agenda-selector { align-items: stretch; }
    .team-agenda-selector label { width: 100%; }
    .team-agenda-selector select { width: 100%; }
    .team-agenda-selector .button { flex: 1 1 auto; }
    .admin-account-card { grid-template-columns: 36px minmax(0, 1fr) auto; }
    .admin-account-card .agenda-actions { grid-column: auto; }
}
@media (max-width: 420px) {
    .admin-account-card { grid-template-columns: 34px minmax(0, 1fr); }
    .admin-account-card .agenda-actions { grid-column: 2; }
    .admin-account-card .agenda-actions .button { min-height: 31px; }
}

/* Existing navy and gold brand colors anchor a clearer, more usable workspace. */
:root {
    --ink: #202e60;
    --muted: #5e687b;
    --green: #283569;
    --green-dark: #1c2853;
    --mint: #edf0f8;
    --line: #dce2ec;
    --paper: #fff;
    --background: #f4f6fa;
    --red: #a13f36;
    --gold: #fcb717;
    --gold-soft: #fff5d8;
    font-family: "Segoe UI", Arial, sans-serif;
}

body { color: var(--ink); background: var(--background); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.auth-page { background: var(--background); }
.topbar {
    min-height: 72px;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 10px #202e600b;
}
.brand-logo { width: clamp(170px, 19vw, 230px); }
.app-page:not(.public-agenda-page) .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
}
.primary-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}
.primary-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
    color: #4d5870;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.menu-link-active {
    color: var(--ink);
    background: #f1f3f8;
}
.primary-nav a.menu-link-active { box-shadow: inset 0 -2px var(--gold); }
.menu-toggle {
    min-width: 76px;
    min-height: 44px;
    justify-content: center;
    color: var(--ink);
    font-size: 12px;
}
.header-menu-panel { max-height: min(80vh, 560px); overflow-y: auto; }
.main-shell { width: min(100% - 48px, 1200px); }
.page-heading { padding-top: 38px; }
.page-heading h1 { line-height: 1.18; }
.summary-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.summary-card {
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: none;
}
.summary-label,
.agenda-meta,
.agenda-card-submeta,
.attendees { color: #4f5b70; }
.summary-card strong { font-variant-numeric: tabular-nums; }
.summary-icon-green { color: var(--ink); }
.agenda-filters,
.team-agenda-selector {
    border-color: var(--line);
    background: #fff;
    box-shadow: none;
}
.agenda-card,
.public-agenda-card,
.participant-grid .form-panel,
.admin-account-form {
    border-color: var(--line);
    box-shadow: 0 1px 3px #202e6008;
}
.agenda-card:hover { border-color: #aeb8cb; box-shadow: 0 3px 10px #202e6010; }
.agenda-card h3,
.public-agenda-card .agenda-card-heading h2 { line-height: 1.45; }
.badge { border-radius: 5px; }
.button {
    min-height: 44px;
    border-radius: 7px;
    font-size: 13px;
}
.button:hover { transform: none; }
.button-primary { box-shadow: none; }
.button-primary:hover { box-shadow: none; }
.button-secondary { border-color: #cbd3e1; color: var(--ink); }
.button-secondary:hover { border-color: #9ba8c0; background: #f5f6f9; }
.button-small { min-height: 38px; }
.form-stack input,
.form-stack select,
.form-stack textarea,
.export-day-select select {
    min-height: 46px;
    border-color: #cbd3e1;
    border-radius: 7px;
}
.form-stack input::placeholder,
.form-stack textarea::placeholder { color: #667085; }
.agenda-filters input::placeholder { color: #667085; }
.form-stack small,
.label-optional,
.cancel-link,
.attendee-label,
.participant-option small,
.no-participants,
.public-agenda-details,
.header-menu-user,
.header-menu-agenda-list time { color: #5e687b; }
.auth-foot { color: #5e687b; }
.form-stack input:focus-visible,
.form-stack select:focus-visible,
.form-stack textarea:focus-visible,
.export-day-select select:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
}
.agenda-dialog,
.export-dialog { box-shadow: 0 16px 42px #17213c33; }
.empty-state {
    border-color: #cbd3e1;
    background: #fff;
}
.empty-icon { color: var(--ink); background: var(--mint); }
.site-footer { color: #5e687b; }
.public-topbar { display: flex; }
.public-topbar > .button { min-height: 44px; }

@media (max-width: 1040px) {
    .app-page:not(.public-agenda-page) .topbar {
        grid-template-areas:
            "brand account"
            "navigation navigation";
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
        padding-top: 8px;
        padding-bottom: 6px;
    }
    .app-page:not(.public-agenda-page) .brand { grid-area: brand; }
    .app-page:not(.public-agenda-page) .primary-nav {
        grid-area: navigation;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .app-page:not(.public-agenda-page) .header-menu { grid-area: account; }
    .primary-nav a { flex: 0 0 auto; }
    .primary-nav::-webkit-scrollbar { height: 4px; }
}
@media (max-width: 680px) {
    .main-shell { width: min(100% - 32px, 560px); }
    .app-page:not(.public-agenda-page) .topbar { padding-inline: 16px; }
    .app-page:not(.public-agenda-page) .brand-logo { width: clamp(145px, 48vw, 205px); }
    .primary-nav a { min-height: 44px; padding-inline: 11px; }
    .page-heading { padding-top: 26px; }
    .summary-row { gap: 8px; margin-bottom: 16px; }
    .summary-card { min-height: 72px; padding: 11px; }
    .agenda-actions .button,
    .agenda-filter-actions .button,
    .agenda-period-filters .button { min-height: 44px; }
    .agenda-card { padding: 13px; }
    .agenda-dialog,
    .export-dialog { max-height: 92dvh; }
}
@media (max-width: 420px) {
    .app-page:not(.public-agenda-page) .topbar { padding-inline: 12px; }
    .main-shell { width: min(100% - 24px, 560px); }
    .summary-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .summary-card { min-width: 0; padding: 8px; }
    .summary-label { min-height: 32px; font-size: 10px; }
    .summary-card strong { font-size: 16px; }
    .agenda-period-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agenda-card { padding: 11px; }
    .agenda-actions .button { min-height: 44px; padding-inline: 9px; }
    .public-topbar { padding-inline: 12px; }
    .public-topbar .brand-logo { width: clamp(165px, 54vw, 220px); }
}
