/* ============================================================
   Dantiaリワード — 会員サイト UI（部品・レイアウト）
   依存: tokens.css / 端末内蔵の日本語フォント（外部フォント通信なし）
   レスポンシブ: .shell を基準にしたコンテナクエリ（900 / 1280 / 1440 / <400）
   ※ 通常のページでは @media (min-width:…) に置き換えても同じ結果になる
   ============================================================ */

/* ---------- 0. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.member { background: #E9ECF0; font-family: var(--f-sans); color: var(--c-ink); font-size: var(--fs-14); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--c-navy-700); text-decoration: none; }
a:hover { color: var(--c-green-500); }
button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; }
svg { display: inline-block; width: 20px; height: 20px; flex: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--c-navy-700); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 数字（金額・日付・件数）は内蔵フォントを等幅数字で */
.amt, .num { font-family: var(--f-num); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--c-navy-700); }
.num { font-weight: 600; letter-spacing: 0; }
.amt { font-size: var(--fs-amt); line-height: 1; }
.amt--sm { font-size: var(--fs-amt-sm); }
.amt--lg { font-size: var(--fs-amt-lg); }
.amt--xl { font-size: var(--fs-amt-xl); letter-spacing: -0.03em; }
.amt .unit { font-family: var(--f-sans); font-size: 0.58em; font-weight: 600; color: var(--c-ink-60); margin-left: 0.15em; letter-spacing: 0; }
.amt--xl .unit { font-size: 0.42em; }
.amt--muted { color: var(--c-ink-60); }
.amt--green { color: var(--c-green-600); }
.amt--strike { color: var(--c-ink-40); text-decoration: line-through; }

/* ---------- 1. Shell（画面の骨格） ---------- */
.shell { position: relative; width: 100%; height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; background: var(--c-bg); overflow: hidden; container: shell / inline-size; }
.shell--frame { height: auto; }
.safe-top { height: var(--safe-top); background: var(--c-surface); flex: none; }
.safe-bottom { height: var(--safe-bottom); background: var(--c-surface); flex: none; }
.shell__main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.shell__main::-webkit-scrollbar { width: 0; height: 0; }

/* ローカルデモ表示（開発初版では常時表示） */
.demo-bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px var(--page-x); background: #0B1F36; color: rgba(255,255,255,.85); font-size: var(--fs-11); line-height: 1.4; text-align: center; }
.demo-bar__long { display: none; }
@container shell (min-width: 600px) { .demo-bar__long { display: inline; } .demo-bar__short { display: none; } }
body.is-frame { display: flex; justify-content: center; align-items: flex-start; }
.demo-bar b { font-family: var(--f-num); font-weight: 800; letter-spacing: .12em; color: #8FE0C2; }

/* ---------- 2. Top bar ---------- */
.topbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 var(--page-x); background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-navy-700); }
.brand:hover { color: var(--c-navy-700); }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--c-border); }
.brand__name { font-size: var(--fs-16); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.topnav { display: none; gap: 6px; }
.topnav__item { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: var(--r-md); font-size: var(--fs-14); font-weight: 600; color: var(--c-ink-60); }
.topnav__item:hover { background: var(--c-surface-2); color: var(--c-navy-700); }
.topnav__item.is-active { background: var(--c-navy-100); color: var(--c-navy-700); }
.topbar__right { display: flex; align-items: center; gap: 8px; }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-lg); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-navy-700); }
.iconbtn:hover { background: var(--c-bg); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn__dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-green-500); border: 2px solid var(--c-surface); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-navy-100); color: var(--c-navy-700); font-size: var(--fs-13); font-weight: 700; border: 1px solid transparent; }
.avatar:hover { border-color: var(--c-border-strong); }
.avatar svg { width: 18px; height: 18px; }
.userchip { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-surface); font-size: var(--fs-13); color: var(--c-ink-60); }
.userchip:hover { background: var(--c-bg); }
.userchip .avatar { width: 30px; height: 30px; font-size: var(--fs-12); }
.menu { position: absolute; top: calc(var(--safe-top) + 26px + 56px + 6px); right: var(--page-x); z-index: 40; min-width: 220px; padding: 6px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; box-shadow: 0 12px 32px -12px rgba(15,45,78,.35); }
.menu__head { padding: 10px 12px 8px; border-bottom: 1px solid var(--c-divider); margin-bottom: 4px; }
.menu__name { font-size: var(--fs-14); font-weight: 700; color: var(--c-ink); }
.menu__sub { font-size: var(--fs-11); color: var(--c-ink-40); }
.menu__item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); font-size: var(--fs-14); color: var(--c-ink); text-align: left; }
.menu__item:hover { background: var(--c-surface-2); }
.menu__item--muted { color: var(--c-ink-60); }

/* ---------- 3. Tab bar（モバイル） ---------- */
.tabbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; padding: 6px 8px 8px; background: var(--c-surface); border-top: 1px solid var(--c-border); }
.tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: var(--r-md); color: #9AA5B4; font-size: 10.5px; font-weight: 600; }
.tabbar__item svg { width: 24px; height: 24px; }
.tabbar__item:hover { color: var(--c-navy-700); }
.tabbar__item.is-active { color: var(--c-navy-700); }

/* 固定CTA（案件詳細・モバイル） */
.ctabar { flex: none; display: flex; align-items: center; gap: 14px; padding: 12px var(--page-x); background: var(--c-surface); border-top: 1px solid var(--c-border); }
.ctabar__pts { display: flex; flex-direction: column; gap: 3px; flex: none; }
.ctabar__pts .amt { font-size: 20px; }
.ctabar__note { font-size: var(--fs-11); color: var(--c-ink-40); }
.ctabar .btn { flex: 1; }

