/* 紙の台帳風（2026-11-21 採用デザイン）。styles.css の上に重ねて使う。 */
:root {
  --paper: #FFFDF8;
  --paper-2: #FBF8F1;
  --paper-3: #F3EEE2;
  --paper-4: #EEE8DA;
  --ink: #2B2620;
  --ink-2: #5A5248;
  --muted: #6F665A;
  --line: #DDD4C0;
  --line-soft: #EEE8DA;
  --line-strong: #B9AE96;
  --red: #B8322A;
  --red-dark: #8E241D;
  --red-soft: #FBEBE3;
  --blue-ink: #1F4E9A;
  --line-green: #06C755;
  --page-accent: #B8322A;
  --page-dark: #8E241D;
  --page-soft: #FBEBE3;
  --page-canvas: #FFFDF8;
  --canvas: #F3EEE2;
  --green-dark: #5A5248;
  --green-soft: #F3EEE2;
  --hour: 96px;
  --timecol: 56px;
  --colw: minmax(160px, 1fr);
  --serif: 'Shippori Mincho', 'Yu Mincho', serif;
  --num: 'Inter', 'Zen Kaku Gothic New', system-ui, sans-serif;
}
html { background: var(--paper); }
body, body[data-view-theme] {
  --page-accent: #B8322A; --page-dark: #8E241D; --page-soft: #FBEBE3; --page-canvas: #FFFDF8;
  margin: 0; padding: 0; height: 100dvh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); color: var(--ink);
  font-family: 'Zen Kaku Gothic New', 'Yu Gothic UI', 'Noto Sans JP', system-ui, sans-serif;
}
button, input, select, textarea { font-family: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 共有接続のバー（shared.mjs が差し込む）を細く */
body #opsSessionTools { flex: none; gap: 6px; padding: 6px 16px; border-bottom: 1px solid var(--line); background: var(--paper-3); color: var(--ink-2); font-size: 13px; }
body #opsSessionTools strong { flex: none; min-width: 0; color: var(--ink); }
body #opsSessionTools input, body #opsSessionTools button { min-height: 36px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 700; }
body #opsSessionTools #opsDayNavigation { width: auto; flex: 1; }
body #opsSessionTools #opsDayNavigation button { min-height: 36px; }
body #opsSessionTools #opsDayHistory, body #opsSessionTools #opsHistoryHelp, body #opsSessionTools #opsAutoChecked { display: none; }
body #opsSessionTools #opsConnectionStatus, body #opsSessionTools #opsAutoStatus { width: auto; font-size: 11px; color: var(--muted); }
body #opsSessionTools #opsConnectionStatus[data-error="true"] { color: var(--red); font-weight: 700; }

.app-shell.paper-shell { flex: 1; min-height: 0; max-width: none; width: 100%; margin: 0; padding: 0; display: flex; flex-direction: column; background: var(--paper); border-radius: 0; box-shadow: none; overflow: hidden; }
.paper-top { flex: none; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.paper-brand { font-family: var(--serif); font-size: 21px; font-weight: 700; white-space: nowrap; }
.paper-spacer { flex: 1; }
.store-tabs-paper { display: flex; padding: 3px; border-radius: 10px; background: var(--paper-4); }
.store-tabs-paper button { white-space: nowrap; min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; }
.store-tabs-paper button[aria-selected="true"] { background: var(--paper); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sync-chip { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-2); }
.sync-chip:hover { border-color: var(--line); }
.sync-chip small { font-size: 12px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-dot { width: 8px; height: 8px; border-radius: 4px; background: #1E7A4C; flex: none; }
.paper-button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; }
.paper-button.is-accent { border: 0; background: var(--red); color: #fff; }
.avatar-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-3); color: var(--ink); font-weight: 700; }

main { flex: 1; min-height: 0; padding: 0; overflow: auto; }
#operationalError { margin: 8px 16px; }
.view { animation: none; }
#view-ledger.is-active { display: flex; height: 100%; }
.ledger-layout { flex: 1; min-width: 0; display: flex; }
.ledger-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--paper-2); }
.ledger-notes { flex: none; margin: 0; padding: 6px 16px; border-bottom: 1px solid var(--line-soft); background: var(--paper); color: var(--ink-2); font-size: 12px; }
.ledger-notes[hidden], .ledger-notes:empty { display: none; }
#ledgerBoard { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.swipe-hint { display: none; }

