/* 洄流 Reflow — 共用基底
   淺色 = 米白日光；深色 = 夜潛靛藍
   洄字浪標 × 靛藍 #1E4D66 × 米白 #F4F0E7 × Noto Serif TC 標題 × JetBrains Mono 數據 */

@font-face {
  font-family: "ChenYu Logo";
  src: url("../fonts/chenyu-logo.woff2?v=1786516516") format("woff2");
  /* block：寧可短暫留白，也不先畫 fallback 再跳成洄流字標（FOUT） */
  font-display: block;
}

:root {
  --bg: #F4F0E7;
  --bg-deep: #ECE6D6;
  --card: #FBF8F1;
  --surface: #E6DFCC;
  --line: #A9A492;
  --ink: #1B2430;
  --dim: #5B6560;
  --brand: #1E4D66;
  --brand-soft: rgba(30, 77, 102, .12);
  --brand-logo: #1E4D66;
  --coral: #A9543F;
  --coral-soft: rgba(169, 84, 63, .11);
  --coral-ink: #FFF9F5;
  --warn: #B26B2C;
  --warn-soft: rgba(178, 107, 44, .10);
  --ok: #2E8C6A;
  --ok-soft: rgba(46, 140, 106, .10);
  --shadow: 0 1px 2px rgba(30, 77, 102, .06), 0 4px 14px rgba(30, 77, 102, .06);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --serif: "Noto Serif TC", Georgia, serif;
  --script: "Kaushan Script", cursive;
  --caps: "Montserrat", "Noto Sans TC", sans-serif;
  --logo-zh: "ChenYu Logo", "Noto Serif TC", serif;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 10px; --sp-4: 14px; --sp-5: 16px; --sp-6: 26px;
  --r: 14px; --r-sm: 10px; --r-xs: 6px;
  --fs-stat: 24px; --fs-title: 16px; --fs-body: 14px; --fs-sub: 13px; --fs-label: 12px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

:root[data-theme="dark"] {
  --bg: #0F2837;
  --bg-deep: #0A1C27;
  --card: #16374A;
  --surface: #1F455A;
  --line: #4E6B7A;
  --ink: #F4F0E7;
  --dim: #A3B2B0;
  --brand: #7FA9C0;
  --brand-soft: rgba(127, 169, 192, .2);
  --brand-logo: #F4F0E7;
  --coral: #D08A6F;
  --coral-soft: rgba(208, 138, 111, .18);
  --coral-ink: #0F2837;
  --warn: #D99A45;
  --warn-soft: rgba(217, 154, 69, .11);
  --ok: #46B388;
  --ok-soft: rgba(70, 179, 136, .11);
  --shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

body {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%) fixed;
  color: var(--ink);
  font-family: "Noto Sans TC", "Inter", -apple-system, "PingFang TC", sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* A 定案英文混植：freediving 的 d 用 Dancing Script 直背 d */
.d2 { font-family: "Dancing Script", cursive; font-size: 1.16em; font-weight: 500; }

/* 洄字浪標 — every visible mark is sourced from logo.svg. */
.brand-mark {
  display: inline-block;
  flex: none;
  width: 30px;
  height: 30px;
  background-color: currentColor;
  -webkit-mask: url('../logo.svg?v=1786516516') center / contain no-repeat;
  mask: url('../logo.svg?v=1786516516') center / contain no-repeat;
}
.brand-mark-sm { width: 24px; height: 24px; }
.brand-mark-md { width: 30px; height: 30px; }
.brand-mark-lg { width: 72px; height: 72px; }

.ic {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -3px; flex: none;
}
.ic-lg { width: 20px; height: 20px; }

/* ---------- topbar / tabs ---------- */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) 18px 8px;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand h1 { font-size: 20px; font-weight: 400; letter-spacing: .04em; font-family: var(--logo-zh); }
.brand h1 small, .side-brand h1 small { font-family: var(--script); font-size: .5em; font-weight: 400; letter-spacing: .1em; opacity: .62; margin-left: 4px; }
.brand .sub { color: var(--dim); font-size: var(--fs-label); margin-left: 2px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.today-label { color: var(--dim); font-size: 13px; }
.icon-btn { background: none; border: none; color: var(--dim); cursor: pointer; padding: 6px 8px; border-radius: 9px; }
.icon-btn:hover { color: var(--ink); background: var(--surface); }

main { padding: 14px 16px 64px; max-width: 900px; margin: 0 auto; }

/* ---------- console 佈局：手機底部列 / 桌面側欄 ---------- */

.console-page main {
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}
.view-title { display: none; }

/* 手機底部列 */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 25;
  display: flex;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.bottom-bar button {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; cursor: pointer;
  color: var(--dim); font-family: inherit; font-size: 10.5px; font-weight: 600;
  padding: 5px 0 3px; border-radius: 10px;
}
.bottom-bar button .ic { width: 21px; height: 21px; stroke-width: 1.7; }
.bottom-bar button.active { color: var(--brand); }
.bottom-bar button:active { transform: scale(.94); }

/* 更多 sheet */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(8, 16, 19, .45);
  display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 180ms var(--ease-out), visibility 0s linear 180ms;
}
.sheet-backdrop.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition-delay: 0s;
}
.more-sheet {
  background: var(--card);
  border-radius: 18px 18px 0 0;
  width: 100%;
  /* 分頁一多就會超過一屏：自己內捲，且不把背後那頁一起拉走 */
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  /* overflow-y 一設成 auto，另一軸的 visible 就會被算成 auto——只要有東西溢出，
     整個面板就變成可以左右拖的捲動區。橫向明確關掉。 */
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
  opacity: 0; transform: translateY(24px);
  transition: transform 220ms var(--ease-out), opacity 180ms var(--ease-out);
  display: grid; gap: 14px;
}
.sheet-backdrop.open .more-sheet { opacity: 1; transform: none; }
.sheet-grip {
  width: 40px; height: 4px; border-radius: 999px;
  background: var(--line);
  margin: 2px auto 0;
}
.sheet-group { display: grid; gap: 7px; }
.sheet-group-label {
  color: var(--dim); font: 700 10px / 1.4 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.sheet-group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.more-sheet button, .more-sheet .sheet-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: none; border-radius: var(--r-sm);
  color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 13px 16px; cursor: pointer;
  text-decoration: none;
}
.more-sheet button.active { color: var(--brand); }
.more-sheet button:active, .more-sheet .sheet-link:active { transform: scale(.98); }
.more-sheet .sheet-link { justify-content: center; color: var(--dim); background: none; font-size: 13.5px; }

