/* 営業サポート
   レイアウト: スマホ1カラム。上に名前バー、下に固定タブバー。PCでは中央 640px 幅。 */
/* 配色：メイン＝黄色と白、サブ＝黒（どの端末でも同じ見た目にするため、ダークモードには切り替えない） */
:root {
  --bg: #fbf9f1;          /* 白（わずかに温かみ） */
  --surface: #ffffff;     /* カード・入力欄 */
  --ink: #141414;         /* 文字（黒） */
  --muted: #625d4f;
  --line: #e7e1cc;
  --accent: #ffcc00;      /* 黄色：出勤・主要ボタン・選択中 */
  --accent-ink: #141414;  /* 黄色の上の文字 */
  --accent-soft: #fff4bf; /* 薄い黄色：ラベル・今日の列 */
  --accent-text: #7a5c00; /* 白い背景の上で読める濃い黄色 */
  --chrome: #141414;      /* 黒：上の名前バー・下のメニュー */
  --chrome-ink: #ffffff;
  --chrome-muted: #a9a49a;
  --focus: #141414;
  --clockout: #141414;    /* 退勤ボタン（黒） */
  --clockout-ink: #ffffff;
  --clockout-soft: #ecebe6;
  --danger: #b42318;
  --sat: #2563a8;
  --sun: #c0392b;
  --gold: #ffcc00;
  --silver: #c9ccd1;
  --bronze: #d49a6a;
  --medal-ink: #141414;
  --danger-soft: #fde8e6;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 4px 16px rgba(20, 20, 20, .06);

  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --font-num: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
.hint { color: var(--muted); font-size: .875rem; }
.small { font-size: .8125rem; }
.mono { font-family: var(--font-num); word-break: break-all; }
.eyebrow { color: var(--accent-text); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------- フォーム ---------- */
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-size: .8125rem; font-weight: 600; color: var(--muted); padding: 0; }
input[type="text"], input:not([type]), input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="month"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* iPhoneで拡大されないように */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); }
.form-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .875rem;
}

.seg { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px 8px; cursor: pointer; background: var(--surface); }
.seg label + label span { border-left: 1px solid var(--line); }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -3px; }