/* ---------- 4. Page / Section ---------- */
.page { max-width: var(--content-max); margin: 0 auto; padding: 16px var(--page-x) 28px; display: flex; flex-direction: column; gap: 18px; }
.page--auth { max-width: 440px; min-height: 100%; padding-top: 24px; justify-content: center; }
.page__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page__title { font-size: var(--fs-20); font-weight: 700; color: var(--c-navy-700); letter-spacing: -0.01em; }
.page__lead { font-size: var(--fs-13); color: var(--c-ink-60); }
.greet { display: flex; flex-direction: column; gap: 2px; }
.greet__date { font-size: var(--fs-12); color: var(--c-ink-40); }
.greet__name { font-size: var(--fs-18); font-weight: 700; color: var(--c-navy-700); }
.section { display: flex; flex-direction: column; gap: 10px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px; }
.section__title { font-size: var(--fs-13); font-weight: 600; color: var(--c-ink-60); letter-spacing: .04em; }
.section__title--lg { font-size: var(--fs-15); color: var(--c-navy-700); letter-spacing: 0; }
.section__link { font-size: var(--fs-12); font-weight: 600; color: var(--c-green-500); white-space: nowrap; }
.section__link:hover { color: var(--c-green-600); }
.fineprint { font-size: var(--fs-11); color: var(--c-ink-40); line-height: var(--lh-body); text-align: center; padding: 4px 4px 0; }
.back { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 10px 0 4px; margin-left: -6px; border-radius: var(--r-lg); font-size: var(--fs-14); font-weight: 600; color: var(--c-navy-700); }
.back:hover { background: var(--c-surface-2); color: var(--c-navy-700); }
.back svg { width: 22px; height: 22px; }

/* 2カラム（PC） */
.layout { display: flex; flex-direction: column; gap: 18px; }
.layout__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.layout__aside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.layout__aside--desktop { display: none; }

/* ---------- 5. Card ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xl); }
.card--pad { padding: 16px; }
.card--warn { border-color: var(--c-st-attention-line); }
.card--danger { background: var(--c-st-rejected-tint); border-color: var(--c-st-rejected-line); }
.card--navy { background: var(--c-navy-700); color: #fff; border-color: transparent; box-shadow: var(--sh-navy); }
.card--dashed { border-style: dashed; border-color: var(--c-border-strong); }
.card__title { font-size: var(--fs-14); font-weight: 700; color: var(--c-navy-700); }
.card__title--danger { color: var(--c-st-rejected-fg); }
.card__hint { font-size: var(--fs-12); font-weight: 500; color: var(--c-ink-40); margin-left: 8px; }
.card__title--danger .card__hint { color: #B77A75; }
.list { display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--c-divider); }
.divider { height: 1px; background: var(--c-divider); }

/* ---------- 6. Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h-btn); padding: 0 18px; border-radius: var(--r-lg); font-size: var(--fs-16); font-weight: 600; line-height: 1; white-space: nowrap; transition: background .15s ease, color .15s ease, transform .05s ease; }
.btn:active { transform: scale(.99); }
.btn--primary { background: var(--c-navy-700); color: #fff; }
.btn--primary:hover { background: var(--c-navy-600); color: #fff; }
.btn--secondary { background: var(--c-surface); color: var(--c-navy-700); border: 1px solid var(--c-border-strong); height: 48px; font-size: var(--fs-15); }
.btn--secondary:hover { background: var(--c-bg); color: var(--c-navy-700); }
.btn--ghost { background: none; color: var(--c-ink-60); height: 44px; font-size: var(--fs-14); }
.btn--ghost:hover { color: var(--c-navy-700); }
.btn--sm { height: var(--h-btn-sm); padding: 0 14px; font-size: var(--fs-13); border-radius: var(--r-md); }
.btn--xs { height: var(--h-btn-xs); padding: 0 12px; font-size: var(--fs-12); border-radius: 8px; }
.btn--block { width: 100%; }
.btn--onnavy { background: #fff; color: var(--c-navy-700); }
.btn--onnavy:hover { background: var(--c-navy-100); color: var(--c-navy-700); }
.btn[disabled], .btn.is-disabled { background: var(--c-border-strong); color: #fff; cursor: not-allowed; }
.linkbtn { font-size: var(--fs-12); font-weight: 600; color: var(--c-green-500); }
.linkbtn:hover { color: var(--c-green-600); }

/* セグメント */
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-md); background: var(--c-border); }
.seg__item { height: 30px; padding: 0 12px; border-radius: 8px; font-size: var(--fs-12); font-weight: 600; color: var(--c-ink-60); display: inline-flex; align-items: center; }
.seg__item.is-active { background: var(--c-surface); color: var(--c-navy-700); box-shadow: var(--sh-seg); }