/* 桌面側欄 */
.side-nav { display: none; }
@media (min-width: 900px) {
  .console-page { display: flex; }
  .bottom-bar, .sheet-backdrop { display: none !important; }
  .console-page main { padding-bottom: 64px; }

  .side-nav {
    display: flex; flex-direction: column;
    width: 218px; flex: none;
    position: sticky; top: 0; height: 100dvh;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--card) 55%, transparent);
    padding: 22px 14px calc(16px + env(safe-area-inset-bottom));
  }
  .side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; color: var(--brand-logo); }
  .side-brand h1 { font-family: var(--logo-zh); font-size: 19px; font-weight: 400; color: var(--ink); line-height: 1.3; }
  .side-brand span { font-size: 11px; color: var(--dim); letter-spacing: .1em; }
  .side-tabs {
    display: flex; flex-direction: column; gap: 15px;
    flex: 1; min-height: 0; overflow-y: auto; padding: 2px 0 10px;
  }
  .side-nav-group { display: grid; gap: 2px; }
  .side-nav-label {
    margin: 0 12px 4px;
    color: var(--dim); font: 700 11px / 1.4 var(--mono);
    letter-spacing: .1em;
  }
  .side-tabs button {
    display: flex; align-items: center; gap: 10px;
    background: none; border: none; border-radius: var(--r-sm);
    color: var(--dim); font-family: inherit; font-size: 14.5px; font-weight: 500;
    padding: 10px 12px; cursor: pointer; text-align: left;
    transition: background 120ms, color 120ms;
  }
  .side-tabs button:hover { color: var(--ink); background: var(--surface); }
  .side-tabs button.active { background: var(--brand); color: var(--bg); font-weight: 700; }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
  .side-foot-link {
    display: flex; align-items: center; gap: 9px;
    background: none; border: none; border-radius: var(--r-sm);
    color: var(--dim); font-family: inherit; font-size: 13px;
    padding: 9px 12px; cursor: pointer; text-decoration: none; text-align: left;
  }
  .side-foot-link:hover { color: var(--ink); background: var(--surface); }

  .console-main { flex: 1; min-width: 0; }
  .console-page .topbar { padding-top: 18px; }
  .console-page .topbar .brand, .console-page .mobile-only { display: none; }
  .view-title { display: inline; font-family: var(--serif); font-weight: 700; font-size: 15px; }
  .console-page main { max-width: 1060px; }
}

