/* D3 家长后台 —— 给成年人用的干净后台;浅色为主,跟随系统深色 */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f0f2f5; --border: #e2e5ea; --border-strong: #cfd4dc;
  --text: #1c2129; --text-2: #5a6472; --text-3: #8a93a0;
  --accent: #2f5fd0; --accent-hover: #264fb0; --accent-soft: #e8eefb; --on-accent: #ffffff;
  --ok: #1a7f4b; --ok-soft: #e3f4ea; --warn: #b45f06; --warn-soft: #fdf0de; --warn-bar: #e08a1e; --ok-bar: #2a9d5f;
  --danger: #c0352b; --danger-soft: #fbe9e7;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --radius: 10px;
  --nav-w: 220px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a; --surface: #1d2026; --surface-2: #262a32; --border: #30353e; --border-strong: #424955;
    --text: #e8eaee; --text-2: #aab2be; --text-3: #7d8693;
    --accent: #6e9bff; --accent-hover: #8aaeff; --accent-soft: #24304a; --on-accent: #0d1424;
    --ok: #5fd196; --ok-soft: #1a3527; --warn: #f0ad55; --warn-soft: #3a2c17; --warn-bar: #e59a35; --ok-bar: #3fb877;
    --danger: #ff8a80; --danger-soft: #40211f;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.hidden { display: none !important; }
.boot { padding: 80px 16px; text-align: center; color: var(--text-3); }

