:root {
  --bg: #f6f5f1;
  --paper: #ffffff;
  --ink: #23302c;
  --muted: #6b7672;
  --line: #dcdcd4;
  --brand: #2f6f62;
  --brand-soft: #e3efeb;
  --out: #eef3fb;
  --out-ink: #2b4f86;
  --error: #c0392b;
  --error-soft: #fbe9e7;
  --warn: #9a6a00;
  --warn-soft: #fff4d6;
  --info: #4a5a8a;
  --info-soft: #edf0f8;
  --na: #efefea;
  --sat: #2b4f86;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; overflow-x: hidden; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 12px; min-height: 36px; }
button:hover { border-color: var(--brand); }
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button.quiet { background: transparent; color: var(--muted); }
button.small { min-height: 28px; padding: 2px 8px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
select, input, textarea { border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; background: var(--paper); min-height: 32px; }
small { color: var(--muted); font-size: 12px; font-weight: normal; }
.muted { color: var(--muted); }
.empty { padding: 32px 16px; color: var(--muted); text-align: center; }
.print-only { display: none; }

/* 上部 */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; background: var(--brand); color: #fff; }
.brand { font-weight: 700; font-size: 18px; }
.brand span { margin-left: 6px; font-weight: 500; }
.brand em { margin-left: 8px; font-style: normal; font-size: 11px; background: #ffffff33; padding: 2px 6px; border-radius: 4px; vertical-align: middle; }
.role { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.role select { max-width: 230px; color: var(--ink); }
.month { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.month strong { font-size: 17px; min-width: 7.5em; text-align: center; }
.month button { background: #ffffff22; color: #fff; border-color: #ffffff55; padding: 4px 12px; }

.tabs { display: flex; gap: 4px; padding: 8px 16px 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--paper); }
.tabs button { border: none; border-bottom: 3px solid transparent; border-radius: 0; background: none; white-space: nowrap; }
.tabs button.on { border-bottom-color: var(--brand); color: var(--brand); font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; }
.badge { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--na); }
.badge.ok { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 0 16px 24px; }
.layout > main { min-width: 0; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }

/* 警告一覧 */
.warn { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; align-self: start; position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow: auto; }
.warn h2 { font-size: 15px; margin: 0 0 8px; }
.warn ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.warn li button { width: 100%; text-align: left; font-size: 13px; padding: 6px 8px; min-height: 0; border-radius: 6px; }
.warn li b { margin-right: 4px; }
.counts { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.counts span { padding: 2px 8px; border-radius: 999px; }
.lv-error { background: var(--error-soft); color: var(--error); border-color: #f2c5bf !important; }
.lv-warn { background: var(--warn-soft); color: var(--warn); border-color: #efd78f !important; }
.lv-info { background: var(--info-soft); color: var(--info); border-color: #cfd6ea !important; }

/* 切り替え */
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.seg button.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 700; }
.legend { font-size: 12px; color: var(--muted); }

/* 表 */
.grid-wrap, .table-wrap { overflow: auto; max-width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.grid-wrap { max-height: calc(100vh - 200px); }
table { border-collapse: separate; border-spacing: 0; }
.grid th, .grid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; text-align: center; font-size: 13px; white-space: nowrap; }
.grid thead th { position: sticky; top: 0; background: #fafaf7; z-index: 2; font-weight: 600; }
.grid thead tr:nth-child(2) th { top: 41px; }
.grid th.sub { font-size: 12px; }
.grid th.sub small { display: block; }
.grid .sticky { position: sticky; left: 0; background: #fafaf7; z-index: 1; text-align: left; }
.grid thead .sticky { z-index: 3; }
.grid th.name small { display: block; }
.grid .wd-土 { color: var(--sat); }
.staff-grid td.cell { min-width: 34px; height: 36px; cursor: pointer; position: relative; font-weight: 600; }
.staff-grid td.cell:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.staff-grid td.cell i { position: absolute; right: 1px; top: -1px; font-size: 9px; font-style: normal; }
td.out { background: var(--out); color: var(--out-ink); }
td.na { background: var(--na); color: var(--muted); }
td.bad { background: var(--warn-soft) !important; color: var(--warn) !important; }
td.offer, .chip.offer { outline: 2px dashed #8a7bd1; outline-offset: -4px; }
td.offer-ok, .chip.offer-ok { box-shadow: inset 0 0 0 3px #7cc4a0; }
td.offer-no, .chip.offer-no { text-decoration: line-through; color: var(--error); }
td.closed, th.closed { background: repeating-linear-gradient(45deg, #f0efe9, #f0efe9 6px, #e7e6df 6px, #e7e6df 12px); color: var(--muted); }
td.lack { background: var(--error-soft); color: var(--error); font-weight: 700; }
td.ok { color: #7cae9a; }
.place-grid td.pcell { cursor: pointer; min-width: 70px; white-space: normal; }
.place-grid td.pcell:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.chip { display: inline-block; margin: 1px; padding: 1px 6px; border-radius: 6px; background: var(--brand-soft); font-size: 12px; }
.chip.na { background: var(--na); }
.tr-grid td { white-space: normal; min-width: 110px; font-size: 12px; text-align: left; }
.tr-grid .drv { font-weight: 700; color: var(--brand); }

table.plain { width: 100%; }
table.plain th, table.plain td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; font-size: 14px; vertical-align: middle; }
table.plain thead th { background: #fafaf7; font-size: 13px; white-space: nowrap; }
table.plain th small { display: block; }
td.r { text-align: right; font-variant-numeric: tabular-nums; }
td.bad, li.bad { color: var(--error); }
.nowrap { white-space: nowrap; }
.ledger input.num { width: 4.5em; }
.ck { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; font-size: 13px; }
.ck input { min-height: 0; }

/* パネル */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.panel h2 { font-size: 16px; margin: 0 0 10px; }
.panel h2 small { margin-left: 8px; }
.panel > button { margin-top: 8px; }

/* 休業日・希望のカレンダー */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.day { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; gap: 0; }
.day small { line-height: 1; }
.day span { font-size: 12px; }
.day em { font-style: normal; font-size: 11px; color: var(--warn); }
.day.closed { background: repeating-linear-gradient(45deg, #f0efe9, #f0efe9 6px, #e7e6df 6px, #e7e6df 12px); color: var(--muted); }
.day.picked { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); font-weight: 700; }
.day.dim { opacity: .55; }
.day.wd-土 b { color: var(--sat); }

/* 配車 */
.date-chips { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
.date-chips button { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 4px 6px; line-height: 1.2; }
.date-chips button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.date-chips button.on small { color: #fff; }
.day-title { font-size: 17px; margin: 10px 0; }
.runs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.run h3 { margin: 0 0 8px; font-size: 16px; }
.cars { display: grid; gap: 10px; }
.car { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.car.idle { opacity: .7; }
.car.over { border-color: var(--error); box-shadow: 0 0 0 2px var(--error-soft); }
.car-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.car-head .bad { color: var(--error); font-weight: 700; }
.driver { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 6px; }
.driver.bad select { border-color: var(--error); background: var(--error-soft); }
.riders { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.riders li { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 3px 6px; background: #fafaf7; border-radius: 6px; }
.riders li small { margin-left: 6px; }
.riders select { font-size: 13px; min-height: 30px; }
.waiting { background: var(--error-soft); border-radius: 10px; padding: 8px; margin-bottom: 10px; }
.waiting .riders li { background: #fff; }

/* 職員の入口 */
main.staff { max-width: 760px; margin: 0 auto; padding: 16px; }
main.staff h1 { font-size: 20px; margin: 4px 0 10px; }
main.staff h1 small { margin-left: 8px; }
.banner { padding: 8px 12px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); margin-bottom: 14px; }
.banner.ok { background: var(--brand-soft); color: var(--brand); }
.mydays { list-style: none; margin: 0; padding: 0; }
.mydays li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mydays .d { font-weight: 700; display: flex; flex-direction: column; line-height: 1.2; }
.mydays li.sat .d { color: var(--sat); }
.mydays .drive { font-size: 13px; color: var(--brand); }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.offer-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.offer-item .st { font-size: 12px; color: var(--muted); }
.offer-item .btns { margin-left: auto; display: flex; gap: 6px; }
.offer-item .btns button.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 700; }
.offer-item.st-辞退 { background: #fbf6f5; }
.note { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; }

/* 場所を選ぶメニュー */
.menu { position: fixed; z-index: 50; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #0002; padding: 6px; display: grid; gap: 3px; width: 250px; max-width: calc(100vw - 16px); }
.menu[hidden] { display: none; }
.menu button { text-align: left; min-height: 34px; }
.menu button.on { background: var(--brand-soft); border-color: var(--brand); font-weight: 700; }
.menu button.dim { color: var(--muted); }
.menu-head { font-weight: 700; padding: 2px 4px; font-size: 14px; }
.menu-note { font-size: 12px; color: var(--warn); padding: 0 4px 2px; }
.menu-scroll { display: grid; gap: 3px; max-height: 50vh; overflow: auto; }

@media (max-width: 600px) {
  .top { padding: 8px 16px; }
  .month { margin-left: 0; width: 100%; justify-content: space-between; }
  .role { width: 100%; }
  .role select { flex: 1; max-width: none; }
  .toolbar button { flex: 1 1 auto; }
}

/* v2：便・勤務時間・希望・賃金 */
.small { font-size: 12px; }
.chip.out, td.out { background: var(--out); color: var(--out-ink); }
.chip.actual, td.actual { background: var(--warn-soft); }
.mcount { font-size: 11px; color: var(--muted); }
.place-grid th small { display: block; }
input.time { width: 6.8em; min-height: 28px; padding: 2px 4px; }
input.time.set { border-color: var(--warn); background: var(--warn-soft); }
input.num.wide { width: 7em; }
.legs { display: grid; gap: 16px; }
.leg { background: #fbfbf8; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.leg h3 { margin: 0 0 8px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.leg h3 .t { font-variant-numeric: tabular-nums; color: var(--brand); }
.leg .cars { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.riders li > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.addcar { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.tr-day th { width: 9em; vertical-align: top; }
.tr-day td small { display: block; }
.wish-grid td.wish { min-width: 30px; cursor: pointer; font-weight: 700; }
.wish-grid td.yes { background: var(--brand-soft); color: var(--brand); }
.wish-grid td.off { background: var(--warn-soft); color: var(--warn); }
.wish-grid td.note-cell { text-align: left; white-space: normal; min-width: 120px; font-size: 12px; }
.hours-grid td.hcell { min-width: 38px; cursor: pointer; font-variant-numeric: tabular-nums; }
.hours-grid td.hcell:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.banner.lock { background: #f1edf9; color: #5b4a8a; }
.wish-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.wish-day { display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.wish-day b { display: flex; justify-content: space-between; }
.wish-day.sat b { color: var(--sat); }
.wish-day button { min-height: 32px; padding: 2px 6px; }
.wish-day button.picked { background: var(--brand); color: #fff; border-color: var(--brand); }
.settings { display: grid; gap: 8px; }
.settings label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.menu-form { display: grid; gap: 6px; padding: 4px; font-size: 13px; }
.menu-form label { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
@media print {
  .day-print { break-inside: avoid; border: none; padding: 0; margin-bottom: 8px; }
  input.time { border: none; background: none; width: auto; }
}

.helper-alert { background: var(--error-soft); color: var(--error); border: 1px solid #f2c5bf; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.helper-alert ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.helper-alert small { color: var(--error); display: block; margin-top: 4px; }
.help-days { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.help-days button { min-height: 28px; padding: 2px 8px; font-size: 13px; border-color: #f2c5bf; color: var(--error); }
.date-chips button.alert { border-color: var(--error); background: var(--error-soft); color: var(--error); }
.date-chips button.alert.on { background: var(--error); color: #fff; }

/* デモ */
.demo-btn { background: #fff; color: var(--brand); border-color: #fff; font-weight: 700; }
.demo-badge { font-size: 12px; background: #f0a04b; color: #fff; padding: 3px 8px; border-radius: 999px; }
body.demo-on { padding-bottom: 46vh; }
#demo { position: fixed; z-index: 60; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(600px, calc(100vw - 32px)); max-height: 44vh; overflow: auto;
  background: var(--paper); border: 2px solid #f0a04b; border-radius: 14px; box-shadow: 0 12px 32px #0003; padding: 12px 14px; }
#demo h3 { margin: 4px 0 6px; font-size: 17px; }
#demo p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; }
.demo-bar { height: 4px; background: var(--na); border-radius: 2px; overflow: hidden; }
.demo-bar span { display: block; height: 100%; background: #f0a04b; transition: width .3s; }
.demo-step { font-size: 12px; color: var(--muted); margin-top: 6px; }
.demo-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-btns .quiet { margin-left: auto; }
.demo-hl { scroll-margin-top: 72px; outline: 3px solid #f0a04b !important; outline-offset: 2px; box-shadow: 0 0 0 8px #f0a04b33 !important; border-radius: 6px; animation: demo-pulse 1.6s ease-in-out 3; }
@keyframes demo-pulse { 50% { box-shadow: 0 0 0 14px #f0a04b11; } }
.act-btn { margin-top: 4px; min-height: 28px; padding: 2px 8px; font-size: 12px; }
.act-btn.done { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
td.hcell { position: relative; }
td.hcell i.by { position: absolute; right: 1px; top: 0; font-size: 9px; font-style: normal; color: var(--warn); }

@media (max-width: 600px) {
  #demo { max-height: 36vh; padding: 10px 12px; bottom: 8px; }
  #demo h3 { font-size: 15px; }
  #demo p { font-size: 13px; line-height: 1.6; }
  .demo-btns button { min-height: 32px; padding: 4px 10px; }
  body.demo-on { padding-bottom: 40vh; }
}

/* 勤務希望カレンダー */
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head div { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-head .wd-日, .cal-cell.wd-日 b { color: var(--error); }
.cal-head .wd-土, .cal-cell.wd-土 b { color: var(--sat); }
.cal-cell { min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); text-align: left; font-size: 12px; line-height: 1.3; }
.cal-cell.blank { border: none; background: none; }
.cal-cell.closed { background: #f0efe9; color: var(--muted); }
.cal-cell.is-set { background: var(--brand-soft); border-color: var(--brand); }
.cal-cell.is-off { background: var(--warn-soft); border-color: var(--warn); }
.cal-cell .time { font-size: 11px; letter-spacing: -0.02em; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.cal-cell .off { font-weight: 700; color: var(--warn); }
.cal-cell .usual, .cal-cell .none { color: var(--muted); }
.wish-grid td.usual { color: var(--muted); }

/* 配置：枠に当てはめる */
.board { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 960px) { .board { grid-template-columns: minmax(0, 1fr); } }
.board-side { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px; position: sticky; top: 8px; }
@media (max-width: 960px) { .board-side { position: static; } }
.mc-head, .mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.mc-head span { font-size: 11px; color: var(--muted); }
.mc { min-height: 38px; padding: 2px 0; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 6px; line-height: 1.1; }
.mc small { font-size: 9px; }
.mc.off { color: #bbb; }
.mc.lack { background: var(--error-soft); color: var(--error); border-color: #f2c5bf; }
.mc.ok small { color: #7cae9a; }
.mc.on { outline: 2px solid var(--brand); font-weight: 700; }
.mc-head .wd-日, .mc.wd-日 { color: var(--error); }
.board-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.board-head h2 { margin: 0; font-size: 18px; }
.board-head h2 small { margin-left: 8px; }
.board-head .spacer { flex: 1; }
.wp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.wp-card { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--wp); border-radius: 10px; padding: 10px; }
.wp-card.lack { border-color: #f2c5bf; border-top-color: var(--error); }
.wp-card h3 { margin: 0 0 6px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.slot-row { border-top: 1px dashed var(--line); padding: 6px 0; }
.slot-row:first-of-type { border-top: none; }
.slot-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.slot-label small { margin-left: 6px; }
.slot-names { display: flex; flex-wrap: wrap; gap: 6px; }
.name-chip { min-height: 34px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); border-color: #b9d6cd; font-weight: 600; position: relative; cursor: grab; }
.name-chip small { margin-left: 4px; font-weight: normal; }
.name-chip i { font-style: normal; font-size: 10px; margin-left: 2px; }
.name-chip.bad { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.name-chip.free { background: #fff; }
.empty-slot { min-height: 34px; border: 2px dashed var(--error); color: var(--error); background: var(--error-soft); border-radius: 999px; font-weight: 700; }
.add-slot { min-height: 34px; min-width: 34px; border-radius: 999px; border-style: dashed; color: var(--muted); padding: 2px 10px; }
[data-drop].drag-over { background: var(--brand-soft); }
.free-box { margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.free-box h3 { width: 100%; margin: 0 0 4px; font-size: 14px; }
.free-box h3 small { margin-left: 6px; }
.menu-sub { font-size: 11px; color: var(--muted); padding: 6px 4px 2px; border-top: 1px solid var(--line); }
.menu-sub:first-child { border-top: none; }
.menu-pick { display: grid; gap: 2px; }
.warn-t { color: var(--warn); }
input.color { width: 44px; min-height: 30px; padding: 0 2px; }

/* 紙の表（今の勤務表・配車表の形） */
.sheet-screen { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px; overflow-x: auto; }
.sheet-table { border-collapse: collapse; width: 100%; table-layout: fixed; margin-bottom: 14px; font-size: 11px; }
.sheet-table th, .sheet-table td { border: 1px solid #999; padding: 2px 1px; text-align: center; height: 22px; overflow: hidden; white-space: nowrap; text-overflow: clip; }
.sheet-table .sh-name { width: 120px; text-align: left; padding-left: 4px; font-weight: 600; background: #fff; }
.sheet-table.tr .sh-name { width: 150px; }
.sheet-table .sh-day { font-weight: 600; }
.sheet-table .sh-wd.wd-日 { color: var(--error); }
.sheet-table .sh-wd.wd-土 { color: var(--sat); }
.sheet-table td.sh-off { background: #f3f3f0; }
.sheet-table td.sh-cell { font-size: 10px; }
.sheet-table td.edit { cursor: pointer; }
.sheet-table td.edit:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.sheet-table td.many { font-size: 8px; }
.sheet-table td.miss { color: var(--error); font-weight: 700; box-shadow: inset 0 0 0 2px var(--error); }
.sheet-table.place td { white-space: normal; text-align: left; font-size: 10px; height: auto; }
.sheet-table.place .sh-name { width: 60px; }
.sh-legend { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; font-size: 11px; }
.sh-legend span { padding: 1px 6px; border: 1px solid #ccc; border-radius: 3px; }
.sh-legend .miss { color: var(--error); }
@media (max-width: 700px) { .sheet-table { width: 900px; } }

/* 表にする */
.sheet-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.sheet-tools label { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.paper-wrap { padding: 16px; overflow-x: auto; }
.paper { background: #fff; color: #111; margin: 0 auto; padding: 10mm; box-shadow: 0 4px 20px #0002; }
.paper.A4-portrait { width: 210mm; min-height: 297mm; }
.paper.A4-landscape { width: 297mm; min-height: 210mm; }
.paper.A3-portrait { width: 297mm; min-height: 420mm; }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; font-size: 13px; }
.paper-head b { font-size: 14px; margin-left: 20px; }
.paper-head .right { text-align: right; color: #555; }
.paper .sheet-table { font-size: 9px; }
.paper .sheet-table th, .paper .sheet-table td { height: 18px; }
.paper .sheet-table .sh-name { width: 26mm; }
.paper .sheet-table.tr .sh-name { width: 34mm; }
.paper-note { margin-top: 6px; font-size: 11px; line-height: 1.7; }
body.sheet-on .note { padding: 0 16px 24px; }

.helper-btn { background: var(--error-soft); color: var(--error); border-color: #f2c5bf; font-weight: 700; }
.banner.notice { margin: 0 16px 10px; background: var(--brand-soft); color: var(--brand); }

/* 職員の入口 */
.staff-tabs { padding: 0; margin: 0 0 12px; background: none; }
main.staff.wide { max-width: 1200px; }
.sheet-table tr.mine th, .sheet-table tr.mine td { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.sheet-table tr.mine th { background: var(--brand-soft); }
.sheet-table td.mine { outline: 3px solid var(--ink); outline-offset: -3px; font-weight: 700; }
.ledger .sub-col { color: var(--muted); }

/* その場で赤く（一覧の代わり） */
.layout { grid-template-columns: minmax(0, 1fr) !important; }
.badge.red { background: var(--error); color: #fff; font-weight: 700; }
.leg.bad { border-color: var(--error); box-shadow: 0 0 0 2px var(--error-soft); }
.leg.bad h3 .t { color: var(--error); }
.car-probs { background: var(--error-soft); color: var(--error); font-size: 12px; font-weight: 700; padding: 4px 6px; border-radius: 6px; margin-bottom: 6px; }
.day-title.bad-title { color: var(--error); }
.bad-note { color: var(--error) !important; margin-left: 8px; font-weight: 700; }
.date-chips button.alert small { font-size: 9px; }
.name-chip.bad { background: var(--error-soft) !important; border-color: var(--error) !important; color: var(--error) !important; }
.sheet-table th.sh-day.lack { background: var(--error); color: #fff; }
.map-btn { margin-left: auto; min-height: 26px; padding: 1px 8px; }
.car-head { align-items: center; gap: 6px; }
.map-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 14px; }
.map-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 4px; }
.map-head a.route-search { background: var(--brand); color: #fff; font-weight: 700; padding: 6px 12px; border-radius: 8px; text-decoration: none; }
.seg.mini { display: inline-flex; gap: 4px; margin: 0; }
iframe.map-canvas { border: 0; display: block; }
.map-route { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.map-canvas { width: 100%; height: 420px; border-radius: 8px; background: #eef0ec; overflow: hidden; }
.map-pin { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 4px #0005; cursor: pointer; }
.map-pin.hq { background: var(--error); width: 30px; height: 30px; }
.closed-day { border-style: dashed; }
.closed-day label { display: inline-flex; gap: 6px; align-items: center; margin-right: 10px; }

.day-cfg { margin-left: auto; min-height: 24px; padding: 0 6px; font-size: 11px; }
.day-note { font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 2px 6px; border-radius: 4px; margin-bottom: 4px; display: inline-block; }
.add-place { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; font-size: 13px; }
#menu:has(.wide) { width: 340px; }
.menu-form.wide input:not([type]), .menu-form.wide select { flex: 1; min-width: 0; }
.np-days { font-size: 13px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.menu-form .np-days .ck, .menu-form label.ck { display: inline-flex; justify-content: flex-start; gap: 4px; }

/* 配車：地図を車のカードの横に・直し方 */
.leg.with-map .leg-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.leg.with-map .cars { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .leg.with-map .leg-body { grid-template-columns: minmax(0, 1fr); } }
.leg-map { position: sticky; top: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.leg-map .map-head { margin: 0; }
.leg-map .map-canvas { height: 380px; }
.leg-map a.route-search { justify-self: start; background: var(--brand); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.car.sel { border-color: #1a73e8; box-shadow: 0 0 0 2px #1a73e833; }
.map-btn.on { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.map-pin { position: relative; width: 26px; height: 26px; border-radius: 50%; background: #1a73e8; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 4px #0006; cursor: pointer; }
.map-pin.hq { background: var(--error); width: 30px; height: 30px; }
.pin-label { position: absolute; left: 28px; top: 2px; background: #fff; color: #222; font-size: 11px; font-weight: 700; padding: 0 4px; border-radius: 4px; box-shadow: 0 1px 3px #0003; white-space: nowrap; }
.fix-all { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.fix-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fix-list li { background: #fff; border-radius: 8px; padding: 6px 8px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.fix-list .who { font-weight: 700; color: var(--error); }
.fix-list .who small { margin-left: 6px; color: var(--muted); font-weight: normal; }
.fix-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.fix-btns select { font-size: 12px; min-height: 28px; }
.no-ride { margin: 6px 0; color: var(--muted); }

/* 勤務希望：案・くるくる */
.cal-cell { min-height: 72px; }
.cal-cell .plan-chip { font-size: 10px; line-height: 1.3; color: #5b4a8a; background: #f1edf9; border-radius: 4px; padding: 1px 3px; }
.wish-sum { margin-top: 8px; font-size: 13px; }
.wish-sum b { font-size: 16px; color: var(--brand); }
.quick { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.wheels { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; margin: 4px 0; }
select.wheel { font-size: 18px; min-height: 40px; padding: 2px 6px; }
.type-in { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 4px; }
.type-in input { flex: 1; min-width: 0; font-size: 16px; }
#menu:has(.wheels) { width: 300px; }

/* 職員の入口：今日の仕事 */
.today-card { background: var(--paper); border: 2px solid var(--brand); border-radius: 16px; padding: 14px; display: grid; gap: 10px; margin-bottom: 12px; }
.today-date { font-size: 22px; font-weight: 700; }
.today-tag { background: var(--brand); color: #fff; font-size: 13px; padding: 2px 8px; border-radius: 999px; margin-right: 8px; vertical-align: middle; }
.band { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--wp, #eee); border-radius: 12px; padding: 14px 12px; font-size: 20px; }
.band.off { display: block; text-align: center; color: var(--muted); background: #f3f3f0; }
.band-slot { font-size: 13px; background: #fff9; padding: 2px 8px; border-radius: 999px; }
.band-time { font-size: 15px; font-variant-numeric: tabular-nums; }
.drive-big { border: 2px solid var(--car, #ccc); border-radius: 12px; background: #fff; }
.drive-big summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px; font-size: 18px; cursor: pointer; }
.drive-big summary::-webkit-details-marker { display: none; }
.drive-big .car-ic { font-size: 24px; }
.drive-big .car-name { background: var(--car); padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.drive-big .cnt { margin-left: auto; font-size: 13px; color: var(--muted); }
.drive-big .stops { margin: 0 12px 8px; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; }
.drive-big .stops small { margin-left: 6px; }
.drive-big .route-search, .leg .car .route-search { display: inline-block; margin: 0 12px 12px; background: var(--brand); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.leg .car .route-search { margin: 8px 0 0; }
.today-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.wk-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; min-height: 76px; background: var(--paper); border: 1px solid var(--line); font-size: 12px; line-height: 1.1; }
.wk-day.on { border: 2px solid var(--brand); }
.wk-day.off { color: #bbb; background: #f6f6f3; }
.wk-day b { font-size: 15px; }
.wk-blocks { display: grid; gap: 2px; width: 100%; padding: 0 3px; }
.wk-blocks i { font-style: normal; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 2px 0; text-align: center; min-height: 14px; }
.wk-car { font-size: 12px; }
.month-mini, .everyone { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 12px; }
.month-mini summary, .everyone summary { cursor: pointer; font-weight: 700; }
.mm-head, .mm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; margin-top: 6px; }
.mm-head span { font-size: 11px; color: var(--muted); }
.mm-grid .wk-day { min-height: 60px; }
.date-chips button.has-car { border-color: var(--brand); }

/* すっきりしたツールバーとタブ */
.toolbar .spacer { flex: 1; }
.toolbar button.primary small { font-size: 11px; margin-left: 4px; color: #ffffffcc; }
.subtabs { display: flex; gap: 6px; padding: 8px 16px 0; }
.subtabs button { min-height: 32px; padding: 4px 14px; border-radius: 999px; }
.subtabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 600px) { .toolbar .spacer { display: none; } }

/* 印刷：A4 横。操作部分は隠す */
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body { background: #fff; font-size: 11px; }
  .no-print, .menu { display: none !important; }
  .print-only { display: block; }
  .print-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
  .layout { display: block; padding: 0; }
  .grid-wrap, .table-wrap { overflow: visible; max-height: none; border: none; }
  .grid th, .grid td { font-size: 9px; padding: 2px; position: static !important; }
  .staff-grid td.cell { min-width: 0; height: auto; }
  .panel, .car { break-inside: avoid; }
  body.sheet-on .paper-wrap { padding: 0; overflow: visible; }
  body.sheet-on .paper { box-shadow: none; margin: 0; padding: 0; width: auto; min-height: 0; }
  body.sheet-on .sheet-table th, body.sheet-on .sheet-table td { position: static !important; }
  .sheet-table td, .sh-legend span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 勤務開始・勤務終了（職員の入口・スマホでも押しやすく大きく） */
.punch { background: var(--paper); border: 2px solid var(--line, #d3d1c7); border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; display: grid; gap: 10px; }
.punch-working { border-color: var(--brand); }
.punch-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.punch-head span { color: var(--muted, #5f5e5a); }
.punch-working .punch-head span { color: var(--brand); font-weight: 600; }
.punch-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.punch-btn { font-size: 20px; font-weight: 700; padding: 18px 8px; border-radius: 14px; border: 0; color: #fff; cursor: pointer; }
.punch-btn.start { background: #2f7d5b; }
.punch-btn.end { background: #c4572f; }
.punch-btn:disabled { background: #d3d1c7; color: #6b6a64; cursor: default; }
.punch > .small { justify-self: start; }
td.hcell.working { background: #e1f5ee; }

/* 利用者台帳：お迎えの時間 */
.pick-time { margin-top: 4px; font-size: 13px; color: var(--muted); }
.day-picks { display: grid; grid-template-columns: repeat(2, auto); gap: 2px 10px; min-width: 230px; }
.day-pick { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
input.small-time { width: 84px; font-size: 12px; padding: 1px 2px; }

/* 配置表のカード：その日の数字・時間をその場で直す */
.wp-card h3 .day-nums { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.wp-card h3 .day-nums input.num { width: 46px; padding: 1px 3px; }
.slot-label input.small-time { width: 80px; }

/* 勤務希望：台帳の時間を仮に入れた所はうすく。休み希望は大きく */
td.wish.tent { color: var(--muted); font-style: italic; }
.cal-cell.is-tent .time { color: var(--muted); }
.cal-cell .time small { font-size: 10px; }
.added-place { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }
fieldset.ledger-ro { border: 0; margin: 0; padding: 0; min-width: 0; }
.wish-big { display: block; width: 100%; margin-top: 10px; padding: 14px; font-size: 18px; font-weight: 700; border-radius: 12px; cursor: pointer; text-align: center; }
.menu button.wish-big { text-align: center; min-height: 56px; }
.wish-ok { border: 2px solid var(--brand); background: var(--brand); color: #fff; }
.wish-off-big { border: 2px solid var(--error); background: var(--error-soft); color: var(--error); }
.wish-tabs { margin: 6px 0; }
.wish-tabs button { flex: 1; text-align: center; }
.wish-segs { margin: 8px 0 0; }
.wish-seg { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; margin: 3px 0; font-size: 14px; background: var(--brand-soft); }
.wish-seg.gh { background: #efe3f7; }
.wish-seg button { margin-left: auto; }

/* 職員の入口：今週・勤務実績のカレンダー */
.wk-title { font-size: 15px; margin: 4px 0 6px; }
.ac-cal .ac-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); text-align: left; cursor: pointer; font-size: 12px; }
.ac-cell.done { background: var(--warn-soft); }
.ac-cell.working { background: #e1f5ee; border-color: var(--brand); }
.ac-cell .time.plan { color: var(--muted); }
input.small-time.auto { color: var(--muted); }

/* 固定カード（調理場など） */
.wp-card.fixed { border-style: dashed; }
.fixed-tag { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 11px; font-weight: 600; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.pm-btn { margin-left: 4px; }
.pm-btn.on { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }

/* イベント */
.fixed-tag.ev { background: #fbeaf0; color: #993556; }
.ev-spots { display: grid; gap: 4px; }
#ev-spots { display: grid; gap: 4px; }
.cal-cell .ev-chip, td.wish .ev-chip { display: block; font-size: 10px; color: #993556; background: #fbeaf0; border-radius: 4px; padding: 0 3px; margin-top: 2px; }
.wish-notes { margin-top: 12px; }
.wish-notes li { margin: 4px 0; }
.wp-card h3[hidden] { display: none; }
.ev-mlist { display: flex; flex-wrap: wrap; gap: 2px 8px; max-height: 140px; overflow: auto; padding: 4px 0; }
.free-box[hidden] { display: none; }
td.hcell.forgot { background: var(--error-soft); }
td.hcell.forgot i.by { color: var(--error); }

/* 確かめ・お知らせの窓（画面の中に出す） */
.dlg-back { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 30, 28, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dlg { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 18px; width: min(420px, 100%); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); display: grid; gap: 12px; }
.dlg-msg { margin: 0; line-height: 1.7; white-space: pre-wrap; }
.dlg-input { width: 100%; padding: 8px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; box-sizing: border-box; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.brand em.real { background: #c0392b; color: #fff; }
.brand em.real.cloud { background: #1f7a5a; }

/* 起動の画面（ディスポの名刺の裏の配色：上ターコイズ・下白） */
.splash { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; opacity: 1; transition: opacity 0.9s ease; }
.splash.hide { opacity: 0; pointer-events: none; }
.splash-top { flex: 3; background: #4db8bd; display: flex; align-items: center; justify-content: center; }
.splash-logo { width: min(46vw, 240px); height: auto; filter: brightness(0) invert(1); animation: splash-in 0.9s ease both; }
.splash-bottom { flex: 1; background: #f7f6f2; display: flex; align-items: center; justify-content: center; color: #3b8f92; font-size: 15px; letter-spacing: 0.3em; }
@keyframes splash-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .splash { transition: opacity 0.2s; } .splash-logo { animation: none; } }
.sh-cell.duty { font-size: 0.85em; }
.wish-car { display: flex; align-items: center; gap: 6px; margin: 8px 0; font-size: 14px; }
.dispo-mark { font-style: normal; font-size: 10px; padding: 0 3px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.wish-input { display: block; width: 100%; margin: 6px 0; padding: 8px; font-weight: 700; text-align: center !important; border: 2px dashed var(--brand); color: var(--brand); background: #fff; border-radius: 10px; }
.duty-mark { font-style: normal; font-size: 10px; margin-left: 2px; padding: 0 3px; border-radius: 4px; background: #efe3f7; color: #5b2a7a; white-space: nowrap; }
.car-mark { font-style: normal; font-size: 10px; margin-left: 2px; padding: 0 3px; border-radius: 4px; background: var(--out); color: var(--out-ink); }
/* 台帳の名前の欄：名前がすべて見える幅に */
input.wide-name { width: 16em; max-width: 100%; }
/* 小さなスマホでも、開いたメニューの下まで届くように（2026-11-08） */
#menu { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; }

/* 職員台帳の並べかえ */
.drag-handle { cursor: grab; color: var(--muted); text-align: center; user-select: none; font-size: 16px; }
.drag-handle:active { cursor: grabbing; }
tr.drop-above > td { box-shadow: inset 0 3px 0 var(--accent, #2f6f62); }
tr.drop-below > td { box-shadow: inset 0 -3px 0 var(--accent, #2f6f62); }
/* 足りない便の解決案 */
.fix-plans { display: grid; gap: 6px; margin: 6px 0 8px; }
.fix-plan { display: grid; gap: 2px; text-align: left; background: #fff; border: 1px solid #cfcfc6; border-radius: 8px; padding: 7px 10px; height: auto; white-space: normal; font-weight: normal; }
.fix-plan b { font-size: 13px; }
.fix-plan span { font-size: 12px; }
.fix-plan small { font-size: 11px; }
.fix-plans p { margin: 2px 0; }
.fix-each { margin: 4px 0; font-weight: 700; }
.leg h3 .leg-fix { margin-left: auto; }
button.badge { border: 0; cursor: pointer; min-height: 0; }
.absent-box { background: #fff7f5; border-color: #f2c5bf; }
.name-chip.absent { background: #fff; border: 1px dashed var(--error); color: var(--error); cursor: default; }
.name-chip.absent small { margin-left: 4px; color: var(--muted); }
/* 経路を検索する（車のカードの右上）：Google マップへ */
.car-head .route-link { margin-left: auto; white-space: nowrap; background: var(--brand); color: #fff; font-weight: 700; padding: 3px 10px; border-radius: 6px; text-decoration: none; font-size: 12px; }
/* 字が切れないように：選ぶ欄・ボタンは中の字の長さに合わせる */
select { max-width: 100%; text-overflow: clip; }
button, .name-chip, .badge { white-space: nowrap; }
.fix-plan, .fix-plan span, .fix-plan small { white-space: normal; }
@supports (field-sizing: content) { select { field-sizing: content; } }
/* ほかの勤務先（クラス裏参道・やっちゃば）のカード */
.wp-card.other-work { border-style: dashed; background: #fbfaf6; }
.name-chip.other { cursor: default; background: #fff; }
.name-chip.other small { margin-left: 4px; color: var(--muted); }
.cal-cell.other-only { background: #fbfaf6; border-style: dashed; }
.wish-grid th.other-col { background: #f3f2ec; color: var(--muted); }
.brand em.ledger-warn { background: #fff4d6; color: #7a4b00; font-weight: 700; white-space: normal; }
.feedback-btn { font-size: 12px; min-height: 30px; padding: 2px 10px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
/* ログインの画面（本番のクラウド） */
.login-page { max-width: 420px; margin: 40px auto; padding: 0 16px; }
.login-box h2 { margin-top: 0; }
.login-box .menu-form { margin: 12px 0; }
.login-box .menu-form label { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 4px; margin-bottom: 10px; }
.login-box .menu-form input { font-size: 16px; padding: 8px; width: 100%; box-sizing: border-box; }
.login-box .primary { width: 100%; padding: 10px; font-size: 16px; }
.login-box .small { font-size: 12px; margin-top: 16px; }