/* ---------- cards / sections ---------- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: var(--sp-5); margin-bottom: var(--sp-4);
}
.card.clickable { cursor: pointer; transition: transform 120ms var(--ease-out); }
.card.clickable:active { transform: scale(.99); }

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--serif); font-size: var(--fs-title); font-weight: 700;
  margin: var(--sp-6) 0 var(--sp-3);
}
.section-title:first-child { margin-top: var(--sp-2); }
.section-title .count { color: var(--dim); font-size: var(--fs-sub); font-weight: 400; }

.welcome-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-5);
  margin-bottom: var(--sp-4); padding: 18px;
  border-radius: var(--r); background: var(--brand); color: var(--bg); box-shadow: var(--shadow);
}
.welcome-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); border-radius: 50%;
}
.welcome-mark .ic { width: 22px; height: 22px; }
.welcome-copy > .mono { opacity: .68; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.welcome-copy h2 { margin-top: 2px; font: 700 18px / 1.45 var(--serif); }
.welcome-copy p { margin-top: 3px; max-width: 580px; opacity: .78; font-size: var(--fs-sub); line-height: 1.7; }
.welcome-actions { display: flex; align-items: center; gap: 7px; }
.welcome-card .btn { background: var(--bg); color: var(--brand); }
.welcome-card .btn.ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 48%, transparent); }

.reminder-task {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 11px;
  width: 100%; margin-top: var(--sp-4); padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow); font-family: inherit; text-align: left; cursor: pointer;
}
.reminder-task:hover { border-color: var(--brand); }
.reminder-task:active { transform: scale(.99); }
.reminder-task-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand);
}
.reminder-task-copy { display: grid; min-width: 0; }
.reminder-task-copy b { font: 700 15px / 1.5 var(--serif); }
.reminder-task-copy small { color: var(--dim); font-size: var(--fs-label); overflow-wrap: anywhere; }
.reminder-task-count { color: var(--dim); font-size: 15px; font-weight: 700; }
.reminder-task.attention .reminder-task-count { color: var(--coral); }
.reminder-task-arrow { color: var(--dim); font-size: 22px; line-height: 1; }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
}
.quick-action {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  font-family: inherit;
  font-size: var(--fs-sub);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.quick-action .ic { color: var(--brand); width: 19px; height: 19px; }
.quick-action:hover { border-color: var(--brand); }
.quick-action:active { transform: scale(.98); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; box-shadow: var(--shadow);
}
.stat .label { color: var(--dim); font-size: var(--fs-label); display: flex; align-items: center; gap: 5px; }
.stat .num { font-family: var(--mono); font-size: var(--fs-stat); font-weight: 700; line-height: 1.3; }
.stat .num small { font-size: 13px; font-weight: 400; color: var(--dim); }
.stat.alert .num { color: var(--coral); }
.stat.good .num { color: var(--ok); }

.empty { color: var(--dim); font-size: var(--fs-sub); text-align: center; padding: 22px 0; }

/* ---------- badges / chips ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-label); font-weight: 600;
  padding: 1.5px 9px; border-radius: 999px;
  background: var(--surface); color: var(--dim);
  white-space: nowrap;
}
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--coral-soft); color: var(--coral); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-label); padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }

.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.filter-row button {
  background: var(--card); border: 1px solid var(--line); color: var(--dim);
  font-size: var(--fs-sub); font-family: inherit; padding: 5px 13px;
  border-radius: 999px; cursor: pointer;
}
.filter-row button.active { background: var(--brand); border-color: var(--brand); color: var(--bg); font-weight: 700; }

/* ---------- 行程篩選／桌機密集清單 ---------- */

.session-filter-panel {
  display: grid;
  grid-template-columns: minmax(230px, 2fr) repeat(3, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: var(--sp-4);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--card) 72%, transparent);
}
.session-filter-field { display: grid; gap: 4px; min-width: 0; }
.session-filter-field label {
  color: var(--dim); font-size: var(--fs-label); font-weight: 700;
}
.session-filter-field input,
.session-filter-field select {
  width: 100%; min-width: 0; min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: var(--fs-sub); font-weight: 500; line-height: 1.4;
}
.session-filter-field input::placeholder { color: var(--dim); opacity: .85; }
.session-filter-field input:focus,
.session-filter-field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.session-table { display: none; }
.session-cards { display: block; }
.session-empty-card .btn { margin-top: 12px; }

