.sched-page { padding: 32px 0 64px; background: var(--paper); min-height: 70vh; }
.sched-page h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 0; }
.sched-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { cursor: pointer; padding: 11px 16px; font-size: .95rem; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.18); width: min(320px, calc(100vw - 32px)); padding: 8px; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 5px; color: var(--ink); text-decoration: none; font: 600 .95rem var(--body); background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--paper); }
.menu-note { font-size: .82rem; color: #55585c; margin: 4px 12px 8px; }
@media (max-width: 560px) { .menu { right: auto; left: 0; } }

.filters { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 18px; display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chips button { border: 1px solid #c9cbce; background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 .9rem var(--body); cursor: pointer; color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.chips .lbl { font: 600 .75rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: #6a6d71; align-self: center; margin-right: 4px; }
.viewbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.seg { display: inline-flex; border: 1px solid #c9cbce; border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 7px 14px; font: 600 .85rem var(--head); text-transform: uppercase; cursor: pointer; }
.seg button.on { background: var(--red); color: #fff; }
.upcoming { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: .9rem; }
.upcoming input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.empty-box { padding: 26px; text-align: center; background: #fff; border: 1px dashed #c9cbce; border-radius: 8px; }

/* month */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.month-nav h2 { margin: 0; font-size: 1.6rem; }
.month-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #c9cbce; background: #fff; font-size: 1.2rem; cursor: pointer; }
.grid-head, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid-head span { font: 600 .75rem var(--head); text-transform: uppercase; text-align: center; color: #6a6d71; padding: 4px 0; }
.grid { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.day { background: #fff; min-height: 110px; padding: 4px; min-width: 0; }
.day.out { background: #f7f7f6; }
.day.out .num { color: #b0b2b5; }
.day.today .num { background: var(--red); color: #fff; border-radius: 50%; }
.num { display: inline-grid; place-items: center; width: 24px; height: 24px; font-size: .8rem; font-weight: 700; }
.chip-ev { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--c, var(--red)); background: color-mix(in srgb, var(--c, var(--red)) 12%, #fff); padding: 3px 5px; margin-top: 3px; border-radius: 3px; font-size: .75rem; line-height: 1.25; cursor: pointer; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-ev b { font-weight: 700; }
.chip-ev.cx { text-decoration: line-through; opacity: .6; }
@media (max-width: 700px) {
  .day { min-height: 64px; padding: 2px; }
  .chip-ev { font-size: 0; padding: 0; height: 7px; border-left-width: 0; background: var(--c, var(--red)); border-radius: 4px; }
  .chip-ev b { display: none; }
}

/* list */
.list-month { font-size: 1.3rem; margin: 22px 0 8px; }
.list-month:first-child { margin-top: 0; }
.ev-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c, var(--red)); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; }
.ev-row:hover { border-color: #b9bbbe; border-left-color: var(--c, var(--red)); }
.ev-date { text-align: center; line-height: 1.05; }
.ev-date b { display: block; font: 700 1.6rem var(--head); }
.ev-date span { font: 600 .75rem var(--head); text-transform: uppercase; color: #6a6d71; }
.ev-main h4 { margin: 0 0 2px; font: 600 1.05rem var(--head); text-transform: uppercase; }
.ev-main p { margin: 0; font-size: .92rem; color: #44474b; }
.ev-row.cx h4 { text-decoration: line-through; }
.tagx { display: inline-block; font: 600 .7rem var(--head); text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 3px; background: #e9eaec; margin-left: 4px; vertical-align: 2px; }
.tagx.home { background: var(--red); color: #fff; }
.tagx.cx { background: #3a3b3e; color: #fff; }

#ev .dlg-body { white-space: normal; }
#ev dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
#ev dt { font-weight: 700; }
#ev dd { margin: 0; }

/* print: one page, list only */
#print-sheet { display: none; }
@media print {
  @page { size: letter portrait; margin: 0.4in; }
  body { background: #fff; }
  header.top, footer, .sched-kicker, .sched-head, .filters, #month, #list, #empty, #loading, dialog { display: none !important; }
  .sched-page { padding: 0; background: #fff; min-height: 0; }
  .wrap { max-width: none; padding: 0; }
  #print-sheet { display: block !important; font-size: 9.5pt; color: #000; line-height: 1.2; }
  #print-sheet h1 { font: 700 18pt var(--head); text-transform: uppercase; margin: 0; }
  #print-sheet .sub { margin: 2px 0 8px; font-size: 9pt; }
  #print-sheet table { width: 100%; min-width: 0; border-collapse: collapse; }
  #print-sheet th { background: #000 !important; color: #fff !important; font-size: 8pt; padding: 3px 5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-sheet td { padding: 2.5px 5px; border-bottom: 1px solid #bbb; font-size: 9pt; vertical-align: top; white-space: normal; font-weight: 400; }
  #print-sheet td:first-child { white-space: nowrap; font-weight: 700; }
  #print-sheet tr.cx td { text-decoration: line-through; color: #666; }
  #print-sheet .foot { margin-top: 6px; font-size: 8pt; }
  #print-sheet.tight td, #print-sheet.tight th { font-size: 7.5pt; padding: 1.5px 4px; }
  #print-sheet .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; align-items: start; }
  #print-sheet.two td, #print-sheet.two th { font-size: 6.8pt; padding: 1px 3px; }
}
.sched-page section { padding: 0; }
