body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f7f8fc;
    color: #1a2238;
}


.speakup-nav {
    background: #123d7a;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.speakup-nav-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}
.speakup-nav-brand-sub {
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.9;
}

.speakup-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.speakup-nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.speakup-nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.speakup-nav-links a.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.hero {
    overflow: hidden;
}

.hero-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.registration-closed-msg {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c0392b;
    margin-bottom: 0.5rem;
}
.registration-contact-block {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f0f4f8;
    border-radius: 8px;
    line-height: 1.5;
}
.registration-contact-block a {
    color: #123d7a;
}

.supporters-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.supporters-header-row .title {
    margin: 0;
}
.supporters-anchor {
    flex-shrink: 0;
}

/* Home tabs */
.page-home-tabs {
    padding-top: 0;
}

.home-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(18, 33, 68, 0.08);
    margin-top: -12px;
    margin-bottom: 0;
    overflow: hidden;
}

.home-tab {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #2f4c78;
    background: #eef3fc;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: background 0.2s, color 0.2s;
}

.home-tab:hover {
    background: #dce6f8;
    color: #123d7a;
}

.home-tab.active {
    background: #fff;
    color: #123d7a;
    border-bottom-color: #123d7a;
}

.home-tab-panels {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 26px rgba(18, 33, 68, 0.08);
    padding: 24px;
    margin-top: -1px;
}

.home-tab-panel {
    display: none;
}

.home-tab-panel.active {
    display: block;
}

.page {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.btn:hover {
    opacity: 0.9;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(18, 33, 68, 0.08);
    padding: 20px;
    margin-bottom: 24px;
}

.entry-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.entry-card-header h4 {
    margin: 0;
}

.btn-remove-entry {
    font-size: 12px;
    padding: 6px 12px;
}

.supporters-list {
    list-style: none;
    padding-left: 0;
}

.supporters-list li {
    padding: 6px 0;
    border-bottom: 1px solid #eef2f7;
}

.supporters-list li:last-child {
    border-bottom: none;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.section-header-row .title {
    margin: 0;
}

.title {
    margin-top: 0;
    color: #123d7a;
    font-family: Georgia, 'Times New Roman', serif;
}

.subtitle {
    color: #2f4c78;
    margin-bottom: 16px;
}

.schedule-date {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #123d7a;
}

.schedule-date:first-child {
    margin-top: 0;
}

.schedule-day-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 16px 0;
}

.schedule-slot {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.schedule-slot:last-child {
    border-bottom: none;
}

.schedule-entries {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0 0;
}

.schedule-entries li {
    margin-bottom: 6px;
}

.schedule-entries li:last-child {
    margin-bottom: 0;
}

.schedule-2026-page .schedule-2026-h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #123d7a;
}

.schedule-2026-zoom {
    margin: 12px 0;
}

.schedule-2026-legend {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.schedule-2026-calendar-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.schedule-2026-calendar {
    min-width: 600px;
}

.schedule-2026-calendar th,
.schedule-2026-calendar td {
    vertical-align: top;
}

.schedule-2026-cell {
    min-width: 100px;
}

.schedule-cell-empty {
    color: #9ca3af;
    font-size: 0.9rem;
}

.schedule-cell-entries .schedule-2026-entry {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #eef2f7;
}

.schedule-cell-entries .schedule-2026-entry:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.schedule-2026-notes {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.schedule-2026-notes h3 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #123d7a;
}

.schedule-2026-notes h3:first-child {
    margin-top: 0;
}

.schedule-2026-notes ul {
    margin: 0 0 16px 0;
    padding-left: 1.25rem;
}

.schedule-2026-notes li {
    margin-bottom: 6px;
}

.schedule-2026-zoom-footer {
    margin-top: 24px;
}

.schedule-2026-contact {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: #123d7a;
    color: #fff;
}

.btn-secondary {
    background: #e6edf9;
    color: #123d7a;
}

.btn-danger {
    background: #b42318;
    color: #fff;
}

.speakup-footer {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #5a6274;
}

.speakup-footer a {
    color: #123d7a;
    text-decoration: none;
}

.speakup-footer a:hover {
    text-decoration: underline;
}

.letter-grade-cell {
    display: flex;
    align-items: center;
}

.row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 8px;
}

label:has(input[type="checkbox"]) input {
    width: auto;
    margin: 0;
}

.required-mark {
    color: #b42318;
}

input.field-invalid,
select.field-invalid {
    border-color: #b42318 !important;
    box-shadow: 0 0 0 1px #b42318;
}

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bfd0ef;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
}

.wizard-steps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.wizard-step {
    border: 1px solid #bed0ef;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    color: #29508e;
}

.wizard-step.active {
    background: #123d7a;
    color: #fff;
    border-color: #123d7a;
}

.hidden {
    display: none;
}

