/* 已约琴房：在 style.css 基础上的少量补充。结构与 iOS App 的「已约琴房」页一致 */
.qf-mark { background: linear-gradient(135deg, #2456cf, #6740c9); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.digits { font-variant-numeric: tabular-nums; }
.page-head { align-items: center; }
.page-head .btn svg { flex: none; }
.btn:disabled svg { animation: qf-spin 1s linear infinite; }
@keyframes qf-spin { to { transform: rotate(360deg); } }
.section-title .muted { margin-left: auto; font-weight: 400; }
.qf-footnote { margin: -8px 4px 0; font-size: 13px; }
.qf-footnote:empty { display: none; }

/* 可展开的行（日期、时段、此刻与下一场） */
.fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.fold-label { flex: 1; min-width: 0; }
.count { flex: none; color: var(--muted); font-size: 15px; }
.chevron { flex: none; color: var(--muted); transition: transform .2s; }
.fold[open] > summary > .chevron { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .chevron { transition: none; } }

/* 卡片 */
.qf-card { padding: 14px 18px; margin-bottom: 14px; }
.qf-card > summary:hover .fold-label strong { color: var(--accent); }

/* 此刻与下一场 */
.near-head { display: flex; align-items: baseline; gap: 8px; }
.near-head strong { flex: 1; font-size: 17px; }
.near-head time { font-size: 13px; color: var(--muted); }
.near-line { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.near-line.current { color: var(--ok); }
.near-body { padding: 12px 0 4px; display: grid; gap: 12px; }
.near-body hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.near-body h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.near-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; }
.near-row strong { overflow-wrap: anywhere; }
.near-row span { flex: none; font-size: 15px; }

/* 日期 */
.day-label strong { display: block; font-size: 17px; }
.day-label small { display: block; font-size: 13px; color: var(--muted); }
.day-body { padding: 4px 0 0 12px; }

/* 时段 */
.time { border-top: 1px solid var(--line); }
.time > summary { padding: 4px 0; }
.time .fold-label { font-weight: 500; }
.rooms { list-style: none; margin: 0; padding: 0 0 6px 12px; }
.room { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; }
.room + .room { border-top: 1px solid var(--line); }
.room-text { flex: 1; min-width: 0; }
.room-text strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.room-text small { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.in-use { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ok); }
.in-use::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.room[data-occupied="true"] .room-text strong { color: var(--muted); }
.room .switch { flex: none; padding: 0; font-size: 14px; color: var(--text-2); gap: 8px; }
.room .switch .track { width: 34px; height: 20px; }
.room .switch .track::after { width: 14px; height: 14px; }
.room .switch input:checked + .track::after { transform: translateX(14px); }
.room .switch input:disabled + .track { opacity: .6; }

@media (max-width: 600px) {
  .qf-card { padding: 12px 16px; }
}