/* タブ（等幅3つ） */
.tabs3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tabs3__item { height: 40px; border-radius: var(--r-md); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-ink-60); font-size: var(--fs-13); font-weight: 600; }
.tabs3__item.is-active { background: var(--c-navy-700); border-color: var(--c-navy-700); color: #fff; }

/* ---------- 7. Chips / Tags / Badges ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; flex: none; min-height: 32px; padding: 0 var(--page-x); margin: 0 calc(-1 * var(--page-x)); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex: none; height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-ink-60); font-size: var(--fs-12); font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: var(--c-border-strong); }
.chip.is-active { background: var(--c-navy-700); border-color: var(--c-navy-700); color: #fff; }
.chip--soft.is-active { background: var(--c-navy-100); border-color: #B9C4D2; color: var(--c-navy-700); }
.toggle { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-ink-60); font-size: var(--fs-12); font-weight: 600; white-space: nowrap; }
.toggle__box { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; }
.toggle.is-on { background: var(--c-green-100); border-color: #8FE0C2; color: var(--c-green-600); }

.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-sm); background: var(--c-surface-2); color: var(--c-ink-60); font-size: var(--fs-11); white-space: nowrap; }
.tag--cost { background: var(--c-st-attention-bg); color: var(--c-st-attention-fg); }
.tag--ad { height: 16px; padding: 0 4px; border-radius: 4px; border: 1px solid #D9DFE7; background: transparent; color: var(--c-ink-40); font-size: 10px; line-height: 1; }
.tag--demo { background: var(--c-green-100); color: var(--c-green-600); font-weight: 600; }
.meta-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--c-surface-2); color: var(--c-ink-60); font-size: var(--fs-12); font-weight: 600; white-space: nowrap; }
.meta-chip--free { background: var(--c-green-100); color: var(--c-green-600); }
.meta-chip--cost { background: var(--c-st-attention-bg); color: var(--c-st-attention-fg); }

.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: var(--r-pill); font-size: var(--fs-11); font-weight: 600; white-space: nowrap; }
.badge--pending { background: var(--c-st-pending-bg); color: var(--c-st-pending-fg); }
.badge--approved { background: var(--c-st-approved-bg); color: var(--c-st-approved-fg); }
.badge--rejected { background: var(--c-st-rejected-bg); color: var(--c-st-rejected-fg); }
.badge--attention { background: var(--c-st-attention-bg); color: var(--c-st-attention-fg); }
.badge--payable { background: var(--c-st-payable-bg); color: var(--c-st-payable-fg); }
.badge--paid { background: var(--c-st-paid-bg); color: var(--c-st-paid-fg); }
.badge--select { background: var(--c-navy-700); color: #fff; }

/* ---------- 8. Points panel（ポイントの状況） ---------- */
.points { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.points__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.points__title { font-size: var(--fs-13); font-weight: 600; color: var(--c-ink-60); letter-spacing: .04em; }
.points__asof { font-size: var(--fs-11); color: var(--c-ink-40); }
.points__grid { display: flex; flex-direction: column; gap: 12px; }
.points__main { display: flex; flex-direction: column; gap: 6px; }
.points__side { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--c-divider); }
.points__label { font-size: var(--fs-12); font-weight: 600; color: var(--c-ink); }
.points__label .hint { font-weight: 500; color: var(--c-ink-40); margin-left: 6px; }
.points__value { display: flex; align-items: baseline; gap: 8px; }
.points__sub { display: flex; align-items: center; gap: 8px; padding-left: 4px; }
.points__elbow { width: 12px; height: 12px; border-left: 2px solid var(--c-border-strong); border-bottom: 2px solid var(--c-border-strong); border-radius: 0 0 0 4px; margin: -10px 0 0 4px; flex: none; }
.points__sublabel { font-size: var(--fs-12); color: var(--c-ink-60); }
.points__note { font-size: var(--fs-11); color: var(--c-ink-40); line-height: 1.5; }
.points__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--c-divider); }
.points__foot .fine { font-size: var(--fs-11); color: var(--c-ink-40); }
.points--zero .amt { color: var(--c-ink-60); }