@media (min-width: 900px) {
  .session-table {
    display: block;
    margin-bottom: var(--sp-4);
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
    box-shadow: var(--shadow);
  }
  .session-table table {
    width: 100%; min-width: 850px;
    border-collapse: collapse;
    font-size: var(--fs-sub);
  }
  .session-table th {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    color: var(--dim);
    font-size: var(--fs-label); font-weight: 700;
    text-align: left; white-space: nowrap;
  }
  .session-table td {
    padding: 9px 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
    color: var(--ink); vertical-align: top;
  }
  .session-table tbody tr:last-child td { border-bottom: 0; }
  .session-table tbody tr:hover { background: color-mix(in srgb, var(--surface) 40%, transparent); }
  .session-cards { display: none; }
  .session-table-date { white-space: nowrap; font-weight: 600; }
  .session-title-button {
    display: block;
    max-width: 230px;
    margin: -4px 0 3px; padding: 4px 0;
    overflow-wrap: anywhere;
    border: 0; background: none; color: var(--brand);
    font-family: inherit; font-size: var(--fs-body); font-weight: 700; line-height: 1.45;
    text-align: left; cursor: pointer;
  }
  .session-title-button:hover { text-decoration: underline; text-underline-offset: 3px; }
  .session-title-button:focus-visible {
    outline: 3px solid var(--brand-soft); outline-offset: 2px; border-radius: var(--r-xs);
  }
  .session-table-badges { display: flex; flex-wrap: wrap; gap: 4px; }
  .session-table-muted { color: var(--dim); }
  .session-table-unassigned { color: var(--coral); font-weight: 600; }
  .session-capacity.full { color: var(--coral); font-weight: 700; }
  .session-fee { white-space: nowrap; }
}

@media (max-width: 1080px) {
  .session-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .session-filter-panel { grid-template-columns: 1fr; padding: 10px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: var(--bg);
  border: none; border-radius: var(--r-sm);
  font-size: var(--fs-body); font-weight: 700; font-family: inherit;
  padding: 9px 18px; cursor: pointer;
  transition: filter 120ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn.subtle { background: var(--surface); color: var(--ink); }
.btn.danger { background: transparent; color: var(--coral); border: 1px solid var(--coral); }
.btn.danger.armed { background: var(--coral); color: var(--coral-ink); }
.btn.sm { font-size: var(--fs-label); padding: 5px 12px; border-radius: 8px; }

/* ---------- list rows ---------- */

.row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
/* 從收款頁跳轉過來的目標列：閃示一次讓視線有落點 */
@keyframes row-flash { 0%, 55% { background: var(--warn-soft); } 100% { background: transparent; } }
.row-flash { animation: row-flash 2.2s var(--ease-out) 1; }
.row:last-child { border-bottom: none; }
.row .main-line { font-size: var(--fs-body); font-weight: 500; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; overflow-wrap: anywhere; }
/* 次要說明行：先前只 scope 在 .row 底下，modal 內的說明會掉回 16px body 字級並擠在欄位上 */
.sub-line { color: var(--dim); font-size: var(--fs-sub); line-height: 1.65; overflow-wrap: anywhere; }
.row .sub-line { margin-top: 1px; }
.row .side { text-align: right; flex: none; }
.row-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* ---------- form ---------- */

/* minmax(0,1fr)：1fr 的下限是 min-content，date/time input 固有寬度會撐爆窄螢幕的欄位 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
/* overflow:hidden 是關「幽靈寬度」：WebKit 會把 <select> 的最長 option 文字算進
   祖先的捲動溢出區（「依類型自動（體驗/課程/旅團＝每次完整…）」讓 171px 的欄位算出
   454px），select 盒子本身仍是 171、畫面上看不出來，但一路把 modal 撐成可左右拖。
   min-width:0 擋不掉這個，要在欄位這層截斷。Chrome 沒有這個行為。 */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-label); color: var(--dim); font-weight: 600; }
.field label .req { color: var(--coral); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); font-size: 16px; font-family: inherit; /* ≥16px：iOS 聚焦才不會自動縮放頁面 */
  padding: 8px 11px; width: 100%; min-width: 0;
}
/* iOS Safari 的 date/time 輸入框有 UA 固有寬度，width:100% 壓不住，半欄並排會互撞爆版；
   關掉原生外觀讓它服從 grid 欄寬。appearance:none 後空值時高度會塌，用 min-height 撐住同高 */
