/* 06 シフト管理：レイアウトと部品。色は theme.css の役割変数だけを使う（色の値を書かない）。
   状態は文字ラベル＋形（枠・線種・記号）で示し、色だけに依存しない（UI_PROFILE O-02、55 UI-053）。 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 16px/1.6 system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; }
a { color: var(--c-link); }
h1, h2, h3 { line-height: 1.35; margin: 0; }
/* 文字階層は55 CHECK-S001/S003の基準（ページタイトル PC 28px／SP 22px、大見出し PC 20px／SP 18px、表14px、補足12px以上） */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; font-weight: 700; }
@media (max-width: 639px) { h1 { font-size: 1.375rem; } h2 { font-size: 1.125rem; } }
/* ページの主見出しだけに下線（CHECK-S004。小見出しへは機械適用しない） */
#main h1:not(.visually-hidden) { display: inline-block; padding-bottom: 2px; border-bottom: 3px solid var(--c-primary); }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* ボタン（同じ役割は同じ寸法・配置。UI-064） */
button, .btn { font: inherit; min-height: 44px; padding: 8px 16px; border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-button); color: var(--c-button-text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button.primary, .btn.primary { background: var(--action-save); color: var(--action-text); border-color: var(--action-save); font-weight: 700; }
button.primary:hover, .btn.primary:hover { background: var(--action-save-hover); }
button.publish, .btn.publish { background: var(--action-publish); border-color: var(--action-publish); color: var(--action-text); }
button.publish:hover, .btn.publish:hover { background: var(--action-publish-hover); }
button.primary:disabled { opacity: 1; cursor: not-allowed; background: var(--action-disabled-bg); border-color: var(--action-disabled-text); color: var(--action-disabled-text); }
button.quiet { background: transparent; border-color: transparent; color: var(--c-link); padding-inline: 8px; }
button.danger-outline { border-width: 2px; border-style: dashed; border-color: var(--c-danger); color: var(--c-danger); }
button[disabled] { opacity: .45; cursor: not-allowed; }
button[aria-pressed="true"] { background: var(--c-select); color: var(--c-on-select); border-color: var(--c-select); font-weight: 700; }
button.small, .btn.small { min-height: 36px; padding: 4px 10px; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions.end { justify-content: flex-end; }
.actions.stack { flex-direction: column; align-items: stretch; }

/* フォーム */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input, select, textarea { font: inherit; min-height: 44px; padding: 8px 10px; border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-field); color: var(--c-field-text); width: 100%; }
input::placeholder, textarea::placeholder { color: var(--c-placeholder); opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: 22px; min-height: 22px; height: 22px; margin: 0; vertical-align: middle; }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; min-height: 44px; }
.field { margin-bottom: 14px; }
.field .hint { font-size: .85rem; color: var(--c-muted); margin-top: 4px; }
.field .problem, .problem { font-size: .9rem; font-weight: 700; margin-top: 4px; }
.problem::before { content: "⚠ "; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > .field { flex: 1 1 120px; }
.pw { position: relative; }
.pw input { padding-right: 84px; }
.pw button { position: absolute; right: 4px; top: 4px; min-height: 36px; padding: 4px 10px; font-size: .85rem; }

/* 面・区切り */
.card { border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); padding: 16px; }
.stack > * + * { margin-top: 14px; }
/* 設定系のカード並び：PCは2列、狭い幅は1列（55 UI-005 rev2）。低頻度フォームの開閉見出し */
.account { max-width: 960px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.collapse-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.collapse-head h2, .collapse-head h3 { margin: 0; }
[hidden] { display: none !important; }
.notice { border: 2px solid var(--c-border); border-radius: 10px; padding: 10px 14px; }
.notice.attention { border-style: solid; border-color: var(--c-warning); background: var(--c-attention); color: var(--c-on-attention); }
.notice.ok::before { content: "✓ "; font-weight: 700; }
.notice.ok { color: var(--c-success); }
.notice.error { border-style: double; border-width: 4px; }
.notice.error, .problem { color: var(--c-danger); }
.notice.error::before { content: "⚠ "; font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--c-border); border-radius: 999px; padding: 0 8px; font-size: .8rem; line-height: 1.6; white-space: nowrap; }
.badge.strong { font-weight: 700; border-width: 2px; }
.badge.attention { background: var(--c-attention); color: var(--c-on-attention); border-color: var(--c-attention); font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: .95rem; }
.kv dt { color: var(--c-muted); }
.kv dd { margin: 0; font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--c-border); padding: 10px 0; }
.list > li:last-child { border-bottom: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 16px 0; }