/* ---------- 9. Offer card（案件） ---------- */
.offer { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xl); color: inherit; transition: border-color .15s ease; }
.offer:hover { border-color: #B9C4D2; color: inherit; }
.offer__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-surface-2); color: var(--c-ink-60); }
.offer__icon svg { width: 22px; height: 22px; }
.offer__icon--card, .offer__icon--sub { background: var(--c-navy-100); color: var(--c-navy-700); }
.offer__icon--bank, .offer__icon--survey { background: var(--c-green-100); color: var(--c-green-600); }
.offer__icon--lg { width: 56px; height: 56px; border-radius: 16px; }
.offer__icon--lg svg { width: 28px; height: 28px; }
.offer__icon--sm { width: 36px; height: 36px; border-radius: 10px; }
.offer__icon--sm svg { width: 18px; height: 18px; }
.offer__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.offer__meta { display: flex; align-items: center; gap: 6px; font-size: var(--fs-11); color: var(--c-ink-40); min-width: 0; }
.offer__meta > * { flex: none; }
.offer__meta .ellip { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer__title { font-size: var(--fs-15); font-weight: 600; line-height: var(--lh-tight); color: var(--c-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer__action { font-size: var(--fs-12); color: var(--c-ink-60); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer__action b { font-weight: 600; color: var(--c-ink-60); }
.offer__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.offer__pts { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.offer__days { font-size: var(--fs-11); color: var(--c-ink-40); white-space: nowrap; }
/* 1行のコンパクト行（新着など） */
.offer--row { align-items: center; padding: 12px 16px; border: 0; border-radius: 0; }
.offer--row .offer__body { gap: 2px; }
.offer--row .offer__title { font-size: var(--fs-14); -webkit-line-clamp: 1; }
.offer--row .offer__sub { font-size: var(--fs-11); color: var(--c-ink-40); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer--row .amt { font-size: var(--fs-amt-sm); }
.offer--row:hover { background: #F8FAFC; }
.offers { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 10. Set card（おすすめ案件セット） ---------- */
.set { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; }
.set__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.set__name { font-size: var(--fs-16); font-weight: 700; color: var(--c-navy-700); line-height: var(--lh-tight); }
.set__lead { font-size: var(--fs-13); color: var(--c-ink-60); line-height: var(--lh-body); }
.set__stats { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--c-bg); }
.set__stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.set__statlabel { font-size: var(--fs-11); color: var(--c-ink-60); }
.set__statnote { font-size: var(--fs-11); color: var(--c-ink-40); line-height: 1.5; }
.set__offers { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-12); color: var(--c-ink-60); }
.set__offers a { color: var(--c-navy-700); font-weight: 600; }
.set__conds { display: flex; flex-direction: column; gap: 6px; }
.set__cond { display: flex; gap: 8px; font-size: var(--fs-12); color: var(--c-ink); line-height: 1.55; }
.set__cond::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--c-ink-40); margin-top: 7px; }
.set__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.set__disclaimer { font-size: var(--fs-11); color: var(--c-ink-40); line-height: 1.5; flex: 1 1 200px; }

/* ---------- 11. Attention（対応が必要なこと） ---------- */
.attn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; }
.attn:hover { background: #FFFBF2; color: inherit; }
.attn__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.attn__title { font-size: var(--fs-14); font-weight: 600; color: var(--c-ink); }
.attn__sub { font-size: var(--fs-12); color: var(--c-ink-60); line-height: 1.5; }
.attn__arrow { color: var(--c-ink-40); flex: none; }
.progress { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: inherit; }
.progress:hover { background: #F8FAFC; color: inherit; }
.progress__label { flex: 1; font-size: var(--fs-13); color: var(--c-ink); }
.progress__count { font-size: var(--fs-13); color: var(--c-ink-60); }

/* ---------- 12. Ledger（通帳） ---------- */
.ledger { display: flex; flex-direction: column; gap: 8px; }
.ledger__month { font-size: var(--fs-12); font-weight: 600; color: var(--c-ink-40); padding: 0 2px; }
.ledger__row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 16px; color: inherit; }
.ledger__row:hover { background: #F8FAFC; color: inherit; }
.ledger__date { font-family: var(--f-num); font-weight: 600; font-size: var(--fs-12); color: var(--c-ink-40); }
.ledger__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ledger__title { font-size: var(--fs-14); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger__sub { font-size: var(--fs-11); color: var(--c-ink-40); }
.ledger__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ledger__status { display: none; }
.ledger__head { display: none; }
.ledger__row--open { grid-template-columns: 1fr; }
.ledger__detail { grid-column: 1 / -1; padding: 12px 14px; border-radius: 10px; background: var(--c-st-attention-bg); color: var(--c-st-attention-fg); font-size: var(--fs-12); line-height: 1.6; }

/* 凡例 */
.legend { display: flex; flex-direction: column; padding: 4px 16px; }
.legend__row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.legend__row + .legend__row { border-top: 1px solid var(--c-divider); }
.legend__row .badge { width: 68px; justify-content: center; flex: none; }
.legend__desc { font-size: var(--fs-12); color: var(--c-ink-60); line-height: 1.5; }

/* ステッパー（明細） */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 6px; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step::before, .step::after { content: ''; position: absolute; top: 5px; height: 2px; background: var(--c-border); }
.step::before { left: 0; right: 50%; }
.step::after { left: 50%; right: 0; }
.step:first-child::before, .step:last-child::after { display: none; }
.step.is-done::before, .step.is-done::after { background: var(--c-navy-700); }
.step.is-done + .step::before { background: var(--c-navy-700); }
.step__dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-border); }
.step.is-done .step__dot { background: var(--c-navy-700); border-color: var(--c-navy-700); }
.step__label { font-size: 10.5px; font-weight: 600; color: var(--c-ink-40); }
.step.is-done .step__label { color: var(--c-ink); }

/* 行（明細内訳・費用負担） */
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--c-divider); font-size: var(--fs-13); }
.kv__k { color: var(--c-ink-60); flex: none; }
.kv__v { color: var(--c-ink); font-weight: 600; text-align: right; }
.kv--total { border-top: 1px solid var(--c-border); font-size: var(--fs-14); }
.kv--total .kv__k { color: var(--c-navy-700); font-weight: 700; }

/* ---------- 13. Detail blocks ---------- */
.detail__head { display: flex; gap: 14px; align-items: flex-start; }
.detail__title { font-size: 19px; font-weight: 700; line-height: var(--lh-tight); color: var(--c-ink); overflow-wrap: anywhere; }
.detail__adv { font-size: var(--fs-12); color: var(--c-ink-40); overflow-wrap: anywhere; }
.steps { display: flex; flex-direction: column; gap: 10px; }
.steps__item { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-14); line-height: var(--lh-body); }
.steps__n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c-navy-700); color: #fff; font-family: var(--f-num); font-weight: 700; font-size: var(--fs-12); display: inline-flex; align-items: center; justify-content: center; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks__item { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-14); line-height: var(--lh-body); }
.checks__mark { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.checks__mark--ok { background: var(--c-green-100); color: var(--c-green-600); }
.checks__mark--ng { background: var(--c-st-rejected-bg); color: var(--c-st-rejected-fg); }
.checks__mark--dot { width: 5px; height: 5px; margin: 9px 8px 0 7px; background: var(--c-ink-40); }
.pointsbox { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.pointsbox__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pointsbox__label { font-size: var(--fs-12); font-weight: 600; color: var(--c-ink-60); margin-bottom: 4px; }
.pointsbox__unitnote { font-size: var(--fs-12); color: var(--c-ink-40); padding-bottom: 4px; white-space: nowrap; }
.pointsbox__cond { font-size: var(--fs-12); color: var(--c-ink-60); line-height: 1.5; }
.metas { display: flex; flex-wrap: wrap; gap: 6px; }
.flow { display: flex; flex-direction: column; }
.flow__item { display: flex; gap: 14px; }
.flow__rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.flow__n { width: 26px; height: 26px; border-radius: 50%; background: var(--c-navy-100); color: var(--c-navy-700); font-family: var(--f-num); font-weight: 700; font-size: var(--fs-12); display: inline-flex; align-items: center; justify-content: center; }
.flow__n--now { background: var(--c-navy-700); color: #fff; }
.flow__line { width: 2px; flex: 1; min-height: 22px; background: var(--c-border); }
.flow__body { padding-bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.flow__title { font-size: var(--fs-14); font-weight: 600; }
.flow__sub { font-size: var(--fs-12); color: var(--c-ink-60); line-height: var(--lh-body); }

/* ---------- 14. Sheet / Modal ---------- */
.sheet__backdrop { position: absolute; inset: 0; z-index: 50; background: rgba(15,45,78,.45); animation: fade .2s ease; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 51; display: flex; flex-direction: column; gap: 16px; padding: 14px var(--page-x) calc(24px + var(--safe-bottom)); background: var(--c-surface); border-radius: 24px 24px 0 0; animation: up .28s cubic-bezier(.2,.8,.2,1); }
.sheet__handle { width: 36px; height: 4px; border-radius: 2px; background: var(--c-border); align-self: center; }
.sheet__title { font-size: var(--fs-18); font-weight: 700; color: var(--c-navy-700); }
.sheet__lead { font-size: var(--fs-13); color: var(--c-ink-60); line-height: var(--lh-body); }
.checkrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--c-border); background: var(--c-surface); text-align: left; font-size: var(--fs-14); line-height: 1.5; }
.checkrow:hover { background: #F8FAFC; }
.checkrow__box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--c-border-strong); background: var(--c-surface); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.checkrow.is-on .checkrow__box { background: var(--c-navy-700); border-color: var(--c-navy-700); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 15. Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--fs-12); font-weight: 600; color: var(--c-ink-60); }
.field__help { font-size: var(--fs-12); color: var(--c-ink-40); }
.field__error { font-size: var(--fs-12); color: var(--c-st-rejected-fg); }
.input { height: var(--h-input); width: 100%; padding: 0 14px; border: 1px solid var(--c-border-strong); border-radius: var(--r-lg); background: var(--c-surface); font-size: var(--fs-16); color: var(--c-ink); outline: none; }
.input:focus { border-color: var(--c-navy-700); box-shadow: var(--focus-ring); }
.input--code { height: 60px; font-family: var(--f-num); font-weight: 700; font-size: 22px; letter-spacing: .08em; color: var(--c-navy-700); text-transform: uppercase; }
.input.is-error { border-color: #C9574D; }
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border-strong); }
.search svg { width: 18px; height: 18px; color: var(--c-ink-40); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: var(--fs-14); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-13); color: var(--c-ink-60); line-height: var(--lh-body); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-navy-700); flex: none; }
.callout { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--c-bg); font-size: var(--fs-12); color: var(--c-ink-60); line-height: var(--lh-body); }
.callout__i { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c-navy-100); color: var(--c-navy-700); font-weight: 700; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.stepno { font-size: var(--fs-11); font-weight: 600; color: var(--c-green-500); letter-spacing: .08em; }
.auth-title { font-size: var(--fs-22); font-weight: 700; color: var(--c-navy-700); line-height: var(--lh-tight); }
.auth-lead { font-size: var(--fs-14); color: var(--c-ink-60); line-height: var(--lh-loose); }