.timeslot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.availability-calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: fixed;
}

.availability-calendar th {
    font-size: 12px;
    color: #1f3f73;
    background: #eef3fc;
    border: 1px solid #d2def2;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.availability-calendar td {
    border: 1px solid #d2def2;
    border-radius: 8px;
    padding: 6px;
    min-height: 64px;
    background: #ffffff;
}

.calendar-cell-available {
    background: #f8fffb;
}

.calendar-cell-available select {
    font-size: 12px;
    padding: 6px;
    border-color: #8ad8b7;
}

.calendar-cell-booked {
    background: #d9dde5;
    color: #5a6274;
    text-align: center;
    font-weight: 600;
}

.calendar-cell-empty {
    background: #f4f5f8;
}

.calendar-cell-clickable {
    cursor: pointer;
}

.calendar-cell-select-placeholder {
    display: block;
    font-size: 11px;
    color: #5a6274;
    opacity: 0.7;
    text-align: center;
}

.calendar-cell-entries {
    font-size: 11px;
    line-height: 1.3;
    color: #1a2238;
}

.calendar-cell-entries div {
    margin-bottom: 2px;
}

.calendar-cell-entries div:last-child {
    margin-bottom: 0;
}

.admin-unscheduled-pool {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    min-height: 48px;
}

.admin-unscheduled-pool h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #64748b;
}

.admin-slot-entries {
    min-height: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-entry-chip {
    padding: 4px 8px;
    font-size: 12px;
    background: #123d7a;
    color: #fff;
    border-radius: 6px;
    cursor: grab;
    line-height: 1.2;
    text-align: left;
}

.admin-entry-chip .chip-title-author {
    font-size: 10px;
    opacity: 0.85;
    font-style: italic;
}
.admin-entry-chip .chip-date {
    font-size: 10px;
    opacity: 0.8;
}

.admin-reg-entry-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
}
.admin-reg-entry-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.text-muted {
    color: #718096;
    font-size: 0.9em;
}

.admin-entry-chip:active {
    cursor: grabbing;
}

.admin-entry-chip.admin-dragging {
    opacity: 0.5;
}

.admin-entry-chip.chip-unconfirmed {
    opacity: 0.6;
}

.admin-slot-drop {
    min-height: 48px;
    cursor: default;
}

.admin-slot-drop.admin-slot-drop-active {
    background: #e0f2fe;
}

.speakup-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.speakup-modal-overlay.hidden {
    display: none;
}

.speakup-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.speakup-modal .title {
    margin-top: 0;
}

.speakup-modal-slot-info {
    font-size: 14px;
    color: #2f4c78;
    margin-bottom: 16px;
}

.speakup-modal-entry-list {
    margin-bottom: 16px;
}

.speakup-modal-entry-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
}

.speakup-modal-entry-item:last-child {
    border-bottom: none;
}

.speakup-modal-entry-item input:disabled + span {
    color: #9ca3af;
}

.speakup-modal-actions {
    display: flex;
    gap: 8px;
    margin: 0;
}

.edit-registration-modal .speakup-modal {
    max-width: 560px;
}

.edit-registration-modal .speakup-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    margin: 16px 0;
}

.edit-registration-modal .form-row {
    margin-bottom: 12px;
}

.edit-registration-modal .form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.edit-registration-modal .form-row input[type="text"],
.edit-registration-modal .form-row input[type="email"],
.edit-registration-modal .form-row input[type="number"],
.edit-registration-modal .form-row select,
.edit-registration-modal .form-row textarea {
    width: 100%;
    box-sizing: border-box;
}

.edit-registration-modal .edit-entry-block {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.edit-registration-modal .edit-entry-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.edit-registration-btn {
    margin-left: 8px;
}

.timeslot {
    border: 1px solid #bed0ef;
    border-radius: 10px;
    padding: 10px;
    background: #ffffff;
}

.timeslot.booked {
    border-color: #bbc1cc;
    background: #edf0f5;
    color: #5a6170;
}

.timeslot.available {
    border-color: #10b981;
}

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-verified {
    background: #d1fae5;
    color: #065f46;
}

.status-unavailable {
    background: #e5e7eb;
    color: #4b5563;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0c4a6e;
}

.error {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: #fee2e2;
    color: #7f1d1d;
}

@media (max-width: 760px) {
    .row {
        grid-template-columns: 1fr;
    }

    .availability-calendar {
        display: block;
        overflow-x: auto;
    }

    .speakup-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .speakup-nav-links {
        justify-content: center;
    }

    .home-tabs {
        flex-direction: column;
    }

    .home-tab {
        text-align: left;
        border-bottom: 0;
        border-left: 3px solid transparent;
    }

    .home-tab.active {
        border-bottom: 0;
        border-left-color: #123d7a;
    }
}