.field input[type="date"],
.field input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 42px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
}
.field textarea { min-height: 64px; resize: vertical; }
.field.check { flex-direction: row; align-items: center; gap: 8px; }
.field.check > input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.field.check label { font-size: var(--fs-body); color: var(--ink); font-weight: 500; }
.instructor-assignment > label { flex: 1; min-width: 0; }
.instructor-assignment > select { flex: none; width: auto; font-size: 13px; padding: 3px 8px; }
.field .instructor-override-reason {
  flex: 0 1 190px; width: min(190px, 100%); font-size: 12px; padding: 4px 7px;
}
.field-hint { color: var(--dim); font-size: 11px; }
/* 建議值提醒：看得見但不是紅字——填 4 人不是填錯，是要教練確認人手 */
.field-warn {
  color: var(--warn);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
}
.field-error {
  color: var(--coral);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
}
.form-error-summary {
  margin-top: 12px;
  padding: 9px 11px;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: var(--r-sm);
  font-size: var(--fs-sub);
  font-weight: 600;
}
.book-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 9px 12px;
  background: var(--brand-soft); border-radius: var(--r-sm);
  font-size: var(--fs-body);
}
.book-total b { font-family: var(--mono); font-size: 17px; }
.book-total small { color: var(--dim); font-size: var(--fs-label); }
.booking-extras {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface) 46%, transparent);
}
.booking-extras summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: var(--fs-body);
  font-weight: 700;
  list-style: none;
}
.booking-extras summary::-webkit-details-marker { display: none; }
.booking-extras summary::after {
  content: '+';
  color: var(--brand);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
}
.booking-extras[open] summary::after { content: '−'; }
.booking-extras summary small { color: var(--dim); font-size: 11px; font-weight: 500; }
.booking-extras .form-grid { padding: 4px 12px 14px; }
/* ---------- 報名表單分區：緊急聯絡人 / 健康聲明 / 裝備 / 同行者 ---------- */

.emergency-block,
.health-screening,
.gear-block,
.participant-block {
  margin-top: 16px;
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface) 46%, transparent);
}
.emergency-block legend,
.health-screening legend,
.gear-block legend,
.participant-block legend {
  padding: 0 4px;
  font-size: var(--fs-body);
  font-weight: 700;
}
.emergency-block .form-grid { margin-top: 4px; }
.health-screening .sub-line { margin: 2px 0 8px; }
.gear-block[hidden], .participant-block[hidden], .participant-sizes[hidden] { display: none; }
.gear-block .sub-line, .participant-block .sub-line { margin: 2px 0 10px; }
.gear-items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.gear-item {
  display: flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: var(--fs-sub); font-weight: 600;
}
.gear-item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.gear-item input { accent-color: var(--brand); }
/* 日租價跟在品名後面：勾選前就看得到單價，不必等總金額才知道 */
.gear-item em {
  font-style: normal; font-weight: 500;
  font-size: var(--fs-label); color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.gear-item:has(input:checked) em { color: inherit; opacity: .8; }
.participant-health { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.participant-health-title { font-size: var(--fs-sub); font-weight: 700; margin-bottom: 4px; }
.health-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.health-q:first-of-type { border-top: 0; }
.health-q-label { flex: 1; font-size: var(--fs-sub); line-height: 1.5; }
.health-q-opts { display: flex; flex: none; gap: 6px; }
.health-q-opts label {
  display: flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: var(--fs-sub); font-weight: 600;
}
.health-q-opts label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.health-q-opts input { accent-color: var(--brand); }
.health-q[aria-invalid="true"] { border-color: var(--coral); }
.health-q-error { flex-basis: 100%; }
.medical-clearance-note {
  margin: 8px 0 10px;
  padding: 9px 11px;
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--coral);
  background: var(--coral-soft);
  font-size: var(--fs-sub);
  font-weight: 700;
  line-height: 1.55;
}
.health-alert {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  font-size: var(--fs-label);
  line-height: 1.5;
}
.health-alert.medical-clearance-alert {
  color: var(--coral);
  background: var(--coral-soft);
  font-weight: 700;
}
.guardian-block { margin-top: 10px; }
.check-row {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 8px 0;
  font-size: var(--fs-sub); line-height: 1.5;
}
.check-row input { margin-top: 3px; accent-color: var(--brand); }
.check-row small { display: block; color: var(--dim); font-size: var(--fs-label); }
.prereq-note { margin: -6px 0 12px; }

/* 表單裡的補充說明：跟著 --fs-sub 走，行距放寬，不要吃到 body 的 16px */
.form-note {
  color: var(--dim); font-size: var(--fs-sub); line-height: 1.8;
  margin-top: var(--sp-2); overflow-wrap: anywhere;
}

/* ---------- 同意文件 ---------- */
/* 勾選列與「閱讀全文」是兩個獨立點擊區：點文件名只切勾選，展開全文走 <details> */
.booking-consents { border: 0; padding: 0; margin: var(--sp-5) 0 0; }
.booking-consents legend {
  font-family: var(--serif); font-size: var(--fs-title); font-weight: 700; color: var(--ink);
}
.booking-consents .form-note { margin-top: 3px; }
.consent-list { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.consent-item {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out);
}
.consent-item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.consent-item.missing { border-color: var(--coral); background: var(--coral-soft); }
.consent-pick {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 46px; padding: 9px 12px; cursor: pointer;
}
.consent-pick input[type="checkbox"] {
  width: 20px; height: 20px; flex: none; accent-color: var(--brand); cursor: pointer;
}
.consent-pick:has(input:focus-visible) { border-radius: var(--r-sm); box-shadow: 0 0 0 3px var(--brand-soft); }
.consent-name { flex: 1; min-width: 0; font-size: var(--fs-body); font-weight: 700; color: var(--ink); }
.consent-ver {
  flex: none; font-family: var(--mono); font-size: 11px; color: var(--dim);
  background: var(--card); border-radius: 999px; padding: 1px 8px;
}
.consent-doc { border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.consent-doc summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  min-height: 40px; padding: 4px 12px;
  color: var(--brand); font-size: var(--fs-sub); font-weight: 600;
  cursor: pointer; list-style: none;
}
.consent-doc summary::-webkit-details-marker { display: none; }
.consent-doc summary::after { content: '+'; font-family: var(--mono); font-size: 16px; font-weight: 500; }
.consent-doc[open] summary::after { content: '−'; }
/* 健康聲明的具結勾選長在題目底下，不另外在下方清單再出現一次同名文件 */
.health-consent { margin-top: var(--sp-3); }
.health-consent .consent-name { font-size: var(--fs-sub); }
/* 長文件不撐爆 modal：內捲並吃掉捲動連鎖，免得滑到底就把 modal 一起拉走 */
.consent-text {
  margin: 0 12px 12px; padding: 10px 12px;
  max-height: 210px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xs);
  color: var(--dim); font-size: var(--fs-sub); line-height: 1.9;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: var(--sp-5); }
