/*
 * ★★MD-DESIGN-20260925 関東警備 マイページ（★GuardLink とは別の見た目）。
 *   色: 制服の紺（主）／誘導灯のアンバー（★「まだ開いていない最新の明細」の帯 1 か所だけ）／冷たい白／文字／灰青。
 *       ★成功・同意済みだけ落ち着いた緑。★装飾のグラデーション・全部同じカード＋影は使わない。
 *   文字: BIZ UDPゴシック 1 書体（★自前で配信）。本文 17px・数字は等幅。
 *   動き: 操作への反応だけ（★押した・保存した）。★`prefers-reduced-motion` では止める。
 */
@import url("/fonts/biz-udpgothic.css");

:root {
  --navy: #1F2E4A;
  --navy-2: #2A3C5E;       /* ★紺の押下・区切り（紺の濃淡） */
  --amber: #F2A93B;        /* ★★1 か所だけ（反射帯） */
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #1A2233;
  --sub: #5B6678;
  --line: #DCE2EA;
  --line-strong: #B9C3D0;
  --ok: #2E6B4F;
  --ok-bg: #E8F2EC;
  --radius: 12px;
  --tap: 48px;
  --topbar: 48px;
  --tabbar: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "BIZ UDPGothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--navy); }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── フォーカス（★キーボードで見える） ── */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.on-navy :focus-visible, .on-navy:focus-visible { outline-color: #FFFFFF; }

/* ── ボタン（★タップ範囲 48px 以上） ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 20px;
  border-radius: 10px; border: 1.5px solid var(--navy);
  font-size: 17px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer;
  background: var(--surface); color: var(--navy);
  white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--navy); color: #FFFFFF; }
.btn--primary:active { background: var(--navy-2); }
.btn--block { width: 100%; }
.btn--quiet { border-color: transparent; background: transparent; padding-inline: 12px; }
.btn--invert { background: #FFFFFF; color: var(--navy); border-color: #FFFFFF; }
.btn--ghost-invert { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.7); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ── 上のバー（★スマートフォン） ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  min-height: calc(var(--topbar) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  display: flex; align-items: center;
  background: var(--navy); color: #FFFFFF;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
}

/* ── 下のタブ（★スマートフォン） ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(var(--tabs, 2), 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--tabbar); color: var(--sub); text-decoration: none;
  font-size: 13px; font-weight: 700;
}
.tab svg { width: 26px; height: 26px; }
.tab[aria-current="page"] { color: var(--navy); }
.tab[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px;
  background: var(--navy); border-radius: 0 0 3px 3px;
}

/* ── 骨組み ── */
.shell { min-height: 100vh; }
.sidebar { display: none; }
.main {
  padding: 20px 16px calc(var(--tabbar) + env(safe-area-inset-bottom) + 28px);
  max-width: 640px; margin: 0 auto;
}
.page-title { font-size: 24px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.page-lead { margin-top: 4px; color: var(--sub); font-size: 15px; }
.section { margin-top: 28px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--sub); margin-bottom: 8px; letter-spacing: .04em; }
.note { font-size: 15px; color: var(--sub); line-height: 1.7; }

/* ── 最新の明細（★主役） ── */
.latest {
  position: relative; overflow: hidden;
  margin-top: 16px; padding: 22px 20px 20px;
  border-radius: 16px; background: var(--navy); color: #FFFFFF;
}
.latest__label { font-size: 14px; font-weight: 700; opacity: .85; letter-spacing: .06em; }
.latest__month { margin-top: 2px; font-size: 30px; font-weight: 700; line-height: 1.35; letter-spacing: .01em; }
.latest__month .num { font-size: 36px; }
.latest__meta { margin-top: 4px; font-size: 14px; opacity: .85; }
.latest__actions { display: grid; gap: 10px; margin-top: 18px; }
.latest__actions .btn { min-height: 52px; font-size: 18px; }
/* ★★反射帯（★まだ開いていない最新の明細だけ・★アクセントはここだけ） */
.latest--unopened { padding-top: 40px; }
.latest--unopened::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #F7C77D 14px 22px);
}
.latest__new {
  position: absolute; top: 18px; right: 16px;
  font-size: 13px; font-weight: 700; color: #FFFFFF;
  display: inline-flex; align-items: center; gap: 6px;
}
.latest__new::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; }

