:root {
  /* カフェラテ・ミニマル（ラテのロゴの色に合わせた落ち着いた茶色） */
  --bg: #FBF8F4; --fg: #2B1D16; --muted: #75655B; --card: #fff; --line: #EFE6DC; --line-strong: #D9C7B5;
  --accent: #8A5232; --accent-fg: #FBF3EA; --primary: #2B1D16; --latte: #F6EDE3; --latte-2: #EADFD2;
  --caramel: #B3541E; --caramel-bg: #FBE6D9; --heart: #D99A9C; --error: #B3261E; --ok: #2E7D5A; --warn-bg: #FBF1E4;
  --radius: 22px; --shadow: 0 1px 0 rgba(43,29,22,.04), 0 10px 26px -18px rgba(43,29,22,.35);
  --font: "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --num: "Outfit", "Zen Kaku Gothic New", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--font); -webkit-tap-highlight-color: transparent; }
main { max-width: 960px; margin: 0 auto; padding: 8px 16px 24px; }
body.has-tabbar main { padding-bottom: 112px; }
h1 { font-size: 1.45rem; margin: 8px 0 16px; letter-spacing: .02em; }
h2 { font-size: 1.08rem; margin: 22px 0 10px; }
a { color: var(--accent); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px 6px 16px; max-width: 960px; margin: 0 auto; }
.brand { display: flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand img { height: 34px; width: auto; display: block; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.back-btn { display: inline-flex; align-items: center; gap: 2px; padding: 6px 8px 6px 2px; margin-left: -6px; color: var(--accent); text-decoration: none; font-size: .9rem; border-radius: 10px; flex: none; }
.back-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.back-btn:active { background: var(--latte); }
.help-link { font-size: .9rem; padding: 10px 8px; text-decoration: none; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--latte-2); color: #5A3A28; display: flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; }
.who { margin-right: 8px; }
.inline { display: inline; }
.card { background: var(--card); border: 0; border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.warn { background: var(--warn-bg); }
.card > h2:first-child { margin-top: 0; }
.page-login .topbar { display: none; }
.muted { color: var(--muted); }
.menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.menu .button { display: flex; align-items: center; justify-content: center; }
.button, button { display: inline-block; padding: 12px 22px; min-height: 48px; border: 0; border-radius: 999px; background: var(--primary); color: var(--accent-fg); font: 700 1rem/1.4 var(--font); letter-spacing: .04em; text-decoration: none; text-align: center; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease; }
.button:active, button:active { transform: scale(.97); }
.button.secondary, button.secondary-btn { background: var(--card); color: var(--fg); border: 1.5px solid var(--line-strong); }
button.link { background: none; padding: 0; min-height: 0; border-radius: 0; color: var(--accent); font-weight: 400; letter-spacing: 0; text-decoration: underline; }
button.link:active { transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.list { list-style: none; padding: 0; margin: 0 0 16px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.list li { padding: 12px 16px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li a { display: block; text-decoration: none; color: inherit; }
.list li.current { background: var(--latte); }
.tag { display: inline-block; font-size: .78rem; padding: 1px 9px; border-radius: 99px; background: var(--latte-2); color: #5A3A28; margin-left: 4px; font-weight: 700; }
.tag.on { background: #DDEFE3; color: var(--ok); }
.fields { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.fields dt { color: var(--muted); }
.fields dd { margin: 0; }
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, select { font-size: 1rem; padding: 10px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; width: 100%; font-family: inherit; }
.checks > div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: flex; align-items: center; gap: 4px; min-height: 36px; }
.checks input { width: 20px; height: 20px; flex: none; margin: 0; }
.req { font-size: .75rem; color: var(--error); }
.error { color: var(--error); }
.msg { padding: 12px 16px; border-radius: 16px; background: #E9F3EC; }
.msg.error { background: #FDECEA; }
.msg.warning { background: var(--latte); }
.table-scroll { overflow-x: auto; margin-bottom: 12px; }
.matrix { border-collapse: collapse; background: var(--card); font-size: .9rem; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; }
.matrix tbody th { white-space: normal; min-width: 6.5em; max-width: 8em; text-align: left; font-size: .8rem; position: sticky; left: 0; background: var(--card); }
.matrix thead th { position: sticky; top: 0; background: var(--latte); font-size: .8rem; }
.matrix td.check { text-align: center; }
.matrix input[type=checkbox] { width: 22px; height: 22px; }
.month-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.month-nav a { padding: 8px 0; }
.sheet { border-collapse: collapse; background: var(--card); font-size: .85rem; }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 4px 6px; text-align: center; min-width: 2em; }
.sheet th.name { text-align: left; white-space: nowrap; position: sticky; left: 0; background: var(--card); z-index: 1; }
.sheet thead th { background: var(--latte); }
.sheet th.weekend { background: #f0e2d2; }
.sheet td.total, .sheet tfoot td { font-weight: bold; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.inline-form select { width: auto; flex: 1 1 12em; min-width: 0; max-width: 100%; }
button.small, .button.small { padding: 6px 12px; min-height: 36px; font-size: .9rem; margin-top: 6px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.tag.warn-tag { background: #fdecea; color: var(--error); }
.filter input[type=search] { flex: 1 1 12em; font-size: 1rem; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.filter select { width: auto; }
details.card summary { cursor: pointer; }
.list.days li.off { background: #f7f3ee; }
.punch-times { display: flex; gap: 24px; margin: 8px 0; }
.punch-times div { display: flex; flex-direction: column; }
.punch-times strong { font-size: 1.6rem; font-family: var(--num); font-weight: 500; }
.punch-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.punch-buttons button { font-size: 1.2rem; min-height: 56px; }
details.request { margin-top: 6px; }
details.request summary { cursor: pointer; color: var(--accent); }
.inline-form label { display: flex; align-items: center; gap: 4px; }
.inline-form input[type=time], .inline-form input[type=text] { font-size: 1rem; padding: 8px; border: 1.5px solid var(--line-strong); border-radius: 12px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input { width: 22px; height: 22px; margin-top: 2px; }
@media (max-width: 480px) {
  .fields { grid-template-columns: 1fr; }
  .fields dd { margin-bottom: 8px; }
}
/* 日付・時刻の入力欄：iPhone（Safari）では独自の幅を持ち、画面の右にはみ出すので、幅を枠に合わせる */
input[type=date], input[type=time], input[type=month], input[type=datetime-local] {
  -webkit-appearance: none; appearance: none;
  display: block; min-width: 0; max-width: 100%; min-height: 44px;
  font-family: inherit; text-align: left; color: inherit;
}
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value,
input[type=month]::-webkit-date-and-time-value { text-align: left; }
.inline-form input[type=time] { display: inline-block; width: 8em; }
textarea { font-size: 1rem; padding: 10px; border: 1.5px solid var(--line-strong); border-radius: 14px; width: 100%; font-family: inherit; line-height: 1.6; }
pre.sent { white-space: pre-wrap; font-size: .85rem; background: #f7f3ee; padding: 8px; border-radius: 6px; }
.observation { white-space: normal; }
.progress { height: 14px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.progress div { height: 100%; background: #C9A989; border-radius: 99px; transition: width .8s ease; }
.list.records li { font-size: .95rem; }

/* 長い URL などが画面の右にはみ出さないように折り返す */
p, li, dd, td { overflow-wrap: break-word; }
input[type=file] { max-width: 100%; }

/* 報告書の一覧：チェックを付けてまとめて選ぶ */
.pick-row { display: flex; gap: 10px; align-items: flex-start; }
.pick-row > input[type=checkbox] { width: 22px; height: 22px; margin-top: 4px; flex: none; }
.pick-row > a { flex: 1; }
.batch-bar { display: flex; flex-direction: column; gap: 8px; }
.batch-list li { display: flex; justify-content: space-between; gap: 8px; }
.duty-edit { margin: 6px 0 0 32px; }

/* 経営の数字のグラフ（色は凡例と表と一緒に使う。色だけで見分けない） */
:root { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --series-5: #e87ba4; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5em, 1fr)); gap: 8px; margin-bottom: 16px; }
.stat { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
.stat strong { font-size: 1.6rem; line-height: 1.2; font-family: var(--num); font-weight: 500; }
.stat small { font-size: .85rem; margin-left: 2px; }
.stats.money strong { font-size: 1.35rem; }
.chart-wrap { width: 100%; max-width: 720px; }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .baseline { stroke: var(--muted); stroke-width: 1; }
svg.chart .axis { fill: var(--muted); font-size: 18px; }
.dash-table th, .dash-table td { white-space: nowrap; }
svg.chart .hit { fill: transparent; }
svg.chart g:hover .hit { fill: rgba(0, 0, 0, .04); }
.legend { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; }
.legend .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: baseline; }
.migrate input[type=date] { width: 9.5em; padding: 6px; font-size: .85rem; }
.migrate input[type=number] { width: 5em; padding: 6px; font-size: .85rem; }
/* 稼働率の小さな棒（100%で満杯。数字も必ず一緒に出す） */
.rate-bar { display: block; height: 4px; margin-top: 3px; background: var(--line); border-radius: 2px; overflow: hidden; min-width: 3em; }
.rate-bar span { display: block; height: 100%; background: var(--series-1); }
.util-table td { vertical-align: top; }
.util-filter { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.util-filter .field { flex: 1 1 10em; margin: 0; }
/* 使い方のページ */
details.help > summary { cursor: pointer; }
details.help ul, details.help ol { padding-left: 1.3em; line-height: 1.8; }
/* 安否確認 */
.safety-buttons { display: flex; flex-direction: column; gap: 10px; }
.safety-btn { font-size: 1.15rem; padding: 16px; border-radius: 12px; border: 0; color: #fff; }
.safety-btn.safety-ok_work { background: #1b8a5a; }
.safety-btn.safety-ok_no_work { background: #b07800; }
.safety-btn.safety-help { background: #c0392b; }
strong.safety-help { color: #c0392b; }
strong.safety-ok_no_work { color: #8a5d00; }
strong.safety-ok_work { color: #1b8a5a; }
.safety-alert { border: 2px solid #c0392b; }
.safety-client-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.safety-client-form input[type=text] { flex: 1 1 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
@media print { .no-print, .topbar, .tabbar, .toast-wrap { display: none !important; } body.has-tabbar main { padding-bottom: 0; } .card { box-shadow: none; border: 1px solid #ddd; } }

/* ===== 新しいデザイン（2026-10）：下のタブ・ホーム・動き ===== */
/* 下のタブ（ホーム／勤怠／申請／やること／メニュー） */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px; justify-content: center; text-decoration: none; color: #8C7B70; font-size: 11px; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--fg); font-weight: 700; }
.tabbar .badge { position: absolute; top: 0; left: 50%; margin-left: 6px; }
@media (min-width: 720px) { .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: 520px; bottom: 14px; border: 1px solid var(--line); border-radius: 24px; padding-bottom: 8px; box-shadow: 0 16px 36px -22px rgba(43,29,22,.5); } }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--caramel); color: #fff; font: 700 11px/20px var(--num); text-align: center; display: inline-block; }

/* ホーム */
.greeting { padding: 4px 4px 12px; display: flex; flex-direction: column; gap: 0; }
.greeting .date { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.greeting .hello { font-size: 1.4rem; font-weight: 700; letter-spacing: .02em; }
.today-card { background: var(--primary); color: var(--accent-fg); border-radius: 28px; padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 14px 30px -14px rgba(43,29,22,.55); margin-bottom: 16px; }
.today-card a { color: #F3E6D8; }
.today-card .label { font-size: .8rem; color: #CDB8A6; letter-spacing: .08em; }
.today-card .pill { font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: rgba(251,243,234,.12); color: #F3E6D8; }
.today-card .hours { font: 300 2.4rem/1 var(--num); letter-spacing: .02em; }
.today-card .hours .sep { color: #9C8573; margin: 0 6px; }
.today-card .stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.today-card .stats3 div { display: flex; flex-direction: column; gap: 2px; }
.today-card .stats3 span { font-size: .75rem; color: #CDB8A6; }
.today-card .stats3 strong { font: 500 1.25rem/1.2 var(--num); }
.today-card .note { font-size: .78rem; color: #CDB8A6; margin: 0; }
.today-card .msg { background: rgba(251,243,234,.1); color: var(--accent-fg); }
.punch-btn-wrap { position: relative; display: flex; }
.punch-btn-wrap .ring { position: absolute; inset: 0; border-radius: 999px; border: 2px solid #E7CBAE; animation: ring 2.2s ease-out infinite; pointer-events: none; }
.punch-btn { position: relative; width: 100%; min-height: 60px; border-radius: 999px; background: #F3E6D8; color: var(--fg); font-size: 1.12rem; letter-spacing: .12em; }
.punch-btn.out { background: transparent; color: #F3E6D8; border: 1.5px solid rgba(243,230,216,.5); }
.punch-done { display: flex; align-items: center; gap: 12px; background: rgba(251,243,234,.1); border-radius: 18px; padding: 12px 14px; }
.punch-done .tick { width: 36px; height: 36px; border-radius: 50%; background: #F3E6D8; display: flex; align-items: center; justify-content: center; flex: none; }
.punch-done small { display: block; color: #CDB8A6; }

.todo-card { padding: 16px 16px 6px; }
.todo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.todo-head h2 { margin: 0; font-size: 1rem; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { border-bottom: 1px solid #F1EAE2; }
.todo-list li:last-child { border-bottom: 0; }
.todo-list a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--fg); }
.todo-list .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--latte); display: flex; align-items: center; justify-content: center; flex: none; }
.todo-list .ico svg { width: 20px; height: 20px; stroke: var(--accent); }
.todo-list .txt { flex: 1; font-size: .9rem; line-height: 1.5; }
.todo-list .chev { width: 18px; height: 18px; stroke: #B9A89B; flex: none; }
.todo-list li.returned .ico { background: var(--caramel-bg); }
.todo-list li.returned .ico svg { stroke: var(--caramel); }
.todo-list li.returned .txt { color: #8E3F14; font-weight: 700; }
.todo-list li.ghost { overflow: hidden; animation: leave .5s ease-in .35s both; pointer-events: none; }
.todo-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 20px; text-align: center; }
.todo-empty strong { font-size: .95rem; }
.todo-empty .muted { font-size: .8rem; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: var(--card); border-radius: 20px; padding: 14px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); font-size: .82rem; text-align: center; box-shadow: 0 8px 20px -16px rgba(43,29,22,.3); transition: transform .15s; min-height: 88px; }
.tile svg { width: 26px; height: 26px; stroke: var(--accent); }
.tile:active { transform: scale(.96); }
.section-label { font-size: .88rem; font-weight: 700; color: #5A4A40; margin: 4px 4px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.section-label a { font-weight: 400; font-size: .82rem; }

/* メニュー（まとめた一覧） */
.menu-group { margin-bottom: 18px; }
.menu-group h2 { font-size: .85rem; color: var(--muted); margin: 0 4px 8px; font-weight: 700; letter-spacing: .06em; }
.menu-list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.menu-list li + li { border-top: 1px solid #F1EAE2; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; min-height: 52px; text-decoration: none; color: var(--fg); background: none; border-radius: 0; font: 400 .95rem/1.4 var(--font); letter-spacing: 0; text-align: left; }
.menu-list a::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #C9B8AA; border-top: 2px solid #C9B8AA; transform: rotate(45deg); flex: none; }
.menu-list .ico { width: 34px; height: 34px; border-radius: 11px; background: var(--latte); display: flex; align-items: center; justify-content: center; flex: none; }
.menu-list .ico svg { width: 19px; height: 19px; stroke: var(--accent); }

/* お知らせ（✓ がはずむ） */
.toast-wrap { position: fixed; left: 0; right: 0; top: 12px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 11px 18px 11px 11px; border-radius: 999px; background: var(--primary); color: var(--accent-fg); font-size: .9rem; font-weight: 700; box-shadow: 0 14px 28px -14px rgba(43,29,22,.7); animation: bounceIn .55s cubic-bezier(.2,.7,.2,1) both; }
.toast .tick { width: 28px; height: 28px; border-radius: 50%; background: #F3E6D8; display: flex; align-items: center; justify-content: center; flex: none; }
.toast .tick path { stroke-dasharray: 24; animation: check .4s ease-out .25s both; }
.toast.error { background: var(--error); padding-left: 18px; animation: bounceIn .55s cubic-bezier(.2,.7,.2,1) both, shake .6s ease-in-out .55s; }
.toast.hide { animation: toastOut .4s ease-in both; }
button.sent, .button.sent { background: #F3E6D8 !important; color: var(--fg) !important; animation: bounceIn .5s cubic-bezier(.2,.7,.2,1) both; }

/* 差し戻し：開いたときに一度だけ小さく揺れる */
.shake { animation: shake .6s ease-in-out .7s both; }
.returned-note { border-left: 0; background: var(--caramel-bg); color: #8E3F14; }

/* コーヒー豆のお祝い（手当の申請がすべて終わったとき） */
.beans { position: fixed; inset: 0; pointer-events: none; z-index: 55; overflow: hidden; }
.beans svg { position: absolute; top: -40px; animation: fall linear both; }

/* 下に引っぱって更新（ホーム） */
.ptr { position: fixed; left: 0; right: 0; top: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 10px; pointer-events: none; opacity: 0; }
.ptr .cup { position: relative; width: 34px; height: 30px; }
.ptr .steam { position: absolute; top: -12px; opacity: 0; }
.ptr.loading .steam { animation: steamUp 1.2s ease-in-out infinite; }
.ptr.loading .steam.s2 { animation-delay: .4s; }
.ptr span { font-size: .75rem; color: var(--muted); }
body.ptr-anim .page-shift { transition: transform .35s cubic-bezier(.2,.7,.2,1); }

/* 出勤・退勤したときの画面（ラテのカップ） */
.punch-overlay { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 24px; text-align: center; animation: fadeIn .25s ease-out both; }
.punch-overlay.hide { animation: fadeOut .35s ease-in both; }
.latte { position: relative; width: 200px; height: 200px; }
.latte .saucer { position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: 0 30px 50px -28px rgba(43,29,22,.45), inset 0 0 0 10px #F1E8DE; }
.latte .coffee { position: absolute; inset: 17px; border-radius: 50%; overflow: hidden; background: #6B3F26; }
.latte .milk { position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, #F6E7D3 0 38%, #D9B48F 39% 52%, #8C5A39 70%); }
.latte .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.latte .art path { stroke-dasharray: 100; }
.latte .steam { position: absolute; top: -36px; }
.latte .moon { position: absolute; right: -8px; top: -14px; }
.latte .dim { position: absolute; inset: 0; background: rgba(43,29,22,.18); }
.punch-overlay.in .milk { animation: fill 1.1s cubic-bezier(.3,.7,.2,1) .2s both; }
.punch-overlay.in .art path { animation: draw 1s ease-out 1.2s both; }
.punch-overlay.in .steam { animation: steam 2.4s ease-in-out 2s infinite; }
.punch-overlay.in .steam.s2 { animation-delay: 2.6s; }
.punch-overlay.out .steam { animation: steamOut 1.4s ease-out .4s both; }
.punch-overlay.out .steam.s2 { animation-delay: .6s; }
.punch-overlay.out .dim { animation: fadeIn 1.2s ease-out 1s both; }
.punch-overlay.out .cupwrap { animation: settle 1s ease-in-out 1.6s both; }
.punch-overlay.out .moon { animation: twinkle .6s cubic-bezier(.2,.7,.2,1) 1.9s both; }
.punch-overlay .cupwrap { position: absolute; inset: 0; }
.punch-overlay .t1, .punch-overlay .t2, .punch-overlay .t3 { animation: rise .5s ease-out both; }
.punch-overlay .t1 { animation-delay: 1.9s; } .punch-overlay .t2 { animation-delay: 2.1s; } .punch-overlay .t3 { animation-delay: 2.3s; }
.punch-overlay .what { font-size: .9rem; color: var(--muted); letter-spacing: .1em; }
.punch-overlay .time { font: 200 4rem/1 var(--num); letter-spacing: .02em; }
.punch-overlay p { margin: 0; font-size: 1.05rem; font-weight: 500; line-height: 1.7; }
.punch-overlay .t3 { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 10px; }
.punch-overlay .info { display: flex; justify-content: space-between; background: #fff; border-radius: 16px; padding: 12px 16px; font-size: .88rem; box-shadow: 0 8px 20px -16px rgba(43,29,22,.3); }
.punch-overlay .info span:first-child { color: var(--muted); }

/* 報告書を作っている間（カップにミルクが満ちる） */
.brew { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 0 6px; }
.brew .cup { position: relative; width: 150px; height: 150px; margin-top: 24px; }
.brew .saucer { position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: 0 24px 40px -26px rgba(43,29,22,.45), inset 0 0 0 9px #F1E8DE; }
.brew .coffee { position: absolute; inset: 13px; border-radius: 50%; overflow: hidden; background: #6B3F26; }
.brew .milk { position: absolute; left: 0; right: 0; bottom: 0; transition: height .6s cubic-bezier(.3,.7,.2,1); background: radial-gradient(circle at 50% 30%, #F6E7D3 0 45%, #E2C3A2 75%); }
.brew .wave { position: absolute; left: 0; top: -8px; width: 200%; height: 9px; animation: wave 1s linear infinite; }  /* 1秒ごとに画面を読み直すので、1秒でひと回り */
.brew .steam { position: absolute; top: -32px; animation: steam 1s ease-in-out infinite; }
.brew .steam.s2 { animation-delay: .5s; }
.brew .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.brew .art path { stroke-dasharray: 100; animation: draw .9s ease-out both; }
.brew .pct { font: 200 2.8rem/1 var(--num); }
.brew .pct small { font-size: 1.2rem; margin-left: 2px; }

/* ログイン */
.login-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 0 28px; animation: rise .7s cubic-bezier(.2,.7,.2,1) .1s both; }
.login-hero img { width: 180px; height: auto; }
.login-hero span { font-size: .82rem; color: var(--muted); letter-spacing: .3em; }
.login-actions { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; animation: rise .6s cubic-bezier(.2,.7,.2,1) .4s both; }
.login-actions .button, .login-actions button { width: 100%; min-height: 56px; }

/* 共通の動き */
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.12, 1.45); opacity: 0; } }
@keyframes rise { 0% { transform: translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bounceIn { 0% { transform: scale(.7); opacity: 0; } 55% { transform: scale(1.08); opacity: 1; } 75% { transform: scale(.97); } 100% { transform: scale(1); } }
@keyframes toastOut { 0% { transform: none; opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
@keyframes check { 0% { stroke-dashoffset: 24; } 100% { stroke-dashoffset: 0; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-6px); } 30% { transform: translateX(5px); } 45% { transform: translateX(-4px); } 60% { transform: translateX(3px); } 75% { transform: translateX(-1px); } }
@keyframes leave { 0% { opacity: 1; transform: none; max-height: 90px; } 50% { opacity: 0; transform: translateX(28px); max-height: 90px; } 100% { opacity: 0; transform: translateX(28px); max-height: 0; border-bottom-width: 0; } }
@keyframes heartPop { 0% { transform: scale(.3); opacity: 0; } 55% { transform: scale(1.2); opacity: 1; } 75% { transform: scale(.95); } 100% { transform: scale(1); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.14); } 28% { transform: scale(1); } 42% { transform: scale(1.08); } 56% { transform: scale(1); } }
@keyframes badgeBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes fall { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(105vh) rotate(var(--rot, 260deg)); opacity: 0; } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .7; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes steamUp { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes steamOut { 0% { opacity: .75; transform: none; } 100% { opacity: 0; transform: translateY(-22px) scaleY(1.2); } }
@keyframes fill { 0% { transform: translateY(100%); } 100% { transform: none; } }
@keyframes draw { 0% { stroke-dashoffset: 100; } 100% { stroke-dashoffset: 0; } }
@keyframes settle { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes twinkle { 0% { opacity: 0; transform: scale(.4) rotate(-20deg); } 60% { opacity: 1; transform: scale(1.1); } 100% { opacity: 1; transform: none; } }
@keyframes wave { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.heart-pop { animation: heartPop .6s cubic-bezier(.2,.7,.2,1) both; display: inline-block; }
.heart-pop svg { animation: beat 1.8s ease-in-out .7s infinite; display: block; }
.rise { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.rise2 { animation: rise .5s .08s cubic-bezier(.2,.7,.2,1) both; }
.rise3 { animation: rise .5s .16s cubic-bezier(.2,.7,.2,1) both; }
.bump { animation: badgeBump .35s ease-out both; }
/* 動きを減らす設定の人には、動きを止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .beans, .ptr { display: none !important; }
  .todo-list li.ghost { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.page-home { overscroll-behavior-y: contain; }
.big-yen { display: block; font-weight: 300; font-size: 2.6rem; line-height: 1.1; letter-spacing: .01em; }
/* 長いボタンの文字を1行に（スマホで途中で折り返さない） */
.nowrap-btn { white-space: nowrap; width: 100%; font-size: clamp(.8rem, 4.2vw, 1rem); padding-left: 12px; padding-right: 12px; letter-spacing: 0; }

/* お願いのお知らせ（ホームを開いたとき） */
dialog.popup { border: 0; border-radius: 26px; padding: 22px 18px 18px; width: min(92vw, 440px); background: var(--bg); color: var(--fg); box-shadow: 0 30px 60px -20px rgba(43,29,22,.5); animation: bounceIn .45s cubic-bezier(.2,.7,.2,1) both; }
dialog.popup::backdrop { background: rgba(43,29,22,.45); }
.seg { margin-bottom: 12px; gap: 8px; }
.seg .button { margin: 0; }
/* ホームの「よく使う」を選ぶ画面 */
.sc-list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.sc-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; min-height: 58px; }
.sc-list li + li { border-top: 1px solid #F1EAE2; }
.sc-list .ico { width: 34px; height: 34px; border-radius: 11px; background: var(--latte); display: flex; align-items: center; justify-content: center; flex: none; }
.sc-list .ico svg { width: 19px; height: 19px; stroke: var(--accent); }
.sc-list .name { flex: 1; min-width: 0; }
.sc-actions { display: flex; gap: 6px; flex: none; }
.sc-actions button { margin: 0; min-width: 44px; min-height: 42px; padding: 6px 12px; white-space: nowrap; letter-spacing: 0; }
.tile-add { background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.day-hours { margin: 4px 0 16px; }
.day-hours summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.day-hours-table th, .day-hours-table td { padding: 3px; white-space: nowrap; }
.day-hours-table input { width: 6.4em; font-size: .9rem; padding: 6px 4px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; font-family: inherit; }
.day-hours-table td input[type=number] { width: 3.6em; }
.time-range { display: flex; align-items: center; gap: 8px; }
.time-range input { flex: 1; min-width: 0; }

/* マニュアル */
.manual-search { display: flex; gap: 8px; align-items: center; }
.manual-search input[type=search] { flex: 1; min-width: 0; font-size: 1rem; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff; font-family: inherit; }
.manual-search button { margin: 0; flex: none; }
.manual-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--latte); color: var(--primary); font-size: .85rem; text-decoration: none; border: 1px solid var(--latte-2); }
.chip:hover { background: var(--latte-2); }
mark { background: #F8E3B5; color: inherit; border-radius: 3px; padding: 0 1px; }
.manual-hits a { display: block; }
.manual-bm { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.manual-bm form { flex: none; }
.manual-index details { background: var(--card); border-radius: 14px; margin: 6px 0; padding: 10px 14px; box-shadow: var(--shadow); }
.manual-index summary { cursor: pointer; font-weight: 700; }
.manual-index summary a { text-decoration: none; color: inherit; }
.manual-index ul { margin: 8px 0 0; padding-left: 1.2em; }
.manual-index li { margin: 4px 0; }
.manual-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.manual-tools { display: flex; gap: 6px; }
.manual-tools button { margin: 0; }
.manual-toc ul { margin: 0; padding-left: 1.2em; }
.manual-toc li { margin: 4px 0; }
.manual-body { line-height: 1.85; }
body.manual-large .manual-body { font-size: 1.15rem; }
.manual-h3 { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 24px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.manual-sec:first-child .manual-h3 { border-top: 0; margin-top: 0; padding-top: 0; }
.manual-h3 h3 { font-size: 1.05rem; margin: 0; scroll-margin-top: 16px; }
.manual-actions { display: flex; gap: 2px; flex: none; }
.manual-actions form { margin: 0; }
.icon-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; background: none; border: 0; padding: 2px 6px; margin: 0; min-height: 0; color: var(--muted); font-size: .65rem; cursor: pointer; box-shadow: none; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.on svg { fill: var(--accent); }
.icon-btn.copied span { color: var(--accent); }
.manual-body ul, .manual-body ol { padding-left: 1.4em; }
.manual-body li { margin: 4px 0; }
.manual-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.manual-table { border-collapse: collapse; background: var(--card); font-size: .9rem; min-width: 100%; }
.manual-table th, .manual-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.manual-table thead th { background: var(--latte); white-space: nowrap; }
.manual-checks { list-style: none; padding-left: 0 !important; }
.manual-checks label { display: flex; gap: 8px; align-items: flex-start; }
.manual-checks input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--accent); }
.manual-pager { margin: 16px 0; gap: 12px; }
.manual-totop { position: fixed; right: 16px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 31; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #FBF3EA; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.manual-totop.show { opacity: .85; pointer-events: auto; }
@media print {
  .tabbar, .manual-top, .manual-actions, .manual-links, .manual-pager, .manual-totop, .manual-hl, .topbar { display: none !important; }
  .manual-body { box-shadow: none; }
}
.manual-index-link { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: 14px; margin: 6px 0; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 700; color: inherit; text-decoration: none; }
.manual-index-link svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; flex: none; }
.export-period { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.export-period .field { margin: 0; flex: 1 1 9em; }
.export-period button { margin: 0; }
.export-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.export-list li a.button { flex: none; margin: 0; display: inline-flex; color: #FBF3EA; padding: 8px 16px; }
.read-mark { color: var(--accent); font-weight: 700; }
.manual-read { text-align: center; }
.manual-read button { margin: 4px auto; }

/* 入社の手続き */
.ob-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ob-bar { height: 8px; border-radius: 99px; background: var(--latte-2); overflow: hidden; margin: 6px 0; }
.ob-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.ob-list a { display: block; }
.ob-people { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0; font-size: .9rem; }
.ob-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.ob-steps a { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--primary); font-weight: 700; font-family: var(--num); }
.ob-steps a.done { background: var(--accent); color: #FBF3EA; }
.ob-step h2 { display: flex; align-items: center; gap: 8px; margin-top: 0; font-size: 1.05rem; scroll-margin-top: 12px; }
.ob-num, .ob-check { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex: none; }
.ob-num { background: var(--latte-2); color: var(--primary); font-family: var(--num); }
.ob-check { background: var(--accent); color: #FBF3EA; }
.ob-tasks { list-style: none; padding: 0; margin: 0; }
.ob-tasks li { padding: 10px 0; border-top: 1px solid var(--line); }
.ob-tasks li:first-child { border-top: 0; }
.ob-task-main { display: flex; gap: 10px; align-items: flex-start; }
.ob-task-main form { margin: 0; flex: none; }
.ob-box { width: 28px; height: 28px; min-height: 0; padding: 0; margin: 0; border-radius: 8px; border: 2px solid var(--line-strong); background: #fff; color: #FBF3EA; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; box-shadow: none; }
.ob-box.on { background: var(--accent); border-color: var(--accent); }
.is-done strong { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.is-na { opacity: .6; }
.is-late .ob-box { border-color: var(--error); }
.ob-soon { color: var(--warn, #B3541E); font-weight: 700; }
.ob-task-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0 38px; }
.ob-task-actions form, .ob-task-actions .button { margin: 0; }
.ob-memo summary { cursor: pointer; font-size: .85rem; color: var(--accent); }
.ob-memo form { display: flex; gap: 6px; margin-top: 6px; }
.ob-memo input { flex: 1; min-width: 0; padding: 6px 8px; border: 1.5px solid var(--line-strong); border-radius: 10px; font-family: inherit; }
.ob-guide h2 { font-size: 1.05rem; margin-top: 20px; }
.ob-guide-table th { text-align: left; width: 6em; }
.ob-guide-list { list-style: none; padding-left: .5em; }
.ob-guide-list li { margin: 4px 0; }

/* 紹介元の候補（打つと出る） */
.suggest { list-style: none; margin: -6px 0 12px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); }
.suggest-item { display: block; width: 100%; text-align: left; background: none; color: inherit; border: 0; border-radius: 8px; padding: 10px 12px; font-weight: normal; min-height: 0; box-shadow: none; }
.suggest-item:hover, .suggest-item:focus { background: var(--latte); }
.suggest-none { margin: -6px 0 12px; font-size: .85rem; }
.merge-box .suggest { margin-top: 4px; }
.merge-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; }
.merge-item + .merge-item { border-top: 1px solid var(--line); }
.merge-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.merge-actions .secondary-btn { padding: 6px 12px; min-height: 0; }

/* 訪問エリアの地図 */
.area-map { height: 62vh; min-height: 360px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); z-index: 0; }
.area-pt { background: #fff; border: 3px solid var(--accent); border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* 見え方の確認をしているときの帯 */
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--caramel-bg); color: var(--caramel); border-radius: 14px; padding: 10px 14px; margin: 0 0 14px; font-size: .9rem; font-weight: 500; }

/* 取り込みの「おそらくこれ？」 */
.src-pick { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; margin: 0 0 12px; }
.src-pick legend { padding: 0 4px; }
.src-option { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; }
.src-option input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; }

/* 営業マップ */
.map-filter { display: flex; flex-direction: column; gap: 8px; }
.pin-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); margin-right: 4px; vertical-align: -1px; }
.route-list { margin: 0 0 8px; padding-left: 22px; }
.route-list li { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.route-name { flex: 1; text-align: left; background: none; border: 0; color: inherit; padding: 6px 0; font-weight: normal; box-shadow: none; min-height: 0; }
.route-list .small { min-width: 36px; }
#near-list .route-name { width: 100%; }
.map-record { margin-top: 10px; }

/* hidden 属性は、ボタンの display より先に効かせる */
[hidden] { display: none !important; }

/* 紹介元のページの「地図の場所」 */
.place-map { height: 280px; border-radius: 14px; border: 1px solid var(--line); margin: 10px 0; }
#place-q { font-size: 1rem; padding: 10px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; min-width: 0; font-family: inherit; }

/* 営業の記録：よく使う言葉のボタン */
.phrase-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.chip { font: inherit; font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--fg); cursor: pointer; }
.chip:active { background: var(--latte); }
.chip-radio { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; }
.chip-radio:has(input:checked) { background: var(--latte-2); border-color: var(--accent); }
.pin-shape { vertical-align: -3px; margin-right: 4px; flex-shrink: 0; filter: drop-shadow(0 0 1px rgba(0,0,0,.35)); }
.shape-legend { font-size: .85rem; line-height: 1.9; }
.shape-item { display: inline-flex; align-items: center; margin-right: 10px; white-space: nowrap; }
/* 研修費補助 */
.year-nav { margin: 0 0 12px; align-items: center; }
.year-nav label { margin: 0; }
.subsidy-summary .big-num { margin: 0 0 8px; font-size: 1rem; }
.subsidy-summary .big-num strong { font-family: var(--num); font-size: 1.9rem; margin-left: 4px; }
.meter { display: flex; height: 10px; border-radius: 99px; background: #F6EDE3; overflow: hidden; }
.meter-used { background: #2B1D16; }
.meter-planned { background: #C9A88A; }
.report-form { margin-top: 8px; flex-wrap: wrap; align-items: center; gap: 6px; }
.report-form label { margin: 0; font-size: .9rem; }
.report-form input[type=number] { width: 8.5em; }
.inline-details { margin-top: 6px; }
.inline-details > summary { cursor: pointer; font-size: .85rem; }
ul.tight { margin: .5rem 0 0; padding-left: 1.2em; }
ul.tight li { margin-bottom: .35rem; }
/* LINE WORKS のボットの設定 */
.bot-event { padding: 10px 0; border-top: 1px solid var(--line); }
.bot-event:first-of-type { border-top: 0; padding-top: 0; }
.bot-event-head { margin-bottom: 6px; }
.bot-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: .9rem; }
/* フォーマットで報告 */
.format-preview pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: .92rem; background: #F6EDE3; border-radius: 12px; padding: 12px; margin: 8px 0; }
.mention-picks { max-height: 260px; overflow-y: auto; margin-top: 6px; }

/* 「何をしますか？」の案内（guide） */
.guide-form { display: flex; gap: 8px; }
.guide-form input { flex: 1; min-width: 0; }
.guide-h { font-size: .9rem; margin: 14px 0 6px; color: var(--muted, #75655B); }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.guide-list li { display: grid; gap: 2px; }
.guide-btn { display: inline-flex; align-items: center; gap: 6px; justify-self: start; }
.guide-btn svg { width: 18px; height: 18px; flex: none; stroke: currentColor; }
