/*
 * 見た目は試作「ROOM 07 かんたん予約」を正とする。
 * 色・字・部品のかたちは試作のものをそのまま使い、
 * 管理画面とログイン画面も同じトークンで揃えている。
 */

:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --ink: #18202c;
  --muted: #5d6777;
  --line: #d9dee6;
  --accent: #dc5419;
  --accent-ink: #ffffff;
  --accent-soft: #fce8dd;
  --booked: #cbd1db;
  --mine: #dc5419;
  --hatch: #e4e8ee;
  --ok: #1e8757;
  --ok-soft: #ddf2e7;
  --sat: #2b5fc4;
  --sun: #cc3535;
  --shadow: 0 -6px 24px rgb(24 32 44 / 10%);
  --f-body: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    system-ui, sans-serif;
  --f-num: "Barlow Condensed", "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #10141a;
    --surface: #19202a;
    --surface-2: #141a22;
    --ink: #e7ebf1;
    --muted: #98a2b3;
    --line: #2c3441;
    --accent: #ff7a3d;
    --accent-ink: #1b0d05;
    --accent-soft: #3b2317;
    --booked: #3a4351;
    --mine: #ff7a3d;
    --hatch: #222a35;
    --ok: #4cc38a;
    --ok-soft: #173226;
    --sat: #82a8f2;
    --sun: #f28a8a;
    --shadow: 0 -6px 24px rgb(0 0 0 / 45%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10141a;
  --surface: #19202a;
  --surface-2: #141a22;
  --ink: #e7ebf1;
  --muted: #98a2b3;
  --line: #2c3441;
  --accent: #ff7a3d;
  --accent-ink: #1b0d05;
  --accent-soft: #3b2317;
  --booked: #3a4351;
  --mine: #ff7a3d;
  --hatch: #222a35;
  --ok: #4cc38a;
  --ok-soft: #173226;
  --sat: #82a8f2;
  --sun: #f28a8a;
  --shadow: 0 -6px 24px rgb(0 0 0 / 45%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.6;
  padding-inline: 16px;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a {
  color: var(--accent);
}

/* ---------- 枠組み ---------- */

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-block: 20px 140px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.wrap-wide {
  max-width: 1100px;
  padding-block: 20px 64px;
  gap: 20px;
}

.wrap > *,
.ticket > *,
.hour > * {
  min-width: 0;
}

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand b {
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

/* ---------- あなたの予約 ---------- */

.mine {
  display: grid;
  gap: 8px;
}

.ticket {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
}

.ticket.live {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.ticket.fresh {
  border-color: var(--accent);
}

.t-date {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.04em;
}

.badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.t-time {
  font-family: var(--f-num);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.t-time i {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
  margin: 0 4px;
}

.t-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.t-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:disabled {
  background: var(--hatch);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
}

.btn-ghost.danger {
  border-color: var(--sun);
  color: var(--sun);
}

.btn-unlock {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-unlock svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.link {
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.link:hover {
  color: var(--ink);
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
  color: var(--muted);
  margin: 0;
}

/* ---------- 日付と利用時間 ---------- */

.picker {
  position: sticky;
  top: env(safe-area-inset-top, 0);
  z-index: 5;
  background: var(--bg);
  margin-inline: -16px;
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.strip::-webkit-scrollbar {
  display: none;
}

.day {
  flex: 0 0 56px;
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 6px 0 7px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.day .dw {
  font-size: 11px;
  color: var(--muted);
}

.day .dn {
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.day .dm {
  font-size: 10px;
  color: var(--muted);
  line-height: 1;
}

.day.sat .dw {
  color: var(--sat);
}

.day.sun .dw {
  color: var(--sun);
}

.day[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.day[aria-pressed="true"] .dw,
.day[aria-pressed="true"] .dm {
  color: var(--bg);
  opacity: 0.75;
}

.durs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.durs.durs-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dur {
  height: 40px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.dur small {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  margin-left: 2px;
}

.dur:hover:not(:disabled) {
  color: var(--ink);
}

.dur:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.dur[aria-pressed="true"],
.dur[aria-pressed="true"]:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ---------- 開始時刻 ---------- */

.hours {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.hour {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.hour:first-child {
  border-top: 0;
}

.hl {
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 18px;
  line-height: 46px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hl small {
  font-family: var(--f-body);
  font-size: 10px;
  margin-left: 1px;
}

.chips {
  /* 列数は店舗の刻み（60 ÷ slot_minutes）で決まる。既定は 15 分＝4列。
     刻みを細かくしても潰れないよう最小幅を持たせ、はみ出す分は横に送る。 */
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(56px, 1fr));
  gap: 8px;
  max-width: 480px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chip {
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-content: center;
  line-height: 1.1;
  transition: background 0.1s, border-color 0.1s;
}

.chip:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.chip small {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
}

.chip:disabled {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--muted);
  opacity: 0.45;
  cursor: not-allowed;
}

.chip[aria-pressed="true"],
.chip[aria-pressed="true"]:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.chip.inrange,
.chip.inrange:disabled {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent);
  opacity: 1;
}

/* ---------- 下部のバー ---------- */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}

.bar-in {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bar-sum {
  display: grid;
  line-height: 1.25;
}

.bar-sum small {
  color: var(--muted);
  font-size: 12px;
}

.bar-sum b {
  font-family: var(--f-num);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bar-sum b i {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
  margin: 0 3px;
}

.bar-note {
  color: var(--muted);
  font-size: 11px;
}

.btn-book {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 12px;
}

/* ---------- 確認ウィンドウ・シート ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgb(10 14 20 / 50%);
  display: grid;
  place-items: center;
  padding: 16px;
}

.scrim.sheet-scrim {
  align-items: end;
  padding: 0;
}

.dialog {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border-radius: 16px;
  padding: 22px 20px 18px;
  display: grid;
  gap: 14px;
  text-align: center;
  box-shadow: 0 20px 50px rgb(0 0 0 / 30%);
}

.dialog h3 {
  margin: 0;
  font-size: 17px;
}

.dialog .what {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.dialog .what b {
  display: block;
  font-family: var(--f-num);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.dialog-actions button {
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.d-cancel {
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.d-ok {
  background: var(--sun);
  border: 0;
  color: #fff;
}

.sheet {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 8px;
  box-shadow: 0 -12px 40px rgb(0 0 0 / 25%);
}

.sheet-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.sheet-option {
  display: block;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.sheet-close {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 15px;
  cursor: pointer;
}

/* ---------- 通知 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 30;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  width: max-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}

.toast-alert {
  background: var(--sun);
  color: #fff;
}

.loading {
  color: var(--muted);
  padding: 24px 0;
  text-align: center;
}

.locked-note {
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--accent);
  font-size: 13px;
  padding: 10px 14px;
  margin: 0;
}

/* ---------- 店舗の切り替え（管理者のみ） ---------- */

.store-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.store-switcher select {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

/* ---------- ログイン・招待 ---------- */

.auth-card {
  width: 100%;
  max-width: 400px;
  margin: 8px auto 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
}

.auth-lead {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
}

.auth-links {
  margin: 18px 0 0;
  font-size: 12px;
}

/* ---------- フォーム ---------- */

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.field input,
.field select {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.field-hint,
.field-static {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
}

legend {
  font-size: 12px;
  color: var(--muted);
  padding: 0 6px;
}

input[type="submit"] {
  border: 0;
  border-radius: 10px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 10px;
  padding: 11px 20px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.button-danger {
  background: var(--sun);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
}

.form-errors {
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--sun);
  margin: 0 0 16px;
  padding: 12px 16px 12px 32px;
  font-size: 13px;
}

.flash {
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 13px;
}

.flash-notice {
  background: var(--ok-soft);
  color: var(--ok);
}

.flash-alert {
  background: var(--accent-soft);
  color: var(--sun);
}

.empty-state {
  color: var(--muted);
  padding: 32px 0;
  text-align: center;
}

/* ---------- 管理画面 ---------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-lead {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters input,
.filters select {
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--hatch);
  color: var(--muted);
}

.status-active,
.status-booked,
.status-succeeded {
  background: var(--ok-soft);
  color: var(--ok);
}

.status-suspended,
.status-failed,
.status-denied {
  background: var(--accent-soft);
  color: var(--sun);
}

.admin-actions {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-actions h2 {
  width: 100%;
  margin: 0;
}

.monthly-counts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}

.monthly-counts h2 {
  margin-bottom: 6px;
}

.monthly-counts ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.warning {
  color: var(--sun);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* React の島は .wrap の直下に並ぶので、同じ間隔で積む */
.booking-root {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  min-width: 0;
}

/* ---------- 管理画面の予約カレンダー（週表示） ---------- */

.cal-nav {
  display: flex;
  gap: 6px;
}

.cal-nav a {
  text-decoration: none;
}

.calendar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.cal-head {
  display: grid;
  grid-template-columns: 40px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.cal-day-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  border-left: 1px solid var(--line);
}

.cal-day-head.is-today {
  background: var(--accent-soft);
}

.cal-dw {
  font-size: 11px;
  color: var(--muted);
}

.cal-dw-6 {
  color: var(--sat);
}

.cal-dw-0 {
  color: var(--sun);
}

.cal-dn {
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.cal-body {
  display: grid;
  grid-template-columns: 40px repeat(7, minmax(0, 1fr));
  max-height: 70vh;
  overflow-y: auto;
}

.cal-axis,
.cal-col {
  display: grid;
  grid-template-rows: repeat(24, 34px);
}

.cal-col {
  position: relative;
  border-left: 1px solid var(--line);
}

.cal-hour {
  position: relative;
  font-family: var(--f-num);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding-right: 4px;
}

.cal-hour span {
  position: relative;
  top: -6px;
}

.cal-hour:first-child span {
  top: 0;
}

.cal-slot {
  border-top: 1px solid var(--line);
}

.cal-slot:first-child {
  border-top: 0;
}

.cal-event {
  position: absolute;
  min-height: 15px;
  overflow: hidden;
  border-radius: 6px;
  padding: 1px 5px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  line-height: 1.25;
  text-decoration: none;
  /* 短い予約は1行、長い予約は折り返して店舗名まで出す */
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0 6px;
}

.cal-event:hover {
  filter: brightness(0.94);
}

.cal-event-canceled {
  background: var(--hatch);
  color: var(--muted);
  text-decoration: line-through;
}

.cal-event-time {
  font-family: var(--f-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cal-event-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event-store {
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .cal-event-store {
    display: none;
  }

  .cal-event {
    font-size: 10px;
    padding: 1px 3px;
  }
}

/* 予約の詳細。:target で開くので JavaScript は使わない */
.cal-modal {
  display: none;
}

.cal-modal:target {
  display: grid;
}

.cal-modal-backdrop {
  position: absolute;
  inset: 0;
}

.cal-dialog {
  position: relative;
  max-width: 380px;
  text-align: left;
}

.cal-dialog h3 {
  text-align: center;
}

.cal-dialog .what {
  text-align: center;
}

.cal-detail {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 13px;
}

.cal-detail dt {
  color: var(--muted);
}

.cal-detail dd {
  margin: 0;
}

.cal-detail small {
  color: var(--muted);
}

.cal-detail-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.cal-dialog-form {
  display: contents;
}

.dialog-actions .d-cancel {
  display: grid;
  place-content: center;
  text-decoration: none;
  color: var(--ink);
}

/* 自分の予約が入っている枠は色を変えて見分けられるようにする */
.chip.is-mine,
.chip.is-mine:disabled,
.chip.is-mine.inrange {
  background: var(--accent-soft);
  border: 1.5px solid var(--mine);
  color: var(--mine);
  font-weight: 700;
  opacity: 1;
}

.chip.is-mine small {
  font-weight: 500;
}