/* 台帳の格子 */
.paper-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-padding-left: var(--timecol); background: var(--paper-2); }
.paper-scroll:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.paper-grid { display: grid; grid-template-columns: var(--timecol) repeat(var(--cols), var(--colw)); grid-template-rows: auto auto; min-width: 100%; width: max-content; min-width: 100%; }
.paper-corner { position: sticky; top: 0; left: 0; z-index: 9; background: var(--paper); border-bottom: 1px solid var(--line); }
.paper-head { position: sticky; top: 0; z-index: 8; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 9px 12px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.paper-head strong { font-family: var(--serif); font-size: 19px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paper-head small { color: var(--ink-2); font-family: var(--num); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper-head.is-unlinked strong { font-family: inherit; font-size: 14px; color: var(--muted); }
/* 女の子ごとの「精算」ボタン（帰るたびに1人ずつ精算する） */
.head-settle { align-self: flex-start; margin-top: 4px; min-height: 30px; padding: 3px 12px; border: 1.5px solid var(--red); border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.head-settle[data-state="done"] { border-color: var(--line-strong); background: var(--paper); color: var(--muted); font-weight: 600; }
.head-settle[data-state="extra"] { border-color: #C77B1F; background: #FFF4E2; color: #8A5310; }
.head-settle:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* ヘブンの取り込みが止まったときの注意 */
.sync-alert { display: block; width: calc(100% - 24px); margin: 8px 12px; padding: 12px 14px; border: 2px solid var(--red); border-radius: 12px; background: var(--red-soft); color: var(--red-dark); font: inherit; font-size: 15px; font-weight: 700; line-height: 1.5; text-align: left; cursor: pointer; }
.sync-alert[hidden] { display: none; }
/* 給与未登録の子 */
.head-settle[data-state="nopay"] { border-color: #C77B1F; background: #FFF4E2; color: #8A5310; }
/* 売上報告（LINE用） */
.sales-report { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); display: grid; gap: 12px; }
.sales-report h3 { margin: 0; font-size: 17px; }
.money-grid .wide { grid-column: 1 / -1; }
.money-grid input.is-short { color: #c62828; font-weight: 800; }
.line-copy { min-height: 52px; border: 0; border-radius: 12px; background: var(--line-green); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.line-copy:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.report-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
/* 締めの順番 */
.closing-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; padding: 0; }
.closing-steps button { width: 100%; height: 100%; display: flex; gap: 8px; align-items: flex-start; text-align: left; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 64px; }
.closing-steps b { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--line-soft); font-family: var(--num); }
.closing-steps small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.closing-steps .is-current button { border-color: var(--red); background: var(--red-soft); }
.closing-steps .is-current b { background: var(--red); color: #fff; }
.closing-steps .is-done button { color: var(--muted); }
.closing-steps .is-done b { background: var(--line-strong); color: #fff; }
.closing-steps .is-done b::after { content: "✓"; }
.closing-steps .is-done b { font-size: 0; }
.closing-steps .is-done b::after { font-size: 14px; }
@media (max-width: 640px) { .closing-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 給与設定の編集 */
.pay-editor { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.pay-editor > summary { padding: 14px 16px; font-weight: 800; cursor: pointer; min-height: 48px; }
.pay-editor form { display: grid; gap: 14px; padding: 0 16px 16px; }
.pay-kind { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.pay-kind legend { font-weight: 700; margin-bottom: 6px; }
.pay-kind label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.pay-kind input { width: 22px; height: 22px; }
.pay-fields, .pay-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pay-fields[hidden] { display: none; }
.pay-fields label, .pay-terms label { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.pay-fields input, .pay-terms input { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.pay-note { margin: 0; font-size: 13px; color: var(--muted); }
/* 精算明細：印刷・LINEで送る */
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.receipt-actions button { min-height: 52px; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.receipt-actions .line-action { border: 0; background: var(--line-green); color: #fff; }
.receipt-actions .line-action:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Netlifyが自動で出す右下の表示が、スマホで「締め」ボタンに重なるため隠す */
#nl-badge-frame { display: none !important; }
.paper-times { position: sticky; left: 0; z-index: 5; background: var(--paper); border-right: 1px solid var(--line); }
.paper-times span { position: absolute; right: 8px; color: var(--ink-2); font-family: var(--num); font-size: 13px; }
.paper-lines { position: relative; z-index: 0; pointer-events: none; }
.hour-line, .half-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.half-line { border-top-color: var(--line-soft); }
.paper-col { position: relative; z-index: 1; min-width: 0; border-left: 1px solid var(--line); cursor: copy; }
.paper-col.is-unlinked { cursor: default; background: rgba(238,232,218,.35); }
.off-hours { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, rgba(238,232,218,.85) 0 6px, rgba(246,241,230,.85) 6px 12px); }
.paper-now { position: relative; z-index: 6; pointer-events: none; }
.now-line { position: absolute; left: 0; right: 0; border-top: 2px solid var(--red); }
.now-line span { position: absolute; left: 2px; top: -11px; padding: 1px 7px; border-radius: 6px; background: var(--red); color: #fff; font-family: var(--num); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* 予約の枠 */
.paper-booking { position: absolute; z-index: 2; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; overflow: hidden; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.paper-booking:hover { box-shadow: 0 2px 8px rgba(43,38,32,.12); }
.paper-booking:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.paper-booking.is-done { background: var(--paper-4); border-color: #D9D0BC; }
.paper-booking.is-now { background: var(--red-soft); border: 2px solid var(--red); }
.paper-booking.is-cancelled { background: repeating-linear-gradient(135deg, #F6F1E6 0 8px, #EEE8DA 8px 9px); border-style: dashed; color: var(--muted); }
.paper-booking.is-cancelled .booking-line b:first-child, .paper-booking.is-cancelled .booking-place { text-decoration: line-through; }
.paper-booking.is-unlinked { border-style: dashed; background: rgba(255,253,248,.7); color: var(--muted); }
.paper-booking.is-review { border: 2px dashed #B26A00; }
.review-tag { display: inline-block; margin-right: 4px; padding: 0 5px; border-radius: 5px; background: #FFF1CF; color: #7A4A00; font-family: inherit; font-size: 11px; font-weight: 700; }
.duplicate-box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1.5px dashed #B26A00; border-radius: 14px; background: #FFF8E6; }
.duplicate-box h4 { margin: 0; font-family: var(--serif); font-size: 17px; color: #7A4A00; }
.duplicate-box p { margin: 0; font-size: 14px; line-height: 1.6; }
.duplicate-box small { color: var(--ink-2); font-size: 12px; }
.duplicate-item { display: flex; flex-direction: column; gap: 8px; }
.duplicate-item + .duplicate-item { padding-top: 10px; border-top: 1px solid #EBD9A8; }
.outline-button.is-accent-line { border-color: var(--red); color: var(--red); font-weight: 700; }
.paper-booking.is-selected { box-shadow: 0 0 0 3px rgba(184,50,42,.28); }
.booking-line { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 15px; white-space: nowrap; }
.booking-line b { font-family: var(--num); font-weight: 700; }
.booking-course { color: var(--ink-2); font-family: var(--num); }
.booking-spacer { flex: 1; }
.booking-price { font-family: var(--num); }
.booking-place { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-actual { color: var(--ink-2); font-family: var(--num); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hanko { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; }
.mark-hon { color: var(--red); }
.mark-ne { color: var(--blue-ink); }
.mark-fu, .mark-none { color: var(--ink-2); }
.paper-empty { margin: 24px 16px; }
.ledger-exceptions { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--red-soft); }
.ledger-exceptions strong { width: 100%; font-size: 13px; color: var(--red-dark); }

/* 選んだ予約の詳細（PCは右側、スマホは下から） */
.ledger-aside { flex: none; width: 380px; box-sizing: border-box; overflow-y: auto; padding: 18px 20px; border-left: 1px solid var(--line); background: var(--paper); }
.paper-detail { display: flex; flex-direction: column; gap: 14px; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.detail-head small { color: var(--muted); font-size: 12px; }
.detail-head h3 { margin: 2px 0 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.state-chip { flex: none; padding: 4px 10px; border-radius: 10px; background: var(--paper-3); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.state-chip.is-now { background: var(--red-soft); color: var(--red); }
.state-chip.is-cancelled { background: var(--paper-4); color: var(--muted); }
.time-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.time-card { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 10px; border: 1px solid transparent; border-radius: 12px; background: var(--paper-3); color: var(--ink); text-align: left; }
.time-card small { color: var(--muted); font-size: 11px; }
.time-card b { font-family: var(--num); font-size: 19px; }
button.time-card { cursor: pointer; }
button.time-card:hover { border-color: var(--line-strong); }
.time-card.is-empty { border: 1.5px dashed var(--red); background: var(--paper); }
.time-card.is-empty b { color: var(--red); font-family: inherit; font-size: 15px; }
.time-card:disabled { opacity: .5; }
.now-button.primary-action { min-height: 56px; border-radius: 16px; background: var(--red); box-shadow: none; font-size: 17px; }
.room-row { display: flex; align-items: flex-end; gap: 8px; }
.room-place { flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-label { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 700; }
.room-label input { width: 84px; min-height: 48px; box-sizing: border-box; padding: 0 10px; border: 1.5px solid var(--red); border-radius: 12px; background: var(--paper); font-family: var(--num); font-size: 18px; font-weight: 700; text-align: center; }
.room-row .outline-button { min-height: 48px; padding: 0 14px; width: auto; }
.detail-rows { margin: 0; }
.detail-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.detail-rows div:last-child { border-bottom: 0; }
.detail-rows dt { color: var(--muted); flex: none; }
.detail-rows dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.line-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--paper-3); }
.line-box small { color: var(--muted); font-size: 12px; font-weight: 700; }
.line-box pre { margin: 0; font-family: inherit; font-size: 14px; line-height: 1.6; white-space: pre-wrap; user-select: all; }
.line-button { min-height: 48px; border: 0; border-radius: 12px; background: var(--line-green); color: #fff; font-size: 15px; font-weight: 700; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-actions .outline-button { min-height: 48px; width: 100%; }
.outline-button.is-danger { border-color: #E8B9A8; color: #A12A1F; }
.text-button { min-height: 40px; padding: 0; border: 0; background: none; color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.source-review { margin: 0; padding: 8px 10px; border-radius: 10px; background: #FFF4D6; color: #6B4A00; font-size: 13px; }

/* 共通部品を紙の色に */
.outline-button { border-color: var(--line); background: var(--paper); color: var(--ink); }
.primary-action { background: var(--red); box-shadow: none; }
.bottom-sheet.paper-sheet { background: var(--paper); }
.paper-sheet .sheet-header h2 { font-family: var(--serif); }
.sheet-handle { background: #CFC5AE; }
.close-sheet { background: var(--paper-4); color: var(--ink-2); }
.paper-sheet fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.paper-sheet legend { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.paper-sheet label { color: var(--muted); font-size: 12px; font-weight: 700; }
.paper-sheet input:not([type=checkbox]):not([type=hidden]), .paper-sheet select, .paper-sheet textarea { border-color: var(--line); background: var(--paper); color: var(--ink); }
#startInput { font-family: var(--num); font-size: 22px; font-weight: 700; border: 1.5px solid var(--red); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.paper-chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); font-size: 14px; }
.paper-chip.is-selected { border-color: var(--red); background: var(--red); color: #fff; font-weight: 700; }
span.paper-chip { display: inline-flex; align-items: center; }
.other-casts { width: 100%; }
.other-casts summary { min-height: 36px; display: flex; align-items: center; color: var(--muted); font-size: 13px; cursor: pointer; }
.course-grid, .type-grid { display: grid; gap: 6px; }
.course-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course-grid button, .type-grid button { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-family: var(--num); font-size: 16px; }
.type-grid button { font-family: inherit; font-size: 15px; }
.course-grid button.is-selected, .type-grid button.is-selected { border-color: var(--red); background: var(--red); color: #fff; font-weight: 700; }
.payment-tabs button.is-selected { background: var(--red); color: #fff; }
.more-fields { margin: 4px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.more-fields summary { min-height: 32px; display: flex; align-items: center; color: var(--ink-2); font-size: 14px; font-weight: 700; cursor: pointer; }
.more-fields[open] summary { margin-bottom: 10px; }
.form-note { color: var(--muted); font-size: 12px; }
.setting-list button { background: var(--paper); border-color: var(--line); }
.status-pill.yellow { background: var(--paper-3); color: var(--ink-2); }
.toast { background: var(--ink); }

/* 締め */
#view-close.is-active { display: block; max-width: 760px; margin: 0 auto; padding: 20px 20px 120px; }
#view-close .section-heading h2 { font-family: var(--serif); }
.back-to-ledger { width: auto; min-height: 40px; margin: 0 0 14px; padding: 0 14px; }
.ledger-total-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-3); }
.ledger-total-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.ledger-total-card strong { grid-column: 1; font-family: var(--num); font-size: 24px; }
.ledger-total-card small { grid-column: 1; color: var(--ink-2); font-size: 12px; }
.ledger-total-card button { grid-column: 2; grid-row: 1 / span 3; width: auto; min-height: 44px; padding: 0 14px; }
.settlement-entry { background: var(--paper); border-color: var(--line); }
.money-grid input { border-color: var(--line); background: var(--paper); }
.cash-result { background: var(--paper-3); color: var(--ink); }

/* スマホ下のボタン */
.paper-nav { display: none; }
.wide-only { display: inline-flex; align-items: center; }

@media (max-width: 1023px) {
  .ledger-aside { display: none; }
  .wide-only { display: none; }
  .paper-nav { flex: none; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; padding: 8px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
  .paper-nav button { min-height: 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; }
  .paper-nav button.is-accent { border: 0; background: var(--red); color: #fff; font-size: 15px; }
  .paper-nav button[hidden] { visibility: hidden; display: block; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 759px) {
  :root { --timecol: 44px; --colw: calc((100vw - 44px) / 2.35); }
  .paper-top { gap: 8px; min-height: 52px; padding: 6px 12px; flex-wrap: wrap; }
  .paper-brand { font-size: 17px; }
  .store-tabs-paper button { min-height: 34px; padding: 0 10px; font-size: 13px; }
  .sync-chip small { max-width: 110px; font-size: 11px; }
  .paper-scroll { scroll-snap-type: x mandatory; }
  .paper-head, .paper-col { scroll-snap-align: start; }
  .paper-head { padding: 7px 9px; }
  .paper-head strong { font-size: 17px; }
  .paper-head small { font-size: 12px; }
  .paper-times span { right: 5px; font-size: 12px; }
  .paper-booking { padding: 5px 7px; }
  .booking-line { font-size: 14px; gap: 4px; }
  .booking-course { display: none; }
  .hanko { width: 19px; height: 19px; font-size: 11px; }
  .booking-place { font-size: 13px; }
  .booking-actual { font-size: 12px; }
  .swipe-hint { display: block; flex: none; margin: 0; padding: 4px 0; background: var(--paper); color: var(--muted); font-size: 11px; text-align: center; }
  body #opsSessionTools { padding: 4px 8px; flex-wrap: nowrap; }
  body #opsSessionTools > strong, body #opsSessionTools #opsAutoStatus, body #opsSessionTools #opsReloadDay, body #opsSessionTools #opsLogoutButton, body #opsSessionTools #opsConnectPublished { display: none; }
  body #opsSessionTools #opsConnectionStatus:not([data-error="true"]) { display: none; }
  body #opsSessionTools #opsDayNavigation { flex-wrap: nowrap; gap: 4px; }
  body #opsSessionTools #opsDayNavigation label { font-size: 0; gap: 0; }
  body #opsSessionTools #opsDayNavigation input { width: 136px; font-size: 14px; }
  body #opsSessionTools #opsDayNavigation button { padding: 4px 8px; font-size: 13px; white-space: nowrap; }
  /* エラーの文字は日付ボタンの下の行に出して、ボタンをつぶさない */
  body #opsSessionTools:has(#opsConnectionStatus[data-error="true"]) { flex-wrap: wrap; }
  body #opsSessionTools #opsConnectionStatus[data-error="true"] { flex-basis: 100%; order: 9; font-size: 12px; }
  .paper-top { flex-wrap: nowrap; }
  .sync-chip { padding: 0 6px; }
  .sync-chip small { display: none; }
  .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #view-close.is-active { padding: 14px 16px 24px; }
}
@media (min-width: 760px) {
  body { padding: 0; }
  .app-shell { min-height: 0; border-radius: 0; box-shadow: none; }
  main { padding: 0; }
}
.line-copy.sheet-copy { background: #217346; }
/* 地図・位置共有（2026-11-25 戻した） */
#view-map.is-active { display: block; max-width: 980px; margin: 0 auto; padding: 20px 20px 120px; }
#view-map .section-heading h2 { font-family: var(--serif); }
#view-map .location-toggle { width: 100%; justify-content: center; min-height: 56px; margin: 0 0 12px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-size: 17px; opacity: 1; }
#view-map .location-toggle span:last-child { display: inline; }
#view-map .location-toggle[aria-pressed="true"] { background: #e6f4ec; color: #07683e; border-color: #07683e; }
#view-map .map-canvas { min-height: 380px; margin: 0 0 12px; }
#view-map .map-info { color: var(--ink); }
#view-map .map-navigation { display: grid; gap: 8px; margin-top: 14px; }
#view-map .map-navigation input { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; }
@media (max-width: 899px) { #view-map.is-active { padding: 14px 16px 24px; } }
.paper-nav { grid-template-columns: 1fr 1.4fr 1fr 1fr; }
.paper-nav button { white-space: nowrap; padding: 0 4px; }

/* ===== 2026-11-26 画面切り替えボタン・締め・地図をシンプルに少しポップに ===== */
:root { --pop-coral: #FF6B5A; --pop-coral-soft: #FFEDEA; --pop-mint: #2BB673; --pop-mint-soft: #E5F7EE; --pop-sky: #3A86FF; --pop-sky-soft: #E8F0FF; --pop-sun: #FFB020; --pop-sun-soft: #FFF4DE; --pop-card: #FFFFFF; }
/* 画面切り替え：いつも同じ場所・同じ名前。今いる画面だけ色が付く */
.view-tabs { gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-3); }
.view-tabs button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 800; cursor: pointer; }
.view-tabs button.is-current { background: var(--pop-card); color: var(--pop-coral); box-shadow: 0 2px 8px rgba(43,38,32,.12); }
.paper-nav { grid-template-columns: 1fr 1fr 1.5fr 1fr; align-items: stretch; }
.paper-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 16px; font-size: 13px; }
.paper-nav button span { font-size: 18px; line-height: 1; }
.paper-nav button.is-current { border-color: var(--pop-coral); background: var(--pop-coral-soft); color: var(--pop-coral); }
.paper-nav button.is-accent { flex-direction: row; font-size: 15px; background: var(--pop-coral); box-shadow: 0 4px 12px rgba(255,107,90,.35); }
.now-button { position: sticky; bottom: 12px; float: right; margin: 8px 12px 0 0; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 5; cursor: pointer; }
.now-button[hidden] { display: none; }

/* 締め・地図：白いカードに分けて、手順ごとに色の付いた見出し */
#view-close.is-active, #view-map.is-active { background: var(--paper-2); }
#view-close .section-heading h2, #view-map .section-heading h2 { font-size: 26px; }
.close-step-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 18px; font-weight: 800; color: var(--ink); }
.close-step-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--pop-coral); }
#closeStepSales::before { background: var(--pop-sky); }
#closeStepCash::before { background: var(--pop-mint); }
#closeStepSafe::before { background: var(--pop-sun); }
#view-close .ledger-total-card, #view-close .settlement-entry, #view-close .daily-items, #view-close .cash-counter, #view-close .sales-report, #view-close .month-sheet, #view-close .confirm-prev,
#view-map .map-info, #view-map .map-canvas, #view-map .staff-list, #view-map .map-navigation { border: 0; border-radius: 18px; background: var(--pop-card); box-shadow: 0 2px 10px rgba(43,38,32,.07); }
#view-close .money-grid.close-inputs { gap: 10px; }
#view-close .money-grid.close-inputs label { padding: 10px 12px; border-radius: 14px; background: var(--pop-card); box-shadow: 0 1px 6px rgba(43,38,32,.06); font-size: 13px; font-weight: 700; color: var(--ink-2); }
#view-close .money-grid input { margin-top: 6px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 18px; font-weight: 700; }
#view-close .money-grid input:focus, .daily-item input:focus, .cash-counter-grid input:focus, #measuredCash:focus { outline: none; border-color: var(--pop-sky); box-shadow: 0 0 0 3px var(--pop-sky-soft); }
#view-close input[readonly] { border-style: dashed; background: var(--paper-3); color: var(--ink-2); }
.field-note { display: block; margin-top: 4px; color: var(--pop-mint); font-size: 11px; font-weight: 700; }
#view-close .ledger-total-card { padding: 14px 16px; }
#view-close .ledger-total-card button { border-radius: 999px; border-color: var(--pop-sky); color: var(--pop-sky); font-weight: 800; }
.closing-steps button { border: 0; border-radius: 16px; background: var(--pop-card); box-shadow: 0 1px 6px rgba(43,38,32,.07); }
.closing-steps .is-current button { background: var(--pop-coral-soft); box-shadow: 0 0 0 2px var(--pop-coral) inset; }
.closing-steps .is-current b { background: var(--pop-coral); }
.closing-steps .is-done b { background: var(--pop-mint); }
.confirm-prev { display: grid; gap: 10px; margin: 0 0 14px; padding: 14px 16px; box-shadow: 0 0 0 2px var(--pop-sun) inset !important; background: var(--pop-sun-soft) !important; }
.confirm-prev[hidden] { display: none; }
.confirm-prev p { margin: 0; font-weight: 700; line-height: 1.6; }
.confirm-prev button { background: var(--pop-sun); color: #3b2a00; }
/* 日払い分 */
.daily-items { display: grid; gap: 8px; margin-top: 10px; padding: 14px 16px; }
.daily-items-head { display: flex; justify-content: space-between; align-items: baseline; }
.daily-items-head h4 { margin: 0; font-size: 15px; }
.daily-items-head strong { font-family: var(--num); font-size: 22px; color: var(--pop-sky); }
.daily-item { display: grid; grid-template-columns: 1fr 120px 40px; gap: 6px; }
.daily-item input { min-height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; }
.daily-remove { border: 0; border-radius: 10px; background: var(--pop-coral-soft); color: var(--pop-coral); font-size: 20px; font-weight: 800; cursor: pointer; }
#addDailyItem { border-style: dashed; border-radius: 12px; color: var(--pop-sky); border-color: var(--pop-sky); font-weight: 800; }
.daily-total-field { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.daily-total-field input { min-height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 18px; font-weight: 700; }
/* 現金を数える */
#view-close .cash-result { border-radius: 18px; background: linear-gradient(135deg, var(--pop-mint-soft), #fff); color: var(--ink); box-shadow: 0 2px 10px rgba(43,38,32,.07); }
#view-close .cash-result strong { color: var(--pop-mint); }
#view-close .cash-result small { color: var(--ink-2); }
.cash-counter { margin: 10px 0; padding: 4px 16px; }
.cash-counter summary { min-height: 48px; display: flex; align-items: center; font-weight: 800; color: var(--pop-mint); cursor: pointer; }
.cash-counter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding-bottom: 8px; }
.cash-counter-grid label { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.cash-counter-grid input { min-height: 40px; width: 100%; padding: 0 8px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; text-align: right; }
.cash-counter-total { margin: 4px 0 12px; font-weight: 700; }
.cash-counter-total strong { font-family: var(--num); font-size: 20px; color: var(--pop-mint); }
#view-close .large-input { display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--pop-card); box-shadow: 0 1px 6px rgba(43,38,32,.06); font-weight: 800; }
#measuredCash { min-height: 56px; padding: 0 12px; border: 2px solid var(--pop-mint); border-radius: 12px; font: inherit; font-family: var(--num); font-size: 24px; font-weight: 800; }
.cash-diff { margin: 10px 0 0; padding: 14px 16px; border-radius: 16px; font-size: 20px; font-weight: 800; text-align: center; }
.cash-diff[hidden] { display: none; }
.cash-diff.is-ok { background: var(--pop-mint-soft); color: var(--pop-mint); }
.cash-diff.is-short { background: var(--pop-coral-soft); color: #D93A28; }
.cash-diff.is-over { background: var(--pop-sun-soft); color: #A86A00; }
#view-close #closeButton { margin-top: 14px; min-height: 58px; border-radius: 16px; background: var(--pop-coral); font-size: 17px; box-shadow: 0 6px 16px rgba(255,107,90,.35); }
/* 今日の1行・今月の一覧 */
#view-close .sales-report { padding: 16px; }
.sheet-row-wrap { overflow-x: auto; }
.sheet-row { border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.sheet-row th, .sheet-row td { padding: 6px 8px; border: 1px solid var(--line-soft); text-align: right; }
.sheet-row thead th { background: var(--pop-sky-soft); color: var(--ink-2); font-weight: 700; text-align: center; }
.sheet-row tbody th { background: var(--paper-2); }
.sheet-row td button { min-height: 30px; padding: 0 10px; font-size: 12px; }
.month-sheet { margin-top: 14px; padding: 4px 16px 12px; }
.month-sheet summary { min-height: 48px; display: flex; align-items: center; font-weight: 800; color: var(--pop-sky); cursor: pointer; }
.hidden-calc { display: none; }
/* 地図 */
#view-map .map-info { padding: 14px 16px; }
#view-map .map-actions button { border-radius: 999px; }
#view-map .map-canvas { overflow: hidden; }
#view-map .staff-list { padding: 8px 12px; }
#view-map .map-navigation { padding: 14px 16px; }
#view-map .map-navigation .primary-action { border-radius: 14px; background: var(--pop-sky); }
#view-map .location-toggle { border: 0; border-radius: 18px; background: var(--pop-card); box-shadow: 0 2px 10px rgba(43,38,32,.08); }
#view-map .location-toggle[aria-pressed="true"] { background: var(--pop-mint); color: #fff; box-shadow: 0 4px 14px rgba(43,182,115,.35); }
@media (max-width: 640px) { .daily-item { grid-template-columns: 1fr 96px 40px; } #view-close .money-grid.close-inputs { grid-template-columns: 1fr 1fr; } }
.ledger-main .now-button { float: none; display: block; width: auto; margin: 8px 12px 0 auto; align-self: flex-end; justify-self: end; font-size: 14px; padding: 0 18px; }

/* ===== 2026-11-27 見やすさ・使いやすさの見直し ===== */
/* 1. 一番上は日付だけの1段に（再読込・ログアウトは右上の「人」メニューにある） */
body #opsSessionTools { flex-wrap: nowrap; padding: 6px 12px; gap: 6px; }
body #opsSessionTools > strong, body #opsSessionTools #opsAutoStatus, body #opsSessionTools #opsReloadDay, body #opsSessionTools #opsLogoutButton, body #opsSessionTools #opsConnectPublished { display: none; }
body #opsSessionTools #opsConnectionStatus:not([data-error="true"]) { display: none; }
body #opsSessionTools #opsDayNavigation { flex-wrap: nowrap; gap: 6px; justify-content: center; }
body #opsSessionTools #opsDayNavigation label { font-size: 0; gap: 0; }
body #opsSessionTools #opsDayNavigation input { width: 150px; font-size: 15px; text-align: center; border-radius: 999px; }
body #opsSessionTools #opsDayNavigation button { min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
body #opsSessionTools:has(#opsConnectionStatus[data-error="true"]) { flex-wrap: wrap; }

/* 2. 取り込み停止のお知らせは1行 */
.sync-alert { display: block; width: 100%; min-height: 40px; margin: 0 0 6px; padding: 8px 14px; border: 0; border-radius: 12px; background: var(--pop-coral-soft); color: #C0392B; font: inherit; font-size: 13px; font-weight: 800; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.sync-alert[hidden] { display: none; }

/* 3. 精算画面：カード＋色、手渡し額はいつも下に大きく見える */
.settlement-sheet { background: var(--paper-2); }
.settlement-sheet .permission-note { padding: 10px 14px; border-radius: 12px; background: var(--pop-sky-soft); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.settlement-sheet .cast-row, .settlement-work, .settlement-sheet .settlement-totals, .settlement-sheet .work-pay-form, .settlement-sheet #dailySettlementForm > label, .settlement-sheet .settlement-history { border: 0; border-radius: 16px; background: #fff; box-shadow: 0 1px 8px rgba(43,38,32,.07); }
.settlement-work { min-height: 76px; border-left: 5px solid var(--pop-sky); }
.settlement-work > span:last-child { color: var(--pop-sky); font-size: 18px; }
.settlement-sheet #dailySettlementForm { display: grid; gap: 10px; }
.settlement-sheet #dailySettlementForm > label { padding: 10px 12px; font-size: 13px; font-weight: 700; }
.settlement-sheet .settlement-subheading { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 17px; }
.settlement-sheet .settlement-subheading::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--pop-mint); }
.settlement-sheet .settlement-totals { margin: 6px 0; }
.settlement-sheet .settlement-net { position: sticky; bottom: 0; z-index: 3; margin: 8px -4px; padding: 14px 18px; border-radius: 18px; background: var(--pop-mint); color: #fff; box-shadow: 0 -4px 18px rgba(43,38,32,.15); }
.settlement-sheet .settlement-net > strong { font-family: var(--num); font-size: 30px; }
.settlement-sheet .settlement-net small { color: rgba(255,255,255,.9); font-size: 12px; }
.settlement-sheet .primary-action { border-radius: 16px; background: var(--pop-coral); box-shadow: 0 6px 16px rgba(255,107,90,.3); }
.settlement-sheet .outline-button { border-radius: 14px; }
.settlement-sheet .settlement-warning { border-radius: 14px; }

/* 4. 台帳の予約枠：左の色の帯で状態が分かる（予定＝青・接客中＝赤・終わり＝緑・キャンセル＝灰） */
.paper-booking { border-left: 5px solid var(--pop-sky); border-radius: 10px; }
.paper-booking.is-now { border-left: 5px solid var(--pop-coral); }
.paper-booking.is-done { border-left: 5px solid var(--pop-mint); }
.paper-booking.is-cancelled { border-left: 5px solid #B9B2A3; }
.paper-booking .booking-line b:first-child { font-size: 15px; }
.paper-booking .booking-price { font-family: var(--num); }
.paper-booking .booking-place { font-size: 13px; font-weight: 700; color: var(--ink); }
.paper-booking .booking-actual { font-size: 12px; color: var(--muted); }

/* 5. 文字とボタンの大きさをそろえる */
.toast { border-radius: 14px; font-weight: 700; }
.status-pill { border-radius: 999px; font-weight: 800; }
.outline-button, .primary-action, .secondary-action { min-height: 44px; }
.paper-sheet .sheet-header h2 { font-size: 22px; }
.paper-sheet .close-sheet { width: 44px; height: 44px; border-radius: 50%; }

/* 6. 予約を書く画面：入れる順番に、白いカードで */
#reservationSheet { background: var(--paper-2); }
#reservationForm { display: grid; gap: 12px; }
#reservationForm > fieldset, #reservationForm > .two-column, #reservationForm > .more-fields { margin: 0; padding: 12px 14px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 1px 8px rgba(43,38,32,.07); }
#reservationForm legend { padding: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--ink); }
#reservationForm label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
#reservationForm input, #reservationForm select, #reservationForm textarea { border-radius: 10px; font-size: 17px; }
#reservationForm .course-grid button.is-selected, #reservationForm .type-grid button.is-selected, #reservationForm .payment-tabs button.is-selected, #reservationForm .chip-row button.is-selected { background: var(--pop-coral); border-color: var(--pop-coral); color: #fff; }
#reservationForm .more-fields summary { min-height: 40px; display: flex; align-items: center; font-weight: 800; color: var(--pop-sky); cursor: pointer; }
#reservationForm .primary-action { min-height: 56px; border-radius: 16px; background: var(--pop-coral); font-size: 17px; box-shadow: 0 6px 16px rgba(255,107,90,.3); }

/* ===== 2026-11-27 締めは事務所のPC向けの2列、携帯は下のボタンを携帯向けに ===== */
.close-mobile-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--pop-sky-soft); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.paper-nav button#navViewToggle[hidden] { display: none; }
@media (min-width: 1000px) {
  .close-mobile-note { display: none; }
  #view-close.is-active { max-width: 1280px; padding: 20px 28px 60px; }
  .close-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 28px; align-items: start; }
  .close-side { position: sticky; top: 12px; display: grid; gap: 10px; }
  .close-side .close-step-title { margin-top: 0; }
  .close-main .money-grid.close-inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .close-side .money-grid.close-inputs { grid-template-columns: 1fr 1fr; }
  .close-main .cash-counter-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .close-main .cash-counter-grid label { grid-template-columns: 1fr; text-align: center; }
  .close-main .cash-counter-grid label small { display: none; }
  .close-main .daily-items { grid-template-columns: 1fr; }
  .close-side .sales-report { margin-top: 4px; }
  #view-close .month-sheet { margin-top: 24px; }
  .sheet-row { font-size: 13px; }
}
.price-hint { display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--pop-sun-soft); } .price-hint[hidden] { display: none; } .price-hint label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); } .price-hint select { min-height: 44px; border-radius: 10px; font-size: 16px; } .price-hint p { margin: 0; font-size: 13px; font-weight: 700; color: #8A5A00; line-height: 1.5; }
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.price-media { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #fff; }
.price-media button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 800; color: var(--ink-2); cursor: pointer; }
.price-media button.is-selected { background: var(--pop-mint); color: #fff; }
#priceCourseList { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 2px; }
.price-course { padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(43,38,32,.06); }
.price-course.is-selected { box-shadow: 0 0 0 2px var(--pop-coral) inset; }
.price-course-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; }
.price-tag { padding: 1px 8px; border-radius: 999px; background: var(--pop-mint); color: #fff; font-size: 11px; font-weight: 800; }
.price-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.price-chip { min-height: 40px; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; display: grid; text-align: center; }
.price-chip b { font-size: 14px; color: var(--ink); }
.price-chip.is-selected { border-color: var(--pop-coral); background: var(--pop-coral); color: #fff; }
.price-chip.is-selected b { color: #fff; }

/* ===== 2026-11-27 台帳の「一覧」（予約ごとのカード） ===== */
.ledger-mode { display: inline-flex; gap: 4px; margin: 0 0 8px; padding: 4px; border-radius: 999px; background: var(--paper-3); }
.ledger-mode button { min-height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 800; color: var(--ink-2); cursor: pointer; }
.ledger-mode button.is-selected { background: #fff; color: var(--pop-coral); box-shadow: 0 2px 8px rgba(43,38,32,.12); }
.list-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.list-filters button { min-height: 36px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.list-filters button b { margin-left: 6px; font-family: var(--num); }
.list-filters button.is-selected { border-color: var(--pop-coral); background: var(--pop-coral); color: #fff; }
.ledger-list { display: grid; gap: 8px; padding-bottom: 80px; }
.list-card { display: grid; gap: 4px; width: 100%; padding: 12px 14px; border: 0; border-left: 6px solid var(--pop-sky); border-radius: 14px; background: #fff; box-shadow: 0 1px 8px rgba(43,38,32,.08); font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.list-card.is-now { border-left-color: var(--pop-coral); background: var(--pop-coral-soft); }
.list-card.is-done { border-left-color: var(--pop-mint); }
.list-card.is-cancelled { border-left-color: #B9B2A3; opacity: .7; }
.list-card.is-cancelled .lc-time { text-decoration: line-through; }
.list-card.is-selected { box-shadow: 0 0 0 3px rgba(255,107,90,.35); }
.lc-top { display: flex; align-items: center; gap: 8px; }
.lc-state { padding: 2px 10px; border-radius: 999px; background: var(--pop-sky-soft); color: var(--pop-sky); font-size: 12px; font-weight: 800; }
.is-now .lc-state { background: var(--pop-coral); color: #fff; }
.is-done .lc-state { background: var(--pop-mint-soft); color: var(--pop-mint); }
.is-cancelled .lc-state { background: var(--paper-3); color: var(--muted); }
.lc-source { font-size: 11px; color: var(--muted); font-weight: 700; }
.lc-time { font-family: var(--num); font-size: 17px; }
.lc-price { margin-left: auto; font-family: var(--num); font-size: 17px; }
.lc-mid { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.lc-mid strong { font-size: 17px; color: var(--ink); }
.lc-bottom { font-size: 13px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
body.ledger-list-mode .swipe-hint, body.ledger-list-mode .now-button { display: none; }