.form-actions .spacer { margin-right: auto; }
.btn[aria-busy="true"] { cursor: wait; }

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8, 16, 19, .45);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 180ms var(--ease-out), visibility 0s linear 180ms;
}
.modal-backdrop.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition-delay: 0s;
}
.modal {
  background: var(--card); border-radius: 18px 18px 0 0;
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  /* dvh：手機瀏覽器工具列收合時 vh 會比看得到的還高，88vh 會把送出鈕頂到工具列底下 */
  max-height: 88dvh;
  /* overflow-y:auto 會把另一軸的 visible 一併算成 auto。表單裡任何一處溢出
     （長提示、寬欄位）都會讓整個視窗能左右拖，所以橫向要明確關掉。 */
  overflow-x: hidden;
  /* 表單捲到底不要順手把背後那頁一起拉走 */
  overscroll-behavior: contain;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  opacity: 0; transform: translateY(24px);
  transition: transform 220ms var(--ease-out), opacity 180ms var(--ease-out);
}
.modal-backdrop.open .modal { opacity: 1; transform: none; }
.modal-content { opacity: 1; transform: none; }
.modal.replacing .modal-content {
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
@starting-style {
  .modal.replacing .modal-content { opacity: 0; transform: translateY(6px); }
}
@media (min-width: 700px) {
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { border-radius: 18px; transform: translateY(8px) scale(.97); }
  .modal-backdrop.open .modal { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-backdrop, .modal-backdrop { transition: opacity 180ms var(--ease-out), visibility 0s linear 180ms; }
  .sheet-backdrop.open, .modal-backdrop.open { transition-delay: 0s; }
  .more-sheet, .modal { transform: none; transition: opacity 180ms var(--ease-out); }
  .modal.replacing .modal-content { transform: none; transition: opacity 180ms var(--ease-out); }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: var(--sp-4);
}
.modal h3 {
  font-family: var(--serif); font-size: 17px;
  display: flex; align-items: center; gap: 8px;
}
.modal h3 .badge { font-family: "Noto Sans TC", sans-serif; }
.modal .close-x { background: none; border: none; color: var(--dim); font-size: 20px; cursor: pointer; padding: 2px 8px; }

.demo-booking-warning {
  margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--warn);
  border-radius: var(--r-sm); background: var(--warn-soft); color: var(--ink);
}
.demo-booking-warning strong { display: block; font-family: var(--serif); margin-bottom: 3px; }
.demo-booking-warning p { color: var(--dim); font-size: var(--fs-sub); margin-bottom: 8px; }
.demo-booking-warning label { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sub); font-weight: 700; }
.demo-booking-warning input { width: 18px; height: 18px; flex: none; accent-color: var(--brand); }

