/* 露希老師｜居家托育 — shared styles */
:root {
  --bg: #fffbef;
  --bg-deep: #f6efdc;
  --card: #ffffff;
  --ink: #1f1b14;
  --ink-2: #5a5246;
  --ink-3: #8a8174;
  --line: #ece2cc;

  --green: #1fcb4a;
  --green-ink: #0d7a2d;
  --green-soft: #def7e3;
  --orange: #f7922f;
  --orange-ink: #a8500a;
  --orange-soft: #feead6;
  --yellow: #ffd60a;
  --yellow-ink: #7a5f00;
  --yellow-soft: #fff4bf;
  --cyan: #4cc3da;
  --blue: #2f5be8;
  --magenta: #c8177c;
  --purple: #8a5cd6;
  --pink: #f6a3b5;

  --cta: #3cc15a;
  --cta-ink: #ffffff;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 8px 24px -10px rgba(90, 64, 20, .22), 0 2px 6px -2px rgba(90, 64, 20, .08);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --font-body: "Noto Sans TC", "PingFang TC", "Heiti TC", sans-serif;
  --font-round: "Huninn", "Noto Sans TC", "PingFang TC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh, 1.75);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; }
p, h1, h2, h3, li, legend, label { word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }

.wrap { width: min(100% - 32px, 640px); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.brand img { height: 26px; width: auto; }
.brand span { font-family: var(--font-round); font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.switch { display: flex; gap: 6px; flex-shrink: 0; }
.switch a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-round); font-size: 14px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.switch a:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.switch a:active { transform: scale(.95); }
.switch .shape { width: 16px; height: 16px; }
@media (max-width: 400px) { .brand span { display: none; } }

/* ---------- shapes ---------- */
.shape { display: inline-block; flex-shrink: 0; }
.shape svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---------- page heads ---------- */
.page-head { padding: 28px 0 8px; position: relative; }
.page-head .shape.big { position: absolute; right: -6px; top: 18px; width: 96px; height: 96px; opacity: .95; }
.page-head h1 { font-weight: 700; font-size: clamp(34px, 9vw, 46px); letter-spacing: -.01em; }
.page-head p { color: var(--ink-2); margin-top: 10px; max-width: 30em; padding-right: 88px; }
@media (min-width: 560px) { .page-head p { padding-right: 0; } }

.demo-note {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-3);
  background: var(--bg-deep); padding: 4px 10px; border-radius: 999px;
}
.demo-note svg { width: 14px; height: 14px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 28px 0 8px; counter-reset: s; list-style: none; padding: 0; }
.steps li { position: relative; text-align: center; font-family: var(--font-round); font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.steps li::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; margin: 0 auto 8px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); box-shadow: inset 0 0 0 2px var(--line);
  font-family: var(--font-round); font-size: 15px; color: var(--ink);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 17px; left: calc(50% + 22px); right: calc(-50% + 22px);
  border-top: 2px dashed var(--line);
}
.steps li.on::before { background: var(--accent, var(--green)); box-shadow: none; color: #fff; }

/* ---------- sections ---------- */
section.block { padding: 40px 0 8px; }
.block > h2 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.block > h2 .shape { width: 22px; height: 22px; }
.block > .lede { color: var(--ink-2); margin-bottom: 18px; }

.card {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 22px 20px;
}
.card + .card { margin-top: 14px; }

/* ---------- principles ---------- */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.principles li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--card); border-radius: var(--r-md); padding: 18px 18px 18px 14px; box-shadow: var(--shadow); }
.principles .shape { width: 36px; height: 36px; margin-top: 2px; }
.principles h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.principles p { color: var(--ink-2); font-size: 15px; }

/* ---------- forms ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { margin-top: 20px; }
.field:first-child { margin-top: 0; }
.field > label, .field > legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field .hint { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 4px; }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--line); background: #fffdf8;
  border-radius: var(--r-sm); padding: 12px 14px; font-size: 16px; line-height: 1.5;
  transition: border-color .2s, background .2s;
  caret-color: var(--green-ink);
}
.input::placeholder { color: #bdb5a6; }
.input:focus { outline: none; border-color: var(--ink); background: #fff; }
textarea.input { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  background: #fffdf8; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; line-height: 1.3; cursor: pointer; user-select: none;
  transition: background .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip span:active { transform: scale(.96); }

.choices { display: grid; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: block; padding: 13px 16px 13px 46px; border-radius: var(--r-sm);
  background: #fffdf8; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; line-height: 1.45; cursor: pointer; position: relative;
  transition: box-shadow .2s, background .2s;
}
.choice > span::before {
  content: ""; position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--ink-3); background: #fff; transition: box-shadow .2s var(--ease-out);
}
.choice input:checked + span { box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.choice input:checked + span::before { box-shadow: inset 0 0 0 6px var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice .price { float: right; font-family: var(--font-round); color: var(--ink-2); margin-left: 8px; }

.q-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 20px; }
.q-card + .q-card { margin-top: 14px; }
.q-card legend { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 14px; }
.q-card legend small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 2px; }

.agree {
  display: flex; gap: 12px; align-items: center; margin-top: 18px;
  background: var(--card); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow); cursor: pointer;
}
.agree input { width: 22px; height: 22px; accent-color: var(--green-ink); flex-shrink: 0; }
.agree strong { font-weight: 700; }

.locked { transition: opacity .5s var(--ease-out), filter .5s; }
.locked[aria-disabled="true"] { opacity: .38; filter: grayscale(.6); pointer-events: none; user-select: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 16px;
  background: var(--cta); color: var(--cta-ink);
  font-family: var(--font-round); font-size: 18px; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(30, 140, 60, .55);
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s;
}
.btn:hover { background: #33b350; }
.btn:active { transform: scale(.97); }
.btn[disabled] { background: #c9c2b4; box-shadow: none; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn svg { width: 20px; height: 20px; }
.submit-row { margin: 28px 0 0; }
.submit-row .note { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 10px; }

/* ---------- footer ---------- */
.site-foot { margin-top: 64px; padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-round); font-size: 15px; color: var(--ink-2); }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }

