html {
  position: relative;
  min-height: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  background: #f7f5f1;
  color: #202a32;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.planner-nav {
  min-height: 76px;
  padding: 0 5vw;
  background: #202a32;
  color: #f7f5f1;
}

.planner-nav .navbar-brand {
  color: #f7f5f1;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-logo {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-right: 9px;
  place-items: center;
  object-fit: contain;
}

.auth-mark {
  display: block;
  width: 68px;
  height: 68px;
  margin: 0 0 24px;
}

.planner-nav-links { gap: 8px; margin-left: 5vw; }
.planner-nav .nav-link { padding: 8px 14px; color: #aeb9bb; border-radius: 4px; }
.planner-nav .nav-link:hover, .planner-nav .nav-link.active { background: #33434a; color: #fff; }
.nav-link-with-badge { position: relative; }
.invitation-badge { display: inline-grid; min-width: 18px; height: 18px; margin-left: 5px; padding: 0 4px; place-items: center; border-radius: 999px; background: #e67d63; color: #fff; font-size: .65rem; font-weight: 700; line-height: 1; }
.profile-chip { display: flex; align-items: center; gap: 9px; font-size: .9rem; }
.language-switch { display: flex; align-items: center; gap: 2px; margin-right: 5px; }
.language-switch .nav-link { padding: 5px 7px; font-size: .7rem; font-weight: 700; }
.language-switch .nav-link.active { background: #f2b84b; color: #202a32; }
.profile-avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #e67d63; color: #fff; font-size: .7rem; font-weight: 700; }
.notification-toggle { padding: 6px 9px; border: 1px solid #53656c; border-radius: 999px; background: transparent; color: #dce5e6; font: inherit; font-size: .68rem; font-weight: 700; cursor: pointer; }
.notification-toggle:hover:not(:disabled) { border-color: #f2b84b; color: #f2b84b; }
.notification-toggle:disabled { color: #738084; cursor: not-allowed; opacity: .7; }
.profile-chevron { color: #aeb9bb; font-size: 1.1rem; }
.planner-container { max-width: 1280px; padding: 0 28px; }
.planner-shell { padding: 56px 0 80px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.eyebrow { margin: 0 0 9px; color: #d56d57; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, strong { font-family: Georgia, serif; }
h1 { max-width: 620px; margin: 0; color: #202a32; font-size: clamp(2.25rem, 5vw, 4.3rem); font-weight: 400; line-height: 1.03; letter-spacing: -.04em; }
.heading-copy { max-width: 510px; margin: 18px 0 0; color: #67747a; font-size: 1.05rem; }
.primary-action { padding: 14px 20px; border: 1px solid #d56d57; border-radius: 4px; background: #d56d57; color: white; font-weight: 700; text-decoration: none; white-space: nowrap; }
.primary-action:hover { background: #bd5b47; color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { min-height: 148px; padding: 25px 28px; border: 1px solid #e7e2da; border-radius: 5px; background: #fffdf9; }
.stat-card-accent { border-top: 4px solid #8da995; }
.stat-label, .stat-note { display: block; color: #6d797d; font-size: .82rem; }
.stat-value { display: block; margin: 10px 0 3px; color: #202a32; font-family: Georgia, serif; font-size: 2.4rem; font-weight: 400; }
.stat-suffix { color: #8a9597; font-family: inherit; font-size: 1rem; }
.stat-card strong { display: block; margin: 10px 0 3px; font-size: 2.4rem; font-weight: 400; }
.dashboard-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.panel { padding: 28px; border: 1px solid #e7e2da; border-radius: 5px; background: #fffdf9; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
h2 { margin: 0; font-size: 1.45rem; font-weight: 400; }
.status-pill, .panel-count { padding: 7px 10px; border-radius: 100px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.status-pill-warn { background: #fbefcb; color: #886314; }
.panel-count { color: #889197; font-weight: 400; }
.appointment-meta { display: flex; gap: 20px; margin: 8px 0 25px; color: #68757a; font-size: .86rem; }
.appointment-meta span + span::before { margin-right: 20px; content: "·"; color: #d56d57; }
.participant-list { border-top: 1px solid #ebe6df; }
.participant-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ebe6df; }
.participant-name { flex: 1; font-size: .9rem; }
.status-badge { padding: 6px 9px; border-radius: 100px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.status-confirmed { background: #e1eee2; color: #66866f; }
.status-pending { background: #fbefcb; color: #886314; }
.open-spots { margin-top: 16px; color: #bd5b47; font-size: .8rem; font-weight: 700; }
.member-list { border-top: 1px solid #ebe6df; }
.member-row, .rotation-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ebe6df; }
.member-row > span:nth-child(2) { flex: 1; font-size: .9rem; }
.avatar { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; color: #fff; font-size: .66rem; font-weight: 700; }
.avatar-coral { background: #d9826d; } .avatar-blue { background: #6a98ab; } .avatar-yellow { background: #d3a947; } .avatar-green { background: #779d82; } .avatar-purple { background: #8b7da5; } .avatar-empty { background: #f0ece5; color: #9a938b; }
.member-status { color: #9a938b; font-size: .72rem; }
.member-status.confirmed { color: #66866f; } .member-status.waiting { color: #b8872d; }
.member-row-empty { color: #9a938b; }
.text-action { display: inline-block; margin-top: 22px; color: #bd5b47; font-size: .84rem; font-weight: 700; text-decoration: none; }
.text-action span { margin-left: 7px; }
.rotation-list { margin-top: 17px; }
.rotation-row > div { flex: 1; }
.rotation-row strong, .rotation-row small { display: block; }
.rotation-row strong { font-size: .9rem; font-weight: 400; }
.rotation-row small { margin-top: 3px; color: #8a9597; font-size: .74rem; }
.rotation-person span { display: block; margin-top: 3px; color: #8a9597; font-size: .74rem; }
.waiting-days { color: #d56d57; font-size: .75rem; font-weight: 700; }
.days-waiting { color: #d56d57; font-size: .75rem; font-weight: 700; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.quick-links a { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border: 1px solid #e7e2da; border-radius: 5px; background: #fffdf9; color: #202a32; text-decoration: none; }
.quick-links a > span:nth-child(2) { flex: 1; }
.quick-links strong, .quick-links small { display: block; }
.quick-links strong { font-size: .9rem; font-weight: 400; }
.quick-links small { margin-top: 3px; color: #8a9597; font-size: .72rem; }
.quick-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #e1eee2; color: #66866f; font-size: 1.25rem; }
.quick-icon-blue { background: #dcebf0; color: #527d8b; } .quick-icon-yellow { background: #fbefcb; color: #a27b24; }
.page-shell { padding: 54px 0 80px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.page-heading h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.quiet-action, .today-button { padding: 12px 16px; border: 1px solid #dcd5ca; border-radius: 4px; background: transparent; color: #5e6c70; font-size: .85rem; font-weight: 700; text-decoration: none; }
.quiet-action:hover, .today-button:hover { border-color: #d56d57; color: #bd5b47; }
.section-kicker { margin: 0 0 10px; color: #6d797d; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.form-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.form-panel, .selection-panel { padding: 30px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0 18px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #68757a; font-size: .78rem; font-weight: 700; }
.field-wide { grid-column: span 2; }
.field input, .field select, .field textarea, .period-select { width: 100%; padding: 12px 13px; border: 1px solid #ddd7cf; border-radius: 4px; background: #fff; color: #202a32; font: inherit; font-size: .88rem; font-weight: 400; }
.field textarea { resize: vertical; }
.form-actions { display: flex; align-items: center; justify-content: end; gap: 16px; margin-top: 26px; }
.form-actions .primary-action { border: 0; font: inherit; cursor: pointer; }
.muted-copy { margin: 8px 0 20px; color: #8a9597; font-size: .83rem; }
.status-pill-good { background: #e1eee2; color: #66866f; }
.selection-list { border-top: 1px solid #ebe6df; }
.selection-row { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #ebe6df; cursor: pointer; }
.selection-row input { width: 16px; height: 16px; accent-color: #d56d57; }
.selection-name { flex: 1; }
.selection-name strong, .selection-name small { display: block; }
.selection-name strong { font-size: .87rem; font-weight: 400; }
.selection-name small { margin-top: 3px; color: #899396; font-size: .73rem; }
.rotation-tag { color: #d56d57; font-size: .73rem; font-weight: 700; }
.selection-row-muted { opacity: .55; }
.toolbar, .history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.history-filter-form { align-items: flex-end; justify-content: flex-start; flex-wrap: wrap; }
.period-filter { display: flex; flex-direction: column; gap: 6px; color: #738084; font-size: .72rem; }
.period-filter select { min-width: 170px; padding: 11px 12px; border: 1px solid #ddd7cf; border-radius: 4px; background: #fffdf9; color: #202a32; font: inherit; }
.history-filter-submit { border: 0; cursor: pointer; }
.search-field { display: flex; align-items: center; width: min(360px, 100%); padding: 0 13px; border: 1px solid #ddd7cf; border-radius: 4px; background: #fffdf9; color: #8a9597; }
.search-field input { width: 100%; padding: 12px 10px; border: 0; outline: 0; background: transparent; color: #202a32; font: inherit; font-size: .85rem; }
.filter-group { display: flex; gap: 6px; }
.filter-button, .person-switcher button { padding: 9px 12px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #738084; font: inherit; font-size: .78rem; cursor: pointer; }
.filter-button span { color: #a0a9aa; }
.filter-button-active { border-color: #ddd7cf; background: #fffdf9; color: #202a32; }
.people-table { padding: 0 25px; }
.people-table-header, .person-line { display: grid; grid-template-columns: 1.5fr 1.2fr 1.1fr .45fr 1.6fr; align-items: center; gap: 18px; }
.people-table-header { padding: 17px 0 12px; color: #929b9c; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.person-line { min-height: 70px; border-top: 1px solid #ebe6df; color: #69767a; font-size: .8rem; }
.person-cell { display: flex; align-items: center; gap: 11px; color: #202a32; }
.person-cell strong { font-size: .88rem; font-weight: 400; }
.available-text { color: #66866f; font-weight: 700; }
.maybe-text { color: #b8872d; font-weight: 700; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inline-form { display: inline; }
.row-action, .row-button { display: inline-flex; min-height: 28px; align-items: center; padding: 5px 9px; border: 1px solid #e2dbd1; border-radius: 999px; background: #fffdf9; color: #68757a; font: inherit; font-size: .7rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease; }
.row-action:hover, .row-button:hover { border-color: #bd5b47; background: #fff7f2; color: #bd5b47; transform: translateY(-1px); }
.row-action:focus-visible, .row-button:focus-visible { outline: 3px solid rgba(213, 109, 87, .25); outline-offset: 2px; }
.row-action-success { border-color: #c9ddcc; background: #f1f8f2; color: #66866f; }
.row-action-success:hover { border-color: #66866f; background: #e1eee2; color: #52735b; }
.row-action-warning { border-color: #ead9aa; background: #fffaf0; color: #a27b24; }
.row-action-warning:hover { border-color: #b8872d; background: #fbefcb; color: #886314; }
.row-action-danger { border-color: #ebc8c2; background: #fff6f4; color: #a94d45; }
.row-action-danger:hover { border-color: #a94d45; background: #fbe6e2; color: #8d4033; }
.calendar-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.month-navigation { display: flex; align-items: center; gap: 12px; }
.calendar-toolbar h2 { min-width: 170px; margin: 0; font-size: 1.45rem; text-align: center; }
.month-arrow { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #ddd7cf; border-radius: 50%; background: #fffdf9; box-shadow: 0 3px 9px rgba(32, 42, 50, .06); color: #68757a; font-size: 1.1rem; text-decoration: none; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease; }
.month-arrow:hover { border-color: #d56d57; background: #fff7f2; color: #bd5b47; transform: translateY(-1px); }
.month-arrow:focus-visible { outline: 3px solid rgba(213, 109, 87, .25); outline-offset: 2px; }
.today-button { margin-left: auto; }
.calendar-grid { padding: 0; overflow: hidden; }
.weekday-row, .date-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekday-row { padding: 15px 18px 11px; border-bottom: 1px solid #ebe6df; color: #929b9c; font-size: .7rem; font-weight: 700; text-align: right; text-transform: uppercase; }
.date-cell { width: 100%; min-height: 100px; padding: 12px; border: 0; border-right: 1px solid #ebe6df; border-bottom: 1px solid #ebe6df; border-radius: 0; background: transparent; color: #59676b; font: inherit; font-size: .82rem; text-align: right; }
.date-cell:nth-child(7n) { border-right: 0; }
.date-cell small { display: block; margin-top: 12px; padding: 6px; border-radius: 3px; background: #dcebf0; color: #527d8b; font-size: .65rem; text-align: left; }
.date-cell:disabled { opacity: 1; }
.date-has-appointments { cursor: pointer; }
.date-has-appointments:hover, .date-has-appointments:focus-visible { background: #eef5f0; outline: 0; }
.date-has-appointments:focus-visible { box-shadow: inset 0 0 0 2px #66866f; }
.appointment-more { background: #e1eee2 !important; color: #52735b !important; font-weight: 700; }
.date-selected { background: #fff9eb; box-shadow: inset 0 3px #d56d57; }
.date-selected small { background: #fbefcb; color: #886314; }
.muted-date { color: #c4c7c5; }
.calendar-details { margin-top: 16px; padding: 23px 25px; border: 1px solid #e7e2da; border-radius: 5px; background: #fffdf9; }
.calendar-details-empty { margin: 0; color: #8a9597; font-size: .84rem; }
.calendar-detail-card { display: none; }
.calendar-detail-card.is-visible { display: block; }
.calendar-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.calendar-detail-heading .eyebrow { margin-bottom: 6px; }
.calendar-detail-heading h2 { font-size: 1.35rem; }
.calendar-detail-time { padding: 7px 10px; border-radius: 999px; background: #fbefcb; color: #886314; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.calendar-detail-meta, .calendar-detail-status { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; color: #68757a; font-size: .8rem; }
.calendar-detail-status { color: #66866f; font-weight: 700; }
.calendar-detail-notes { margin: 16px 0 0; color: #33434a; font-size: .85rem; line-height: 1.55; }
.mobile-bottom-nav { display: none; }
.calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 18px 22px; border: 1px solid #e7e2da; border-radius: 5px; background: #fffdf9; }
.calendar-footer-copy { display: flex; align-items: baseline; gap: 12px; }
.calendar-footer-copy .eyebrow { margin: 0; }
.calendar-footer-copy strong { color: #202a32; font-size: .95rem; font-weight: 400; }
.calendar-list-link { display: inline-flex; align-items: center; gap: 11px; padding: 11px 15px; border: 1px solid #d56d57; border-radius: 5px; background: #d56d57; box-shadow: 0 4px 10px rgba(189, 91, 71, .16); color: #fff !important; font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.calendar-list-link span { color: inherit; }
.calendar-list-link:hover, .calendar-list-link:focus-visible { border-color: #a94d45; background: #a94d45; box-shadow: 0 6px 14px rgba(169, 77, 69, .24); color: #fff !important; transform: translateY(-1px); }
.calendar-list-link:focus-visible { outline: 3px solid rgba(213, 109, 87, .3); outline-offset: 2px; }
.calendar-list-arrow { font-size: 1rem; line-height: 1; }
.upcoming-list { margin-top: 30px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title-row h2 { font-size: 1.35rem; }
.upcoming-item, .history-row { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid #ebe6df; }
.date-badge { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-content: center; border-radius: 4px; background: #fbefcb; color: #886314; text-align: center; }
.date-badge b { font-family: Georgia, serif; font-size: 1.3rem; font-weight: 400; line-height: 1; }
.date-badge small { margin-top: 4px; font-size: .6rem; font-weight: 700; }
.date-badge-blue { background: #dcebf0; color: #527d8b; }
.upcoming-info, .history-details { flex: 1; }
.upcoming-info strong, .upcoming-info small, .history-details strong, .history-details small { display: block; }
.upcoming-info strong, .history-details strong { font-size: .9rem; font-weight: 400; }
.upcoming-info small, .history-details small { margin-top: 4px; color: #8a9597; font-size: .76rem; }
.status-pill-neutral { background: #ecebe7; color: #788286; }
.person-switcher { display: flex; align-items: center; gap: 11px; }
.person-switcher button { margin-left: 8px; color: #bd5b47; }
.period-select { width: auto; }
.history-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.history-summary > div { padding: 23px 25px; border: 1px solid #e7e2da; border-radius: 5px; background: #fffdf9; }
.history-summary strong, .history-summary small { display: block; }
.history-summary strong { margin: 10px 0 4px; font-size: 1.25rem; font-weight: 400; }
.history-summary small { color: #8a9597; font-size: .76rem; }
.history-panel { padding: 25px 30px; }
.history-date { display: grid; width: 54px; flex: 0 0 54px; place-content: center; color: #d56d57; text-align: center; }
.history-date b { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 400; }
.history-date small { font-size: .6rem; font-weight: 700; }
.history-result { color: #66866f; font-size: .75rem; font-weight: 700; }
.validation-summary { margin: 10px 0; color: #bd5b47; font-size: .8rem; }
.success-banner { margin-bottom: 18px; padding: 13px 16px; border-left: 4px solid #779d82; background: #e1eee2; color: #52735b; font-size: .84rem; }
.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 1100; width: min(380px, calc(100vw - 32px)); }
.planner-toast { display: flex; align-items: start; gap: 18px; padding: 16px 17px; border: 1px solid #d7d1c8; border-left: 4px solid #779d82; border-radius: 5px; background: #fffdf9; box-shadow: 0 12px 30px rgba(32, 42, 50, .16); color: #33434a; font-size: .84rem; line-height: 1.45; animation: toast-in .25s ease-out; }
.planner-toast span { flex: 1; }
.toast-error { border-left-color: #bd5b47; color: #8d4033; }
.toast-dismiss { border: 0; background: transparent; color: #8a9597; cursor: pointer; font-size: 1.15rem; line-height: 1; }
.toast-dismiss:hover { color: #202a32; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.auth-shell { display: grid; min-height: calc(100vh - 76px); place-items: center; padding: 30px 0 80px; }
.auth-card { width: min(100%, 460px); padding: 42px; }
.auth-mark { margin-bottom: 24px; }
.auth-card h1 { font-size: 3rem; }
.auth-card .heading-copy { margin-bottom: 28px; }
.auth-password { margin-top: 18px; }
.auth-submit { width: 100%; margin-top: 25px; border: 0; font: inherit; cursor: pointer; }
.demo-hint { margin: 25px 0 0; color: #8a9597; font-size: .74rem; line-height: 1.7; }
.availability-panel { max-width: 700px; margin-bottom: 24px; }
.availability-panel .primary-action { border: 0; font: inherit; cursor: pointer; }
.availability-list { max-width: 850px; }
.availability-line { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #ebe6df; }
.availability-line strong { font-size: .9rem; font-weight: 400; }
.invitation-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.invitation-card h2 { font-size: 1.25rem; }
.invitation-actions { display: flex; align-items: center; gap: 10px; }
.invitation-actions form { margin: 0; }
.invitation-actions .primary-action { border: 0; font: inherit; cursor: pointer; }
.empty-state { text-align: center; }
.empty-state p { color: #8a9597; }
.news-card { margin-bottom: 16px; }
.news-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.news-card h2 { margin: 4px 0 0; font-size: 1.45rem; }
.news-body { margin-top: 20px; color: #33434a; line-height: 1.7; white-space: pre-line; }
.news-author { margin: 20px 0 0; color: #8a9597; font-size: .78rem; }
.news-form-panel { max-width: 760px; }
.news-form-panel textarea { min-height: 180px; resize: vertical; }
.costume-create-panel { max-width: 760px; margin-bottom: 20px; }
.costume-create-form { display: flex; align-items: flex-end; gap: 14px; }
.costume-create-form .field { flex: 1; }
.costume-create-form .primary-action { border: 0; cursor: pointer; }
.costume-filter-form { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.costume-filter-form .period-filter { min-width: 260px; }
.costume-filter-form .primary-action { border: 0; cursor: pointer; }
.costume-type-card { margin-bottom: 16px; }
.costume-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.costume-card-header h2 { margin: 4px 0 0; font-size: 1.35rem; }
.costume-card-header form { margin: 0; }
.costume-member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.costume-member-toggle, .costume-self-toggle { border: 1px solid #ddd7cf; border-radius: 4px; background: #fffdf9; color: #33434a; font: inherit; cursor: pointer; }
.costume-member-toggle { width: 100%; padding: 11px 12px; text-align: left; }
.costume-member-toggle:hover, .costume-self-toggle:hover { border-color: #66866f; }
.costume-member-toggle.is-selected, .costume-self-toggle.is-selected { border-color: #66866f; background: #66866f; color: #fffdf9; }
.costume-self-toggle { padding: 9px 13px; font-size: .78rem; }
.costume-status-row form { margin: 0; }
.costume-status-panel { max-width: 760px; }
.costume-status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #ebe6df; }
.footer { display: none; }

@media (max-width: 767px) {
  .planner-nav { padding: 0 20px; }
  .planner-nav .navbar-toggler { border-color: #53656c; }
  .planner-nav .navbar-toggler-icon { filter: invert(1); }
  .planner-container { padding: 0 18px; }
  .planner-shell { padding-top: 38px; }
  .dashboard-heading { display: block; }
  .primary-action { display: inline-block; margin-top: 25px; }
  .stats-grid, .dashboard-grid, .quick-links { grid-template-columns: 1fr; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: auto; padding: 20px; }
  .panel { padding: 22px 18px; }
  .planner-nav-links { margin-left: 0; }
  .planner-nav-links { display: none !important; }
  .profile-chip { display: flex; flex-wrap: wrap; align-items: center; padding: 12px 0 16px; border-top: 1px solid #33434a; }
  .profile-chip .language-switch { width: 100%; margin: 0 0 10px; }
  .profile-chip .nav-link { padding-left: 0; padding-right: 10px; }
  .profile-chip .profile-avatar { margin-left: 4px; }
  .profile-chip .notification-toggle { margin-right: 4px; }
  .page-heading, .toolbar, .history-toolbar { display: block; }
  .page-heading .quiet-action, .page-heading .primary-action { display: inline-block; margin-top: 22px; }
  .form-layout, .history-summary { grid-template-columns: 1fr; }
  .form-panel, .selection-panel { padding: 22px 18px; }
  .people-table { padding: 0 16px; overflow-x: auto; }
  .people-table-header, .person-line { min-width: 700px; }
  .filter-group { margin-top: 10px; overflow-x: auto; }
  .calendar-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .month-navigation { width: 100%; justify-content: space-between; }
  .calendar-toolbar h2 { min-width: 0; font-size: 1.25rem; }
  .calendar-toolbar .panel-count { margin-top: 9px; }
  .calendar-toolbar .today-button { margin-left: auto; }
  .calendar-grid { overflow-x: hidden; }
  .weekday-row, .date-grid { min-width: 0; }
  .weekday-row { padding: 11px 5px 8px; font-size: .58rem; }
  .date-cell { min-height: 58px; padding: 6px 4px; font-size: .7rem; }
  .date-cell small { margin-top: 5px; padding: 3px 2px; overflow: hidden; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
  .appointment-location { display: none; }
  .calendar-details { margin-top: 12px; padding: 17px 18px; }
  .calendar-detail-heading h2 { font-size: 1.15rem; }
  .calendar-detail-meta, .calendar-detail-status { gap: 9px 14px; font-size: .75rem; }
  .calendar-footer { align-items: stretch; flex-direction: column; gap: 14px; padding: 17px 18px; }
  .calendar-footer-copy { align-items: flex-start; flex-direction: column; gap: 4px; }
  .calendar-list-link { justify-content: center; }
  .upcoming-item { align-items: start; flex-wrap: wrap; }
  .upcoming-item .status-pill { margin-left: 70px; }
  .history-toolbar .period-select { margin-top: 15px; }
  .history-filter-form .search-field { width: 100%; }
  .history-filter-form .period-filter { margin-top: 14px; }
  .history-filter-submit { margin-top: 14px; }
  .auth-card { padding: 28px 22px; }
  .invitation-card { display: block; }
  .invitation-actions { margin-top: 20px; flex-wrap: wrap; }
  .costume-create-form { display: block; }
  .costume-create-form .primary-action { margin-top: 14px; }
  .costume-filter-form { display: block; }
  .costume-filter-form .period-filter { min-width: 0; }
  .costume-filter-form .primary-action, .costume-filter-form .quiet-action { display: inline-block; margin-top: 14px; }
  .toast-stack { right: 16px; bottom: 16px; width: calc(100vw - 32px); }
  body { padding-bottom: 76px; }
  .mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1030; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 66px; padding: 7px 8px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid #33434a; background: #202a32; box-shadow: 0 -8px 24px rgba(32, 42, 50, .14); }
  .mobile-bottom-link { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; border-radius: 5px; color: #aeb9bb; font-size: .58rem; line-height: 1.1; text-align: center; text-decoration: none; }
  .mobile-bottom-link.active, .mobile-bottom-link:focus-visible { background: #33434a; color: #fff; }
  .bottom-nav-icon { font-size: 1.15rem; line-height: 1; }
  .mobile-bottom-link .invitation-badge { position: absolute; top: 1px; right: 10%; margin: 0; }
}