/* ---------- 資訊中心：更新紀錄 / LINE 官方帳號 ---------- */
.info-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 var(--sp-5);
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  box-shadow: var(--shadow);
}
.info-tabs button {
  min-height: 38px; padding: 6px 16px;
  border: 0; border-radius: 999px; background: transparent; color: var(--dim);
  font-family: inherit; font-size: var(--fs-sub); font-weight: 700; line-height: 1.4; cursor: pointer;
}
.info-tabs button[aria-selected="true"] { background: var(--brand); color: var(--bg); }
.info-tabs button:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.info-panel[hidden] { display: none; }
.info-intro {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-6);
  margin: var(--sp-2) 0 var(--sp-5);
}
.info-intro h2 { font: 700 23px / 1.35 var(--serif); }
.info-intro p { max-width: 520px; color: var(--dim); font-size: var(--fs-sub); line-height: 1.75; }
.info-kicker { display: block; margin-bottom: 3px; color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .14em; }

.release-list { display: grid; gap: var(--sp-3); }
.release-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); box-shadow: var(--shadow);
}
.release-card summary {
  display: grid; grid-template-columns: 100px minmax(0, 1fr) 24px; align-items: center; gap: var(--sp-4);
  min-height: 72px; padding: 13px var(--sp-5); cursor: pointer; list-style: none;
}
.release-card summary::-webkit-details-marker { display: none; }
.release-date { color: var(--brand); font-size: var(--fs-sub); font-weight: 700; }
.release-heading { display: grid; min-width: 0; }
.release-heading b { font-family: var(--serif); font-size: 15px; }
.release-heading small { color: var(--dim); font-size: var(--fs-label); font-weight: 400; overflow-wrap: anywhere; }
.release-toggle::before { content: '+'; color: var(--brand); font: 500 20px / 1 var(--mono); }
.release-card[open] .release-toggle::before { content: '−'; }
.release-card[open] summary { border-bottom: 1px solid var(--line); }
.release-body {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-6);
  padding: 18px var(--sp-5) 20px;
}
.release-section h3 { margin-bottom: 7px; color: var(--brand); font: 700 var(--fs-body) / 1.5 var(--serif); }
.release-section ul, .info-card ul, .safety-card ul { padding-left: 1.2em; }
.release-section li, .info-card li, .safety-card li { margin: 4px 0; color: var(--dim); font-size: var(--fs-sub); line-height: 1.72; }

.line-source-note {
  margin-bottom: var(--sp-4); padding: 10px 13px;
  border-left: 3px solid var(--warn); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--warn-soft); color: var(--dim); font-size: var(--fs-sub); line-height: 1.7;
}
.line-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.info-card {
  min-width: 0; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); box-shadow: var(--shadow);
}
.info-card-label { display: block; margin-bottom: 4px; color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.info-card h3 { margin-bottom: 9px; font: 700 16px / 1.5 var(--serif); }
.line-mode { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: var(--fs-sub); font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.line-link-stack { display: grid; gap: 6px; }
.line-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 42px; padding: 8px 11px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font-size: var(--fs-sub); font-weight: 700; text-decoration: none;
}
.line-link:hover { color: var(--brand); }

.rich-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow); }
.rich-menu-area { display: flex; align-items: flex-start; gap: 12px; min-height: 104px; padding: 18px; background: var(--brand); color: var(--bg); }
.rich-menu-area:nth-child(2), .rich-menu-area:nth-child(3) { background: color-mix(in srgb, var(--brand) 88%, var(--ink)); }
.rich-menu-area > .mono { opacity: .55; font-size: 10px; }
.rich-menu-area b { font-family: var(--serif); font-size: 15px; }
.rich-menu-area p { margin-top: 3px; opacity: .78; font-size: var(--fs-label); line-height: 1.6; }