/* ── これまでの明細（★行の一覧・★カードを並べない） ── */
.slips { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.slip { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; }
.slip__link { display: flex; flex-direction: column; justify-content: center; min-height: 60px; padding: 6px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.slip__link:hover { background: #EEF2F7; }
.slip__save { width: var(--tap); padding: 0; }
.slip__kind { display: inline-block; margin-left: 2px; padding: 0 8px; border-radius: 6px; border: 1.5px solid var(--navy); color: var(--navy); font-size: 14px; line-height: 1.6; vertical-align: 2px; }
/* ★★PC の一覧: 「まだ開いていない明細」の最新 1 件だけ、左端に反射帯（★アクセントはここと、スマホの明細の帯のどちらか一方だけが見える） */
.slip--band::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 10px, #F7C77D 10px 16px);
}
.slip:first-child.slip--band::before { border-top-left-radius: var(--radius); }
.slip:last-child.slip--band::before { border-bottom-left-radius: var(--radius); }
.slip + .slip { border-top: 1px solid var(--line); }
.slip__month { font-size: 18px; font-weight: 700; line-height: 1.5; }
.slip__meta { font-size: 14px; color: var(--sub); }
.slip__unread { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--navy); vertical-align: 2px; }
.slip__unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.slip[aria-current="true"] { background: #EEF2F7; box-shadow: inset 4px 0 0 var(--navy); }

/* ── 空の状態・お知らせ ── */
.empty { margin-top: 16px; padding: 28px 20px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: 16px; }
.empty svg { width: 44px; height: 44px; color: var(--sub); }
.empty__title { margin-top: 8px; font-size: 19px; font-weight: 700; }
.empty__text { margin-top: 4px; color: var(--sub); font-size: 15px; }
.notice { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: 15px; }

/* ── 同意の画面 ── */
.consent { margin-top: 16px; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.consent__title { font-size: 21px; font-weight: 700; line-height: 1.5; }
.consent__points { margin: 14px 0 0; padding: 0; list-style: none; }
.consent__points li { position: relative; padding-left: 28px; margin-top: 8px; }
.consent__points li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg);
}
.consent__actions { display: grid; gap: 10px; margin-top: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--plain { background: #EEF1F5; color: var(--sub); }

/* ── アカウント（★設定の行） ── */
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; }
.row + .row { border-top: 1px solid var(--line); }
.row__label { color: var(--sub); font-size: 15px; }
.row__value { font-weight: 700; text-align: right; }
a.row { color: var(--ink); text-decoration: none; }
a.row::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--sub); border-top: 2px solid var(--sub); transform: rotate(45deg); flex: none; }