/* ---------- 16. Empty / Error / Loading ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 20px; text-align: center; }
.empty__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-ink-40); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.empty__title { font-size: var(--fs-14); font-weight: 600; }
.empty__text { font-size: var(--fs-12); color: var(--c-ink-60); line-height: var(--lh-body); max-width: 320px; }
.skeleton { border-radius: 6px; background: linear-gradient(90deg, #F0F2F5 25%, #F8F9FB 50%, #F0F2F5 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- 17. FAQ / Notices / Help ---------- */
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; font-size: var(--fs-14); font-weight: 600; line-height: 1.5; }
.faq__q:hover { background: #F8FAFC; }
.faq__mark { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-navy-700); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.faq__a { padding: 0 16px 16px; font-size: var(--fs-13); color: var(--c-ink-60); line-height: var(--lh-loose); animation: fade .2s ease; }
.helpgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.helpgrid__item { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 14px; text-align: left; color: inherit; }
.helpgrid__item:hover { border-color: #B9C4D2; color: inherit; }
.helpgrid__t { font-size: var(--fs-14); font-weight: 600; color: var(--c-navy-700); }
.helpgrid__s { font-size: var(--fs-11); color: var(--c-ink-40); }
.notice { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.notice__meta { display: flex; gap: 8px; align-items: center; font-size: var(--fs-11); color: var(--c-ink-40); }
.notice__title { font-size: var(--fs-14); font-weight: 600; line-height: 1.5; }
.notice__body { font-size: var(--fs-12); color: var(--c-ink-60); line-height: var(--lh-body); }
.notice--row { flex-direction: row; gap: 12px; align-items: flex-start; padding: 12px 16px; }
.notice--row .notice__date { flex: none; width: 40px; font-size: var(--fs-11); color: var(--c-ink-40); padding-top: 2px; font-family: var(--f-num); font-weight: 600; }
.notice--row .notice__title { font-size: var(--fs-13); font-weight: 500; }
.footerinfo { font-size: var(--fs-12); color: var(--c-ink-40); line-height: 1.8; display: flex; flex-direction: column; gap: 2px; }

/* ---------- 18. Responsive ---------- */
.only-desktop { display: none; }
@container shell (min-width: 900px) {
  .only-mobile { display: none !important; }
  .only-desktop { display: block; }
}
/* 狭い端末（375px 以下） */
@container shell (max-width: 399px) {
  .shell > * { --page-x: 16px; } /* ※ コンテナ自身には効かないため直下の要素に設定 */
  .amt--xl { font-size: 28px; }
  .amt--lg { font-size: 22px; }
  .offer { padding: 12px 14px; gap: 10px; }
  .offer__icon { width: 40px; height: 40px; }
  .offer__title { font-size: var(--fs-14); }
  .tabs3__item { font-size: var(--fs-12); }
  .ctabar { gap: 10px; }
}
/* 中間（600px 以上）: ポイント欄を横並び */
@container shell (min-width: 600px) {
  .points__grid { flex-direction: row; gap: 0; }
  .points__main { flex: 1.2; padding-right: 20px; }
  .points__side { flex: 1; padding-top: 0; padding-left: 20px; border-top: 0; border-left: 1px solid var(--c-divider); }
  .set { flex-direction: row; flex-wrap: wrap; }
  .set__head, .set__lead, .set__foot { flex: 1 1 100%; }
  .set__stats { flex: 1 1 260px; }
  .set__conds { flex: 1 1 260px; }
}
/* PC（900px 以上）: 上部ナビ・2カラム */
@container shell (min-width: 900px) {
  .shell > * { --page-x: 40px; }
  .topbar { height: var(--h-topbar); }
  .topnav { display: flex; margin-left: 24px; }
  .topbar__right .iconbtn--bell { display: inline-flex; }
  .userchip { display: inline-flex; }
  .avatar--solo { display: none; }
  .menu { top: calc(var(--safe-top) + 26px + var(--h-topbar) + 6px); }
  .tabbar { display: none; }
  .ctabar { display: none; }
  .page { padding: 32px var(--page-x) 48px; gap: 24px; }
  .page__title { font-size: var(--fs-22); }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
  .layout__aside--desktop { display: flex; }
  .layout--sidebar { grid-template-columns: 240px minmax(0, 1fr); }
  .layout--sidebar .layout__aside { order: -1; position: sticky; top: 0; }
  .layout--detail { grid-template-columns: minmax(0, 1fr) 340px; }
  .layout--detail .layout__aside { position: sticky; top: 0; }
  /* 右カラム内のポイント欄は縦積みに戻す */
  .layout__aside .points__grid { flex-direction: column; gap: 12px; }
  .layout__aside .points__main { padding-right: 0; }
  .layout__aside .points__side { padding-left: 0; padding-top: 12px; border-left: 0; border-top: 1px solid var(--c-divider); }
  .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .section__title { font-size: var(--fs-14); }
  .ledger__row { grid-template-columns: 96px minmax(0, 1fr) 110px 130px; padding: 13px 20px; }
  .ledger__right { flex-direction: row; align-items: center; justify-content: flex-end; }
  .ledger__right .badge { display: none; }
  .ledger__status { display: block; }
  .ledger__head { display: grid; grid-template-columns: 96px minmax(0, 1fr) 110px 130px; gap: 12px; padding: 10px 20px; font-size: var(--fs-11); font-weight: 600; color: var(--c-ink-40); letter-spacing: .04em; }
  .ledger__head span:last-child { text-align: right; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 480px; transform: translate(-50%, -50%); border-radius: 16px; padding: 22px 24px 24px; animation: fade .2s ease; }
  .sheet__handle { display: none; }
  .helpgrid { grid-template-columns: repeat(4, 1fr); }
  .detail__title { font-size: var(--fs-22); }
  .set__stats { grid-template-columns: auto 1fr; }
}
/* 大画面（1280px 以上） */
@container shell (min-width: 1280px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .offers--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .offers--grid .offer { padding: 18px; }
  .offers--grid .offer__icon { width: 48px; height: 48px; border-radius: 14px; }
  .offers--grid .amt { font-size: 20px; }
}
/* 1440px 以上: コンテンツ幅を広げる */
@container shell (min-width: 1440px) {
  .shell > * { --content-max: 1280px; }
  .layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  .layout--sidebar { grid-template-columns: 260px minmax(0, 1fr); }
}

/* ---------- 19. Server-rendered member integration ---------- */
/* This file is loaded by memberPage only. Administration keeps its original CSS. */
body.member { overflow: hidden; }
.member .shell { height: 100vh; height: 100dvh; }
.member [hidden] { display: none !important; }
.topbar__left { display: flex; align-items: center; min-width: 0; }
.topbar { position: relative; z-index: 30; }
.member-account { position: relative; flex: none; }
.member-account__trigger { display: flex; align-items: center; list-style: none; cursor: pointer; }
.member-account__trigger::-webkit-details-marker { display: none; }
.member-account .menu { top: calc(100% + 8px); right: 0; max-width: min(320px, calc(100vw - 32px)); }
.member-account .menu__name { overflow-wrap: anywhere; }
.member-account .menu__head { margin-bottom: 4px; }
.member-logout { margin: 0; }
.userchip__name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-skip { position: absolute; z-index: 100; top: 4px; left: 8px; padding: 10px 16px; border-radius: var(--r-md); color: #fff; background: #0f2d4e; transform: translateY(-150%); }
.member-skip:focus { transform: translateY(0); color: #fff; }
.member-footer { max-width: var(--content-max); margin: 0 auto; padding: 4px var(--page-x) 24px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-11); color: var(--c-ink-40); }
.member-footer a { color: var(--c-ink-60); }
.member-auth-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 4px; }
.member-auth-brand img { width: 76px; height: 76px; border: 1px solid var(--c-border); border-radius: 22px; }
.member-auth-brand p { color: var(--c-navy-700); font-size: var(--fs-22); font-weight: 700; }
.member-stack { display: flex; flex-direction: column; gap: 12px; }
.member-stack--sm { gap: 8px; }
/* The home summary keeps the balances distinct without repeating the passbook guide. */
.page--home { gap: 14px; }
.page--home .layout__main { gap: 14px; }
.points--home { gap: 8px; padding: 12px 14px; }
.points--home .points__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }
.points--home .points__main { gap: 6px; padding: 0; min-width: 0; }
.points--home .points__side { gap: 6px; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid var(--c-divider); min-width: 0; }
.points--home .points__label { font-size: var(--fs-11); }
.points--home .points__label .hint { margin-left: 4px; font-size: 10px; }
.points--home .points__sub { gap: 5px; padding: 0; flex-wrap: wrap; }
.points--home .points__elbow { width: 8px; height: 8px; margin-left: 0; }
.points--home .points__sublabel { font-size: var(--fs-11); }
.points--home .points__foot { padding-top: 8px; }
.points--home .points__foot .linkbtn { font-size: var(--fs-11); }
.points__zero-note { font-size: var(--fs-11); color: var(--c-ink-60); }
.points__zero-note summary { cursor: pointer; }
.points__zero-note[open] .points__note { margin-top: 6px; }
.set--home { flex-direction: column; flex-wrap: nowrap; gap: 10px; padding: 14px; }
.set--home .set__head { flex: none; }
.set__summary { display: flex; flex-direction: column; gap: 8px; }
.set--home .set__stats { flex: none; gap: 10px 14px; padding: 10px 12px; }
.set--home .set__details :is(.set__lead, .set__conds) { flex: none; }
.set__details { width: 100%; font-size: var(--fs-12); color: var(--c-ink-60); }
.set__details > summary { cursor: pointer; }
/* A GET link selects a server condition; every action points at its one native form. */
.course-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.course-picker__item { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--c-border-strong); border-radius: var(--r-lg); background: var(--c-surface); min-width: 0; color: var(--c-ink); }
.course-picker__item:hover { border-color: var(--c-navy-700); color: var(--c-ink); }
.course-picker__item.is-selected { border: 2px solid var(--c-navy-700); padding: 11px; background: var(--c-navy-100); }
.course-picker__state { font-size: var(--fs-11); color: var(--c-ink-60); }
.course-picker__item.is-selected .course-picker__state { color: var(--c-navy-700); font-weight: 700; }
.course-picker__label { flex: 1; font-size: var(--fs-13); font-weight: 600; overflow-wrap: anywhere; }
.detail__maximum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: var(--fs-11); color: var(--c-ink-60); }
.ctabar--selected .ctabar__pts { flex: 0 1 48%; min-width: 0; }
.ctabar--selected .ctabar__note { overflow-wrap: anywhere; }
.ctabar--selected .btn { min-width: 0; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* A search input has an intrinsic 20-character width. As a flex item the label
   must be allowed to shrink alongside the submit button on narrow screens. */
form.member-row > .search { flex: 1 1 0; min-width: 0; }
form.member-row > .btn { flex: none; }
.member-wrap { flex-wrap: wrap; }
.member-start { align-self: flex-start; }
.member-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.member-section-gap { margin-top: 12px; }
.member-form { display: flex; flex-direction: column; gap: 12px; }
a.chip, a.tabs3__item { display: inline-flex; align-items: center; justify-content: center; }
.member-details > summary { cursor: pointer; list-style: none; }
.member-details > summary::-webkit-details-marker { display: none; }
.member-details .ledger__detail { margin: 0 16px 14px; }
.kv__v { overflow-wrap: anywhere; min-width: 0; }
.offer__days { max-width: 150px; white-space: normal; overflow-wrap: anywhere; }
.offer__tags .tag { max-width: 100%; height: auto; min-height: 20px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.member-form textarea.input { min-height: 112px; height: auto; padding: 12px 14px; resize: vertical; }
.member-form select.input { font-family: inherit; }
.submit-status { color: var(--c-ink-60); font-size: var(--fs-12); line-height: var(--lh-body); }
.submit-status:empty { display: none; }
.member button:disabled { cursor: wait; }

/* Compatibility for existing authenticated forms, inquiry threads and legal drafts.
   New priority-page components keep the supplied design classes above. */
.member-legacy { overflow-wrap: anywhere; }
.member-legacy .panel { padding: 20px; border: 1px solid var(--c-border); border-radius: var(--r-xl); background: var(--c-surface); }
.member-legacy .auth-panel { width: 100%; max-width: 450px; margin: 0 auto; }
.member-legacy h2 { margin: 0 0 14px; color: var(--c-navy-700); font-size: var(--fs-18); line-height: 1.5; }
.member-legacy h3 { margin: 0 0 10px; color: var(--c-navy-700); font-size: var(--fs-15); }
.member-legacy p { margin: 0 0 12px; }
.member-legacy p:last-child { margin-bottom: 0; }
.member-legacy .muted, .member-legacy small { color: var(--c-ink-60); }
.member-legacy form { display: grid; gap: 14px; }
.member-legacy label { display: grid; gap: 6px; color: var(--c-ink-60); font-size: var(--fs-12); font-weight: 600; }
.member-legacy :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea),
.member-form :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea) { width: 100%; min-width: 0; min-height: var(--h-input); padding: 12px 14px; border: 1px solid var(--c-border-strong); border-radius: var(--r-lg); background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: var(--fs-16); }
.member-legacy textarea { resize: vertical; }
.member-legacy :is(input, select, textarea):focus-visible { outline: 2px solid var(--c-navy-700); outline-offset: 2px; }
.member-legacy input:is([type=checkbox],[type=radio]) { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--c-navy-700); }
.member-legacy label.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-13); }
.member-legacy button:not(.btn):not(.iconbtn), .member-legacy .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 1px solid var(--c-navy-700); border-radius: var(--r-lg); color: #fff; background: var(--c-navy-700); font: inherit; font-size: var(--fs-14); font-weight: 600; text-align: center; cursor: pointer; }
.member-legacy button:not(.btn):not(.iconbtn):hover, .member-legacy .button:hover { background: var(--c-navy-600); color: #fff; }
.member-legacy .button.secondary, .member-legacy button.secondary { border-color: var(--c-border-strong); background: var(--c-surface); color: var(--c-navy-700); }
.member-legacy button:disabled { opacity: .6; cursor: wait; }
.member-legacy .inline { display: inline-flex; align-items: center; gap: 8px; }
.member-legacy .actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.member-legacy .note { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--c-border); border-left: 3px solid var(--c-green-500); border-radius: var(--r-md); background: var(--c-green-100); color: var(--c-ink); font-size: var(--fs-13); }
.member-legacy .error { padding: 14px 16px; border: 1px solid var(--c-st-rejected-line); border-radius: var(--r-lg); background: var(--c-st-rejected-tint); color: var(--c-st-rejected-fg); }
.member-legacy .empty { padding: 28px 16px; background: var(--c-surface); border: 1px dashed var(--c-border-strong); border-radius: var(--r-xl); text-align: center; color: var(--c-ink-60); }
.member-legacy .tag.accent { color: var(--c-green-600); background: var(--c-green-100); }
.member-legacy .prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.member-legacy .two, .member-legacy .form-grid, .member-legacy .grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
.member-legacy .wide { grid-column: 1 / -1; }
.member-legacy .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-legacy .section-head h2 { margin: 0; }
.member-legacy .section-head a { color: var(--c-green-600); font-size: var(--fs-12); }
.member-legacy .definition { display: grid; grid-template-columns: minmax(0,100px) minmax(0,1fr); gap: 0 12px; font-size: var(--fs-13); }
.member-legacy .definition :is(dt,dd) { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.member-legacy .definition dt { color: var(--c-ink-60); }
.member-legacy .definition dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.member-legacy .timeline { border-left: 2px solid var(--c-border); margin-left: 6px; padding-left: 20px; }
.member-legacy .timeline article { position: relative; padding-bottom: 20px; }
.member-legacy .timeline article::before { content: ''; position: absolute; top: 6px; left: -26px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-green-500); border: 2px solid var(--c-green-100); }
.member-legacy .timeline p { color: var(--c-ink-60); font-size: var(--fs-12); }
.member-legacy .table-scroll { overflow: auto; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
.member-legacy table { width: 100%; border-collapse: collapse; font-size: var(--fs-12); text-align: left; }
.member-legacy th, .member-legacy td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.member-legacy th { color: var(--c-ink-60); background: var(--c-surface-2); font-weight: 600; }
.member-legacy tr:last-child td { border-bottom: 0; }
.member-legacy .cell-content { overflow-wrap: anywhere; }
.member-legacy code { font-size: var(--fs-12); overflow-wrap: anywhere; }
@container shell (min-width: 900px) {
  .member-legacy .two, .member-legacy .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-legacy .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .member-legacy .panel { padding: 24px; }
}
@container shell (max-width: 599px) {
  .offer__pts { max-width: 100px; }
  .offer__pts .offer__days { max-width: 100%; }
  .member-legacy .table-scroll { border: 0; background: transparent; overflow: visible; }
  .member-legacy :is(table,tbody,tr) { display: block; width: 100%; }
  .member-legacy table thead { display: none; }
  .member-legacy tbody tr { margin-bottom: 12px; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); overflow: hidden; }
  .member-legacy td { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 12px; }
  .member-legacy td[data-label]::before { content: attr(data-label); color: var(--c-ink-60); font-size: var(--fs-11); }
  .member-legacy td[colspan] { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .member *, .member *::before, .member *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Searchable catalog retains the member shell, typography and offer cards. */
.catalog-search { display: flex; flex-direction: column; gap: 14px; }
.catalog-search .member-row > .search { flex: 1 1 0; min-width: 0; }
.catalog-search .member-row > .btn { flex: none; min-width: 62px; }
.catalog-search__filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.catalog-search__filters > .field { min-width: 0; }
.catalog-search__filters > .field:last-child { grid-column: 1 / -1; }
.catalog-search__filters select { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.catalog-result-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-13); }
.catalog-result-count p { margin: 0; }
.catalog-result-count .section__link { flex: none; }
.catalog-offer .offer__meta { flex-wrap: wrap; }
.catalog-offer .offer__meta .ellip { max-width: 100%; }
.catalog-offer .offer__tags { margin-top: 3px; }
.catalog-unset { display: block; font-size: var(--fs-13); font-weight: 600; color: var(--c-ink-60); line-height: 1.6; overflow-wrap: anywhere; }
.catalog-offer .offer__pts { max-width: 104px; }
.catalog-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; font-size: var(--fs-13); }
.catalog-pages__numbers { grid-row: 2; grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; }
.catalog-pages__number { display: inline-flex; min-width: 36px; min-height: 40px; padding: 0 8px; align-items: center; justify-content: center; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); }
.catalog-pages__number.is-active { background: var(--c-navy-700); border-color: var(--c-navy-700); color: #fff; }
.catalog-pages__direction { display: inline-flex; min-height: 40px; align-items: center; }
.catalog-pages__direction:last-child { grid-column: 2; grid-row: 1; justify-content: flex-end; }
.catalog-pages__direction.is-disabled, .catalog-pages__gap { color: var(--c-ink-40); }
.catalog-review ul { margin: 12px 0 0; padding-left: 1.4em; font-size: var(--fs-13); color: var(--c-ink-60); }
.catalog-review li + li { margin-top: 6px; }
.page--catalog-detail .course-picker__label small { display: block; margin-top: 5px; font-size: var(--fs-11); color: var(--c-ink-60); }
.catalog-pointsbox .catalog-unset { font-size: var(--fs-18); }
.catalog-readonly { justify-content: space-between; gap: 12px; font-size: var(--fs-12); }
@container shell (min-width: 600px) {
  .catalog-search__filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .catalog-search__filters > .field:last-child { grid-column: auto; }
  .catalog-pages { display: flex; justify-content: center; gap: 20px; }
}
@container shell (max-width: 399px) {
  .catalog-offer:not(.offer--row) { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 10px; }
  .catalog-offer:not(.offer--row) .offer__icon { width: 40px; height: 40px; }
  .catalog-offer:not(.offer--row) .offer__pts { grid-column: 2; max-width: 100%; align-items: flex-start; text-align: left; }
}
