:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --card: #ffffff;
  --text: #101010;
  --muted: #666;
  --line: #dedede;
  --green: #00704a;
  --green-soft: #e8fbf4;
  --blue: #0076ad;
  --blue-soft: #eaf7ff;
  --red: #a30d16;
  --red-soft: #fff0f1;
  --amber: #7a4b00;
  --amber-soft: #fff8df;
}

/* Nur die angemeldete Admin-Ansicht darf lokal zwischen Hell und Dunkel wechseln. */
@media screen {
  html[data-admin-theme="dark"] {
    --bg: #101513;
    --card: #18201d;
    --text: #edf4f1;
    --muted: #a8b4af;
    --line: #3a4842;
    --green: #56d5a6;
    --green-soft: #173a2e;
    --blue: #61c6f1;
    --blue-soft: #173546;
    --red: #ff9ca4;
    --red-soft: #421e23;
    --amber: #f0c66b;
    --amber-soft: #3b3018;
  }
  html[data-admin-theme="dark"], html[data-admin-theme="dark"] body { background: var(--bg); color: var(--text); }
  html[data-admin-theme="dark"] .card,
  html[data-admin-theme="dark"] .modal,
  html[data-admin-theme="dark"] .admin-card,
  html[data-admin-theme="dark"] .admin-filter-group,
  html[data-admin-theme="dark"] .admin-year-month,
  html[data-admin-theme="dark"] .admin-planner-day,
  html[data-admin-theme="dark"] .role-sheet,
  html[data-admin-theme="dark"] .schedule-review-admin-event,
  html[data-admin-theme="dark"] .schedule-review-notification,
  html[data-admin-theme="dark"] .member-activity-row,
  html[data-admin-theme="dark"] .schedule-review-calendar-month,
  html[data-admin-theme="dark"] .schedule-review-calendar-day,
  html[data-admin-theme="dark"] .schedule-review-calendar-event,
  html[data-admin-theme="dark"] .schedule-review-create-preview,
  html[data-admin-theme="dark"] .schedule-review-calendar-day-detail,
  html[data-admin-theme="dark"] .schedule-review-partner-questions,
  html[data-admin-theme="dark"] .schedule-review-stand-request,
  html[data-admin-theme="dark"] .schedule-review-admin-question-manager,
  html[data-admin-theme="dark"] .schedule-review-admin-stand-editor,
  html[data-admin-theme="dark"] .schedule-review-admin-question-list > article,
  html[data-admin-theme="dark"] .event-series-editor-card,
  html[data-admin-theme="dark"] .competition-day-editor-row { background-color: var(--card); color: var(--text); }
  html[data-admin-theme="dark"] input,
  html[data-admin-theme="dark"] select,
  html[data-admin-theme="dark"] textarea,
  html[data-admin-theme="dark"] .btn,
  html[data-admin-theme="dark"] .chip,
  html[data-admin-theme="dark"] .admin-event-select { border-color: var(--line); background-color: #202925; color: var(--text); }
  html[data-admin-theme="dark"] .admin-planner-selection,
  html[data-admin-theme="dark"] .plan-competition-day,
  html[data-admin-theme="dark"] .rotten-plan-day-statuses > span,
  html[data-admin-theme="dark"] .admin-year-month-title,
  html[data-admin-theme="dark"] .admin-year-weekdays,
  html[data-admin-theme="dark"] .admin-planner-weekdays,
  html[data-admin-theme="dark"] .role-sheet-profile,
  html[data-admin-theme="dark"] .role-sheet-display,
  html[data-admin-theme="dark"] .trusted-device-choice,
  html[data-admin-theme="dark"] .task-row,
  html[data-admin-theme="dark"] .comment-pill,
  html[data-admin-theme="dark"] .schedule-review-notice-admin,
  html[data-admin-theme="dark"] .schedule-review-calendar-weekdays,
  html[data-admin-theme="dark"] .schedule-review-view-switch,
  html[data-admin-theme="dark"] .schedule-review-partner-note,
  html[data-admin-theme="dark"] .schedule-review-question-answer,
  html[data-admin-theme="dark"] .schedule-review-submit-panel { background-color: #202925; color: var(--text); }
  html[data-admin-theme="dark"] .schedule-review-calendar-day.outside,
  html[data-admin-theme="dark"] .schedule-review-calendar-empty { background-color: #151b19; }
  html[data-admin-theme="dark"] .schedule-review-calendar-event.pending { background-color: #3a311a; }
  html[data-admin-theme="dark"] .schedule-review-calendar-event.confirmed { background-color: #173329; }
  html[data-admin-theme="dark"] .schedule-review-calendar-event.changed { background-color: #421e23; }
  html[data-admin-theme="dark"] .schedule-review-calendar-event.rejected { background-color: #262c29; }
  html[data-admin-theme="dark"] .admin-planner-day.outside { background-color: #151b19; color: var(--muted); }
  html[data-admin-theme="dark"] .admin-planner-event { background: #19342b; color: var(--text); }
  html[data-admin-theme="dark"] .admin-planner-event.draft { background: #3a311a; }
  html[data-admin-theme="dark"] .admin-planner-event.cancelled { background: #421e23; }
  html[data-admin-theme="dark"] .admin-planner-time-control.move { border-color: var(--line); background: #202925; color: var(--green); }
  html[data-admin-theme="dark"] .admin-year-grid { background: #111714; }
  html[data-admin-theme="dark"] .primary { border-color: #278a67; background: #278a67; color: #fff; }
  html[data-admin-theme="dark"] .blue { border-color: #1679a6; background: #1679a6; color: #fff; }
  html[data-admin-theme="dark"] .danger { border-color: #a74b53; background-color: transparent; color: var(--red); }
  html[data-admin-theme="dark"] .workspace-calendar-jump,
  html[data-admin-theme="dark"] .chip.active,
  html[data-admin-theme="dark"] .badge.filter,
  html[data-admin-theme="dark"] .badge.blue-badge,
  html[data-admin-theme="dark"] .round-series-notice,
  html[data-admin-theme="dark"] .round-series-admin,
  html[data-admin-theme="dark"] .event-series-notice,
  html[data-admin-theme="dark"] .weapon-box.pending { color: #a9e3fb; }
  html[data-admin-theme="dark"] .notice.ok,
  html[data-admin-theme="dark"] .badge.green,
  html[data-admin-theme="dark"] .weapon-box,
  html[data-admin-theme="dark"] .all-clear,
  html[data-admin-theme="dark"] .role-sheet-item.active { color: #a8efd4; }
  html[data-admin-theme="dark"] .role-sheet-item.active,
  html[data-admin-theme="dark"] .all-clear { background-color: #173329; }
  html[data-admin-theme="dark"] .role-sheet-item + .role-sheet-item,
  html[data-admin-theme="dark"] .overview-event-row,
  html[data-admin-theme="dark"] .schedule-review-facts > div + div { border-color: var(--line); }
  html[data-admin-theme="dark"] .role-sheet-item.calendar-link { color: #9eddf8; }
  html[data-admin-theme="dark"] .modal-backdrop { background: rgba(0, 0, 0, .68); }
  html[data-admin-theme="dark"] .member-admin-edit-form.inactive { background-color: #151b19; }
  html[data-admin-theme="dark"] img { color-scheme: light; }
}

/* Terminabstimmungen: eigenständiges Partnerportal und Admin-Kontrolle. */
.schedule-review-page {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) max(0px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(0px, env(safe-area-inset-left));
}
.schedule-review-loading, .schedule-review-error { max-width: 720px; margin: 8vh auto 0; }
.schedule-review-portal { display: grid; gap: 16px; }
.schedule-review-page > .schedule-review-portal { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: clamp(16px, 3vw, 28px); box-shadow: 0 4px 18px rgb(0 0 0 / 9%); }
.schedule-review-portal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 2px solid var(--green); padding-bottom: 16px; }
.schedule-review-portal-head h1 { font-size: clamp(30px, 6vw, 48px); }
.schedule-review-partner { margin: 7px 0 0; color: #4f5a56; font-size: clamp(17px, 3vw, 22px); font-weight: 750; }
.schedule-review-round-state, .schedule-review-status { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 850; text-align: center; }
.schedule-review-round-state.open { border-color: #75ddb7; background: var(--green-soft); color: #07553b; }
.schedule-review-round-state.closed { background: #f1f3f2; color: #4b5551; }
.schedule-review-round-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.schedule-review-round-head h2 { font-size: clamp(24px, 4vw, 34px); }
.schedule-review-round-head p:last-child { margin: 7px 0 0; }
.schedule-review-round-select { width: min(320px, 100%); margin: 0; font-size: 13px; }
.schedule-review-notice { border: 1px solid #e1bd52; border-left: 5px solid #c28b08; border-radius: 10px; background: var(--amber-soft); padding: 13px 15px; color: #4f3600; }
.schedule-review-notice strong { display: block; margin-bottom: 4px; }
.schedule-review-notice p { margin: 0; line-height: 1.5; white-space: pre-wrap; }
.schedule-review-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.schedule-review-counts > span { display: grid; min-width: 0; gap: 2px; padding: 10px 8px; text-align: center; }
.schedule-review-counts > span + span { border-left: 1px solid var(--line); }
.schedule-review-counts strong { font-size: clamp(18px, 3vw, 24px); }
.schedule-review-counts small { color: #58605d; font-size: 11px; font-weight: 750; }
.schedule-review-counts .confirmed { background: var(--green-soft); color: #07553b; }
.schedule-review-counts .changed { background: var(--red-soft); color: var(--red); }
.schedule-review-counts .rejected { background: #f3f3f3; color: #4f4f4f; }
.schedule-review-counts .pending { background: var(--amber-soft); color: var(--amber); }
.schedule-review-portal-tools, .schedule-review-admin-tools, .schedule-review-channel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.schedule-review-portal-tools > button, .schedule-review-admin-tools > button, .schedule-review-channel-actions > button { min-height: 44px; }
.schedule-review-event-list, .schedule-review-admin-event-list, .schedule-review-channel-list, .schedule-review-admin-rounds { display: grid; gap: 12px; }
.schedule-review-event { border: 1px solid var(--line); border-left-width: 5px; border-radius: 11px; background: #fff; padding: clamp(14px, 2.5vw, 20px); }
.schedule-review-event.pending { border-left-color: #d9aa23; }
.schedule-review-event.confirmed { border-left-color: var(--green); }
.schedule-review-event.changed { border-left-color: var(--red); }
.schedule-review-event.rejected { border-left-color: #777; background: #fafafa; }
.schedule-review-event > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.schedule-review-event h3 { overflow-wrap: anywhere; font-size: clamp(20px, 3vw, 25px); }
.schedule-review-status.pending { border-color: #e7c158; background: var(--amber-soft); color: var(--amber); }
.schedule-review-status.confirmed { border-color: #75ddb7; background: var(--green-soft); color: #07553b; }
.schedule-review-status.changed { border-color: #ff9fa8; background: var(--red-soft); color: var(--red); }
.schedule-review-status.rejected { background: #eee; color: #444; }
.schedule-review-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 0; border: 1px solid #e5e8e7; border-radius: 8px; }
.schedule-review-facts > div { min-width: 0; padding: 9px 11px; }
.schedule-review-facts > div + div { border-left: 1px solid #e5e8e7; }
.schedule-review-facts dt { color: #636a67; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.schedule-review-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.schedule-review-diff { display: grid; gap: 7px; margin-top: 13px; border: 1px solid #ffadb4; border-radius: 9px; background: var(--red-soft); padding: 11px 12px; color: #780912; }
.schedule-review-diff > div { display: grid; grid-template-columns: 65px minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.schedule-review-diff > div > span { font-size: 12px; font-weight: 800; }
.schedule-review-diff del { color: #6d6162; }
.schedule-review-diff ins { color: var(--red); font-weight: 850; text-decoration: none; }
.schedule-review-event-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.schedule-review-event-actions > button { min-height: 48px; padding: 9px; }
.schedule-review-answer-button { border-color: var(--line); background: #fff; color: var(--text); }
.schedule-review-answer-button.confirmed-choice.is-selected { border-color: var(--green); background: var(--green); color: #fff; }
.schedule-review-answer-button.rejected-choice.is-selected { border-color: var(--red); background: var(--red); color: #fff; }
.schedule-review-partner-questions { display: grid; gap: 9px; margin-top: 14px; border: 1px solid #9fcfe4; border-radius: 10px; background: #f7fcff; padding: 12px; }
.schedule-review-partner-questions h4 { margin: 0; font-size: 17px; }
.schedule-review-partner-question { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, auto); gap: 9px 14px; align-items: center; border-top: 1px solid #cfe5ef; padding-top: 9px; }
.schedule-review-partner-question > p { display: grid; gap: 2px; margin: 0; }
.schedule-review-partner-question > p > span { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.schedule-review-partner-question > p > strong { overflow-wrap: anywhere; }
.schedule-review-partner-question > div { display: grid; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 7px; }
.schedule-review-partner-question button { min-height: 46px; background: #fff; color: var(--text); }
.schedule-review-question-answer.positive.is-selected { border-color: var(--green); background: var(--green); color: #fff; }
.schedule-review-question-answer.negative.is-selected { border-color: var(--red); background: var(--red); color: #fff; }
.schedule-review-partner-question > small { grid-column: 1 / -1; color: var(--blue); }
.schedule-review-stand-request { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(280px, auto); gap: 9px 14px; align-items: center; margin-top: 14px; border: 1px solid #9fcfe4; border-radius: 10px; background: #f7fcff; padding: 12px; }
.schedule-review-stand-request.has-answer { border-color: #82cdb2; background: #f5fcf9; }
.schedule-review-stand-request > div:first-child { display: grid; gap: 2px; }
.schedule-review-stand-request .eyebrow { margin: 0; font-size: 10px; }
.schedule-review-stand-request small { color: var(--muted); }
.schedule-review-stand-form { display: grid; grid-template-columns: minmax(135px, 1fr) auto auto; gap: 7px; align-items: end; }
.schedule-review-stand-form label { margin: 0; font-size: 12px; }
.schedule-review-stand-form label span { color: var(--muted); font-weight: 500; }
.schedule-review-stand-form input { min-height: 46px; font-size: 16px; }
.schedule-review-stand-form button { min-height: 46px; }
.schedule-review-stand-request > p { grid-column: 1 / -1; margin: 0; }
.schedule-review-question-result { display: inline-flex; width: fit-content; margin-top: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 850; }
.schedule-review-question-result.positive { border-color: #75ddb7; background: var(--green-soft); color: #07553b; }
.schedule-review-question-result.negative { border-color: #ff9fa8; background: var(--red-soft); color: var(--red); }
.schedule-review-question-result.pending { background: #f3f3f3; color: #555; }
.schedule-review-shift { display: grid; gap: 10px; margin-top: 14px; border: 1px solid #9fcfe4; border-radius: 10px; background: #f3faff; padding: 13px; }
.schedule-review-shift.is-busy { opacity: .72; }
.schedule-review-shift-fields { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 9px; }
.schedule-review-shift-fields label { margin: 0; font-size: 13px; }
.schedule-review-shift-fields input { min-height: 46px; font-size: 16px; }
.schedule-review-shift-buttons, .schedule-review-shift-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.schedule-review-shift-buttons button, .schedule-review-shift-actions button { min-height: 44px; }
.schedule-review-shift-actions { justify-content: flex-end; }
.schedule-review-portal-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; color: #666; font-size: 12px; }
.schedule-review-admin { display: grid; gap: 16px; }
.schedule-review-admin-intro .notice { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.schedule-review-admin-intro .notice p { flex: 1 1 auto; margin: 0; }
.schedule-review-channel { display: grid; gap: 12px; }
.schedule-review-channel.revoked { background: #f7f7f7; }
.schedule-review-channel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.schedule-review-admin-round { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid #e1e4e3; border-radius: 8px; padding: 10px 12px; }
.schedule-review-admin-round > div { display: grid; min-width: 0; gap: 4px; }
.schedule-review-admin-round small { color: var(--muted); overflow-wrap: anywhere; }
.schedule-review-admin-detail { display: grid; gap: 14px; }
.schedule-review-notice-admin { border: 1px solid var(--line); border-radius: 10px; background: #fafcfc; padding: 13px; }
.schedule-review-notice-admin textarea { min-height: 116px; resize: vertical; }
.schedule-review-secret-hint { margin: 0; border-left: 3px solid #d1a230; padding-left: 9px; }
.schedule-review-admin-event { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 220px); gap: 14px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 9px; padding: 13px; }
.schedule-review-admin-event.pending { border-left-color: #d9aa23; }
.schedule-review-admin-event.confirmed { border-left-color: var(--green); }
.schedule-review-admin-event.changed { border-left-color: var(--red); }
.schedule-review-admin-event.rejected { border-left-color: #777; }
.schedule-review-admin-event-main { min-width: 0; }
.schedule-review-admin-event-main > .muted { overflow-wrap: anywhere; }
.schedule-review-admin-event-side { display: grid; align-content: start; gap: 8px; }
.schedule-review-admin-event-side button { min-height: 44px; }
.schedule-review-admin-question-results { display: grid; gap: 6px; margin-top: 11px; border-top: 1px dashed var(--line); padding-top: 9px; }
.schedule-review-admin-question-results > strong { font-size: 13px; }
.schedule-review-admin-question-results p { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 0; }
.schedule-review-admin-question-manager { display: grid; grid-column: 1 / -1; gap: 10px; border: 1px solid #9fcfe4; border-radius: 10px; background: #f7fcff; padding: 12px; }
.schedule-review-admin-stand-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px; }
.schedule-review-admin-stand-editor > div { display: grid; gap: 3px; }
.schedule-review-admin-stand-editor small { color: var(--muted); }
.schedule-review-admin-stand-editor button { min-height: 44px; }
.schedule-review-admin-stand-result { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 9px; border-top: 1px dashed var(--line); padding-top: 8px; font-size: 12px; }
.schedule-review-admin-stand-result > span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-weight: 800; }
.schedule-review-admin-stand-result > span.exact { background: #f4f7f6; color: #3f4c47; }
.schedule-review-admin-stand-result > span.changed { border-color: #8bcfe9; background: var(--blue-soft); color: #07567a; }
.schedule-review-admin-stand-result > span.pending { background: #f3f3f3; color: #555; }
.schedule-review-calendar-selection > .schedule-review-admin-question-manager,
.schedule-review-calendar-selection > .schedule-review-partner-questions,
.schedule-review-calendar-selection > .schedule-review-stand-request,
.schedule-review-calendar-selection > .schedule-review-calendar-selection-actions { grid-column: 1 / -1; width: 100%; }
.schedule-review-admin-question-manager .section-heading { align-items: flex-start; }
.schedule-review-admin-question-manager h4 { margin: 0; font-size: 18px; }
.schedule-review-admin-question-list { display: grid; gap: 8px; }
.schedule-review-admin-question-list > article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px; }
.schedule-review-admin-question-list > article > div:first-child { display: grid; gap: 3px; }
.schedule-review-admin-question-list .eyebrow { margin: 0; font-size: 10px; }
.schedule-review-admin-question-list small { color: var(--muted); }
.schedule-review-admin-question-list > article > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.schedule-review-admin-question-list button { min-height: 42px; }
.schedule-review-question-backdrop { z-index: 115; height: 100dvh; min-height: 100dvh; align-items: stretch; overflow: hidden; padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
.schedule-review-question-dialog { display: flex; width: min(680px, 100%); max-height: 100%; flex-direction: column; overflow: auto; margin: auto; }
.schedule-review-question-dialog textarea { min-height: 120px; resize: vertical; }
.schedule-review-drift { color: var(--red); font-weight: 750; }
.admin-bulk-review-action { display: grid; grid-template-columns: minmax(190px, auto) minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.admin-bulk-review-action button { min-height: 46px; }
.admin-bulk-review-action small { color: var(--muted); line-height: 1.35; }
.admin-bulk-review-action small.valid { color: #07553b; font-weight: 700; }
.admin-bulk-review-action small.invalid { color: #6a5555; }
.schedule-review-create-dialog { width: min(780px, 100%); }
.schedule-review-create-list { max-height: min(42vh, 460px); overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 10px; }
.schedule-review-create-list h3 { margin: 0 0 8px; font-size: 17px; }
.schedule-review-create-list > div { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-top: 1px solid #e8e8e8; padding: 9px 2px; }
.schedule-review-create-list > div > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.schedule-review-create-list small { color: var(--muted); overflow-wrap: anywhere; }
.schedule-review-preview-dialog { max-height: calc(100vh - 30px); overflow: auto; }
.modal.large.schedule-review-preview-dialog { width: min(1480px, 100%); }
.schedule-review-preview-dialog > .schedule-review-portal { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.schedule-review-qr-dialog { width: min(520px, 100%); }
.schedule-review-qr-dialog img { display: block; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; object-fit: contain; }
.schedule-review-secret-dialog { width: min(560px, 100%); }
.schedule-review-secret-dialog > img { display: block; width: min(100%, 380px); aspect-ratio: 1; margin: 4px auto; object-fit: contain; }
.schedule-review-secret-dialog [data-secret-copy-status] { min-height: 20px; margin: 0; text-align: center; }
.schedule-review-print-sheet { display: none; }
.schedule-review-view-switch { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f3f5f4; padding: 3px; }
.schedule-review-view-switch .btn { min-height: 38px; border-color: transparent; background: transparent; padding: 7px 13px; }
.schedule-review-view-switch .btn.active { border-color: #a9dac8; background: #fff; color: #07553b; box-shadow: 0 1px 5px rgb(0 0 0 / 8%); }
.schedule-review-create-preview { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafcfc; padding: 14px; }
.schedule-review-calendar-help { margin: 0; border-left: 3px solid #8acbb4; padding-left: 9px; }
.schedule-review-calendar { display: grid; min-width: 0; gap: 12px; }
.schedule-review-calendar-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; align-items: center; }
.schedule-review-calendar-heading h3 { margin: 0; font-size: clamp(22px, 3vw, 30px); text-align: center; text-transform: capitalize; }
.schedule-review-calendar-heading .btn.icon { width: 48px; min-width: 48px; min-height: 44px; padding: 0; font-size: 26px; }
.schedule-review-year-overview { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.schedule-review-year-overview .btn { display: grid; min-width: 0; min-height: 48px; gap: 1px; border-color: var(--line); background: #fff; padding: 5px 3px; color: var(--text); text-align: center; }
.schedule-review-year-overview .btn span { overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; text-transform: capitalize; }
.schedule-review-year-overview .btn small { color: var(--muted); font-size: 10px; }
.schedule-review-year-overview .btn.active { border-color: #76d8b5; background: var(--green-soft); color: #07553b; box-shadow: inset 0 0 0 1px #76d8b5; }
.schedule-review-calendar-selection { display: grid; min-height: 94px; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px 16px; align-items: center; border: 1px solid #82cdb2; border-radius: 10px; background: #f5fcf9; padding: 12px 14px; }
.schedule-review-calendar-selection.empty { min-height: 94px; grid-template-columns: minmax(0, 1fr); border-color: var(--line); background: #fafcfc; }
.schedule-review-calendar-selection-copy { display: grid; min-width: 0; gap: 2px; }
.schedule-review-calendar-selection-copy > strong { overflow-wrap: anywhere; font-size: 19px; }
.schedule-review-calendar-selection-copy > small { color: var(--muted); overflow-wrap: anywhere; }
.schedule-review-calendar-selection-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.schedule-review-calendar-selection-actions button { min-height: 44px; }
.schedule-review-calendar-selection > .schedule-review-shift,
.schedule-review-calendar-target-help { grid-column: 1 / -1; }
.schedule-review-calendar-target-help { margin: 0; border-top: 1px dashed #a9d8c7; padding-top: 8px; color: #3f5950; font-size: 12px; }
.schedule-review-calendar-month { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.schedule-review-calendar-month-scroll { min-width: 0; overflow: hidden; }
.schedule-review-calendar-weekdays,
.schedule-review-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.schedule-review-calendar-weekdays { border-bottom: 1px solid var(--line); background: #f1f5f3; }
.schedule-review-calendar-weekdays span { display: grid; padding: 9px 4px; color: #52605a; font-size: 12px; font-weight: 850; text-align: center; }
.schedule-review-calendar-weekdays b { display: none; }
.schedule-review-calendar-weekdays em { font-style: normal; }
.schedule-review-calendar-empty,
.schedule-review-calendar-day { min-width: 0; min-height: 172px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 8px; }
.schedule-review-calendar-grid > :nth-child(7n) { border-right: 0; }
.schedule-review-calendar-grid > :nth-last-child(-n+7) { border-bottom: 0; }
.schedule-review-calendar-empty { background: #f7f9f8; }
.schedule-review-calendar-day { transition: background-color .12s ease, box-shadow .12s ease; }
.schedule-review-calendar-day.has-events { background: #fbfefd; }
.schedule-review-calendar-day.has-note { box-shadow: inset 0 3px 0 #e4b63e; }
.schedule-review-calendar-day.drag-over { background: var(--blue-soft); box-shadow: inset 0 0 0 3px #59bde7; }
.schedule-review-calendar-day.is-target { cursor: pointer; }
.schedule-review-calendar-day.is-target:hover { background: #f3fbff; box-shadow: inset 0 0 0 2px #9ddcf5; }
.schedule-review-calendar-day.is-target:focus-visible { position: relative; z-index: 2; outline: 3px solid #38bdf8; outline-offset: -3px; }
.schedule-review-calendar-day.is-selected-day { position: relative; z-index: 1; background: #f2fbff; box-shadow: inset 0 0 0 2px #68c8ef; }
.schedule-review-calendar-target-label { border: 1px solid #94cfe8; border-radius: 999px; background: #fff; padding: 2px 6px; color: #07567a; font-size: 9px; font-weight: 850; }
.schedule-review-calendar-day-head { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 4px; }
.schedule-review-calendar-day-head time { font-size: 13px; font-weight: 850; }
.schedule-review-calendar-day-head .btn.icon { width: 27px; min-width: 27px; min-height: 27px; border-radius: 7px; padding: 0; font-size: 14px; }
.schedule-review-calendar-events { display: grid; gap: 4px; }
.schedule-review-calendar-markers { display: none; }
.schedule-review-calendar-event { position: relative; display: grid; width: 100%; min-width: 0; gap: 2px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 7px; background: #fff; padding: 8px 22px 8px 8px; color: var(--text); text-align: left; }
.schedule-review-calendar-event[draggable="true"] { cursor: grab; touch-action: pan-y; }
.schedule-review-calendar-event[draggable="true"]:active { cursor: grabbing; }
.schedule-review-calendar-event.dragging { opacity: .45; }
.schedule-review-calendar-event.pending { border-left-color: #b8bfbc; background: #fff; }
.schedule-review-calendar-event.confirmed { border-left-color: var(--green); background: #f4fdf9; }
.schedule-review-calendar-event.changed { border-left-color: var(--blue); background: #fff; }
.schedule-review-calendar-event.rejected { border-left-color: var(--red); background: var(--red-soft); }
.schedule-review-calendar-event.selected { border-color: #28aedd; border-left-color: #0076ad; box-shadow: 0 0 0 2px #9ddcf5; }
.schedule-review-calendar-event strong,
.schedule-review-calendar-event span,
.schedule-review-calendar-event small { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.schedule-review-calendar-event strong { color: var(--green); font-size: 11px; }
.schedule-review-calendar-event span { font-size: 13px; font-weight: 850; line-height: 1.22; }
.schedule-review-calendar-event small { color: var(--muted); font-size: 10px; line-height: 1.2; }
.schedule-review-calendar-event i { position: absolute; top: 5px; right: 6px; font-size: 11px; font-style: normal; font-weight: 900; }
.schedule-review-calendar-day-detail { display: none; border: 1px solid #8bcfe9; border-radius: 10px; background: #f7fcff; padding: 12px; }
.schedule-review-calendar-day-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.schedule-review-day-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.schedule-review-day-detail-actions .btn { min-height: 44px; }
.schedule-review-calendar-day-detail h4 { margin: 0; font-size: 20px; text-transform: capitalize; }
.schedule-review-calendar-day-detail .eyebrow { margin-bottom: 3px; }
.schedule-review-calendar-day-detail-events { display: grid; gap: 7px; margin-top: 10px; }
.schedule-review-calendar-event.day-detail { min-height: 70px; padding: 10px 30px 10px 11px; }
.schedule-review-calendar-event.day-detail span { font-size: 16px; }
.schedule-review-calendar-event.day-detail strong { font-size: 13px; }
.schedule-review-calendar-event.day-detail small { font-size: 12px; }
.schedule-review-day-detail-note { display: grid; gap: 3px; margin: 10px 0 0; border-left: 4px solid #d6a622; background: var(--amber-soft); padding: 9px 11px; color: var(--amber); }
.schedule-review-day-note { display: grid; gap: 1px; margin: 2px 0 5px; border: 1px solid #e7c158; border-radius: 6px; background: var(--amber-soft); padding: 5px; color: var(--amber); font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; }
.schedule-review-day-note strong { font-size: 8px; text-transform: uppercase; }
.schedule-review-day-note-summary { display: grid; gap: 7px; border: 1px solid #e7c158; border-radius: 9px; background: var(--amber-soft); padding: 12px; }
.schedule-review-day-note-summary h3 { margin: 0; font-size: 16px; }
.schedule-review-day-note-summary p { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 9px; margin: 0; }
.schedule-review-day-note-summary time { font-weight: 800; }
.schedule-review-day-note-backdrop { z-index: 110; height: 100dvh; min-height: 100dvh; align-items: stretch; overflow: hidden; padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
.schedule-review-day-note-dialog { display: flex; width: min(680px, 100%); max-height: 100%; flex-direction: column; overflow: hidden; margin: auto; }
.schedule-review-day-note-dialog > .modal-head { flex: 0 0 auto; }
.schedule-review-day-note-dialog > form { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: auto; overscroll-behavior: contain; padding-bottom: max(1px, env(safe-area-inset-bottom)); }
.schedule-review-day-note-dialog > form > label { display: grid; min-height: 0; flex: 1 1 auto; grid-template-rows: auto minmax(118px, 1fr) auto; }
.schedule-review-day-note-dialog textarea { min-height: 118px; resize: vertical; }
.schedule-review-day-note-dialog .app-dialog-actions { position: sticky; z-index: 2; bottom: 0; flex: 0 0 auto; margin-top: 14px; border-top: 1px solid var(--line); background: #fff; padding: 12px 0 max(2px, env(safe-area-inset-bottom)); }
.schedule-review-partner-note, .schedule-review-partner-note-readonly { border: 1px solid #9fcfe4; border-radius: 10px; background: #f6fbfe; padding: 13px; }
.schedule-review-partner-note label { display: grid; gap: 6px; margin: 0; }
.schedule-review-partner-note label strong span { color: var(--muted); font-size: 12px; font-weight: 600; }
.schedule-review-partner-note textarea { min-height: 100px; resize: vertical; }
.schedule-review-partner-note label small { color: var(--muted); font-size: 12px; }
.schedule-review-partner-note-status { margin: 8px 0 0; color: #07553b; font-size: 12px; font-weight: 750; }
.schedule-review-partner-note-status.error { color: var(--red); }
.schedule-review-partner-note-readonly strong { display: block; margin-bottom: 5px; }
.schedule-review-partner-note-readonly p { margin: 0; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.schedule-review-print-options-dialog { width: min(680px, 100%); }
.schedule-review-print-status-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; border: 0; padding: 0; }
.schedule-review-print-status-options legend { grid-column: 1 / -1; margin-bottom: 2px; font-weight: 850; }
.schedule-review-print-status-options label,
.schedule-review-print-note-choice { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; margin: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 11px; cursor: pointer; }
.schedule-review-print-status-options label:has(input:checked) { border-color: #8bd4f4; background: var(--blue-soft); box-shadow: inset 0 0 0 1px #8bd4f4; }
.schedule-review-print-status-options input,
.schedule-review-print-note-choice input { width: auto; margin: 3px 0 0; }
.schedule-review-print-status-options span,
.schedule-review-print-note-choice span { display: grid; min-width: 0; gap: 3px; }
.schedule-review-print-status-options small,
.schedule-review-print-note-choice small { color: var(--muted); font-weight: 500; line-height: 1.3; }
.schedule-review-submit-panel { display: grid; grid-template-columns: minmax(190px, auto) minmax(0, 1fr); gap: 12px; align-items: center; border: 1px solid #8ccdb6; border-radius: 10px; background: #f4fcf8; padding: 13px; }
.schedule-review-submit-panel button { min-height: 50px; }
.schedule-review-submit-panel p { margin: 0; line-height: 1.4; }
.schedule-review-submission-state { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; }
.schedule-review-submission-state strong,
.schedule-review-submission-state p { grid-column: 1; }
.schedule-review-submission-state p { margin: 0; }
.schedule-review-submission-state button { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; }

@media (max-width: 768px) {
  .schedule-review-round-head { align-items: stretch; flex-direction: column; }
  .schedule-review-round-select { width: 100%; }
  .schedule-review-admin-intro .notice { align-items: stretch; flex-direction: column; }
  .schedule-review-admin-intro .notice button { width: 100%; min-height: 44px; }
  .schedule-review-admin-event { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-admin-event-side { grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr); align-items: start; }
  .schedule-review-year-overview { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .schedule-review-calendar-selection { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-calendar-selection-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .schedule-review-calendar-weekdays,
  .schedule-review-calendar-grid { width: 100%; min-width: 0; }
  .schedule-review-calendar-weekdays b { display: block; }
  .schedule-review-calendar-weekdays em { display: none; }
  .schedule-review-calendar-weekdays span { padding: 7px 1px; font-size: 11px; }
  .schedule-review-calendar-empty,
  .schedule-review-calendar-day { min-height: 66px; padding: 4px; }
  .schedule-review-calendar-day-head { min-height: 23px; }
  .schedule-review-calendar-day-head time { font-size: 12px; }
  .schedule-review-calendar-day-head .btn.icon { display: none; }
  .schedule-review-calendar-target-label { overflow: hidden; width: 8px; height: 8px; border: 0; background: var(--blue); padding: 0; color: transparent; }
  .schedule-review-calendar-events,
  .schedule-review-day-note { display: none; }
  .schedule-review-calendar-markers { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 2px; padding-top: 5px; }
  .schedule-review-calendar-markers > span { display: flex; min-width: 0; flex-wrap: wrap; gap: 2px; }
  .schedule-review-calendar-markers i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #aab0ad; }
  .schedule-review-calendar-markers i.confirmed { background: var(--green); }
  .schedule-review-calendar-markers i.changed { background: var(--blue); }
  .schedule-review-calendar-markers i.rejected { background: var(--red); }
  .schedule-review-calendar-markers b { color: var(--muted); font-size: 9px; }
  .schedule-review-calendar-day.has-note .schedule-review-calendar-day-head::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c28b08; }
  .schedule-review-calendar-day-detail { display: block; }
  .schedule-review-calendar-day-detail > header { align-items: stretch; flex-direction: column; }
  .schedule-review-day-detail-actions { justify-content: space-between; }
}

@media (min-width: 900px) {
  .schedule-review-create-dialog { width: min(1480px, 100%); }
  .schedule-review-calendar-day { min-height: 184px; }
}

@media (max-width: 520px) {
  .schedule-review-page { width: min(100% - 16px, 1120px); padding-top: max(8px, env(safe-area-inset-top)); }
  .schedule-review-page > .schedule-review-portal { border-radius: 10px; padding: 13px; }
  .schedule-review-portal-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .schedule-review-round-state { align-self: flex-start; }
  .schedule-review-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-review-counts > span + span { border-left: 0; }
  .schedule-review-counts > span:nth-child(even) { border-left: 1px solid var(--line); }
  .schedule-review-counts > span:nth-child(n+3) { border-top: 1px solid var(--line); }
  .schedule-review-counts .total { grid-column: 1 / -1; }
  .schedule-review-facts { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-facts > div + div { border-top: 1px solid #e5e8e7; border-left: 0; }
  .schedule-review-event > header { align-items: stretch; flex-direction: column; }
  .schedule-review-status { align-self: flex-start; }
  .schedule-review-event-actions { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-partner-question { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-partner-question > div { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-admin-question-results p { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-admin-question-list > article { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-admin-question-list > article > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-review-admin-question-manager .section-heading { align-items: stretch; flex-direction: column; }
  .schedule-review-stand-request { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-stand-form { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-admin-stand-editor { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-question-backdrop { padding: max(4px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); }
  .schedule-review-question-dialog { border-radius: 10px; padding: 14px; }
  .schedule-review-shift-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .schedule-review-shift-fields label:first-child { grid-column: 1 / -1; }
  .schedule-review-shift-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-review-shift-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-review-portal-tools, .schedule-review-admin-tools, .schedule-review-channel-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-review-admin-round { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-admin-round button { width: 100%; min-height: 44px; }
  .admin-bulk-review-action { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-create-list > div { grid-template-columns: 74px minmax(0, 1fr); }
  .schedule-review-create-list .badge { grid-column: 2; justify-self: start; }
  .schedule-review-diff > div { grid-template-columns: 55px minmax(0, 1fr) auto minmax(0, 1fr); gap: 5px; font-size: 13px; }
  .schedule-review-submit-panel,
  .schedule-review-submission-state { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-submission-state strong,
  .schedule-review-submission-state p,
  .schedule-review-submission-state button { grid-column: 1; grid-row: auto; }
  .schedule-review-day-note-summary p { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .schedule-review-create-preview { padding: 10px; }
  .schedule-review-year-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .schedule-review-calendar-heading { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .schedule-review-calendar-heading .btn.icon { width: 44px; min-width: 44px; }
  .schedule-review-calendar-selection-actions { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-calendar-selection { min-height: 0; padding: 10px; }
  .schedule-review-calendar-empty,
  .schedule-review-calendar-day { min-height: 60px; padding: 3px; }
  .schedule-review-calendar-day-detail { padding: 10px; }
  .schedule-review-day-note-backdrop { padding-top: max(4px, env(safe-area-inset-top)); padding-right: max(4px, env(safe-area-inset-right)); padding-bottom: max(4px, env(safe-area-inset-bottom)); padding-left: max(4px, env(safe-area-inset-left)); }
  .schedule-review-day-note-dialog { border-radius: 10px; padding: 14px; }
  .schedule-review-day-note-dialog .modal-head { gap: 7px; }
  .schedule-review-day-note-dialog .modal-head h2 { font-size: clamp(24px, 8vw, 34px); }
  .schedule-review-print-status-options { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 350px) {
  .schedule-review-page { width: min(100% - 10px, 1120px); }
  .schedule-review-page > .schedule-review-portal { padding: 10px; }
  .schedule-review-portal-tools, .schedule-review-admin-tools, .schedule-review-channel-actions, .schedule-review-shift-buttons, .schedule-review-shift-actions { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-shift-fields { grid-template-columns: minmax(0, 1fr); }
  .schedule-review-shift-fields label:first-child { grid-column: 1; }
  .schedule-review-diff > div { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .schedule-review-diff > div > span { grid-column: 1 / -1; }
}

@media print {
  body.schedule-review-printing { background: #fff !important; }
  body.schedule-review-printing > *:not(.schedule-review-print-sheet) { display: none !important; }
  body.schedule-review-printing > .schedule-review-print-sheet { display: block !important; width: 100%; color: #111; background: #fff; }
  .schedule-review-print-sheet header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12mm; border-bottom: .7mm solid #00704a; padding-bottom: 4mm; }
  .schedule-review-print-sheet header p { margin: 0; color: #00704a; font-size: 9pt; font-weight: 800; }
  .schedule-review-print-sheet header h1 { margin: 1mm 0 2mm; font-size: 20pt; }
  .schedule-review-print-sheet header > div:last-child { font-size: 9pt; text-align: right; }
  .schedule-review-print-notice { margin-top: 4mm; border: .25mm solid #d6b14a; border-left: 1mm solid #b47e00; padding: 2.5mm 3mm; font-size: 8.5pt; }
  .schedule-review-print-notice p { margin: 1mm 0 0; line-height: 1.35; white-space: pre-wrap; }
  .schedule-review-print-day-notes, .schedule-review-print-partner-note { margin-top: 3mm; break-inside: avoid; border: .25mm solid #ccc; border-radius: 1mm; padding: 2.5mm 3mm; font-size: 8.5pt; }
  .schedule-review-print-day-notes > strong, .schedule-review-print-partner-note > strong { display: block; margin-bottom: 1mm; }
  .schedule-review-print-day-notes p { display: grid; grid-template-columns: 30mm minmax(0, 1fr); gap: 3mm; margin: 0; border-top: .2mm solid #ddd; padding: 1.2mm 0; }
  .schedule-review-print-day-notes time { font-weight: 800; }
  .schedule-review-print-partner-note p { margin: 0; line-height: 1.35; white-space: pre-wrap; }
  .schedule-review-print-list { margin-top: 5mm; }
  .schedule-review-print-list article { display: grid; grid-template-columns: 37mm minmax(0, 1fr) 31mm; gap: 5mm; break-inside: avoid; border-bottom: .25mm solid #ccc; padding: 3mm 0; }
  .schedule-review-print-list article > div:first-child { display: grid; align-content: start; gap: 1mm; }
  .schedule-review-print-list time { color: #00704a; font-size: 12pt; font-weight: 850; }
  .schedule-review-print-list h2 { margin: 0 0 1.5mm; font-size: 13pt; }
  .schedule-review-print-list p { margin: 0; font-size: 9pt; }
  .schedule-review-print-question { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3mm; margin-top: 1.2mm !important; border-top: .2mm solid #ddd; padding-top: 1.2mm; }
  .schedule-review-print-list article > span { color: #333; font-size: 8pt; font-weight: 800; text-align: right; }
  .schedule-review-print-list article > span.confirmed { color: #07553b; }
  .schedule-review-print-list article > span.changed { color: #07567a; }
  .schedule-review-print-list article > span.rejected { color: #a30d16; }
  .schedule-review-print-sheet footer { margin-top: 5mm; border-top: .25mm solid #ccc; padding-top: 2mm; color: #666; font-size: 7.5pt; text-align: right; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

.page { width: min(1480px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0; }
.page.narrow { max-width: 720px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.top-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.theme-control { display: grid; min-width: 88px; gap: 1px; margin: 0; font-weight: 650; }
.theme-control > span { color: var(--muted); font-size: 9px; line-height: 1; text-align: left; }
.theme-control select { min-height: 36px; margin: 0; padding: 6px 24px 6px 8px; font-size: 12px; }
.top-card.has-install-action { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.top-card.has-install-action > div:first-child { min-width: 0; justify-self: start; }
.top-card.has-install-action .top-actions { min-width: 0; justify-self: end; }
.public-install-entry {
  display: grid;
  min-width: 166px;
  min-height: 46px;
  align-content: center;
  justify-items: center;
  gap: 1px;
  border: 1px solid #a9dac8;
  border-radius: 9px;
  background: #f5fcf9;
  padding: 6px 12px;
  color: #07553b;
  line-height: 1.12;
  text-align: center;
}
.public-install-entry:hover { border-color: #72caae; background: var(--green-soft); }
.public-install-entry:focus-visible { outline: 3px solid #8bd4f4; outline-offset: 2px; }
.public-install-entry strong { font-size: 14px; font-weight: 850; }
.public-install-entry small { color: #4f6d62; font-size: 10.5px; font-weight: 650; }
.eyebrow { color: var(--green); margin: 0 0 8px; font-size: 14px; font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 34px); }
h3 { font-size: 21px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.notice { margin: 12px 0; border-radius: 8px; padding: 12px; border: 1px solid var(--line); }
.notice.ok { border-color: #7de4bd; background: var(--green-soft); color: #064934; }
.notice.danger { border-color: #ffb8be; background: var(--red-soft); color: var(--red); }
.notice.warn { border-color: #ffe08a; background: var(--amber-soft); color: var(--amber); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.scroll-toolbar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
.calendar-tools-card { padding: 12px 14px; }
.calendar-quickbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calendar-quickbar .calendar-tool { display: flex; width: 100%; min-width: 0; min-height: 44px; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; line-height: 1.12; text-align: center; white-space: nowrap; }
.calendar-tool .label-short { display: none; }
.calendar-tool-count { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 999px; background: #fff; padding: 0 5px; font-size: 11px; font-weight: 850; }
.filter-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .35fr) auto; gap: 9px; align-items: stretch; margin-top: 10px; }
.public-filter-group { display: grid; min-width: 0; gap: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 9px 10px; }
.public-filter-group > strong { font-size: 13px; }
.public-filter-group > small { color: var(--muted); font-size: 10.5px; }
.public-filter-chip-list { display: flex; min-width: 0; gap: 7px; align-items: stretch; flex-wrap: wrap; }
.public-filter-group .scroll-toolbar { padding-bottom: 2px; }
.public-status-filter-group { border-color: #e4c86d; background: #fffdf6; }
.public-filter-reset { min-height: 44px; align-self: end; }
.filter-toggle { font-weight: 750; text-align: left; }
.filter-toggle.active { border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; }
.btn, button, .chip { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 10px 14px; color: #111; }
.primary { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.blue { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.print-launch { border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; font-weight: 750; }
.jump-launch { border-color: #a9dac8; color: #07553b; font-weight: 700; }
.danger { border-color: #ffb8be; background: #fff; color: var(--red); font-weight: 700; }
.chip.active { border-color: #48bdeb; background: var(--blue-soft); color: #07567a; }
.chip.cancel-filter.active { border-color: #ff9fa8; background: var(--red-soft); color: var(--red); }
.chip.draft { border-color: var(--line); background: #fff; color: #111; }
.chip.draft.active { border-color: #48bdeb; background: var(--blue-soft); color: #07567a; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.segmented button { border: 0; border-radius: 0; }
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button.active { background: var(--blue-soft); color: #07567a; font-weight: 750; }
.print-option-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 16px 0 4px; }

.calendar-shell { margin-top: 18px; max-height: calc(100vh - 230px); overflow: auto; padding-right: 4px; }
.month { margin: 26px 0 12px; font-size: 26px; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 14px; }
.event-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 142px; gap: 14px; min-height: 210px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 18px; box-shadow: 0 2px 9px rgba(0,0,0,.08); }
.event-card > div:first-child { min-width: 0; }
.event-card.focus { border-color: #72edbf; box-shadow: 0 0 0 3px #c9fbe8, 0 2px 9px rgba(0,0,0,.08); }
.event-card.filter-focus { border-color: #38bdf8; box-shadow: 0 0 0 3px #dff5ff, 0 2px 9px rgba(0,0,0,.08); }
.event-date { font-weight: 800; font-size: 20px; }
.event-time { color: var(--muted); margin-top: 2px; }
.event-title { margin-top: 18px; font-size: 23px; font-weight: 850; overflow-wrap: anywhere; hyphens: auto; }
.event-title.title-long { font-size: 21px; }
.event-title.title-compact { font-size: 19px; }
.event-meta { margin-top: 12px; color: #575757; font-size: 20px; }
.event-disciplines { margin-top: 12px; color: var(--muted); line-height: 1.35; }
.event-count { margin-top: 12px; color: var(--muted); font-size: 18px; }
.event-actions { display: flex; width: 142px; min-width: 0; flex-direction: column; align-items: stretch; gap: 10px; }
.event-actions > * { max-width: 100%; }
.action-main { width: 100%; border-color: #94eacb; background: var(--green-soft); color: #004c35; font-size: 17px; }
.event-cancelled-banner { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; border: 1px solid #ff9fa8; border-radius: 7px; background: var(--red-soft); padding: 9px 7px; color: var(--red); font-size: 17px; font-weight: 900; letter-spacing: .02em; text-align: center; pointer-events: none; user-select: none; -webkit-user-select: none; }
.event-ended-banner { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; background: #f5f5f5; padding: 9px 7px; color: var(--muted); font-size: 17px; font-weight: 700; text-align: center; pointer-events: none; user-select: none; -webkit-user-select: none; }
.action-full, .action-full:disabled { border-color: #ffb8be; background: var(--red-soft); color: var(--red); font-weight: 850; opacity: 1; cursor: not-allowed; }
.event-share-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; align-items: stretch; }
.event-share-actions.open { grid-template-columns: minmax(0, 1fr) 42px; }
.share { width: 100%; min-height: 42px; padding: 8px 9px; color: #666; }
.share.active { border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; font-weight: 750; }
.event-share-qr { width: 42px; height: 42px; overflow: hidden; border-color: #8bd4f4; padding: 2px; background: #fff; }
.event-share-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.badge { display: inline-block; border-radius: 7px; padding: 7px 10px; font-size: 13px; font-weight: 800; text-align: center; white-space: normal; }
.badge.next { background: var(--green); color: #fff; }
.badge.filter { background: var(--blue-soft); color: #07567a; border: 1px solid #b4e8ff; }
.badge.red { background: var(--red-soft); color: var(--red); border: 1px solid #ffc0c5; }
.badge.green { background: var(--green-soft); color: #064934; border: 1px solid #8ceac4; }
.badge.blue-badge { background: var(--blue-soft); color: #07567a; border: 1px solid #8bd4f4; }
.badge.announcement { width: 100%; border: 1px solid #8bd4f4; background: var(--blue-soft); color: #07567a; }
.round-series-link { display: inline-flex; margin: 8px 0 0; border: 1px solid #8bd4f4; background: var(--blue-soft); color: #07567a; padding: 5px 8px; font-size: 12px; font-weight: 750; text-align: left; }
.round-series-notice { border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; }
.round-series-dates { display: grid; gap: 7px; max-height: 52vh; margin: 14px 0; overflow: auto; }
.round-series-date { display: grid; grid-template-columns: 28px minmax(170px, 1fr) minmax(110px, auto) minmax(74px, auto); gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; }
.round-series-date.current { border-color: #8bd4f4; background: var(--blue-soft); }
.round-series-date.ended { color: var(--muted); background: #f6f6f6; }
.round-series-date.cancelled { border-color: #ffb8be; background: var(--red-soft); color: var(--red); }
.round-series-admin { border: 1px solid #8bd4f4; background: var(--blue-soft); color: #07567a; }
.event-series-link, .event-series-admin, .event-series-notice { border-color: #a8d9c7; background: var(--green-soft); color: #07553b; }
.competition-days-link, .competition-day-admin, .competition-days-notice { border-color: #d6b45c; background: var(--amber-soft); color: var(--amber); }
.series-modal-actions { display: flex; justify-content: flex-end; }
.badge.draft { background: var(--amber-soft); color: var(--amber); border: 1px solid #e8bd49; }
.badge.locked { border: 1px solid #d5d5d5; background: #f4f4f4; color: #555; }
.admin-event-topline { display: flex; min-height: 30px; align-items: flex-start; justify-content: space-between; gap: 8px; }
.admin-event-topline .eyebrow { margin-bottom: 0; }
.admin-event-date-line { display: grid; min-width: 0; gap: 2px; }
.admin-event-date-line small { font-size: 11.5px; font-weight: 750; line-height: 1.2; }
.admin-event-topline .badge { flex: 0 0 auto; padding: 5px 7px; font-size: 11px; }
.admin-event-statuses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.admin-event-statuses .badge { display: flex; width: 100%; min-width: 0; min-height: 44px; align-items: center; justify-content: center; padding: 6px 4px; font-size: 11.5px; line-height: 1.12; overflow-wrap: anywhere; }
.status-label-short { display: none; }
.admin-status-toggle { cursor: pointer; touch-action: manipulation; user-select: none; transition: filter .15s ease, box-shadow .15s ease; }
.admin-status-toggle:hover { filter: brightness(.95); box-shadow: 0 0 0 2px rgba(0, 112, 74, .13); }
.admin-status-toggle:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.admin-status-toggle[data-tap-armed="true"] { box-shadow: 0 0 0 3px #38bdf8; filter: brightness(.96); }
.admin-status-toggle[data-busy="true"] { cursor: wait; opacity: .55; }
.weapon-box { width: 100%; border: 1px solid #76e8bf; background: var(--green-soft); color: #07553b; border-radius: 9px; padding: 9px; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
.weapon-box.pending { border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; }
.weapon-box.declined-only { border-color: #ffb8be; background: var(--red-soft); color: var(--red); }
.weapon-box .pending { color: #07567a; }
.weapon-box .confirmed { color: #07553b; }
.weapon-box .declined { color: var(--red); }
.comment-section { grid-column: 1 / -1; min-width: 0; margin-top: 10px; }
.comment-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.comment-heading h4 { margin: 0; font-size: 14px; }
.comment-heading span { display: inline-flex; min-width: 25px; height: 25px; align-items: center; justify-content: center; border-radius: 999px; background: var(--blue-soft); color: #07567a; font-size: 12px; font-weight: 850; }
.comment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 2px 5px 2px 0; }
.comment-list:focus-visible { border-radius: 8px; outline: 3px solid #38bdf8; outline-offset: 2px; }
.comment-pill { width: 100%; min-width: 0; border: 0; background: #f6f6f6; padding: 8px 10px; border-radius: 8px; text-align: left; overflow-wrap: anywhere; }
.comment-pill strong { display: block; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 24px; z-index: 50; }
.modal { width: min(860px, 100%); background: #fff; border-radius: 12px; padding: 22px; margin: auto 0; box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.modal.large { width: min(1120px, 100%); }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.privacy-modal { max-width: 760px; }
.privacy-text { white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.technical-storage-notice { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.technical-storage-notice h3 { margin-bottom: 8px; font-size: 18px; }
.technical-storage-notice p { margin: 8px 0; color: #4f5955; font-size: 13px; line-height: 1.5; }
.app-dialog { width: min(540px, 100%); }
.app-dialog-backdrop { z-index: 90; }
.app-dialog-message { line-height: 1.5; overflow-wrap: anywhere; }
.app-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.app-dialog-actions .danger { border-color: var(--red); background: var(--red); color: #fff; }
.share-viewer-main { display: grid; grid-template-columns: minmax(210px, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.share-large-qr { width: 100%; max-width: 320px; aspect-ratio: 1; padding: 8px; background: #fff; border-color: #8bd4f4; transition: max-width .2s ease; }
.share-large-qr.expanded { max-width: 560px; grid-column: 1 / -1; }
.share-large-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.share-viewer-info h3 { margin-bottom: 14px; }
.share-event-facts { margin: 0; }
.share-event-facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.share-event-facts dt { color: #666; font-weight: 750; }
.share-event-facts dd { margin: 0; overflow-wrap: anywhere; }
.share-print-options { display: grid; gap: 8px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.compact-choice { margin: 0; padding: 8px 10px; font-size: 14px; }
.share-print-options .primary { justify-self: end; margin-top: 6px; }
.share-plan-section { margin-top: 12mm; }
.share-plan-section > h2 { margin-bottom: 5mm; }
.share-plan-row { break-inside: avoid; border: .25mm solid #ccc; border-radius: 1.5mm; margin-bottom: 3mm; padding: 3mm; }
.share-plan-row h3 { margin-bottom: 2mm; font-size: 12pt; }
.share-plan-row ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3mm 4mm; margin: 0; padding: 0; list-style: none; }
.share-plan-row li { display: grid; grid-template-columns: 24mm minmax(0, 1fr); gap: 2mm; font-size: 8.5pt; }
.share-plan-row li.empty span { min-height: 1em; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
label { display: block; font-weight: 700; margin: 10px 0; }
input, select, textarea { width: 100%; border: 1px solid #ccc; border-radius: 7px; padding: 11px 12px; background: #fff; color: #111; }
textarea { min-height: 92px; resize: vertical; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.field-guide { color: var(--muted); font-size: 12px; font-weight: 600; }
.field-attention { border-color: #d96b72 !important; box-shadow: 0 0 0 2px rgba(163,13,22,.1) !important; }
.choice-list { display: grid; gap: 9px; margin: 10px 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.choice.disabled { color: #666; background: #f3f3f3; }
.choice.disabled input { pointer-events: none; }
.choice input { width: auto; margin-top: 4px; }
.registration-capacity-notice { margin-bottom: 14px; }
.discipline-capacity-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.discipline-capacity-choice.capacity-full { border-color: #f2b3b8; background: #fff7f7; }
.discipline-capacity-copy { display: grid; min-width: 0; gap: 3px; }
.discipline-capacity-copy strong { overflow-wrap: anywhere; }
.discipline-capacity-status { display: block; font-size: 12px; font-weight: 650; }
.discipline-capacity-status.unlimited { color: #52615b; }
.discipline-capacity-status.available { color: #07553b; }
.discipline-capacity-status.low { color: var(--amber); }
.discipline-capacity-status.full { color: var(--red); }
.discipline-capacity-status.grandfathered { color: #07567a; }
.discipline-capacity-badge { display: inline-flex; min-height: 28px; align-items: center; justify-content: center; border: 1px solid; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.discipline-capacity-badge.unlimited { border-color: #c8d2ce; background: #f6f8f7; color: #52615b; }
.discipline-capacity-badge.available { border-color: #8ceac4; background: var(--green-soft); color: #07553b; }
.discipline-capacity-badge.low { border-color: #e8bd49; background: var(--amber-soft); color: var(--amber); }
.discipline-capacity-badge.full { border-color: #ffb8be; background: var(--red-soft); color: var(--red); }
.discipline-capacity-badge.grandfathered { border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 9px; text-align: left; vertical-align: top; }
.table th { background: #f7f7f7; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-card { border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: #fff; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.device-config { margin: 14px 0; background: #f8faf9; }
.device-config-list { display: grid; gap: 8px; margin: 12px 0; }
.device-config-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.device-config-row .btn { width: 42px; padding: 10px; color: var(--red); font-weight: 800; }
.discipline-limit-editor { margin: 14px 0; background: #f8faf9; }
.discipline-limit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.discipline-limit-heading p { margin: 4px 0 0; }
.discipline-limit-heading .badge.unlimited { border: 1px solid #c8d2ce; background: #fff; color: #52615b; }
.discipline-limit-list { display: grid; gap: 8px; margin-top: 12px; }
.discipline-limit-empty { margin: 0; border: 1px dashed var(--line); border-radius: 8px; background: #fff; padding: 12px; }
.discipline-limit-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 190px); gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 12px; }
.discipline-limit-row.overbooked { border-color: #ffb8be; background: var(--red-soft); }
.discipline-limit-name { display: grid; min-width: 0; gap: 3px; }
.discipline-limit-name strong { overflow-wrap: anywhere; }
.discipline-limit-name small { color: var(--muted); font-size: 12px; }
.discipline-limit-row.overbooked .discipline-limit-name small { color: var(--red); font-weight: 700; }
.discipline-limit-row label { display: grid; min-width: 0; gap: 4px; font-size: 12px; font-weight: 750; }
.discipline-limit-row input { min-width: 0; background: #fff; }
.category-admin { margin-top: 14px; background: #f8faf9; }
.category-admin-list { display: grid; gap: 8px; margin-top: 12px; }
.category-admin-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 9px 10px; }
.category-admin-row.inactive { background: #f4f4f4; color: #555; }
.category-admin-copy { display: grid; min-width: 0; gap: 3px; }
.category-admin-copy strong { overflow-wrap: anywhere; }
.category-admin-copy small { color: var(--muted); }
.category-order-actions { display: flex; gap: 5px; }
.category-order-actions .btn { width: 40px; min-height: 40px; padding: 7px; }
.category-editor-modal { max-width: 620px; }
.category-editor-modal .modal-head h2 { font-size: clamp(21px, 3vw, 26px); }
.category-editor-modal .modal-head .eyebrow { margin-bottom: 3px; }
.category-editor-modal label { font-size: 14px; }
.category-editor-modal .choice > span { display: grid; min-width: 0; gap: 4px; }
.category-editor-modal .choice strong { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.category-editor-modal .choice small { display: block; font-size: 13px; line-height: 1.4; font-weight: 500; }
.category-editor-modal input, .category-editor-modal select { font-size: 16px; }

.settings-admin { display: grid; gap: 10px; }
.settings-admin-heading { margin-bottom: 3px; }
.settings-admin-heading p { margin: 4px 0 0; }
.settings-panel { border: 1px solid var(--line); border-radius: 10px; background: #f8faf9; overflow: hidden; }
.settings-panel > summary { list-style: none; }
.settings-panel > summary::-webkit-details-marker { display: none; }
.settings-panel-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 62px; padding: 12px 14px; cursor: pointer; }
.settings-panel-summary span:first-child { min-width: 0; }
.settings-panel-summary strong, .settings-panel-summary small { display: block; }
.settings-panel-summary strong { font-size: 18px; }
.settings-panel-summary small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.settings-panel-summary:focus-visible { outline: 3px solid #38bdf8; outline-offset: -3px; }
.settings-panel-chevron { width: 11px; height: 11px; border-right: 2px solid #46504c; border-bottom: 2px solid #46504c; transform: rotate(225deg); transition: transform .16s ease; }
.settings-panel:not([open]) .settings-panel-chevron { transform: rotate(45deg); }
.settings-panel-body { display: grid; gap: 12px; border-top: 1px solid var(--line); padding: 16px; }
.settings-panel-body > :first-child { margin-top: 0; }
.settings-panel .category-admin { margin: 0; border: 0; padding: 0; background: transparent; }
.settings-panel.danger { border-color: #f0b6bb; background: #fffafa; }
.settings-panel.danger .settings-panel-summary strong { color: var(--red); }
.user-admin { display: grid; gap: 12px; }
.user-admin-list { margin: 0; }
.user-admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; }
.user-admin-row.inactive { background: #f4f4f4; }
.user-admin-row > div:first-child { min-width: 0; }
.user-admin-row strong { overflow-wrap: anywhere; }
.user-admin-row p { margin: 3px 0 0; color: var(--muted); }
.user-admin-actions { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.user-admin-actions button { min-height: 44px; }

.event-editor-modal { max-width: 1060px; max-height: calc(100dvh - 48px); overflow: auto; }
.event-editor-modal form { display: grid; gap: 14px; }
.event-editor-modal-head { position: sticky; z-index: 5; top: -22px; margin: -22px -22px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); padding: 18px 22px 12px; }
.event-editor-modal-head > div:first-child { min-width: 0; }
.event-editor-head-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.event-editor-head-actions button { min-height: 44px; }
.event-editor-section { border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; overflow: hidden; }
.event-editor-section > summary { list-style: none; }
.event-editor-section > summary::-webkit-details-marker { display: none; }
.event-editor-section-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: flex-start; min-height: 54px; margin: 0; padding: 15px; cursor: pointer; }
.event-editor-section-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.event-editor-section-head:focus-visible { outline: 3px solid #38bdf8; outline-offset: -3px; }
.event-editor-section-body { border-top: 1px solid var(--line); padding: 13px 15px 15px; }
.event-editor-chevron { width: 11px; height: 11px; align-self: center; border-right: 2px solid #46504c; border-bottom: 2px solid #46504c; transform: rotate(225deg); transition: transform .16s ease; }
.event-editor-section:not([open]) .event-editor-chevron { transform: rotate(45deg); }
.event-editor-step { display: inline-flex; width: 28px; height: 28px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; font-weight: 850; }
.event-editor-base-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; align-items: end; }
.event-editor-base-grid label, .event-editor-compact-grid label { min-width: 0; }
.event-title-field { grid-column: span 2; }
.event-date-position { display: block; min-height: 1.3em; margin-top: 4px; font-size: 12px; font-weight: 650; line-height: 1.3; }
.event-time-range { display: grid; grid-column: span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; align-items: end; min-width: 0; }
.event-time-range > strong, .event-time-range-help, .event-time-legacy { grid-column: 1 / -1; }
.event-time-range > strong { font-size: 14px; }
.event-time-range label { margin: 0; }
.event-time-range input[type="time"] { min-height: 44px; font-size: 16px; }
.event-time-range-help { color: var(--muted); font-size: 12px; }
.event-time-legacy { display: grid; gap: 3px; margin-top: 4px; border: 1px solid #e0bd59; border-radius: 8px; background: var(--amber-soft); padding: 9px 10px; color: #4f3600; }
.event-time-legacy output { overflow-wrap: anywhere; font-weight: 800; white-space: pre-wrap; }
.event-time-legacy small { line-height: 1.35; }
.event-preset-feedback { grid-column: 1 / -1; margin: 4px 0; }
.event-extra-filter-details { grid-column: 1 / -1; min-width: 0; margin: 4px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.event-extra-filter-details > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 52px; padding: 9px 11px; cursor: pointer; list-style: none; }
.event-extra-filter-details > summary::-webkit-details-marker { display: none; }
.event-extra-filter-details > summary:focus-visible { outline: 3px solid #38bdf8; outline-offset: -3px; }
.event-extra-filter-details > summary > span:first-child { display: grid; min-width: 0; gap: 2px; }
.event-extra-filter-details > summary small { color: var(--muted); font-size: 12px; font-weight: 500; }
.event-extra-filter-details[open] > summary .plan-panel-chevron { transform: rotate(225deg); }
.event-extra-filter-body { border-top: 1px solid var(--line); padding: 10px; }
.event-filter-choice-list { display: flex; min-width: 0; gap: 6px; flex-wrap: wrap; }
.event-filter-choice { display: inline-flex; max-width: min(100%, 320px); min-width: 0; gap: 7px; align-items: flex-start; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 7px 10px; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.event-filter-choice span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.event-filter-choice:has(input:checked) { border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; }
.event-filter-choice input { width: auto; margin: 0; }
.event-extra-filter-empty { margin: 0; }
.event-kind-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.event-kind-choice { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; margin: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 11px; cursor: pointer; }
.event-kind-choice:has(input:checked) { border-color: #76d8b5; background: var(--green-soft); box-shadow: 0 0 0 1px #76d8b5; }
.event-kind-choice input { width: auto; margin: 3px 0 0; }
.event-kind-choice span { display: grid; min-width: 0; gap: 3px; }
.event-kind-choice strong { overflow-wrap: anywhere; }
.event-kind-choice small { color: var(--muted); font-weight: 500; line-height: 1.3; }
.event-registration-fields, .event-sport-fields { margin-top: 13px; }
.event-editor-compact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.event-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.event-option-grid > [data-simple-option], .event-option-grid > [data-sport-option], .event-option-grid > [data-registration-option] { min-width: 0; }
.event-option { display: grid; height: 100%; min-width: 0; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px; }
.event-option input { width: auto; margin: 3px 0 0; }
.event-option span { display: grid; min-width: 0; gap: 2px; }
.event-option strong { overflow-wrap: anywhere; }
.event-option small { color: var(--muted); font-weight: 500; line-height: 1.3; }
.event-series-options { display: grid; gap: 9px; margin-top: 13px; border-top: 1px dashed var(--line); padding-top: 13px; }
.event-series-options-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 12px; }
.event-series-options-heading h4, .event-series-options-heading p { margin: 0; }
.event-series-options-heading p { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.event-series-editor-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.event-series-editor-card.active { border-color: #76d8b5; box-shadow: 0 0 0 1px #76d8b5; }
.event-series-editor-card[data-series-card="competition"].active { border-color: #d6b45c; box-shadow: 0 0 0 1px #d6b45c; }
.event-series-toggle { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; padding: 12px; cursor: pointer; }
.event-series-toggle input { width: auto; margin: 3px 0 0; }
.event-series-toggle span { display: grid; min-width: 0; gap: 3px; }
.event-series-toggle strong { overflow-wrap: anywhere; }
.event-series-toggle small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.event-series-editor-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; border-top: 1px solid var(--line); background: #f8faf9; padding: 12px; }
.event-series-editor-panel > label { min-width: 0; margin: 0; }
.event-series-editor-panel > .notice { grid-column: 1 / -1; margin: 0; }
.competition-days-editor { grid-template-columns: minmax(0, 1fr); }
.competition-days-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.competition-days-heading > div { display: grid; min-width: 0; gap: 2px; }
.competition-days-heading small { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.3; }
.competition-days-heading .btn { flex: 0 0 auto; min-height: 42px; }
.competition-day-editor-list { display: grid; gap: 7px; }
.competition-day-editor-row { display: grid; grid-template-columns: 30px minmax(150px, 1.3fr) minmax(110px, .8fr) minmax(110px, .8fr) minmax(86px, auto); gap: 8px; align-items: end; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 9px; }
.competition-day-editor-row > label { min-width: 0; margin: 0; font-size: 12px; }
.competition-day-editor-row input { min-width: 0; min-height: 42px; }
.competition-day-number { display: inline-flex; width: 28px; height: 28px; align-self: center; align-items: center; justify-content: center; border-radius: 50%; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 850; }
.competition-primary-label { align-self: center; color: var(--muted); font-size: 12px; font-weight: 750; text-align: center; }
.competition-day-remove { min-height: 42px; padding: 7px 9px; font-size: 12px; }
.event-secondary-actions { overflow: hidden; border: 1px solid #d5ddda; border-radius: 10px; background: #f8faf9; }
.event-secondary-actions > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px; padding: 11px 14px; cursor: pointer; list-style: none; }
.event-secondary-actions > summary::-webkit-details-marker { display: none; }
.event-secondary-actions > summary:focus-visible { outline: 3px solid #38bdf8; outline-offset: -3px; }
.event-secondary-actions > summary > span:first-child { display: grid; min-width: 0; gap: 2px; }
.event-secondary-actions > summary small { color: var(--muted); font-size: 12px; font-weight: 500; }
.event-secondary-actions[open] > summary .plan-panel-chevron { transform: rotate(225deg); }
.event-secondary-actions-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; border-top: 1px solid var(--line); padding: 12px; }
.event-secondary-action { display: grid; min-width: 0; align-content: start; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 11px; }
.event-secondary-action h4, .event-secondary-action p { margin: 0; }
.event-secondary-action p { color: var(--muted); font-size: 12px; line-height: 1.4; }
.event-secondary-action label { margin: 0; }
.event-secondary-action > button { width: 100%; min-height: 44px; align-self: end; }
.event-secondary-action.danger-zone { border-color: #ffb8be; background: #fffafa; }
.event-secondary-confirm { display: grid; gap: 7px; border-top: 1px dashed var(--line); padding-top: 9px; }
.event-secondary-confirm p { color: var(--text); }
.event-secondary-confirm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.event-secondary-confirm-actions button { min-width: 0; min-height: 42px; padding: 7px 5px; font-size: 12px; }
.event-secondary-feedback { grid-column: 1 / -1; margin: 0; }
.admin-calendar-filter-panel { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; }
.admin-calendar-view-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-calendar-view-heading h2, .admin-calendar-view-heading p { margin: 0; }
.admin-calendar-view-heading p { margin-top: 4px; }
.admin-calendar-view-switch { display: inline-grid; flex: 0 0 auto; grid-template-columns: repeat(3, minmax(112px, 1fr)); gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: #f2f5f4; padding: 4px; }
.admin-calendar-view-switch button { min-height: 42px; border: 0; border-radius: 7px; background: transparent; padding: 7px 12px; color: #4c5b56; font-weight: 750; cursor: pointer; }
.admin-calendar-view-switch button.active { background: #fff; color: var(--green); box-shadow: 0 1px 5px rgba(9, 46, 34, .14); }
.admin-calendar-view-switch button:focus-visible { outline: 3px solid #38bdf8; outline-offset: 1px; }
.admin-calendar-filter-panel > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 52px; padding: 10px 12px; cursor: pointer; list-style: none; }
.admin-calendar-filter-panel > summary::-webkit-details-marker { display: none; }
.admin-calendar-filter-panel > summary:focus-visible { outline: 3px solid #38bdf8; outline-offset: -3px; }
.admin-calendar-filter-copy { display: grid; min-width: 0; gap: 2px; }
.admin-calendar-filter-copy small { color: var(--muted); font-size: 12px; font-weight: 500; }
.admin-calendar-filter-panel[open] > summary .plan-panel-chevron { transform: rotate(225deg); }
.admin-calendar-filter-options { display: grid; gap: 9px; margin: 0; border-top: 1px solid var(--line); padding: 10px 12px 12px; }
.admin-filter-group { display: grid; min-width: 0; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px; }
.admin-status-filter-group { border-color: #e4c86d; background: #fffdf6; }
.admin-filter-group-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.admin-filter-group-heading > div { display: grid; min-width: 0; gap: 2px; }
.admin-filter-group-heading strong { font-size: 14px; }
.admin-filter-group-heading small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.3; }
.admin-filter-chip-list { display: flex; min-width: 0; gap: 7px; align-items: stretch; flex-wrap: wrap; }
.admin-filter-chip-list > .chip { min-width: 0; min-height: 44px; max-width: 100%; padding: 8px 11px; overflow-wrap: anywhere; white-space: normal; }
.admin-location-all { flex: 0 1 auto; min-height: 44px; padding: 8px 11px; font-size: 12px; font-weight: 750; white-space: normal; }
.admin-location-all.active { border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; }
.admin-location-empty { margin: 0; }
.admin-date-filter-fields { display: grid; grid-template-columns: minmax(170px, 230px) minmax(170px, 230px) minmax(0, 1fr); gap: 9px; align-items: end; }
.admin-date-filter-fields label { display: grid; min-width: 0; gap: 5px; margin: 0; color: #34443e; font-size: 12px; font-weight: 750; }
.admin-date-filter-fields input { width: 100%; min-width: 0; min-height: 44px; margin: 0; }
.admin-date-presets { display: flex; min-width: 0; gap: 7px; align-items: stretch; justify-content: flex-end; flex-wrap: wrap; }
.admin-date-presets .btn, .admin-date-clear { min-height: 44px; padding: 8px 11px; font-size: 12px; }
.admin-date-clear { flex: 0 0 auto; }
.admin-filter-reset { display: flex; min-width: 0; justify-content: flex-end; border-top: 1px dashed var(--line); padding-top: 9px; }
.admin-filter-reset .btn { min-height: 44px; }
.admin-bulk-panel { display: grid; gap: 10px; border-top: 1px solid var(--line); background: #fff; padding: 12px; }
.admin-bulk-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-bulk-heading > div { display: grid; min-width: 0; gap: 2px; }
.admin-bulk-heading small { color: var(--muted); font-size: 12px; font-weight: 500; }
.admin-bulk-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.admin-bulk-action { min-height: 44px; border-color: #a9d8ee; background: var(--blue-soft); color: #07567a; font-size: 13px; font-weight: 750; }
.admin-bulk-selection-tools { display: flex; gap: 7px; flex-wrap: wrap; }
.admin-bulk-selection-tools .btn { min-height: 42px; }
.admin-bulk-panel > p { margin: 0; }
.admin-event-topline-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.admin-event-select { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; margin: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 5px 7px; font-size: 11px; cursor: pointer; }
.admin-event-select input { width: 18px; height: 18px; margin: 0; }
.admin-calendar-card.bulk-selected { border-color: #48bdeb; box-shadow: 0 0 0 2px #dff5ff; }
.admin-bulk-preview-modal { width: min(780px, 100%); max-height: calc(100dvh - 40px); overflow: auto; }
.admin-bulk-preview-modal .modal-head p:last-child { margin: 4px 0 0; }
.admin-bulk-preview-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.admin-bulk-preview-counts span { display: grid; min-height: 64px; place-content: center; border: 1px solid var(--line); border-radius: 8px; background: #f8faf9; text-align: center; }
.admin-bulk-preview-counts strong, .admin-bulk-preview-counts small { display: block; }
.admin-bulk-preview-counts strong { font-size: 21px; }
.admin-bulk-preview-counts small { color: var(--muted); font-size: 11px; }
.admin-bulk-preview-counts .eligible { border-color: #8fd7bc; background: var(--green-soft); color: #064934; }
.admin-bulk-preview-counts .blocked { border-color: #ffb8be; background: var(--red-soft); color: var(--red); }
.admin-bulk-preview-list { display: grid; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; }
.admin-bulk-preview-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 11px; }
.admin-bulk-preview-item:last-child { border-bottom: 0; }
.admin-bulk-preview-item > div { display: grid; min-width: 0; gap: 3px; }
.admin-bulk-preview-item strong, .admin-bulk-preview-item small { overflow-wrap: anywhere; }
.admin-bulk-preview-item small { color: var(--muted); }
.admin-bulk-preview-item.blocked { background: #fffafa; }
.admin-bulk-preview-item.noop { background: #f8faf9; }
.loan-weapons-notice { margin: 12px 0; }
.loan-event-list { display: grid; max-height: min(58vh, 720px); gap: 10px; margin-top: 14px; overflow-y: auto; padding-right: 3px; }
.loan-request-section { margin-top: 16px; }
.loan-event-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 16px; align-items: start; }
.loan-event-card.ended { opacity: .72; }
.loan-event-main h3 { margin-bottom: 9px; }
.loan-event-main p { margin: 0 0 5px; }
.loan-event-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.loan-event-controls { display: grid; gap: 9px; }
.loan-event-controls > button { justify-self: stretch; }
.loan-device-blocker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.loan-device-blocker select, .loan-device-blocker button { margin: 0; }
.loan-blocked-devices { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 7px; background: #f8f8f8; padding: 8px; }
.loan-blocked-device { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.loan-blocked-device span { min-width: 0; overflow-wrap: anywhere; }
.loan-small-action { flex: 0 0 auto; padding: 6px 8px; font-size: 12px; }
.admin-calendar-card { border: 1px solid var(--line); border-radius: 9px; padding: 13px; }
.admin-calendar-card.focus { border-color: var(--green); box-shadow: 0 0 0 2px #c9fbe8; }
.admin-calendar-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.admin-planner-card { padding: 0; overflow: hidden; }
.admin-planner-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px; }
.admin-planner-heading h2, .admin-planner-heading p { margin: 0; }
.admin-planner-heading > div:first-child { display: grid; min-width: 0; gap: 4px; }
.admin-planner-month-tools { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 6px; }
.admin-planner-month-tools > button { min-width: 44px; min-height: 44px; padding: 7px 10px; }
.admin-planner-month-tools > button:first-child, .admin-planner-month-tools > button:nth-child(3) { font-size: 25px; line-height: 1; }
.admin-planner-month-tools label { display: grid; gap: 3px; margin: 0; }
.admin-planner-month-tools label span { color: var(--muted); font-size: 11px; font-weight: 750; }
.admin-planner-month-tools input { min-width: 150px; height: 44px; margin: 0; padding: 7px 9px; }
.admin-planner-selection { display: flex; height: 74px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8faf9; padding: 9px 18px; overflow: hidden; }
.admin-planner-selection.active { border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; }
.admin-planner-selection > div:first-child { display: grid; min-width: 0; max-height: 100%; gap: 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.admin-planner-selection small { color: inherit; }
.admin-planner-selection .btn { flex: 0 0 auto; min-height: 38px; }
.admin-planner-selection-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.admin-planner-selection-actions .btn { white-space: nowrap; }
.admin-planner-selection-placeholder { visibility: hidden; pointer-events: none; }
.admin-planner-choice-actions > button { min-width: 150px; }
.admin-planner-scroll { max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; }
.admin-planner-calendar { min-width: 910px; }
.admin-planner-weekdays, .admin-planner-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.admin-planner-weekdays { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: #eef3f1; }
.admin-planner-weekdays span { padding: 8px 9px; color: #3f504a; font-size: 12px; font-weight: 800; text-align: center; }
.admin-planner-day { min-width: 0; min-height: 150px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 7px; transition: background .12s ease, box-shadow .12s ease; }
.admin-planner-day:nth-child(7n) { border-right: 0; }
.admin-planner-day.outside { background: #f5f7f6; color: #7d8985; }
.admin-planner-day.today { background: #f2fbf7; box-shadow: inset 0 0 0 2px #8fd7bc; }
.admin-planner-day.source-day { background: #eef9fe; }
.admin-planner-day.drop-target { background: #dff5ff; box-shadow: inset 0 0 0 3px #38bdf8; }
.admin-planner-day > header { display: flex; min-height: 23px; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 5px; }
.admin-planner-day > header span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; }
.admin-planner-day.today > header span { background: var(--green); color: #fff; }
.admin-planner-day > header small { color: var(--green); font-size: 10px; font-weight: 800; }
.admin-planner-events { display: grid; gap: 5px; }
.admin-planner-event { position: relative; display: grid; min-width: 0; gap: 6px; border: 1px solid #b8dfd0; border-left: 4px solid var(--green); border-radius: 7px; background: #f6fcf9; padding: 6px; cursor: grab; user-select: none; }
.admin-planner-event.draft { border-color: #e6c86d; border-left-color: #d39a00; background: #fffaf0; }
.admin-planner-event.cancelled { border-color: #ffb8be; border-left-color: var(--red); background: #fff4f5; }
.admin-planner-event.selected { border-color: #38bdf8; box-shadow: 0 0 0 2px #dff5ff; }
.admin-planner-event.dragging { opacity: .55; cursor: grabbing; }
.admin-planner-event:focus-visible { outline: 3px solid #38bdf8; outline-offset: 1px; }
.admin-planner-event-copy { display: grid; min-width: 0; gap: 2px; }
.admin-planner-time-row { display: block; min-width: 0; }
.admin-planner-time-row > small { min-width: 0; }
.admin-planner-time-control { display: none; }
.admin-planner-event-copy small { color: var(--green); font-size: 10px; font-weight: 800; }
.admin-planner-event-copy strong { font-size: 12px; line-height: 1.22; overflow-wrap: anywhere; }
.admin-planner-event-copy span { color: var(--muted); font-size: 10px; line-height: 1.2; overflow-wrap: anywhere; }
.admin-planner-event-copy .admin-planner-competition-label { color: #755600; font-weight: 800; }
.admin-planner-edit { width: 100%; min-height: 31px; padding: 5px 6px; font-size: 10.5px; }

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .admin-planner-event.time-editable { padding-block: 11px; }
  .admin-planner-event.time-editable .admin-planner-time-row { display: flex; min-height: 20px; align-items: center; justify-content: space-between; gap: 5px; }
  .admin-planner-time-control { position: absolute; z-index: 2; display: grid; place-items: center; margin: 0; border: 0; border-radius: 5px; background: transparent; color: var(--green); touch-action: none; }
  .admin-planner-time-control.start, .admin-planner-time-control.end { right: 8px; left: 8px; height: 15px; cursor: ns-resize; }
  .admin-planner-time-control.start { top: -1px; }
  .admin-planner-time-control.end { bottom: -1px; }
  .admin-planner-time-control.start::after, .admin-planner-time-control.end::after { width: 34px; height: 3px; border-radius: 999px; background: currentColor; content: ""; opacity: .58; }
  .admin-planner-event-copy .admin-planner-time-control.move { position: static; flex: 0 0 auto; width: 23px; height: 20px; border: 1px solid #a9d6c5; background: rgb(255 255 255 / 72%); color: var(--green); cursor: ns-resize; font-size: 13px; font-weight: 900; line-height: 1; }
  .admin-planner-time-control:hover, .admin-planner-time-control:focus-visible { color: #006844; }
  .admin-planner-time-control:focus-visible { outline: 3px solid #38bdf8; outline-offset: 1px; }
  .admin-planner-event.time-adjusting { border-color: #38bdf8; box-shadow: 0 0 0 2px #dff5ff; cursor: default; }
  .admin-planner-event.time-adjusting .admin-planner-time-row > small { color: #07567a; }
  .admin-planner-event.time-saving { opacity: .72; cursor: progress; }
  .admin-planner-event.time-saving .admin-planner-time-control { pointer-events: none; }
}
.admin-year-card { padding: 0; overflow: hidden; }
.admin-year-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 18px; }
.admin-year-heading h2, .admin-year-heading p { margin: 0; }
.admin-year-heading > div:first-child { display: grid; min-width: 0; gap: 4px; }
.admin-year-tools { display: flex; flex: 0 0 auto; gap: 6px; }
.admin-year-tools .btn { min-height: 44px; }
.admin-year-tools .btn:first-child, .admin-year-tools .btn:last-child { min-width: 44px; font-size: 24px; line-height: 1; }
.admin-year-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: #f3f6f5; padding: 14px; }
.admin-year-month { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.admin-year-month.current { border-color: #79c8a9; box-shadow: 0 0 0 2px #dff7ed; }
.admin-year-month-title { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #f8faf9; padding: 9px 11px; text-align: left; cursor: pointer; }
.admin-year-month-title strong { color: var(--green); font-size: 16px; }
.admin-year-month-title small { color: var(--muted); font-size: 11px; }
.admin-year-weekdays, .admin-year-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.admin-year-weekdays { border-bottom: 1px solid #e8ecea; background: #fbfcfb; }
.admin-year-weekdays span { padding: 5px 2px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; }
.admin-year-days { gap: 2px; padding: 6px; }
.admin-year-day, .admin-year-days .empty { min-width: 0; aspect-ratio: 1; }
.admin-year-day { position: relative; display: grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 1px; color: var(--text); font-size: 11px; cursor: pointer; }
.admin-year-day:hover { border-color: #b9ddd0; background: #f2fbf7; }
.admin-year-day.has-events { border-color: #8fd7bc; background: var(--green-soft); color: #064934; font-weight: 800; }
.admin-year-day.has-draft { border-color: #e5bd4e; background: var(--amber-soft); color: #765300; }
.admin-year-day.today { box-shadow: inset 0 0 0 2px var(--green); }
.admin-year-day small { position: absolute; right: 1px; bottom: 0; font-size: 7px; line-height: 1; }
.admin-calendar-empty { display: grid; grid-column: 1 / -1; min-height: 150px; place-content: center; justify-items: center; gap: 7px; border: 1px dashed #b9c7c2; border-radius: 9px; background: #f8faf9; padding: 20px; text-align: center; }
.admin-calendar-empty p { margin: 0; color: var(--muted); }
.admin-calendar-empty .btn { min-height: 44px; margin-top: 4px; }
.admin-event-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.admin-event-actions > button { width: 100%; min-width: 0; min-height: 42px; padding: 8px 7px; font-size: 13px; line-height: 1.15; }
.admin-event-actions .admin-event-edit { grid-column: 3; }
.admin-event-actions.no-rotten .announcement-admin-button,
.admin-event-actions.no-announcement .rotten-admin-button { grid-column: 1 / span 2; }
.admin-event-actions.no-announcement.no-rotten .admin-event-edit { grid-column: 1 / -1; }
.cancellation-list { display: grid; gap: 12px; margin-top: 16px; }
.cancellation-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.cancellation-card-main { min-width: 0; }
.cancellation-card h3 { margin-bottom: 6px; }
.cancellation-card p { margin: 4px 0; }
.cancellation-card-action { display: grid; min-width: 190px; gap: 10px; justify-items: stretch; }
.cancellation-card-action .badge { justify-content: center; text-align: center; }
.cancellation-registrations { grid-column: 1 / -1; margin-top: 2px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfb; overflow: hidden; }
.cancellation-registrations summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; cursor: pointer; color: var(--green); font-weight: 800; list-style: none; }
.cancellation-registrations summary::-webkit-details-marker { display: none; }
.cancellation-registration-chevron { transition: transform .15s ease; }
.cancellation-registrations:not([open]) .cancellation-registration-chevron { transform: rotate(-90deg); }
.cancellation-registration-list { display: grid; border-top: 1px solid var(--line); }
.cancellation-registration-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 11px; border-bottom: 1px solid #e8ebe9; }
.cancellation-registration-row:last-child { border-bottom: 0; }
.cancellation-registration-row > div { min-width: 0; }
.cancellation-registration-row strong, .cancellation-registration-row span, .cancellation-registration-row time { display: block; }
.cancellation-registration-row strong { overflow-wrap: anywhere; }
.cancellation-registration-row > div > span { margin-top: 2px; color: var(--text); font-size: 13px; }
.cancellation-registration-row time { margin-top: 3px; color: var(--muted); font-size: 12px; }
.cancellation-registration-row .cancellation-registration-note { margin: 7px 0 0; border-left: 3px solid #b9ddd0; padding-left: 8px; color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.cancellation-registration-empty { display: grid; grid-column: 1 / -1; gap: 2px; margin-top: 2px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 13px; }
.cancellation-registration-empty strong { color: var(--text); }
.announcement-admin-button { display: grid; min-width: 0; align-content: center; gap: 2px; border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; font-weight: 750; overflow-wrap: anywhere; }
.announcement-admin-button small { font-size: 10px; font-weight: 650; }
.rotten-admin-button { display: grid; gap: 2px; align-content: center; border-color: #b8c7c1; background: #f7faf9; color: #31423c; font-weight: 800; }
.rotten-admin-button small { font-size: 10px; font-weight: 650; }
.rotten-admin-button.draft { border-color: #e7c15e; background: #fff8dd; color: #765300; }
.rotten-admin-button.published { border-color: #8fd7bc; background: var(--green-soft); color: var(--green); }
.rotten-plan-overview { max-width: 620px; }
.rotten-plan-overview-state { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #f7faf9; }
.rotten-plan-overview-state span { color: var(--muted); font-size: 13px; }
.rotten-plan-overview-state strong { font-size: 18px; }
.rotten-plan-overview-state.draft { border-color: #e7c15e; background: #fff8dd; color: #765300; }
.rotten-plan-overview-state.published { border-color: #8fd7bc; background: var(--green-soft); color: var(--green); }
.rotten-plan-overview-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.rotten-plan-overview-facts > span { display: grid; min-height: 70px; place-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; text-align: center; }
.rotten-plan-overview-facts strong, .rotten-plan-overview-facts small { display: block; }
.rotten-plan-overview-facts strong { color: var(--green); font-size: 22px; }
.rotten-plan-overview-facts small { color: var(--muted); font-size: 11px; }
.rotten-plan-overview-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.announcement-logo-settings { margin: 16px 0; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; overflow: hidden; }
.announcement-logo-settings > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: 54px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }
.announcement-logo-settings > summary::-webkit-details-marker { display: none; }
.announcement-logo-settings > summary span:first-child { min-width: 0; }
.announcement-logo-settings > summary strong, .announcement-logo-settings > summary small { display: block; }
.announcement-logo-settings > summary small { margin-top: 2px; color: var(--muted); font-weight: 500; }
.announcement-logo-settings > summary:focus-visible { outline: 3px solid #38bdf8; outline-offset: -3px; }
.announcement-logo-chevron { font-size: 22px; transition: transform .16s ease; }
.announcement-logo-settings:not([open]) .announcement-logo-chevron { transform: rotate(-90deg); }
.announcement-logo-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; border-top: 1px solid var(--line); padding: 12px; }
.announcement-logo-body img, .announcement-logo-empty { width: 150px; height: 98px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.announcement-logo-body img { object-fit: contain; }
.announcement-logo-empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 750; }
.announcement-logo-settings p { margin: 5px 0 10px; }
.file-button { display: inline-flex; width: auto; margin: 0; align-items: center; font-weight: 500; cursor: pointer; }
.announcement-admin-list { margin-top: 14px; }
.announcement-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.announcement-admin-actions { display: grid; grid-template-columns: repeat(3, minmax(112px, auto)); gap: 8px; align-items: stretch; }
.announcement-admin-actions > button { min-height: 44px; }
.announcement-view-button { border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; font-weight: 750; }
.announcement-admin-row p { margin: 5px 0 0; }
.announcement-admin-row.needs-correction { border-color: #e8bd49; background: var(--amber-soft); }
.announcement-correction-note { display: grid; gap: 3px; margin-top: 9px; border-left: 3px solid #d69200; padding: 6px 9px; color: #684100; font-size: 13px; }
.announcement-correction-note span { display: block; }
.announcement-status-toggle { appearance: none; cursor: pointer; font: inherit; }
.announcement-status-toggle:hover, .announcement-status-toggle:focus-visible { filter: brightness(.96); box-shadow: 0 0 0 2px rgba(0, 114, 83, .18); }
.announcement-status-toggle:disabled { cursor: wait; opacity: .6; }
.editor-layer { z-index: 60; }
.announcement-editor { max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.announcement-deadline-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: stretch; margin-top: 7px; }
.announcement-deadline-control input { margin: 0; }
.announcement-deadline-control button { min-height: 44px; white-space: nowrap; }
.announcement-field-list { display: grid; gap: 9px; margin: 12px 0; }
.announcement-field-row { display: grid; grid-template-columns: minmax(150px, .38fr) minmax(260px, 1fr) auto; gap: 10px; align-items: end; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #f8faf9; }
.announcement-field-row label { margin: 0; }
.announcement-field-row textarea { min-height: 74px; }
.announcement-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.announcement-viewer { max-height: calc(100vh - 32px); overflow: auto; }
.announcement-viewer-tools { position: sticky; top: -22px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -6px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); padding: 10px 6px; }
.announcement-preview-list { display: grid; gap: 22px; }
.announcement-preview { border: 1px solid var(--line); border-radius: 9px; background: #f5f6f6; padding: 12px; }
.announcement-select { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; }
.announcement-select input { width: 20px; height: 20px; margin: 0; }
.announcement-paper { display: flex; flex-direction: column; width: min(100%, 794px); min-height: 1123px; margin: 0 auto; background: #fff; color: #111; padding: 42px 48px 34px; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.announcement-paper-head { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: center; border-bottom: 3px solid var(--green); padding-bottom: 15px; }
.announcement-paper.without-logo .announcement-paper-head { grid-template-columns: minmax(0, 1fr); gap: 0; }
.announcement-paper-head img { width: 190px; height: 118px; object-fit: contain; }
.announcement-paper-head p { margin: 0 0 7px; color: var(--green); font-size: 26px; font-weight: 850; }
.announcement-paper-head strong { font-size: 22px; }
.announcement-paper h2 { margin: 24px 0 10px; text-align: center; font-size: 28px; }
.announcement-subtitle { display: flex; justify-content: center; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; color: #444; font-weight: 700; }
.announcement-facts { flex: 1; display: flex; flex-direction: column; margin: 0; }
.announcement-facts > div { flex: 1 1 auto; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 8px; align-content: center; border-top: 1px solid #ddd; padding: 8px 0; break-inside: avoid; }
.announcement-facts dt { color: #444; font-weight: 800; }
.announcement-facts dd { margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
.announcement-paper footer { margin-top: 18px; border-top: 1px solid #ddd; padding-top: 9px; color: #666; font-size: 12px; text-align: right; }
.year-copy-modal { max-height: calc(100dvh - 32px); overflow: auto; }
.year-copy-settings { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfb; padding: 12px; }
.year-copy-filter-panel { margin: 14px 0 10px; border: 1px solid #a9d8ee; border-radius: 10px; background: var(--blue-soft); padding: 12px; }
.year-copy-filter-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.year-copy-filter-heading > div { display: grid; gap: 2px; }
.year-copy-filter-heading small { color: #405c69; font-size: 12px; }
.year-copy-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)) auto; gap: 10px; align-items: end; }
.year-copy-filter-grid label { margin: 0; }
.year-copy-filter-grid button { min-height: 44px; }
.year-copy-filter-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.year-copy-filter-actions p { margin: 0 0 0 auto; }
.year-copy-list { display: grid; gap: 8px; max-height: min(52vh, 580px); overflow: auto; padding: 2px; }
.year-copy-row { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto minmax(190px, .65fr); align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.year-copy-row > input { width: 22px; height: 22px; margin: 0; }
.year-copy-source, .year-copy-target { display: grid; gap: 3px; min-width: 0; }
.year-copy-source strong { overflow-wrap: anywhere; }
.year-copy-source small, .year-copy-target small { color: var(--muted); }
.year-copy-location { color: #333 !important; font-weight: 700; }
.year-copy-target input { margin: 0; }
.year-copy-arrow { color: var(--green); font-size: 22px; font-weight: 800; }
.year-copy-row.conflict { border-color: #e8bd49; background: var(--amber-soft); }
.year-copy-conflict { color: var(--amber) !important; font-weight: 800; }
.draft-choice { border-color: #e8bd49; background: var(--amber-soft); color: var(--amber); font-weight: 750; }
.year-copy-submitbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.year-copy-submitbar > div:first-child { display: grid; gap: 2px; }
.year-copy-submitbar small { color: var(--muted); font-size: 12px; }
.subtle-select { border: 0; background: transparent; color: #555; padding: 5px 7px; text-decoration: underline; text-underline-offset: 3px; }
.admin-submission-stack { margin-top: 12px; }
.admin-submission-group { border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.admin-submission-group.has-new { border-color: #8bd4f4; box-shadow: 0 0 0 2px #eaf7ff; }
.admin-submission-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px; background: #fafafa; border-bottom: 1px solid var(--line); }
.admin-submission-group.collapsed .admin-submission-head { border-bottom: 0; }
.admin-submission-head .eyebrow { margin-bottom: 4px; }
.admin-submission-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.admin-submission-title h2 { margin-bottom: 4px; }
.admin-submission-title p { margin: 0; }
.schedule-review-notification-section { display: grid; gap: 10px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.schedule-review-notification-section .section-heading { margin: 0; }
.schedule-review-notification-section h3, .admin-member-submission-heading h3 { margin: 0; }
.schedule-review-notification-list { display: grid; gap: 8px; }
.schedule-review-notification { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--card); padding: 12px 14px; }
.schedule-review-notification.new { border-color: #8bd4f4; background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(97, 198, 241, .18); }
.schedule-review-notification-copy { display: grid; min-width: 0; gap: 4px; }
.schedule-review-notification-copy > span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.schedule-review-notification-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.schedule-review-notification-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.admin-member-submission-heading { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.admin-submission-list { display: grid; }
.admin-submission-row { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(150px, 1fr) minmax(170px, 1.15fr) minmax(180px, 1.2fr) auto; gap: 12px; padding: 12px 14px; border-top: 1px solid #ededed; align-items: start; }
.admin-submission-row:first-child { border-top: 0; }
.admin-submission-row.new { background: var(--blue-soft); }
.submission-person { display: grid; gap: 4px; justify-items: start; }
.submission-row-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.submission-read-toggle { font-size: 13px; padding: 8px 10px; }
.meeting-summary-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: min(420px, 100%); margin-top: 9px; border-color: #cfd8d4; background: #fff; padding: 6px; text-align: left; }
.meeting-summary-mini > span { display: grid; min-width: 0; gap: 2px; border-radius: 5px; padding: 5px 7px; }
.meeting-summary-mini > span:first-child { background: var(--green-soft); color: #064934; }
.meeting-summary-mini > span:last-child { background: var(--red-soft); color: var(--red); }
.meeting-summary-mini strong { font-size: 12px; }
.meeting-summary-mini small { overflow: hidden; color: #555; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.meeting-overview-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf9; padding: 10px 12px; }
.meeting-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.meeting-overview-column { min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 14px; }
.meeting-overview-column.accepted { border-color: #9cdec5; background: #f5fffb; }
.meeting-overview-column.declined { border-color: #f1b2b7; background: #fff8f8; }
.meeting-overview-column h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.meeting-overview-column h3 span { border-radius: 999px; background: #fff; padding: 3px 8px; font-size: 13px; }
.meeting-person-list { display: grid; }
.meeting-person-row { display: grid; gap: 2px; border-top: 1px solid rgba(0,0,0,.1); padding: 8px 2px; }
.meeting-person-row:first-child { border-top: 0; }
.meeting-person-row span { color: #555; font-size: 13px; overflow-wrap: anywhere; }
.meeting-overview-actions { justify-content: flex-end; }
.rotten-head, .rotten-editor { margin-top: 16px; }
.rotten-page-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.rotten-page-heading > div { min-width: 0; }
.rotten-page-heading .muted { margin: 7px 0 0; }
.rotten-publication-state { align-self: start; }
.plan-event-focus { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 8px 16px; align-items: end; margin-top: 16px; border: 1px solid #aadac9; border-radius: 10px; background: var(--green-soft); padding: 13px; }
.plan-event-focus label { display: grid; min-width: 0; gap: 6px; font-weight: 800; }
.plan-event-focus select { min-width: 0; background: #fff; }
.plan-event-focus > p { grid-column: 1 / -1; margin: 0; }
.plan-competition-days { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.plan-competition-day { display: grid; min-width: 0; gap: 2px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 9px; background: var(--card); color: var(--text); padding: 9px 11px; text-align: left; }
.plan-competition-day > span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.plan-competition-day > strong { overflow-wrap: anywhere; }
.plan-competition-day > small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.plan-competition-day.draft { border-left-color: #ddb33d; }
.plan-competition-day.published { border-left-color: var(--green); }
.plan-competition-day.active { border-color: #32b9e8; border-left-color: #32b9e8; background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(50,185,232,.18); }
.plan-competition-hint { grid-column: 1 / -1; }
.rotten-plan-day-statuses { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 7px; margin: 10px 0; }
.rotten-plan-day-statuses > span { display: grid; gap: 2px; border: 1px solid var(--line); border-left: 4px solid #a9b1ad; border-radius: 8px; background: var(--card); padding: 8px 10px; }
.rotten-plan-day-statuses > span.draft { border-left-color: #ddb33d; }
.rotten-plan-day-statuses > span.published { border-left-color: var(--green); }
.rotten-plan-day-statuses small { color: var(--muted); font-size: 11px; }
.plan-event-facts { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 6px; }
.plan-event-facts > span { display: grid; min-width: 0; border: 1px solid rgba(0,112,74,.2); border-radius: 8px; background: rgba(255,255,255,.78); padding: 7px 9px; text-align: center; }
.plan-event-facts strong { color: #064934; font-size: 17px; }
.plan-event-facts small { color: #49665c; font-size: 11px; }
.plan-event-facts .plan-fact-capacity.unlimited strong { align-self: center; font-size: 13px; line-height: 1.15; overflow-wrap: anywhere; }
.plan-event-facts .plan-fact-capacity.mixed { border-color: #dfc369; background: #fffdf4; }
.plan-event-facts .plan-fact-capacity.mixed strong { color: var(--amber); }
.plan-event-facts .plan-capacity-detail { margin-top: 2px; color: #6b6250; font-size: 9px; line-height: 1.15; }
.plan-event-facts .plan-fact-capacity.full { border-color: #efb7bb; background: #fff8f8; }
.plan-event-facts .plan-fact-capacity.full strong, .plan-event-facts .plan-fact-capacity.full small { color: var(--red); }
.rotten-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.plan-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f8faf9; }
.plan-panel > summary, .plan-command-heading, .rotten-editor-summary, .free-list > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px; padding: 10px 12px; cursor: pointer; list-style: none; }
.plan-panel > summary::-webkit-details-marker, .plan-command-heading::-webkit-details-marker, .rotten-editor-summary::-webkit-details-marker, .free-list > summary::-webkit-details-marker { display: none; }
.plan-panel > summary:focus-visible, .plan-command-heading:focus-visible, .rotten-editor-summary:focus-visible, .free-list > summary:focus-visible { outline: 3px solid #38bdf8; outline-offset: -3px; }
.plan-step { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 900; }
.plan-panel-title { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.plan-panel-title strong { font-size: 16px; }
.plan-panel-title small { color: var(--muted); font-size: 12px; font-weight: 500; }
.plan-panel-chevron { width: 11px; height: 11px; border-right: 2px solid #46504c; border-bottom: 2px solid #46504c; transform: rotate(45deg); transition: transform .16s ease; }
.plan-panel[open] > summary .plan-panel-chevron, .plan-command-center[open] > summary .plan-panel-chevron, .rotten-editor[open] > summary .plan-panel-chevron, .free-list[open] > summary .plan-panel-chevron { transform: rotate(225deg); }
.plan-panel-body { border-top: 1px solid var(--line); padding: 12px; }
.plan-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.plan-settings label { min-width: 0; }
.plan-settings input { min-width: 0; }
.plan-order-panel { grid-column: 1 / -1; }
.plan-stand-locks, .plan-order { margin: 0; border: 0; border-radius: 0; background: transparent; }
.plan-stand-locks > p, .plan-order > p { margin: 9px 0 0; }
.plan-stand-lock-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; max-height: 230px; overflow: auto; padding: 2px; }
.stand-lock-toggle { width: 100%; min-width: 0; min-height: 44px; border-color: #c8cecb; background: #fff; color: #37413c; padding: 7px 8px; font-size: 12px; line-height: 1.15; }
.stand-lock-toggle.locked { border-color: #df9b9f; background: #fff4f4; color: #8c151d; font-weight: 800; }
.plan-order-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.plan-order-item { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; min-width: min(100%, 270px); align-items: center; gap: 5px; border: 1px solid; border-radius: 7px; padding: 5px 6px 5px 9px; font-size: 13px; }
.plan-order-item > span { min-width: 0; overflow-wrap: anywhere; }
.plan-order-item button { width: 44px; min-height: 44px; padding: 2px; border-color: currentColor; background: rgba(255,255,255,.72); }
.plan-command-center { margin-top: 12px; overflow: hidden; border: 1px solid #9bd7c0; border-radius: 10px; background: linear-gradient(135deg, #f3fff9 0%, #fff 62%); }
.plan-command-heading { grid-template-columns: auto minmax(0, 1fr) auto auto; min-height: 62px; padding: 12px 13px; }
.plan-command-body { border-top: 1px solid #bfe4d6; padding: 13px; }
.plan-command-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-command-group { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.9); padding: 10px; }
.plan-command-group > strong { display: block; margin-bottom: 8px; font-size: 13px; }
.plan-command-group > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 7px; }
.plan-command-group button { width: 100%; min-width: 0; min-height: 44px; padding: 8px 9px; line-height: 1.15; }
.plan-command-note { margin: 8px 2px 0; }
.plan-loading, .plan-empty-state { display: flex; align-items: center; gap: 12px; }
.plan-loading p, .plan-empty-state p { margin: 4px 0 0; }
.plan-loading-dot { width: 14px; height: 14px; border: 3px solid #b8ddcf; border-top-color: var(--green); border-radius: 999px; animation: plan-loading-spin .8s linear infinite; }
.plan-empty-state > div { display: flex; width: 42px; height: 42px; flex: 0 0 42px; align-items: center; justify-content: center; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 25px; }
@keyframes plan-loading-spin { to { transform: rotate(360deg); } }
.rotten-editor { overflow: hidden; padding: 0; }
.rotten-editor-summary { grid-template-columns: auto minmax(0, 1fr) auto auto; min-height: 62px; padding: 13px 18px; }
.plan-summary-badges { display: flex; gap: 6px; }
.rotten-editor-body { border-top: 1px solid var(--line); padding: 16px 18px 18px; }
.plan-editor-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.plan-editor-heading > div:first-child { min-width: 0; }
.plan-editor-heading p { margin: 5px 0 0; }
.plan-editor-actions { display: grid; grid-template-columns: repeat(3, minmax(116px, 1fr)); gap: 7px; }
.plan-editor-actions button { min-width: 0; min-height: 44px; padding: 8px 9px; line-height: 1.15; }
.plan-selection { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-table-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.plan-table-heading > div { display: grid; min-width: 0; gap: 2px; }
.plan-table-heading small { color: var(--muted); }
.plan-swipe-hint { border-radius: 999px; background: var(--blue-soft); padding: 5px 9px; color: #07567a; font-size: 11px; font-weight: 750; white-space: nowrap; }
.plan-table-wrap { max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; margin-top: 8px; padding-bottom: 7px; scrollbar-gutter: stable; }
.plan-grid { --plan-label-width: 130px; display: grid; grid-template-columns: var(--plan-label-width) repeat(var(--plan-stands), minmax(190px, 1fr)); gap: 8px; min-width: max-content; }
.plan-grid-head { border-radius: 7px; background: #f1f3f2; padding: 9px 11px; color: #555; font-size: 13px; font-weight: 800; }
.plan-grid-head.locked { border: 1px solid #dfc6c8; background: #f8eeee; color: #7b5558; }
.plan-grid-corner, .plan-row-label { position: sticky; left: 0; z-index: 2; box-shadow: 5px 0 7px -7px #333; }
.plan-grid-corner { z-index: 3; }
.plan-row-label { display: grid; grid-template-columns: auto auto; align-content: start; justify-content: start; gap: 2px 4px; border-radius: 7px; background: #f7f8f8; padding: 12px 9px; font-weight: 800; }
.plan-row-label strong { font: inherit; }
.plan-row-label small { grid-column: 1 / -1; color: #5d6662; font-size: 10px; font-weight: 650; line-height: 1.1; }
.plan-corner-short { display: none; }
.plan-table-wrap.plan-table-scrolled .plan-row-word { display: none; }
.plan-table-wrap.plan-table-scrolled .plan-row-label { grid-template-columns: 1fr; justify-content: center; justify-items: center; padding-right: 4px; padding-left: 4px; text-align: center; }
.plan-table-wrap.plan-table-scrolled .plan-row-label small { grid-column: 1; }
.plan-slot { display: flex; min-height: 122px; flex-direction: column; gap: 7px; align-items: flex-start; border: 1px solid; padding: 12px; text-align: left; overflow-wrap: anywhere; }
.plan-slot span, .free-shooter span { font-size: 13px; }
.plan-slot small { font-size: 12px; }
.plan-slot .borrowed { font-weight: 750; }
.plan-slot em { margin-top: auto; border: 1px solid currentColor; border-radius: 5px; padding: 3px 6px; font-size: 11px; font-style: normal; font-weight: 750; }
.plan-slot.empty { border-style: dashed; border-color: #ccc; background: #fafafa; color: #888; }
.plan-slot.locked, .plan-slot.locked:disabled { justify-content: center; border-color: #d9c6c8; background: #f5eeee; color: #805d60; font-weight: 800; opacity: 1; cursor: not-allowed; }
.plan-slot.selected, .free-shooter.selected { outline: 3px solid var(--green); outline-offset: 1px; }
.plan-slot.swap-target { box-shadow: inset 0 0 0 2px rgba(0,112,74,.2); }
.free-list { margin: 14px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; }
.free-list > summary { grid-template-columns: minmax(0, 1fr) auto auto; }
.free-list-body { border-top: 1px solid var(--line); padding: 10px; }
.free-list-items { display: flex; min-height: 58px; flex-wrap: wrap; gap: 8px; align-items: flex-start; border: 1px dashed #ccc; border-radius: 7px; background: #fff; padding: 9px; }
.free-shooter { display: flex; max-width: 290px; min-height: 44px; flex-direction: column; gap: 3px; align-items: flex-start; border: 1px solid; padding: 9px 11px; text-align: left; overflow-wrap: anywhere; }
.plan-color-0 { border-color: #83d9b7; background: #ecfbf5; color: #064934; }
.plan-color-1 { border-color: #8bd4f4; background: #eaf7ff; color: #07567a; }
.plan-color-2 { border-color: #edcf6c; background: #fff9e6; color: #664000; }
.plan-color-3 { border-color: #e7a8c9; background: #fff1f8; color: #70204a; }
.plan-color-4 { border-color: #bea8ed; background: #f6f1ff; color: #452479; }
.plan-color-5 { border-color: #c8c2b9; background: #f7f5f2; color: #403a33; }
.print-sheet { display: none; }

/* Rollen-Navigation und kompakter Arbeitsbereich */
.role-access-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #a9dac8;
  border-radius: 999px;
  background: var(--green-soft);
  padding: 9px 13px;
  color: #07553b;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}
.role-access-chip.has-tasks { border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; }
.role-access-chip > span { font-size: 19px; line-height: 1; }
.role-sheet-backdrop { position: fixed; inset: 0; z-index: 75; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.role-sheet-scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgba(7, 18, 14, .48); padding: 0; cursor: default; }
.role-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(620px, 100%);
  max-height: min(84vh, 760px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 22px 70px rgba(0,0,0,.26);
  animation: role-sheet-in .2s ease-out;
  transition: transform .18s ease;
}
.role-sheet.dragging { transition: none; }
@keyframes role-sheet-in { from { opacity: .4; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
.role-sheet-handle { width: 48px; height: 5px; flex: 0 0 auto; margin: 9px auto 4px; border-radius: 99px; background: #c7ccca; touch-action: none; }
.role-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px 13px; }
.role-sheet-head .eyebrow { margin-bottom: 3px; }
.role-sheet-head h2 { font-size: 25px; }
.role-sheet-total, .priority-total { border: 1px solid #8bd4f4; border-radius: 999px; background: var(--blue-soft); padding: 6px 10px; color: #07567a; font-size: 13px; font-weight: 850; white-space: nowrap; }
.role-sheet-ok { color: #33705c; font-size: 13px; font-weight: 750; }
.role-sheet-nav { min-height: 0; overflow-y: auto; border-top: 1px solid var(--line); padding: 6px 10px; overscroll-behavior: contain; }
.role-sheet-item { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: transparent; padding: 12px 10px; font-weight: 720; text-align: left; }
.role-sheet-item + .role-sheet-item { border-top: 1px solid #eceeed; border-top-left-radius: 0; border-top-right-radius: 0; }
.role-sheet-item.active { background: #f0f7f4; color: #07553b; }
.role-sheet-item.settings-link { margin-top: 6px; border-top: 1px solid var(--line); }
.role-sheet-item.calendar-link { margin-top: 6px; border-top: 1px solid var(--line); color: #07567a; }
.role-sheet-chevron { color: var(--muted); font-size: 23px; font-weight: 400; }
.nav-badge { border-radius: 999px; background: var(--blue-soft); padding: 4px 8px; color: #07567a; font-size: 12px; font-weight: 850; white-space: nowrap; }
.nav-badge.quiet { background: #f1f3f2; color: #555; }
.role-sheet-profile { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); background: #f8faf9; padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); }
.role-sheet-display { display: none; border-top: 1px solid var(--line); background: #f8faf9; padding: 9px 18px; }
.role-sheet-display .theme-control { width: 100%; }
.role-sheet-profile > div { display: grid; min-width: 0; gap: 2px; }
.role-sheet-profile small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.role-sheet-logout { border-color: #e1c7c9; background: transparent; color: var(--red); padding: 8px 10px; font-size: 13px; }

.workspace-page { display: grid; gap: 14px; }
.workspace-header { position: sticky; top: 8px; z-index: 20; display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.workspace-title { min-width: 0; }
.workspace-title .eyebrow { margin-bottom: 3px; }
.workspace-title h1 { font-size: clamp(25px, 4vw, 34px); overflow-wrap: anywhere; }
.workspace-title p:last-child { margin: 4px 0 0; }
.workspace-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.workspace-refresh { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 999px; padding: 0; color: #405049; font-size: 23px; line-height: 1; }
.workspace-calendar-jump { min-height: 42px; border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; font-weight: 800; }
.workspace-loading { text-align: center; }

.trusted-device-choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; padding: 11px 12px; font-weight: 500; }
.trusted-device-choice input { width: 20px; height: 20px; margin: 1px 0 0; }
.trusted-device-choice span { display: grid; gap: 3px; }
.trusted-device-choice small { color: var(--muted); font-size: 12px; line-height: 1.35; }

.role-overview { display: grid; gap: 14px; }
.priority-task-card { border-color: #a9daca; box-shadow: 0 2px 12px rgba(0, 92, 61, .09); }
.priority-task-card .section-heading { align-items: center; }
.task-list { display: grid; gap: 8px; margin-top: 14px; }
.task-row { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; border-color: #cbded7; background: #fbfdfc; padding: 12px; text-align: left; }
.task-row > span:nth-child(2) { display: grid; gap: 3px; }
.task-row small, .all-clear small, .overview-event-row small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.task-row > span:last-child { color: var(--muted); font-size: 22px; }
.task-count { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 999px; font-weight: 850; }
.task-count.blue-badge { border: 1px solid #8bd4f4; background: var(--blue-soft); color: #07567a; }
.task-count.amber-badge { border: 1px solid #e8bd49; background: var(--amber-soft); color: var(--amber); }
.all-clear { display: flex; align-items: center; gap: 11px; border: 1px solid #b9dfd0; border-radius: 9px; background: #f4fff9; padding: 13px; color: #07553b; }
.all-clear > span { display: inline-flex; width: 34px; height: 34px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 999px; background: var(--green-soft); font-weight: 900; }
.all-clear > div { display: grid; gap: 2px; }
.overview-section .section-heading { align-items: center; margin-bottom: 12px; }
.compact-action { padding: 7px 10px; font-size: 13px; }
.overview-event-list { display: grid; border-top: 1px solid var(--line); }
.overview-event-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 11px; align-items: center; border-bottom: 1px solid #eceeed; padding: 10px 2px; }
.overview-event-row time { color: var(--green); font-size: 13px; font-weight: 800; }
.overview-event-row > div { min-width: 0; }
.overview-event-row strong { display: block; overflow-wrap: anywhere; }
.overview-shortcuts h2 { margin-bottom: 12px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shortcut-grid button { min-height: 52px; text-align: left; }

/* Meldungsgruppen öffnen über die ganze Kopfzeile statt über einen Zusatzknopf. */
.admin-submission-head { user-select: none; }
.admin-submission-head:hover { background: #f4f7f6; }
.submission-toggle-hitbox { position: absolute; z-index: 0; inset: 0; width: 100%; min-height: 100%; border: 0; border-radius: 0; background: transparent; padding: 0; cursor: pointer; }
.submission-toggle-hitbox:focus-visible { outline: 3px solid #8bd4f4; outline-offset: -3px; }
.admin-submission-summary { position: relative; z-index: 1; min-width: 0; pointer-events: none; }
.admin-submission-summary .meeting-summary-mini { pointer-events: auto; }
.admin-submission-summary > p:last-of-type { margin: 7px 0 0; }
.admin-submission-actions { position: relative; z-index: 1; flex: 0 0 auto; flex-wrap: nowrap; pointer-events: none; }
.submission-chevron { display: inline-block; color: #52615b; font-size: 24px; line-height: 1; transition: transform .16s ease; }
.admin-submission-group.collapsed .submission-chevron { transform: rotate(-90deg); }
.read-state-label { color: #607069; font-size: 12px; font-weight: 750; }
.submission-group-tools { display: flex; justify-content: flex-end; border-bottom: 1px solid #eceeed; background: #fafbfb; padding: 7px 12px; }
.subtle-read-action { min-height: 44px; border: 0; background: transparent; padding: 9px 7px; color: #52615b; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

/* Gerätewart: erst der Arbeitsbereich-Kopf, danach offene Anfragen und Termine. */
.weapon-pending-section { order: initial; }
.weapon-request-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.weapon-request-head .eyebrow { margin-bottom: 4px; }
.weapon-request-card.status-pending { border-color: #8bd4f4; background: #fbfeff; }
.weapon-request-card > p { margin: 9px 0; }
.compact-loan-events .loan-event-list { max-height: none; overflow: visible; }
.loan-event-card.compact { grid-template-columns: minmax(190px, .8fr) minmax(280px, 1.2fr); gap: 12px; padding: 11px 12px; }
.loan-event-card.compact h3 { font-size: 17px; }
.loan-event-card.compact .badge { padding: 5px 7px; font-size: 11px; }
.loan-event-card.compact .loan-event-controls { gap: 6px; }
.loan-event-card.compact .loan-event-controls > button,
.loan-event-card.compact .loan-device-blocker button,
.loan-event-card.compact .loan-device-blocker select { min-height: 44px; padding: 7px 9px; font-size: 13px; }
.completed-requests { overflow: hidden; padding: 0; }
.completed-requests-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 70px; padding: 16px 20px; cursor: pointer; list-style: none; }
.completed-requests-summary::-webkit-details-marker { display: none; }
.completed-requests-summary:focus-visible { outline: 3px solid #38bdf8; outline-offset: -3px; }
.completed-requests-title { display: grid; min-width: 0; gap: 4px; }
.completed-requests-title strong { font-size: clamp(24px, 4vw, 34px); line-height: 1.15; }
.completed-requests-title small { color: var(--muted); font-size: 13px; font-weight: 500; }
.completed-requests[open] > .completed-requests-summary .plan-panel-chevron { transform: rotate(225deg); }
.completed-requests-body { border-top: 1px solid var(--line); padding: 16px 20px 20px; }
.completed-request-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 12px; }
.completed-request-edit { display: inline-flex; min-width: 180px; min-height: 44px; align-items: center; justify-content: space-between; gap: 10px; border-color: #8bd4f4; background: var(--blue-soft); color: #07567a; font-size: 14px; font-weight: 800; text-decoration: none; }
.completed-request-edit-chevron { width: 9px; height: 9px; flex: 0 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .16s ease; }
.completed-request-edit.expanded .completed-request-edit-chevron { transform: rotate(225deg); }
.completed-request-controls { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.completed-request-controls[hidden] { display: none; }

/* Isoliertes Rottenplan-Exportmodul */
.rotten-export-overview { display: grid; gap: 10px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 15px; }
.rotten-export-overview h3, .export-discipline-mappings h4 { margin: 0; }
.rotten-export-overview .section-heading p, .export-discipline-mappings .section-heading p { margin: 3px 0 0; }
.rotten-export-open { justify-self: end; min-width: 150px; }
.export-profile-statuses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.export-status { display: grid; min-width: 0; gap: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf9; padding: 9px 8px; text-align: center; }
.export-status strong, .export-status small { display: block; min-width: 0; overflow-wrap: anywhere; }
.export-status strong { font-size: 12px; }
.export-status small { color: var(--muted); font-size: 10px; font-weight: 700; }
.export-status.current { border-color: #8fd7bc; background: var(--green-soft); color: #064934; }
.export-status.current small { color: #07553b; }
.export-status.stale { border-color: #e7c15e; background: var(--amber-soft); color: var(--amber); }
.export-status.stale small { color: var(--amber); }
.export-stale-notice p, .rotten-export-passive p { margin: 4px 0 0; }
.rotten-export-changes { overflow: hidden; border: 1px solid #e7c15e; border-radius: 8px; background: #fffdf5; }
.rotten-export-changes > summary { padding: 10px 12px; cursor: pointer; color: var(--amber); font-weight: 800; list-style-position: inside; }
.rotten-export-change-body { display: grid; gap: 8px; border-top: 1px solid #eed998; padding: 10px 12px 12px; }
.rotten-export-change-body label { margin: 0; }
.rotten-export-change-body textarea, .rotten-export-change-dialog textarea { min-height: 112px; font-family: inherit; font-size: 13px; line-height: 1.45; }
.rotten-export-change-body .btn { justify-self: end; }
.rotten-export-settings { min-width: 0; }
.export-settings-loading { display: flex; min-height: 64px; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.export-profile-settings, .export-profile-choice, .export-source-choice { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px 12px; }
.export-profile-settings > legend, .export-profile-choice > legend, .export-source-choice > legend { padding: 0 5px; font-weight: 850; }
.export-profile-settings > p { margin: 2px 0 9px; }
.export-profile-setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border-top: 1px solid #e8ebe9; padding: 7px 0; }
.export-profile-setting:first-of-type { border-top: 0; }
.export-profile-setting .choice { margin: 0; border: 0; background: transparent; padding: 5px 0; }
.export-profile-setting .choice > span { display: grid; min-width: 0; gap: 2px; }
.export-default-choice { display: flex; align-items: center; gap: 6px; margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 7px 9px; font-size: 12px; white-space: nowrap; }
.export-default-choice input { width: auto; margin: 0; }
.export-discipline-mappings { min-width: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.export-mapping-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.export-mapping-table { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff; }
.export-mapping-table th, .export-mapping-table td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: middle; }
.export-mapping-table thead th { background: #f2f5f4; font-size: 12px; }
.export-mapping-table tbody th { width: 42%; overflow-wrap: anywhere; }
.export-mapping-table tr:last-child th, .export-mapping-table tr:last-child td { border-bottom: 0; }
.export-mapping-table input { min-width: 130px; margin: 0; padding: 9px; }
.rotten-export-dialog-backdrop { z-index: 80; }
.rotten-export-dialog { width: min(760px, 100%); max-height: calc(100dvh - 36px); overflow: auto; }
.rotten-export-dialog .modal-head { position: sticky; z-index: 2; top: -22px; margin: -22px -22px 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); padding: 18px 22px 12px; }
.rotten-export-dialog .modal-head p { margin: 4px 0 0; }
.export-profile-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.export-profile-choice > legend { grid-column: 1 / -1; }
.export-profile-option { display: grid; height: 100%; min-width: 0; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px; cursor: pointer; }
.export-profile-option:has(input:checked) { border-color: #48bdeb; background: var(--blue-soft); box-shadow: 0 0 0 1px #48bdeb; }
.export-profile-option.current { border-color: #8fd7bc; }
.export-profile-option.stale { border-color: #e7c15e; background: #fffdf5; }
.export-profile-option input { width: auto; margin: 3px 0 0; }
.export-profile-option span { display: grid; min-width: 0; gap: 3px; }
.export-profile-option strong, .export-profile-option small { overflow-wrap: anywhere; }
.export-profile-option small { color: var(--muted); font-size: 11px; }
.export-source-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.export-source-choice > legend { grid-column: 1 / -1; }
.export-source-choice .choice { height: 100%; margin: 0; }
.export-source-choice .choice > span { display: grid; min-width: 0; gap: 3px; }
.export-preflight-empty, .export-preflight { border: 1px dashed #b9c7c2; border-radius: 9px; background: #f8faf9; padding: 13px; }
.export-preflight-empty p { margin: 4px 0 0; }
.export-preflight.blocked { border-style: solid; border-color: #e7c15e; background: var(--amber-soft); color: var(--amber); }
.export-preflight.ready { border-style: solid; border-color: #8fd7bc; background: var(--green-soft); color: #064934; }
.export-preflight-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.export-preflight-head small { color: inherit; overflow-wrap: anywhere; text-align: right; }
.export-preflight-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.export-preflight-facts span { display: grid; min-height: 56px; place-content: center; border: 1px solid rgba(0,0,0,.12); border-radius: 7px; background: rgba(255,255,255,.6); text-align: center; }
.export-preflight-facts strong, .export-preflight-facts small { display: block; }
.export-preflight-facts small { font-size: 10px; }
.export-warning-list, .export-diff-list { margin: 10px 0 0; padding-left: 22px; }
.export-warning-list li, .export-diff-list li { margin: 5px 0; overflow-wrap: anywhere; }
.rotten-export-actions { display: flex; justify-content: flex-end; gap: 9px; }
.rotten-export-actions button { min-width: 150px; min-height: 44px; }
.rotten-export-change-dialog { width: min(680px, 100%); max-height: calc(100dvh - 36px); overflow: auto; }
.rotten-export-change-dialog > p { line-height: 1.45; }
.export-diff-list { max-height: 36vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #f8faf9; padding: 10px 12px 10px 32px; }
.rotten-export-passive { margin-top: 14px; }

@media screen and (min-width: 821px) {
  .calendar-quickbar { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
  .calendar-quickbar .calendar-tool { width: auto; min-width: 150px; }
  .calendar-quickbar .filter-toggle { justify-self: start; }
  .calendar-quickbar .jump-launch, .calendar-quickbar .print-launch { justify-self: end; }
}

@media (min-width: 980px) {
  .calendar-shell > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) and (min-width: 641px) {
  .admin-year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .plan-event-focus { grid-template-columns: minmax(0, 1fr); }
  .plan-event-focus > p { grid-column: 1; }
  .plan-event-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discipline-limit-row { grid-template-columns: minmax(0, 1fr) 150px; }
  .plan-grid { --plan-label-width: 96px; }
}

@media (max-width: 1180px) and (min-width: 641px) {
  .top-card.no-print.has-install-action { grid-template-columns: minmax(0, 1fr) auto; }
  .top-card.no-print.has-install-action > div:first-child { grid-column: 1; grid-row: 1; }
  .top-card.no-print.has-install-action .top-actions { grid-column: 2; grid-row: 1; }
  .top-card.no-print.has-install-action .public-install-entry { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

@media (max-width: 900px) and (min-width: 641px) {
  .admin-submission-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submission-row-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .plan-competition-days, .rotten-plan-day-statuses { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 3px; }
  .plan-competition-day, .rotten-plan-day-statuses > span { flex: 0 0 min(76vw, 220px); scroll-snap-align: start; }
  .page { width: 100%; padding: 10px; }
  .card { padding: 15px; }
  .card.rotten-editor { padding: 0; }
  .top-card { align-items: flex-start; flex-wrap: wrap; }
  .top-card.no-print { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 7px 10px; align-items: start; }
  .top-card.no-print > div:first-child { display: contents; }
  .top-card.no-print .eyebrow { grid-column: 1; grid-row: 1; margin: 0; }
  .top-card.no-print h1 { grid-column: 1; grid-row: 2; align-self: center; font-size: 24px; overflow-wrap: anywhere; }
  .top-card.no-print .top-actions { grid-column: 2; grid-row: 1 / span 2; width: 112px; margin: 0; align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: 5px; transform: none; }
  .top-card.no-print .top-actions .btn { width: 100%; min-height: 44px; padding: 6px 7px; font-size: 12px; line-height: 1.1; }
  .top-card.no-print .top-actions .theme-control { width: 100%; }
  .top-card.no-print.has-install-action .public-install-entry { grid-column: 1 / -1; grid-row: 3; width: min(240px, 100%); justify-self: center; }
  .top-actions { width: 100%; margin-left: auto; justify-content: flex-end; gap: 7px; }
  .top-actions .btn { padding: 8px 10px; font-size: 14px; }
  h1 { font-size: 30px; }
  .calendar-shell { max-height: calc(100vh - 190px); }
  .event-card { grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; min-height: 0; padding: 14px; }
  .event-actions { width: 112px; align-items: stretch; flex-direction: column; flex-wrap: nowrap; }
  .action-main { padding: 9px 7px; font-size: 16px; }
  .event-cancelled-banner { min-height: 42px; padding: 7px 4px; font-size: 14px; }
  .event-ended-banner { min-height: 42px; padding: 7px 4px; font-size: 14px; }
  .event-actions .badge.announcement { display: flex; min-height: 42px; align-items: center; justify-content: center; padding: 6px 4px; font-size: 12.5px; line-height: 1.1; white-space: nowrap; }
  .event-share-actions.open { grid-template-columns: minmax(0, 1fr); }
  .event-share-actions.open .share, .event-share-actions.open .event-share-qr { width: 100%; height: 52px; min-height: 52px; }
  .event-share-actions.open .share { display: flex; align-items: center; justify-content: center; padding: 6px; font-size: 14px; line-height: 1.1; white-space: nowrap; }
  .event-share-actions.open .event-share-qr { display: flex; align-items: center; justify-content: center; padding: 3px; }
  .event-share-actions.open .event-share-qr img { width: 44px; height: 44px; }
  .event-title { font-size: 20px; }
  .event-title.title-long { font-size: 18.5px; }
  .event-title.title-compact { font-size: 17px; }
  .event-meta { font-size: 18px; }
  .event-disciplines, .event-count { font-size: 14px; }
  .weapon-box { padding: 7px; font-size: 11px; }
  .round-series-link { font-size: 11px; }
  .round-series-date { grid-template-columns: 24px minmax(0, 1fr); gap: 5px 8px; }
  .round-series-date span:nth-child(3), .round-series-date span:nth-child(4) { grid-column: 2; }
  .calendar-tools-card { padding: 8px; }
  .calendar-quickbar { gap: 5px; }
  .calendar-quickbar .calendar-tool { min-height: 44px; padding: 6px 5px; font-size: 12px; }
  .admin-calendar-filter-panel > summary { padding: 9px 10px; }
  .admin-calendar-view-heading, .admin-planner-heading { align-items: stretch; flex-direction: column; }
  .admin-calendar-view-switch { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-calendar-view-switch button { min-width: 0; padding: 7px 5px; font-size: 12px; }
  .admin-planner-heading { padding: 14px; }
  .admin-planner-month-tools { width: 100%; align-items: end; }
  .admin-planner-month-tools label { min-width: 0; flex: 1 1 auto; }
  .admin-planner-month-tools input { width: 100%; min-width: 0; }
  .admin-planner-month-tools > button { padding-inline: 8px; }
  .admin-planner-selection { height: 146px; align-items: stretch; flex-direction: column; gap: 8px; padding: 9px 14px; }
  .admin-planner-selection > div:first-child { min-height: 0; line-height: 1.25; }
  .admin-planner-selection small { display: block; margin-top: 2px; line-height: 1.3; }
  .admin-planner-selection .btn { width: 100%; }
  .admin-planner-selection-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .admin-planner-selection-actions .btn { min-width: 0; padding-inline: 6px; white-space: normal; }
  .admin-planner-choice-actions > button { width: 100%; min-width: 0; }
  .admin-planner-calendar { min-width: 784px; }
  .admin-planner-day { min-height: 138px; }
  .admin-year-heading { align-items: stretch; flex-direction: column; padding: 14px; }
  .admin-year-tools { width: 100%; }
  .admin-year-tools .btn:nth-child(2) { flex: 1 1 auto; }
  .admin-year-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 9px; }
  .admin-year-month-title { min-height: 44px; }
  .admin-calendar-filter-options { padding: 9px; }
  .admin-filter-group { padding: 9px; }
  .admin-filter-group-heading { align-items: stretch; flex-direction: column; }
  .admin-date-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-date-presets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-date-presets .btn, .admin-date-clear { width: 100%; min-width: 0; padding-inline: 6px; }
  .admin-filter-chip-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .admin-filter-chip-list > .chip, .admin-location-all, .admin-filter-reset .btn { width: 100%; }
  .admin-calendar-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-event-statuses { gap: 5px; }
  .admin-event-statuses .badge { min-height: 44px; padding: 5px 3px; font-size: 10.5px; }
  .admin-bulk-actions { grid-template-columns: minmax(0, 1fr); }
  .admin-bulk-selection-tools { align-items: stretch; flex-direction: column; }
  .admin-bulk-selection-tools .btn { width: 100%; }
  .admin-event-topline { align-items: flex-start; }
  .admin-event-topline-tools { max-width: 58%; }
  .admin-event-select span { display: none; }
  .admin-event-select { min-width: 36px; justify-content: center; padding: 5px; }
  .admin-bulk-preview-counts { gap: 5px; }
  .admin-bulk-preview-item { grid-template-columns: minmax(0, 1fr); }
  .admin-bulk-preview-item .badge { justify-self: start; }
  .admin-event-actions { gap: 6px; }
  .admin-event-actions > button { min-height: 44px; padding: 7px 4px; font-size: 12px; }
  .event-secondary-actions-body { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .rotten-plan-overview-actions .primary { width: 100%; min-height: 46px; }
  .settings-admin { padding: 14px; }
  .settings-panel-summary { min-height: 62px; padding: 11px 12px; }
  .settings-panel-summary strong { font-size: 17px; }
  .settings-panel-body { padding: 12px; }
  .settings-panel .section-heading { align-items: stretch; flex-direction: column; }
  .settings-panel .section-heading > button { width: 100%; min-height: 44px; }
  #category-editor { align-items: flex-end; padding: 0; }
  #category-editor .category-editor-modal { width: 100%; max-width: none; max-height: 90dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; overflow: auto; padding: 16px; }
  #category-editor .modal-head { position: sticky; z-index: 2; top: -16px; margin: -16px -16px 12px; border-bottom: 1px solid var(--line); background: #fff; padding: 16px; }
  #category-editor .modal-head .btn { min-width: 86px; min-height: 44px; padding: 8px 10px; }
  .rotten-page-heading, .plan-event-focus { grid-template-columns: minmax(0, 1fr); }
  .rotten-publication-state { justify-self: start; }
  .plan-event-focus > p { grid-column: 1; }
  .rotten-config-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-order-panel { grid-column: 1; }
  .plan-command-groups { grid-template-columns: minmax(0, 1fr); }
  .plan-editor-heading { grid-template-columns: minmax(0, 1fr); }
  .plan-editor-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid { --plan-label-width: 72px; grid-template-columns: var(--plan-label-width) repeat(var(--plan-stands), minmax(150px, 1fr)); }
  .plan-table-wrap.plan-table-scrolled .plan-grid { --plan-label-width: 56px; }
  .plan-slot { min-height: 108px; padding: 10px; }
  .print-option-row { align-items: flex-start; flex-direction: column; }
  .print-actions .primary { width: 100%; }
  .modal-backdrop { padding: 10px; }
  .filter-toolbar { grid-template-columns: minmax(0, 1fr); }
  .public-filter-reset { width: 100%; }
  #announcement-editor { height: 100dvh; min-height: 100dvh; align-items: flex-end; overflow: hidden; padding: max(6px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom)); }
  #announcement-editor .announcement-editor { width: 100%; max-width: none; max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))); margin: auto 0 0; border-radius: 16px 16px 0 0; padding: 15px; scroll-padding-block: 72px 42vh; }
  #announcement-editor input, #announcement-editor textarea { font-size: 16px; caret-color: currentColor; }
  #announcement-editor .modal-head { position: sticky; z-index: 3; top: -15px; margin: -15px -15px 12px; border-bottom: 1px solid var(--line); background: #fff; padding: 12px 15px 10px; }
  .table { font-size: 12px; }
  .admin-submission-head { flex-direction: column; }
  .admin-submission-actions { justify-content: flex-start; }
  .admin-submission-row { grid-template-columns: 1fr; gap: 8px; }
  .submission-row-actions { flex-direction: row; flex-wrap: wrap; }
  .meeting-overview-grid { grid-template-columns: 1fr; }
  .meeting-overview-total { align-items: flex-start; flex-direction: column; }
  .section-heading { align-items: center; }
  .year-copy-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .year-copy-arrow { display: none; }
  .year-copy-target { grid-column: 2; }
  .year-copy-filter-grid { grid-template-columns: 1fr; }
  .year-copy-filter-grid button { width: 100%; }
  .year-copy-filter-actions { align-items: stretch; flex-direction: column; }
  .year-copy-filter-actions .btn { width: 100%; }
  .year-copy-filter-actions p { margin: 0; }
  .year-copy-submitbar { align-items: stretch; flex-direction: column; }
  .year-copy-submitbar .row { display: grid; width: 100%; grid-template-columns: 1fr; }
  .year-copy-submitbar button { width: 100%; min-height: 46px; }
  .announcement-logo-body { grid-template-columns: 90px minmax(0, 1fr); }
  .announcement-logo-body img, .announcement-logo-empty { width: 90px; height: 72px; }
  .announcement-admin-row, .announcement-editor-actions, .announcement-viewer-tools { align-items: stretch; flex-direction: column; }
  .announcement-admin-actions { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .announcement-admin-actions .announcement-status-toggle { grid-column: 1 / -1; }
  .announcement-field-row { grid-template-columns: 1fr; }
  .announcement-deadline-control { grid-template-columns: minmax(0, 1fr); }
  .announcement-deadline-control button { width: 100%; }
  .announcement-paper { min-height: 0; padding: 18px 16px; }
  .announcement-paper-head { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .announcement-paper.without-logo .announcement-paper-head { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .announcement-paper-head img { width: 92px; height: 70px; }
  .announcement-paper-head p { font-size: 18px; }
  .announcement-paper-head strong { font-size: 14px; }
  .announcement-paper h2 { margin-top: 17px; font-size: 22px; }
  .announcement-facts > div { grid-template-columns: 1fr; gap: 3px; }
  .comment-list { grid-template-columns: 1fr; max-height: 280px; }
  .share-viewer-main { grid-template-columns: 1fr; }
  .share-large-qr { justify-self: center; }
  .share-event-facts > div { grid-template-columns: 82px minmax(0, 1fr); }
  .share-print-options .primary { width: 100%; justify-self: stretch; }
  .loan-event-card { grid-template-columns: 1fr; gap: 12px; }
  .loan-device-blocker { grid-template-columns: 1fr; }
  .loan-device-blocker button { width: 100%; }
  .loan-blocked-device { align-items: stretch; flex-direction: column; }
  .loan-small-action { width: 100%; }
  .cancellation-card { grid-template-columns: 1fr; gap: 12px; }
  .cancellation-card-action { width: 100%; min-width: 0; }
  .cancellation-card-action button { width: 100%; }
  .app-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .export-profile-statuses, .export-profile-choice, .export-source-choice { grid-template-columns: minmax(0, 1fr); }
  .export-profile-choice > legend, .export-source-choice > legend { grid-column: 1; }
  .export-profile-setting { grid-template-columns: minmax(0, 1fr); }
  .export-default-choice { justify-self: start; }
  .rotten-export-open, .rotten-export-change-body .btn { width: 100%; justify-self: stretch; min-height: 44px; }
  #admin-bulk-preview { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
  .admin-bulk-preview-modal { max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))); }
  .rotten-export-dialog-backdrop { align-items: flex-end; padding: max(6px, env(safe-area-inset-top)) 0 max(6px, env(safe-area-inset-bottom)); }
  .rotten-export-dialog, .rotten-export-change-dialog { width: 100%; max-width: none; max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))); margin: auto 0 0; border-radius: 18px 18px 0 0; padding: 16px; }
  .rotten-export-dialog .modal-head { top: -16px; margin: -16px -16px 10px; padding: 16px 16px 11px; }
  .rotten-export-dialog .modal-head h2 { font-size: 24px; }
  .rotten-export-actions { align-items: stretch; flex-direction: column; }
  .rotten-export-actions button { width: 100%; }
}

@media print {
  html, body { margin: 0; background: #fff; overflow: hidden; }
  .role-sheet-backdrop { display: none !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.admin-browser-print, body.admin-browser-print { overflow: visible; }
  .page { width: auto; margin: 0; padding: 0; }
  body:not(.admin-browser-print) .page > *:not(.print-sheet), .modal-backdrop { display: none !important; }
  body.admin-browser-print .page { width: auto; margin: 0; padding: 0; }
  body.admin-browser-print .toolbar,
  body.admin-browser-print .admin-calendar-filter-panel,
  body.admin-browser-print button { display: none !important; }
  body.admin-browser-print .card { box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
  .print-sheet { display: flex !important; flex-direction: column; overflow: hidden; break-inside: avoid; page-break-inside: avoid; }
  .print-sheet.print-portrait { width: 197mm; height: 284mm; }
  .print-sheet.print-portrait.mobile-print-page { width: auto !important; height: auto !important; min-width: 0; min-height: 0; max-width: 100%; max-height: none; overflow: visible; break-inside: avoid; page-break-inside: avoid; break-after: auto; page-break-after: auto; }
  .print-sheet-head { flex: 0 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8mm; height: 14mm; padding: 0 1mm 2.5mm; border-bottom: .4mm solid var(--green); }
  .print-sheet-head strong { color: var(--green); font-size: 8pt; }
  .print-sheet-head h1 { margin: .5mm 0 0; font-size: 17pt; }
  .print-sheet-head > div:last-child { color: #555; font-size: 8pt; text-align: right; }
  .print-month-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(var(--print-columns), minmax(0, 1fr)); grid-template-rows: repeat(var(--print-rows), minmax(0, 1fr)); gap: 2.3mm; padding-top: 2.3mm; }
  .print-month { min-width: 0; min-height: 0; overflow: hidden; border: .25mm solid #cfcfcf; border-radius: 1.5mm; padding: 1.8mm 2mm; }
  .print-sheet.print-portrait.mobile-print-page .print-sheet-head { width: 100%; height: auto; min-height: 14mm; }
  .print-sheet.print-portrait.mobile-print-page .print-sheet-head > div:first-child { flex: 1 1 auto; min-width: 0; }
  .print-sheet.print-portrait.mobile-print-page .print-sheet-head > div { min-width: 0; }
  .print-sheet.print-portrait.mobile-print-page .print-sheet-head > div:last-child { flex: 0 1 46%; width: auto; max-width: 46%; }
  .print-sheet.print-portrait.mobile-print-page .print-month-grid { flex: 0 0 auto; width: 100%; min-width: 0; grid-template-rows: repeat(var(--print-rows), auto); align-content: start; }
  .print-sheet.print-portrait.mobile-print-page .print-month { overflow: visible; break-inside: avoid; page-break-inside: avoid; }
  .print-sheet.print-portrait.mobile-print-page .print-event { break-inside: avoid; page-break-inside: avoid; }
  .print-sheet.print-portrait.mobile-print-page .print-event-main span { display: block; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
  .print-sheet.print-portrait.mobile-print-page .print-event-meta { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
  .print-month h2 { margin: 0 0 1mm; color: #111; border-bottom: .2mm solid #ddd; padding-bottom: .8mm; white-space: nowrap; }
  .print-event-list { min-height: 0; }
  .print-event { min-width: 0; border-bottom: .15mm solid #e4e4e4; padding: .7mm 0; line-height: 1.12; }
  .print-event:last-child { border-bottom: 0; }
  .print-event-main { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 1.3mm; align-items: baseline; }
  .print-event-main strong { white-space: nowrap; }
  .print-event-main span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
  .print-event-meta { color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .35mm; }
  .density-large .print-month h2 { font-size: 14pt; }
  .density-large .print-event { padding: 1.1mm 0; font-size: 9.6pt; }
  .density-large .print-event-meta { font-size: 8.6pt; }
  .density-medium .print-month h2 { font-size: 11.5pt; }
  .density-medium .print-event { padding: .8mm 0; font-size: 8pt; }
  .density-medium .print-event-meta { font-size: 7.2pt; }
  .density-small .print-month h2 { font-size: 9.5pt; }
  .density-small .print-event { padding: .55mm 0; font-size: 6.9pt; }
  .density-small .print-event-meta { font-size: 6.2pt; }
  .density-compact .print-month h2 { font-size: 8.7pt; }
  .density-compact .print-event { padding: .42mm 0; font-size: 6.1pt; }
  .density-compact .print-event-meta { font-size: 5.6pt; }
  .share-print-sheet { display: block !important; width: 197mm; height: auto; overflow: visible; break-inside: auto; page-break-inside: auto; }
  .share-print-page { box-sizing: border-box; width: 197mm; min-height: 284mm; padding: 7mm 9mm 8mm; break-after: page; page-break-after: always; }
  .share-print-sheet > :last-child { break-after: auto; page-break-after: auto; }
  .share-print-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8mm; border-bottom: .7mm solid var(--green); padding-bottom: 3mm; }
  .share-print-head strong { color: var(--green); font-size: 9pt; }
  .share-print-head h1 { margin-top: 1mm; font-size: 20pt; }
  .share-print-head span { color: #555; font-size: 8pt; }
  .share-print-summary { display: grid; grid-template-columns: 50mm minmax(0, 1fr); gap: 8mm; align-items: start; margin-top: 8mm; }
  .share-print-summary > img { display: block; width: 50mm; height: 50mm; }
  .share-print-summary .share-event-facts > div { grid-template-columns: 30mm minmax(0, 1fr); gap: 3mm; padding: 1.5mm 0; font-size: 9pt; }
  .share-print-summary p { margin-top: 3mm; color: #555; font-size: 8pt; }
  .share-print-sheet .announcement-paper { box-sizing: border-box; width: 197mm; height: 284mm; min-height: 284mm; margin: 0; padding: 7mm 9mm 6mm; box-shadow: none; overflow: hidden; break-after: page; page-break-after: always; }
  .share-print-sheet .announcement-paper:last-child { break-after: auto; page-break-after: auto; }
  .share-print-sheet .announcement-paper-head { grid-template-columns: 47mm minmax(0, 1fr); gap: 6mm; border-bottom-width: .7mm; padding-bottom: 3mm; }
  .share-print-sheet .announcement-paper-head img { width: 47mm; height: 29mm; }
  .share-print-sheet .announcement-paper-head p { margin-bottom: 1.4mm; font-size: 16pt; }
  .share-print-sheet .announcement-paper-head strong { font-size: 11.5pt; }
  .share-print-sheet .announcement-paper h2 { margin: 4mm 0 2mm; font-size: 16pt; }
  .share-print-sheet .announcement-subtitle { gap: 1mm 4mm; margin-bottom: 2.5mm; font-size: 8.5pt; }
  .share-print-sheet .announcement-facts > div { grid-template-columns: 37mm minmax(0, 1fr); gap: 3mm; padding: 1.15mm 0; font-size: 7.7pt; line-height: 1.14; }
  .share-print-sheet .announcement-facts dd { line-height: 1.16; }
  .share-print-sheet .announcement-paper footer { margin-top: 2.5mm; padding-top: 1.5mm; font-size: 6.5pt; }
  .share-print-sheet.share-mobile-print .share-print-page {
    height: auto;
    min-height: 0;
    overflow: visible;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .announcement-print-sheet { display: block !important; width: 197mm; height: auto; overflow: visible; }
  .announcement-print-sheet .announcement-paper { box-sizing: border-box; width: 197mm; height: 284mm; min-height: 284mm; margin: 0; padding: 7mm 9mm 6mm; box-shadow: none; overflow: hidden; break-after: page; page-break-after: always; }
  .announcement-print-sheet .announcement-paper:last-child { break-after: auto; page-break-after: auto; }
  .announcement-print-sheet .announcement-paper-head { grid-template-columns: 47mm minmax(0, 1fr); gap: 6mm; border-bottom-width: .7mm; padding-bottom: 3mm; }
  .announcement-print-sheet .announcement-paper-head img { width: 47mm; height: 29mm; }
  .announcement-print-sheet .announcement-paper-head p { margin-bottom: 1.4mm; font-size: 16pt; }
  .announcement-print-sheet .announcement-paper-head strong { font-size: 11.5pt; }
  .announcement-print-sheet .announcement-paper h2 { margin: 4mm 0 2mm; font-size: 16pt; }
  .announcement-print-sheet .announcement-subtitle { gap: 1mm 4mm; margin-bottom: 2.5mm; font-size: 8.5pt; }
  .announcement-print-sheet .announcement-facts { flex: 1; min-height: 0; }
  .announcement-print-sheet .announcement-facts > div { grid-template-columns: 34mm minmax(0, 1fr); gap: 1.5mm; align-content: center; padding: 1.15mm 0; line-height: 1.16; }
  .announcement-print-sheet .announcement-facts dd { line-height: 1.2; overflow-wrap: normal; word-break: normal; }
  .announcement-print-sheet .announcement-density-spacious .announcement-paper-head p { font-size: 18pt; }
  .announcement-print-sheet .announcement-density-spacious .announcement-paper-head strong { font-size: 12.5pt; }
  .announcement-print-sheet .announcement-density-spacious h2 { font-size: 18pt; }
  .announcement-print-sheet .announcement-density-spacious .announcement-subtitle { font-size: 10pt; }
  .announcement-print-sheet .announcement-density-spacious .announcement-facts > div { padding: 1.7mm 0; font-size: 9.6pt; }
  .announcement-print-sheet .announcement-density-regular .announcement-facts > div { padding: 1.4mm 0; font-size: 8.8pt; }
  .announcement-print-sheet .announcement-density-regular .announcement-subtitle { font-size: 9.2pt; }
  .announcement-print-sheet .announcement-density-dense .announcement-paper-head { grid-template-columns: 43mm minmax(0, 1fr); gap: 4mm; padding-bottom: 2mm; }
  .announcement-print-sheet .announcement-density-dense .announcement-paper-head img { width: 43mm; height: 26mm; }
  .announcement-print-sheet .announcement-density-dense h2 { margin: 2.8mm 0 1.5mm; font-size: 14pt; }
  .announcement-print-sheet .announcement-density-dense .announcement-subtitle { margin-bottom: 1.7mm; font-size: 7.8pt; }
  .announcement-print-sheet .announcement-density-dense .announcement-facts > div { padding: .8mm 0; font-size: 7.5pt; }
  .announcement-print-sheet .announcement-density-compact { padding-top: 5mm; padding-bottom: 4mm; }
  .announcement-print-sheet .announcement-density-compact .announcement-paper-head { grid-template-columns: 38mm minmax(0, 1fr); gap: 3mm; padding-bottom: 1.5mm; }
  .announcement-print-sheet .announcement-density-compact .announcement-paper-head img { width: 38mm; height: 22mm; }
  .announcement-print-sheet .announcement-density-compact .announcement-paper-head p { margin-bottom: .7mm; font-size: 13pt; }
  .announcement-print-sheet .announcement-density-compact .announcement-paper-head strong { font-size: 9.5pt; }
  .announcement-print-sheet .announcement-density-compact h2 { margin: 2mm 0 1mm; font-size: 12pt; }
  .announcement-print-sheet .announcement-density-compact .announcement-subtitle { margin-bottom: 1mm; font-size: 6.8pt; }
  .announcement-print-sheet .announcement-density-compact .announcement-facts > div { grid-template-columns: 31mm minmax(0, 1fr); gap: 1mm; padding: .45mm 0; font-size: 6.7pt; }
  .announcement-print-sheet .announcement-paper footer { margin-top: 2.5mm; padding-top: 1.5mm; font-size: 6.5pt; }
  .share-print-sheet .announcement-paper.without-logo .announcement-paper-head,
  .announcement-print-sheet .announcement-paper.without-logo .announcement-paper-head,
  .rotten-plan-print-announcements .announcement-paper.without-logo .announcement-paper-head { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .announcement-mobile-print {
    width: 197mm;
    break-inside: auto;
    page-break-inside: auto;
  }
  .announcement-mobile-print .announcement-paper {
    width: 197mm;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .announcement-mobile-print .announcement-facts { flex: 0 0 auto; }
  .announcement-mobile-print .announcement-facts > div {
    flex: 0 0 auto;
  }
  .announcement-mobile-print .announcement-paper footer {
    margin-top: 2.5mm;
  }
  .meeting-print-sheet { display: flex !important; width: 194mm; height: 279mm; padding: 5mm 6mm 4mm; color: #111; background: #fff; overflow: hidden; }
  .meeting-print-sheet.mobile-print-page { width: 192mm; height: 276mm; }
  .meeting-print-head { display: flex; flex: 0 0 auto; align-items: flex-end; justify-content: space-between; gap: 8mm; border-bottom: .6mm solid var(--green); padding-bottom: 3mm; }
  .meeting-print-head p { margin: 0; color: var(--green); font-size: 9pt; font-weight: 800; }
  .meeting-print-head h1 { margin: 1mm 0 0; font-size: 20pt; }
  .meeting-print-head > div:last-child { font-size: 9pt; font-weight: 700; text-align: right; }
  .meeting-print-total { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 5mm; margin: 3mm 0; border: .25mm solid #ddd; padding: 2mm 2.5mm; font-size: 9pt; }
  .meeting-print-grid { display: grid; flex: 1 1 auto; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4mm; overflow: hidden; }
  .meeting-print-grid > section { min-width: 0; border: .25mm solid #d5d5d5; padding: 3mm; overflow: hidden; }
  .meeting-print-grid h2 { margin: 0 0 2mm; border-bottom: .25mm solid #ddd; padding-bottom: 1.5mm; font-size: 13pt; }
  .meeting-print-sheet .meeting-person-row { padding: 1.7mm .5mm; line-height: 1.18; }
  .meeting-print-sheet .meeting-person-row strong { font-size: 9pt; }
  .meeting-print-sheet .meeting-person-row span { font-size: 7.5pt; }
  .meeting-print-sheet footer { flex: 0 0 auto; margin-top: 2.5mm; border-top: .2mm solid #ddd; padding-top: 1.5mm; color: #666; font-size: 7pt; text-align: right; }
  .meeting-print-regular .meeting-person-row { padding: 1.2mm .5mm; }
  .meeting-print-regular .meeting-person-row strong { font-size: 8pt; }
  .meeting-print-regular .meeting-person-row span { font-size: 6.8pt; }
  .meeting-print-dense .meeting-person-row { padding: .75mm .4mm; }
  .meeting-print-dense .meeting-person-row strong { font-size: 7pt; }
  .meeting-print-dense .meeting-person-row span { font-size: 6pt; }
  .meeting-print-compact .meeting-person-row { padding: .45mm .3mm; }
  .meeting-print-compact .meeting-person-row strong { font-size: 6.2pt; }
  .meeting-print-compact .meeting-person-row span { font-size: 5.4pt; }
}

@media screen and (max-width: 640px) {
  .top-card.no-print .top-actions .role-access-chip {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
    padding: 6px 7px;
    font-size: 11px;
    line-height: 1.12;
  }
  .top-card.no-print .top-actions .role-access-chip > span { display: none; }
  .role-sheet-backdrop { padding: 0; }
  .role-sheet { width: 100%; max-height: min(88vh, 760px); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 18px 18px 0 0; }
  .role-sheet-head { padding-right: 14px; padding-left: 14px; }
  .role-sheet-nav { padding-right: 8px; padding-left: 8px; }
  .role-sheet-profile { padding-right: 14px; padding-left: 14px; }
  .role-sheet-display { display: block; padding-right: 14px; padding-left: 14px; }
  .workspace-header .theme-control { display: none; }
  .workspace-page { padding-top: 6px; }
  .workspace-header { top: 5px; min-height: 76px; gap: 8px; padding: 11px 12px; }
  .workspace-title .eyebrow { font-size: 11px; }
  .workspace-title h1 { font-size: 22px; }
  .workspace-title p:last-child { font-size: 10px; }
  .workspace-header-actions { gap: 5px; }
  .workspace-calendar-jump { display: none; }
  .workspace-refresh { width: 44px; height: 44px; font-size: 20px; }
  .workspace-header .role-access-chip { max-width: 146px; min-height: 44px; border-radius: 8px; padding: 6px 8px; font-size: 11px; line-height: 1.12; }
  .workspace-header .role-access-chip > span { display: none; }
  .priority-task-card .section-heading { align-items: flex-start; }
  .priority-task-card h2, .overview-section h2, .overview-shortcuts h2 { font-size: 23px; }
  .task-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px; }
  .overview-event-row { grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
  .overview-event-row .badge { grid-column: 2; justify-self: start; }
  .shortcut-grid { grid-template-columns: 1fr; }
  .overview-section .section-heading { align-items: flex-start; }
  .admin-submission-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 12px; }
  .admin-submission-actions { align-items: center; justify-content: flex-end; flex-direction: row; gap: 5px; }
  .admin-submission-actions .badge { padding: 5px 7px; font-size: 11px; }
  .schedule-review-notification { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 11px; }
  .schedule-review-notification-actions { justify-content: stretch; }
  .schedule-review-notification-actions .btn { flex: 1 1 150px; }
  .schedule-review-notification-actions .subtle-read-action { flex: 1 1 auto; text-align: center; }
  .read-state-label { display: none; }
  .submission-chevron { font-size: 22px; }
  .submission-group-tools { justify-content: flex-start; }
  .weapon-request-head { align-items: flex-start; }
  .loan-event-card.compact { grid-template-columns: 1fr; }
  .completed-request-note { align-items: flex-start; flex-direction: column; }
  .completed-request-edit { width: 100%; }
  .category-admin-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .category-admin-copy { grid-column: 1 / -1; }
  .category-order-actions { grid-column: 1; }
  .category-admin-row > [data-action="category-edit"], .category-admin-row > [data-action="category-toggle"] { min-height: 44px; }
  #event-editor { align-items: flex-end; padding: max(6px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom)); }
  .event-editor-modal { width: 100%; max-width: none; max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))); margin: auto 0 0; border-radius: 16px 16px 0 0; padding: 15px; }
  .event-editor-modal-head { top: -15px; margin: -15px -15px 12px; padding: 12px 15px 10px; }
  .event-editor-modal-head h2 { font-size: 22px; }
  .event-editor-modal-head p { margin: 3px 0 0; }
  .event-editor-head-actions { gap: 5px; }
  .event-editor-head-actions button { min-width: 74px; padding: 8px 9px; font-size: 13px; }
  .event-editor-base-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-title-field { grid-column: 1 / -1; }
  .event-kind-choices { grid-template-columns: minmax(0, 1fr); }
  .event-editor-compact-grid { grid-template-columns: minmax(0, 1fr); }
  .event-series-editor-panel { grid-template-columns: minmax(0, 1fr); }
  .competition-day-editor-row { grid-template-columns: 28px repeat(2, minmax(0, 1fr)); align-items: end; }
  .competition-day-number { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .competition-day-editor-row > label:nth-of-type(1) { grid-column: 2 / -1; }
  .competition-day-editor-row > label:nth-of-type(2) { grid-column: 2; }
  .competition-day-editor-row > label:nth-of-type(3) { grid-column: 3; }
  .competition-primary-label, .competition-day-remove { grid-column: 2 / -1; }
}

@media screen and (max-width: 480px) {
  .event-editor-modal-head > div:first-child p { display: none; }
  .event-editor-modal-head h2 { font-size: 20px; }
  .event-editor-head-actions button { min-width: 68px; padding: 7px 8px; font-size: 12px; }
  .calendar-tool .label-full { display: none; }
  .calendar-tool .label-short { display: inline; }
  .admin-event-statuses .status-label-full { display: none; }
  .admin-event-statuses .status-label-short { display: inline; }
  .plan-settings { grid-template-columns: minmax(0, 1fr); }
  .plan-event-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-event-facts > span { padding: 6px 4px; }
  .plan-panel > summary, .plan-command-heading, .free-list > summary { padding: 9px 10px; }
  .plan-command-heading { grid-template-columns: auto minmax(0, 1fr) auto; }
  .plan-command-heading .plan-summary-badges { grid-column: 2; justify-self: start; }
  .plan-command-heading .plan-panel-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .rotten-editor-summary { grid-template-columns: auto minmax(0, 1fr) auto; padding: 11px 12px; }
  .rotten-editor-summary .plan-summary-badges { grid-column: 2; justify-self: start; }
  .rotten-editor-summary .plan-panel-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .rotten-editor-body { padding: 12px; }
  .plan-editor-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-editor-actions .danger { grid-column: 1 / -1; }
  .plan-table-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .plan-grid { --plan-label-width: 64px; grid-template-columns: var(--plan-label-width) repeat(var(--plan-stands), minmax(140px, 1fr)); }
  .plan-table-wrap.plan-table-scrolled .plan-grid { --plan-label-width: 52px; }
  .plan-row-label { grid-template-columns: 1fr; justify-items: start; gap: 2px; padding-right: 6px; padding-left: 6px; }
  .plan-row-label strong { grid-row: 1; }
  .plan-row-word { display: none; }
  .plan-row-label small { grid-column: 1; }
  .plan-table-wrap.plan-table-scrolled .plan-corner-word { display: none; }
  .plan-table-wrap.plan-table-scrolled .plan-corner-short { display: inline; }
  .discipline-limit-heading { align-items: stretch; flex-direction: column; }
  .discipline-limit-heading .badge { align-self: start; }
  .discipline-limit-row { grid-template-columns: minmax(0, 1fr); }
  .discipline-capacity-choice { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .discipline-capacity-badge { grid-column: 2; justify-self: start; }
  .completed-requests-summary { padding: 13px 14px; }
  .completed-requests-body { padding: 14px; }
  .event-editor-section-head { padding: 11px; }
  .event-editor-section-body { padding: 11px; }
  .event-editor-base-grid { grid-template-columns: minmax(0, 1fr); }
  .event-title-field, .event-extra-filter-details, .event-time-range { grid-column: 1; }
  .event-time-range { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-option-grid { grid-template-columns: minmax(0, 1fr); }
  .event-series-options-heading, .competition-days-heading { align-items: stretch; flex-direction: column; }
  .event-series-options-heading .badge { align-self: flex-start; }
  .competition-days-heading .btn { width: 100%; }
  .rotten-plan-overview-facts { gap: 5px; }
  .rotten-plan-overview-facts > span { min-height: 64px; padding: 5px 3px; }
  .rotten-plan-overview-facts strong { font-size: 19px; }
  .settings-admin { padding: 12px; }
  .settings-panel-body { padding: 10px; }
  .category-editor-modal .modal-head h2 { font-size: 21px; }
  .category-editor-modal .choice { gap: 9px; padding: 10px; }
}

@media screen and (max-width: 380px) {
  .event-time-range { grid-template-columns: minmax(0, 1fr); }
  .event-time-range > strong, .event-time-range-help, .event-time-legacy { grid-column: 1; }
  .top-card.no-print { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .top-card.no-print > div:first-child { display: block; grid-column: 1; grid-row: 1; min-width: 0; }
  .top-card.no-print .eyebrow { grid-column: auto; grid-row: auto; margin: 0 0 6px; }
  .top-card.no-print h1 { grid-column: auto; grid-row: auto; font-size: 23px; overflow-wrap: normal; word-break: normal; }
  .top-card.no-print .top-actions { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); width: 100%; }
  .top-card.no-print .top-actions .btn, .top-card.no-print .top-actions .role-access-chip { width: 100%; min-height: 44px; }
  .workspace-header { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .workspace-header-actions { width: 100%; justify-content: space-between; }
  .workspace-header .role-access-chip { max-width: none; }
  .user-admin-actions { grid-template-columns: minmax(0, 1fr); }
  .plan-event-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .plan-event-facts small { font-size: 10px; }
  .plan-command-group > div, .plan-editor-actions { grid-template-columns: minmax(0, 1fr); }
  .plan-editor-actions .danger { grid-column: 1; }
  .plan-summary-badges .badge { padding: 5px 7px; font-size: 11px; }
  .announcement-logo-body { grid-template-columns: minmax(0, 1fr); }
  .announcement-logo-body img, .announcement-logo-empty { width: 100%; height: 86px; }
  .announcement-logo-body .row { align-items: stretch; flex-direction: column; }
  .announcement-logo-body .row .btn { width: 100%; }
  .announcement-admin-actions { grid-template-columns: minmax(0, 1fr); }
  .announcement-admin-actions .announcement-status-toggle { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .plan-panel-chevron, .completed-request-edit-chevron, .announcement-logo-chevron, .event-editor-chevron, .settings-panel-chevron { transition: none; }
  .plan-loading-dot { animation: none; }
}
.backup-admin hr {
  border: 0;
  border-top: 1px solid var(--line, #d9dddc);
  margin: 22px 0;
}

.backup-section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.backup-preview {
  margin-top: 4px;
}

.rotten-viewer { max-height: calc(100vh - 30px); overflow: auto; }
.rotten-logo-preload { position: fixed; width: 1px; height: 1px; left: -100px; top: -100px; opacity: .01; pointer-events: none; }
.rotten-view-mode { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
.rotten-view-mode .segmented { display: inline-flex; }
.rotten-print-options-toggle.active { border-color: #a9d8ee; background: #edf8fd; color: #075b7d; font-weight: 750; }
.rotten-viewer-tools { position: sticky; top: -22px; z-index: 3; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; gap: 14px; align-items: end; margin: 0 -6px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); padding: 10px 6px 12px; }
.rotten-viewer-tools .segmented { margin-top: 7px; }
.rotten-announcement-choice { margin: 12px 0; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.rotten-announcement-choice legend { padding: 0 5px; font-weight: 800; }
.rotten-announcement-choice .choice { display: inline-flex; margin: 4px 7px 4px 0; padding: 8px 10px; }
.rotten-screen-preview { border: 1px solid var(--line); border-radius: 9px; background: #f7f8f8; padding: 14px; }
.rotten-screen-event { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--green); padding-bottom: 9px; }
.rotten-screen-event span { color: #555; text-align: right; }
.rotten-layout-note { margin: 10px 0 0; text-align: center; }
.rotten-portrait-rows { display: grid; gap: 10px; }
.rotten-portrait-row { border: 1px solid #d9dddc; border-radius: 8px; background: #fff; padding: 10px 12px; }
.rotten-portrait-row h3 { margin: 0 0 7px; color: var(--green); font-size: 16px; }
.rotten-portrait-entries { display: grid; gap: 5px; }
.rotten-portrait-entry { display: grid; grid-template-columns: 92px minmax(120px, .6fr) minmax(180px, 1fr); gap: 9px; align-items: baseline; border-top: 1px solid #eee; padding: 6px 0; }
.rotten-portrait-entry:first-child { border-top: 0; }
.rotten-portrait-entry small { color: #555; }
.rotten-portrait-entry.empty { min-height: 31px; color: #444; }
.rotten-empty-slot, .rotten-empty-detail { min-height: 1em; }
.rotten-matrix-scroll { max-width: 100%; overflow-x: auto; }
.rotten-matrix { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
.rotten-matrix th, .rotten-matrix td { min-width: 120px; border: 1px solid #d9dddc; padding: 8px; text-align: left; vertical-align: top; }
.rotten-matrix th:first-child { width: 125px; min-width: 125px; }
.rotten-matrix thead th { background: #f0f3f2; font-size: 13px; }
.rotten-matrix tbody th { background: #f7faf9; color: var(--green); font-size: 13px; }
.rotten-matrix td strong, .rotten-matrix td small { display: block; }
.rotten-matrix td small { margin-top: 3px; color: #555; font-size: 11px; }
.rotten-matrix td.empty { min-height: 2.5em; background: #fafafa; }
.member-access-entry.signed-in { border-color: #82ceb3; background: var(--green-soft); color: #004c35; font-weight: 750; }
.action-main.already-registered { border-color: #68c8a6; background: #dff8ef; color: #004b35; }
.member-registration-badge { width: 100%; border-color: #82ceb3; background: var(--green-soft); color: #004c35; cursor: pointer; }
.member-access-modal { max-width: 920px; }
.member-login-form { max-width: 480px; }
.member-form-identity { border-color: #9dd8c4; background: #effbf6; }
.member-access-session-actions { display: flex; justify-content: flex-end; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.member-own-heading, .member-admin-row-head, .member-activity-heading-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.member-own-heading h3, .member-own-editor-heading h3 { margin: 0; }
.member-own-list, .member-admin-list, .member-activity-list { display: grid; gap: 10px; }
.member-own-list { margin-top: 12px; }
.member-own-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 13px 14px; }
.member-own-row > div:first-child { display: grid; min-width: 0; gap: 3px; }
.member-own-row span, .member-own-row small { color: var(--muted); overflow-wrap: anywhere; }
.member-own-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.member-own-editor { display: grid; gap: 14px; }
.member-own-editor > .btn:first-child { justify-self: start; }
.member-admin { display: grid; gap: 12px; }
.member-access-readiness { margin: 0; }
.member-admin-edit-form { display: grid; gap: 12px; }
.member-admin-edit-form.inactive { background: #f4f4f4; }
.member-admin-row-head > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.member-number-chip { display: inline-grid; min-width: 48px; place-items: center; border-radius: 999px; background: #163f34; color: #fff; padding: 5px 9px; font-variant-numeric: tabular-nums; font-weight: 850; letter-spacing: .08em; }
.member-admin-actions { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.member-admin-actions button { min-height: 44px; }
.member-activity-section { display: grid; gap: 10px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.member-activity-section .section-heading { margin: 0; }
.member-activity-section h3 { margin: 0; }
.member-activity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--card); padding: 11px 13px; }
.member-activity-row.new { border-color: #8bd4f4; background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(97, 198, 241, .18); }
.member-activity-row > div { display: grid; min-width: 0; gap: 3px; }
.member-activity-row span { color: var(--muted); font-size: 13px; }

.test-environment-banner {
  position: fixed;
  z-index: 45;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 7px 11px;
  border: 1px solid #9d6c00;
  border-radius: 6px;
  background: #fff4cc;
  color: #6b4700;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 2px 8px rgb(0 0 0 / 14%);
}

@media (max-width: 700px) {
  .backup-section-list {
    grid-template-columns: 1fr;
  }
  .member-own-row, .member-activity-row { grid-template-columns: minmax(0, 1fr); }
  .member-own-actions, .member-admin-actions { justify-content: stretch; }
  .member-own-actions button, .member-admin-actions button { flex: 1 1 150px; }
  .member-own-heading, .member-admin-row-head, .member-activity-heading-actions { align-items: stretch; flex-direction: column; }
  .member-own-heading > button, .member-activity-heading-actions > button { width: 100%; }
  .member-access-session-actions .btn { width: 100%; }
  .rotten-viewer-tools { position: static; grid-template-columns: 1fr; }
  .rotten-viewer-tools .primary { width: 100%; }
  .rotten-screen-event { align-items: flex-start; flex-direction: column; }
  .rotten-screen-event span { text-align: left; }
  .rotten-portrait-entry { grid-template-columns: 76px minmax(0, 1fr); }
  .rotten-portrait-entry small { grid-column: 2; }
  .rotten-view-mode { align-items: stretch; flex-direction: column; }
  .rotten-view-mode .segmented { display: flex; width: 100%; }
  .rotten-view-mode .segmented button { flex: 1 1 50%; }
  .rotten-print-options-toggle { width: 100%; }
}

@media screen and (max-width: 700px) {
  .rotten-portrait-entry small { min-height: 2.35em; }
}

@media print {
  .test-environment-banner { display: none !important; }
  .rotten-plan-print-sheet { display: flex !important; box-sizing: border-box; color: #111; background: #fff; overflow: hidden; break-after: page; page-break-after: always; }
  .rotten-plan-print-sheet:not(.rotten-print-with-announcements) { break-after: auto; page-break-after: auto; }
  .rotten-print-portrait { width: 197mm; height: 284mm; padding: 5mm 6mm 4mm; }
  .rotten-print-landscape { width: 284mm; height: 197mm; padding: 4mm 5mm 3mm; }
  .rotten-plan-print-sheet.mobile-print-page {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    overflow: visible !important;
    break-inside: auto;
    page-break-inside: auto;
  }
  .rotten-print-head { display: flex; flex: 0 0 auto; align-items: flex-end; justify-content: space-between; gap: 8mm; border-bottom: .65mm solid var(--green); padding-bottom: 2.5mm; }
  .rotten-print-head p { margin: 0; color: var(--green); font-size: 8pt; font-weight: 800; }
  .rotten-print-head h1 { margin: .5mm 0 0; font-size: 19pt; }
  .rotten-print-head > div:last-child { max-width: 60%; font-size: 8.5pt; text-align: right; }
  .rotten-print-event-data { display: grid; flex: 0 0 auto; grid-template-columns: 1.25fr 1fr .65fr; gap: 3mm; margin: 2.5mm 0; border: .25mm solid #d5d5d5; padding: 1.8mm 2.2mm; font-size: 7.5pt; }
  .rotten-print-event-data span { display: grid; gap: .5mm; }
  .rotten-print-event-data strong { color: #555; font-size: 6.5pt; text-transform: uppercase; }
  .rotten-print-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .rotten-plan-print-sheet footer { flex: 0 0 auto; margin-top: 2mm; border-top: .2mm solid #ddd; padding-top: 1mm; color: #666; font-size: 6.5pt; text-align: right; }
  .rotten-plan-print-sheet.mobile-print-page .rotten-print-body { display: block; flex: none; height: auto; min-height: 0; overflow: visible; }
  .rotten-plan-print-sheet.mobile-print-page footer { display: block; flex: none; position: static; margin-top: 2mm; }
  .rotten-plan-print-sheet.mobile-print-page.rotten-print-with-announcements { break-after: page; page-break-after: always; }
  .rotten-plan-print-sheet.mobile-print-page:not(.rotten-print-with-announcements) { break-after: auto; page-break-after: auto; }
  .rotten-plan-print-sheet .rotten-portrait-rows { display: grid; gap: 1.6mm; }
  .rotten-plan-print-sheet .rotten-portrait-row { break-inside: avoid; border-width: .2mm; border-radius: 1mm; padding: 1.5mm 2mm; }
  .rotten-plan-print-sheet .rotten-portrait-row h3 { margin: 0 0 .7mm; font-size: 9pt; }
  .rotten-plan-print-sheet .rotten-portrait-entry { grid-template-columns: 17mm 32mm minmax(0, 1fr); gap: 1.5mm; border-top-width: .15mm; padding: .65mm 0; font-size: 7.5pt; line-height: 1.12; }
  .rotten-plan-print-sheet .rotten-portrait-entry.empty { min-height: 0; }
  .rotten-plan-print-sheet .rotten-empty-detail { display: none; }
  .rotten-plan-print-sheet .rotten-portrait-entry small { font-size: 6.6pt; }
  .rotten-plan-print-sheet.mobile-print-page .rotten-portrait-entry { min-height: 2.35em; }
  .rotten-plan-print-sheet.mobile-print-page .rotten-portrait-entry small { min-height: 2.35em; }
  .rotten-plan-print-sheet.mobile-print-page .rotten-portrait-entry.empty { min-height: 2.35em; }
  .rotten-plan-print-sheet.mobile-print-page .rotten-empty-detail { display: block; height: 2.35em; }
  .rotten-print-spacious .rotten-portrait-rows { grid-template-columns: 1fr; gap: 3mm; }
  .rotten-print-spacious .rotten-portrait-row { padding: 3mm 4mm; }
  .rotten-print-spacious .rotten-portrait-row h3 { margin-bottom: 1.5mm; font-size: 12pt; }
  .rotten-print-spacious .rotten-portrait-entry { grid-template-columns: 25mm 44mm minmax(0, 1fr); gap: 2.5mm; padding: 1.4mm 0; font-size: 10pt; }
  .rotten-print-spacious .rotten-portrait-entry small { font-size: 8.7pt; }
  .rotten-print-dense .rotten-portrait-rows, .rotten-print-compact .rotten-portrait-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4mm 2mm; }
  .rotten-print-landscape.rotten-print-dense .rotten-portrait-rows, .rotten-print-landscape.rotten-print-compact .rotten-portrait-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2mm 1.8mm; }
  .rotten-print-dense .rotten-portrait-entry, .rotten-print-compact .rotten-portrait-entry { grid-template-columns: 15mm 25mm minmax(0, 1fr); gap: 1mm; padding: .45mm 0; font-size: 6.2pt; }
  .rotten-print-dense .rotten-portrait-entry small, .rotten-print-compact .rotten-portrait-entry small { font-size: 5.5pt; }
  .rotten-print-compact .rotten-portrait-row { padding: 1mm 1.4mm; }
  .rotten-print-compact .rotten-portrait-row h3 { font-size: 7.2pt; }
  .rotten-plan-print-sheet .rotten-matrix-scroll { height: 100%; overflow: hidden; }
  .rotten-plan-print-sheet.mobile-print-page .rotten-matrix-scroll { height: auto; overflow: visible; }
  .rotten-plan-print-sheet .rotten-matrix { height: auto; table-layout: fixed; }
  .rotten-plan-print-sheet .rotten-matrix th, .rotten-plan-print-sheet .rotten-matrix td { min-width: 0; border-width: .18mm; padding: 1.3mm; font-size: 6.8pt; line-height: 1.12; overflow-wrap: anywhere; }
  .rotten-plan-print-sheet .rotten-matrix th:first-child { width: 25mm; min-width: 0; }
  .rotten-plan-print-sheet .rotten-matrix td small { margin-top: .5mm; font-size: 5.6pt; }
  .rotten-print-dense .rotten-matrix th, .rotten-print-dense .rotten-matrix td { padding: 1mm; font-size: 5.8pt; }
  .rotten-print-dense .rotten-matrix td small { font-size: 4.8pt; }
  .rotten-print-compact .rotten-matrix th, .rotten-print-compact .rotten-matrix td { padding: .7mm; font-size: 4.8pt; }
  .rotten-print-compact .rotten-matrix td small { font-size: 4pt; }
  .rotten-plan-print-announcements { break-before: auto; page-break-before: auto; }
  .rotten-plan-print-announcements.announcement-mobile-print {
    display: block !important;
    box-sizing: border-box;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    overflow: visible !important;
    break-before: auto;
    page-break-before: auto;
    break-inside: auto;
    page-break-inside: auto;
  }
  .rotten-plan-print-announcements.announcement-mobile-print .announcement-paper {
    box-sizing: border-box;
    width: auto !important;
    height: auto !important;
    min-height: 0;
    max-height: none;
    overflow: visible;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .rotten-plan-print-announcements.announcement-mobile-print .announcement-paper:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  html.schedule-review-printing-root,
  html.schedule-review-printing-root body.schedule-review-printing {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  html.schedule-review-printing-root body.schedule-review-printing > .schedule-review-print-sheet,
  html.schedule-review-printing-root .schedule-review-print-list {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    break-inside: auto;
    page-break-inside: auto;
  }
}
