:root {
  --paper: #F2F1EC;
  --surface: #FFFFFF;
  --surface-2: #F8F7F4;
  --ink: #24222C;
  --ink-2: #5E5B69;
  --ink-3: #908D9B;
  --line: #DDDBD4;
  --accent: #33518F;
  --accent-ink: #FFFFFF;
  --accent-soft: #E7ECF7;
  /* 店舗カテゴリ(ライト・検証済) */
  --st-hokura: #4477CC;
  --st-okusama: #C7702D;
  --st-mat: #0F9D7B;
  --st-hiyoko: #9A5BA5;
  /* ステータス */
  --s-wait-call: #A16207; --s-wait-call-bg: #FBF0DC;
  --s-wait-visit: #1D4ED8; --s-wait-visit-bg: #E4EBFB;
  --s-checked: #0F766E;  --s-checked-bg: #DCF2EF;
  --s-active: #7E3AA6;   --s-active-bg: #F1E6F7;
  --s-done: #6B6875;     --s-done-bg: #ECEBE7;
  --danger: #B3362B;
  --shadow: 0 1px 3px rgba(36,34,44,.08), 0 4px 16px rgba(36,34,44,.06);
  --drawer-shadow: -8px 0 32px rgba(36,34,44,.18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1A22;
    --surface: #232130;
    --surface-2: #2A2838;
    --ink: #ECEAF2;
    --ink-2: #ABA8B8;
    --ink-3: #7A7788;
    --line: #3A3848;
    --accent: #8FA9E3;
    --accent-ink: #171826;
    --accent-soft: #2E3450;
    --st-hokura: #5C85D6;
    --st-okusama: #BF7A33;
    --st-mat: #1FA37F;
    --st-hiyoko: #B678C2;
    --s-wait-call: #E0B25C; --s-wait-call-bg: #3A3222;
    --s-wait-visit: #8FB0F0; --s-wait-visit-bg: #263252;
    --s-checked: #5BC2B4;  --s-checked-bg: #1E3A38;
    --s-active: #C99AE0;   --s-active-bg: #3A2C48;
    --s-done: #8D8A9A;     --s-done-bg: #302E3C;
    --danger: #E07A6F;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
    --drawer-shadow: -8px 0 32px rgba(0,0,0,.5);
  }
}
:root[data-theme="light"] {
  --paper: #F2F1EC; --surface: #FFFFFF; --surface-2: #F8F7F4;
  --ink: #24222C; --ink-2: #5E5B69; --ink-3: #908D9B; --line: #DDDBD4;
  --accent: #33518F; --accent-ink: #FFFFFF; --accent-soft: #E7ECF7;
  --st-hokura: #4477CC; --st-okusama: #C7702D; --st-mat: #0F9D7B; --st-hiyoko: #9A5BA5;
  --s-wait-call: #A16207; --s-wait-call-bg: #FBF0DC;
  --s-wait-visit: #1D4ED8; --s-wait-visit-bg: #E4EBFB;
  --s-checked: #0F766E; --s-checked-bg: #DCF2EF;
  --s-active: #7E3AA6; --s-active-bg: #F1E6F7;
  --s-done: #6B6875; --s-done-bg: #ECEBE7;
  --danger: #B3362B;
  --shadow: 0 1px 3px rgba(36,34,44,.08), 0 4px 16px rgba(36,34,44,.06);
  --drawer-shadow: -8px 0 32px rgba(36,34,44,.18);
}
:root[data-theme="dark"] {
  --paper: #1B1A22; --surface: #232130; --surface-2: #2A2838;
  --ink: #ECEAF2; --ink-2: #ABA8B8; --ink-3: #7A7788; --line: #3A3848;
  --accent: #8FA9E3; --accent-ink: #171826; --accent-soft: #2E3450;
  --st-hokura: #5C85D6; --st-okusama: #BF7A33; --st-mat: #1FA37F; --st-hiyoko: #B678C2;
  --s-wait-call: #E0B25C; --s-wait-call-bg: #3A3222;
  --s-wait-visit: #8FB0F0; --s-wait-visit-bg: #263252;
  --s-checked: #5BC2B4; --s-checked-bg: #1E3A38;
  --s-active: #C99AE0; --s-active-bg: #3A2C48;
  --s-done: #8D8A9A; --s-done-bg: #302E3C;
  --danger: #E07A6F;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  --drawer-shadow: -8px 0 32px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px; line-height: 1.6;
}
.num { font-variant-numeric: tabular-nums; }