.keyword-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.keyword-group { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.keyword-group b { display: block; margin-bottom: 7px; font-size: var(--fs-sub); }
.keyword-group > div { display: flex; flex-wrap: wrap; gap: 5px; }
.guide-list { display: grid; gap: var(--sp-3); }
.guide-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: var(--sp-3); }
.guide-number { color: var(--brand); font-size: var(--fs-label); font-weight: 700; }
.guide-card ol { padding-left: 1.2em; }
.guide-card li { margin: 4px 0; color: var(--dim); font-size: var(--fs-sub); line-height: 1.72; }
.safety-card { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 55%, var(--card)); }
.future-card {
  display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5);
  border: 1px dashed var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 45%, transparent);
}
.future-card h3 { font: 700 15px / 1.5 var(--serif); }
.future-card p { margin-top: 3px; color: var(--dim); font-size: var(--fs-sub); line-height: 1.7; }

@media (max-width: 620px) {
  .info-tabs { display: flex; }
  .info-tabs button { flex: 1; padding-inline: 10px; }
  .info-intro { display: block; }
  .info-intro p { margin-top: 7px; }
  .info-panel .info-intro p,
  .info-panel .release-section li,
  .info-panel .line-source-note,
  .info-panel .info-card li,
  .info-panel .line-link,
  .info-panel .guide-card li,
  .info-panel .future-card p { font-size: 14px; }
  .release-card summary { grid-template-columns: 1fr 22px; gap: 7px 10px; }
  .release-date { grid-column: 1 / -1; }
  .release-body, .line-guide-grid, .keyword-grid { grid-template-columns: 1fr; }
  .rich-menu-area { min-height: 116px; padding: 14px; }
  .future-card { display: grid; gap: 8px; }
}

/* ---------- toast ---------- */

#toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--bg);
  font-size: var(--fs-sub); font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; z-index: 90;
  transition: opacity 160ms, transform 160ms var(--ease-out);
  max-width: 86vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--coral); color: var(--coral-ink); }

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

/* ---------- 行程月曆 ---------- */

.cal-card { padding: 12px 14px 10px; }
.cal-card.collapsed { padding: 4px 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cal-card.collapsed .cal-head { margin-bottom: 0; justify-content: center; }
.cal-head .icon-btn { font-size: 18px; line-height: 1; padding: 4px 12px; }
.cal-title-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer;
  color: var(--ink); font-family: inherit; padding: 6px 10px; border-radius: 9px;
}
.cal-title-btn:hover { background: var(--surface); }
.cal-title-btn .ic { color: var(--dim); transition: transform 160ms var(--ease-out); }
.cal-title { font-weight: 700; font-size: 15px; letter-spacing: .08em; }
.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; color: var(--dim); font-size: 11px;
  margin-bottom: 2px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-cell {
  position: relative;
  min-height: 44px;
  background: none; border: none; border-radius: 9px;
  font-family: inherit; color: var(--ink); font-size: 13px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 5px 0 3px; gap: 3px;
}
.cal-cell:hover { background: var(--surface); }
.cal-cell.blank { cursor: default; }
.cal-cell.blank:hover { background: none; }
.cal-cell.today .d {
  background: var(--brand); color: var(--bg);
  border-radius: 999px; min-width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.cal-cell .dots { display: flex; gap: 2.5px; flex-wrap: wrap; justify-content: center; max-width: 90%; }
.cal-cell .dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }

@media (max-width: 620px) {
  .welcome-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 16px; }
  .welcome-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .reminder-task-copy small { font-size: 12px; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .instructor-assignment { flex-wrap: wrap; }
  .instructor-assignment .instructor-override-reason {
    flex-basis: calc(100% - 30px); max-width: calc(100% - 30px); margin-left: 30px;
  }
}

@media (pointer: coarse) {
  .icon-btn,
  .btn,
  .filter-row button,
  .chip,
  .cal-head .icon-btn,
  .cal-title-btn,
  .modal .close-x {
    min-block-size: 44px;
  }
  .info-tabs button,
  .line-link { min-block-size: 44px; }
  .bottom-bar button,
  .more-sheet button,
  .reminder-task { min-block-size: 44px; }
  .field.check { min-block-size: 44px; }
  .field.check > input[type="checkbox"] { width: 22px; height: 22px; }
  .session-title-button,
  .session-filter-field input,
  .session-filter-field select { min-block-size: 44px; }
}