/* 全体の骨格：上部ヘッダー（スタッフ・SP）／左ナビ＋主領域（管理PC） */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); border-bottom: 1px solid var(--c-border); background: var(--c-bg); }
.topbar .app-name { display: flex; align-items: center; min-width: 0; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--c-text); white-space: nowrap; }
.topbar .store-name { border-left: 1px solid var(--c-border); margin-left: 8px; padding-left: 8px; overflow: hidden; text-overflow: ellipsis; font-size: .875rem; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: .85rem; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.topbar .btn, .topbar button { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 479px) { .topbar { gap: 8px; padding-inline: 12px; } .topbar .who { display: none; } .topbar .app-name { flex-direction: column; align-items: flex-start; line-height: 1.2; font-size: .875rem; } .topbar .store-name { border: 0; font-size: .75rem; margin: 0; padding: 0; } }
.tabs { display: flex; border-bottom: 1px solid var(--c-border); background: var(--c-bg); position: sticky; top: 61px; z-index: 19; }
.tabs a { flex: 1; text-align: center; padding: 12px 8px; text-decoration: none; color: var(--c-text); font-weight: 600; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { border-bottom-color: var(--c-select); font-weight: 800; }
.staff-main { max-width: 600px; margin: 0 auto; padding: 16px 16px 140px; }
.admin-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: calc(100vh - 61px); }
.sidenav { border-right: 1px solid var(--c-border); padding: 12px 8px; position: sticky; top: 61px; height: calc(100vh - 61px); overflow: auto; background: var(--c-nav-bg); }
.sidenav a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--c-nav-text); font-weight: 600; }
.sidenav a:hover { background: var(--c-nav-hover); }
.sidenav a:focus-visible { outline-color: var(--c-nav-focus); }
.sidenav a[aria-current="page"] { background: var(--c-nav-selected); color: var(--c-nav-selected-text); box-shadow: inset 4px 0 var(--c-nav-marker); }
.sidenav .group-label { font-size: .78rem; color: var(--c-nav-muted); margin: 18px 12px 4px; font-weight: 700; border-bottom: 1px solid var(--c-nav-muted); }
.admin-main { padding: 16px 20px 40px; min-width: 0; }
.admin-main.narrow { max-width: 1100px; }
.menu-button { display: none; }
@media (max-width: 1023px) {
  .admin-shell { display: block; }
  .sidenav { display: none; position: fixed; inset: 61px 0 0 0; z-index: 30; background: var(--c-nav-bg); height: auto; border-right: 0; }
  .sidenav.open { display: block; }
  .menu-button { display: inline-flex; }
  .admin-main { padding: 12px 16px 120px; }
}

/* 状況の要約（短いラベル付き。UI-025） */
.status-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .92rem; }
.status-line .item { white-space: nowrap; }
.status-line .item b { font-weight: 700; }
.save-state { font-weight: 700; }
.save-state[data-state="error"] { color: var(--c-danger); }
.save-state[data-state="saving"] { color: var(--c-info); }
.save-state[data-state="saved"] { color: var(--c-success); }
.save-state[data-state="error"]::before { content: "⚠ "; }
.save-state[data-state="saving"]::before { content: "… "; }
.save-state[data-state="saved"]::before { content: "✓ "; }