/* ── アプリシェル ── */
.shell { max-width: 1160px; margin: 0 auto; padding: 0 16px 64px; }
header.appbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 4px 12px;
}
.brand { font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.brand .mark { color: var(--accent); }
.appbar .date { color: var(--ink-2); font-size: 13px; }
.btn-new {
  appearance: none; font: inherit; cursor: pointer; margin-left: auto;
  background: var(--accent); color: var(--accent-ink); border: none;
  border-radius: 10px; padding: 10px 20px; font-size: 14px; font-weight: 700;
}
.btn-new:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.appbar .tag {
  font-size: 11px; letter-spacing: .12em; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}

/* 日付ナビ */
.datenav { display: flex; align-items: center; gap: 6px; }
.datenav button {
  appearance: none; font: inherit; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 8px; padding: 7px 12px; font-weight: 600;
}
.datenav button:focus-visible, .datenav input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.datenav input[type="date"] {
  font: inherit; color: var(--ink); background: var(--surface-2);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 10px; width: auto;
}

/* 設定ボタン */
.btn-gear {
  appearance: none; font: inherit; cursor: pointer;
  background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line);
  border-radius: 8px; padding: 7px 12px; font-size: 16px; line-height: 1;
}
.btn-gear:hover { color: var(--ink); }
.btn-gear:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 店舗スイッチャ */
.storebar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.storebar button {
  appearance: none; font: inherit; cursor: pointer; font-weight: 700;
  background: var(--surface); color: var(--ink-2);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 20px;
  display: inline-flex; align-items: center; gap: 8px;
}
.storebar button::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.storebar button.sel {
  color: var(--ink); border-color: var(--c);
  box-shadow: inset 0 -3px 0 var(--c); background: var(--surface);
}
.storebar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.storebar .cnt { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }

nav.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; }
nav.tabs button {
  appearance: none; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink-2);
  padding: 10px 16px 8px; margin-bottom: -2px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
nav.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
nav.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }

section.view { display: none; }
section.view.on { display: block; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px;
}
h2.section-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
p.section-note { color: var(--ink-2); font-size: 12.5px; margin: 0 0 16px; }

/* ── 共有パーツ ── */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  appearance: none; font: inherit; cursor: pointer;
  background: var(--surface-2); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 8px 14px; font-weight: 600;
}
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg button.sel { border-color: var(--accent); background: var(--accent-soft); }
.seg button .sub { display: block; font-size: 10.5px; font-weight: 400; color: var(--ink-3); }