/* ---------- ボタン ---------- */
.btn {
  font: inherit;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 11px 18px;
  cursor: pointer;
  min-height: 44px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-small { padding: 6px 12px; min-height: 36px; font-size: .8125rem; }

/* ---------- ログイン画面 ---------- */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- アプリ枠 ---------- */
.app { min-height: 100%; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--chrome);
  color: var(--chrome-ink);
  border-bottom: 3px solid var(--accent);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  font-size: .6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  white-space: nowrap;
}
.badge-muted { background: var(--bg); color: var(--muted); }
.content {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px calc(96px + env(safe-area-inset-bottom, 0px));
}
.tab { display: flex; flex-direction: column; gap: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--chrome);
  border-top: 1px solid var(--chrome);
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar button {
  flex: 1;
  max-width: 128px;
  background: none;
  border: 0;
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
  color: var(--chrome-muted);
  padding: 10px 4px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { color: var(--accent); }

/* ---------- パネル・リスト ---------- */
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.user-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.user-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.user-list li:first-child { border-top: 0; }
.user-list .u-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-list .u-name { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.user-list .u-email { color: var(--muted); font-size: .8125rem; word-break: break-all; }
.user-list li.inactive .u-name { color: var(--muted); text-decoration: line-through; }
.empty { padding: 24px 16px; text-align: center; color: var(--muted); }

/* ---------- ダイアログ・通知 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 18, 16, .5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 92%;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 600px) {
  .modal { align-items: center; padding: 16px; }
  .modal-card { border-radius: 16px; }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  max-width: calc(100% - 32px);
}
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in .18s ease-out; }
  @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } }
}

/* ---------- 勤怠 ---------- */
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.status-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-date { font-size: 1.125rem; font-weight: 700; }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-times { color: var(--muted); font-size: .875rem; }
.pill {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
}
.pill-in { background: var(--accent-soft); color: var(--accent-text); }
.pill-out { background: var(--clockout-soft); color: var(--ink); }
.pill-warn { background: var(--danger-soft); color: var(--danger); }

.report-form { gap: 14px; }
.report-title { font-weight: 700; font-size: 1rem; }
.sub-title { font-weight: 700; font-size: .875rem; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .875rem; color: var(--muted); }
.kv span { white-space: nowrap; }
.kv b { color: var(--ink); font-size: 1rem; text-align: right; }
.kv + .hint { margin-top: -10px; text-align: right; }
.btn-big { min-height: 56px; font-size: 1.0625rem; }
.btn-clockin { background: var(--accent); color: var(--accent-ink); }
.btn-clockout { background: var(--clockout); color: var(--clockout-ink); }
.geo-ask {
  background: var(--danger-soft);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .875rem;
  color: var(--ink);
}
.geo-ask .row-end { justify-content: flex-start; }

.month-input { width: auto; max-width: 180px; padding: 6px 10px; font-size: 15px; }

.report-view {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.report-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: .875rem;
  line-height: 1.7;
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
}
.map-box { display: flex; flex-direction: column; gap: 6px; }
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
}
.map-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
.map-meta a { color: var(--accent-text); font-weight: 600; }

.rec-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.rec-list li + li { border-top: 1px solid var(--line); }
.rec-list .rec {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rec-list button.rec { cursor: pointer; }
.rec-list .rec-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rec-list .rec-title { font-weight: 700; }
.rec-list .rec-sub { color: var(--muted); font-size: .8125rem; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.rec-list .chev { color: var(--muted); }
.rec-list .rec-sub { display: flex; flex-wrap: wrap; column-gap: 10px; }
.nowrap { white-space: nowrap; }

/* ---------- 生産性ランキング ---------- */
.rank-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.rank-list li + li { border-top: 1px solid var(--line); }
.rank-row {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
}
button.rank-row { cursor: pointer; }
.rank-row.me { background: var(--accent-soft); }
.rank-no {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
  background: var(--bg);
}
.rank-no.r1 { background: var(--gold); color: var(--medal-ink); }
.rank-no.r2 { background: var(--silver); color: var(--medal-ink); }
.rank-no.r3 { background: var(--bronze); color: var(--medal-ink); }
.rank-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rank-name { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rank-sub { color: var(--muted); font-size: .8125rem; font-family: var(--font-num); font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; column-gap: 10px; }
.rank-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rank-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.rank-value { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.rank-value b { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 1.375rem; line-height: 1.1; }
.rank-value small { color: var(--muted); font-size: .6875rem; }
.rank-idle .rank-name { color: var(--muted); }

/* 獲得件数の修正 */
.fix-summary { background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: .875rem; font-family: var(--font-num); }
.fix-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fix-list li { display: grid; grid-template-columns: minmax(0, 1fr) 84px auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.fix-list li:first-child { border-top: 0; }
.fix-date { display: flex; flex-direction: column; min-width: 0; }
.fix-date b { font-weight: 700; }
.fix-date span { color: var(--muted); font-size: .75rem; }
.fix-list input { padding: 8px 10px; text-align: right; }
.fix-note { font-size: .8125rem; color: var(--accent-text); font-weight: 600; }

/* ---------- シフト ---------- */
.spacer { flex: 1; }
.btn-danger-text { color: var(--danger); border-color: transparent; }
.shift-scroll {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.shift-table { border-collapse: separate; border-spacing: 0; font-size: .75rem; min-width: 100%; }
.shift-table th, .shift-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0;
  text-align: center;
  white-space: nowrap;
}
.shift-table thead th { padding: 6px 2px; font-weight: 600; color: var(--muted); background: var(--surface); }
.shift-table thead th b { display: block; color: var(--ink); font-family: var(--font-num); font-size: .8125rem; }
.shift-table th.sat b, .shift-table th.sat { color: var(--sat); }
.shift-table th.sun b, .shift-table th.sun { color: var(--sun); }
.shift-table .today { background: var(--accent-soft); }
.shift-table .name-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  text-align: left;
  padding: 6px 10px;
  font-size: .8125rem;
  font-weight: 700;
  min-width: 80px;
  white-space: nowrap;
}
.shift-table .name-part { display: block; line-height: 1.35; }
.shift-table tr.me .name-col { color: var(--accent-text); }
.shift-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 52px;
  min-height: 44px;
  padding: 4px 2px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  background: none;
  border: 0;
  color: inherit;
  font-size: .6875rem;
}
button.shift-cell { cursor: pointer; }
button.shift-cell:hover { background: var(--bg); }
.shift-cell.work { color: var(--ink); font-weight: 600; }
.shift-cell.off { color: var(--muted); }
.shift-cell .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 2px; }
.my-shift .rec-title.today-mark::after { content: "今日"; margin-left: 8px; font-size: .6875rem; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }

/* ---------- 領収書 ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
}
.cal-wd { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); padding: 2px 0 6px; }
.cal-wd.sat { color: var(--sat); }
.cal-wd.sun { color: var(--sun); }
.cal-day {
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-family: var(--font-num);
  font-size: .875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 0;
}
.cal-day.sat { color: var(--sat); }
.cal-day.sun { color: var(--sun); }
.cal-day.today { border-color: var(--ink); }
.cal-day.future { opacity: .45; }
.cal-day[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.cal-count {
  min-width: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: .6875rem;
  font-weight: 700;
  line-height: 18px;
}
.cal-day[aria-selected="true"] .cal-count { background: var(--accent-ink); color: var(--accent); }
.cal-blank { aspect-ratio: 1 / 1; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.thumb {
  background: var(--bg);
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  color: inherit;
  font: inherit;
  text-align: left;
  min-width: 0;
}
.thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--line); }
.thumb span { font-size: .6875rem; padding: 4px 6px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-box { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.upload-btn { display: flex; align-items: center; justify-content: center; text-align: center; }
.upload-btn.busy { opacity: .6; pointer-events: none; }
#receipt-file:focus-visible + .upload-btn, .upload-btn:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.viewer-img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; background: var(--bg); }
.viewer-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }

/* スマホ用アドレス */
.url-text { font-size: .9375rem; font-weight: 700; color: var(--ink); }

/* ---------- シフト管理表の連携 ---------- */
.sheet-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.shift-cell { width: 76px; }
.shift-cell .cell-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  word-break: break-all;
  font-family: var(--font);
  font-size: .6875rem;
  line-height: 1.3;
}
.shift-cell.pending { color: var(--accent-text); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit;
  font-size: .8125rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  min-height: 36px;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
#sheet-settings-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
#sheet-settings-panel summary::-webkit-details-marker { display: none; }
#sheet-settings-panel summary::after { content: "▾"; color: var(--muted); }
#sheet-settings-panel[open] summary::after { content: "▴"; }
#sheet-settings-panel[open] summary { margin-bottom: 8px; }
.steps { background: var(--bg); border-radius: 8px; padding: 12px; font-size: .8125rem; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.steps ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.shift-table .name-part.unlinked { font-size: .625rem; font-weight: 600; color: var(--danger); }

/* 月の切り替え */
.month-nav { display: inline-flex; align-items: center; gap: 4px; }
.month-btn { min-width: 40px; font-size: 1.125rem; line-height: 1; padding: 6px 10px; }
.month-label { min-width: 7.5em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 黒いバーの上のボタン・通知 */
.topbar .btn-ghost { color: var(--chrome-ink); border-color: rgba(255, 255, 255, .35); }
.topbar .badge { background: var(--accent); color: var(--accent-ink); }
.tabbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.toast { background: var(--chrome); color: var(--chrome-ink); border-left: 4px solid var(--accent); }
.thumbs > p { grid-column: 1 / -1; }

/* Excel（CSV）書き出し */
.export-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.export-buttons .btn { justify-content: center; text-align: center; }