/* S-01 カレンダー */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(48px, 1fr); gap: 1px; background: transparent; }
.cal .dow { text-align: center; font-size: .8rem; color: var(--c-muted); padding: 2px 0; }
.cal .day { min-height: 48px; padding: 2px; border: 1px solid var(--c-border); border-radius: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: var(--c-surface); color: var(--c-text); font-size: .95rem; line-height: 1.2; }
.cal .dow { background: var(--c-bg); }
.cal-mark { font-size: .75rem; color: var(--c-info); }
.selected-days { margin: 0; padding-left: 1.5em; font-size: .875rem; }
.cal .day .num { font-weight: 700; }
.cal .day .val { font-size: .75rem; line-height: 1.2; text-align: center; word-break: keep-all; }
.cal .day.off-period { border-style: dotted; color: var(--c-muted); background: var(--c-bg); }
.cal .day.unanswered .val { color: var(--c-muted); }
.cal .day[aria-pressed="true"] { border-width: 3px; }
.cal .day.changed::after { content: "◆"; font-size: .7rem; }
.period-select { width: auto; max-width: 100%; font-weight: 700; font-size: 1.05rem; }
.input-panel { border-top: 1px solid var(--c-border); padding-top: 12px; }
/* 主ボタンはキーボード・下部ブラウザーバーで隠れないよう画面下に固定（01 10モバイル仕様・safe-area） */
.apply-bar { position: sticky; bottom: 0; z-index: 10; background: var(--c-bg); border-top: 1px solid var(--c-border); margin: 12px -16px 0; padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 44px; padding: 6px 12px; }
.confirm-list { list-style: none; margin: 0; padding: 0; }
.confirm-list li { display: grid; grid-template-columns: 6.2em 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--c-border); align-items: baseline; }
.confirm-list li.unanswered .what { color: var(--c-muted); }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.counts div { border: 1px solid var(--c-border); border-radius: 8px; padding: 6px 2px; }
.counts b { display: block; font-size: 1.15rem; }

/* S-03 確定シフト（希望と確定を見出し・面で分ける。O-09） */
.sched li { display: grid; grid-template-columns: 6.2em 1fr; gap: 8px; align-items: baseline; }
.sched .time { font-weight: 800; font-size: 1.05rem; }
.sched .wish { font-size: .82rem; color: var(--c-muted); }
.sched li.changed { border-left: 4px double var(--c-border); padding-left: 8px; }