.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chiprow button {
  appearance: none; font: inherit; cursor: pointer;
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--ink); padding: 5px 13px; font-size: 13px;
}
.chiprow button.sel { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.chiprow button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

select, input[type="time"], input[type="text"], input[type="date"], input[type="number"], input[type="password"], input[type="color"] {
  font: inherit; color: var(--ink); background: var(--surface-2);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 12px; width: 100%;
}
input[type="color"] { padding: 3px 4px; height: 36px; }
select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.store-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.store-chip::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.pill {
  appearance: none; font: inherit; cursor: pointer; border: none;
  display: inline-block; border-radius: 999px; padding: 3px 12px;
  font-size: 12px; font-weight: 700; color: var(--pc); background: var(--pb);
}
.pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── タイムテーブル ── */
.board-toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.board-toolbar .btn-save { flex: none; padding: 9px 18px; }
.board-toolbar .btn-sub {
  appearance: none; font: inherit; cursor: pointer; font-weight: 600;
  background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 9px 18px;
}
.board-toolbar .btn-sub:hover { color: var(--ink); border-color: var(--accent); }
.board-toolbar .btn-sub:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.board-toolbar .btn-sub[disabled] { opacity: .5; cursor: wait; }
.boardwrap { overflow-x: auto; }
.board { min-width: 1240px; }
.b-header, .b-row { display: grid; grid-template-columns: 190px 1fr 170px; align-items: stretch; }
.b-header { color: var(--ink-3); font-size: 11px; letter-spacing: .06em; }
.b-header > div { padding: 4px 8px; }
.hours { position: relative; display: grid; grid-template-columns: repeat(15, 1fr); }
.hours span { border-left: 1px solid var(--line); padding: 4px 6px; }
.b-row { border-top: 1px solid var(--line); }
.b-cast {
  padding: 10px 8px; text-align: left; font: inherit; color: var(--ink);
  background: none; border: none; appearance: none; width: 100%;
}
button.b-cast { cursor: pointer; }
button.b-cast:hover { background: var(--surface-2); }
button.b-cast:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.b-cast .nm { font-weight: 700; }
.b-cast .rm { font-size: 11.5px; color: var(--ink-3); }
.b-cast .interval { font-size: 11px; color: var(--ink-3); }
.lane {
  position: relative; min-height: 72px; cursor: copy; overflow: hidden;
  background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / 15));
}
.offh {
  position: absolute; top: 0; bottom: 0; pointer-events: none;
  background: var(--paper); opacity: .55;
}
.blk {
  position: absolute; top: 8px; height: 56px; border-radius: 6px;
  background: var(--c); color: #fff; overflow: hidden; cursor: pointer;
  padding: 4px 8px; font-size: 11.5px; line-height: 1.3; font-weight: 600;
  box-shadow: 0 0 0 2px var(--surface); border: none; text-align: left; font-family: inherit;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.blk:hover { filter: brightness(1.08); }
.blk:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.blk .l1 { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk .t { display: block; font-size: 10px; font-weight: 400; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk.ghost { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--ink-3); box-shadow: none; font-weight: 500; }
.iband {
  position: absolute; top: 8px; height: 56px; pointer-events: none;
  background: repeating-linear-gradient(45deg, var(--ink-3) 0 6px, transparent 6px 12px);
  opacity: .22; border-radius: 4px;
}
.b-sum { padding: 8px; font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.b-sum b { color: var(--ink); }
.b-sum .next { font-weight: 700; color: var(--accent); }
.unassigned { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 8px; border-top: 1px solid var(--line); }
.unassigned .ulabel { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-right: 4px; }
.ublk {
  appearance: none; font: inherit; cursor: pointer;
  border: 1.5px dashed var(--ink-3); background: var(--surface-2); color: var(--ink);
  border-radius: 8px; padding: 5px 12px; font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.ublk:hover { border-color: var(--accent); }
.ublk:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── 受付リスト ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters .flabel2 { font-size: 12px; color: var(--ink-3); font-weight: 700; margin-right: 2px; }
.tablewrap { overflow-x: auto; }
table.list { border-collapse: collapse; width: 100%; min-width: 700px; }
table.list th {
  text-align: left; font-size: 11px; letter-spacing: .08em; color: var(--ink-3);
  border-bottom: 1.5px solid var(--line); padding: 8px 10px; white-space: nowrap;
}
table.list td { border-bottom: 1px solid var(--line); padding: 9px 10px; white-space: nowrap; }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover td { background: var(--surface-2); }
.opts-cell { font-size: 12px; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* ── 日報 ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow); }
.tile .k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
.tile .v { font-size: 26px; font-weight: 700; margin-top: 2px; }
.tile .s { font-size: 12px; color: var(--ink-2); }
.bars { display: grid; gap: 10px; margin-top: 6px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 10px; }
.bar-row .lbl { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 18px; position: relative; }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 0 4px 4px 0; background: var(--c); min-width: 2px; }
.bar-row .val { text-align: right; font-weight: 600; font-size: 13px; }
.daily-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .daily-grid { grid-template-columns: 1fr; } }
.statuslist { display: grid; gap: 8px; margin-top: 6px; }
.statuslist .srow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.statuslist .srow .n { font-weight: 700; }

/* ── 編集ドロワー ── */
.overlay {
  position: fixed; inset: 0; background: rgba(20, 18, 28, .35);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 40;
}
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw);
  background: var(--surface); box-shadow: var(--drawer-shadow); z-index: 41;
  transform: translateX(105%); transition: transform .22s ease;
  display: flex; flex-direction: column;
  overflow-x: hidden; max-width: 100vw;
}
.drawer.on { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; } .overlay { transition: none; }
}
.d-head {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line); flex: none;
}
.d-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.d-head .no { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.d-close {
  appearance: none; font: inherit; cursor: pointer; margin-left: auto;
  background: none; border: none; color: var(--ink-3); font-size: 20px; line-height: 1;
  padding: 4px 8px; border-radius: 6px;
}
.d-close:hover { color: var(--ink); background: var(--surface-2); }
.d-close:focus-visible { outline: 2px solid var(--accent); }
.d-body { overflow-y: auto; overflow-x: hidden; padding: 16px 20px; flex: 1; max-width: 100%; }
.field { margin-bottom: 16px; min-width: 0; }
.field > label.flabel {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--ink-3); margin-bottom: 7px;
}
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.row2 > .field { min-width: 0; }