/* ── 入力 ── */
.field { margin-top: 18px; }
.field label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.field__hint { font-size: 14px; color: var(--sub); margin-top: 4px; }
.input-wrap { position: relative; }
.input {
  width: 100%; min-height: 56px; padding: 12px 14px;
  font-size: 19px; letter-spacing: .02em;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface);
}
.input:focus { border-color: var(--navy); outline: 3px solid rgba(31,46,74,.25); outline-offset: 0; }
.input--with-toggle { padding-right: 84px; }
.toggle-pw {
  position: absolute; right: 4px; top: 4px; bottom: 4px; min-width: 72px;
  border: 0; border-radius: 8px; background: transparent; color: var(--navy);
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.error {
  margin-top: 18px; padding: 12px 14px 12px 44px; position: relative;
  border: 1.5px solid var(--navy); border-radius: 10px; background: var(--surface); font-size: 15px;
}
.error::before {
  content: "!"; position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #FFFFFF; font-weight: 700; font-size: 15px; line-height: 22px; text-align: center;
}
.error p + p { margin-top: 6px; }

/* ── ログインなど（★ナビ無しの画面） ── */
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth__head { background: var(--navy); color: #FFFFFF; padding: calc(40px + env(safe-area-inset-top)) 20px 36px; }
.auth__brand { max-width: 420px; margin: 0 auto; }
.auth__mark { width: 44px; height: 44px; border-radius: 10px; display: block; }
.auth__name { margin-top: 14px; font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: .03em; }
.auth__sub { margin-top: 2px; font-size: 16px; opacity: .85; }
.auth__body { flex: 1; width: 100%; max-width: 460px; margin: 0 auto; padding: 8px 20px calc(32px + env(safe-area-inset-bottom)); }
.auth__title { margin-top: 24px; font-size: 21px; font-weight: 700; }
.auth__submit { margin-top: 26px; }
.auth__foot { margin-top: 24px; font-size: 14px; color: var(--sub); }

/* ── 明細の表示（★PC の右側） ── */
.pane { display: none; }

/* ── 保存したときの反応 ── */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 12px); z-index: 30;
  max-width: 480px; margin: 0 auto; padding: 14px 16px; border-radius: 12px;
  background: var(--ink); color: #FFFFFF; font-weight: 700; font-size: 15px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-shown { opacity: 1; transform: none; }

/* ── ★★MD-SLIPS-20260925 スマホ: 月の選択（★横に送れる）・給与｜賞与の切替・区分の印 ── */
.d-only { display: none; }
.months {
  display: flex; gap: 8px; overflow-x: auto; margin: 18px -16px 0; padding: 4px 16px 10px;
  scroll-snap-type: x proximity; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.months::-webkit-scrollbar { display: none; }
.month-chip {
  flex: none; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 72px; min-height: 72px; padding: 6px 10px;
  border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface);
  color: var(--ink); text-decoration: none; line-height: 1.2;
}
.month-chip__year { font-size: 12px; color: var(--sub); min-height: 14px; }
.month-chip__m { font-size: 19px; font-weight: 700; }
.month-chip__bonus { margin-top: 3px; padding: 0 6px; border-radius: 5px; background: #E4E9F1; color: var(--navy); font-size: 12px; font-weight: 700; }
.month-chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.month-chip[aria-current="true"] .month-chip__year { color: rgba(255,255,255,.8); }
.month-chip[aria-current="true"] .month-chip__bonus { background: #FFFFFF; }
.month-panel { margin-top: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 6px 0 2px; border-radius: 12px; background: #E4E9F1; }
.seg__item {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap);
  border-radius: 9px; color: var(--navy); font-weight: 700; text-decoration: none;
}
.seg__item[aria-current="true"] { background: var(--surface); box-shadow: 0 0 0 1.5px var(--navy) inset; }
.seg__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.kind-badge {
  display: inline-block; padding: 1px 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.85);
  font-size: 15px; font-weight: 700; letter-spacing: .08em;
}
.latest .kind-badge + .latest__month { margin-top: 8px; }
.info { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--navy); font-size: 15px; }
.info p + p { margin-top: 4px; }

/* ── ★★MD-NENCHO-STAGE2 年末調整（★1 画面 1 問・★大きな選択肢・★進み具合） ── */
.nq-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nq-back { margin-left: -12px; }
.nq-step { font-size: 14px; color: var(--sub); font-weight: 700; }
.nq-bar { height: 6px; margin: 8px 0 18px; border-radius: 999px; background: #E4E9F1; overflow: hidden; }
.nq-bar > span { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.nq-title { font-size: 22px; font-weight: 700; line-height: 1.5; }
.nq-help { margin-top: 6px; color: var(--sub); font-size: 15px; }
.nq-form { margin-top: 18px; }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; }
.choice input[type=radio], .choice input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  display: flex; flex-direction: column; justify-content: center; min-height: 60px; padding: 12px 16px 12px 52px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; position: relative;
}
.choice__box::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface);
}
.choice input[type=checkbox] + .choice__box::before { border-radius: 6px; }
.choice__label { font-size: 18px; font-weight: 700; line-height: 1.4; }
.choice__desc { font-size: 14px; color: var(--sub); margin-top: 2px; }
.choice input:checked + .choice__box { border-color: var(--navy); box-shadow: 0 0 0 1.5px var(--navy) inset; background: #F4F7FB; }
.choice input:checked + .choice__box::before { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 4px var(--surface); }
.choice input[type=checkbox]:checked + .choice__box::before { box-shadow: none; }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--navy); outline-offset: 2px; }
.choice input:not(:checked) ~ .choice__fields { display: none; }
.choice__fields { margin: 4px 0 4px 18px; padding-left: 16px; border-left: 3px solid #E4E9F1; }
.nq-actions { display: grid; gap: 10px; margin-top: 22px; }
.nq-alt { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; margin-top: 6px; }
.nq-alt .btn { font-weight: 700; }
.mark { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.mark--check { background: var(--surface); color: var(--navy); border: 1.5px solid var(--navy); }
.mark--later { background: #EEF1F5; color: var(--sub); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.photo { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.photo__pdf { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; font-weight: 700; color: var(--sub); }
.photo form { position: absolute; right: 4px; top: 4px; }
.photo button { min-height: 36px; padding: 4px 10px; border-radius: 8px; border: 0; background: rgba(26,34,51,.8); color: #fff; font-size: 13px; }
.upload { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--surface); }
.upload input[type=file] { font-size: 16px; max-width: 100%; }
.upload label { display: flex; align-items: center; gap: 8px; }
.upload svg { width: 24px; height: 24px; flex: none; }
.upload .btn { width: 100%; }
.sections { list-style: none; margin: 16px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sections li + li { border-top: 1px solid var(--line); }
.sections a, .sections span.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.sec-state { font-size: 14px; color: var(--sub); }
.sec-state--done { color: var(--ok); font-weight: 700; }
.review-sec { margin-top: 22px; }
/* ★★区切りごとに畳む（★<details>・★JS なしで動く） */
.fold-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fold + .fold { border-top: 1px solid var(--line); }
.fold__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 10px 16px;
  cursor: pointer; list-style: none;
}
.fold__head::-webkit-details-marker { display: none; }
.fold__head::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-left: 4px;
  border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(45deg) translateY(-3px);
  transition: transform .12s ease;
}
.fold[open] > .fold__head::after { transform: rotate(-135deg) translate(-2px, -2px); }
.fold__title { font-size: 18px; font-weight: 700; }
.fold__state { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-left: auto; }
.fold__body { border-top: 1px solid var(--line); background: #FBFCFD; }
.review-row { display: grid; gap: 2px; padding: 12px 16px; }
.review-row + .review-row { border-top: 1px solid var(--line); }
.review-row__q { font-size: 14px; color: var(--sub); }
.review-row__a { font-weight: 700; }
.review-row__edit { justify-self: start; font-size: 15px; }
.originals { margin: 12px 0 0; padding: 0; list-style: none; }
.originals li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); }
.originals li:first-child { border-top: 0; }
.originals li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 14px; border: 2px solid var(--navy); border-radius: 3px; }
.originals--plain li::before { top: 20px; left: 8px; width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--navy); }
.comment { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--navy); background: var(--surface); }
.comment__head { font-size: 14px; color: var(--sub); font-weight: 700; }
.comment__text { margin-top: 4px; white-space: pre-wrap; }
.deadline { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 8px; background: #E4E9F1; color: var(--navy); font-weight: 700; font-size: 15px; }
.stepper { list-style: none; margin: 0; padding: 0; }

/* ── PC（★幅 1024px 以上）: 左にメニュー・中央に一覧・右に表示 ── */
@media (min-width: 1024px) {
  .topbar, .tabbar { display: none; }
  .shell { display: grid; grid-template-columns: 248px 1fr; }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
    padding: 24px 14px; background: var(--navy); color: #FFFFFF;
  }
  .sidebar__brand { padding: 0 10px 24px; }
  .sidebar__name { font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: .03em; }
  .sidebar__sub { font-size: 13px; opacity: .8; }
  .side-link {
    display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 8px 12px; margin-top: 4px;
    border-radius: 10px; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 700;
  }
  .side-link svg { width: 22px; height: 22px; }
  .side-link:hover { background: rgba(255,255,255,.08); }
  .side-link[aria-current="page"] { background: #FFFFFF; color: var(--navy); }
  .sidebar__foot { margin-top: auto; padding: 0 10px; font-size: 13px; opacity: .75; }
  .main { max-width: 720px; margin: 0; padding: 40px 48px 48px; }
  .main--split { max-width: none; display: grid; grid-template-columns: minmax(360px, 420px) 1fr; gap: 0; padding: 0; height: 100vh; }
  .main--split .list-col { padding: 36px 28px 36px 36px; overflow-y: auto; }
  .pane {
    display: flex; flex-direction: column; min-width: 0;
    border-left: 1px solid var(--line); background: #E9EDF2;
  }
  .pane__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); min-height: 76px; }
  .pane__title { font-size: 19px; font-weight: 700; }
  .pane__actions { display: flex; gap: 8px; }
  .pane__body { flex: 1; min-height: 0; display: flex; }
  .pane__frame { flex: 1; width: 100%; border: 0; background: #E9EDF2; }
  .pane__empty { margin: auto; max-width: 320px; text-align: center; color: var(--sub); padding: 24px; }
  .pane__empty svg { width: 48px; height: 48px; }
  .toast { bottom: 24px; left: auto; right: 24px; width: 360px; }
  .m-only { display: none; }
  .d-only { display: block; }
  .d-list { margin-top: 20px; }
  .pane__head { display: grid; grid-template-columns: auto 1fr auto; row-gap: 10px; }
  .pane__title { text-align: center; }
  .pane__prev, .pane__next { font-size: 15px; }
  .pane__prev:disabled, .pane__next:disabled { color: var(--line-strong); cursor: default; }
  .pane__actions { grid-column: 1 / -1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:active { transform: none; }
}
