main.wx { display: block; max-width: 1100px; }
.wx-tools { margin-bottom: 14px; }
.wx-tools input { width: 100%; padding: 10px 12px; font: inherit; color: inherit; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; }
.lbl2 { margin-top: 10px; }
.wx-tools select { width: 100%; padding: 10px 12px; font: inherit; color: inherit; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; }
.wx-tools select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.muni { margin: -4px 0 8px; text-align: center; color: var(--muted); font-size: .75rem; }
.wx-tools .note { margin: 8px 0 0; }

.wx-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .wx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .wx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wx-empty { text-align: center; padding: 24px 0; }

/* a card flips: both faces sit in the same grid cell, so the card is as tall as the taller face */
/* off-screen cards are not laid out or painted until they scroll near the screen: ~200 cards stay cheap */
.vcard { position: relative; content-visibility: auto; contain-intrinsic-size: auto 372px; }
.card { perspective: 1000px; cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.card-inner { display: grid; transition: transform .5s; transform-style: preserve-3d; }
.card[aria-pressed=true] .card-inner { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.back { transform: rotateY(180deg); }
.card[aria-pressed=true] .front, .card[aria-pressed=false] .back { visibility: hidden; transition: visibility 0s .25s; }
@media (prefers-reduced-motion: reduce) {
  .card-inner { transition: none; }
  .card[aria-pressed=true] .front, .card[aria-pressed=false] .back { transition: none; }
}

.face h2 { margin: 0 0 8px; font-size: 1.1rem; text-align: center; }
.now { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 4px; }
.now .icon { font-size: 2.4rem; line-height: 1; }
.now .big { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.now-sub { text-align: center; color: var(--muted); font-size: .85rem; margin: 0 0 10px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.slot { background: var(--bg); border-radius: 8px; padding: 6px 2px; text-align: center; font-size: .8rem; line-height: 1.35; white-space: nowrap; }
.slot b { display: block; font-size: .85rem; }
.slot .ic { font-size: 1.2rem; }
.slot .dim { color: var(--muted); font-size: .72rem; display: block; }
@media (max-width: 360px) {
  .face { padding: 12px 10px; }
  .slot { font-size: .72rem; }
  .slot b { font-size: .74rem; }
  .slot .dim { font-size: .66rem; }
}
.hint-flip { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: .75rem; }

.days { margin: 0; padding: 0; list-style: none; }
.day { padding: 6px 0; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }
.day-top { display: flex; align-items: center; gap: 8px; }
.day-top .nm { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-top .ic { font-size: 1.3rem; }
.day-top .tt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-sub { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.partial { font-weight: 400; color: var(--muted); font-size: .72rem; }

/* favourites: the star sits beside the card (a button inside a button is not valid), over its top-right corner */
.fav { position: absolute; z-index: 3; top: 6px; right: 6px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fav .ic { width: 22px; height: 22px; stroke-width: 2; }
.fav:hover { background: var(--bg); }
.fav[aria-pressed=true] { color: #e9a912; }
.fav[aria-pressed=true] .ic { fill: #e9a912; }
.fav:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.face h2 { padding: 0 34px; }
.mine { margin-bottom: 18px; }
.mine-h { margin: 6px 0 12px; font-size: 1.2rem; text-align: center; }
.mine-h small, #mine-n { color: var(--muted); font-weight: 400; }
.all-h { margin-top: 22px; }
.a2hs { margin-bottom: 14px; }
.a2hs summary { cursor: pointer; font-weight: 600; }
.a2hs ol { margin: 10px 0 6px; padding-left: 1.3em; }
.a2hs p { margin: 8px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