/* コース（ボタングリッド・折返し） */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.course-grid button {
  appearance: none; font: inherit; cursor: pointer;
  background: var(--surface-2); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-weight: 600; min-width: 0;
}
.course-grid button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.course-grid button.sel { border-color: var(--accent); background: var(--accent-soft); }
.course-grid button .sub { display: block; font-size: 10.5px; font-weight: 400; color: var(--ink-3); }
.d-foot {
  flex: none; border-top: 1px solid var(--line); padding: 14px 20px;
  background: var(--surface);
}
.d-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.d-total .yen { font-size: 24px; font-weight: 700; }
.d-total .breakdown { font-size: 11.5px; color: var(--ink-3); }
.d-actions { display: flex; gap: 10px; }
.btn-save {
  appearance: none; font: inherit; cursor: pointer; flex: 1;
  padding: 12px; border-radius: 10px; border: none;
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700;
}
.btn-save:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-delete {
  appearance: none; font: inherit; cursor: pointer;
  padding: 12px 16px; border-radius: 10px; background: none;
  border: 1.5px solid var(--danger); color: var(--danger); font-weight: 700;
}
.btn-delete:focus-visible { outline: 2px solid var(--danger); outline-offset: 2px; }
.btn-delete.confirm { background: var(--danger); color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--paper); border-radius: 10px;
  padding: 12px 22px; font-weight: 600; opacity: 0; transition: all .25s ease;
  pointer-events: none; z-index: 50;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity .25s ease; transform: translateX(-50%); } }

/* ── パスワードオーバーレイ ── */
.pw-overlay {
  position: fixed; inset: 0; z-index: 60; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.pw-overlay[hidden] { display: none; }
.pw-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 28px; width: min(320px, 90vw);
}
.pw-box h2 { margin: 0 0 16px; font-size: 16px; }
.pw-box .field { margin-bottom: 14px; }
.pw-error { color: var(--danger); font-size: 12.5px; margin: 0 0 10px; }

/* ── マスタ管理モーダル ── */
.master-modal {
  position: fixed; top: 4vh; left: 50%; transform: translateX(-50%);
  width: min(960px, 94vw); max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: 12px; box-shadow: var(--drawer-shadow);
  z-index: 61; display: none; flex-direction: column;
}
.master-modal.on { display: flex; }
.master-modal .m-head {
  display: flex; align-items: center; gap: 10px; padding: 16px 22px;
  border-bottom: 1px solid var(--line); flex: none; position: sticky; top: 0;
  background: var(--surface); z-index: 1;
}
.master-modal .m-head h3 { margin: 0; font-size: 16px; }
.master-modal .m-body { padding: 20px 22px; overflow-y: auto; }
.master-modal .m-section { margin-bottom: 28px; }
.master-modal .m-section h4 { font-size: 13px; font-weight: 700; margin: 0 0 10px; color: var(--ink-2); }
table.mtable { border-collapse: collapse; width: 100%; margin-bottom: 12px; }
table.mtable th {
  text-align: left; font-size: 11px; color: var(--ink-3); border-bottom: 1.5px solid var(--line);
  padding: 6px 6px; white-space: nowrap;
}
table.mtable td { border-bottom: 1px solid var(--line); padding: 6px; vertical-align: middle; }
table.mtable td input { padding: 6px 8px; }
table.mtable td.m-actions { white-space: nowrap; display: flex; gap: 6px; }
.m-btn {
  appearance: none; font: inherit; cursor: pointer; border: 1.5px solid var(--line);
  background: var(--surface-2); color: var(--ink); border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 600;
}
.m-btn:hover { border-color: var(--accent); }
.m-btn.m-danger { border-color: var(--danger); color: var(--danger); }
.m-btn.m-primary { border-color: var(--accent); background: var(--accent-soft); }
.m-storebar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ── シフト編集/追加ポップアップ ── */
.shift-modal {
  position: fixed; top: 10vh; left: 50%; transform: translateX(-50%);
  width: min(420px, 94vw); max-height: 84vh; overflow-y: auto;
  background: var(--surface); border-radius: 12px; box-shadow: var(--drawer-shadow);
  z-index: 62; display: none; flex-direction: column;
}
.shift-modal.on { display: flex; }
.shift-modal .m-head {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); flex: none;
}
.shift-modal .m-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.shift-modal .m-body { padding: 16px 20px; }
.sh-error { color: var(--danger); font-size: 12.5px; margin: 0 0 4px; }
