/* Monthly calendar: shared vocabulary, scoped separately from the wallet. */
.calendar-card, .admin-calendar { --cal-line: #a0b0cf28; --cal-muted: #9eacc5; --cal-ink: #edf0fa; --cal-gold: #dfcb98; --cal-lilac: #beb5f0; --cal-mint: #9cd3c0; }
.calendar-card { scroll-margin-top: 24px; min-width: 0; }
.calendar-top, .calendar-month-bar, .calendar-month-bar nav, .calendar-legend, .calendar-claim { display: flex; align-items: center; }
.calendar-top { align-items: flex-start; justify-content: space-between; gap: 14px; }
.calendar-top h2 { margin: 9px 0 0; font-size: 24px; line-height: 1.2; }
.calendar-top .checkin-streak { white-space: nowrap; padding: 7px 10px; }
.calendar-month-bar { justify-content: space-between; gap: 16px; margin: 27px 0 19px; }
.calendar-month-bar h3 { margin: 0 0 5px; font-size: 20px; line-height: 1.25; color: var(--cal-ink); }
.calendar-month-bar div > span { color: var(--cal-muted); font-size: 13px; }
.calendar-month-bar nav { gap: 7px; }
.calendar-month-bar nav a, .calendar-arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--cal-line); border-radius: 10px; color: #dcd5ff; font-size: 24px; line-height: 1; text-decoration: none; background: #b8adff07; transition: background .15s, border-color .15s; }
.calendar-month-bar nav a:hover, .calendar-arrow:hover { background: #b8adff1a; border-color: #b8adff66; }
.calendar-month-bar nav .calendar-current-link { width: auto; padding: 0 10px; font-size: 12px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; }
.calendar-weekdays { color: #7f90ac; font-size: 12px; text-align: center; margin-bottom: 8px; }
.calendar-weekdays span:nth-last-child(-n+2) { color: #aba2ca; }
.calendar-grid { list-style: none; padding: 0; margin: 0; }
.calendar-day { position: relative; min-width: 0; border: 1px solid var(--cal-line); border-radius: 11px; background: #0d17273d; overflow: hidden; }
.calendar-day-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 85px; margin: 0; padding: 9px 2px; border: 0; font: inherit; text-align: center; background: none; color: inherit; }
.calendar-day button.calendar-day-inner { cursor: pointer; }
.calendar-day time { color: #aab7cd; font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.calendar-day-symbol { display: block; color: #8291af; font-size: 21px; line-height: 1; }
.calendar-day small { font-size: 12px; color: #aab7cd; line-height: 1.3; white-space: nowrap; }
.calendar-day.special { border-color: #c8ab674b; background: linear-gradient(155deg,#9d793512,#0e172509); }
.calendar-day.special .calendar-day-symbol, .calendar-day.special small { color: var(--cal-gold); }
.calendar-day.today, .calendar-day.selected { border-color: #bdb1fb8c; background: #aea0f51c; box-shadow: inset 0 0 0 1px #d5ceff16; }
.calendar-day.today time, .calendar-day.today .calendar-day-symbol, .calendar-day.today small, .calendar-day.selected time { color: #ded6ff; }
.calendar-day.today button:hover { background: #aea0f51c; }
.calendar-day.claimed { background: #7cc6b511; border-color: #7cc6b550; }
.calendar-day.claimed :is(time,small,.calendar-day-symbol) { color: var(--cal-mint); }
.calendar-day.missed { background: #10162435; border-color: #8492af17; }
.calendar-day.missed :is(time,small,.calendar-day-symbol) { color: #8492ac; opacity: .62; }
.calendar-day.missed::after { content: ''; position: absolute; top: 20px; left: 50%; width: 18px; height: 1px; background: #8c9ab4; transform: translateX(-50%); opacity: .7; }
.calendar-legend { flex-wrap: wrap; gap: 16px; margin: 14px 0 0; font-size: 11px; color: var(--cal-muted); }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend i { width: 6px; height: 6px; border-radius: 50%; background: #97cbbb; }
.calendar-legend i.today { background: var(--cal-lilac); }
.calendar-legend i.special { background: var(--cal-gold); }
.calendar-claim { gap: 15px; margin: 22px 0 0; }
.calendar-claim .button { flex: 0 1 auto; font-size: 14px; min-height: 45px; }
.calendar-claim > small { color: var(--cal-muted); font-size: 12px; line-height: 1.6; }
.calendar-finale { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 13px; margin-top: 23px; padding: 18px; border: 1px solid #cbb17b42; background: linear-gradient(120deg,#bf9e6410,#b8a0f508); border-radius: 13px; }
.calendar-gift { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; font-size: 31px; color: #e0cc9e; border: 1px solid #e0cc9e33; border-radius: 12px; background: #d3b16d0e; }
.calendar-finale-content { min-width: 0; flex: 1 1 180px; }
.calendar-finale-label { display: block; font-size: 11px; color: #b5a687; margin-bottom: 7px; }
.calendar-finale-content > strong { display: block; color: #ecddba; font-size: 20px; }
.calendar-progress { height: 4px; overflow: hidden; border-radius: 4px; background: #cbbb941c; margin: 13px 0 9px; }
.calendar-progress i { display: block; height: 100%; background: #d9c491; border-radius: inherit; transition: width .35s; }
.calendar-finale-content small { display: block; font-size: 12px; color: #a99e88; line-height: 1.55; }
.calendar-finale.claimed { border-color: #9bd5c14d; }
.calendar-finale.claimed .calendar-progress i { background: #9bd5c1; }
.calendar-finale form { width: 100%; margin: 0; }
.calendar-finale form .button { width: 100%; }
.calendar-card .calendar-footnote, .calendar-card .calendar-view-note { font-size: 12px; line-height: 1.65; color: #899bb6; margin: 16px 0 0; }
.calendar-view-note a { color: #c4b9fb; text-underline-offset: 3px; }
.bonus-overview-grid:has(.calendar-card) { align-items: start; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
.calendar-card :is(a,button):focus-visible, .admin-calendar :is(a,button,input,select):focus-visible { outline: 2px solid #c5baf9; outline-offset: 3px; }
.calendar-day-inner:focus-visible { outline-offset: -4px !important; border-radius: 9px; }
.calendar-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.admin-calendar { scroll-margin-top: 24px; margin-bottom: 20px; }
.admin-calendar .admin-panel-head { align-items: flex-start; }
.calendar-admin-badge { padding: 7px 11px; border: 1px solid #a4b4d62b; border-radius: 7px; white-space: nowrap; color: #a6b3cc; font-size: 11px; }
.calendar-admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 23px; flex-wrap: wrap; }
.calendar-admin-toolbar nav { display: flex; gap: 13px; align-items: center; }
.calendar-admin-toolbar h3 { font-size: 19px; margin: 0; }
.calendar-admin-toolbar form { display: flex; gap: 8px; width: auto; margin: 0; }
.calendar-admin-toolbar input { max-width: 185px; color-scheme: dark; }
.admin-calendar .button { width: auto; }
.calendar-admin-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(245px,.85fr); gap: 25px; align-items: start; }
.calendar-admin-grid a.calendar-day { display: flex; align-items: center; flex-direction: column; padding: 9px 2px; gap: 7px; min-height: 81px; color: inherit; text-decoration: none; transition: background .15s,border-color .15s; }
.calendar-admin-grid a.calendar-day:hover { border-color: #bdb1fb8c; }
.calendar-admin-help { font-size: 12px; line-height: 1.65; color: #94a3bb; margin: 15px 0 0; }
.calendar-day-editor { position: sticky; top: 24px; min-width: 0; background: #b0a4f30a; border: 1px solid #a9a3d338; border-radius: 13px; padding: 21px; }
.calendar-day-editor fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calendar-day-editor fieldset[hidden] { display: none; }
.calendar-day-editor legend { padding: 0; margin-bottom: 23px; }
.calendar-day-editor legend > span { display: block; color: #a497c5; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; margin-bottom: 8px; }
.calendar-day-editor legend > strong { color: #e2dcf5; font-size: 22px; }
.calendar-admin-form label { display: grid; gap: 8px; margin-bottom: 18px; color: #b4bfd3; font-size: 13px; }
.calendar-admin-form label[hidden] { display: none; }
.admin-calendar :is(input:not([type=hidden]),select) { min-width: 0; width: 100%; min-height: 43px; border-radius: 8px; border: 1px solid #a0b0cf33; padding: 10px 12px; background: #0e1726; font: inherit; font-size: 14px; color: #e0e6f2; }
.calendar-day-editor p { font-size: 12px; line-height: 1.7; color: #8e9eb7; margin: 19px 0; }
.calendar-editor-preview { display: block; border-top: 1px solid #a0b0cf25; padding-top: 18px; margin-top: 19px; font-size: 21px; color: #dfcb98; font-weight: 650; }
.calendar-admin-finale { border: 1px solid #c9b27d40; border-radius: 12px; background: #c9b27d06; margin: 23px 0 0; padding: 18px 20px; }
.calendar-admin-finale legend { padding: 0 8px; font-size: 16px; font-weight: 600; color: #d9c699; }
.calendar-admin-finale > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.calendar-admin-finale p { color: #9ca8be; font-size: 12px; line-height: 1.6; margin: 0; }
.calendar-admin-save { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 23px; padding-top: 20px; border-top: 1px solid #a0b0cf25; }
.calendar-admin-save p { margin: 0; max-width: 440px; font-size: 12px; line-height: 1.6; color: #8b9bb5; }
.calendar-admin-save p.dirty { color: #dfcb98; }
.calendar-grant-history { margin-bottom: 20px; }
.calendar-grant-history summary { cursor: pointer; padding: 18px 22px; color: #dfe7f4; font-size: 16px; font-weight: 600; }
.calendar-grant-history summary > span { display: inline-block; margin-left: 10px; font-size: 11px; color: #8d9fb9; font-weight: 400; }
.calendar-grant-history p { color: #9bacc7; font-size: 13px; line-height: 1.6; }
.calendar-delivery-list > div { display: grid; grid-template-columns: 1fr 1fr 1.5fr auto; gap: 12px; padding: 15px 0; border-top: 1px solid #a0b0cf25; font-size: 13px; }
.calendar-delivery-list a { color: #beb2f4; }
.calendar-delivery-list strong { color: #ddc997; }
.calendar-delivery-list :is(span,small) { color: #9baac3; }
.calendar-delivery-list .completed { color: #a4d5be; }
.calendar-delivery-list .review { color: #f2c998; }
.calendar-user-grants { margin: 20px 0; }
.calendar-user-grants h2 { font-size: 20px; }
.calendar-user-grants .calendar-delivery-list > div { grid-template-columns: 1fr 1fr auto; }
@media (max-width: 1180px) {
  .calendar-admin-layout { grid-template-columns: minmax(0,1.25fr) minmax(235px,1fr); gap: 18px; }
  .calendar-admin-grid { gap: 5px; }
  .calendar-admin-grid a.calendar-day { min-height: 76px; }
}
@media (max-width: 900px) {
  .bonus-overview-grid:has(.calendar-card) { grid-template-columns: minmax(0,1fr); }
  .calendar-card .calendar-grid { gap: 9px; }
  .calendar-day-inner { min-height: 91px; }
  .calendar-admin-layout { grid-template-columns: minmax(0,1fr); }
  .calendar-day-editor { position: static; }
  .calendar-admin-grid a.calendar-day { min-height: 81px; }
  .calendar-delivery-list > div { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .calendar-top { flex-wrap: wrap; gap: 12px; }
  .calendar-top h2 { font-size: 23px; }
  .calendar-top .page-eyebrow { font-size: 10px !important; }
  .calendar-top .checkin-streak { font-size: 11px !important; }
  .calendar-month-bar { margin-top: 23px; }
  .calendar-month-bar h3 { font-size: 19px; }
  .calendar-card .calendar-grid, .calendar-admin-grid, .calendar-weekdays { gap: 5px; }
  .calendar-day { border-radius: 8px; }
  .calendar-day-inner { min-height: 73px; gap: 7px; padding: 8px 1px; }
  .calendar-day time { font-size: 12px; }
  .calendar-day-symbol { font-size: 19px; }
  .calendar-day small { font-size: 10px; }
  .calendar-day.missed::after { top: 16px; width: 15px; }
  .calendar-legend { gap: 10px; font-size: 10px; }
  .calendar-claim { display: grid; gap: 11px; }
  .calendar-claim .button { width: 100%; }
  .calendar-claim > small { font-size: 12px; }
  .calendar-finale { padding: 14px; gap: 10px; }
  .calendar-gift { width: 36px; height: 36px; font-size: 26px; }
  .calendar-finale-content { flex-basis: 150px; }
  .calendar-finale-content > strong { font-size: 20px; }
  .calendar-admin-toolbar { gap: 20px; }
  .calendar-admin-toolbar form { width: 100%; }
  .calendar-admin-toolbar input { max-width: none; flex: 1; }
  .admin-calendar :is(input:not([type=hidden]),select) { font-size: 16px; }
  .calendar-admin-grid a.calendar-day { min-height: 73px; }
  .calendar-day-editor { padding: 17px; }
  .calendar-admin-finale { padding: 15px; }
  .calendar-admin-finale > div { grid-template-columns: 1fr; gap: 0; }
  .calendar-admin-save { align-items: stretch; flex-direction: column; }
  .admin-calendar .calendar-admin-save .button { width: 100%; }
  .calendar-user-grants .calendar-delivery-list > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 360px) {
  .calendar-month-bar { flex-wrap: wrap; gap: 12px; }
  .calendar-month-bar > div { flex-basis: 100%; }
  .calendar-card .calendar-grid, .calendar-admin-grid, .calendar-weekdays { gap: 3px; }
  .calendar-day-inner, .calendar-admin-grid a.calendar-day { min-height: 68px; }
  .calendar-day small { font-size: 9px; }
  .calendar-legend { gap: 7px; font-size: 9px; }
  .calendar-month-bar h3 { font-size: 17px; }
  .calendar-month-bar nav { gap: 4px; }
  .calendar-month-bar nav a { width: 31px; height: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  .calendar-card *, .admin-calendar * { transition: none !important; scroll-behavior: auto !important; }
}