/* ---------- bottom sheet ---------- */
.sheet-back { position: fixed; inset: 0; background: rgba(31, 27, 20, .42); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 51; width: min(100%, 560px);
  transform: translate(-50%, 104%); transition: transform .45s var(--ease-out);
  background: var(--bg); border-radius: 28px 28px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow: auto;
}
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 18px; }
.sheet.open { transform: translate(-50%, 0); }
.sheet-back.open { opacity: 1; pointer-events: auto; }
.sheet h2 { font-size: 22px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.sheet h2 .shape { width: 28px; height: 28px; }
.sheet p.sub { color: var(--ink-2); margin: 8px 0 16px; font-size: 15px; }
.sheet pre {
  white-space: pre-wrap; word-break: break-word; margin: 0 0 18px;
  background: var(--card); border-radius: var(--r-md); padding: 16px; box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-body); font-size: 14px; line-height: 1.6; max-height: 34vh; overflow: auto;
}
.sheet .actions { display: grid; gap: 10px; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s var(--ease-out) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

.muted { color: var(--ink-3); font-size: 14px; }

/* ================= 首頁 ================= */
.cover { text-align: center; padding: 28px 0 0; }
.cover .logo { width: 216px; max-width: 100%; height: auto; margin: 0 auto; }
.cover h1 { font-weight: 700; font-size: clamp(38px, 11vw, 60px); letter-spacing: .01em; margin-top: 18px; line-height: 1.15; }
.cover h1 .bar { display: inline-block; width: .14em; height: .8em; border-radius: 99px; background: var(--ink); margin: 0 .18em; vertical-align: -.04em; }
.cover .art { width: 99.1%; height: auto; margin: -14px auto 0; position: relative; left: -6px; }

.hello { margin-top: 8px; }
.hello p { font-size: 17px; color: var(--ink-2); }
.hello p + p { margin-top: 12px; }
.hello .license { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.hello .license svg { width: 18px; height: 18px; color: var(--green-ink); }

.doors { display: grid; gap: 14px; margin-top: 8px; }
.door {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  min-height: 132px; padding: 22px 22px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow); text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.door:hover { transform: translateY(-2px); }
.door:active { transform: scale(.98); }
.door .shape { position: absolute; right: -44px; bottom: -52px; width: 140px; height: 140px; transition: transform .6s var(--spring); }
.door:hover .shape { transform: rotate(-8deg) scale(1.06); }
.door h2 { font-size: 26px; font-weight: 700; position: relative; }
.door p { color: var(--ink-2); font-size: 15px; margin-top: 4px; position: relative; max-width: 13.5em; }
.door > div { position: relative; z-index: 1; padding-right: 8px; }
.door .go { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; }
.door .go svg { width: 22px; height: 22px; }
.door .tag { display: inline-block; font-family: var(--font-round); font-size: 13px; padding: 2px 10px; border-radius: 99px; background: var(--c); color: var(--ci); margin-bottom: 8px; position: relative; }

/* ================= 臨時托育 ================= */
.shifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
.shift { position: relative; text-align: center; cursor: pointer; }
.shift input { position: absolute; opacity: 0; pointer-events: none; }
.shift .pad {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; margin: 0 auto; width: 100%; max-width: 128px;
  transition: transform .5s var(--spring), opacity .3s, filter .3s;
}
.shift .pad .shape { position: absolute; inset: 6%; width: 88%; height: 88%; }
.shift .pad b { position: relative; font-family: var(--font-round); font-weight: 400; font-size: 18px; color: var(--on, var(--ink)); }
.shift .time { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; font-variant-numeric: tabular-nums; }
.shift .check {
  position: absolute; top: 4%; right: 8%; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  transform: scale(0); transition: transform .45s var(--spring);
}
.shift .check svg { width: 16px; height: 16px; }
.shifts:has(input:checked) .shift:not(:has(input:checked)) .pad { opacity: .7; }
.shift input:checked ~ .pad { transform: scale(1.06) rotate(-3deg); }
.shift input:checked ~ .pad .check { transform: scale(1); }
.shift input:focus-visible ~ .pad { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 24px; }
.shift-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; transition: transform .3s; }
.cal.nudge { animation: nudge .5s; }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cal .dow { text-align: center; font-size: 12px; color: var(--ink-3); padding-bottom: 2px; }
.day {
  position: relative; aspect-ratio: 1 / 1.1; border: 0; border-radius: 14px; padding: 4px 0 0;
  background: #fffdf8; box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: transform .25s var(--ease-out), background .2s, box-shadow .2s;
}
.day .n { font-size: 16px; font-weight: 700; line-height: 1.1; }
.day .m { position: absolute; top: 3px; left: 6px; font-size: 10px; color: var(--ink-3); }
.day .s { font-size: 10.5px; line-height: 1.3; color: var(--ink-3); min-height: 14px; }
.day.open { background: #fff; box-shadow: inset 0 0 0 1px #bfe7c8; }
.day.open .s { color: var(--green-ink); }
.day.open:hover { box-shadow: inset 0 0 0 2px var(--green); }
.day.full, .day.off { cursor: not-allowed; background: transparent; box-shadow: none; }
.day.full .n, .day.off .n { color: #b8af9f; font-weight: 400; }
.day.full .s { color: var(--orange-ink); }
.day.idle { cursor: not-allowed; opacity: .55; }
.day.picked { background: var(--ink); box-shadow: none; transform: scale(1.05); }
.day.picked .n, .day.picked .s { color: #fff; }

.summary { margin-top: 32px; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 18px 20px; box-shadow: 0 18px 40px -16px rgba(31, 27, 20, .6); }
.summary .when { font-family: var(--font-round); font-size: 15px; color: var(--yellow); margin-bottom: 6px; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #e9e2d4; padding: 2px 0; }
.summary b { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px dashed rgba(255,255,255,.25); margin-top: 8px; padding-top: 10px; color: #fff; font-size: 15px; align-items: baseline; }
.summary .total b { font-family: var(--font-round); font-size: 24px; font-weight: 400; color: var(--yellow); }
.summary .muted { color: #b9b0a0; font-size: 12.5px; margin-top: 6px; }

.rules { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rules li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.rules li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: var(--orange-ink); }
.price-table { display: grid; gap: 0; margin-top: 4px; font-variant-numeric: tabular-nums; }
.price-table div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.price-table div:last-child { border-bottom: 0; }
.price-table b { font-weight: 700; white-space: nowrap; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card h3 .shape { width: 20px; height: 20px; }
.card h3 + p.muted { margin: -4px 0 8px; }

/* ================= 聯絡簿 ================= */
.small { font-size: 13px; }
.num, time { font-variant-numeric: tabular-nums; }
.linkish { background: none; border: 0; padding: 4px 2px; color: var(--ink-3); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish.danger { color: #c0392b; }
.redtag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: #d0493a; color: #fff; font-size: 12px; font-weight: 700; vertical-align: 1px; }

/* login */
.login { text-align: center; padding: 18px 0 8px; }
.login-art { position: relative; width: 220px; height: 150px; margin: 6px auto 8px; }
.login-art .shape { position: absolute; }
.login-art .a1 { width: 132px; height: 132px; left: 6px; top: 12px; }
.login-art .a2 { width: 78px; height: 78px; right: 8px; top: 0; }
.login-art .a3 { width: 66px; height: 66px; right: 30px; bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .login-art .a1 { animation: bob 5s ease-in-out infinite; }
  .login-art .a2 { animation: bob 4.2s ease-in-out -1s infinite; }
  .login-art .a3 { animation: spin 14s linear infinite; }
}
@keyframes bob { 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.login h1 { font-weight: 700; font-size: clamp(34px, 10vw, 46px); }
.login .lede { color: var(--ink-2); margin: 8px auto 0; max-width: 20em; }
.login-card { text-align: left; margin: 26px 0 14px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #ece8df; border-radius: 16px; padding: 4px; margin-bottom: 18px; }
.seg button { border: 0; background: transparent; border-radius: 12px; padding: 11px 0; font-family: var(--font-round); font-size: 17px; color: var(--ink-2); cursor: pointer; transition: background .25s, box-shadow .25s, color .25s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(60, 40, 10, .18); }
.seg.mini button { font-size: 14px; padding: 8px 0; }
.btn.line { background: #06c755; box-shadow: 0 6px 16px -6px rgba(6, 199, 85, .6); }
.btn.line:hover { background: #05b34c; }
.btn.line svg { width: 22px; height: 22px; }
.help { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.bind-title { font-weight: 700; margin-bottom: 14px; }
.bind .btn { margin-top: 18px; }
.err { color: #b3261e; font-size: 14px; margin-top: 10px; }
.bound { display: grid; gap: 10px; text-align: center; }
.bound .who { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.bound .who svg { color: #06c755; }
.safe { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.safe svg { width: 14px; height: 14px; }
.pw-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pw-row .btn { min-height: 48px; }

/* app tabs */
.apptabs { position: sticky; top: 60px; z-index: 20; display: flex; gap: 6px; padding: 10px 0; background: var(--bg); margin-bottom: 4px; }
.apptabs button { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 0; border-radius: 14px; padding: 10px 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-round); font-size: 15px; cursor: pointer; }
.apptabs button svg { width: 18px; height: 18px; }
.apptabs button[aria-current="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.who-bar { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 28px; }

/* overview */
.ov-head { padding: 10px 0 12px; }
.ov-head h1 { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kidcard { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; margin-top: 12px; cursor: pointer; transition: transform .25s var(--ease-out); }
.kidcard:active { transform: scale(.985); }
.kc-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.kc-top h2 { font-size: 19px; font-weight: 700; }
.kc-top .muted { font-size: 13px; }
.ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-round); font-size: 20px; flex-shrink: 0; }
.ava.big { width: 60px; height: 60px; font-size: 26px; box-shadow: 0 0 0 4px #fff; }
.status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-family: var(--font-round); white-space: nowrap; }
.status.in { background: var(--green-soft); color: var(--green-ink); }
.status.leave { background: #ece8df; color: var(--ink-2); }
.status.out { background: #e3eefa; color: #1d5fa8; }
.att { margin-top: 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.alert { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: #d0493a; color: #fff; font-size: 14px; font-weight: 700; }
.alert.soft { background: #fde8e4; color: #a3271a; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; text-align: center; }
.nums div { background: var(--bg); border-radius: 14px; padding: 10px 2px 8px; }
.nums b { display: block; font-family: var(--font-round); font-weight: 400; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.nums span { font-size: 11.5px; color: var(--ink-3); }
.pfill { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.pfill em { font-style: normal; font-weight: 700; }
.pfill em.ok { color: var(--green-ink); } .pfill em.no { color: #b3261e; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 0; }

/* band */
.band { margin-top: 14px; }
.band .rail { position: relative; height: 18px; border-radius: 9px; background: #f1ece1; }
.band .bar { position: absolute; top: 3px; height: 12px; border-radius: 6px; opacity: .85; }
.band .dot { position: absolute; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.band .ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* log */
.kidswitch { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.kidswitch button { border: 0; border-radius: 99px; padding: 6px 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-round); cursor: pointer; }
.kidswitch button[aria-pressed="true"] { background: var(--yellow); box-shadow: none; }
.kidrow { display: flex; gap: 14px; align-items: center; margin-top: 10px; background: var(--yellow); border-radius: var(--r-lg); padding: 18px; }
.kidrow h1 { font-size: 24px; font-weight: 700; }
.kidrow h1 small { font-size: 15px; font-weight: 500; color: var(--yellow-ink); margin-left: 4px; }
.kidrow .muted { color: #6b5a10; font-size: 14px; }
.kidrow .status { background: rgba(255,255,255,.7); }
.datebar-s { font-family: var(--font-round); color: var(--ink-2); margin-top: 14px; font-variant-numeric: tabular-nums; }
.allergy { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: #d0493a; color: #fff; font-weight: 700; }
.allergy svg { width: 18px; height: 18px; }
.jump { position: sticky; top: 118px; z-index: 15; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 10px 0 0; background: var(--bg); scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex-shrink: 0; padding: 6px 12px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; text-decoration: none; white-space: nowrap; }

.parentzone { margin-top: 12px; background: #fde7ee; border-radius: var(--r-lg); padding: 18px; }
.pz-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.pz-head h2 { font-size: 19px; font-weight: 700; color: #8f2350; }
.pz-head .tag { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: #fff; color: #8f2350; font-family: var(--font-round); white-space: nowrap; }
.parentzone .input { background: #fff; }
.pz-item { background: #fff; border-radius: 16px; padding: 14px; margin-top: 10px; }
.pz-item h4 { font-size: 15px; margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.pz-item .lk { width: 14px; height: 14px; color: var(--ink-3); }
.pz-item.med .btn { margin-top: 10px; min-height: 46px; font-size: 16px; }
#pform .btn { margin-top: 14px; min-height: 48px; font-size: 16px; }
.medcard { display: grid; gap: 4px; width: 100%; text-align: left; border: 0; background: #fff6f8; box-shadow: inset 0 0 0 1px #f3c3d2; border-radius: 14px; padding: 12px 14px; cursor: pointer; font-size: 14px; }
.medcard b { font-weight: 700; } .medcard em { font-style: normal; color: #a3271a; margin-left: 6px; }
.medcard .sum { color: var(--ink-2); }
.nowrow { display: flex; gap: 8px; align-items: center; }
.nowrow .input { flex: 1; min-width: 0; }
.nowbtn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 12px; padding: 0 12px; height: 46px; background: var(--bg-deep); font-size: 14px; cursor: pointer; }
.nowbtn svg { width: 16px; height: 16px; }

.divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 6px; color: var(--ink-3); font-size: 13px; font-family: var(--font-round); }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 2px dashed var(--line); }

.sec { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; margin-top: 12px; scroll-margin-top: 130px; }
.sh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.sh h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sum-r { font-size: 13px; color: var(--ink-2); }
.sum-r b { font-family: var(--font-round); font-weight: 400; font-size: 18px; color: var(--ink); }
.addbtn { border: 0; background: var(--bg-deep); border-radius: 99px; padding: 6px 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.addbtn:hover { background: #efe5cc; }
.addbtn.wide { width: 100%; padding: 12px; margin-top: 12px; border-radius: 14px; font-size: 15px; }
.subh { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.subh h4 { margin: 0; font-size: 14px; color: var(--ink-2); }
.recs { list-style: none; margin: 6px 0 0; padding: 0; }
.recs li { display: grid; grid-template-columns: 58px 1fr auto; gap: 8px; align-items: start; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.recs li:last-child { border-bottom: 0; }
.recs time { color: var(--ink-3); font-size: 14px; padding-top: 1px; }
.recs em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.recs em.warn { color: #a8500a; }
.recs .rb { display: flex; gap: 6px; }
.recs .rb .linkish { font-size: 13px; }
.none { padding: 4px 0; }
.kv { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.kv dt { font-size: 13px; color: var(--ink-3); } .kv dd { margin: 0; font-size: 18px; font-family: var(--font-round); font-variant-numeric: tabular-nums; }
.kv.col { display: grid; gap: 12px; } .kv.col dd { font-family: var(--font-body); font-size: 15px; }
.att-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.att-grid fieldset { grid-column: 1 / -1; }
.chips.ro { gap: 6px; }
.chip-ro { padding: 6px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; }
.okline { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.okline input { width: 20px; height: 20px; accent-color: var(--green-ink); }
.okview { display: flex; align-items: center; gap: 6px; color: var(--green-ink); font-weight: 700; }
.okview svg { width: 18px; height: 18px; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { margin: 0; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; color: var(--ink-3); }
.ph svg { width: 22px; height: 22px; opacity: .6; }
.ph.t0 { background: var(--green-soft); } .ph.t1 { background: var(--yellow-soft); } .ph.t2 { background: var(--orange-soft); } .ph.t3 { background: #e3f4f8; }
.talk { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.talk h4 { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.talk .note { background: #fffbe6; border-radius: 14px; padding: 12px; font-size: 15px; min-height: 96px; }
.talk textarea { min-height: 120px; }
@media (max-width: 520px) { .talk { grid-template-columns: 1fr; } }

/* modal */
.md-back { position: fixed; inset: 0; background: rgba(31, 27, 20, .45); z-index: 60; opacity: 0; transition: opacity .3s; }
.md-back.open { opacity: 1; }
.md { position: fixed; z-index: 61; left: 50%; bottom: 0; width: min(100%, 560px); max-height: 92vh; overflow: auto; background: var(--bg); border-radius: 26px 26px 0 0; padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 100%); transition: transform .45s var(--ease-out); overscroll-behavior: contain; }
.md.open { transform: translate(-50%, 0); }
.md.full { top: 0; max-height: none; border-radius: 0; }
@media (min-width: 600px) { .md.full { top: 4vh; bottom: 4vh; border-radius: 26px; } }
body.md-open { overflow: hidden; }
.md-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.md-h h2 { font-size: 22px; font-weight: 700; }
.x { flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; cursor: pointer; }
.x svg { width: 18px; height: 18px; }
.md-actions { margin-top: 20px; }
.md-actions.sticky { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: var(--bg); padding: 12px 0 calc(8px + env(safe-area-inset-bottom)); margin-bottom: -8px; }
.btn.big { min-height: 60px; font-size: 19px; }
.idline { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.idline svg { width: 18px; height: 18px; color: var(--green-ink); flex-shrink: 0; margin-top: 2px; }
.editwarn { display: flex; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: #fde8e4; color: #8a2116; font-size: 14px; font-weight: 500; }
.editwarn svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.medform .field, .medform .boxed { margin-top: 18px; }
.boxed { border: 1px solid var(--ink); border-radius: 18px; padding: 6px 16px 16px; background: var(--card); }
.boxed.soft { border-color: var(--line); }
.boxed > legend { font-weight: 700; font-size: 16px; padding: 0 6px; margin-left: -6px; }
.fillrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.input.inl { padding: 8px 10px; text-align: center; font-variant-numeric: tabular-nums; }
.homemeds { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.homemeds .input[type=time] { flex: 0 0 120px; }
.boxed details { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.boxed summary { font-weight: 700; cursor: pointer; }
.fever { margin-top: 6px; }
.legal-box { margin-top: 22px; background: #fff7d6; border: 1px solid #e9c64a; border-radius: 18px; padding: 14px 16px; }
.legal-box h4 { margin: 0 0 6px; font-size: 15px; }
.legal { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; color: #3d3418; }
.legal strong { background: #ffe58a; padding: 0 2px; }
.medview .seg { margin-top: 14px; }
.medview [data-p] { margin-top: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 80; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; transition: opacity .3s, transform .4s var(--ease-out); max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* album */
.al-head { padding: 8px 0 4px; }
.al-head h1 { font-size: 26px; font-weight: 700; }
.month h2 { font-family: var(--font-round); font-weight: 400; font-size: 18px; margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.month h2::after { content: ""; flex: 1; border-top: 2px dashed var(--line); }
.masonry { columns: 2; column-gap: 10px; }
@media (min-width: 560px) { .masonry { columns: 3; } }
.pic { position: relative; display: block; width: 100%; margin: 0 0 10px; break-inside: avoid; border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; text-align: left; background: none; }
.pic .art { display: grid; place-items: center; width: 100%; }
.pic .art .shape { width: 55%; height: auto; aspect-ratio: 1; }
.pic.r0 .art { aspect-ratio: 3/4; background: #fff4bf; } .pic.r1 .art { aspect-ratio: 1; background: var(--green-soft); }
.pic.r2 .art { aspect-ratio: 4/5; background: #fde7ee; } .pic.r3 .art { aspect-ratio: 4/3; background: var(--orange-soft); } .pic.r4 .art { aspect-ratio: 3/4; background: #ece4fa; }
.pic .cap { display: block; padding: 8px 10px 10px; font-size: 13px; background: var(--card); color: var(--ink-2); }
.pic .first { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--ink); color: var(--yellow); font-size: 12px; font-family: var(--font-round); }
.pic .first svg { width: 13px; height: 13px; }
.md.dark { background: #15130f; color: #fff; padding: 0; }
.lb { position: relative; height: 100%; display: grid; grid-template-rows: 1fr auto; min-height: 100vh; }
@media (min-width: 600px) { .lb { min-height: 0; } }
.lbx { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,.12); box-shadow: none; color: #fff; }
.lb-stage { display: grid; place-items: center; padding: 64px 16px 16px; }
.lb-img { width: min(100%, 420px); aspect-ratio: 3/4; border-radius: 12px; display: grid; place-items: center; }
.lb-img .shape { width: 50%; height: auto; aspect-ratio: 1; }
.lb-img.r0 { background: #fff4bf; } .lb-img.r1 { background: var(--green-soft); } .lb-img.r2 { background: #fde7ee; } .lb-img.r3 { background: var(--orange-soft); } .lb-img.r4 { background: #ece4fa; }
.lb-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 14px 18px calc(22px + env(safe-area-inset-bottom)); font-size: 14px; color: #cfc6b5; font-variant-numeric: tabular-nums; }
.lb-foot .cap { color: #fff; font-size: 16px; margin-top: 2px; }
.lb-foot .count { font-family: var(--font-round); color: #fff; white-space: nowrap; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.cover h1.title { margin-top: 5px; line-height: 0; }
.cover h1.title img { width: 216px; max-width: 100%; height: auto; margin: 0 auto; }

/* ---------- 封面插圖動畫 ---------- */
.hero-anim { position: relative; }
.hero-anim > img { display: block; width: 100%; height: auto; }
.hero-anim .ly { position: absolute; pointer-events: none; }
.hero-anim .cp { inset: 0; width: 100%; height: 100%; }
.hero-anim .lid { border-radius: 50%; transform: scaleY(0); transform-origin: 50% 0; border-bottom: 2px solid #2a1d12; box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { .hero-anim .ly { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-anim .a-ball  { animation: h-ball 3.4s ease-in-out infinite; }
  .hero-anim .a-spin  { animation: h-spin 9s linear infinite; }
  .hero-anim .a-spin2 { animation: h-spin 12s linear infinite reverse; }
  .hero-anim .a-spin3 { animation: h-spin 7s linear infinite; }
  .hero-anim .a-bob   { animation: h-bob 2.6s ease-in-out infinite alternate; }
  .hero-anim .a-sway  { animation: h-sway 3.2s ease-in-out infinite alternate; }
  .hero-anim .a-kick  { animation: h-kick 1.5s ease-in-out infinite alternate; }
  .hero-anim .a-paw   { animation: h-paw 1.9s ease-in-out infinite alternate; }
  .hero-anim .a-tail  { animation: h-tail 1.6s ease-in-out infinite alternate; }
  .hero-anim .a-blink { animation: h-blink 4.6s infinite; }
  .hero-anim .a-blink2 { animation: h-blink 5.8s 1.3s infinite; }
}
@keyframes h-ball { 0%, 100% { transform: translateX(-4%) rotate(-75deg); } 50% { transform: translateX(4%) rotate(75deg); } }
@keyframes h-spin { to { transform: rotate(360deg); } }
@keyframes h-bob { from { transform: translateY(0.6%); } to { transform: translateY(-0.9%); } }
@keyframes h-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes h-kick { from { transform: rotate(2deg); } to { transform: rotate(-7deg); } }
@keyframes h-paw { from { transform: rotate(-7deg); } to { transform: rotate(5deg); } }
@keyframes h-tail { from { transform: rotate(-7deg); } to { transform: rotate(6deg); } }
@keyframes h-blink { 0%, 90%, 100% { transform: scaleY(0); } 94%, 96% { transform: scaleY(1); } }

/* 長期托育：原則與問卷修正 */
.principles h3 .sep { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; margin: 0 8px; vertical-align: middle; }
.principles p + p { margin-top: 8px; }
.next-up { margin-top: 18px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 20px; }
.next-up h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.next-up p { color: var(--ink-2); font-size: 15px; }
.next-up p + p { margin-top: 6px; }
.next-up .btn { margin-top: 18px; font-size: 17px; }
.next-up .btn.done { background: var(--green-soft); color: var(--green-ink); box-shadow: none; }
.q-card legend { float: left; width: 100%; margin-bottom: 14px; }
.q-card .choices { clear: both; }
.nw { white-space: nowrap; }
.summary .calc { color: #fff; }
.day.we .n::after { content: ""; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); margin: 1px auto 0; }
.ack-box { margin-top: 16px; background: var(--green-soft); border-radius: var(--r-lg); padding: 18px; text-align: center; scroll-margin-top: 130px; }
.ack-q { font-weight: 700; margin-bottom: 12px; }
.ack-done, .ack-wait { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 700; color: var(--green-ink); }
.ack-wait { color: var(--ink-2); font-weight: 500; }
.ack-done svg, .ack-wait svg { width: 20px; height: 20px; flex-shrink: 0; }
.ack-box .btn svg { width: 22px; height: 22px; }

/* 初談問卷 */
#intake h3.part, #first-quiz h3.part { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin: 36px 0 8px; }
#intake > h3.part:first-of-type, #first-quiz [data-quiz] > h3.part:first-of-type { margin-top: 8px; }
#intake h3.part, #first-quiz h3.part span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--font-round); font-size: 16px; font-weight: 400; flex-shrink: 0; }
#intake .part + .lede, #first-quiz .part + .lede { margin-bottom: 14px; }
.q-card legend { font-size: 18px; }
.qtext { clear: both; margin-bottom: 14px; }
.qtext p { font-size: 15px; color: var(--ink-2); line-height: var(--lh, 1.75); }
.qtext p + p, .qtext ul + p, .qtext ol + p { margin-top: 10px; }
.qtext .ask { color: var(--ink); font-weight: 700; margin-top: 14px; }
.qtext .ask .hint { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 4px; }
.pills { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { font-size: 13.5px; padding: 4px 11px; border-radius: 99px; background: var(--bg-deep); color: var(--ink-2); line-height: 1.5; }
.pills.ok li { background: var(--green-soft); color: var(--green-ink); }
.pills.ok li::before { content: "✓ "; }
.pills.no li { background: #fde8e4; color: #a3271a; }
.pills.no li::before { content: "✕ "; }
.flow { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; counter-reset: f; }
.flow li { counter-increment: f; font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: var(--yellow-soft); color: var(--yellow-ink); }
.flow li:not(:last-child)::after { content: "→"; margin-left: 10px; color: var(--ink-3); font-weight: 400; }
.q-card .chips { clear: both; }
.input.other { margin-top: 10px; }
.checks { clear: both; display: grid; gap: 8px; }
.checks label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: #fffdf8; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.45; cursor: pointer; }
.checks input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--green-ink); }
.checks label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--green); background: #fff; }
.limit { margin-top: 10px; }
.q-card.missing, .card .field.missing { animation: nudge .5s; }
.q-card.missing { box-shadow: 0 0 0 3px #f3a99d, var(--shadow); }

/* 後台可調的字級（長期托育、臨時托育）；預設值與原本版面完全相同 */
body[data-page="long"] .page-head h1, body[data-page="temp"] .page-head h1 { font-size: clamp(min(34px, var(--fs-title, 46px)), 9vw, var(--fs-title, 46px)); }
body[data-page="long"] .block > h2, body[data-page="temp"] .block > h2 { font-size: var(--fs-h2, 24px); }
#intake h3.part, #first-quiz h3.part { font-size: calc(var(--fs-h2, 24px) - 4px); }
.principles h3, .next-up h3, body[data-page="temp"] .card h3 { font-size: var(--fs-h3, 17px); }
body[data-page="long"] .block > .lede, body[data-page="temp"] .block > .lede,
body[data-page="long"] .page-head p, body[data-page="temp"] .page-head p { font-size: calc(var(--fs-body, 15px) + 1px); }
.principles p, .next-up p, .price-table div, .rules li, .qtext p { font-size: var(--fs-body, 15px); }
/* 預覽模式：不顯示示範提示 */
.is-preview .demo-note { display: none; }

/* ================= 老師後台：內容編輯／開放時段 ================= */
body.wide #view { width: min(100% - 32px, 1180px); }
.apptabs { overflow-x: auto; scrollbar-width: none; }
.apptabs::-webkit-scrollbar { display: none; }
.apptabs button { flex: 1 0 auto; white-space: nowrap; padding: 10px 12px; }
.ad-head { padding: 8px 0 12px; }
.ad-head h1 { font-size: 26px; font-weight: 700; }
.ad-pages { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.ad-pages button { border: 0; border-radius: 99px; padding: 8px 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-round); font-size: 15px; cursor: pointer; }
.ad-pages button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.ad-pages .ad-pv-toggle { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; background: var(--yellow); box-shadow: none; }
.ad-pages .ad-pv-toggle svg { width: 16px; height: 16px; }
.ad-split { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.ad-preview { display: none; }
@media (min-width: 1000px) {
  .ad-split { grid-template-columns: minmax(0, 1fr) 400px; }
  .ad-preview { display: block; position: sticky; top: 124px; }
  .ad-pages .ad-pv-toggle, .ad-phone-bar .x { display: none; }
}
.pv-open .ad-preview { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(31,27,20,.5); padding: 12px; }
.pv-open .ad-phone { height: 100%; }
.ad-phone { background: #1f1b14; border-radius: 30px; padding: 10px; box-shadow: var(--shadow); height: min(78vh, 820px); display: flex; flex-direction: column; }
.ad-phone-bar { display: flex; justify-content: space-between; align-items: center; color: #e9e2d4; font-size: 13px; padding: 2px 10px 8px; }
.ad-phone iframe { flex: 1; width: 100%; border: 0; border-radius: 22px; background: var(--bg); }
.x.sm { width: 30px; height: 30px; }
.ad-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); margin-bottom: 12px; }
.ad-card summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.ad-card summary::-webkit-details-marker { display: none; }
.ad-card summary::after { content: "＋"; color: var(--ink-3); font-weight: 400; }
.ad-card[open] summary::after { content: "－"; }
.ad-body { padding: 0 18px 18px; }
.ad-row { display: grid; gap: 6px; margin-top: 12px; }
.ad-row > span { font-weight: 700; font-size: 14px; }
.ad-row em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: 12.5px; margin-left: 6px; }
.ad-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.ad-size { display: grid; grid-template-columns: 64px auto 1fr auto 48px; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 700; }
.ad-size input[type=range] { width: 100%; accent-color: var(--green-ink); }
.ad-size output { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 500; text-align: right; }
.ad-step { border: 0; background: var(--bg-deep); border-radius: 10px; padding: 6px 8px; font-size: 13px; cursor: pointer; }
.ad-list-h { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 6px; font-weight: 700; }
.ad-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-top: 10px; background: #fffdf8; }
.ad-item-h { display: flex; justify-content: space-between; align-items: center; }
.ad-item-h span { display: flex; gap: 6px; }
.mini-b { border: 0; background: var(--bg-deep); border-radius: 8px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.mini-b:disabled { opacity: .35; cursor: default; }
.mini-b.danger { color: #b3261e; background: #fde8e4; }
.ad-shift, .ad-meal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ad-shift .input { width: auto; flex: 1 1 110px; min-width: 0; }
.ad-shift .input[type=time] { flex: 0 1 120px; }
.ad-hrs { font-style: normal; font-size: 13px; color: var(--ink-3); min-width: 72px; }
.ad-meal > .input { flex: 1 1 200px; }
.ad-price { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.ad-price .input { width: 90px; }
.ad-save { position: sticky; bottom: 0; z-index: 25; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 18px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.ad-save .btn { min-height: 46px; font-size: 15px; padding: 0 18px; }
.ad-state { margin-right: auto; font-size: 13px; color: var(--ink-3); }
.ad-steps { margin-top: 12px; background: var(--card); border-radius: var(--r-md); padding: 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.ad-steps ol { margin: 6px 0 8px; padding-left: 1.3em; display: grid; gap: 4px; }
.ad-steps code { background: var(--bg-deep); padding: 1px 6px; border-radius: 6px; }
.ad-mode { margin-bottom: 14px; max-width: 360px; }
.ad-card-s { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; margin-bottom: 12px; }
.ad-card-s h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.ad-sub { font-weight: 700; font-size: 14px; margin: 14px 0 8px; }
.ad-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ad-day { border: 0; border-radius: 12px; padding: 6px 2px; background: #fffdf8; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 0; cursor: pointer; font-variant-numeric: tabular-nums; }
.ad-day b { font-size: 14px; } .ad-day span { font-size: 11px; color: var(--ink-3); } .ad-day em { font-style: normal; font-size: 11px; color: var(--green-ink); }
.ad-day.hol span { color: var(--orange-ink); }
.ad-day.on { background: var(--ink); color: #fff; box-shadow: none; } .ad-day.on span, .ad-day.on em { color: #e9e2d4; }
.ad-shiftgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.ad-shiftbtn { border: 0; border-radius: 16px; padding: 12px; text-align: left; background: #fffdf8; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; cursor: pointer; transition: transform .2s var(--ease-out); }
.ad-shiftbtn:active { transform: scale(.97); }
.ad-shiftbtn b { font-size: 16px; } .ad-shiftbtn span { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; } .ad-shiftbtn em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.ad-shiftbtn.on { background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green); }
.ad-shiftbtn.on b::after { content: " ✓"; color: var(--green-ink); }
.ad-rowbtns { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.ad-rowbtns .btn { min-height: 46px; font-size: 15px; }
.btn.ghost.danger-t { color: #b3261e; }
.ad-open { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ad-open:last-child { border-bottom: 0; }
.ad-open b { font-variant-numeric: tabular-nums; min-width: 110px; }
.ad-open span { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.ad-open em { font-style: normal; font-size: 13px; background: var(--green-soft); color: var(--green-ink); padding: 2px 10px; border-radius: 99px; }
@media (max-width: 600px) {
  .ad-save { flex-wrap: nowrap; gap: 6px; }
  .ad-save .ad-state { display: none; }
  .ad-save .btn { min-height: 42px; font-size: 14px; padding: 0 10px; flex: 1; }
  .ad-save .btn svg { display: none; }
  .ad-2 { grid-template-columns: 1fr; }
}

/* ================= 手機留白：家長幾乎都用手機看 ================= */
@media (max-width: 600px) {
  .wrap { width: min(100% - 40px, 640px); }
  body.wide #view { width: min(100% - 32px, 1180px); }
  section.block { padding-top: 52px; }
  .block > h2 { margin-bottom: 10px; }
  .block > .lede { margin-bottom: 24px; }
  .page-head { padding-top: 32px; }
  .page-head p { margin-top: 14px; }
  .steps { margin: 34px 0 6px; }
  .principles { gap: 16px; }
  .principles li { padding: 22px 20px 22px 16px; gap: 14px; }
  .principles h3 { margin-bottom: 8px; }
  .principles p + p, .qtext p + p, .qtext ul + p, .qtext ol + p, .next-up p + p { margin-top: 12px; }
  .card, .q-card, .next-up { padding: 24px 20px; }
  .card + .card, .q-card + .q-card { margin-top: 16px; }
  .field { margin-top: 24px; }
  .choices { gap: 10px; }
  .chips { gap: 10px; }
  .qtext { margin-bottom: 18px; }
  .pills { gap: 8px; margin-top: 12px; }
  #intake h3.part, #first-quiz h3.part { margin-top: 48px; }
  .price-table div { padding: 13px 0; }
  .rules { gap: 14px; }
  .door { padding: 24px; }
  .doors { gap: 16px; }
  .hello p + p { margin-top: 14px; }
  .site-foot { margin-top: 72px; }
}

/* =====================================================================
   版面 v2：參考 App 風格──標題適中、層次靠字重與灰階、留白一致
   字級：頁標題 28／區塊標題 20／小標題 16／內文 15／說明 14／輔助 12–13
   間距：8 的倍數；左右 20、區塊之間 48、標題到內容 8–20、卡片內距 20
   ===================================================================== */
:root { --shadow: 0 1px 2px rgba(60, 40, 10, .04), 0 8px 24px -12px rgba(60, 40, 10, .16); --r-lg: 20px; --r-md: 16px; }
body { letter-spacing: .01em; }
h1, h2, h3, legend { letter-spacing: -.01em; }

/* 頂欄 */
.topbar .wrap { height: 56px; }
.switch a { font-size: 13px; padding: 7px 12px 7px 9px; }

/* 頁首 */
.page-head { padding: 28px 0 0; }
.page-head .shape.big { width: 60px; height: 60px; top: 28px; right: 0; }
.page-head h1, body[data-page="long"] .page-head h1, body[data-page="temp"] .page-head h1 {
  font-size: clamp(24px, 7.4vw, var(--fs-title, 28px)); font-weight: 700; line-height: 1.3; padding-right: 72px; }
.page-head p, body[data-page="long"] .page-head p, body[data-page="temp"] .page-head p {
  font-size: var(--fs-body, 15px); color: var(--ink-2); margin-top: 8px; padding-right: 0; }
.steps { margin: 28px 0 0; gap: 4px; }
.steps li { font-size: 12px; color: var(--ink-3); }
.steps li::before { width: 30px; height: 30px; font-size: 13px; margin-bottom: 6px; }
.steps li:not(:last-child)::after { top: 15px; }
.demo-note { margin-top: 16px; }

/* 區塊 */
section.block { padding-top: 48px; }
.block > h2, body[data-page="long"] .block > h2, body[data-page="temp"] .block > h2 {
  font-size: var(--fs-h2, 20px); font-weight: 700; gap: 8px; margin-bottom: 8px; line-height: 1.35; }
.block > h2 .shape { width: 18px; height: 18px; }
.block > .lede, body[data-page="long"] .block > .lede, body[data-page="temp"] .block > .lede {
  font-size: calc(var(--fs-body, 15px) - 1px); color: var(--ink-3); margin-bottom: 20px; }

/* 卡片 */
.card, .q-card, .next-up, .principles li, .door, .entry, .sec, .kidcard { box-shadow: var(--shadow); }
.card, .q-card, .next-up { padding: 20px; border-radius: var(--r-lg); }
.card + .card, .q-card + .q-card { margin-top: 12px; }
.card h3, body[data-page="temp"] .card h3 { font-size: var(--fs-h3, 16px); font-weight: 700; margin-bottom: 6px; }

/* 托育原則：圖示放進淺色圓角方塊（參考圖的 icon tile） */
.principles { gap: 12px; }
.principles li { grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 18px; border-radius: var(--r-lg); }
.principles li > .shape { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--bg); margin-top: 0; }
.principles h3 { font-size: var(--fs-h3, 16px); font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.principles h3 .sep { margin: 0 6px; }
.principles p { font-size: var(--fs-body, 15px); color: var(--ink-2); }
.principles p + p { margin-top: 8px; }
.next-up { margin-top: 16px; }
.next-up h3 { font-size: var(--fs-h3, 16px); font-weight: 700; margin-bottom: 6px; }
.next-up p { font-size: calc(var(--fs-body, 15px) - 1px); color: var(--ink-2); }
.next-up .btn { margin-top: 20px; }

/* 表單與問卷 */
#intake h3.part, #first-quiz h3.part { font-size: 18px; font-weight: 700; margin: 44px 0 6px; }
#intake h3.part, #first-quiz h3.part span { width: 26px; height: 26px; font-size: 14px; }
.q-card legend { font-size: 16px; font-weight: 700; line-height: 1.5; }
.q-card legend small { font-size: 12.5px; }
.qtext p { font-size: calc(var(--fs-body, 15px) - 1px); }
.qtext .ask { font-size: 15px; }
.field { margin-top: 20px; }
.field > label, .field > legend { font-size: 14px; margin-bottom: 8px; }
.input { border-radius: 12px; font-size: 16px; }
.choice > span { font-size: 15px; padding: 14px 16px 14px 46px; border-radius: 14px; }
.choice > span::before { top: 16px; }
.chip span { font-size: 14px; padding: 8px 14px; }
.pills li { font-size: 12.5px; padding: 3px 10px; }
.checks label { font-size: 14px; }
.btn { border-radius: 14px; min-height: 52px; font-size: 17px; }

/* 臨時托育 */
.shift .pad b { font-size: 16px; }
.shift .time { font-size: 12px; color: var(--ink-3); }
.price-table div { font-size: calc(var(--fs-body, 15px) - 1px); padding: 12px 0; }
.price-table b { font-weight: 700; }
.rules li { font-size: calc(var(--fs-body, 15px) - 1px); }
.summary .total b { font-size: 22px; }

/* 首頁 */
.hello p { font-size: 15px; }
.door { min-height: 116px; padding: 20px; }
.door h2 { font-size: 20px; font-weight: 700; }
.door p { font-size: 14px; color: var(--ink-3); }
.door .tag { font-size: 12px; }
.door .go { width: 40px; height: 40px; }

/* 聯絡簿與後台 */
.login h1 { font-size: 28px; }
.login .lede { font-size: 15px; color: var(--ink-3); }
.ov-head h1, .al-head h1, .ad-head h1 { font-size: 22px; }
.kidrow h1, .kc-top h2 { font-size: 18px; }
.sh h3 { font-size: 16px; }
.pz-head h2 { font-size: 17px; }
.md-h h2, .sheet h2 { font-size: 20px; }
.ad-card summary { font-size: 16px; }

@media (max-width: 600px) {
  .wrap { width: min(100% - 40px, 640px); }
  section.block { padding-top: 48px; }
  .principles li { padding: 20px 18px; gap: 14px; }
  .card, .q-card, .next-up { padding: 20px; }
}
/* 原則圖示方塊：依形狀顏色上淡色底 */
.principles li > .shape { padding: 10px; }
.principles li:nth-child(7n+1) > .shape { background: #e3f4f8; }
.principles li:nth-child(7n+2) > .shape { background: var(--yellow-soft); }
.principles li:nth-child(7n+3) > .shape { background: #fbe3ef; }
.principles li:nth-child(7n+4) > .shape { background: #ece4fa; }
.principles li:nth-child(7n+5) > .shape { background: var(--orange-soft); }
.principles li:nth-child(7n+6) > .shape { background: #e4ebfd; }
.principles li:nth-child(7n+7) > .shape { background: var(--green-soft); }
/* 封面動畫圖層不可撐寬頁面（旋轉中的複本會超出邊界） */
.hero-anim { overflow: hidden; }
html, body { overflow-x: clip; }
/* 登記證膠囊：手機上換成兩行、不讓分隔線單獨掉行 */
.hello .license { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; border-radius: 16px; line-height: 1.5; }
.hello .license > span { white-space: nowrap; }

/* ---------- 我的托育理念（長期、臨時兩頁共用） ---------- */
.philo-list { display: grid; gap: 12px; }
.philo-item { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.philo-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 20px; gap: 14px; align-items: center; padding: 18px; }
.philo-item summary::-webkit-details-marker { display: none; }
.ph-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.ph-ic .shape { width: 24px; height: 24px; }
.ph-t { display: grid; gap: 4px; }
.ph-t b { font-size: var(--fs-h3, 16px); font-weight: 700; line-height: 1.4; }
.ph-t span { font-size: calc(var(--fs-body, 15px) - 1px); color: var(--ink-2); line-height: 1.65; }
.ph-chev { width: 20px; height: 20px; border-radius: 50%; position: relative; }
.ph-chev::before { content: ""; position: absolute; left: 6px; top: 5px; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.philo-item[open] .ph-chev::before { transform: translate(0, 3px) rotate(-135deg); }
.ph-body { padding: 0 18px 18px 76px; }
.ph-body .pills { margin-top: 0; }
.ph-body p { font-size: calc(var(--fs-body, 15px) - 1px); color: var(--ink-2); margin-top: 12px; line-height: 1.7; }
.ph-body .pills + p { margin-top: 12px; }
.ph-body > p:first-child { margin-top: 0; }
@media (max-width: 400px) { .ph-body { padding-left: 18px; } }
body[data-page="temp"] .philo { padding-top: 40px; }
.ad-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.ad-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.ad-check input { width: 18px; height: 18px; accent-color: var(--green-ink); }
.ad-pages { flex-wrap: wrap; }
select.input { appearance: auto; }

/* ---------- 頁尾：版權、登記資訊、隱私權政策、LINE／IG ---------- */
.site-foot { padding-top: 28px; }
.site-foot .wrap { gap: 20px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-legal { display: grid; gap: 4px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.foot-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a:hover { color: var(--ink); }
.foot-social { display: flex; gap: 6px; flex-shrink: 0; }
.foot-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); transition: background .2s, transform .2s var(--ease-out); }
.foot-social a:hover { background: var(--bg-deep); }
.foot-social a:active { transform: scale(.94); }
.foot-social svg { width: 26px; height: 26px; }

/* ---------- 隱私權政策 ---------- */
.legal-page .page-head h1 { padding-right: 0; }
.legal-date { font-size: 13px !important; color: var(--ink-3) !important; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.legal-toc a { font-size: 13px; padding: 6px 12px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink-2); }
.legal-page section { padding-top: 36px; scroll-margin-top: 72px; }
.legal-page section h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.legal-page section p { font-size: 15px; color: var(--ink-2); max-width: 36em; }
.legal-page section p + p, .legal-page section .legal-list + p, .legal-page section p + .legal-list, .legal-page section p + .legal-table { margin-top: 12px; }
.legal-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.legal-list b { color: var(--ink); font-weight: 700; }
.legal-table { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 4px 18px; }
.legal-table div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.legal-table div:last-child { border-bottom: 0; }
.legal-table b { font-size: 15px; font-weight: 700; }
.legal-table span { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.legal-line { margin-top: 18px; background: #06c755; }
.legal-line:hover { background: #05b34c; }

/* 手機深色模式（含三星、LINE 內建瀏覽器的「強制深色」）不要把插圖反黑 */
:root { color-scheme: light only; }
.hero-anim img, .cover img { filter: none; }

/* 手機開了「減少動態效果／移除動畫」時：封面保留輕柔的小動作（眨眼、花轉、浮動），只關掉滾球和踢腳這類大動作 */
@media (prefers-reduced-motion: reduce) {
  .hero-anim .ly { display: block !important; }
  .hero-anim .a-ball, .hero-anim .a-kick { animation: none !important; }
  .hero-anim .a-blink { animation: h-blink 4.6s infinite !important; }
  .hero-anim .a-blink2 { animation: h-blink 5.8s 1.3s infinite !important; }
  .hero-anim .a-spin { animation: h-spin 14s linear infinite !important; }
  .hero-anim .a-spin2 { animation: h-spin 18s linear infinite reverse !important; }
  .hero-anim .a-spin3 { animation: h-spin 12s linear infinite !important; }
  .hero-anim .a-bob { animation: h-bob 3.6s ease-in-out infinite alternate !important; }
  .hero-anim .a-sway { animation: h-sway 4.4s ease-in-out infinite alternate !important; }
  .hero-anim .a-paw { animation: h-paw 2.6s ease-in-out infinite alternate !important; }
  .hero-anim .a-tail { animation: h-tail 2.4s ease-in-out infinite alternate !important; }
}

/* ---------- 托育日誌：日期切換、對齊、照片、匯出 ---------- */
.logdate { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; margin: 14px 0 0; }
.ld-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
.ld-btn:disabled { opacity: .3; box-shadow: none; cursor: default; }
.ld-btn svg { width: 20px; height: 20px; }
.ld-pick { position: relative; display: grid; place-items: center; height: 44px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-round); font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; }
.ld-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.export-btn { margin-top: 10px; min-height: 46px; font-size: 15px; }
.att-grid .field { margin-top: 0; }
.att-grid { align-items: end; row-gap: 16px; }
.att-grid fieldset.field { margin-top: 4px; }
@media (max-width: 420px) { .att-grid { grid-template-columns: 1fr; } }
.care-time { display: flex; align-items: center; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.care-time svg { width: 16px; height: 16px; color: var(--ink-3); }
.ph.has { position: relative; padding: 0; overflow: hidden; background: var(--bg-deep); }
.ph-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ph-open img { width: 100%; height: 100%; object-fit: cover; }
.ph-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(31,27,20,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-del svg { width: 14px; height: 14px; }
.ph-upload { display: block; text-align: center; cursor: pointer; }
.lb-photo { max-width: 100%; max-height: 72vh; border-radius: 10px; object-fit: contain; }
.lb-acts { display: flex; align-items: center; gap: 12px; }
.lb-dl { display: inline-flex; align-items: center; gap: 4px; color: #fff; background: rgba(255,255,255,.14); border: 0; border-radius: 99px; padding: 6px 12px; font-size: 13px; text-decoration: none; cursor: pointer; }
.lb-dl svg { width: 14px; height: 14px; }
.pic.photo img { display: block; width: 100%; height: auto; }

/* ---------- Google 雲端備份卡片 ---------- */
.drive-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; padding: 16px; border-radius: var(--r-md); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.drive-card.on { box-shadow: inset 0 0 0 1px #bfe7c8; background: #f6fcf7; }
.dc-t { display: grid; gap: 4px; flex: 1 1 220px; }
.dc-t b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.dc-t b svg { width: 18px; height: 18px; color: var(--green-ink); }
.dc-t > span { font-size: 13.5px; color: var(--ink-2); }
.drive-card .btn { min-height: 44px; font-size: 15px; padding: 0 16px; }
.dc-acts { display: flex; align-items: center; gap: 10px; }

/* ---------- 小朋友管理 ---------- */
.kids-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.kids-head .btn { min-height: 46px; font-size: 15px; padding: 0 16px; }
.kid-admin { cursor: default; }
.kid-admin .kc-top h2 small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.bindbox { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--yellow-soft); }
.bindbox > div:first-child { display: grid; gap: 2px; }
.bindbox .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 24px; letter-spacing: .14em; font-weight: 700; color: var(--ink); }
.bind-acts { display: flex; align-items: center; gap: 10px; }
.bind-acts .btn { min-height: 42px; font-size: 14px; padding: 0 14px; background: #fff; }
.carers-admin { margin-top: 14px; display: grid; gap: 8px; }
.carer-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.carer-row svg { width: 18px; height: 18px; color: var(--green-ink); }
.carer-row em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); }
.kid-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.kid-acts .btn { min-height: 42px; font-size: 14px; padding: 0 10px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.swatches input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.invite-pre { white-space: pre-wrap; background: var(--card); border-radius: 14px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-body); font-size: 14px; user-select: all; }

/* 上方 bar 只留 Logo */
.brand img { height: 28px; }
/* 聯絡簿老師後台：分頁只留圖示 */
.apptabs.icons { gap: 6px; }
.apptabs.icons button { flex: 1 1 0; min-width: 0; padding: 12px 0; }
.apptabs.icons button svg { width: 22px; height: 22px; }
/* 老師後台分頁：沒選到的只有淺色圖示（沒有底色、沒有框），選到的才有黑色色塊 */
.apptabs.icons button { background: transparent; box-shadow: none; color: #b3aa9b; transition: background .2s, color .2s; }
.apptabs.icons button:hover { color: var(--ink-2); background: rgba(31, 27, 20, .04); }
.apptabs.icons button[aria-current="true"] { background: var(--ink); color: #fff; box-shadow: none; }
/* 圖示分頁：每個固定寬度、靠左排列（家長 2 個、老師 6 個看起來一致） */
.apptabs.icons { justify-content: flex-start; }
.apptabs.icons button { flex: 1 1 0; max-width: 64px; }

/* =====================================================================
   手機表單對齊：欄位擠不下就換行，不硬塞同一行
   ===================================================================== */
.row2 { align-items: end; }
.row2 > *, .att-grid > *, .nowrow > * { min-width: 0; }
.row2 .field, .row2 > div { margin-top: 0; }
.row2 { row-gap: 16px; margin-top: 20px; }
.field > label, .row2 label { line-height: 1.4; }
/* 日期、時間欄位：iPhone 預設寬度很大，會把旁邊擠歪 */
.input[type=date], .input[type=time], .input[type=month] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0;
  min-height: 48px; text-align: left; line-height: 1.3;
}
.input[type=date]::-webkit-date-and-time-value, .input[type=time]::-webkit-date-and-time-value { text-align: left; }
@media (max-width: 480px) {
  /* 一般兩欄：手機上改成一欄一行 */
  .row2 { grid-template-columns: 1fr; }
  /* 只有數字的小欄位（正餐、點心、水果、飲品）維持兩欄、寬度縮小 */
  .row2.nums2 { grid-template-columns: 1fr 1fr; }
  .nowbtn { padding: 0 10px; }
}
.row2.nums2 .input { max-width: 140px; }

/* 色塊按鈕的線條再細一點 */
.chip span, .choice > span, .btn.ghost, .addbtn, .nowbtn, .apptabs button, .kidswitch button, .jump a, .ld-pick, .ad-day, .ad-shiftbtn { box-shadow: inset 0 0 0 1px var(--line); }
.chip input:checked + span { box-shadow: none; }
.choice input:checked + span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.addbtn, .nowbtn { box-shadow: none; }
.apptabs.icons button { box-shadow: none; }
.input { border-width: 1px; }

/* ---------- 後台內容編輯：頁面切換列不上色塊，只有選到的是黑色；預覽只留圖示＋黃色 ---------- */
.ad-pages button { background: transparent; box-shadow: none; color: var(--ink-3); padding: 8px 14px; }
.ad-pages button:hover { color: var(--ink); }
.ad-pages button[aria-selected="true"] { background: var(--ink); color: #fff; }
.ad-pages .ad-pv-toggle { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 12px; background: var(--yellow); color: var(--ink); }
.ad-pages .ad-pv-toggle svg { width: 20px; height: 20px; }

/* ---------- 長期托育：看完了接下來（不要白底卡片）＋兩行按鈕 ---------- */
.next-up, body[data-page="long"] .next-up { background: none; box-shadow: none; padding: 0; margin-top: 0; }
.next-up .btn, #agree { flex-direction: column; justify-content: center; align-items: center; gap: 2px; min-height: 68px; padding: 12px 20px; line-height: 1.35; text-align: center; letter-spacing: .06em; margin-top: 20px; }
#agree span { display: block; }
#agree span:first-child { font-size: 15px; opacity: .9; }
#agree span:last-child { font-size: 18px; }

/* ---------- 托育原則：只露出標題，點開看內文 ---------- */
.principles li { display: block; padding: 0; grid-template-columns: none; overflow: hidden; }
.pr-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 20px; gap: 14px; align-items: center; padding: 16px 18px; }
.pr-item summary::-webkit-details-marker { display: none; }
.pr-item .pr-ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--bg); }
.principles li:nth-child(7n+1) .pr-ic { background: #e3f4f8; }
.principles li:nth-child(7n+2) .pr-ic { background: var(--yellow-soft); }
.principles li:nth-child(7n+3) .pr-ic { background: #fbe3ef; }
.principles li:nth-child(7n+4) .pr-ic { background: #ece4fa; }
.principles li:nth-child(7n+5) .pr-ic { background: var(--orange-soft); }
.principles li:nth-child(7n+6) .pr-ic { background: #e4ebfd; }
.principles li:nth-child(7n+7) .pr-ic { background: var(--green-soft); }
.pr-item h3 { margin: 0; }
.pr-item[open] .ph-chev::before { transform: translate(0, 3px) rotate(-135deg); }
.pr-body { padding: 0 18px 18px 76px; }
.pr-body p { font-size: var(--fs-body, 15px); color: var(--ink-2); }
.pr-body p + p { margin-top: 8px; }
@media (max-width: 400px) { .pr-body { padding-left: 18px; } }
.ad-pages { flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ad-pages::-webkit-scrollbar { display: none; }
.ad-pages button { flex-shrink: 0; font-size: 14px; padding: 7px 10px; white-space: nowrap; }
.ad-pages .ad-pv-toggle { width: 38px; height: 38px; }


/* =====================================================================
   中文斷行：不要只在標點才換行（之前會提早跳行、每行長短不一）
   內文改成正常換行＋左右對齊，行首不會出現標點
   ===================================================================== */
p, li, label, legend, dd, .ph-t span { word-break: normal; overflow-wrap: break-word; line-break: strict; }
h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
.principles p, .pr-body p, .ph-body p, .ph-t span, .qtext p, .block > .lede, .page-head p,
.next-up p, .legal-page section p, .legal-table span, .hello p, .door p, .help, .note, .words p {
  text-align: justify; text-justify: inter-character;
}

/* 收托年齡 */
.door h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.door-age { font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.page-head p.ages { margin-top: 6px; color: var(--ink-2); }
.page-head p.ages b { font-weight: 700; color: var(--ink); }

/* 孩子生日：空白時也維持輸入框高度，年齡以淡灰小字顯示 */
input[type="date"].input { display: block; width: 100%; min-width: 0; min-height: 48px; -webkit-appearance: none; appearance: none; text-align: left; }
#birth-age:empty { display: none; }

/* LINE 通知 */
.line-on { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.line-on svg { width: 18px; height: 18px; color: #06c755; }
.ack-box [data-line-notify] { margin-top: 14px; }
.ack-box .muted.small { margin-top: 8px; }

/* 已完成的設定：一行小字就好 */
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; padding: 2px 4px; font-size: 13.5px; color: var(--ink-2); }
.status-row > svg { width: 16px; height: 16px; color: #2fa84f; flex: none; margin-right: -6px; }
.status-row > span { flex: 1 1 auto; }
.status-row em { font-style: normal; margin-left: 8px; color: var(--ink-2); opacity: .8; }
.status-row .linkish { font-size: 13.5px; }
.status-row .sr-acts { display: inline-flex; gap: 12px; white-space: nowrap; }
/* 設定分頁 */
.set-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.set-sec h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.set-sec .status-row { font-size: 14.5px; }
.status-row.warn > svg { color: #d0493a; }
.status-row > span:not(.sr-acts) { flex: 1 1 180px; min-width: 0; }
.set-sec .status-row { align-items: flex-start; }
.set-sec .status-row > svg { margin-top: 3px; margin-right: 0; }
.set-sec .status-row em { display: block; margin: 2px 0 0; font-size: 13px; }
.set-sec .sr-acts { flex-basis: 100%; padding-left: 20px; }

/* ---------- 送出後的確認畫面（跟 LINE 卡片同一套配色） ---------- */
.done { --s: var(--green-soft); --i: var(--green-ink); }
.done.t-o { --s: var(--orange-soft); --i: var(--orange-ink); }
.done-ic { width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 12px; display: grid; place-items: center; background: var(--s); color: var(--i); font-size: 34px; font-weight: 900; }
.sheet .done h2 { justify-content: center; text-align: center; }
.sheet .done p.sub { text-align: center; margin: 6px 0 16px; line-height: 1.7; }
.done-kv { display: grid; grid-template-columns: 52px 1fr; gap: 8px 12px; margin: 0 0 16px; padding: 14px 16px; background: var(--card); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.done-kv dt { color: var(--ink-3); }
.done-kv dd { margin: 0; color: var(--ink-2); word-break: break-word; }
.btn.line { background: #06c755; color: #fff; }
.done-line { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 0; padding: 12px; border-radius: var(--r-sm); background: var(--s); color: var(--i); font-weight: 700; }
.done-line svg { width: 20px; height: 20px; }
.done-more { margin-top: 14px; }
.done-more summary { text-align: center; color: var(--ink-2); font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px; list-style: none; }
.done-more summary::-webkit-details-marker { display: none; }
.done-more pre { margin-top: 10px; }

/* ---------- 臨托：已帶入上次的資料 ---------- */
.remember { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 18px; padding: 12px 16px; border-radius: var(--r-md); background: var(--orange-soft); color: var(--orange-ink); font-size: 15px; line-height: 1.6; }
.remember svg { width: 18px; height: 18px; flex: none; }
.remember span { flex: 1 1 200px; }
.remember .linkish { color: var(--orange-ink); font-weight: 700; }

/* ---------- 家長查看自己的申請 ---------- */
.my-card { --s: var(--green-soft); background: linear-gradient(180deg, var(--s), var(--card) 160px); border-radius: var(--r-lg); padding: 22px 18px; box-shadow: var(--shadow); margin: 18px 0 40px; }
.my-card .done-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--i); color: #fff; font-weight: 700; font-size: 14px; }
.my-card h1 { font-size: 24px; margin: 14px 0 2px; }
.my-card .sub { color: var(--ink-3); margin: 0 0 14px; font-size: 14px; }
.my-card h2 { font-size: 17px; margin: 18px 0 8px; }
.my-card pre { white-space: pre-wrap; word-break: break-word; margin: 0 0 14px; background: var(--bg); border-radius: var(--r-md); padding: 14px; font-family: var(--font-body); font-size: 14px; line-height: 1.6; }
.my-empty { margin: 24px 0; text-align: center; display: grid; gap: 14px; justify-items: center; }

/* ---------- 後台：問卷與預約紀錄 ---------- */
.srecs { display: grid; gap: 12px; margin-bottom: 32px; }
.srec { --s: var(--green-soft); --i: var(--green-ink); background: linear-gradient(180deg, var(--s), var(--card) 90px); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; }
.srec.t-o { --s: var(--orange-soft); --i: var(--orange-ink); }
.srec summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; gap: 4px; color: var(--ink-2); font-size: 14px; }
.srec summary::-webkit-details-marker { display: none; }
.srec summary b { font-size: 18px; color: var(--ink); }
.srec-tag { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--i); color: #fff; font-weight: 700; font-size: 13px; }
.srec-at { position: absolute; }
.srec summary { position: relative; }
.srec summary .srec-at { right: 16px; top: 16px; color: var(--ink-3); font-size: 13px; }
.srec-time { font-weight: 700; color: var(--ink-2); }
.srec pre { white-space: pre-wrap; word-break: break-word; margin: 0 16px 12px; background: var(--bg); border-radius: var(--r-sm); padding: 14px; font-family: var(--font-body); font-size: 14px; line-height: 1.6; }
.srec-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 16px 14px; }

/* ---------- 臨托：第一次來才出現的托育問卷 ---------- */
#first-quiz[hidden] { display: none; }
#first-quiz .fq-note { margin: 0 0 6px; padding: 12px 16px; border-radius: var(--r-md); background: var(--green-soft); color: var(--green-ink); font-size: 15px; line-height: 1.7; }
.my-h { font-size: 18px; margin: 28px 0 0; }

/* ---------- 臨托：可收合的托育理念、六大原則 ---------- */
section.block.fold { display: flex; flex-direction: column; padding: 18px 0 8px; margin: 0; }
.fold > .lede { order: -1; margin: 0 0 12px; }
.fold > h2 { order: 0; display: flex; align-items: flex-end; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fold > h2 > * { order: 0; }
.fold-hint { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-left: -6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.fold-hint::after { content: ""; width: 8px; height: 8px; margin: 0 4px 4px 2px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.fold.open .fold-hint::after { transform: translateY(4px) rotate(-135deg); }
.fold > :not(h2):not(.lede) { order: 1; }
.fold:not(.open) > :not(h2):not(.lede) { display: none; }
.fold.open > h2 { margin-bottom: 16px; }
#first-time[hidden] { display: none; }
.remember { margin: 22px 0 0; padding: 8px 14px; gap: 2px 8px; font-size: 14px; line-height: 1.6; border-radius: var(--r-sm); }
.remember svg { width: 16px; height: 16px; }
.remember .linkish { font-size: 13px; padding: 2px 0; }

/* ===== 收托名額 ===== */
.cal-birth { margin: 0 0 16px; }
.cal-birth #cal-hint { margin: 6px 0 0; }
.day.none .s { color: var(--ink-3); }
.ad-use { font-style: normal; font-size: 12px; color: var(--green-ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ad-use.full { color: var(--orange-ink); }
.ad-use.over, .ad-open em.over { color: #b3261e; }
.ad-open em.full { background: var(--orange-soft); color: var(--orange-ink); }
.ad-open em.over { background: #fde8e4; }
.srec-st { justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.srec-st.st-ok { background: var(--green-soft); color: var(--green-ink); box-shadow: none; }
.srec-st.st-no { background: #f3efe6; color: var(--ink-3); box-shadow: none; }
.srec-decide { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 0 16px 14px; }
.srec-decide p { flex-basis: 100%; margin: 0; }
.kc-marks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mark-b { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; background: #fffdf8; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); cursor: pointer; }
.mark-b svg { width: 15px; height: 15px; }
.mark-b.on { background: var(--ink); color: #fff; box-shadow: none; }
.mark-b:disabled { opacity: .5; }
.kc-marks .linkish { font-size: 13px; margin-left: auto; }
.mark-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-deep); margin: 0 0 12px; }
.mark-tabs button { border: 0; background: transparent; border-radius: 999px; padding: 6px 18px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.mark-tabs button.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.mark-h { font-size: 15px; margin: 22px 0 6px; }
.mark-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.srec-tags { display: flex; gap: 8px; align-items: center; }
.mark-b .plus { font-weight: 700; color: var(--ink); margin-left: 2px; }
.mark-b:disabled { opacity: .35; cursor: not-allowed; }
.mark-b.late-on { padding: 3px 4px 3px 12px; gap: 6px; cursor: default; }
.step-in { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.step-in:disabled { opacity: .35; cursor: default; }
.late-step { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.late-step b { min-width: 7em; text-align: center; font-variant-numeric: tabular-nums; }
.step-b { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fffdf8; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 20px; cursor: pointer; }