/* A-01 調整表（氏名列・日付行を固定。30行×16列で文字を縮小しない。O-01） */
.board-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.board-layout.has-selection { grid-template-columns: minmax(0, 1fr) 312px; }
@media (max-width: 1279px) { .board-layout.has-selection { grid-template-columns: minmax(0, 1fr); } }
.board-wrap { overflow: auto; max-height: calc(100vh - 230px); border: 1px solid var(--c-border); border-radius: 10px; }
table.board { border-collapse: separate; border-spacing: 0; font-size: .875rem; width: 100%; }
.inline-editor-row > td { padding: 0; }
.inline-editor { position: sticky; left: 0; width: min(100%, calc(100vw - 260px)); max-height: 60vh; overflow: auto; padding: 12px; background: var(--c-bg); }
.inline-editor .card { padding: 10px; }
.inline-editor > button { margin-top: 16px; }
.editor-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.editor-summary h2 { font-size: 1.05rem; }
.time-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 16px; }
.time-control-row { display: flex; align-items: center; gap: 4px; }
.time-control input { width: 120px; min-width: 0; }
.time-control select { width: 80px; padding: 4px; }
.time-control button { min-width: 36px; }
.board-summary h1 { margin: 0 0 14px; }
.board-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 20px; margin: 12px 0; }
.board-toolbar .filter-row { flex: 0 1 auto; margin: 0; }
.board-toolbar .view-tabs { flex: 0 0 auto; margin: 0; padding-left: 18px; border-left: 1px solid var(--c-border); }
.table-tabs-row { display: flex; align-items: end; gap: 16px; margin-top: 12px; border-bottom: 1px solid var(--c-border); }
.layer-tabs { display: flex; gap: 4px; margin-bottom: -1px; }
.layer-tabs button { min-height: 38px; padding: 6px 18px; border: 1px solid var(--c-border); border-radius: 8px 8px 0 0; background: var(--c-bg); color: var(--c-text); font-weight: 700; }
.layer-tabs button[aria-selected="true"] { background: var(--c-surface); color: var(--c-text); border-bottom-color: var(--c-surface); }
.scroll-note { padding-bottom: 8px; }
#board-content .board-wrap { border-top: 0; border-radius: 0 0 10px 10px; }
.board-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .75rem; }
.board-legend span { border: 1px solid var(--c-border); border-radius: 4px; padding: 2px 6px; color: var(--c-text); }
.legend-work { background: var(--board-work); } .legend-off { background: var(--board-off); }
.legend-edited { background: var(--board-edited); } .legend-cut { background: var(--board-cut); } .legend-attention { background: var(--board-attention); }
@media (max-width: 700px) { .board-toolbar .view-tabs { border-left: 0; padding-left: 0; } .scroll-note { display: none; } }
table.board th, table.board td { border-right: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); padding: 0; }
table.board thead th { position: sticky; top: 0; z-index: 3; background: var(--c-surface); font-weight: 700; padding: 4px 2px; min-width: 58px; text-align: center; line-height: 1.25; }
table.board thead tr:first-child th { height: 48px; }
table.board thead tr.staffing-head th { top: 48px; height: 36px; font-size: .75rem; line-height: 1.15; z-index: 3; }
table.board .sv-part { display: block; white-space: nowrap; }
table.board .sv-part.short { color: var(--c-danger); }
table.board .sv-part.over { color: var(--c-warning); }
table.board thead tr.staffing-head th.name { z-index: 5; }
table.board .staffing-value.short { color: var(--c-danger); }
table.board .staffing-value.over { color: var(--c-warning); }
table.board .staffing-value.ok { color: var(--c-success); }
table.board thead th.sat::after { content: ""; }
table.board th.name { position: sticky; left: 0; z-index: 2; background: var(--c-bg); text-align: left; padding: 4px 8px; min-width: 160px; width: 160px; max-width: 160px; font-weight: 700; white-space: nowrap; }
table.board th.name .name-content { display: flex; align-items: center; gap: 4px; min-width: 0; }
table.board th.name .staff-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
table.board th.name .stamp-group { display: flex; flex: 0 0 auto; gap: 3px; }
table.board thead th.name { z-index: 4; }
table.board th.name .sub { display: block; font-weight: 400; font-size: .75rem; color: var(--c-muted); }
.submit-stamp { display: inline-flex; flex: 0 0 28px; align-items: center; justify-content: center; width: 28px; height: 28px; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 50%; font-size: .875rem; font-weight: 800; white-space: nowrap; }
.submit-stamp.unsubmitted { color: var(--c-danger); }
.submit-stamp.submitted { color: var(--c-success); }
.submit-stamp.pending { color: var(--c-warning); }
table.board tr.group th { position: sticky; left: 0; text-align: left; padding: 4px 8px; background: var(--c-bg); font-size: .8125rem; }
table.board td button.cell { width: 100%; min-width: 58px; min-height: 48px; border: 0; border-radius: 0; padding: 3px 2px; background: var(--c-surface); color: var(--c-text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: .875rem; line-height: 1.2; }
table.board td button.cell.state-work { background: var(--board-work); }
table.board td button.cell.state-work-edited { background: var(--board-edited); }
table.board td button.cell.state-off { background: var(--board-off); }
table.board td button.cell.state-unanswered { background: var(--board-unanswered); }
table.board td button.cell.state-cut { background: var(--board-cut); }
table.board td button.cell.state-attention { background: var(--board-attention); }
table.board td:has(> button.cell.state-work) { background: var(--board-work); }
table.board td:has(> button.cell.state-work-edited) { background: var(--board-edited); }
table.board td:has(> button.cell.state-off) { background: var(--board-off); }
table.board td:has(> button.cell.state-unanswered) { background: var(--board-unanswered); }
table.board td:has(> button.cell.state-cut) { background: var(--board-cut); }
table.board td:has(> button.cell.state-attention) { background: var(--board-attention); }
table.board th.selected-heading { background: color-mix(in srgb, var(--c-select) 22%, var(--c-surface)); }
table.board td button.cell[aria-selected="true"] { outline: 3px solid var(--c-select); outline-offset: -3px; font-weight: 700; }
table.board td button.cell .t { font-weight: 700; white-space: nowrap; }
table.board td button.cell .m { font-size: .75rem; white-space: nowrap; border: 1px solid currentColor; border-radius: 3px; padding: 0 2px; }
table.board td button.cell .m.strong { font-weight: 800; border-width: 2px; }
table.board td button.cell .m.strong { color: inherit; }
table.board td button.cell .w { font-size: .75rem; color: var(--c-muted); white-space: nowrap; }
table.board td button.cell.cut .t, table.board td button.cell .struck { text-decoration: line-through; }
table.board td.dim button.cell { opacity: .35; }
table.board tfoot th, table.board tfoot td { position: sticky; bottom: 0; background: var(--c-bg); font-size: .75rem; text-align: center; padding: 3px 2px; z-index: 2; }
table.board tfoot th.name { z-index: 4; }
.th-date { display: block; }
.th-date button { min-height: 0; padding: 2px 4px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; }
.th-date button[aria-pressed="true"] { text-decoration: none; background: transparent; color: inherit; }
.staffing-link { display: block; width: 100%; min-height: 34px; padding: 1px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; }
.staffing-link:hover { text-decoration: underline; }
.summary-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.summary-row h1 { margin-right: 4px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.filter-row select { width: auto; min-height: 36px; padding: 4px 8px; }
.editor { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
.compare { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: .92rem; }
.compare dt { color: var(--c-muted); }
.compare dd { margin: 0; font-weight: 700; }
.staffing-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.staffing-table th, .staffing-table td { border-bottom: 1px solid var(--c-border); padding: 6px 4px; text-align: left; }
.judge { font-weight: 800; white-space: nowrap; }
.judge.short { color: var(--c-danger); }
.judge.over { color: var(--c-warning); }
.judge.ok { color: var(--c-success); }
.wish-chip { display: inline-block; border: 1px solid currentColor; border-radius: 4px; padding: 0 3px; color: var(--c-info); font-size: .75rem; line-height: 1.3; word-break: keep-all; overflow-wrap: normal; }
.wish-chip.off, .wish-chip.unsubmitted { color: var(--c-muted); border-style: dashed; }
.wish-chip.all { color: var(--c-success); }
.wish-chip.free { color: var(--c-warning); }
.wish-chip.p15 { color: var(--c-danger); }
.wish-chip.p17 { color: var(--c-success); }
.wish-chip.p18 { color: var(--c-info); }
.wish-chip.prep { color: var(--c-warning); }
.board-note { margin: 6px 0; }
.staffing-disclosure { margin: 10px 0; }
.staffing-disclosure summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.judge.short::before { content: "▼ "; }
.judge.over::before { content: "▲ "; }
.judge.ok::before { content: "○ "; }

/* A-09 スマホ調整（縮小表示しない。日別・人別の行） */
.day-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.day-chips button { flex: 0 0 auto; min-width: 64px; flex-direction: column; line-height: 1.2; }
.rows-sp > li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.rows-sp > li button.open { width: 100%; justify-content: space-between; text-align: left; }

/* シート（SPの編集・確認）とダイアログ */
dialog { border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-bg); color: var(--c-text); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: CanvasText; opacity: .35; }
dialog .dlg { padding: 18px; }
dialog .dlg > * + * { margin-top: 12px; }
@media (max-width: 640px) {
  dialog.sheet { margin: auto 0 0 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; }
  dialog.sheet .dlg { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* 管理の各設定画面 */
table.plain { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.plain th, table.plain td { border-bottom: 1px solid var(--c-border); padding: 8px 6px; text-align: left; vertical-align: middle; }
table.plain th { font-size: .82rem; color: var(--c-muted); font-weight: 700; }
table.plain input, table.plain select { min-height: 38px; padding: 4px 8px; }
table.plain input[type="time"], table.plain input[type="date"], table.plain input[type="number"] { width: auto; }
table.plain .actions { flex-wrap: nowrap; }
.table-scroll { overflow-x: auto; }
/* スマホでは設定表を1行ずつの縦並びにし、各値の前に列名を出す（表を縮小しない。CHECK-S008） */
@media (max-width: 639px) {
  table.plain thead { display: none; }
  table.plain, table.plain tbody, table.plain tr { display: block; width: 100%; }
  table.plain tr { padding: 8px 0; border-bottom: 1px solid var(--c-border); }
  table.plain td { display: flex; align-items: center; gap: 8px; border: 0; padding: 3px 0; }
  table.plain td[data-label]:not([data-label=""])::before { content: attr(data-label); flex: 0 0 6.5em; font-size: .8125rem; font-weight: 700; color: var(--c-muted); }
  table.plain td > select, table.plain td > input:not([type="checkbox"]) { flex: 1 1 auto; width: auto; min-width: 0; }
  table.plain .actions { flex-wrap: wrap; }
}
.login-wrap { max-width: 420px; margin: 0 auto; padding: 24px 16px 80px; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