/* ── 整体布局 ── */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--nav-w); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 18px 12px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.brand__logo { font-size: 24px; line-height: 1; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav__item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.nav__item:hover { background: var(--surface-2); color: var(--text); }
.nav__item.active { background: var(--accent-soft); color: var(--accent); }
.nav__icon { width: 20px; height: 20px; flex: none; }
.side__foot { margin-top: auto; padding: 10px; font-size: 12px; color: var(--text-3); }
.main { margin-left: var(--nav-w); min-width: 0; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top__brand { display: none; font-weight: 700; white-space: nowrap; }
.top__title { font-size: 18px; font-weight: 650; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__user { display: flex; align-items: center; gap: 8px; color: var(--text-2); min-width: 0; }
.top__name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 24px 28px 60px; max-width: 1080px; }

/* ── 基础控件 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 500; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.btn--danger:hover { background: var(--danger-soft); }
.btn--danger-solid { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--sm { min-height: 34px; padding: 0 10px; font-size: 13.5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.input, .textarea, .select { width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; display: block; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card__title { font-size: 15.5px; font-weight: 650; flex: 1; min-width: 0; }
.card__body { padding: 18px; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--accent { background: var(--accent-soft); color: var(--accent); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg__btn { min-height: 44px; min-width: 64px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-weight: 500; }
.seg__btn:hover { background: var(--surface-2); }
.seg__btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 650; }
.empty { padding: 36px 16px; text-align: center; color: var(--text-3); }
.empty__icon { font-size: 30px; display: block; margin-bottom: 6px; opacity: .8; }
.loading { padding: 40px 16px; text-align: center; color: var(--text-3); }
.loading::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 4px; background: var(--warn-bar); }
.bar__fill.is-full { background: var(--ok-bar); }
.bar__fill.is-neutral { background: var(--accent); }

/* ── 作业管理 ── */
.hw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px; align-items: start; }
.datebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.datebar__input { width: auto; min-width: 150px; }
.datebar__day { font-weight: 650; }
.datebar__count { margin-left: auto; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.subject { margin-bottom: 18px; }
.subject__name { font-size: 13px; font-weight: 700; color: var(--text-2); letter-spacing: .04em; margin: 0 0 8px 2px; display: flex; align-items: center; gap: 8px; }
.subject__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.subject__dot[data-s="语文"] { background: #d0533f; } .subject__dot[data-s="数学"] { background: #2f7fd0; }
.subject__dot[data-s="英语"] { background: #2a9d5f; } .subject__dot[data-s="其他"] { background: #8a6fd0; }
.hw { margin-bottom: 10px; }
.hw__head { display: flex; align-items: flex-start; gap: 4px; padding: 8px 12px 8px 6px; }
.hw__title { flex: 1; min-width: 0; padding: 9px 0; font-weight: 650; overflow-wrap: anywhere; }
.hw.is-done .hw__title { color: var(--text-3); text-decoration: line-through; }
.hw__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px 50px; }
.hw__time { font-size: 12.5px; color: var(--text-3); }
.hw__detail { margin: 0 14px 12px 50px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.hw__detail-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 2px; }
.hw__items { list-style: none; margin: 0 0 8px; padding: 0 14px 0 44px; }
.hw__item { display: flex; align-items: flex-start; gap: 2px; border-top: 1px dashed var(--border); }
.hw__item-text { flex: 1; min-width: 0; padding: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.hw__item.is-done .hw__item-text { color: var(--text-3); text-decoration: line-through; }
.hw__item-time { padding: 12px 0 0 8px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.hw__actions { display: flex; gap: 6px; justify-content: flex-end; padding: 0 12px 12px; }
.check { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; padding: 0; }
.check:hover { background: var(--surface-2); }
.check__box { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: transparent; line-height: 1; }
.check.is-on .check__box { background: var(--ok-bar); border-color: var(--ok-bar); color: #fff; }
.check--sm .check__box { width: 20px; height: 20px; font-size: 12px; }
.quick { position: sticky; top: 80px; }
.preview { margin-top: 12px; padding: 12px 14px; border-radius: 8px; border: 1px dashed var(--border-strong); background: var(--surface-2); font-size: 13.5px; }
.preview__title { font-size: 12.5px; font-weight: 650; color: var(--text-2); margin-bottom: 6px; }
.preview__list { margin: 0; padding: 0; list-style: none; }
.preview__list li { display: flex; gap: 8px; padding: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview__num { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.preview__whole { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.copybar { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; }

/* ── 完成情况 ── */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 16px 18px; }
.stat__label { font-size: 13px; color: var(--text-2); }
.stat__value { font-size: 30px; font-weight: 700; line-height: 1.25; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat__unit { font-size: 14px; font-weight: 500; color: var(--text-2); margin-left: 4px; }
.stat__hint { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.strip { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 5px; }
.strip__cell { aspect-ratio: 1; min-height: 28px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); font-size: 11.5px; display: grid; place-items: center; padding: 0; font-variant-numeric: tabular-nums; }
.strip__cell.is-full { background: var(--ok-soft); border-color: transparent; color: var(--ok); font-weight: 700; }
.strip__cell.is-part { background: var(--warn-soft); border-color: transparent; color: var(--warn); font-weight: 700; }
.strip__cell.is-today { outline: 2px solid var(--accent); outline-offset: 1px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.dayrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px 78px; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 6px 18px; border: 0; border-top: 1px solid var(--border); background: none; text-align: left; }
.dayrow:first-child { border-top: 0; }
.dayrow:hover { background: var(--surface-2); }
.dayrow__date { font-weight: 600; white-space: nowrap; }
.dayrow__wk { color: var(--text-3); font-weight: 400; margin-left: 6px; font-size: 13px; }
.dayrow__num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.dayrow__tag { text-align: right; }

/* ── 学习记录 ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab { min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.score { font-weight: 700; font-variant-numeric: tabular-nums; }
.paper-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.paper-head__info { flex: 1; min-width: 220px; }
.paper-head__title { font-size: 17px; font-weight: 650; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; cursor: pointer; user-select: none; font-weight: 500; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.q { padding: 14px 18px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; }
.q:first-child { border-top: 0; }
.q__mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface-2); color: var(--text-3); }
.q__mark.is-right { background: var(--ok-soft); color: var(--ok); }
.q__mark.is-wrong { background: var(--danger-soft); color: var(--danger); }
.q__type { font-size: 12.5px; color: var(--text-3); }
.q__text { font-weight: 550; white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 8px; }
.q__answers { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14px; }
.q__answers b { font-variant-numeric: tabular-nums; }
.q__ans-wrong { color: var(--danger); } .q__ans-right { color: var(--ok); }
.q__explain { margin-top: 8px; padding: 9px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--text); font-size: 13.5px; overflow-wrap: anywhere; }
.q__explain-label { font-weight: 650; color: var(--accent); margin-right: 4px; }
.histrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--border); }
.histrow:first-child { border-top: 0; }
.lesson { padding: 14px 18px; border-top: 1px solid var(--border); }
.lesson:first-child { border-top: 0; }
.lesson__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.lesson__title { font-weight: 650; flex: 1; min-width: 0; }
.lesson__num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-2); }
.words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.word { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); font-size: 13.5px; }
.word--wrong { background: var(--danger-soft); }
.word__cn { color: var(--text-2); font-size: 12.5px; }
.dict { padding: 12px 18px; border-top: 1px solid var(--border); }
.dict:first-child { border-top: 0; }
.dict__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── 家庭成员 ── */
.famname { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.famname .input { flex: 1; min-width: 180px; max-width: 360px; }
.member { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.member:first-child { border-top: 0; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 17px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member__info { flex: 1; min-width: 160px; }
.member__name { font-weight: 650; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; }
.member__sub { font-size: 12.5px; color: var(--text-3); }
.member__actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── 弹层 / toast / 登录 ── */
.mask { position: fixed; inset: 0; z-index: 50; background: rgba(10,14,22,.5); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 520px; background: var(--surface); border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,.25); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal--sm { max-width: 400px; }
.modal__head { display: flex; align-items: center; padding: 16px 20px 8px; }
.modal__title { flex: 1; font-size: 17px; font-weight: 650; }
.modal__close { width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; border-radius: 8px; font-size: 20px; color: var(--text-3); }
.modal__close:hover { background: var(--surface-2); }
.modal__body { padding: 8px 20px 4px; overflow-y: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qr { width: 232px; height: 232px; margin: 8px auto 12px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: #667; text-align: center; padding: 8px; }
.qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.bind__status { text-align: center; font-weight: 600; margin: 6px 0 10px; min-height: 24px; }
.bind__status.is-ok { color: var(--ok); } .bind__status.is-err { color: var(--danger); } .bind__status.is-wait { color: var(--warn); }
.bind__tip { font-size: 13.5px; color: var(--text-2); text-align: center; }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-weight: 600; text-align: center; margin: 12px 0; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); z-index: 100; max-width: min(90vw, 420px); padding: 10px 18px; border-radius: 22px; background: #22262e; color: #fff; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-err { background: #a82c23; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.gate__card { width: 100%; max-width: 380px; padding: 28px 24px; text-align: center; }
.gate__logo { font-size: 40px; line-height: 1; }
.gate__title { font-size: 20px; font-weight: 700; margin: 8px 0 4px; }
.gate__msg { color: var(--text-2); margin: 10px 0 16px; overflow-wrap: anywhere; }

/* ── 手机 ── */
.quick__toggle { display: none; }
@media (max-width: 960px) {
  .hw-grid { grid-template-columns: minmax(0, 1fr); }
  .quick { position: static; }
  .hw-grid > .quick-col { order: -1; }
  .quick__toggle { display: inline-flex; }
  .quick.is-collapsed .card__body { display: none; }
  .quick.is-collapsed .card__head { border-bottom: 0; }
}
@media (max-width: 720px) {
  .side { inset: auto 0 0 0; width: auto; flex-direction: row; padding: 0 4px env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid var(--border); }
  .brand, .side__foot { display: none; }
  .nav { flex-direction: row; flex: 1; gap: 0; }
  .nav__item { flex: 1; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 4px 0; font-size: 11.5px; border-radius: 0; }
  .nav__item.active { background: none; }
  .nav__icon { width: 22px; height: 22px; }
  .main { margin-left: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .top { height: 52px; padding: 0 12px 0 16px; gap: 8px; }
  .top__brand { display: block; flex: 1; min-width: 0; }
  .top__title { display: none; }
  .top__name { max-width: 90px; }
  .content { padding: 16px 12px 32px; }
  .pagetitle { display: block !important; }
  .datebar__count { margin-left: 0; width: 100%; }
  .datebar__input { flex: 1; min-width: 130px; }
  .btn { min-height: 44px; }
  .btn--sm { min-height: 40px; }
  .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .seg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg__btn { min-width: 0; padding: 0 6px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .stat { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 12px 16px; }
  .stat__value { grid-row: span 2; grid-column: 2; font-size: 26px; margin: 0; }
  .stat__label { grid-column: 1; } .stat__hint { grid-column: 1; }
  .strip { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .dayrow { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; padding: 10px 14px; }
  .dayrow .bar { grid-column: 1 / -1; grid-row: 2; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 0; border: 0; }
  .table td.td-main, .table td.td-wide { width: 100%; }
  .table td.td-main { font-weight: 650; }
  .table .num { text-align: left; }
  .table td[data-l]::before { content: attr(data-l) " "; color: var(--text-3); font-size: 12.5px; }
  .histrow { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 11px 14px; }
  .toast { top: calc(60px + env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -12px); width: max-content; }
  .mask { place-items: end center; padding: 0; }
  .modal { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
  .modal__foot .btn { flex: 1; }
  .member__actions { width: 100%; padding-left: 56px; }
  .hw__meta { padding-left: 50px; }
  .hw__detail { margin-left: 14px; }
  .hw__items { padding-left: 10px; }
  .hw__item-time { display: none; }
  .hw__item-time--m { display: block !important; }
}
.pagetitle { display: none; font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.hw__item-time--m { display: none; font-size: 12px; color: var(--text-3); padding-bottom: 8px; margin-top: -6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
