/* ライフログ — diary look (top bar, day cards, tabs, pencil, day page, calendar,
   search labels). Modelled on the reference screenshot of 2026-10-02.
   Restyle here; the markup lives in src/pages/{shell,diary-card,day-page,calendar-page,tasks-page}.js. */
:root {
  --appbar-h: 4rem;
  /* 下のタブの位置: LINE のようにホームバーのすぐ上（iPhone の下端の余白に少し食い込ませる）。上に浮く部品はこれを基準にする */
  /* --vv-shift: public/vv-fix.js が入れる iOS のビューポートずれ（px・通常は 0）。下端基準の部品をまとめて補正する */
  --vv-shift: 0px;
  --tab-bottom: calc(max(.45rem, calc(env(safe-area-inset-bottom) - .85rem)) - var(--vv-shift));
  --card: #1c1c1e; --card-ink: #f2f2f7; --card-mute: #a1a1a6; --date-mute: #8e8e93;
  --bar-btn: #1c1c1e; --bar-btn-line: #3a3a3c;
  --tabbar: rgba(44, 44, 46, .92); --tab-on: rgba(99, 99, 102, .55);
  --fab: #8e8e93; --fab-ink: #f2f2f7;
  --kind-diary: #c3a6ff; --kind-digest: #7fb6ff; --kind-summary: #f2c66d; --kind-transcript: #5cc9a7;
  --kind-event: #ff9f8a; --kind-journal: #e8b98a; --kind-work: #8fd3ff; --kind-pc: #b5c0cc;
  --ev-del: #c9302c; --ev-del-armed: #ff3b30;
}

/* 安全網（2026-11-20）: どこかの部品が画面幅を超えても、ページ全体が横に広がって縮まない（iOS で上のバーが半分の幅になった件）。
   clip は scroll コンテナを作らないので上のバーの sticky は効いたまま。部品そのもののはみ出しは e2e（layout_guard.py）で見つける。 */
body { overflow-x: clip; }

/* ---------- app bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center;
  gap: .5rem; min-height: var(--appbar-h); padding: .5rem 1rem; padding-top: max(.5rem, env(safe-area-inset-top));
  background: color-mix(in srgb, #1c1c1e 94%, transparent); backdrop-filter: blur(10px);
}
.appbar-title { margin: 0; text-align: center; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.bar-btn {
  width: 3rem; height: 3rem; display: inline-grid; place-items: center; border-radius: 50%;
  background: var(--bar-btn); border: 1px solid var(--bar-btn-line); color: var(--ink); text-decoration: none;
}
.bar-btn.ghost { visibility: hidden; }
.ico { width: 1.45rem; height: 1.45rem; display: block; }
main.with-tabs { padding-bottom: 8.5rem; }

/* ---------- list ---------- */
.search.compact { margin-top: .2rem; }
.diary-list { list-style: none; margin: 0; padding: 0; }
.diary-list .month h2 { color: var(--ink); font-size: 1.2rem; font-weight: 700; margin: 1.1rem 0 .6rem .2rem; }
.dcard-item { margin: 0 0 .75rem; }
.dcard {
  display: grid; grid-template-columns: 3.6rem 1fr; gap: .9rem; padding: 1rem 1rem 1.05rem .6rem;
  background: var(--card); border-radius: 6px; color: var(--card-ink); text-decoration: none;
}
.dcard:active { opacity: .85; }
.dcard-date { display: flex; flex-direction: column; align-items: center; color: var(--date-mute); padding-top: .1rem; }
.dcard-wd { font-size: .8rem; line-height: 1.2; }
.dcard-num { font-size: 1.9rem; font-weight: 700; line-height: 1.25; letter-spacing: .01em; }
.dcard-time { font-size: .8rem; font-variant-numeric: tabular-nums; margin-top: .35rem; }
.dcard-main { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.dcard-title {
  font-size: 1.22rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.dcard-title.pending { color: var(--card-mute); font-weight: 500; font-size: 1.05rem; }
.dcard-body {
  color: var(--card-mute); font-size: .98rem; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.dcard-meta { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; color: var(--date-mute); font-size: .78rem; }
.dcard-meta:empty { display: none; }
.chip { display: inline-block; font-size: .72rem; padding: 0 .5rem; border-radius: 99px; border: 1px solid var(--bar-btn-line); color: var(--card-mute); }
.chip.auto { color: var(--date-mute); }
/* 録音の出典（NotePin / PC の常時録音）。PC は少しだけ色を変える */
.chip.src { white-space: nowrap; }
.chip.src-pc { color: var(--accent); border-color: currentColor; }
/* 2026-10-22: 振り分けの試験で入った録音 */
.chip.test-rec { color: #e0a63c; border-color: currentColor; white-space: nowrap; }
.dcard-src { white-space: nowrap; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* 1行のまま幅は親まで（layout_guard.py） */
.rec-sources { margin: -.2rem 0 .4rem; }
.day-skipped { margin-top: .6rem; }
.day-skipped summary { cursor: pointer; color: var(--card-mute); font-size: .85rem; }
.day-skipped-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: .85rem; }

/* ---------- floating pencil & tabs ---------- */
/* 2026-10-27: 鉛筆のアイコンだけでは何のボタンか分からず押されていなかった（使われ方の記録）ので、文字を添えた横長のボタンに */
.fab {
  position: fixed; right: max(1.1rem, calc(50% - 23rem + 1.1rem)); bottom: calc(var(--tab-bottom) + 5.7rem);
  z-index: 7; min-width: 4.4rem; height: 3.7rem; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: 0 1.1rem;
  background: var(--fab); color: var(--fab-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .55); text-decoration: none;
}
.fab .ico { width: 1.8rem; height: 1.8rem; }
.fab-word { font-size: .95rem; font-weight: 700; white-space: nowrap; }
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: var(--tab-bottom); z-index: 7;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem; width: min(22rem, calc(100% - 2rem)); padding: .35rem;
  background: var(--tabbar); border: 1px solid var(--bar-btn-line); border-radius: 99px; backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .5);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem 0 .35rem; border-radius: 99px;
  color: var(--ink); text-decoration: none; font-size: .72rem; font-weight: 700;
}
.tab .ico { width: 1.6rem; height: 1.6rem; }
.tab[aria-current="page"] { background: var(--tab-on); }

/* ---------- day page ---------- */
.diary-date { color: var(--mute); font-size: .9rem; margin: .2rem 0 .4rem; }
.diary .diary-title { color: var(--ink); font-size: 1.3rem; line-height: 1.45; margin: .1rem 0 .7rem; }
.diary .diary-title.pending { color: var(--mute); font-weight: 500; font-size: 1.05rem; }
.diary-body p { margin: 0 0 .7rem; line-height: 1.85; overflow-wrap: anywhere; }
/* 2026-10-21: 自分で書いた日記 → 録音から作った日記（両方見せる）・直した版の元の自動の日記（畳む） */
.diary-part { min-width: 0; }
.diary-part + .diary-part { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .7rem; }
.diary-part-h { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; color: var(--mute); font-size: .85rem; margin: 0 0 .4rem; }
.diary .diary-part h3.diary-title { font-size: 1.15rem; }
.diary-orig { margin: .2rem 0 .6rem; min-width: 0; }
.diary-orig > summary { cursor: pointer; color: var(--accent); font-size: .86rem; }
.diary-orig[open] > summary { margin-bottom: .5rem; }
.diary-orig .diary-orig-title { font-weight: 700; margin: 0 0 .4rem; overflow-wrap: anywhere; }
.diary-orig .diary-body { color: var(--mute); }
.diary-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .3rem 0 0; }
.diary-foot .btn { margin-left: auto; }
.small-btn { min-height: 36px; padding: .35rem .9rem; font-size: .9rem; }
.card h3 { font-size: .95rem; margin: 1rem 0 .4rem; color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 3.6rem 1fr; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.tl-time { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; text-decoration: none; }
span.tl-time { color: var(--mute); }
.plain { padding-left: 1.2rem; margin: 0; }
.plain li { margin: .25rem 0; }
.src { font-size: .8rem; white-space: nowrap; }
.day-recs { list-style: none; margin: 0; padding: 0; }
.day-rec { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.day-rec:last-child { border-bottom: 0; }
.day-rec:target { background: var(--mark); border-radius: 8px; }
.day-rec-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; color: var(--ink); text-decoration: none; }
.day-rec-head .when { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.day-rec-head .star { color: var(--warn); font-size: .9rem; }
.day-rec-head .badge { margin-left: auto; }
.day-rec-preview { color: var(--card-mute); margin: .35rem 0 .2rem; font-size: .93rem; overflow-wrap: anywhere; }
.day-rec-summary summary { cursor: pointer; color: var(--accent); font-size: .9rem; }
.day-rec-summary .summary { margin-top: .4rem; }
.day-rec-open { margin: .3rem 0 0; font-size: .9rem; text-align: right; }

/* ---------- calendar events (day page, recording page, card) ---------- */
.evs { list-style: none; margin: .2rem 0 0; padding: 0; }
.ev { display: grid; grid-template-columns: 6.6rem 1fr; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev-time { font-variant-numeric: tabular-nums; color: var(--mute); font-size: .9rem; padding-top: .1rem; }
.ev-linked .ev-time { color: var(--ink); font-weight: 700; }
.ev-main { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ev-title { color: var(--ink); overflow-wrap: anywhere; }
.ev-rec { font-size: .8rem; white-space: nowrap; color: var(--accent); text-decoration: none; }
.ev-sub { font-size: .85rem; }
.ev-place { color: var(--mute); text-decoration: none; overflow-wrap: anywhere; }
.ev-place:hover, .ev-rec:hover { text-decoration: underline; }
#events:target { outline: 2px solid var(--accent); }

/* day page: one card per event; swipe left (or × on hover) = 「行っていない」 → hidden from this diary */
.ev-cards { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.ev-card { position: relative; border-radius: 10px; overflow: hidden; }
.ev-card[hidden] { display: none; }
.ev-del-bg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 1.1rem;
  color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .05em; background: var(--ev-del);
}
.ev-del-bg { visibility: hidden; }
.ev-card.dragging .ev-del-bg, .ev-card.leaving .ev-del-bg { visibility: visible; }
.ev-card.armed .ev-del-bg { background: var(--ev-del-armed); }
.ev-face {
  position: relative; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: .65rem .8rem .7rem; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform .18s ease-out;
}
.ev-card.dragging .ev-face { transition: none; }
.ev-head { margin: 0; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; padding-right: 1.8rem; }
.ev-line { margin: .2rem 0 0; overflow-wrap: anywhere; }
.ev-line .ev-title { font-weight: 700; font-size: 1rem; }
.ev-line .ev-rec { margin-left: .35rem; }
.ev-card .ev-sub { margin: .2rem 0 0; }
.ev-cal {
  font-size: .7rem; color: var(--card-mute); border: 1px solid var(--bar-btn-line); border-radius: 99px;
  padding: 0 .45rem; white-space: nowrap; max-width: 12rem; overflow: hidden; text-overflow: ellipsis;
}
.ev-x-form { position: absolute; top: .35rem; right: .35rem; margin: 0; }
.ev-x {
  width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--line); background: var(--panel);
  color: var(--mute); font-size: 1.1rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s;
}
.ev-card:hover .ev-x, .ev-x:focus-visible { opacity: 1; }
.ev-x:hover { color: #fff; background: var(--ev-del); border-color: var(--ev-del); }
@media (hover: none) { .ev-x-form { display: none; } }
.ev-banner { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin: .4rem 0; }
.ev-banner form { margin: 0; }
.ev-empty { margin: .5rem 0 0; }

/* the 「外しました／元に戻す」 toast, above the bottom tabs */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-bottom) + 5.5rem); z-index: 9;
  width: min(30rem, calc(100% - 2rem)); display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem;
  background: #3a3a3c; color: var(--ink); border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); font-size: .9rem;
}
.toast[hidden] { display: none; }
.toast-msg { flex: 1; min-width: 0; }
.toast-undo {
  flex: none; background: transparent; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer;
  padding: .3rem .2rem; min-height: 2.2rem;
}

/* settings: 連携中の Google アカウント（2026-10-04 作り直し） */
.link-item + .link-item { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; }
.link-item dd { overflow-wrap: anywhere; margin: 0; color: var(--ink); }
.link-item form { margin: .7rem 0; }
.link-choose { display: grid; gap: .2rem; }
.link-choice { display: flex; align-items: center; gap: .55rem; min-height: 44px; overflow-wrap: anywhere; }
.link-choice input { width: 1.2rem; height: 1.2rem; flex: none; }
.link-cals fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .1rem; min-width: 0; }
.link-cals legend { padding: 0; margin-bottom: .2rem; color: var(--mute); }
.link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.link-actions form { margin: 0; }
.link-legacy dd .chip { margin-left: .3rem; }
.link-add { margin: 1rem 0 .4rem; }

/* settings: 外した予定 */
.hidden-evs { list-style: none; margin: .3rem 0 0; padding: 0; }
.hidden-ev { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.hidden-ev:last-child { border-bottom: 0; }
.hidden-ev form { margin: 0; flex: none; }
.hidden-ev-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; text-decoration: none; color: var(--ink); }
.hidden-ev-when { font-size: .82rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.hidden-ev-title { flex-basis: 100%; overflow-wrap: anywhere; }
.rec-events { list-style: none; margin: -.2rem 0 .8rem; padding: 0; font-size: .92rem; }
.rec-events li { margin: .15rem 0; overflow-wrap: anywhere; }
.rec-events .ev-title { text-decoration: none; font-weight: 700; }
.rec-events .ev-place { margin-left: .3rem; }
.dcard-place { overflow-wrap: anywhere; }

/* ---------- diary editor ---------- */
.diary-form label { display: block; font-size: .85rem; color: var(--mute); margin-top: .2rem; }
.diary-form textarea { resize: vertical; line-height: 1.7; min-height: 14rem; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.reset-form { margin: 0 0 1rem; }

/* ---------- calendar ---------- */
.cal-head { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; margin: .4rem 0 .8rem; }
.cal-head h2 { text-align: center; color: var(--ink); margin: 0; font-size: 1.15rem; }
/* minmax(0, 1fr) (2026-10-20): a plain 1fr lets a cell grow to its longest word and push the grid off the screen */
.cal-week, .cal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.cal-week li { text-align: center; color: var(--mute); font-size: .8rem; padding-bottom: .2rem; }
.cal-cell { aspect-ratio: 1 / 1.1; border-radius: 10px; background: var(--card); display: grid; }
.cal-cell.empty { background: transparent; }
.cal-cell a, .cal-cell > .cal-num { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; color: var(--ink); text-decoration: none; }
.cal-cell > .cal-num { color: var(--date-mute); }
.cal-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-cell.has { background: var(--panel2); }
.cal-cell.today { outline: 2px solid var(--accent); }
.sun, .cal-cell.sun .cal-num { color: #ff8a80; }
.sat, .cal-cell.sat .cal-num { color: #82b1ff; }
.cal-dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--mute); }
.cal-dot.diary { background: var(--accent); }
.cal-dot.journal { background: var(--kind-journal); }
.cal-dots { display: flex; gap: .2rem; }
.cal-legend { margin-top: .8rem; }
.cal-cell > a { display: flex; }
.cal-cell.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-cell.sel.today { outline-offset: 2px; }

/* ---------- 今日のダッシュボード (under the calendar; markup: src/pages/dashboard-block.js) ---------- */
.dash { margin-top: 1rem; }
.dash-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; }
.dash-head h2 { margin: 0; color: var(--ink); font-size: 1.15rem; }
.dash-links { margin: 0; }
.dash-sub { margin: .25rem 0 .2rem; }
.dash-note { margin: .3rem 0; color: var(--warn); }
.dash-sec { margin-top: 1rem; }
.dash-sec h3 { margin: 0 0 .4rem; font-size: .95rem; color: var(--ink); }
.dash-top { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .7rem; }
.dash-top-item p { margin: 0; overflow-wrap: anywhere; }
.dash-line { font-weight: 700; line-height: 1.5; }
.dash-meta { display: flex; flex-wrap: wrap; gap: .25rem; margin: .25rem 0 !important; }
.dash-step { color: var(--card-mute); font-size: .92rem; line-height: 1.6; }
.dash-done { margin-top: .1rem !important; }
.dash-task { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.dash-task { border-bottom: 1px dotted var(--mute); }
a.dash-task:hover { color: var(--accent); }
/* 札は1行。ただし幅は親を超えない（長い札は … で切る・2026-11-20 「止まっている」の札が画面を横に広げた件） */
.dchip {
  display: inline-block; font-size: .72rem; line-height: 1.6; padding: 0 .5rem; border-radius: 99px; white-space: nowrap;
  border: 1px solid var(--bar-btn-line); color: var(--card-mute); margin-left: .25rem;
  max-width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
/* 文が長くなりうる札は折り返す（全文を読ませる） */
.dchip.long { white-space: normal; overflow-wrap: anywhere; border-radius: .6rem; text-overflow: clip; }
.dash-meta .dchip { margin-left: 0; }
.dchip.due { color: var(--warn); border-color: var(--warn); }
.dchip.done { color: var(--ok); border-color: currentColor; }
.dchip.hisho { color: var(--accent); border-color: currentColor; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { padding: .35rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.55; }
.dash-list li:last-child { border-bottom: 0; }
.dash-rec { display: block; margin-top: .1rem; }
.dash-more summary { cursor: pointer; color: var(--accent); font-size: .9rem; padding: .35rem 0; }
.dash-evs { list-style: none; margin: 0; padding: 0; }
.dash-ev { display: grid; grid-template-columns: 6.6rem 1fr; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.dash-ev:last-child { border-bottom: 0; }
.dash-ev-time { font-variant-numeric: tabular-nums; color: var(--mute); font-size: .9rem; }
.dash-ev-main { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; }
.dash-ev-title { color: var(--ink); overflow-wrap: anywhere; }
.dash-ev-title a { color: var(--ink); }
.dash-ev.hisho .ev-cal { color: var(--accent); border-color: var(--accent); }

/* ---------- タスク tab: swipe right = 完了 / swipe left = 不要 (markup: src/pages/dashboard-block.js,
   behaviour: public/tasks.js; same feel as the day page's event cards).
   ★ Nothing may move when a row is pressed: the status line (.sw-pending) always keeps its room
   (.off = invisible, not removed) and stays one line; buttons have fixed widths and are only
   disabled, never hidden. A row that leaves the list keeps its place until tasks.js closes up. ---------- */
:root {
  --sw-go: #1f8f4e; --sw-go-armed: #30d158; --sw-no: #b3261e; --sw-no-armed: #ff453a; --sw-sched: #1d5fb8; --sw-sched-armed: #0a84ff;
  --sw-gap: .5rem; --sw-status-h: 2.4rem;
}
.sw-list { list-style: none; margin: .2rem 0 .4rem; padding: 0; display: flex; flex-direction: column; gap: var(--sw-gap); }
.sw-card {
  position: relative; border-radius: 10px; overflow: hidden; background: var(--panel2); border: 1px solid var(--line);
}
.sw-card[hidden] { display: none; }
.sw-card.collapsing { transition: height .25s ease, margin .25s ease, opacity .2s; opacity: 0; }
.sw-bg {
  position: absolute; inset: 0 0 var(--sw-status-h) 0; display: flex; align-items: center; padding: 0 1.1rem; color: #fff;
  font-weight: 700; font-size: .95rem; letter-spacing: .03em; background: var(--sw-go); visibility: hidden;
}
.sw-bg-left { justify-content: flex-end; background: var(--sw-no); }
.sw-bg-right { background: var(--sw-sched); }
.sw-card.dragging .sw-bg:not(.sw-bg-left):not(.sw-bg-right),
.sw-card.drag-left .sw-bg-left, .sw-card.drag-right .sw-bg-right { visibility: visible; }
.sw-card.armed .sw-bg { background: var(--sw-go-armed); }
.sw-card.armed .sw-bg-right { background: var(--sw-sched-armed); }
.sw-card.armed-left .sw-bg { background: var(--sw-no-armed); }
.sw-face {
  position: relative; display: flex; align-items: center; gap: .65rem; background: var(--panel2);
  padding: .6rem .75rem .25rem; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform .18s ease-out, opacity .2s;
}
.sw-card.dragging .sw-face { transition: none; }
.sw-main { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.55; }
.sw-main p { margin: 0; }
.sw-main .dash-meta { margin: .2rem 0 0 !important; }
.sw-title { font-weight: 700; }
.sw-btns { flex: none; display: flex; flex-direction: column; gap: .35rem; }
/* candidates: the text on top, the three buttons in one row under it (fixed widths) */
.sw-card[data-kind="cand"] .sw-face { flex-direction: column; align-items: stretch; gap: .45rem; }
.sw-card[data-kind="cand"] .sw-btns { flex-direction: row; justify-content: flex-end; gap: .4rem; }
.sw-check {
  flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 2px solid var(--mute); background: transparent;
  cursor: pointer; padding: 0;
}
.sw-check:hover, .sw-check:focus-visible { border-color: var(--sw-go-armed); }
.sw-sched { border: 1px solid var(--sw-sched); color: var(--sw-sched-armed); }
.sw-add, .sw-dismiss, .sw-restore, .sw-sched {
  flex: none; box-sizing: border-box; width: 5.2rem; height: 2.3rem; padding: 0 .4rem; border-radius: 99px; background: transparent;
  font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sw-add { border: 1px solid var(--sw-go); color: var(--sw-go-armed); }
.sw-dismiss { border: 1px solid var(--line); color: var(--mute); }
.sw-dismiss:hover, .sw-dismiss:focus-visible { border-color: var(--sw-no-armed); color: var(--sw-no-armed); }
.sw-restore { border: 1px solid var(--accent); color: var(--accent); }
.sw-go:disabled, .sw-restore:disabled { opacity: .45; cursor: default; }
.sw-pending {
  display: flex; align-items: center; gap: .6rem; height: var(--sw-status-h); box-sizing: border-box; padding: 0 .75rem;
  font-size: .86rem; white-space: nowrap; overflow: hidden; color: var(--ink);
  background: color-mix(in srgb, var(--sw-go) 24%, var(--panel)); border-top: 1px solid var(--line);
}
.sw-pending.off { visibility: hidden; } /* not [hidden]: app.css makes that display:none */
.sw-card[data-act="dismiss"] .sw-pending { background: color-mix(in srgb, var(--sw-no) 26%, var(--panel)); }
.sw-card[data-kind="complete"].pending .sw-title { text-decoration: line-through; opacity: .7; }
.sw-card[data-kind="complete"].pending .sw-check { background: var(--sw-go-armed); border-color: var(--sw-go-armed); }
/* 2026-10-15: a completed row stays where it is (struck through, its status line says so); gone on the next load */
.sw-card[data-kind="complete"].completed .sw-title { text-decoration: line-through; }
.sw-card[data-kind="complete"].completed .sw-check { background: var(--sw-go-armed); border-color: var(--sw-go-armed); opacity: 1; }
.sw-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sw-card.sending .sw-msg { color: var(--mute); }
.sw-undo {
  flex: none; width: 5rem; height: 2rem; background: transparent; border: 0; color: var(--accent); font: inherit; font-weight: 700;
  cursor: pointer; padding: 0;
}
.sw-undo.off { display: none; } /* the line is one nowrap row: only the message's width changes */
.sw-link { flex: none; color: var(--accent); font-weight: 700; }
.sw-card.done .sw-face { opacity: .65; }
.sw-card.leaving-right .sw-face { transform: translateX(110%); opacity: 0; }
.sw-card.leaving-left .sw-face { transform: translateX(-110%); opacity: 0; }
.sw-plain { padding: .35rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.55; }
.dash-subhead { margin: .9rem 0 .1rem; color: var(--mute); font-weight: 700; }
.cand-done { opacity: .8; }
.cand-handled[hidden] { display: none; }
.dash-list li.cand-restorable { display: flex; align-items: center; gap: .6rem; opacity: 1; }
.cand-done-main { flex: 1; min-width: 0; opacity: .8; }
@media (prefers-reduced-motion: reduce) { .sw-face, .sw-card.collapsing { transition: none; } }

/* 「予定に組み込む」 sheet (markup: dashboard-block.js scheduleSheet; an overlay, so no row moves) */
.sheet { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.sheet-panel {
  position: relative; max-height: 88vh; overflow-y: auto; margin: 0 auto; width: min(34rem, 100%); box-sizing: border-box;
  background: var(--panel); color: var(--ink); border-radius: 16px 16px 0 0; border: 1px solid var(--line); border-bottom: 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .35rem;
}
.sheet-panel h3 { margin: 0; font-size: 1.05rem; outline: none; }
.sheet-note { margin: 0 0 .2rem; }
.sheet-field { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--mute); flex: 1; min-width: 0; }
.sheet-field input, .sheet-field select, .sheet-field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .6rem; min-height: 2.6rem; box-sizing: border-box; width: 100%;
}
.sheet-field select:disabled { opacity: .45; }
.sheet-row { display: flex; gap: .6rem; }
.sheet-check { display: flex; align-items: center; gap: .5rem; min-height: 2.6rem; font-size: .95rem; }
.sheet-check input { width: 1.3rem; height: 1.3rem; }
/* flex: none (2026-10-20): the panel is a flex column capped at 88vh, and a shrinkable item with min-height 0 was
   squeezed to no height when the sheet overflowed, so its text was drawn over the line below it. */
.sheet-err { margin: 0; min-height: 0; flex: none; color: var(--sw-no-armed); font-size: .82rem; }
.sheet-err:empty { display: none; }
.sheet-msg { margin: .2rem 0 0; min-height: 1.3rem; flex: none; font-size: .9rem; color: var(--warn); }
/* 2026-10-27 書き先が本人のカレンダーの版（public/calendar-direct.js）: 書き込みの許可・入れる先・重なりの知らせ */
.sheet-grant { flex: none; display: flex; flex-direction: column; gap: .5rem; padding: .6rem .7rem; border: 1px solid var(--warn); border-radius: 12px; }
.sheet-grant p { margin: 0; }
.sheet-grant-btn { align-self: flex-start; }
.sheet-account { flex: none; margin: 0; overflow-wrap: anywhere; }
.sheet-overlap { flex: none; margin: 0; color: var(--warn); overflow-wrap: anywhere; }
.sheet-overlap:empty { display: none; }
.sheet-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .2rem; }
.sheet-actions button {
  font: inherit; font-weight: 700; min-height: 2.8rem; padding: 0 .5rem; border-radius: 99px; cursor: pointer; width: 10.5rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sheet-cancel { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.sheet-submit { background: var(--sw-sched-armed); color: #fff; border: 0; }
.sheet-actions button:disabled { opacity: .5; cursor: default; }
html.sheet-open, html.sheet-open body { overscroll-behavior: contain; }

/* ---------- tasks: the day switcher, small links next to the dashboard's heading (2026-10-16 sprint A;
   markup: src/pages/tasks-page.js). It sits in .dash-head, so it costs no line of its own. ---------- */
.day-nav { display: inline-flex; align-items: center; gap: .25rem; margin: 0 auto 0 0; font-size: .8rem; }
.day-step, .day-today {
  display: inline-flex; align-items: center; height: 1.7rem; padding: 0 .55rem; border-radius: 99px; white-space: nowrap;
  border: 1px solid var(--bar-btn-line); color: var(--card-mute); text-decoration: none; font-weight: 700;
}
.day-today { color: var(--ink); background: var(--bar-btn); }
.day-nav + .dash { margin-top: .4rem; }
.dash-head .dash-links { font-size: .85rem; }

/* ---------- search ---------- */
.chips { display: flex; gap: .4rem; overflow-x: auto; margin: 0 0 .8rem; padding-bottom: .2rem; }
.chip-link { white-space: nowrap; padding: .35rem .8rem; border: 1px solid var(--bar-btn-line); border-radius: 99px; color: var(--mute); text-decoration: none; font-size: .88rem; }
.chip-link .n { font-variant-numeric: tabular-nums; opacity: .8; }
.chip-link[aria-current="page"] { background: var(--ink); color: #000; border-color: var(--ink); }
.kind { font-size: .72rem; font-weight: 700; padding: .05rem .5rem; border-radius: 99px; color: #000; }
.kind-diary { background: var(--kind-diary); }
.kind-digest { background: var(--kind-digest); }
.kind-summary { background: var(--kind-summary); }
.kind-transcript { background: var(--kind-transcript); }
.kind-event { background: var(--kind-event); }
.kind-journal { background: var(--kind-journal); }
.kind-work { background: var(--kind-work); }
.kind-pc { background: var(--kind-pc); }
.hit-work a, .ask-sources .hit-work .ask-source { border-left-color: var(--kind-work); }
.hit-pc a, .ask-sources .hit-pc .ask-source { border-left-color: var(--kind-pc); }
.hit-journal a, .ask-sources .hit-journal .ask-source { border-left-color: var(--kind-journal); }
.hit-event a { border-left-color: var(--kind-event); }
.ask-sources .hit-event .ask-source { border-left-color: var(--kind-event); }
.hit a { border-left: 4px solid var(--line); }
.hit-diary a { border-left-color: var(--kind-diary); }
.hit-digest a { border-left-color: var(--kind-digest); }
.hit-summary a { border-left-color: var(--kind-summary); }
.hit-transcript a { border-left-color: var(--kind-transcript); }

/* ---------- recording page ---------- */
main.recording .rec-name { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
main.recording .meta .when { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.seg .t { font-variant-numeric: tabular-nums; }

/* ---------- question AI ---------- */
main.ask-main { padding-bottom: 14rem; }
.ask-intro p { line-height: 1.8; }
.ask-examples { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; margin-top: .6rem; }
.ask-example {
  font: inherit; font-size: .92rem; text-align: left; color: var(--ink); background: var(--panel);
  border: 1px solid var(--bar-btn-line); border-radius: 14px; padding: .45rem .8rem; cursor: pointer;
}
.ask-thread { list-style: none; margin: 0; padding: 0; }
.ask-turn { margin: 0 0 1.4rem; scroll-margin-top: calc(var(--appbar-h) + .5rem); }
.ask-q {
  margin: 0 0 .6rem auto; max-width: 85%; width: fit-content; padding: .55rem .9rem; border-radius: 16px 16px 4px 16px;
  background: var(--panel2); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere;
}
.ask-a { padding: .1rem .1rem 0; }
.ask-answer p { margin: 0 0 .55rem; line-height: 1.85; overflow-wrap: anywhere; }
.ask-answer.not-found p:first-child { color: var(--mute); font-weight: 700; }
.ask-answer p.bullet { position: relative; padding-left: 1.1rem; }
.ask-answer p.bullet::before { content: "•"; position: absolute; left: .2rem; color: var(--mute); }
.cite {
  display: inline-block; min-width: 1.35rem; margin: 0 .1rem; padding: 0 .3rem; border-radius: 6px; text-align: center;
  font-size: .78rem; font-weight: 700; line-height: 1.5; vertical-align: .15em; text-decoration: none;
  background: var(--panel2); color: var(--accent); border: 1px solid var(--bar-btn-line);
}
.ask-sources { list-style: none; margin: .8rem 0 0; padding: 0; }
.ask-sources .hit .ask-source {
  display: block; padding: .6rem .75rem; margin-bottom: .45rem; background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none;
}
.ask-sources .hit-diary .ask-source { border-left-color: var(--kind-diary); }
.ask-sources .hit-digest .ask-source { border-left-color: var(--kind-digest); }
.ask-sources .hit-summary .ask-source { border-left-color: var(--kind-summary); }
.ask-sources .hit-transcript .ask-source { border-left-color: var(--kind-transcript); }
.ask-source .ctx { display: block; font-size: .9rem; color: var(--card-mute); overflow-wrap: anywhere; line-height: 1.65; }
.src-n { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.src-n::before { content: "["; } .src-n::after { content: "]"; }
.ask-meta { margin: .2rem 0 0; }
.ask-wait { display: flex; align-items: center; gap: .6rem; color: var(--mute); margin: .2rem 0; }
.ask-error { color: var(--danger); margin: .2rem 0; }
.spinner {
  width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--bar-btn-line); border-top-color: var(--accent);
  animation: ask-spin 1s linear infinite; flex: none;
}
@keyframes ask-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-top-color: var(--mute); } }
.ask-dock {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-bottom) + 5rem); z-index: 6;
  width: min(44rem, calc(100% - 1.5rem)); display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.ask-form {
  width: 100%; display: flex; align-items: flex-end; gap: .4rem; padding: .35rem .35rem .35rem .9rem;
  background: var(--tabbar); border: 1px solid var(--bar-btn-line); border-radius: 22px; backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .5);
}
.ask-form textarea {
  flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.5; padding: .45rem 0; max-height: 10rem; min-height: 2.4rem;
}
.ask-send {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
}
.ask-send[disabled] { opacity: .4; cursor: default; }
.ask-new {
  font: inherit; font-size: .8rem; color: var(--mute); background: var(--panel); border: 1px solid var(--bar-btn-line);
  border-radius: 99px; padding: .2rem .8rem; cursor: pointer;
}

@media (min-width: 720px) {
  .dcard { grid-template-columns: 4.4rem 1fr; padding: 1.1rem 1.2rem 1.1rem .8rem; }
  .seg { grid-template-columns: 5.2rem 5rem 1fr; }
}

/* ---------- 自分の日記 (imported from シンプル日記; markup: src/pages/journal-block.js) ---------- */
.journal-card h2 { color: var(--kind-journal); }
.journal-entry + .journal-entry { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .9rem; }
.journal-entry:target { background: var(--mark); border-radius: 8px; }
.journal-when { color: var(--mute); font-size: .85rem; margin: 0 0 .2rem; font-variant-numeric: tabular-nums; }
.journal-title { color: var(--ink); font-size: 1.15rem; line-height: 1.45; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.journal-body p { margin: 0 0 .7rem; overflow-wrap: anywhere; white-space: pre-line; }
.journal-figs { display: grid; gap: .6rem; margin: .4rem 0 .2rem; }
.journal-fig { margin: 0; }
.journal-fig a { display: block; }
.journal-fig img { display: block; max-width: 100%; height: auto; border-radius: 8px; background: var(--panel2); }
.journal-src { margin: .4rem 0 0; }
.chip.journal { color: var(--kind-journal); border-color: color-mix(in srgb, var(--kind-journal) 55%, transparent); }
.dcard.journal-only .dcard-title { color: var(--card-ink); }

/* ---------- 日記の取り込み (settings; markup: src/pages/settings-page.js, behaviour: public/journal-import.js) ---------- */
.ji-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .6rem 0 .2rem; }
.ji-form input[type="file"] { max-width: 100%; color: var(--mute); font: inherit; font-size: .9rem; }
.ji-status { margin: .5rem 0 0; }
.ji-status.fail { color: var(--danger); }
.ji-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.ji-counts li { background: var(--panel2); border-radius: 10px; padding: .5rem .6rem; text-align: center; }
.ji-counts b { display: block; font-size: 1.3rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ji-counts span { font-size: .78rem; color: var(--mute); }

/* ---------- list: the next page loads as you scroll (public/app.js) ---------- */
.more.loading a { pointer-events: none; color: var(--mute); }

/* ---------- 現在のタスク一覧 (NODE + 協会; markup: src/pages/all-tasks-block.js) ----------
   Notion's colours, dark mode: --nt-<c>-bg = a select option's background, --nt-<c>-ink = its text colour.
   Which colour a priority / a source has comes from Notion through dashboard.json (n-<c> / prio-<c>). */
:root {
  --nt-default-bg: #373737; --nt-default-ink: #d4d4d4;
  --nt-gray-bg: #5a5a5a;    --nt-gray-ink: #9b9b9b;
  --nt-brown-bg: #603b2c;   --nt-brown-ink: #ba856f;
  --nt-orange-bg: #854c1d;  --nt-orange-ink: #c77d48;
  --nt-yellow-bg: #89632a;  --nt-yellow-ink: #ca9849;
  --nt-green-bg: #2b593f;   --nt-green-ink: #529e72;
  --nt-blue-bg: #28456c;    --nt-blue-ink: #5e87c9;
  --nt-purple-bg: #492f64;  --nt-purple-ink: #9d68d3;
  --nt-pink-bg: #69314c;    --nt-pink-ink: #d15796;
  --nt-red-bg: #6e3630;     --nt-red-ink: #df5452;
  --overdue: #ff6b6b;
}
.n-default { --nb: var(--nt-default-bg); --ni: var(--nt-default-ink); }
.n-gray { --nb: var(--nt-gray-bg); --ni: var(--nt-gray-ink); }
.n-brown { --nb: var(--nt-brown-bg); --ni: var(--nt-brown-ink); }
.n-orange { --nb: var(--nt-orange-bg); --ni: var(--nt-orange-ink); }
.n-yellow { --nb: var(--nt-yellow-bg); --ni: var(--nt-yellow-ink); }
.n-green { --nb: var(--nt-green-bg); --ni: var(--nt-green-ink); }
.n-blue { --nb: var(--nt-blue-bg); --ni: var(--nt-blue-ink); }
.n-purple { --nb: var(--nt-purple-bg); --ni: var(--nt-purple-ink); }
.n-pink { --nb: var(--nt-pink-bg); --ni: var(--nt-pink-ink); }
.n-red { --nb: var(--nt-red-bg); --ni: var(--nt-red-ink); }
.src-tag, .pbadge {
  display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1.5; padding: 0 .45rem; border-radius: 4px;
  background: var(--nb, var(--nt-gray-bg)); color: rgba(255, 255, 255, .9); white-space: nowrap;
}
.src-tag { border: 1px solid var(--ni, var(--nt-gray-ink)); }
.pbadge { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.src-summary { margin: 0 0 .5rem; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; }
.src-sum { white-space: nowrap; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* 1行のまま幅は親まで（layout_guard.py） */
.src-sep { color: var(--mute); }
.all-tasks .sw-card { border-left: 4px solid var(--nt-gray-ink); }
.all-tasks .prio-default { border-left-color: var(--nt-default-ink); }
.all-tasks .prio-gray { border-left-color: var(--nt-gray-ink); }
.all-tasks .prio-brown { border-left-color: var(--nt-brown-ink); }
.all-tasks .prio-orange { border-left-color: var(--nt-orange-ink); }
.all-tasks .prio-yellow { border-left-color: var(--nt-yellow-ink); }
.all-tasks .prio-green { border-left-color: var(--nt-green-ink); }
.all-tasks .prio-blue { border-left-color: var(--nt-blue-ink); }
.all-tasks .prio-purple { border-left-color: var(--nt-purple-ink); }
.all-tasks .prio-pink { border-left-color: var(--nt-pink-ink); }
.all-tasks .prio-red { border-left-color: var(--nt-red-ink); }
.all-tasks .filtered-out { display: none; }
.all-tasks .owner-out { display: none; } /* 2026-10-24 担当の絞り込み（嶋田さんの版） */
.sw-static .sw-face { padding-left: .75rem; }
.sw-check-off { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 2px dashed var(--line); }
.dchip.overdue { color: var(--overdue); border-color: var(--overdue); font-weight: 700; }

/* segmented buttons: 全部 / NODE / 協会, カード / 一覧 (fixed widths: pressing never moves anything) */
.seg { display: inline-flex; gap: 0; margin: 0 0 .5rem; border: 1px solid var(--bar-btn-line); border-radius: 99px; overflow: hidden; }
.seg-btn {
  font: inherit; font-size: .82rem; font-weight: 700; min-width: 4.6rem; height: 2.1rem; padding: 0 .7rem; border: 0;
  background: transparent; color: var(--mute); cursor: pointer; white-space: nowrap;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--bar-btn-line); }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: #000; }
.seg-n { font-variant-numeric: tabular-nums; opacity: .8; }

/* ---------- 録音から出たタスク候補: the pile of cards (markup: src/pages/cand-stack-block.js,
   behaviour: public/tasks-stack.js). ★ Fixed heights: the pile, the status line and the buttons
   never move while cards are handled. ---------- */
.cands-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem .6rem; margin-bottom: .2rem; }
.cands-head h3 { margin: 0 !important; }
.cands-head .seg { margin: 0; }
.cand-panel[hidden] { display: none; }
/* clip: a card flying off sideways must not widen the page (a phone would zoom out / scroll sideways) */
.stack-wrap { margin-top: .3rem; overflow: hidden; overflow: clip; }
.stack-left { margin: 0 0 .35rem; color: var(--mute); }
.stack-left b { color: var(--ink); font-variant-numeric: tabular-nums; }
.stack { position: relative; height: 14.6rem; touch-action: pan-y; }
/* 2026-10-15 夜: a touch on a candidate card is the card's in all four directions (tasks-stack.js); the page scrolls outside it */
#candStack .stack-card { touch-action: none; }
.stack-card {
  position: absolute; left: 0; right: 0; top: 0; height: 13.2rem; box-sizing: border-box; padding: 1rem 1.1rem 3.2rem;
  background: var(--panel2); border: 1px solid var(--bar-btn-line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transform-origin: 50% 100%;
  transition: transform .28s ease, opacity .28s ease; display: flex; flex-direction: column; gap: .35rem; user-select: none;
}
.stack-card[data-pos="0"] { z-index: 4; }
/* the cards behind stay opaque (dimmed, not see-through) so their texts never overlap */
.stack-card[data-pos="1"] { z-index: 3; transform: translateY(.55rem) scale(.95); filter: brightness(.7); pointer-events: none; }
.stack-card[data-pos="2"] { z-index: 2; transform: translateY(1.1rem) scale(.9); filter: brightness(.5); pointer-events: none; }
.stack-card[data-pos="3"] { z-index: 1; transform: translateY(1.1rem) scale(.9); opacity: 0; visibility: hidden; pointer-events: none; }
.stack-card[data-pos="out"] { z-index: 5; pointer-events: none; }
.stack-card.fly-left { transform: translateX(-130%) rotate(-14deg) !important; opacity: 0; }
.stack-card.fly-right { transform: translateX(130%) rotate(14deg) !important; opacity: 0; }
.stack-card.gone { visibility: hidden; }
.stack-card.dragging { transition: none; }
.stack-card.drag-left { border-color: var(--sw-no); }
.stack-card.drag-right { border-color: var(--sw-go); }
.stack-card.armed-left { border-color: var(--sw-no-armed); box-shadow: 0 0 0 2px var(--sw-no-armed); }
.stack-card.armed-right { border-color: var(--sw-go-armed); box-shadow: 0 0 0 2px var(--sw-go-armed); }
.stack-hint {
  position: absolute; top: .7rem; padding: .1rem .55rem; border-radius: 6px; font-weight: 700; font-size: .9rem; opacity: 0;
  border: 2px solid currentColor; pointer-events: none;
}
.stack-hint-left { right: .8rem; color: var(--sw-no-armed); transform: rotate(8deg); }
.stack-hint-right { left: .8rem; color: var(--sw-go-armed); transform: rotate(-8deg); }
.stack-card.drag-left .stack-hint-left, .stack-card.drag-right .stack-hint-right { opacity: .55; }
.stack-card.armed-left .stack-hint-left, .stack-card.armed-right .stack-hint-right { opacity: 1; }
.stack-hint-down { left: 50%; top: .7rem; transform: translateX(-50%); color: var(--sw-sched-armed); }
.stack-card.drag-down { border-color: var(--sw-sched); }
.stack-card.armed-down { border-color: var(--sw-sched-armed); box-shadow: 0 0 0 2px var(--sw-sched-armed); }
.stack-card.drag-down .stack-hint-down { opacity: .55; }
.stack-card.armed-down .stack-hint-down { opacity: 1; }
/* 2026-10-15 swipe up = 「✅ やった」: the band sits at the bottom centre (the top goes out of view as the card rises) */
.stack-hint-up { left: 50%; top: auto; bottom: .55rem; transform: translateX(-50%); color: var(--sw-go-armed); background: var(--panel2); z-index: 2; white-space: nowrap; }
.stack-card.drag-up { border-color: var(--sw-go); }
.stack-card.armed-up { border-color: var(--sw-go-armed); box-shadow: 0 0 0 2px var(--sw-go-armed); }
.stack-card.drag-up .stack-hint-up { opacity: .55; }
.stack-card.armed-up .stack-hint-up { opacity: 1; }
/* while rising, the band takes the bottom centre alone (the 予定に / 下書き buttons step aside; same box, nothing moves) */
.stack-card.drag-up .stack-sched-btn, .stack-card.drag-up .stack-draft { visibility: hidden; }
.stack-card.fly-up { transform: translateY(-120%) !important; opacity: 0; }
/* 「↓ 📅 予定に」 at the bottom centre of the card: always there, and a button */
.stack-sched-btn {
  position: absolute; left: 50%; bottom: .55rem; transform: translateX(-50%); font: inherit; font-size: .86rem; font-weight: 700;
  height: 2.2rem; padding: 0 .9rem; border-radius: 99px; cursor: pointer; white-space: nowrap;
  color: var(--sw-sched-armed); background: color-mix(in srgb, var(--sw-sched) 18%, var(--panel2)); border: 1px solid var(--sw-sched);
}
.stack-card:not([data-pos="0"]) .stack-sched-btn { visibility: hidden; }
.stack-title {
  margin: 1.2rem 0 0; color: var(--ink); font-weight: 700; font-size: 1.12rem; line-height: 1.5; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.stack-when { margin: 0; color: var(--card-mute); }
.stack-card .dash-rec { margin-top: 0; }
.stack-empty {
  position: absolute; inset: 0 0 1.4rem 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  border: 1px dashed var(--bar-btn-line); border-radius: 14px; color: var(--ink);
}
.stack-empty[hidden] { display: none; }
.stack-empty-msg { margin: 0; font-weight: 700; font-size: 1.05rem; }
.stack-to-list {
  font: inherit; font-weight: 700; font-size: .9rem; height: 2.4rem; padding: 0 1.2rem; border-radius: 99px; cursor: pointer;
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
}
.stack-status {
  display: flex; align-items: center; gap: .6rem; height: 2.4rem; box-sizing: border-box; padding: 0 .2rem;
  font-size: .86rem; white-space: nowrap; overflow: hidden; color: var(--ink);
}
.stack-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stack-link { flex: none; color: var(--accent); font-weight: 700; }
.stack-link.off { visibility: hidden; }
.stack-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
/* 2026-10-23 夜: 「📅 予定に」が無い版（機能表の task_schedule が off）は3つ */
.stack-wrap[data-help] .stack-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stk-btn {
  font: inherit; font-size: .86rem; font-weight: 700; height: 2.9rem; padding: 0 .2rem; border-radius: 12px; cursor: pointer;
  background: var(--panel2); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stk-dismiss { color: var(--sw-no-armed); border-color: var(--sw-no); }
.stk-add { color: var(--sw-go-armed); border-color: var(--sw-go); }
.stk-sched { color: var(--sw-sched-armed); border-color: var(--sw-sched); }
.stk-btn:disabled { opacity: .4; cursor: default; }
@media (prefers-reduced-motion: reduce) { .stack-card { transition: none; } }

/* ---------- 振り返り (the evening post's buttons; markup: src/pages/review-block.js, behaviour: public/tasks-review.js)
   ★ A row keeps its height: the buttons and the result line share one fixed-height line. ---------- */
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv-row { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.rv-row:last-child { border-bottom: 0; }
/* 2026-10-15: swipe right = ✅完了 / left = 🗑捨てる (behaviour: tasks-review.js). The face covers the strips; the
   status (「完了にします（N秒後）」＋取り消し) takes the buttons' fixed-height line, so nothing moves. */
.rv-face { position: relative; padding: .45rem 0; background: var(--panel); transition: transform .18s ease-out; }
.rv-row[data-swipe] .rv-face { touch-action: pan-y; }
.rv-row.dragging .rv-face { transition: none; }
.rv-bg {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 1.1rem; color: #fff; font-weight: 700;
  font-size: .95rem; visibility: hidden; background: var(--sw-go);
}
.rv-bg-left { justify-content: flex-end; background: var(--sw-no); }
.rv-row.drag-right .rv-bg-right, .rv-row.drag-left .rv-bg-left { visibility: visible; }
.rv-row.armed .rv-bg-right { background: var(--sw-go-armed); }
.rv-row.armed-left .rv-bg-left { background: var(--sw-no-armed); }
.rv-wait { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; padding: 0 0 0 .6rem; border-radius: 10px; font-size: .88rem;
  background: color-mix(in srgb, var(--sw-go) 22%, var(--panel)); white-space: nowrap; overflow: hidden; }
.rv-wait.drop { background: color-mix(in srgb, var(--sw-no) 26%, var(--panel)); }
.rv-wait-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rv-undo { flex: none; width: 5rem; height: 100%; background: transparent; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .rv-face { transition: none; } }
.rv-name { margin: 0 0 .3rem; overflow-wrap: anywhere; line-height: 1.5; }
.rv-act { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; height: 2.5rem; align-items: stretch; }
.rv-btn {
  font: inherit; font-size: .84rem; font-weight: 700; border-radius: 10px; cursor: pointer; padding: 0 .2rem;
  background: var(--panel2); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rv-done { grid-column: 1 / -1; display: flex; align-items: center; padding: 0 .6rem; border-radius: 10px; font-size: .88rem;
  background: color-mix(in srgb, var(--sw-go) 22%, var(--panel)); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-a-done { color: var(--sw-go-armed); border-color: var(--sw-go); }
.rv-a-drop { color: var(--sw-no-armed); border-color: var(--sw-no); }
.rv-btn:disabled { opacity: .45; cursor: default; }
.rv-btn.pressed { opacity: 1; outline: 2px solid var(--accent); }
.review[data-kind="yesterday"] h3 { color: var(--warn); }
.rv-fold summary { cursor: pointer; list-style: none; }
.rv-fold summary h3 { display: inline; }
.rv-fold summary::-webkit-details-marker { display: none; }

/* ---------- 新しく日記を書く (markup: src/pages/diary-new-page.js, behaviour: public/diary-new.js) ---------- */
.diary-new label { display: block; font-size: .85rem; color: var(--mute); margin-top: .4rem; }
.diary-new .field[type="date"] { font-size: 1.05rem; min-height: 2.8rem; }
.new-day { margin: .3rem 0 0; }
.new-state { margin: .7rem 0 .9rem; color: var(--ink); min-height: 3.2em; }
.new-state.exists { color: var(--warn); }
.diary-new .btn { width: 100%; min-height: 3rem; }
.diary-new .btn:disabled { opacity: .45; }

/* ---------- 現在のタスク一覧: fold, rows added live, NEW (public/tasks-live.js) ----------
   ★ The fold button sits at the start of the heading: opening / closing never moves it. */
.fold-head { display: flex; align-items: center; gap: .35rem; }
.fold-btn {
  flex: none; width: 2rem; height: 2rem; margin-left: -.35rem; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer;
}
.fold-btn:hover, .fold-btn:focus-visible { background: var(--panel2); }
.fold-sum { margin: 0 0 .2rem 1.65rem; color: var(--card-mute); display: flex; flex-wrap: wrap; gap: .2rem; }
.fold-sum[hidden], #openTasksBody[hidden] { display: none; }
.fold-overdue { color: var(--overdue); }
.dchip.new { color: #000; background: var(--warn); border-color: var(--warn); font-weight: 700; }
.sw-card.is-new, .dash-ev.is-new { animation: row-new 4s ease-out; }
.sw-card.is-new .sw-face { animation: row-new 4s ease-out; }
@keyframes row-new { 0%, 35% { background-color: color-mix(in srgb, var(--warn) 30%, var(--panel2)); } 100% { background-color: var(--panel2); } }
.dash-ev.is-new { animation-name: ev-new; }
@keyframes ev-new { 0%, 35% { background-color: color-mix(in srgb, var(--warn) 25%, transparent); } 100% { background-color: transparent; } }
.src-sum.flash, .sw-count.flash { animation: count-flash 1.6s ease-out; border-radius: 4px; }
@keyframes count-flash { 0%, 40% { background-color: color-mix(in srgb, var(--warn) 45%, transparent); } 100% { background-color: transparent; } }
.sw-card.placed .sw-pending { background: color-mix(in srgb, var(--sw-sched) 26%, var(--panel)); }
.sheet-due { margin: 0; color: var(--warn); }
.sheet-due:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .sw-card.is-new, .sw-card.is-new .sw-face, .dash-ev.is-new, .src-sum.flash, .sw-count.flash { animation: none; } }

/* ---------- offline (public/offline.js・2026-10-03) ----------
   A quiet band at the top while offline; write controls dimmed. Colours: a muted amber on the dark bar. */
:root { --offline-bg: #2a261d; --offline-line: #3b3426; --offline-ink: #cdb68a; }
:root.is-offline, :root.net-unstable { --appbar-h: 5.5rem; }
.offline-band {
  grid-column: 1 / -1; justify-self: center; max-width: 100%; margin: 0 0 .15rem; padding: .1rem .8rem;
  background: var(--offline-bg); border: 1px solid var(--offline-line); border-radius: 99px;
  color: var(--offline-ink); font-size: .74rem; line-height: 1.55; letter-spacing: .02em; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; /* 2026-11-12: a notice, never in the way of a tap */
}
body > .offline-band {
  position: sticky; top: 0; z-index: 10; display: block; margin: 0; border-radius: 0; border-width: 0 0 1px;
  padding: max(.15rem, env(safe-area-inset-top)) 1rem .15rem;
}
.is-offline .offline-off { opacity: .38; cursor: not-allowed; }
.is-offline .player::after {
  content: "オフラインでは再生できません"; display: block; margin-top: .2rem; color: var(--mute); font-size: .78rem;
}
.offline-toast { justify-content: center; text-align: center; }
.offline-card p { margin: .3rem 0 .8rem; }

/* ---------- 通知 (settings・public/notify-settings.js・2026-10-04) ----------
   Switch rows with one line each; 「オン推奨」 is a small amber tag with its reason under it. */
:root { --nt-rec: #f2c66d; --nt-rec-bg: #2a261d; }
.nt-device { display: grid; gap: .6rem; margin-bottom: .8rem; }
.nt-status { margin: 0; color: var(--ink); font-size: .92rem; line-height: 1.55; }
.nt-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.nt-actions .btn { min-height: 44px; }
.nt-actions:not(:has(.btn:not([hidden]))) { display: none; }
.nt-count { margin: 0; }
.nt-ios { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
.nt-ios-title { margin: 0 0 .4rem; font-weight: 700; font-size: .9rem; line-height: 1.5; }
.nt-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .25rem; font-size: .88rem; line-height: 1.5; color: var(--ink); }
.nt-form { border-top: 1px solid var(--line); padding-top: .4rem; }
.nt-h { margin: .9rem 0 .4rem; font-size: .9rem; color: var(--mute); font-weight: 700; }
.nt-kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.nt-kind { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.nt-kind:last-child { border-bottom: 0; }
.nt-row { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.nt-row input[type="checkbox"] { width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--accent); margin: 0; }
.nt-label { font-weight: 600; color: var(--ink); }
.nt-rec {
  flex: none; font-size: .7rem; font-weight: 700; color: var(--nt-rec); background: var(--nt-rec-bg);
  border: 1px solid color-mix(in srgb, var(--nt-rec) 45%, transparent); border-radius: 99px; padding: .05rem .5rem; white-space: nowrap;
}
.nt-reason { margin: 0 0 .1rem 1.9rem; color: var(--nt-rec); font-size: .78rem; line-height: 1.45; }
.nt-desc { margin: 0 0 .1rem 1.9rem; color: var(--mute); font-size: .78rem; line-height: 1.5; }
.nt-range { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 .3rem 1.9rem; }
.nt-time {
  width: auto; min-width: 6.4rem; min-height: 44px; padding: .45rem .7rem; font: inherit; color: var(--ink);
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
}
.nt-saved { min-height: 1.3em; margin: .6rem 0 0; }
/* 時刻（2026-10-05）: 各通知の行の右に15分刻みの時刻・秘書の朝便／夕方便／計画づくり */
.nt-krow { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.nt-krow .nt-row { flex: 1 1 12rem; }
.nt-at { min-width: 5.6rem; }
.nt-follow { color: var(--mute); font-size: .82rem; font-variant-numeric: tabular-nums; }
.nt-sameday { margin-top: .4rem; }
.nt-hisho { margin-top: .9rem; }
.nt-trow { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.nt-tlabel { flex: 1 1 12rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.nt-adv { margin: .5rem 0 .2rem; }
.nt-adv > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--mute); font-size: .88rem; }
.nt-hisho .nt-desc { margin-left: 0; }
.dash-plan-title { margin: .6rem 0 .1rem; font-weight: 700; color: var(--ink); }

/* ---------------- 💻 PC・作業（日付ページ・2026-10-04）---------------- */
.pc-list { list-style: none; margin: 0; padding: 0; }
.pc-list li { display: grid; grid-template-columns: 3.2rem 1fr; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.pc-list li:last-child { border-bottom: 0; }
.pc-work li { display: block; }
.pc-work .pc-t { display: block; font-size: .82rem; margin-bottom: .1rem; }
.pc-t { font-variant-numeric: tabular-nums; color: var(--mute); font-weight: 700; white-space: nowrap; }
.pc-x { color: var(--ink); overflow-wrap: anywhere; }
.pc-spans li { grid-template-columns: 6.9rem 1fr; }
.pc-total { margin: .5rem 0 0; }
.pc-note { margin-top: .7rem; }
.pc-summary { margin: .1rem 0 .7rem; color: var(--ink); line-height: 1.6; }
.pc-timeline li { grid-template-columns: 6.9rem 1fr; }
.pc-mark { display: inline-block; width: 1.3em; }
.pc-usage .pc-x { color: var(--mute); }

/* ---------- 今日の提案 (the morning post's choice; markup: src/pages/pick-block.js, behaviour: public/tasks-pick.js)
   ★ A row is a label: tapping the name toggles the box. The Notion link sits outside the label. ---------- */
.mp-list { list-style: none; margin: 0; padding: 0; }
.mp-row { display: flex; align-items: flex-start; gap: .4rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.mp-row:last-child { border-bottom: 0; }
.mp-check { flex: 1; min-width: 0; display: grid; grid-template-columns: 1.7rem 1fr; gap: .45rem; align-items: start; cursor: pointer; }
.mp-cb { width: 1.35rem; height: 1.35rem; margin: .12rem 0 0; accent-color: var(--accent); cursor: pointer; }
.mp-cb:disabled { cursor: default; }
.mp-main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.mp-main .dash-meta { margin: .2rem 0 0 !important; }
.mp-step { margin-top: .1rem; }
.mp-row.placed .dash-line { color: var(--card-mute); }
.mp-open { flex: none; margin-top: .15rem; }
.mp-group { margin: .7rem 0 .1rem; color: var(--card-mute); font-weight: 700; }
.mp-more { margin-top: .7rem; border: 1px solid var(--line); border-radius: 10px; padding: 0 .75rem .3rem; }
.mp-more summary { cursor: pointer; padding: .65rem 0; font-weight: 700; color: var(--ink); }
.mp-more[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.mp-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.mp-go { flex: 1 1 13rem; }
.mp-skip { flex: 0 1 auto; }
.mp-go:disabled, .mp-skip:disabled { opacity: .45; cursor: default; }
.mp-msg { min-height: 1.4em; margin: .4rem 0 0; color: var(--card-mute); }
.mp-result { margin: .2rem 0 .3rem; padding: .6rem .75rem; border-radius: 10px; background: color-mix(in srgb, var(--sw-go) 18%, var(--panel)); }
.mp-head { margin: 0 0 .3rem; font-weight: 700; color: var(--ink); }
.mp-slots { list-style: none; margin: 0 0 .3rem; padding: 0; }
.mp-slots li { padding: .2rem 0; line-height: 1.5; overflow-wrap: anywhere; }
.mp-slots .dash-ev-time { margin-right: .4rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.mp-slots a { white-space: nowrap; }
.dchip.fill { color: var(--kind-summary); border-color: currentColor; } /* 今日の3つに補った候補の札（2026-10-06） */
.mpick.sending .mp-list { opacity: .7; }
.pc-pending .pc-x { color: var(--mute); }
.pc-wait { margin-left: .3rem; font-size: .82rem; color: var(--mute); }
.pc-timeline li { grid-template-columns: 1fr; gap: .1rem; }
.pc-timeline .pc-t { font-size: .82rem; white-space: normal; }
.pc-dur { margin-left: .5rem; font-weight: 400; }

/* PC の常時録音: 1日1枠（声のあった時間帯）・マイク無音の知らせ（2026-10-05） */
.day-pc .day-rec-head { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
.pc-ranges { list-style: none; margin: .4rem 0 .2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.pc-ranges a { display: inline-block; padding: .15rem .55rem; border: 1px solid var(--bar-btn-line); border-radius: 99px; text-decoration: none; font-variant-numeric: tabular-nums; }
.pc-sum-head { font-size: .85rem; margin: .6rem 0 .2rem; }
.mic-warn { border: 1px solid var(--warn); color: var(--warn); }
.mic-warn p { margin: 0; line-height: 1.6; }
.mic-warn strong { display: block; }

/* ★の範囲（2026-10-07・src/highlights.js）: 書き起こしの範囲の行に色、範囲の先頭に★、日付ページの「★ 14:20〜14:23 要点」 */
.seg.in-hl { background: color-mix(in srgb, var(--warn) 13%, transparent); box-shadow: inset 3px 0 0 -1px var(--warn); }
.seg.in-hl.playing, .seg.in-hl:hover { background: color-mix(in srgb, var(--warn) 22%, var(--panel2)); }
.seg.hl-start .tx::before { content: "★ "; color: var(--warn); font-weight: 700; }
.hl-item { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; }
.hl-item.ranged .hl { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.hl-jump { white-space: nowrap; }
.day-hls { list-style: none; margin: .2rem 0 .4rem; padding: 0; display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; }
.day-hls a { color: var(--warn); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-hl-text { color: var(--ink); }

/* タスク候補の下書き（2026-10-07・pages/draft-block.js・public/tasks-drafts.js）。カードの右下に「✍️ 下書き」 */
.draft-btn {
  font: inherit; font-size: .82rem; font-weight: 700; min-height: 2rem; padding: 0 .7rem; border-radius: 99px; cursor: pointer;
  white-space: nowrap; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel2)); border: 1px solid var(--accent);
}
.draft-btn[data-draft-state="limit"], .draft-btn[data-draft-state="failed"] { color: var(--mute); border-color: var(--line); background: var(--panel2); }
/* 押すとすぐシートが開くので、端末のタップの色（四角）がシートの上に残って見えた（2026-10-07）→ 出さずに押した感触は :active で */
.draft-btn { -webkit-tap-highlight-color: transparent; }
.draft-btn:active { filter: brightness(1.25); }
.sw-main .draft-btn, .cand-done .draft-btn { margin-left: .4rem; vertical-align: middle; }
.stack-draft { position: absolute; right: .7rem; bottom: .55rem; height: 2.2rem; }
.stack-card:not([data-pos="0"]) .stack-draft { visibility: hidden; }
.dchip.draft-wait { color: var(--mute); }
.stack-card .draft-wait { position: absolute; right: .7rem; bottom: .85rem; }
.draft-panel { max-height: 88vh; overflow-y: auto; }
.draft-task { margin: 0; font-weight: 700; }
.draft-meta { margin: 0; }
.draft-subject { margin: 0; color: var(--ink); }
.draft-body {
  white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; padding: .7rem .8rem; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); user-select: text; -webkit-user-select: text; max-height: 46vh; overflow-y: auto;
}
.draft-blank { background: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--ink); border-radius: 4px; padding: 0 .1rem; }
.draft-note { margin: 0; }
.draft-redo { display: flex; gap: .5rem; align-items: flex-end; }
.draft-redo .sheet-field { flex: 1; }
.draft-redo-go {
  font: inherit; font-size: .9rem; min-height: 2.6rem; padding: 0 .9rem; border-radius: 10px; cursor: pointer;
  color: var(--ink); background: transparent; border: 1px solid var(--line); white-space: nowrap;
}
.draft-redo-go:disabled { opacity: .5; cursor: default; }
.draft-msg[data-tone="ok"] { color: var(--ok); }
.draft-msg[data-tone="error"] { color: var(--danger); }
.draft-panel.is-busy .draft-body { opacity: .6; }
.draft-copy-area { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ---- 🎙 声で追加（2026-10-08・pages/voice-block.js・public/voice-diary.js） ---- */
.diary-foot .voice-add { margin-left: auto; }
.diary-foot .voice-add + .btn { margin-left: 0; }
.voice-add.recording { background: var(--danger); color: #1a0a0a; border-color: transparent; font-variant-numeric: tabular-nums; }
.voice-status { margin: .45rem 0 0; }
.voice-status[data-tone="warn"] { color: var(--warn); }
.voice-status[data-tone="rec"] { color: var(--danger); }
.voice-wait { display: flex; align-items: center; gap: .55rem; margin: .4rem 0; color: var(--mute); }
.voice-wait[hidden] { display: none; }
.voice-spin { width: 1rem; height: 1rem; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: ask-spin 1s linear infinite; flex: none; }
.voice-field textarea { min-height: 9rem; font-size: 1rem; line-height: 1.65; resize: vertical; }
.voice-note { margin: 0; }
.voice-raw { font-size: .85rem; }
.voice-raw summary { cursor: pointer; color: var(--mute); min-height: 2rem; }
.voice-raw-text { white-space: pre-wrap; margin: .3rem 0 0; color: var(--mute); max-height: 30vh; overflow: auto; }
.voice-msg[data-tone="ok"] { color: var(--ok); }
@media (prefers-reduced-motion: reduce) { .voice-spin { animation: none; } }
.journal-mark { display: inline-block; padding: 0 .45rem; border-radius: 999px; font-size: .78rem; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---- 要約のコピー・編集（2026-10-08・pages/recording-page.js summaryBlock・public/summary-tools.js） ---- */
.sum-head { display: flex; align-items: baseline; gap: .5rem; }
.sum-head h2 { margin-bottom: .3rem; }
.sum-edited { font-size: .72rem; color: var(--mute); border: 1px solid var(--line); border-radius: 99px; padding: 0 .45rem; white-space: nowrap; }
.sum-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .7rem 0 0; }
.sum-actions .btn { -webkit-tap-highlight-color: transparent; }
.sum-msg:empty { display: none; }
.sum-editor { margin: .7rem 0 0; }
.sum-editor[hidden] { display: none; }
.sum-editor label { display: block; margin-bottom: .35rem; }
.sum-text { width: 100%; box-sizing: border-box; min-height: 14rem; font-size: 1rem; line-height: 1.6; resize: vertical; }
.sum-editor-actions { display: flex; gap: .5rem; margin: .5rem 0 0; }
.summary.editing .sum-body { opacity: .45; }
.sum-newer { margin: 0 0 .45rem; color: var(--warn); }

/* ---------- タグ (2026-10-08; src/pages/tag-chips.js, tags-page.js, public/tag-picker.js, tags.js) ---------- */
.tag-chip {
  --tc: #f2c66d; --tcb: rgba(242, 198, 109, .10);
  display: inline-block; font-size: .74rem; font-weight: 600; line-height: 1.5; padding: 0 .55rem; border-radius: 99px;
  color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 60%, transparent); background: var(--tcb);
  white-space: nowrap; text-decoration: none; vertical-align: middle;
}
/* タグの色 (v19, 2026-10-09; src/tags.js TAG_COLORS = vps/lifelog/tags.py COLORS): text --tc / background --tcb per palette name,
   chosen for the dark screen (text 7:1 or more even on the lighter panel #2c2c2e; test/tag-jev.test.js). yellow = the look before v19. */
.tc-yellow { --tc: #f2c66d; --tcb: rgba(242, 198, 109, .10); }
.tc-orange { --tc: #f9ae6e; --tcb: rgba(249, 174, 110, .12); }
.tc-red    { --tc: #ffa19c; --tcb: rgba(255, 161, 156, .12); }
.tc-pink   { --tc: #f7a8d3; --tcb: rgba(247, 168, 211, .12); }
.tc-purple { --tc: #cdb3ff; --tcb: rgba(205, 179, 255, .13); }
.tc-blue   { --tc: #a3c3ff; --tcb: rgba(163, 195, 255, .13); }
.tc-sky    { --tc: #7fd6f2; --tcb: rgba(127, 214, 242, .12); }
.tc-teal   { --tc: #6fd8c4; --tcb: rgba(111, 216, 196, .12); }
.tc-green  { --tc: #a3d98a; --tcb: rgba(163, 217, 138, .12); }
.tc-gray   { --tc: #c4c4cc; --tcb: rgba(196, 196, 204, .12); }
.tag-filter-chip[class*="tc-"]:not([aria-current]) { color: var(--tc); border-color: color-mix(in srgb, var(--tc) 55%, transparent); background: var(--tcb); }
.tag-colors { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .3rem; min-width: 0; }
.tag-colors legend { padding: 0; margin-bottom: .25rem; color: var(--mute); font-size: .85rem; }
.tag-color { position: relative; display: inline-flex; align-items: center; cursor: pointer; min-height: 2.2rem; }
.tag-color input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tag-color .tag-chip { font-size: .8rem; padding: .15rem .65rem; }
.tag-color input:checked + .tag-chip { outline: 2px solid var(--tc); outline-offset: 2px; }
.tag-color input:focus-visible + .tag-chip { outline: 2px solid var(--ink); outline-offset: 2px; }
.tag-jev-row { margin: .35rem 0 0; }
.tag-fresh p { margin: 0 0 .4rem; }
.tag-jev-body p { margin: .25rem 0; }
.tag-jev-count, .tag-jev-cost, .tag-jev-done { font-weight: 600; }
.tag-chip.ai { border-style: dashed; }
.tag-chip.off { color: var(--mute); border-color: var(--line); background: transparent; }
.tag-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-left: .4rem; vertical-align: middle; font-weight: 400; }
.tag-add {
  font: inherit; font-size: .72rem; line-height: 1.5; padding: 0 .5rem; border-radius: 99px; cursor: pointer;
  color: var(--mute); background: transparent; border: 1px dashed var(--line); -webkit-tap-highlight-color: transparent;
}
.tag-add:active { background: var(--panel2); }
.tag-whole { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0 0 .6rem; }
.tag-whole .tag-row { margin-left: 0; }
.tag-links { display: flex; flex-wrap: wrap; gap: .3rem; margin: .35rem 0 .1rem; }
.tag-filter { align-items: center; }
.tag-filter-label { white-space: nowrap; }
.tag-note { margin: -.3rem 0 .8rem; }
.tag-pick-list { list-style: none; margin: .2rem 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; max-height: 50vh; overflow-y: auto; }
.tag-pick-list .sheet-check { gap: .6rem; }
.tag-list { list-style: none; margin: 0; padding: 0; }
.tag-item { border-top: 1px solid var(--line); padding: .55rem 0; }
.tag-item:first-child { border-top: 0; }
.tag-item summary { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; cursor: pointer; }
.tag-item.retired { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.tag-brief { color: var(--ink); }
.tag-desc { margin: .5rem 0 .3rem; padding-left: 1.1rem; }
.tag-form { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0; }
.tag-form textarea { resize: vertical; }
.tag-detail summary { cursor: pointer; color: var(--mute); font-size: .85rem; margin: .2rem 0; }
.tag-detail[open] { display: flex; flex-direction: column; gap: .45rem; }
.tag-ai-row { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.tag-ai-row input { width: 1.2rem; height: 1.2rem; }
.tag-form-actions { display: flex; align-items: center; gap: .6rem; margin: 0; }
.tag-msg:empty { display: none; }
.tag-questions { margin: .3rem 0; }
.tag-q-head { margin: .2rem 0; font-weight: 700; }
.tag-q-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.tag-q p { margin: 0 0 .2rem; }
.tag-q-opt { display: inline-flex; align-items: center; gap: .2rem; margin-right: .8rem; font-size: .9rem; min-height: 2.2rem; }
.tag-review-fields { display: flex; flex-direction: column; gap: .4rem; }
/* ---------- 設定のトップ＝グループの一覧 (2026-10-08; markup: src/pages/settings-page.js settingsPage) ---------- */
.set-groups { list-style: none; margin: 0 0 .9rem; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.set-groups li + li { border-top: 1px solid var(--line); }
.set-group { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; min-height: 3.6rem; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.set-group:active { background: var(--panel2); }
.set-ico { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 9px; background: var(--panel2); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.set-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.set-txt b { font-size: 1rem; font-weight: 600; }
.set-txt small { font-size: .8rem; color: var(--mute); line-height: 1.4; overflow-wrap: anywhere; }
.set-txt .set-extra { color: var(--accent); }
.set-chev { flex: none; color: var(--mute); font-size: 1.4rem; line-height: 1; }
/* ---------- 書き起こしを消す・外出中は書き起こさない (2026-10-10; markup: src/pages/transcript-blocks.js, public/transcript-tools.js) ---------- */
.tx-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.tx-head h2 { margin-bottom: .3rem; }
.tx-select[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.tx-selecting .transcript .seg { cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.tx-selecting .transcript .seg .t { pointer-events: none; }
.transcript .seg.tx-picked { background: color-mix(in srgb, var(--ev-del) 22%, transparent); box-shadow: inset 4px 0 0 -1px var(--ev-del-armed); }
.tx-bar { position: sticky; bottom: calc(env(safe-area-inset-bottom) + .5rem); z-index: 30; margin: .6rem -.2rem 0; padding: .55rem .7rem; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.tx-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0; }
.tx-bar-row + .tx-bar-row { margin-top: .45rem; }
.tx-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-msg:empty { display: none; }
.btn.tx-del { background: var(--ev-del); border-color: var(--ev-del); color: #fff; }
.btn.tx-del:disabled { opacity: .45; }
.tx-del-list, .away-list { list-style: none; margin: .3rem 0 .5rem; padding: 0; }
.tx-del-item, .away-item { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.tx-del-item:first-child, .away-item:first-child { border-top: 0; }
.tx-del-item form, .away-item form { margin: 0 0 0 auto; }
.tx-del-when { font-variant-numeric: tabular-nums; }
.away-what { color: var(--mute); font-size: .88rem; overflow-wrap: anywhere; }
.away-day { margin-top: .45rem; }
.away-note { margin: .2rem 0 .4rem; }
.away-form { display: flex; flex-direction: column; gap: .45rem; margin: .4rem 0 .2rem; }
.away-form + .away-form { border-top: 1px solid var(--line); padding-top: .7rem; }
.away-form p { margin: 0; }
.away-switch, .away-dev { display: flex; align-items: center; gap: .5rem; min-height: 2.4rem; }
.away-switch input, .away-dev input { width: 1.2rem; height: 1.2rem; flex: none; }
.away-label { font-size: .9rem; }
.away-home { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; }
.away-devs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
/* ---------- 話題のカード (2026-10-11; markup: src/pages/topic-cards.js, public/topics.js) ---------- */
.tp-bar { display: flex; align-items: center; justify-content: space-between; gap: .4rem .6rem; flex-wrap: wrap; margin-bottom: .2rem; }
.tp-bar h2 { margin: 0; display: flex; align-items: baseline; gap: .45rem; }
.tp-n { font-size: .85rem; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.tp-view { display: flex; gap: .3rem; }
.tp-view .chip-link { padding: .2rem .7rem; font-size: .8rem; }
.tp-busy { margin: .3rem 0 0; }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic { padding: .75rem 0 .6rem; border-bottom: 1px solid var(--line); min-width: 0; }
.topic:last-child { border-bottom: 0; }
.topic:target { background: var(--mark); border-radius: 8px; }
.tp-head { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .55rem; margin: 0; }
.tp-time { font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.tp-date { font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; }
.tp-joined { white-space: nowrap; }
.tp-title { margin: .25rem 0 .2rem; font-size: 1.02rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.tp-body { color: var(--card-mute); font-size: .93rem; line-height: 1.6; overflow-wrap: anywhere; }
.tp-body p { margin: .2rem 0; }
.tp-body ul, .tp-body ol { margin: .15rem 0; padding-left: 1.2rem; }
.tp-body h1, .tp-body h2, .tp-body h3, .tp-body h4 { font-size: .93rem; color: var(--ink); margin: .45rem 0 .15rem; }
.tp-rest > summary { cursor: pointer; color: var(--accent); font-size: .86rem; margin: .1rem 0; list-style: none; display: inline-block; }
.tp-rest > summary::-webkit-details-marker { display: none; }
.tp-rest > summary::before { content: "▸ "; }
.tp-rest[open] > summary { display: none; }
.tp-hits { list-style: none; margin: .3rem 0; padding: 0; font-size: .82rem; }
.tp-hits li { padding: .15rem 0; }
.tp-hits a { color: var(--card-mute); text-decoration: none; overflow-wrap: anywhere; }
.tp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .35rem 0 0; }
.tp-tags .tag-row { margin-left: 0; }
.tp-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; margin-top: .35rem; }
.tp-tx { order: 1; flex: 0 1 auto; min-width: 0; }
.tp-tx[open] { flex-basis: 100%; order: 2; }
.tp-tx > summary { cursor: pointer; color: var(--mute); font-size: .8rem; list-style: none; display: inline-block; padding: .15rem 0; }
.tp-tx > summary::-webkit-details-marker { display: none; }
.tp-tx > summary::before { content: "▸ "; }
.tp-tx[open] > summary::before { content: "▾ "; }
.tp-open { order: 1; font-size: .8rem; color: var(--mute); }
.tp-lines { margin: .2rem 0 .1rem; padding: .35rem .5rem; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; max-height: 50vh; overflow-y: auto; }
.tp-lines p { margin: .2rem 0; }
.tp-audio { display: block; width: 100%; height: 2.2rem; margin: .1rem 0 .35rem; }
.tp-line-list { list-style: none; margin: 0; padding: 0; }
.tp-line {
  display: block; width: 100%; text-align: left; font: inherit; font-size: .78rem; line-height: 1.5; color: var(--card-mute);
  background: transparent; border: 0; border-radius: 4px; padding: .12rem .2rem; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tp-line:active, .tp-line.playing { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--ink); }
.tp-line .tp-t, .tp-hits .tp-t { font-variant-numeric: tabular-nums; color: var(--mute); margin-right: .35rem; }
.tp-line .tp-who, .tp-hits .tp-who { color: var(--mute); margin-right: .3rem; }
.tp-line .tp-tx-text { overflow-wrap: anywhere; }
.topic.tp-removed > :not(.tp-removed-note) { opacity: .38; }
.tp-removed-note { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: .35rem 0; font-size: .88rem; color: var(--ink); }
.tp-more { text-align: center; }
#tagTopics .topic { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem .55rem; margin-bottom: .6rem; }
#tagTopics .topic:last-child { border-bottom: 1px solid var(--line); }

/* ---------- 🤖 AIからの報告・「🤖 AIへ」 (2026-10-15; markup: src/pages/ai-report-block.js, behaviour: public/tasks-ai.js)
   ★ Nothing moves when pressed: each card has a fixed-height title (1 line), summary (3 lines) and action line;
   the AIへ button has a fixed width and only its text changes (AIへ → 取り消し N → 送信中 → 依頼済み). ---------- */
.ai-reports h3 { margin-bottom: .3rem; }
.ar-list { list-style: none; margin: 0 0 .3rem; padding: 0; }
.ar-card { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.ar-card:last-child { border-bottom: 0; }
.ar-face { position: relative; padding: .45rem 0; background: var(--panel); transition: transform .18s ease-out; touch-action: pan-y; }
.ar-card.dragging .ar-face { transition: none; }
.ar-bg {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 1.1rem; color: #fff; font-weight: 700;
  font-size: .95rem; visibility: hidden; background: var(--sw-go);
}
.ar-bg-left { justify-content: flex-end; background: var(--sw-no); }
.ar-card.drag-right .ar-bg-right, .ar-card.drag-left .ar-bg-left { visibility: visible; }
.ar-card.armed .ar-bg-right { background: var(--sw-go-armed); }
.ar-card.armed-left .ar-bg-left { background: var(--sw-no-armed); }
.ar-title { display: flex; align-items: center; gap: .35rem; margin: 0; height: 1.6rem; line-height: 1.6rem; white-space: nowrap; overflow: hidden; }
.ar-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ar-when { flex: none; }
.ar-sum {
  margin: .1rem 0 .35rem; height: 4.6em; line-height: 1.45; overflow: hidden; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
/* 2026-10-15 phase 2: the decision card as 4 one-line rows in the same fixed box (4 x 1.15em = 4.6em) */
.ar-sum.ar-card4 { display: block; -webkit-line-clamp: unset; }
.ar-l { display: flex; gap: .45em; margin: 0; height: 1.15em; line-height: 1.15; white-space: nowrap; overflow: hidden; }
.ar-k { flex: none; width: 3.3em; font-size: .85em; font-weight: 700; color: var(--mute); }
.ar-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ar-l.none .ar-v { color: var(--mute); }
.ar-act { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; height: 2.5rem; align-items: stretch; }
.ar-btn {
  display: flex; align-items: center; justify-content: center; font: inherit; font-size: .88rem; font-weight: 700; border-radius: 10px;
  cursor: pointer; padding: 0 .2rem; background: var(--panel2); color: var(--ink); border: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-decoration: none;
}
.ar-ok { color: var(--sw-go-armed); border-color: var(--sw-go); }
.ar-btn:disabled { opacity: .45; cursor: default; }
.ar-done, .ar-wait { grid-column: 1 / -1; display: flex; align-items: center; border-radius: 10px; font-size: .88rem;
  background: color-mix(in srgb, var(--sw-go) 22%, var(--panel)); color: var(--ink); white-space: nowrap; overflow: hidden; }
.ar-done { padding: 0 .6rem; text-overflow: ellipsis; }
.ar-done.sending { background: var(--panel2); color: var(--mute); }
.ar-wait { gap: .6rem; padding: 0 0 0 .6rem; }
.ar-wait.drop { background: color-mix(in srgb, var(--sw-no) 26%, var(--panel)); }
.ar-wait-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ar-undo { flex: none; width: 5rem; height: 100%; background: transparent; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.ar-card.answered .ar-name, .ar-card.answered .ar-sum { color: var(--mute); }
.ar-empty { margin: 0; }
.ar-nowrap { white-space: nowrap; }
.ai-del {
  flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 7.6em; height: 1.75rem; padding: 0 .3rem; border-radius: 999px; font: inherit; font-size: .76rem; font-weight: 700; /* 2026-10-29 ［🤖 AIに任せる］が入る幅 */
  white-space: nowrap; overflow: hidden; background: transparent; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); cursor: pointer;
}
.ai-del.grace { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.ai-del.sending { opacity: .7; cursor: default; }
.ai-del.done { color: var(--mute); border: 1px dashed var(--mute); cursor: default; }
.mp-row .ai-del { margin-top: .05rem; }
/* 2026-10-15 第3段: the hand-off's pill (tasks-ai.js) -- the same box as the button */
a.ai-del, .ai-del.handoff { text-decoration: none; cursor: default; }
a.ai-del { cursor: pointer; }
.ai-del.st-queued, .ai-del.st-working { color: var(--accent); border-style: solid; }
.ai-del.st-done { color: var(--accent); border: 1px dashed var(--accent); }
.ai-del.st-report { color: var(--ok, #2e7d32); border: 1px solid color-mix(in srgb, var(--ok, #2e7d32) 55%, transparent); }
.ai-del.st-night { color: var(--mute); border: 1px dashed var(--mute); }
/* 2026-10-29 v6: AIオフィスの台帳が受けた札（押すと AIオフィス） */
.ai-del.st-office6 { color: var(--accent); border-style: solid; }
/* 2026-10-16 第4段: a report's 直して handed to the bridge -- 「✍️ 直しを渡しました」 + the pill on the right */
.ar-done.ar-fixing { justify-content: space-between; gap: .5rem; padding-right: .4rem; }
.ar-fixing .ai-del { flex: none; }
@media (prefers-reduced-motion: reduce) { .ar-face { transition: none; } }

/* ---------- 録音から見た完了候補 (2026-10-15; markup: src/pages/donecheck-block.js, behaviour: public/tasks-donecheck.js)
   The same parts as 振り返り (.rv-face / .rv-bg / .rv-act / .rv-wait / .rv-done). ★ Fixed heights: the name and the
   evidence line are one line each and the buttons' line is shared with 「取り消し」 and the result, so nothing moves. ---------- */
.dc-row { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.dc-row:last-child { border-bottom: 0; }
.dc-row[data-swipe] .rv-face { touch-action: pan-y; }
.dc-row.dragging .rv-face { transition: none; }
.dc-row.drag-right .rv-bg-right, .dc-row.drag-left .rv-bg-left { visibility: visible; }
.dc-row.armed .rv-bg-right { background: var(--sw-go-armed); }
.dc-row.armed-left .rv-bg-left { background: var(--sw-no-armed); }
.dc-name { margin-bottom: .05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-why { display: flex; align-items: center; gap: .5rem; height: 1.6rem; margin: 0 0 .3rem; color: var(--mute); white-space: nowrap; overflow: hidden; }
.dc-quote { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dc-rec { flex: none; color: var(--accent); font-weight: 700; text-decoration: none; }
.dc-act { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dc-a-done { color: var(--sw-go-armed); border-color: var(--sw-go); }
.dc-a-notdone { color: var(--sw-no-armed); border-color: var(--sw-no); }

/* ---------- タスクを開く軽い画面 (2026-10-16 phase 3; markup: src/pages/task-view-page.js, behaviour: public/task-view.js)
   ★ Nothing moves when pressed: the title (2 lines) and chips (1 line) have fixed heights, the buttons a fixed size,
   and the status line keeps its room; what a re-read can change is below the operations. ---------- */
.tv { padding: .9rem 1rem 1rem; }
.tv-title {
  margin: 0 0 .35rem; font-size: 1.15rem; line-height: 1.4; height: 2.8em; overflow: hidden; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
.tv-chips { height: 1.7rem; overflow: hidden; white-space: nowrap; margin: 0 0 .15rem; }
.tv-fresh { height: 1.3rem; line-height: 1.3rem; margin: 0 0 .45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-ops { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .6rem 0; margin-bottom: .4rem; }
.tv-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.tv-btn {
  display: flex; align-items: center; justify-content: center; height: 2.75rem; padding: 0 .3rem; box-sizing: border-box;
  font: inherit; font-size: .88rem; font-weight: 700; border-radius: 10px; cursor: pointer;
  background: var(--panel2); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tv-done { color: var(--sw-go-armed); border-color: var(--sw-go); }
.tv-off { color: var(--mute); font-weight: 500; cursor: default; }
.tv-btn:disabled { opacity: .45; cursor: default; }
/* 2026-10-20 スワイプする行の中のリンク（タスク名＝共通部品でリンクになった振り返り・完了候補など）は、マウスで掴んでも
   リンクのドラッグ（ブラウザの引きずり）にしない。指で押したときはそのまま開く。 */
.rv-face a, .sw-face a, .ar-face a, .idea-face a { -webkit-user-drag: none; }
/* 2026-10-20 「🤖 AIへ」をボタンの行の4つ目に（tasks-ai.js の部品・札もそのまま）。行の高さは 2.75rem のまま:
   文字は小さくし、長い札・日付は枠の中で2行に折る。札が変わっても枠の大きさは変わらない（押してもずれない）。 */
.tv-row.has-ai { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
.tv-row.has-ai .tv-btn { font-size: .8rem; white-space: normal; line-height: 1.15; text-align: center; padding: 0 .2rem; overflow: hidden; }
.tv-row .ai-del {
  width: auto; min-width: 0; height: 2.75rem; border-radius: 10px; font-size: .8rem; line-height: 1.15;
  white-space: normal; text-align: center; padding: 0 .2rem; margin: 0;
}
.tv-status { display: flex; align-items: center; gap: .5rem; height: 2.4rem; margin: .3rem 0; font-size: .9rem; overflow: hidden; }
.tv-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-undo { flex: none; font: inherit; font-weight: 700; height: 2rem; padding: 0 .9rem; border-radius: 99px; background: transparent;
  color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.tv-note { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--mute); }
.tv-note textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .6rem; box-sizing: border-box; width: 100%; height: 5.6rem; resize: none;
}
.tv-note-row { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.tv-note-msg { flex: 1; min-width: 0; height: 2.6em; line-height: 1.3; overflow: hidden; }
.tv-send { flex: none; width: 7.5rem; }
.tv-closed { margin: .2rem 0; }
.tv-sec h3 { font-size: .85rem; color: var(--mute); margin: .9rem 0 .25rem; }
.tv-text { margin: 0; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.tv-card4 { display: flex; flex-direction: column; gap: .3rem; }
.tv-l { display: flex; gap: .5em; margin: 0; line-height: 1.45; }
.tv-k { flex: none; width: 3.3em; font-size: .85em; font-weight: 700; color: var(--mute); padding-top: .1em; }
.tv-v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tv-l.none .tv-v { color: var(--mute); }
.tv-body { font-size: .93rem; line-height: 1.55; overflow-wrap: anywhere; }
.tv-body p { margin: 0 0 .35rem; white-space: pre-wrap; }
.tv-body .tv-h { font-weight: 700; margin-top: .6rem; }
.tv-body .tv-li { padding-left: .9em; text-indent: -.9em; }
.tv-body .tv-todo.on { color: var(--mute); text-decoration: line-through; }
.tv-body .tv-quote { border-left: 3px solid var(--line); padding-left: .6rem; color: var(--mute); }
.tv-body .tv-callout { background: var(--panel2); border-radius: 8px; padding: .45rem .6rem; }
.tv-body .tv-hr { border: 0; border-top: 1px solid var(--line); margin: .6rem 0; }
.tv-body .tv-code { background: var(--panel2); border-radius: 8px; padding: .45rem .6rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; margin: 0 0 .35rem; }
.tv-toggle { margin: 0 0 .35rem; }
.tv-toggle summary { cursor: pointer; font-weight: 700; padding: .2rem 0; }
.tv-toggle > :not(summary) { margin-left: 1rem; }
.tv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 1rem 0 0; }
.tv-notion { margin-left: auto; color: var(--mute); padding: .4rem 0; }
/* 2026-10-19 全文化（src/pages/task-view-page.js）: 見出しごとの節（長い節は畳む）・入れ子・チェックボックス・表・リンク。
   ★ チェックを押しても大きさは変わらない（取り消し線と色だけ）。表は表の中だけ横に動く（画面ははみ出さない）。 */
.tv-body .tv-h1 { font-size: 1.08rem; }
.tv-body .tv-h2 { font-size: 1rem; }
.tv-part { margin: 0 0 .2rem; }
.tv-body .tv-part-h { font-weight: 700; margin: .8rem 0 .3rem; }
details.tv-part > summary.tv-part-h { cursor: pointer; padding: .15rem 0; }
.tv-part-n { font-weight: 400; font-size: .78rem; color: var(--mute); margin-left: .3em; }
.tv-body .tv-ai-h { color: var(--accent); }
.tv-kids { margin-left: 1rem; }
.tv-body label.tv-todo { display: flex; align-items: flex-start; gap: .45rem; margin: 0 0 .35rem; cursor: pointer; }
.tv-check { flex: none; width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: var(--accent); cursor: pointer; }
.tv-check:disabled { cursor: default; }
.tv-todo-x { flex: 1; min-width: 0; white-space: pre-wrap; }
.tv-body .tv-quote p, .tv-body .tv-callout p { margin: 0 0 .2rem; }
.tv-body .tv-quote, .tv-body .tv-callout { margin: 0 0 .35rem; }
.tv-body a { color: var(--accent); overflow-wrap: anywhere; }
.tv-body code { background: var(--panel2); border-radius: 4px; padding: 0 .2em; font-size: .9em; }
.tv-table-wrap { overflow-x: auto; max-width: 100%; margin: 0 0 .5rem; }
.tv-table { border-collapse: collapse; font-size: .85rem; }
.tv-table th, .tv-table td { border: 1px solid var(--line); padding: .3rem .45rem; vertical-align: top; text-align: left; white-space: pre-wrap; min-width: 4em; }
.tv-table th { background: var(--panel2); }
.tv-body .tv-unshown, .tv-body .tv-cut { margin: 0 0 .35rem; }

/* ---------- 2026-10-16 sprint A: less to read on the タスク tab (markup: src/pages/*-block.js) ----------
   ★ A 「使い方」 fold is one short line, closed by default; only opening it moves the page (the viewer's own tap).
   ★ Rows and buttons keep their fixed heights; nothing here changes a status line or a button box. */
.dash-help { margin: .1rem 0 .35rem; font-size: .8rem; color: var(--card-mute); }
.dash-help > summary {
  display: inline-flex; align-items: center; height: 1.5rem; cursor: pointer; list-style: none; color: var(--mute);
  -webkit-user-select: none; user-select: none;
}
.dash-help > summary::-webkit-details-marker { display: none; }
.dash-help > summary::before { content: 'ⓘ'; margin-right: .3em; }
.dash-help[open] > summary { color: var(--accent); }
.dash-help-body { margin: .1rem 0 .3rem; line-height: 1.6; color: var(--card-mute); overflow-wrap: anywhere; }
/* the status line under the heading: 「計画 04:30・取得 08:00」 and its 使い方 on one line */
div.dash-sub { display: flex; flex-wrap: wrap; align-items: center; column-gap: .6rem; }
div.dash-sub .dash-help { margin: 0; }
div.dash-sub .dash-help[open] { flex-basis: 100%; }
/* 振り返り: one section, a small date label over each day's rows */
.rv-day { margin: .5rem 0 0; }
.rv-day[data-kind="yesterday"] { color: var(--warn); }
.rv-day-fold > summary { cursor: pointer; list-style: none; }
.rv-day-fold > summary::-webkit-details-marker { display: none; }
/* AIからの報告: the old drafts' card is the last one, set apart a little */
.ar-list-backlog { margin-top: .2rem; padding-top: .1rem; border-top: 1px dashed var(--line); }
.ar-more { margin: .1rem 0 .2rem; }
.ar-more-btn { display: block; width: 100%; margin: .3rem 0 .2rem; min-height: 2.6rem; font: inherit; font-size: .9rem; color: var(--accent); background: transparent; border: 1px dashed var(--line); border-radius: 10px; cursor: pointer; }
.ar-more-btn[hidden], .ar-list-rest[hidden] { display: none; }
/* 現在のタスク一覧: tighter rows; 「🤖 AIへ」 on the title row and 「📅 予定に」 at the end of the chips line (fixed widths) */
.all-tasks .sw-face { padding: .35rem .6rem .1rem; gap: .5rem; }
.all-tasks .sw-main { line-height: 1.4; }
.all-tasks .sw-title { display: flex; align-items: flex-start; gap: .4rem; }
.all-tasks .sw-title .dash-task { flex: 1; min-width: 0; }
.all-tasks .sw-title .ai-del { flex: none; margin-top: -.05rem; }
.all-tasks .sw-main .dash-meta { margin: .15rem 0 0 !important; align-items: center; }
.all-tasks .at-sched { width: 2.6rem; height: 1.75rem; padding: 0; margin-left: auto; font-size: .9rem; }

/* ---------- 2026-10-18 話したアイデア (pages/idea-block.js, pages/idea-view-page.js, public/tasks-ideas.js)
   ★ Nothing moves when pressed: each row has a fixed-height title (1 line) and action line; the buttons have fixed
   widths and only their text changes (✅ タスクにする → 取り消し N → 送信中 → タスクにしました). ---------- */
.idea-noted { margin: .1rem 0 .4rem; line-height: 1.5; overflow-wrap: anywhere; }
.idea-sec > summary { cursor: pointer; list-style: none; }
.idea-sec > summary::-webkit-details-marker { display: none; }
.idea-sec > summary h3 { display: inline; }
.idea-sec > summary::before { content: '▸ '; color: var(--mute); }
.idea-sec[open] > summary::before { content: '▾ '; }
.idea-list { list-style: none; margin: .3rem 0; padding: 0; }
.idea-row { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.idea-row:last-child { border-bottom: 0; }
.idea-face { position: relative; padding: .35rem 0; background: var(--panel); transition: transform .18s ease-out; touch-action: pan-y; }
.idea-row.dragging .idea-face { transition: none; }
.idea-bg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 1.1rem; color: #fff;
  font-weight: 700; font-size: .95rem; visibility: hidden; background: var(--sw-no);
}
.idea-row.drag-left .idea-bg { visibility: visible; }
.idea-row.armed-left .idea-bg { background: var(--sw-no-armed); }
.idea-title { display: flex; align-items: center; gap: .4rem; margin: 0; height: 1.6rem; line-height: 1.6rem; white-space: nowrap; overflow: hidden; }
.idea-title a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.idea-when { flex: none; }
.idea-act { display: flex; align-items: center; gap: .4rem; height: 2rem; white-space: nowrap; overflow: hidden; }
.idea-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 9.6em; height: 1.75rem; padding: 0 .3rem; border-radius: 999px; font: inherit; font-size: .76rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; background: transparent; color: var(--sw-go-armed);
  border: 1px solid var(--sw-go); cursor: pointer;
}
.idea-btn.grace { background: color-mix(in srgb, var(--sw-go) 22%, transparent); }
.idea-btn.sending { opacity: .7; cursor: default; }
.idea-btn.done { color: var(--mute); border: 1px dashed var(--mute); cursor: default; }
.idea-wait { flex: 1; display: flex; align-items: center; gap: .5rem; height: 1.75rem; padding-left: .6rem; border-radius: 10px;
  background: color-mix(in srgb, var(--sw-no) 26%, var(--panel)); font-size: .84rem; min-width: 0; }
.idea-wait.done { background: var(--panel2); color: var(--mute); }
.idea-wait-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.idea-undo { flex: none; width: 4.6rem; height: 100%; background: transparent; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.idea-row.answered .idea-title a { color: var(--mute); }
.idea-view-ops { border-bottom: 0; }
.idea-text { white-space: normal; line-height: 1.6; }
.idea-chip .memo { font-weight: 700; }
/* 2026-10-18 保留中の依頼 (tasks-holds.js): the row's pill, the bar fixed under the top bar (nothing moves), the sheet's rows */
.ai-del.st-hold { color: var(--warn); border: 1px dashed var(--warn); cursor: pointer; }
.ah-bar {
  position: fixed; z-index: 8; left: 50%; transform: translateX(-50%); top: calc(var(--appbar-h) + env(safe-area-inset-top) + .25rem);
  width: min(30rem, calc(100% - 2rem)); box-sizing: border-box; height: 5.9rem; padding: .55rem 2.3rem .55rem .8rem;
  display: flex; flex-direction: column; justify-content: space-between; background: #3a3a3c; color: var(--ink);
  border: 1px solid var(--warn); border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}
.ah-bar[hidden] { display: none; }
.ah-msg {
  margin: 0; font-size: .9rem; font-weight: 700; line-height: 1.35; height: 2.7em; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere;
}
.ah-act, .ah-item-act { display: flex; align-items: center; gap: .4rem; height: 2.2rem; }
.ah-btn {
  flex: 1 1 0; min-width: 0; height: 2.2rem; padding: 0 .3rem; border-radius: 99px; font: inherit; font-size: .8rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: transparent; color: var(--ink); border: 1px solid var(--line); cursor: pointer;
}
.ah-btn.ah-send { background: var(--sw-sched-armed); color: #fff; border: 0; }
.ah-btn:disabled { opacity: .5; cursor: default; }
.ah-close {
  position: absolute; top: .15rem; right: .15rem; width: 2.2rem; height: 2.2rem; background: transparent; border: 0; color: var(--mute);
  font: inherit; font-size: 1.1rem; cursor: pointer;
}
.ah-wait { display: flex; align-items: center; gap: .4rem; width: 100%; height: 100%; min-width: 0; }
.ah-wait-msg { flex: 1; min-width: 0; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-undo { flex: none; width: 4.8rem; height: 2.2rem; background: transparent; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.ah-items { list-style: none; margin: .2rem 0; padding: 0; }
.ah-item { display: flex; align-items: center; gap: .5rem; height: 3.6rem; border-bottom: 1px solid var(--line); }
.ah-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.ah-item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ah-item-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-item-act { flex: none; width: 9.8rem; }

/* 2026-10-23 見本の日記（src/pages/sample-pages.js・機能表の samples） */
.chip.sample-mark { color: #e0a63c; border-color: currentColor; white-space: nowrap; }
.sample-intro p { margin: 0 0 .4rem; overflow-wrap: anywhere; }
.dcard.sample { border: 1px dashed color-mix(in srgb, #e0a63c 55%, transparent); }
.sample-banner { border: 1px dashed color-mix(in srgb, #e0a63c 55%, transparent); }
.sample-diary h2 { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.sample-diary p, .sample-a, .sample-q { overflow-wrap: anywhere; line-height: 1.7; }
.sample-recs, .sample-examples, .sample-src { margin: .4rem 0 0; padding-left: 1.1rem; }
.sample-rec { margin: 0 0 .7rem; }
.sample-rec-head { margin: 0 0 .2rem; overflow-wrap: anywhere; }
.sample-points { margin: 0; padding-left: 1.1rem; color: var(--card-mute); }
.sample-q { font-weight: 700; margin: 0 0 .4rem; }

/* 2026-10-23 設定 → 嶋田さんの版の機能（src/feature-admin-routes.js・public/feature-admin.js） */
.fa-list { list-style: none; margin: .4rem 0 0; padding: 0; }
.fa-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .7rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.fa-row:last-child { border-bottom: 0; }
.fa-main { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.fa-main b, .fa-main small { overflow-wrap: anywhere; }
.fa-main small { color: var(--card-mute); line-height: 1.5; }
.fa-why { color: #e0a63c !important; }
.fa-switch { display: inline-flex; align-items: center; gap: .35rem; min-width: 4.4rem; justify-content: flex-end; font-weight: 700; }
.fa-switch input { width: 1.4rem; height: 1.4rem; accent-color: var(--accent); }
.fa-lock { flex: none; padding: .3rem .6rem; border-radius: 99px; border: 1px solid var(--bar-btn-line); background: transparent; color: var(--card-mute); font: inherit; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.fa-state.always { font-size: .82rem; color: var(--card-mute); white-space: nowrap; }
.fa-status { grid-column: 1 / -1; min-height: 2.2rem; display: flex; align-items: center; color: var(--card-mute); overflow-wrap: anywhere; }
.fa-wait { flex: 1; display: flex; align-items: center; gap: .6rem; padding: 0 0 0 .6rem; height: 2.2rem; border-radius: 10px;
  background: color-mix(in srgb, var(--sw-go) 22%, var(--panel)); white-space: nowrap; overflow: hidden; }
.fa-wait-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fa-undo { flex: none; width: 5rem; height: 100%; background: transparent; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- 2026-10-24 AI が自動で進める輪: 質問カード・事実・成果物・GO（markup: src/pages/autoops-card.js, behaviour:
   public/tasks-ai.js）。★ 高さは描いた時点で決まる: 押して変わるのは色・文字・disabled だけ（選んだ印 ✓ の枠は最初からある）。 */
.ar-facts { list-style: none; margin: 0 0 .25rem; padding: 0; color: var(--mute); }
.ar-facts li { height: 1.35em; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-facts li::before { content: '・'; }
.ar-deliv { display: flex; align-items: center; gap: .45em; height: 2.4rem; margin: 0 0 .35rem; min-width: 0; }
.ar-deliv .ar-dv { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.ar-deliv .ar-btn { flex: none; height: 2.3rem; padding: 0 .7rem; }
.ar-qs { margin: 0 0 .3rem; }
.ar-q { border: 1px solid var(--line); border-radius: 10px; padding: .35rem .5rem .45rem; margin: 0 0 .35rem; min-width: 0; }
.ar-qt { float: left; width: 100%; padding: 0; margin: 0 0 .3rem; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }
.ar-qtag { display: inline-block; margin-right: .4em; padding: 0 .45em; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.5; vertical-align: .08em; }
.ar-qtag.wait { background: color-mix(in srgb, var(--warn, #f2c66d) 40%, var(--panel)); color: var(--ink); }
.ar-qtag.rec { color: var(--mute); border: 1px solid var(--line); }
.ar-chs { clear: both; display: grid; gap: .3rem; }
.ar-ch {
  display: flex; align-items: center; gap: .35em; width: 100%; min-width: 0; height: 2.7rem; padding: 0 .55rem; box-sizing: border-box;
  font: inherit; font-size: .86rem; text-align: left; color: var(--ink); background: var(--panel2); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
.ar-ch::before { content: '✓'; flex: none; width: 1em; font-weight: 700; color: transparent; }
.ar-ch[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--panel)); }
.ar-ch[aria-pressed="true"]::before { color: var(--accent); }
.ar-ch-t { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; overflow-wrap: anywhere; }
.ar-star { flex: none; color: var(--warn, #e0a800); }
.ar-ch:disabled, .ar-other:disabled { opacity: .6; cursor: default; }
.ar-other-row { display: flex; align-items: center; gap: .45em; margin-top: .3rem; min-width: 0; }
.ar-other-l { flex: none; font-size: .85rem; color: var(--mute); }
.ar-other {
  flex: 1; min-width: 0; height: 2.5rem; box-sizing: border-box; padding: 0 .55rem; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.ar-qsend { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .5rem; align-items: center; height: 2.5rem; }
.ar-qsend .ar-btn { height: 100%; }
.ar-qmsg { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; max-height: 2.5em; overflow-wrap: anywhere; color: var(--danger, #c62828); }
.ar-state { height: 1.4em; line-height: 1.4; margin: 0 0 .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--accent); }
.ar-go:disabled { color: var(--mute); border-color: var(--line); }

/* ---------- 2026-10-24 やらない・後回し（src/task-triage.js・public/task-triage.js） ---------- */
.tri-btn { font: inherit; font-weight: 700; cursor: pointer; background: transparent; color: var(--ink); border: 1px solid color-mix(in srgb, var(--mute) 70%, transparent); border-radius: 99px; }
.all-tasks .sw-tri { flex: none; width: 2.6rem; height: 1.75rem; padding: 0; margin-left: auto; font-size: 1rem; line-height: 1; }
.all-tasks .at-sched + .sw-tri { margin-left: 0; }
.dchip.defer { color: var(--mute); border-color: currentColor; }
.sw-card.deferred .sw-pending { background: color-mix(in srgb, var(--sw-sched) 26%, var(--panel)); }
.sw-card[data-act="drop"] .sw-pending { background: color-mix(in srgb, var(--sw-no) 26%, var(--panel)); }
.defer-box { margin: .6rem 0 0; border-top: 1px solid var(--line); padding-top: .4rem; }
.defer-sum { cursor: pointer; font-size: .9rem; color: var(--mute); min-height: 2.2rem; display: flex; align-items: center; }
.defer-list { margin-top: .4rem; }
.tri-sheet .tri-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.tri-sheet .tri-main .tri-done[hidden] { display: none; }
.tri-sheet .tri-main:has(.tri-done[hidden]) { grid-template-columns: minmax(0, 1fr); }
.tri-pick, .tri-day {
  display: flex; align-items: center; justify-content: center; gap: .35em; min-height: 2.75rem; padding: 0 .4rem; box-sizing: border-box;
  font: inherit; font-size: .95rem; font-weight: 700; border-radius: 10px; cursor: pointer;
  background: var(--panel2); color: var(--ink); border: 1px solid var(--line); white-space: nowrap;
}
.tri-done { color: var(--sw-go-armed); border-color: var(--sw-go); }
.tri-drop { color: var(--sw-no-armed); border-color: var(--sw-no); }
.tri-h { margin: .7rem 0 .35rem; font-size: .85rem; color: var(--mute); }
.tri-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.tri-day { flex-direction: column; gap: 0; line-height: 1.2; color: var(--sw-sched-armed); border-color: var(--sw-sched); }
.tri-day-d { font-size: .78rem; font-weight: 500; color: var(--mute); }
.tri-pickday { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; align-items: end; margin-top: .45rem; }
.tri-date-l { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; color: var(--mute); min-width: 0; }
.tri-date { box-sizing: border-box; width: 100%; min-height: 2.75rem; font: inherit; font-size: 1rem; padding: 0 .5rem;
  background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
.tri-date-go { color: var(--sw-sched-armed); border-color: var(--sw-sched); }
.tri-note { margin: .4rem 0 0; }
/* タスク画面の2行目（高さは1行目と同じ・押しても動かない） */
.tv-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .4rem; }
.tv-drop { color: var(--sw-no-armed); border-color: var(--sw-no); }
.tv-defer { color: var(--sw-sched-armed); border-color: var(--sw-sched); }
/* 報告カードの操作の行の4つ目（…）。幅は固定 */
.ar-act.has-tri { grid-template-columns: repeat(3, minmax(0, 1fr)) 2.6rem; }
.ar-tri { font-size: 1.05rem; }

/* ---------- 2026-10-24 質問コーナー（src/pages/qa-corner.js・public/tasks-qa.js） ---------- */
.qa-entry {
  display: flex; align-items: center; gap: .3em; width: 100%; min-height: 2.9rem; box-sizing: border-box; margin: 0 0 .6rem; padding: 0 .9rem;
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; border-radius: 12px;
  background: color-mix(in srgb, var(--warn) 22%, var(--panel)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 55%, var(--line));
}
.qa-entry-w { font-size: .85rem; font-weight: 500; color: var(--mute); }
.qa-entry-go { margin-left: auto; font-size: .9rem; color: var(--accent); }
.ar-qline { display: flex; align-items: center; gap: .5rem; height: 2.4rem; margin: 0 0 .3rem; }
.ar-qline-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-qline .ar-qopen { flex: none; height: 2.2rem; padding: 0 .9rem; color: var(--ink); border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
html.qa-open, html.qa-open body { overflow: hidden; }
.qa {
  position: fixed; inset: 0; z-index: 19; display: flex; flex-direction: column; box-sizing: border-box;
  background: var(--bg); padding: max(.5rem, env(safe-area-inset-top)) .8rem max(.6rem, env(safe-area-inset-bottom));
}
.qa[hidden] { display: none; }
.qa-top { flex: none; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 5.5rem; align-items: center; height: 2.6rem; }
.qa-back, .qa-close {
  height: 2.3rem; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; border-radius: 99px;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.qa-back:disabled { opacity: .35; cursor: default; }
.qa-count { margin: 0; text-align: center; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.qa-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.qa-card {
  display: flex; flex-direction: column; gap: .45rem; max-height: 100%; min-height: 0; box-sizing: border-box; padding: .8rem .8rem .7rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.qa-card[hidden] { display: none; }
.qa-card.qa-flip { animation: qa-flip .22s ease-out; }
@keyframes qa-flip { from { transform: translateX(28px); opacity: .25; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .qa-card.qa-flip { animation: none; } }
.qa-card > * { flex: none; }
.qa-task { margin: 0; font-size: .85rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-tagline { margin: 0; }
.qa-tag { display: inline-block; padding: .05em .55em; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.qa-tag.wait { background: color-mix(in srgb, var(--warn) 40%, var(--panel)); color: var(--ink); }
.qa-tag.rec { color: var(--mute); border: 1px solid var(--line); }
/* 長い質問のときは質問文の欄だけが縮み、その中で読める（選択肢・ボタンはいつも画面の中） */
.qa-card > .qa-text { flex: 0 1 auto; min-height: 3em; overflow-y: auto; }
.qa-text { margin: 0; font-size: 1.05rem; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.qa-chs { display: flex; flex-direction: column; gap: .4rem; }
.qa-ch {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .45rem; min-height: 2.75rem; box-sizing: border-box;
  padding: .35rem .75rem; font: inherit; font-size: .97rem; line-height: 1.35; text-align: left; cursor: pointer; border-radius: 12px;
  background: var(--panel2); color: var(--ink); border: 1px solid var(--line); overflow-wrap: anywhere;
}
.qa-ch[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--panel)); }
.qa-ch:disabled { opacity: .45; cursor: default; }
.qa-rec { flex: none; padding: .05em .45em; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--warn) 40%, var(--panel)); }
.qa-ch-t { min-width: 0; }
.qa-other-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.2rem; gap: .4rem; align-items: end; }
.qa-other-row[hidden] { display: none; }
.qa-other-l { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--mute); min-width: 0; }
.qa-other { box-sizing: border-box; width: 100%; height: 2.75rem; padding: 0 .6rem; font: inherit; font-size: 1rem;
  background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
.qa-send { height: 2.75rem; font: inherit; font-weight: 700; cursor: pointer; border-radius: 10px; background: var(--panel2); color: var(--accent); border: 1px solid var(--accent); }
.qa-msg { margin: 0; min-height: 1.3em; line-height: 1.3; color: var(--accent); overflow-wrap: anywhere; }
.qa-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; height: 2.75rem; }
.qa-foot:not(:has(.qa-tri)):not(:has(.qa-wait)) { grid-template-columns: minmax(0, 1fr); }
.qa-later, .qa-tri {
  height: 2.75rem; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; border-radius: 10px; padding: 0 .2rem;
  background: transparent; color: var(--ink); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qa-drop { color: var(--sw-no-armed); border-color: var(--sw-no); }
.qa-defer { color: var(--sw-sched-armed); border-color: var(--sw-sched); }
.qa-foot .qa-wait { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; padding: 0 0 0 .7rem; border-radius: 10px; font-size: .88rem;
  background: color-mix(in srgb, var(--sw-sched) 26%, var(--panel)); white-space: nowrap; overflow: hidden; }
.qa-foot .qa-wait.drop { background: color-mix(in srgb, var(--sw-no) 26%, var(--panel)); }
.qa-wait-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qa-undo { flex: none; height: 100%; padding: 0 .9rem; font: inherit; font-weight: 700; cursor: pointer; background: transparent; color: var(--ink); border: 0; border-left: 1px solid var(--line); }
.qa-end { text-align: center; padding: 2rem 1rem; }
.qa-end[hidden] { display: none; }
.qa-end-t { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 700; }
/* 背の低い画面（iPhone SE など）: 余白と高さを詰めて、いちばん長い質問でも選択肢とボタンを画面に収める */
@media (max-height: 720px) {
  .qa { padding-top: max(.3rem, env(safe-area-inset-top)); }
  .qa-top { height: 2.3rem; }
  .qa-back, .qa-close { height: 2rem; }
  .qa-card { gap: .3rem; padding: .55rem .65rem .55rem; }
  .qa-ch { min-height: 2.45rem; padding: .25rem .65rem; font-size: .92rem; }
  .qa-chs { gap: .3rem; }
  .qa-other, .qa-send, .qa-later, .qa-tri { height: 2.45rem; }
  .qa-foot { height: 2.45rem; }
  .qa-other-l { font-size: .74rem; }
  .qa-msg { min-height: 1.1em; font-size: .8rem; }
}
/* 2026-10-24 夕 確認のポップ（質問コーナーの「やらない」・src/task-triage.js #triConfirm）。下に出す＝親指で押しやすい */
.tri-confirm { z-index: 21; }
.tri-confirm-t { margin: 0; font-size: 1.1rem; font-weight: 700; outline: none; }
.tri-confirm-name { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tri-confirm-note { margin: 0 0 .2rem; }
.tri-confirm-note:empty { display: none; }
.tri-confirm-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .3rem; }
.tri-confirm-btns button { height: 3rem; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; border-radius: 12px; }
.tri-cancel { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.tri-ok { background: color-mix(in srgb, var(--sw-no) 30%, var(--panel)); color: var(--ink); border: 1px solid var(--sw-no-armed); }

/* ---------- 2026-10-25 選ぶシートの直し・やらない（対象外）・ゴミ箱・付け替え・質問コーナーの完了とスワイプ ---------- */
/* iOS で見えている画面がずれたとき（public/vv-fix.js の --vv-shift）、シートと質問コーナーも下のタブと同じだけ下へ戻す
   （平野さんの画面 10/25: シートが画面の途中に浮き、下に一覧が見えていた） */
.sheet, .qa { transform: translateY(var(--vv-shift)); }
.tri-sheet .tri-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tri-sheet .tri-main[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.tri-sheet .tri-main[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tri-sheet .tri-main .tri-pick[hidden] { display: none; }
.tri-undrop { color: var(--ink); border-color: var(--line); }
.tri-trash { color: var(--sw-no-armed); border-color: color-mix(in srgb, var(--sw-no) 60%, var(--line)); }
.tri-moves { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .4rem; margin-top: .45rem; }
.tri-moves[hidden], .tri-move[hidden] { display: none; }
.tri-move { color: var(--ink); }
/* 日付の欄: iOS は空の日付の欄に何も描かず、幅を縮めないため［この日まで］と重なっていた → 見た目を消して幅を欄に合わせ、空のときは案内を出す */
.tri-pickday { grid-template-columns: minmax(0, 1fr) 6.5rem; }
.tri-date-box { position: relative; display: block; min-width: 0; }
.tri-date { -webkit-appearance: none; appearance: none; display: block; min-width: 0; height: 2.75rem; line-height: 2.75rem; text-align: left; }
.tri-date::-webkit-date-and-time-value { text-align: left; }
.tri-date-ph { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); font-size: .95rem; color: var(--mute); pointer-events: none; }
.tri-date-box:not(.empty) .tri-date-ph, .tri-date:focus + .tri-date-ph { display: none; }
/* ブラウザ自身の「年/月/日」の下書きは、空で触っていない間だけ隠す（案内と重ねない） */
.tri-date-box.empty .tri-date:not(:focus)::-webkit-datetime-edit { color: transparent; }
.tri-date-go { width: 100%; }
.dchip.aioff { color: var(--sw-no-armed); border-color: currentColor; }
.sw-card[data-act="trash"] .sw-pending { background: color-mix(in srgb, var(--sw-no) 26%, var(--panel)); }
/* 質問コーナーの下の段: あとで・✅ 完了・🚫 やらない・⏸ 後回し…（ある分だけ等分） */
.qa-foot { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.qa-done { color: var(--sw-go-armed); border-color: var(--sw-go); }
.qa-done:disabled { opacity: .35; cursor: default; }
/* 4つ並ぶとき（390px で1つ約80px）は文字を少し小さく・余白を詰めて、「🚫 やらない」「⏸ 後回し…」を切らない */
.qa-foot:has(.qa-done):has(.qa-drop) .qa-later, .qa-foot:has(.qa-done):has(.qa-drop) .qa-tri { font-size: .76rem; padding: 0 .1rem; letter-spacing: -.02em; }
.qa-msg.qa-hint { color: var(--mute); }
/* カードのスワイプ（public/row-swipe.js）: カードに触れた動きはカードのもの。質問文が長くて欄の中で縦に動かせるときだけ、その欄は縦スクロール */
.qa-card { position: relative; touch-action: none; }
/* 質問文の欄はそれ自体がスクロールの箱（overflow-y: auto）＝カードの none が効かないので欄にも付ける */
.qa-card .qa-text { touch-action: none; }
.qa-card .qa-text.qa-scroll { touch-action: pan-y; } /* あふれているときだけ（public/tasks-qa.js draw が付ける） */
.qa-card.dragging { animation: none; }
.qa-card.drag-right { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sw-go) 60%, transparent); }
.qa-card.drag-left { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sw-no) 60%, transparent); }
.qa-card.drag-up { box-shadow: inset 0 0 0 2px var(--line); }
.qa-card.armed { box-shadow: inset 0 0 0 3px var(--sw-go-armed); }
.qa-card.armed-left { box-shadow: inset 0 0 0 3px var(--sw-no-armed); }
.qa-card.armed-up { box-shadow: inset 0 0 0 3px var(--accent); }
.qa-card.drag-right::after, .qa-card.drag-left::after, .qa-card.drag-up::after {
  position: absolute; top: .5rem; right: .6rem; z-index: 1; padding: .1em .6em; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--panel2); color: var(--ink); pointer-events: none;
}
.qa-card.drag-right::after { content: '✅ 完了'; left: .6rem; right: auto; } /* 右へずれたカードの見えている側（左）に出す */
.qa-card.drag-left::after { content: '🗑 ゴミ箱'; }
.qa-card.drag-up::after { content: 'あとで ›'; }

/* ---------- 話者を直す (2026-10-25; markup: src/pages/recording-page.js segmentItem / speakerSheet, public/speaker-fix.js) ---------- */
/* 札は span と同じ大きさ・同じ位置（押せることは点線の下線で示す。押しても行の高さ・幅は変わらない） */
.seg button.who {
  font: inherit; font-size: .78rem; font-weight: 700; line-height: inherit; color: var(--spk-color, var(--spk-none));
  background: none; border: 0; padding: 0; margin: 0; text-align: left; justify-self: start; cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: .22em; white-space: nowrap; flex: none; align-self: flex-start;
}
.seg button.who.fixed::after { content: ' ✓'; font-weight: 500; color: var(--mute); text-decoration: none; display: inline-block; margin-left: .15em; }
.spk-sheet .spk-main, .spk-sheet .spk-main[data-n] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spk-pick { color: var(--spk-color, var(--ink)); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.spk-pick[aria-pressed="true"] { border-color: var(--spk-color, var(--accent)); box-shadow: inset 0 0 0 1px var(--spk-color, var(--accent)); }
.spk-line { overflow-wrap: anywhere; }

/* ---------- 🏢 AIオフィス（2026-10-25・markup: src/pages/office-block.js・動き: public/tasks-office.js）
   見本 node-hp/internal/ai-office-redesign-20261025.html の 4。折り返しは body の overflow-wrap:anywhere を継ぐ（要素ごとに足さない）。
   高さは描いた時点で決まる: 大ボタン・結果の行・送った／まだ は同じ高さの1行（押して変わるのは文字と色だけ）。本文は開いたときだけ伸びる。 ---------- */
:root {
  --of-mail-bg: #1e3a5f; --of-mail-ink: #bcd8ff; --of-chat-bg: #1f4d3a; --of-chat-ink: #b9f0d2;
  --of-pick-bg: #4a3a1a; --of-pick-ink: #ffe0a8; --of-do-bg: #3d2a4d; --of-do-ink: #e6c8ff;
  --of-decide-bg: #2e3440; --of-decide-ink: #d0d6e2; --of-log-bg: #2a2f36; --of-log-ink: #aab3c0;
  --of-blank-bg: #5a4512; --of-blank-ink: #ffe0a8; --of-fill-bg: #1f4d3a; --of-fill-ink: #b9f0d2;
  --of-run: #8ab4f8;
}
.of-door { list-style: none; margin: 0; padding: 0; }
.of-card.ar-card { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 .6rem; }
.of-card .ar-face { padding: .55rem .7rem .5rem; border-radius: 12px; }
.of-top { display: flex; gap: .4rem; align-items: center; margin: 0 0 .2rem; font-size: .75rem; height: 1.4rem; white-space: nowrap; overflow: hidden; }
.of-tag { flex: none; border-radius: 999px; padding: 0 .55rem; font-weight: 700; line-height: 1.4rem; }
.of-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--mute); }
.t-mail { background: var(--of-mail-bg); color: var(--of-mail-ink); } .t-chat { background: var(--of-chat-bg); color: var(--of-chat-ink); }
.t-pick { background: var(--of-pick-bg); color: var(--of-pick-ink); } .t-do { background: var(--of-do-bg); color: var(--of-do-ink); }
.t-decide { background: var(--of-decide-bg); color: var(--of-decide-ink); } .t-log { background: var(--of-log-bg); color: var(--of-log-ink); }
.of-title { margin: 0 0 .35rem; font-size: .95rem; line-height: 1.45; }
.of-filled { margin: 0 0 .3rem; color: var(--mute); }
.of-fill { background: var(--of-fill-bg); color: var(--of-fill-ink); border-radius: 4px; padding: 0 .3rem; }
.of-body {
  position: relative; margin: 0; padding: .45rem .6rem; border-radius: 8px; background: var(--panel2); color: var(--ink);
  font-size: .86rem; line-height: 1.65; white-space: pre-wrap; max-height: calc(4 * 1.65em + .45rem); overflow: hidden; cursor: pointer;
}
/* 畳んでいる間は下の余白を取らない（5行目が余白に少し見えないように。4行ちょうどで切る） */
.of-body:not(.open):not(.of-short) { padding-bottom: 0; }
.of-body.open { max-height: none; }
.of-body.of-short { cursor: default; }
.of-body:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.of-blank { background: var(--of-blank-bg); color: var(--of-blank-ink); border-radius: 4px; padding: 0 .25rem; }
.of-q { margin: .45rem 0 0; }
.of-qt { margin: 0; font-size: .84rem; color: var(--warn); line-height: 1.5; }
.of-chs, .of-opts { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 0; }
.of-ch, .of-opt {
  font: inherit; font-size: .8rem; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px;
  padding: .3rem .7rem; cursor: pointer; text-align: left; max-width: 100%;
}
.of-opts { display: grid; grid-template-columns: minmax(0, 1fr); }
.of-opt { border-radius: 10px; display: grid; gap: .1rem; }
.of-opt-l { font-weight: 700; }
.of-opt-n { color: var(--mute); font-size: .76rem; }
.of-ch[aria-pressed="true"], .of-opt[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.of-ch:disabled { cursor: default; }
.of-rec { color: var(--warn); margin-right: .15rem; }
.of-qmsg { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: .25rem 0 0; min-height: 1.6rem; color: var(--mute); }
.of-qstat { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-qopen { flex: none; font: inherit; font-size: .8rem; background: none; border: 0; color: var(--accent); cursor: pointer; padding: .2rem 0; }
.of-mainbox { margin: .55rem 0 .35rem; height: 2.9rem; }
.of-main {
  display: block; width: 100%; height: 100%; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; padding: 0 .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.of-main:disabled { background: var(--panel2); color: var(--mute); cursor: default; }
.of-card.answered .of-main:disabled { background: color-mix(in srgb, var(--sw-go) 22%, var(--panel)); color: var(--ink); }
.of-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; height: 100%; }
.of-results[hidden] { display: none; }
.of-res { font: inherit; font-size: .88rem; font-weight: 700; border-radius: 10px; border: 1px solid var(--accent); background: var(--panel2); color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; }
.of-subs.ar-act { height: 2.1rem; }
.of-subs .ar-btn { font-size: .8rem; font-weight: 500; color: var(--mute); background: transparent; border-color: transparent; text-decoration: underline; }
.of-hold { font-size: .8rem; color: var(--mute); border: 1px dashed var(--line); border-radius: 10px; padding: .45rem .6rem; margin: 0 0 .4rem; }
.of-hold summary { cursor: pointer; list-style: none; }
.of-hold summary::-webkit-details-marker { display: none; }
.of-hold u { color: var(--accent); }
.of-hold-list { margin: .35rem 0 0; padding-left: 1.1rem; }
.of-hold-list li { margin: .15rem 0; }
.of-hold-t { color: var(--ink); margin-right: .4rem; }
.of-shelf { display: flex; flex-wrap: wrap; gap: .3rem; min-height: 1.75rem; }
.of-box { width: 1.75rem; height: 1.75rem; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .9rem; background: var(--panel2); border: 1px solid var(--line); }
.of-box.new { border-color: var(--ok); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 25%, transparent); animation: of-in .3s ease-out; }
@keyframes of-in { from { transform: translateY(-.6rem) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.of-toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(.8rem, env(safe-area-inset-bottom)); z-index: 5; width: min(24rem, calc(100% - 2rem));
  background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: .6rem .75rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.of-toast[hidden] { display: none; }
.of-toast-msg { margin: 0 0 .45rem; font-size: .88rem; }
.of-toast-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.of-toast-row button { height: 2.75rem; font: inherit; font-weight: 700; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); cursor: pointer; }
.of-toast-row .of-yes { background: var(--accent); color: var(--on-accent); border: 0; }
.tri-confirm-note { white-space: pre-line; }

/* ---------- 🏢 AIオフィス v3（2026-10-25 夕・全画面・見本 node-hp/internal/ai-office-v3-20261025.html）
   入口のボタン → 全画面の層（z 16: 質問コーナー 19・シート 20・確認 21 はこの上に出る）。あなたの机は1件だけ（.of-cur）。
   社員の動きは状態の class（making / waiting / ask / idle）だけ。style 属性は使わない（CSP）。prefers-reduced-motion で止める。 ---------- */
:root { --ofx-floor: #10141c; --ofx-tile: #141a24; --ofx-wood: #5b4636; --ofx-wood2: #7a5d47; --ofx-box: #c99a62; --ofx-box-line: #8a6a43; }
.of-enter-sec { padding-top: .2rem; }
.of-enter {
  display: flex; align-items: center; gap: .75rem; width: 100%; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  border: 1px solid var(--accent); border-radius: 14px; padding: .8rem .9rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--panel)), var(--panel));
}
.of-enter-i { font-size: 2rem; line-height: 1; flex: none; }
.of-enter-t { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.of-enter-t b { font-size: 1.05rem; }
.of-enter-s { color: var(--mute); font-size: .82rem; line-height: 1.5; }
.of-enter-go { flex: none; color: var(--accent); font-weight: 700; }
html.of-open, html.of-open body { overflow: hidden; }
html.of-open .toast { z-index: 18; }
.ofx { position: fixed; inset: 0; z-index: 16; display: flex; flex-direction: column; background: var(--ofx-floor); color: var(--ink); }
.ofx[hidden] { display: none; }
.ofx-bar { flex: none; display: flex; align-items: center; gap: .5rem; padding: max(.55rem, env(safe-area-inset-top)) .8rem .55rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.ofx-back { flex: none; font: inherit; font-size: .88rem; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 8px; padding: .25rem .6rem; cursor: pointer; }
.ofx-ttl { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofx-today { flex: none; font-size: .8rem; color: var(--mute); white-space: nowrap; }
.ofx-today strong { color: var(--ok); font-size: 1.05rem; }
.ofx-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ofx-main { max-width: 74rem; margin: 0 auto; padding: .75rem .75rem 6rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
@media (min-width: 900px) {
  .ofx-main { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); align-items: start; }
  .ofx-desk { position: sticky; top: .75rem; }
}
.ofx-away { grid-column: 1 / -1; margin: 0; display: flex; gap: .5rem; align-items: flex-start; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; font-size: .86rem; }
.ofx-away[hidden] { display: none; }
.ofx-away-t { flex: 1; min-width: 0; }
.ofx-away-x { flex: none; font: inherit; background: none; border: 0; color: var(--mute); cursor: pointer; }
/* あなたの机 */
.ofx-desk { background: linear-gradient(180deg, var(--ofx-wood2), var(--ofx-wood)); border-radius: 16px; padding: .6rem; box-shadow: 0 6px 0 #3e2f25; min-width: 0; }
.ofx-desk-t { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0 .25rem .45rem; color: #f5e6d6; font-size: .8rem; }
.ofx-desk-t b { font-size: .95rem; }
.ofx-desk-n.off { visibility: hidden; }
.ofx-desk .of-door { list-style: none; margin: 0; padding: 0; }
.ofx-desk .of-card { display: none; }
.ofx-desk .of-card.of-cur { display: block; }
.ofx-desk .of-card.ar-card { border: 1px solid var(--line); border-radius: 12px; margin: 0; background: var(--panel); }
.ofx-desk .of-card .ar-face { background: var(--panel); }
.of-slide { animation: ofx-slidein .45s ease-out; }
@keyframes ofx-slidein { from { transform: translateY(-.9rem) rotate(-1.2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.of-now { margin: 0 0 .45rem; padding: .35rem .6rem; border-left: 4px solid var(--warn); border-radius: 6px; background: color-mix(in srgb, var(--warn) 14%, var(--panel)); font-weight: 700; font-size: .9rem; line-height: 1.5; }
.ofx-gone-keep { visibility: hidden; }
.ofx-empty { display: grid; gap: .3rem; justify-items: center; text-align: center; background: var(--panel); border-radius: 12px; padding: 1.4rem .8rem; }
.ofx-empty[hidden] { display: none; }
.ofx-empty-i { font-size: 2.2rem; }
.ofx-empty span:last-child { color: var(--mute); font-size: .88rem; }
.ofx-stack { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-height: 1.6rem; margin: .5rem .25rem 0; color: #f5e6d6; font-size: .8rem; }
.ofx-sbox { width: 1.5rem; height: 1.35rem; border-radius: 4px; background: var(--ofx-box); border: 1px solid var(--ofx-box-line); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; }
/* 社員のフロア・棚 */
.ofx-side { display: grid; gap: .9rem; min-width: 0; }
.ofx-panel { border: 1px solid var(--line); border-radius: 16px; padding: .6rem; min-width: 0; }
.ofx-floorwrap { background: repeating-linear-gradient(0deg, var(--ofx-tile) 0 38px, #121822 38px 39px); }
.ofx-shelfwrap { background: var(--panel); }
.ofx-sec-t { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem .5rem; margin: 0 .15rem .5rem; font-size: .8rem; color: var(--mute); }
.ofx-sec-t b { color: var(--ink); font-size: .95rem; white-space: nowrap; }
.ofx-floor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 560px) { .ofx-floor { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ofx-st {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 11rem; padding: .45rem .5rem .6rem; text-align: left; font: inherit; color: var(--ink);
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.ofx-st:focus-visible { outline: 2px solid var(--accent); }
.ofx-scene { position: relative; display: block; height: 4.6rem; margin: 0 0 .25rem; }
.ofx-tbl { position: absolute; left: 6%; right: 6%; bottom: .35rem; height: 1rem; background: var(--ofx-wood2); border-radius: 4px; box-shadow: 0 4px 0 var(--ofx-wood); }
.ofx-mon { position: absolute; left: 50%; bottom: 1.35rem; width: 2.1rem; height: 1.5rem; margin-left: .1rem; background: #0b1220; border: 2px solid #334155; border-radius: 3px; overflow: hidden; }
.ofx-mon i { position: absolute; left: 3px; right: 3px; height: 2px; background: #334155; }
.ofx-mon i:nth-child(1) { top: 4px; } .ofx-mon i:nth-child(2) { top: 9px; right: 10px; } .ofx-mon i:nth-child(3) { top: 14px; right: 6px; }
.ofx-st.making .ofx-mon i { background: var(--of-run); animation: ofx-type 1.1s steps(3) infinite; }
.ofx-st.making .ofx-mon i:nth-child(2) { animation-delay: .3s; } .ofx-st.making .ofx-mon i:nth-child(3) { animation-delay: .6s; }
@keyframes ofx-type { 0% { right: 24px; } 100% { right: 3px; } }
.ofx-papers { position: absolute; left: 14%; bottom: 1.35rem; width: 1.25rem; display: flex; flex-direction: column-reverse; gap: 1px; }
.ofx-papers i { display: block; height: 3px; border-radius: 1px; background: #e2e8f0; opacity: .15; }
.ofx-papers.s1 i:nth-child(-n+1), .ofx-papers.s2 i:nth-child(-n+2), .ofx-papers.s3 i:nth-child(-n+3), .ofx-papers.s4 i:nth-child(-n+4) { opacity: .95; }
.ofx-st.idle .ofx-mon i { opacity: .4; }
.ofx-bub { position: absolute; left: .25rem; top: -.1rem; max-width: calc(100% - .5rem); display: none; padding: .15rem .45rem; border-radius: 8px; background: #fff; color: #1f2430; font-size: .7rem; font-weight: 700; line-height: 1.35; }
.ofx-bub::after { content: ""; position: absolute; left: 1.5rem; bottom: -5px; border: 5px solid transparent; border-top-color: #fff; border-bottom: 0; }
.ofx-st.ask .ofx-bub { display: block; }
.ofx-nm { display: block; font-weight: 700; font-size: .86rem; line-height: 1.3; }
.ofx-rank { margin-left: .3rem; color: var(--mute); font-size: .72rem; font-weight: 400; }
.ofx-do { display: block; flex: 1; margin: .1rem 0 0; color: var(--mute); font-size: .76rem; line-height: 1.45; }
.ofx-do b { color: var(--ink); font-weight: 600; }
.ofx-steps, .ofx-stepl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.ofx-steps { margin-top: .4rem; }
.ofx-steps i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.ofx-steps.s1 i:nth-child(-n+1), .ofx-steps.s2 i:nth-child(-n+2), .ofx-steps.s3 i:nth-child(-n+3), .ofx-steps.s4 i:nth-child(-n+4) { background: var(--of-run); }
.ofx-st.ask .ofx-steps.s3 i:nth-child(-n+3) { background: var(--warn); }
.ofx-stepl { margin-top: 2px; font-size: .6rem; color: var(--mute); text-align: center; }
.ofx-badge { position: absolute; right: .5rem; top: .5rem; padding: 0 .45rem; border-radius: 999px; background: var(--ok); color: #0b1324; font-size: .68rem; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.ofx-badge.show { opacity: 1; transform: none; }
.ofx-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; margin: .6rem .15rem 0; font-size: .78rem; color: var(--mute); }
.ofx-foot .of-hold { margin: 0; }
.ofx-shelfwrap .of-shelf { padding: .35rem .35rem .45rem; border-bottom: 6px solid var(--ofx-wood); min-height: 2.6rem; align-items: flex-end; }
.ofx-shelfwrap .of-box { background: var(--ofx-box); border-color: var(--ofx-box-line); }
.ofx-shelfwrap .of-box.pending { opacity: .75; }
.ofx-fly { position: fixed; left: 0; top: 0; z-index: 30; width: 30px; height: 26px; border-radius: 5px; background: var(--ofx-box); border: 1px solid var(--ofx-box-line); display: flex; align-items: center; justify-content: center; font-size: .8rem; pointer-events: none; }
/* 5秒の取り消し・社員の中身（層の下に出る） */
.ofx-undobar, .ofx-info {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(.8rem, env(safe-area-inset-bottom)); z-index: 6; width: min(26rem, calc(100% - 2rem));
  background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: .6rem .75rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.ofx-undobar[hidden], .ofx-info[hidden] { display: none; }
.ofx-wait { display: flex; align-items: center; gap: .6rem; }
.ofx-wait-msg { flex: 1; min-width: 0; font-size: .86rem; }
.ofx-undo { flex: none; font: inherit; font-weight: 700; padding: .45rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); cursor: pointer; }
.ofx-info-t { margin: 0 0 .25rem; font-weight: 700; }
.ofx-info-n { margin: 0 0 .35rem; color: var(--mute); }
.ofx-check { list-style: none; margin: 0 0 .5rem; padding: 0; }
.ofx-check li { display: flex; gap: .5rem; font-size: .86rem; }
.ofx-check .m { flex: none; width: 1.2em; }
.ofx-check .t { flex: 1; min-width: 0; }
.ofx-info-x { width: 100%; height: 2.5rem; font: inherit; font-weight: 700; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); cursor: pointer; }
.ofx-hidden-link, .ofx-copy-area { position: fixed; top: -1000px; left: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .ofx *, .ofx *::before, .ofx *::after, .of-box.new { animation: none !important; transition: none !important; }
}


/* ---------- 🏢 AIオフィス v4（2026-10-25 夜・平野さん OK・見本 node-hp/internal/ai-office-v4-20261025.html）
   社員＝Claude 風のドット絵（src/pages/office-chibi.js）・表情と腕は親の class で1組だけ見せる。言葉の時計・受付係・コンベア・🏢 オフィスへ。 ---------- */
.ofx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ofx-ch { position: absolute; left: 50%; bottom: .45rem; width: 4.6rem; height: 5.5rem; margin-left: -3.4rem; display: block; }
.ofx-chibi { width: 100%; height: 100%; overflow: visible; display: block; }
.ofx-chibi .face, .ofx-chibi .arms { display: none; }
.making .f-work, .making .a-type, .ask .f-ask, .ask .a-up, .idle .f-idle, .idle .a-idle,
.waiting:not(.ask) .f-happy, .waiting:not(.ask) .a-hold, .got .f-happy, .got .a-hold { display: inline; }
.ofx-st .ofx-scene { height: 6.6rem; }
.making .a-type .l { animation: ofx-tap .3s steps(2) infinite alternate; }
.making .a-type .r { animation: ofx-tap .3s steps(2) infinite alternate .15s; }
@keyframes ofx-tap { from { transform: translateY(0); } to { transform: translateY(-4px); } }
.making .ofx-ch { animation: ofx-bob 1.2s steps(2) infinite; }
@keyframes ofx-bob { 50% { transform: translateY(-2px); } }
.ask .a-up .r { animation: ofx-wave .8s steps(2) infinite; }
@keyframes ofx-wave { 50% { transform: translate(3px, -3px); } }
.idle .ofx-ch { animation: ofx-breathe 3.2s steps(2) infinite; }
@keyframes ofx-breathe { 50% { transform: translateY(1px); } }
.got .ofx-ch { animation: ofx-hop .55s ease-in-out 3; }
@keyframes ofx-hop { 50% { transform: translateY(-7px); } }
.ofx-chibi .zz { opacity: 0; }
.idle .ofx-chibi .zz { animation: ofx-zz 2.6s ease-in-out infinite; }
@keyframes ofx-zz { 0% { opacity: 0; transform: translate(0, 0); } 40% { opacity: .9; } 100% { opacity: 0; transform: translate(6px, -10px); } }
.ofx-mon { margin-left: 1.1rem; }
.ofx-papers { left: 4%; }
/* 言葉の時計（上のバーの下・1行） */
.ofx-strip { flex: none; margin: 0; display: flex; gap: .5rem; align-items: center; justify-content: center; padding: .35rem .8rem; background: #14203a; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--mute); }
.ofx-strip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ofx-strip.run { color: #bff3e6; background: #12302d; }
.ofx-strip.run .ofx-si { display: inline-block; animation: ofx-spin 1s linear infinite; }
@keyframes ofx-spin { to { transform: rotate(360deg); } }
/* 受付係 */
.ofx-inbox { display: flex; gap: .6rem; align-items: flex-start; background: rgba(0, 0, 0, .35); border: 1px dashed #3f6d68; border-radius: 12px; padding: .45rem .6rem; margin: 0 0 .6rem; }
.ofx-in-who { flex: none; width: 5.8rem; }
.ofx-in-who .ofx-scene { height: 6.3rem; }
.ofx-in-who .ofx-ch { margin-left: -2.4rem; }
.ofx-in-who .ofx-bub { display: none; }
.ofx-in-who.got .ofx-bub { display: block; background: #ccfbf1; }
.ofx-in-who.got .ofx-bub::after { border-top-color: #ccfbf1; }
.ofx-in-tx { flex: 1; min-width: 0; }
.ofx-in-tx b { display: block; font-size: .88rem; }
.ofx-in-list { list-style: none; margin: .25rem 0 0; padding: 0; }
.ofx-in-list li { display: flex; gap: .4rem; align-items: baseline; font-size: .8rem; line-height: 1.5; margin: 0 0 .25rem; }
.ofx-in-n { flex: 1; min-width: 0; }
.ofx-pill { flex: none; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 0 .45rem; }
.ofx-pill.got { background: #12302d; color: #bff3e6; }
.ofx-pill.wait { background: #3a2f1c; color: #ffe0a8; }
.ofx-in-none { margin: .25rem 0 0; color: var(--mute); font-size: .8rem; }
/* 仕事のベルトコンベア */
.ofx-belt { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .6rem .6rem; margin: 0 0 .6rem; }
.ofx-belt-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem .5rem; margin: 0 0 .4rem; font-size: .8rem; color: var(--mute); }
.ofx-belt-h b { color: var(--ink); font-size: .88rem; white-space: nowrap; }
.ofx-track { display: flex; align-items: center; gap: .5rem; height: 2.75rem; }
.ofx-pile { flex: none; display: flex; flex-direction: column-reverse; gap: 2px; width: 2.1rem; }
.ofx-pile i { display: block; height: 7px; border-radius: 2px; background: var(--ofx-box); border: 1px solid var(--ofx-box-line); }
.ofx-conv { position: relative; flex: 1; min-width: 0; height: 1.4rem; border-radius: .7rem; border: 2px solid #3a4560; background: repeating-linear-gradient(90deg, #2a3550 0 14px, #1f2940 14px 28px); }
.ofx-conv.on { animation: ofx-belt .6s linear infinite; }
@keyframes ofx-belt { to { background-position: 28px 0; } }
.ofx-stop { position: absolute; right: -.15rem; top: -.55rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #7a2e2e; color: #fff; font-size: .62rem; font-weight: 700; display: none; align-items: center; justify-content: center; border: 2px solid #fca5a5; }
.ofx-conv.stop .ofx-stop { display: flex; }
.ofx-ride { position: absolute; left: 0; top: -.85rem; width: 1.9rem; height: 1.6rem; border-radius: 5px; background: var(--ofx-box); border: 1px solid var(--ofx-box-line); display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.ofx-belt-msg { margin: .35rem 0 0; font-size: .8rem; color: var(--mute); min-height: 1.3em; }
.ofx-conv.stop ~ .ofx-belt-msg, .ofx-belt:has(.ofx-conv.stop) .ofx-belt-msg { color: #ffe0a8; }
.ofx-flow { display: block; width: 100%; margin: .45rem 0 0; height: 2.75rem; border: 0; border-radius: 12px; background: #2fb5a3; color: #06201c; font: inherit; font-weight: 800; font-size: .98rem; cursor: pointer; }
.ofx-flow:disabled { background: var(--panel2); color: var(--mute); cursor: not-allowed; }
/* 🏢 オフィスへ（一覧の行・タスク画面・選ぶシート） */
.of-throw { display: inline-flex; align-items: center; justify-content: center; min-width: 6.6em; height: 1.75rem; margin-left: .35rem; padding: 0 .6rem; vertical-align: middle;
  border: 1px solid #3f6d68; border-radius: 999px; background: #12302d; color: #bff3e6; font: inherit; font-size: .76rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.of-throw.grace { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.of-throw.sending { opacity: .7; cursor: default; }
.of-throw.done { color: var(--mute); background: transparent; border-style: dashed; cursor: default; font-weight: 500; }
.tv-throw { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .2rem 0 .5rem; }
.tv-throw .of-throw { margin-left: 0; height: 2.2rem; font-size: .86rem; }
.tri-office { display: grid; gap: .1rem; width: 100%; margin: 0 0 .5rem; padding: .6rem .8rem; text-align: left; border: 1px solid var(--accent); border-radius: 12px; background: #12302d; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.tri-office[hidden] { display: none; }
.tri-office-s { font-size: .78rem; font-weight: 400; color: var(--mute); }
@media (prefers-reduced-motion: reduce) {
  .ofx-ch, .ofx-chibi *, .ofx-conv, .ofx-strip .ofx-si { animation: none !important; }
}

/* ---------- 🏢 AIオフィス v5（2026-10-25 夜: 詳細・行き止まりなし・選んで流す・いまの状態・文を減らす） ---------- */
/* 入口: 件数の丸印・作業中の歯車（文は無し） */
.of-enter { gap: .6rem; }
.of-enter-t { flex: 1; min-width: 0; font-size: 1.05rem; }
.of-enter-n { flex: none; min-width: 1.7rem; height: 1.7rem; padding: 0 .45rem; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; }
.of-enter-live { flex: none; font-size: 1.05rem; animation: ofx-spin 2.4s linear infinite; }
.of-enter-live.off { display: none; }
.of-enter-go { font-size: 1.3rem; }
/* カード: 押すと詳細 */
.of-top, .of-title, .of-body { cursor: pointer; }
.of-top:focus-visible, .of-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.of-more { display: block; width: 100%; margin: .3rem 0 .1rem; padding: .35rem; border: 0; border-radius: 8px; background: transparent; color: var(--accent);
  font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; text-align: center; }
/* 空欄の入力欄・次の操作（押せない大ボタンのすぐ上） */
.of-fill-box { margin: .5rem 0 .2rem; padding: .55rem .6rem; border: 1px solid var(--warn); border-radius: 10px; background: color-mix(in srgb, var(--warn) 9%, var(--panel)); }
.of-fill-box[hidden] { display: none; }
.of-fill-h { margin: 0 0 .35rem; font-weight: 700; font-size: .86rem; }
.of-fill-l { display: grid; gap: .2rem; margin: 0 0 .45rem; font-size: .8rem; color: var(--mute); }
.of-fill-n { color: var(--of-blank-ink); }
.of-fill-in { width: 100%; height: 2.6rem; padding: 0 .6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: inherit; font-size: .95rem; }
.of-fill-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; }
.of-fill-go { height: 2.6rem; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 800; cursor: pointer; }
.of-fill-go:disabled { opacity: .6; }
.of-fill-later { min-height: 2.3rem; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: .84rem; cursor: pointer; }
.of-fill-msg { margin: .3rem 0 0; min-height: 1.2em; color: var(--mute); }
.of-next-l { margin: .5rem 0 .3rem; font-size: .82rem; color: var(--mute); }
.of-next { display: block; width: 100%; min-height: 2.4rem; margin: 0 0 .2rem; border: 1px solid var(--accent); border-radius: 10px; background: transparent; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
/* 詳細の全画面シート（オフィスの層の中・質問コーナーより下） */
.ofx-detail { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column; background: var(--bg); }
.ofx-detail[hidden] { display: none; }
.ofx-detail-bar { flex: none; display: flex; align-items: center; gap: .6rem; padding: max(.55rem, env(safe-area-inset-top)) .8rem .55rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.ofx-detail-t { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofx-detail-in { flex: 1; min-height: 0; overflow-y: auto; padding: .8rem .9rem 3rem; max-width: 46rem; width: 100%; margin: 0 auto; box-sizing: border-box; }
.ofd-sec { margin: 0 0 1.1rem; }
.ofd-sec h4 { margin: 0 0 .35rem; font-size: .92rem; color: var(--mute); }
.ofd-body { white-space: pre-wrap; background: var(--panel2); border-radius: 10px; padding: .6rem .7rem; font-size: .92rem; line-height: 1.75; }
.ofd-list { margin: 0; padding-left: 1.1rem; }
.ofd-list li { margin: 0 0 .45rem; }
.ofd-q { display: block; }
.ofd-a { display: block; color: var(--accent); }
.ofd-a.none { color: var(--mute); }
.ofd-none { color: var(--mute); margin: 0; }
.ofd-notion { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; font-size: .9rem; }
.ofd-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.ofd-link { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: 700; }
/* コンベアの箱（横に並べる・押すと流す） */
.ofx-belt-h { align-items: center; }
.ofx-all { flex: none; border: 0; background: none; color: var(--accent); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; padding: .2rem 0; }
.ofx-qrow { display: flex; gap: .5rem; overflow-x: auto; padding: .1rem .1rem .5rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.ofx-qbox { flex: none; width: 9.5rem; min-height: 4.6rem; display: grid; align-content: space-between; gap: .3rem; padding: .5rem .55rem; text-align: left; scroll-snap-align: start;
  border-radius: 8px; border: 1px solid var(--ofx-box-line); background: linear-gradient(180deg, #d8ad78, var(--ofx-box)); color: #2b1d10; font: inherit; cursor: pointer; }
.ofx-qbox:disabled { opacity: .55; cursor: not-allowed; }
.ofx-qbox-t { font-size: .8rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ofx-qbox-o { font-size: .7rem; color: #5a4128; }
.ofx-qlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; }
.ofx-qlist .ofx-qbox { width: auto; }
.ofx-belt.off .ofx-belt-msg { color: #ffe0a8; }
.ofx-track { height: 1.9rem; }
/* 納品棚: 題名の札つきの箱（押すと中身） */
.ofx-shelfwrap .of-shelf { gap: .45rem; align-items: stretch; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; }
.ofx-shelfwrap .of-box { flex: none; width: 7.2rem; height: auto; min-height: 4.4rem; display: grid; align-content: start; gap: .15rem; padding: .4rem .45rem; text-align: left;
  border-radius: 8px; cursor: pointer; font: inherit; color: #2b1d10; }
.of-box-i { font-size: 1rem; }
.of-box-t { font-size: .74rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.of-shelf.last .of-box { opacity: .8; }
.ofx-shelf-l { margin: .5rem .15rem .25rem; font-size: .78rem; color: var(--mute); }
/* いまの状態: 作業中の吹き出しは常に見せる・書類が段ごとに積み上がる */
.ofx-st.making .ofx-bub:not(:empty) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; background: #e6f4ff; }
.ofx-st.making .ofx-bub:not(:empty)::after { display: none; }
.ofx-st.making .ofx-bub:not(:empty)::after { border-top-color: #e6f4ff; }
.ofx-st.live { border-color: var(--of-run); box-shadow: 0 0 0 1px color-mix(in srgb, var(--of-run) 40%, transparent); }
.ofx-papers.grow i { animation: ofx-land .5s ease-out; }
@keyframes ofx-land { from { transform: translateY(-6px); opacity: .2; } to { transform: none; } }
.ofx-in-who.got .ofx-bub:not(:empty) { display: block; }
@media (prefers-reduced-motion: reduce) {
  .of-enter-live, .ofx-papers.grow i { animation: none !important; }
}

/* 2026-10-26 すぐ消す（public/task-triage.js LifelogQuick）: 押した瞬間に 0.2秒で消える・取り消しと失敗のお知らせはどの層よりも上 */
.qt-out { opacity: 0; transform: scale(.97); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.qt-bar { z-index: 25; }
html.of-open .qt-bar { z-index: 25; }
@media (prefers-reduced-motion: reduce) { .qt-out { transition: none; } }

/* ---------- 🏢 AIオフィス 2026-10-26（平野さんの指摘 A〜F: 1件のシート・中断／指示・受付待ち・根拠・段・コンベアが机まで届く）
   動き: public/office-sheet.js・office-rail.js。style 属性は使わない（CSP）。 ---------- */
/* シートは下から（外側の暗い所を押すと閉じる） */
.ofx-detail { background: rgba(4, 8, 16, .6); justify-content: flex-end; }
.ofx-detail-pane { display: flex; flex-direction: column; width: 100%; max-width: 46rem; max-height: calc(100% - 2.5rem); margin: 0 auto; min-height: 0;
  background: var(--bg); border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 -8px 30px rgba(0, 0, 0, .45); }
.ofx-detail-pane .ofx-detail-bar { padding-top: .55rem; }
.ofx-detail-pane .ofx-detail-in { flex: 1 1 auto; padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
/* 1件のシート */
.ofs-live { display: grid; gap: .55rem; }
.ofs-now { margin: 0; padding: .55rem .7rem; border-radius: 10px; background: #12302d; color: #d6fbf1; font-weight: 800; font-size: .98rem; line-height: 1.55; min-height: 2.6rem; }
.ofs-now.ofs-state { background: var(--panel2); color: var(--ink); }
.ofs-sub { margin: 0; color: var(--mute); font-size: .86rem; }
.ofs-h { margin: 0 0 .3rem; font-weight: 700; font-size: .9rem; }
.ofs-u { border: 1px solid var(--accent); border-radius: 10px; padding: .55rem .7rem; background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.ofs-u-l { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem .6rem; margin: 0 0 .35rem; font-size: .88rem; line-height: 1.5; }
.ofs-u-l dt { color: var(--mute); }
.ofs-u-l dd { margin: 0; }
.ofs-u-fix { border: 0; background: none; padding: .2rem 0; color: var(--accent); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.ofs-steps { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; }
.ofs-step-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.ofs-step-l li { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--mute); }
.ofs-step-l li.done { color: var(--ink); }
.ofs-step-l li.now { color: #bff3e6; font-weight: 800; }
.ofs-m { flex: none; width: 1.2em; text-align: center; }
.ofs-step-l li.done .ofs-m { color: var(--ok); }
.ofs-time { margin: .35rem 0 0; font-size: .82rem; color: var(--mute); font-variant-numeric: tabular-nums; min-height: 1.3em; }
.ofs-ops { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .45rem; margin: .7rem 0 .2rem; min-height: 2.75rem; }
.ofs-b { height: 2.75rem; padding: 0 .4rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofs-b.stop { border-color: #c2410c; color: #fed7aa; background: #3a1d0e; }
.ofs-b.go { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.ofs-b:disabled { opacity: .5; cursor: not-allowed; }
.ofs-steer { margin: .4rem 0 0; }
.ofs-steer[hidden] { display: none; }
.ofs-steer-l { display: grid; gap: .3rem; font-size: .84rem; color: var(--mute); }
.ofs-steer-in { width: 100%; box-sizing: border-box; min-height: 6.5rem; padding: .5rem .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: inherit; font-size: .95rem; line-height: 1.5; resize: vertical; }
.ofs-steer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .45rem; align-items: center; margin-top: .35rem; }
.ofs-left { font-size: .8rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.ofs-steer-row .ofs-b { min-width: 5rem; }
.ofs-msg { margin: .4rem 0 0; min-height: 1.4em; font-size: .86rem; color: var(--accent); }
.ofs-msg.warn { color: #ffe0a8; }
.ofs-flow { display: block; width: 100%; margin: .3rem 0 .4rem; background: #2fb5a3; border-color: #2fb5a3; color: #06201c; }
.ofs-flow[hidden] { display: none; }
.ofs-more { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
/* 根拠（カード・報告・詳細） */
.of-basis, .ofd-basis { margin: .35rem 0 .45rem; padding: .4rem .6rem; border-radius: 8px; background: var(--panel2); font-size: .82rem; line-height: 1.5; }
.of-basis-h { display: block; font-weight: 700; color: var(--mute); margin-bottom: .15rem; }
.of-basis-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
/* 2026-10-27 ✅ この仕事の終わり方（src/pages/office-finish.js・public/office-finish.js） */
.of-fin { margin: .45rem 0 .55rem; padding: .55rem .65rem .6rem; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, var(--panel2)); font-size: .86rem; line-height: 1.55; min-width: 0; }
.of-fin-h { margin: 0 0 .2rem; font-size: .9rem; font-weight: 700; }
.of-fin-end { margin: 0 0 .35rem; font-weight: 700; overflow-wrap: anywhere; }
.of-fin-who { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; margin: 0 0 .35rem; }
.of-fin-who dt { color: var(--mute); font-size: .78rem; }
.of-fin-who dd { margin: 0; overflow-wrap: anywhere; }
.of-fin-sh { margin: .2rem 0 .1rem; color: var(--mute); font-size: .78rem; font-weight: 700; }
.of-fin-steps { margin: 0 0 .35rem; padding: 0; list-style: none; display: grid; gap: .2rem; }
.of-fin-st { display: flex; gap: .45rem; align-items: flex-start; min-height: 32px; cursor: pointer; }
.of-fin-st input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; flex: none; }
.of-fin-st input:checked + span { color: var(--mute); text-decoration: line-through; }
.of-fin-copies { display: grid; gap: .4rem; margin: .3rem 0 .35rem; min-width: 0; }
.of-copy { border: 1px solid var(--line); border-radius: 8px; padding: .35rem .5rem .45rem; background: var(--panel, #151b25); min-width: 0; }
.of-copy-top { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .2rem; }
.of-copy-l { font-size: .78rem; font-weight: 700; color: var(--mute); flex: 1 1 8rem; min-width: 0; overflow-wrap: anywhere; }
.of-copy-b { min-height: 34px; min-width: 4.5rem; padding: .2rem .7rem; border-radius: 8px; border: 1px solid var(--ok); background: color-mix(in srgb, var(--ok) 18%, transparent); color: inherit; font-weight: 700; font-size: .82rem; }
.of-copy-ok { font-size: .74rem; color: var(--ok); flex-basis: 100%; }
.of-copy-ok:empty { display: none; }
.of-copy-t { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: .84rem; max-height: 22rem; overflow: auto; user-select: text; -webkit-user-select: text; }
.of-copy-u { display: block; font-size: .8rem; overflow-wrap: anywhere; word-break: break-all; }
.of-copy-tmp { position: fixed; left: -9999px; top: 0; opacity: 0; }
.of-fin-pr { margin: .25rem 0 .3rem; font-size: .82rem; color: var(--mute); }
.of-ng { margin-top: .35rem; }
.of-ng-s { cursor: pointer; font-size: .8rem; color: var(--mute); text-decoration: underline; min-height: 30px; display: inline-flex; align-items: center; }
.of-ng-in { display: grid; gap: .35rem; margin-top: .3rem; }
.of-ng-q { margin: 0; }
.of-ng-rs { display: flex; flex-wrap: wrap; gap: .35rem; }
.of-ng-r { min-height: 34px; padding: .2rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font-size: .8rem; }
.of-ng-r[aria-pressed="true"] { border-color: var(--warn, #e0a84f); background: color-mix(in srgb, var(--warn, #e0a84f) 20%, transparent); font-weight: 700; }
.of-ng-note { width: 100%; box-sizing: border-box; min-height: 38px; padding: .3rem .5rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel, #151b25); color: inherit; font-size: 16px; }
.of-ng-go { justify-self: start; min-height: 36px; padding: .25rem .9rem; border-radius: 8px; border: 1px solid var(--warn, #e0a84f); background: color-mix(in srgb, var(--warn, #e0a84f) 16%, transparent); color: inherit; font-weight: 700; }
.of-ng-go:disabled { opacity: .5; }
.of-ng-msg, .of-ng-note2 { margin: 0; color: var(--mute); }
.of-ng-msg:empty { display: none; }
.of-basis-list li { overflow-wrap: anywhere; }
.of-basis-a { color: var(--accent); font-weight: 700; }
.of-basis-f { display: inline-block; max-width: 100%; vertical-align: bottom; margin-left: .4rem; padding: 0 .35rem; border-radius: 4px; background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
.of-basis-at { margin-left: .3rem; color: var(--mute); }
/* 受付: 行は押せる・担当が決まるまで係の色を付けない */
.ofx-in-b { display: flex; gap: .4rem; align-items: baseline; width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ofx-in-list li[hidden] { display: none; }
.ofx-pill.none { background: #2a2f3a; color: #cbd5e1; }
.ofx-qbox.unsorted { background: linear-gradient(180deg, #c9b9a3, #b3a089); }
.ofx-qbox.unsorted .ofx-qbox-o { color: #4a4036; }
.ofx-qbox[hidden] { display: none; }
.ofx-qbox.ofx-leaving { opacity: .35; }
/* 中断中・作り直し中の小さな行 */
.ofx-foot:empty { display: none; }
.ofx-stopped { display: flex; flex-wrap: wrap; gap: .4rem; }
.ofx-stop-b { height: 2rem; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.ofx-stop-b[hidden] { display: none; }
.ofx-stop-b.halted { border-color: #c2410c; color: #fed7aa; }
.ofx-slist { display: grid; gap: .4rem; }
.ofx-srow { display: grid; gap: .1rem; width: 100%; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ofx-srow-t { font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }
.ofx-srow-s { font-size: .78rem; color: var(--mute); }
/* コンベアの続き: 受付 → 縦のレール → 各机の前で曲がる（2列は真ん中・3列は列の間に2本） */
.ofx-floorwrap { position: relative; }
.ofx-floor { position: relative; column-gap: 1.3rem; }
.ofx-floor::before, .ofx-floor::after { content: ""; position: absolute; top: -.75rem; bottom: .4rem; width: 6px; border-radius: 3px; pointer-events: none;
  background: repeating-linear-gradient(180deg, #2a3550 0 10px, #1f2940 10px 20px); box-shadow: 0 0 0 1px #3a4560; }
.ofx-floor::before { left: calc(50% - 3px); }
.ofx-floor::after { display: none; }
@media (min-width: 560px) {
  .ofx-floor::before { left: calc((100% - 2.6rem) / 3 + .65rem - 3px); }
  .ofx-floor::after { display: block; left: calc((100% - 2.6rem) * 2 / 3 + 1.95rem - 3px); }
}
.ofx-floor .ofx-st { z-index: 1; }
.ofx-cargo { position: absolute; left: 0; top: 0; z-index: 4; width: 30px; height: 26px; border-radius: 5px; background: var(--ofx-box); border: 1px solid var(--ofx-box-line);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; pointer-events: none; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.ofx-cargo.placed { box-shadow: 0 0 0 2px var(--of-run); }
/* 約束の点検（5つの ✓/×・× は理由1行・全部 ✓ なら1行に詰める）・保留の行は押せる */
.of-prom { margin: .35rem 0 .45rem; padding: .4rem .6rem; border-radius: 8px; border: 1px solid #7c2d12; background: #2a1710; font-size: .8rem; line-height: 1.45; }
.of-prom.all { border-color: var(--line); background: var(--panel2); }
.of-prom-h { display: block; font-weight: 700; color: var(--mute); margin-bottom: .15rem; }
.of-prom-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.of-prom.all .of-prom-list { display: flex; flex-wrap: wrap; gap: .1rem .6rem; }
.of-prom-list li { display: flex; flex-wrap: wrap; gap: 0 .35rem; align-items: baseline; min-width: 0; }
.of-prom-m { flex: none; width: 1em; text-align: center; font-weight: 800; }
.of-prom-list li.ok .of-prom-m { color: var(--ok); }
.of-prom-list li.ng { color: #fed7aa; }
.of-prom-list li.ng .of-prom-m { color: #fb923c; }
.of-prom-why { flex: 1 0 100%; padding-left: 1.35em; color: #fdba74; overflow-wrap: anywhere; }
.of-hold-b { display: grid; gap: .05rem; width: 100%; padding: .15rem 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.of-hold-b .of-hold-t { color: var(--ink); }

/* ---------- 2026-10-26 質問の詳細（pages/qa-detail.js・public/qa-detail.js）と AIオフィスの［＋ 新しい仕事を頼む］
   （pages/office-create.js・public/office-create.js）。style 属性は使わない（CSP）。 ---------- */
.qa-tagline { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.qa-more { flex: none; height: 2rem; padding: 0 .7rem; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--accent); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.qa-tap, .of-qt-tap { cursor: pointer; }
.qa-tap:focus-visible, .of-qt-tap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qa-detail { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(4, 8, 16, .6); }
.qa-detail[hidden] { display: none; }
.qa-detail-pane { display: flex; flex-direction: column; width: 100%; max-width: 46rem; height: calc(100% - 1.5rem); margin: 0 auto; min-height: 0;
  background: var(--bg); border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 -8px 30px rgba(0, 0, 0, .45); }
.qa-detail-bar { flex: none; display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.qa-detail-x { flex: none; height: 2.3rem; padding: 0 .8rem; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.qa-detail-t { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-detail-in { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .8rem .9rem 1rem; overflow-wrap: anywhere; }
.qa-detail-foot { flex: none; display: grid; gap: .4rem; max-height: 46%; overflow-y: auto; padding: .6rem .8rem max(.7rem, env(safe-area-inset-bottom));
  background: var(--panel); border-top: 1px solid var(--line); }
.qa-detail-q { margin: 0; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.qa-detail-chs { display: flex; flex-direction: column; gap: .4rem; }
.qa-detail-other { display: grid; grid-template-columns: minmax(0, 1fr) 4.2rem; gap: .4rem; }
.qa-detail-other[hidden] { display: none; }
.qa-detail-oin { min-width: 0; height: 2.6rem; box-sizing: border-box; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: inherit; font-size: 16px; }
.qa-detail-send { height: 2.6rem; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer; }
.qa-detail-msg { margin: 0; min-height: 1.2em; color: var(--mute); }
/* 机のカードの1件のシートの一番下: 同じ質問の選択肢（下に貼りつく） */
.ofs-ask { position: sticky; bottom: 0; display: grid; gap: .4rem; margin: 1rem -.9rem 0; padding: .6rem .9rem max(.8rem, env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
.ofx-detail-pane .ofx-detail-in:has(.ofs-ask) { padding-bottom: 0; }   /* 下の余白があると貼りついた段の下に本文が透ける */
.ofs-ask-q { margin: 0; font-weight: 700; line-height: 1.45; }
.ofs-ask-chs { display: flex; flex-direction: column; gap: .4rem; }
.ofs-ask-more { justify-self: start; height: 2.2rem; padding: 0 .7rem; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.ofs-ask-msg { margin: 0; min-height: 1.1em; color: var(--mute); }
/* ［＋ 新しい仕事を頼む］とシート */
.ofx-sec-t:has(.ofx-new) { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ofx-new { flex: none; height: 2.3rem; padding: 0 .8rem; border-radius: 99px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ofx-in-new .ofx-in-b[data-creating] { opacity: .85; }
.ofc { position: fixed; inset: 0; z-index: 9; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(4, 8, 16, .6); }
.ofc[hidden] { display: none; }
.ofc-pane { display: flex; flex-direction: column; width: 100%; max-width: 40rem; max-height: calc(100% - 2rem); margin: 0 auto; min-height: 0;
  background: var(--bg); border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 -8px 30px rgba(0, 0, 0, .45); }
.ofc-bar { flex: none; display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.ofc-x { flex: none; height: 2.3rem; padding: 0 .8rem; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.ofc-t { flex: 1; min-width: 0; }
.ofc-in { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; gap: .45rem; align-content: start; padding: .8rem .9rem max(1rem, env(safe-area-inset-bottom)); }
.ofc-l { font-weight: 700; }
.ofc-req { margin-left: .4rem; padding: .05em .45em; border-radius: 99px; font-size: .72rem; background: color-mix(in srgb, var(--warn) 40%, var(--panel)); color: var(--ink); }
.ofc-text { width: 100%; box-sizing: border-box; min-height: 7.5rem; padding: .55rem .65rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.55; resize: vertical; }
.ofc-left { margin: 0; text-align: right; color: var(--mute); }
.ofc-left.warn { color: var(--warn); }
.ofc-h { margin: .35rem 0 0; font-weight: 700; font-size: .9rem; color: var(--mute); }
.ofc-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.ofc-c { min-height: 2.5rem; padding: 0 .85rem; border-radius: 99px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
.ofc-c[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 26%, var(--panel)); }
.ofc-msg { margin: .2rem 0 0; min-height: 1.2em; color: var(--warn); }
.ofc-go { height: 3rem; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font: inherit; font-size: 1.02rem; font-weight: 800; cursor: pointer; }
.ofc-go:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 2026-10-26 事業の色（平野さん「協会はミントグリーンの箱・NODE は紺・ネクスプラウドは青・BUPURA はオレンジ」）----------
   色の値はここ1か所（--biz-*）。語と名前は src/biz-colors.js。箱・カードには class biz-<語> が付く（style 属性なし＝CSP）。
   --biz＝地の色・--biz-ink＝その地に載せる文字（4.5:1 以上・test/office-biz.test.js で計算）・--biz-line＝暗い面の枠と印（3:1 以上）。
   この画面は暗い配色だけ（端末のライト／ダークで変わらない）＝どちらでも同じ値。 */
:root {
  --biz-kyokai: #7ecfb5; --biz-kyokai-ink: #0b1f18; --biz-kyokai-line: #7ecfb5;
  --biz-node: #1f2a5a; --biz-node-ink: #ffffff; --biz-node-line: #6b7bd0;
  --biz-nexproud: #2f6fe4; --biz-nexproud-ink: #ffffff; --biz-nexproud-line: #4d86ec;
  --biz-bupura: #f08a24; --biz-bupura-ink: #1a1a1a; --biz-bupura-line: #f08a24;
  --biz-other: #b4b4ba; --biz-other-ink: #1c1c1e; --biz-other-line: #8e8e93;
}
.biz-kyokai { --biz: var(--biz-kyokai); --biz-ink: var(--biz-kyokai-ink); --biz-line: var(--biz-kyokai-line); }
.biz-node { --biz: var(--biz-node); --biz-ink: var(--biz-node-ink); --biz-line: var(--biz-node-line); }
.biz-nexproud { --biz: var(--biz-nexproud); --biz-ink: var(--biz-nexproud-ink); --biz-line: var(--biz-nexproud-line); }
.biz-bupura { --biz: var(--biz-bupura); --biz-ink: var(--biz-bupura-ink); --biz-line: var(--biz-bupura-line); }
.biz-other { --biz: var(--biz-other); --biz-ink: var(--biz-other-ink); --biz-line: var(--biz-other-line); }
/* 小さな丸い印（暗い面でも紺が見えるよう枠の色で縁取る） */
.biz-dot { display: inline-block; flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--biz, var(--biz-other)); box-shadow: 0 0 0 1.5px var(--biz-line, var(--biz-other-line)); vertical-align: middle; margin: 0 .35rem 0 .1rem; }
/* 凡例（画面の端に小さく） */
.biz-legend { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .1rem .7rem; margin: 0; padding: .3rem .8rem .2rem; font-size: .72rem; line-height: 1.4; color: var(--mute); background: var(--ofx-floor); }
.biz-key { display: inline-flex; align-items: center; white-space: nowrap; }
.biz-key .biz-dot { width: .6rem; height: .6rem; margin: 0 .25rem 0 0; }
/* コンベアの箱・納品棚の箱: 地を事業の色に */
.ofx-qbox[data-biz] { background: var(--biz); border-color: var(--biz-line); color: var(--biz-ink); }
.ofx-qbox[data-biz] .ofx-qbox-o { color: var(--biz-ink); }
.ofx-shelfwrap .of-box[data-biz] { background: var(--biz); border-color: var(--biz-line); color: var(--biz-ink); }
.ofx-cargo[data-biz], .ofx-sbox[data-biz] { background: var(--biz); border-color: var(--biz-line); }
/* 机のカード: 上の帯と札の前の印 */
.ofx-desk .of-card.ar-card[data-biz] { border-top: 6px solid var(--biz-line); }
/* 受付の紙・中断中／作り直しの行・保留の行: 印（行は左の帯も） */
.ofx-in-b .biz-dot { align-self: flex-start; margin: .45em .1rem 0 0; }
.ofx-srow[data-biz] { border-left: 4px solid var(--biz-line); }
.of-hold-b .biz-dot { margin-left: 0; }
/* 作業中の社員の机の書類は、作っている件の事業の色 */
.ofx-st.live[data-biz] .ofx-papers i { background: var(--biz); }
.ofx-st.live[data-biz] .ofx-tbl { box-shadow: inset 0 3px 0 var(--biz-line), 0 4px 0 var(--ofx-wood); }
/* 新しい仕事を頼むシートの事業の選択肢の印 */
.ofc-c .biz-dot { margin: 0 .35rem 0 0; }

/* ---------- 2026-10-26 22:24 一覧シートの下にタスク画面（提案の束）が見えていた件（平野さんの画面）
   原因: iPhone のホーム画面アプリで visualViewport.offsetTop が残り（本番の記録 271px）、fixed の部品が上に描かれる。
   .sheet・.qa は 10/25 に --vv-shift で戻しているが、オフィスの層（.ofx）は戻していなかった → 層ごと上にずれ、画面の下にタスク画面が出ていた。
   直し: 同じ --vv-shift で層を戻す（中のシート #ofDetail・.ofc は層の中に収まる）＋ずれが残っても層の上下の外を床の色で塞ぐ（下の画面は見えず押せない）。
   シートの外は暗く（.78）。一覧シートの上の1行の説明（public/office-floor.js showSheet の note）。 ---------- */
.ofx { transform: translateY(var(--vv-shift)); }
.ofx::before { content: ""; position: absolute; left: 0; right: 0; top: -100vh; bottom: -100vh; z-index: -1; background: var(--ofx-floor); }
.ofx-detail { background: rgba(4, 8, 16, .78); box-shadow: 0 0 0 100vh rgba(4, 8, 16, .78); }
.ofx-detail-note { margin: 0 0 .65rem; color: var(--mute); font-size: .86rem; line-height: 1.6; }
/* ---------- 2026-10-27 流す前に詳細を見る・タグ（平野さん「流す時に仕事の詳細を確認できない」「タグ付けもできるように」）
   待っている仕事のシート: 操作は2列×2段（［この仕事を流す］［指示を添えて流す］／［あとで］［やらない］）・中身（期限・優先度・版・本文）。
   タグの欄（public/office-tag.js）: 事業＝事業の色のボタン（--biz-*）・案件＝候補のボタン＋検索・自由なタグ。
   AI の見立ては薄く（点線・地なし）、押した確定は強く（事業の色の地）。どこから開いても同じ見た目（オフィスのシート・質問の詳細）。 ---------- */
.ofs-ops:has(.ofs-flow) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ofs-q { margin: .8rem 0 0; padding: .6rem .7rem; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); }
.ofs-q-l { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem .6rem; margin: 0 0 .5rem; font-size: .88rem; line-height: 1.5; }
.ofs-q-l dt { color: var(--mute, var(--muted, #8e8e93)); }
.ofs-q-l dd { margin: 0; overflow-wrap: anywhere; }
.ofs-q .ofd-notion { font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.ofg-sec { margin-top: .8rem; }
.ofg { padding: .6rem .7rem; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); }
.ofg-h { margin: 0 0 .35rem; font-weight: 700; font-size: .9rem; }
.ofg-l { margin: .55rem 0 .25rem; font-size: .78rem; color: var(--mute, var(--muted, #8e8e93)); }
.ofg-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.ofg-sum { margin: 0 0 .2rem; font-size: .84rem; line-height: 1.5; overflow-wrap: anywhere; }
.ofg-sure b { margin-right: .1rem; }
.ofg-ai { color: var(--mute, var(--muted, #8e8e93)); }
.ofg-ai-l { display: inline-block; padding: 0 .35rem; border: 1px dashed currentColor; border-radius: 6px; font-size: .74rem; }
.ofg-b, .ofg-case, .ofg-chip, .ofg-more, .ofg-free-go { display: inline-flex; align-items: center; max-width: 100%; min-height: 2.25rem; padding: 0 .65rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 32%, transparent); background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink);
  font: inherit; font-size: .84rem; cursor: pointer; text-align: left; }
.ofg-case > span:last-child, .ofg-chip > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ofg-b.ai, .ofg-case.ai { border: 1.5px dashed var(--biz-line, var(--line)); background: transparent; opacity: .8; }
.ofg-b.on, .ofg-case.on { background: var(--biz, var(--accent)); border-color: var(--biz-line, var(--accent)); color: var(--biz-ink, var(--on-accent)); font-weight: 700; opacity: 1; }
.ofg-b.on .biz-dot, .ofg-case.on .biz-dot { box-shadow: 0 0 0 1.5px var(--biz-ink); }
.ofg-chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ofg-x { margin-left: .35rem; font-weight: 700; }
.ofg-more { border-style: dashed; color: var(--mute, var(--muted, #8e8e93)); }
.ofg-q, .ofg-free-in { width: 100%; box-sizing: border-box; height: 2.5rem; margin: 0 0 .35rem; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel, transparent); color: var(--ink); font: inherit; font-size: 16px; }
.ofg-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem; align-items: start; margin-top: .35rem; }
.ofg-add .ofg-free-in { margin: 0; }
.ofg-free-go { height: 2.5rem; border-radius: 10px; font-weight: 700; }
.ofg-pop { margin-top: .35rem; align-items: center; }
.ofg-pop-l { font-size: .76rem; color: var(--mute, var(--muted, #8e8e93)); }
.ofg-none { margin: 0; color: var(--mute, var(--muted, #8e8e93)); font-size: .84rem; }
.ofg-msg { min-height: 1.2em; margin: .4rem 0 0; }
.ofg-msg.warn { color: #f59e0b; }
.ofg button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 2026-10-27 🏢 AIオフィス: 仕事の行方（public/office-where.js・係の行き先・机の数・新しく届いた・流れの一覧・止まっている作り直し） ---------- */
.ofx-today b.of-arrived { color: #bff3e6; font-size: 1.05rem; margin: 0 .25rem 0 .1rem; }
.ofx-whereline { flex: none; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0; padding: .35rem .8rem .1rem; background: var(--ofx-floor); }
.ofx-whereline button { min-height: 2.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: .8rem; padding: .2rem .7rem; cursor: pointer; white-space: nowrap; }
.ofx-whereline button b { margin: 0 .1rem; }
.ofx-wl-new { background: #12302d !important; border-color: #2dd4bf !important; color: #bff3e6 !important; font-weight: 700; }
.ofx-wl-flow { margin-left: auto; }
.ofx-went { display: block; margin: .15rem 0 0; font-size: .74rem; line-height: 1.45; color: #bff3e6; overflow-wrap: anywhere; }
.ofx-went[hidden] { display: none; }
.ofx-went.to-failed, .ofx-went.to-halted { color: #ffd2a8; }
.ofx-went.to-held, .ofx-went.to-confirm { color: #ffe0a8; }
.ofx-wlist { display: grid; gap: .45rem; }
.ofx-wl-none { margin: 0; color: var(--mute); font-size: .86rem; }
.ofx-wrow { display: grid; gap: .15rem; width: 100%; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); border-left-width: 4px; background: var(--panel); color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ofx-wrow.to-desk, .ofx-wrow.to-confirm { border-left-color: #2dd4bf; }
.ofx-wrow.to-failed, .ofx-wrow.to-halted { border-left-color: #f59e0b; }
.ofx-wrow.to-held { border-left-color: #a78bfa; }
.ofx-wrow-t { font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }
.ofx-wrow-s { font-size: .8rem; color: var(--ink); overflow-wrap: anywhere; }
.ofx-wrow-ev { margin: .15rem 0 0; padding: 0; list-style: none; display: grid; gap: .05rem; font-size: .74rem; color: var(--mute); }
.ofx-wrow-ev li { overflow-wrap: anywhere; }
.ofx-wrow-h { display: inline-block; min-width: 2.9rem; font-variant-numeric: tabular-nums; }
.ofx-srow.stuck .ofx-srow-s { color: #ffd2a8; }
.ofs-ops:has(.ofs-resteer) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ofs-ops .ofs-resteer { grid-column: 1 / -1; }

/* 2026-10-27 机の直し（題名の切れ・送信中の印・もう一度・納品の仮の箱） */
.ofx-detail-t { cursor: pointer; }
.ofx-detail-t.open { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.35; }
.ofx-sheet-head { margin: 0 0 .7rem; padding: .1rem .1rem .6rem; border-bottom: 1px solid var(--line); }
.ofx-sheet-name { margin: 0; font-weight: 700; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.ofx-sheet-notion { display: inline-block; margin-top: .3rem; font-size: .76rem; color: var(--mute, var(--muted, #9aa4b2)); text-decoration: underline; }
.ofx-sendmark { position: absolute; left: .5rem; top: .5rem; padding: 0 .4rem; border-radius: 999px; background: color-mix(in srgb, var(--ok) 22%, transparent); border: 1px solid var(--ok); color: #d9fff2; font-size: .64rem; font-weight: 700; line-height: 1.5; }
.qt-bar .qt-again { flex: none; margin-left: .4rem; background: transparent; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: .3rem .2rem; min-height: 2.2rem; }

/* 2026-10-27 机の下の 🤖 AIからの報告（机に出ない報告をオフィスに統合・pages/office-block.js）。カードは報告カードのまま */
.ofx-desk .qa-entry { margin: 0 0 .45rem; }
.of-reports { margin-top: .6rem; }
.of-reports-t { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0 .25rem .45rem; color: #f5e6d6; font-size: .8rem; }
.of-reports-t b { font-size: .95rem; }
.of-reports .ar-list { background: var(--panel); border-radius: 12px; padding: 0 .7rem; margin: 0 0 .4rem; }
.of-reports .ar-title[data-of-detail], .of-reports .ar-sum[data-of-detail] { cursor: pointer; }

/* 2026-10-28 めくる（public/card-flip.js）・その他の欄・覚えた方針（public/office-policy.js） */
/* 質問コーナーの上: ‹ 戻る ／ 2/5 ／ 次 › ／ 閉じる */
.qa-top { grid-template-columns: 4.7rem minmax(0, 1fr) 4.2rem 4.7rem; gap: .3rem; }
.qa-next {
  height: 2.3rem; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; border-radius: 99px;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.qa-next:disabled { opacity: .35; cursor: default; }
@media (max-height: 720px) { .qa-next { height: 2rem; } }
/* めくるときは色・「完了／ゴミ箱」の帯を出さない（見るだけ） */
.qa-card.cf-flip.drag-right, .qa-card.cf-flip.drag-left, .qa-card.cf-flip.armed, .qa-card.cf-flip.armed-left { box-shadow: inset 0 0 0 2px var(--line); }
.qa-card.cf-flip.drag-right::after { content: '‹ 前へ'; }
.qa-card.cf-flip.drag-left::after { content: '次へ ›'; }
.qa-other-hint { grid-column: 1 / -1; margin: 0; font-size: .72rem; line-height: 1.35; color: var(--mute); overflow-wrap: anywhere; }
@media (max-height: 720px) { .qa-other-hint { font-size: .68rem; } }
/* 机: ‹ 2/5 ›（2枚以上のとき） */
.cf-nav { display: flex; align-items: center; gap: .4rem; margin: 0 .2rem .45rem; color: #f5e6d6; font-size: .82rem; min-width: 0; }
.cf-nav[hidden] { display: none; }
.cf-prev, .cf-next {
  flex: none; width: 2.75rem; height: 2.2rem; font: inherit; font-size: 1.15rem; font-weight: 700; line-height: 1; cursor: pointer;
  border-radius: 99px; background: rgba(0, 0, 0, .25); color: #f5e6d6; border: 1px solid rgba(245, 230, 214, .35);
}
.cf-prev:disabled, .cf-next:disabled { opacity: .35; cursor: default; }
.cf-count { flex: none; min-width: 2.6rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cf-hint { flex: 1 1 auto; min-width: 0; font-size: .72rem; opacity: .85; overflow-wrap: anywhere; }
.of-door.cf-flip { transition: transform .18s ease-out; touch-action: pan-y; }
.of-door.cf-flip.dragging { transition: none; }
/* 覚えた方針 */
.ofp { margin: 0 0 .5rem; min-width: 0; }
.ofp[hidden] { display: none; }
.ofp-line { padding: .5rem .6rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); min-width: 0; transition: opacity .15s; }
.ofp-text { margin: 0; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.ofp-lead { font-weight: 700; }
.ofp-ops { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.ofp-ops button, .ofp-open, .ofp-row-off, .ofp-undo {
  min-height: 2.2rem; padding: 0 .8rem; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; border-radius: 99px;
  background: var(--panel2); color: var(--ink); border: 1px solid var(--line);
}
.ofp-ops .ofp-x { margin-left: auto; padding: 0 .7rem; }
.ofp-open { width: 100%; text-align: left; background: rgba(0, 0, 0, .25); color: #f5e6d6; border-color: rgba(245, 230, 214, .35); }
.ofp-undoing > .ofp-text, .ofp-undoing > .ofp-ops, .ofp-row.ofp-undoing > .ofp-row-t, .ofp-row.ofp-undoing > .ofp-row-m, .ofp-row.ofp-undoing > .ofp-row-q,
.ofp-row.ofp-undoing > .ofp-row-off { opacity: .4; }
.ofp-undoing .ofp-ops button, .ofp-row.ofp-undoing > .ofp-row-off { pointer-events: none; }
.ofp-wait { display: flex; align-items: center; gap: .5rem; margin: .4rem 0 0; font-size: .84rem; min-width: 0; }
.ofp-wait[hidden] { display: none; }
.ofp-wait-msg { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ofp-err { color: var(--warn, #f59e0b); }
.ofp-undo { flex: none; color: var(--accent); }
.ofp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ofp-row { padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.ofp-row-t { margin: 0; font-weight: 700; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.ofp-row-m { margin: .15rem 0 0; color: var(--mute); }
.ofp-row-q { margin: .2rem 0 0; color: var(--mute); font-size: .76rem; overflow-wrap: anywhere; }
.ofp-row-off { margin-top: .4rem; }
/* 机のカードの［✅ 完了］（終わっているとき用）: 直して・あとで・やらない の横に4つ目。押せないときも場所は残す（周りがずれない） */
.of-subs.ar-act { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); }
.of-subs .ar-btn.of-done { color: var(--ink); font-weight: 700; text-decoration: none; background: var(--panel2); border-color: var(--line); white-space: nowrap; }
.of-subs .ar-btn.of-done:disabled { opacity: .4; cursor: default; }
/* 2026-10-28 🔗 「この◯件は同じ案件ですか？」（public/office-merge.js）。選択肢とその他の欄は質問カードと同じ見た目（.qa-ch・.qa-other-row） */
.ofm { margin: 0 0 .5rem; min-width: 0; display: grid; gap: .4rem; }
.ofm[hidden] { display: none; }
.ofm-card { padding: .6rem .7rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); min-width: 0; display: grid; gap: .45rem; transition: opacity .15s; }
.ofm-q { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; min-width: 0; }
.ofm-lead { font-weight: 700; font-size: .98rem; line-height: 1.4; }
.ofm-rest { color: var(--mute); }
.ofm-items { margin: 0; padding-left: 1.3rem; display: grid; gap: .25rem; min-width: 0; }
.ofm-item { min-width: 0; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.ofm-item-t { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; overflow-wrap: anywhere; }
.ofm-stage { display: inline-block; margin-right: .4rem; color: var(--mute); }
.ofm-why, .ofm-note { margin: 0; color: var(--mute); overflow-wrap: anywhere; }
.ofm-note { color: var(--warn, #f59e0b); }
.ofm-chs { display: grid; gap: .35rem; min-width: 0; }
.ofm-undoing > .ofm-q, .ofm-undoing > .ofm-items, .ofm-undoing > .ofm-why, .ofm-undoing > .ofm-chs, .ofm-undoing > .ofm-other-row,
.ofm-row.ofm-undoing > .ofp-row-t, .ofm-row.ofm-undoing > .ofm-items, .ofm-row.ofm-undoing > .ofm-unmerge { opacity: .4; pointer-events: none; }
.ofm-flash { margin: 0; color: var(--accent); overflow-wrap: anywhere; }
.ofm-open { margin: 0; }

/* 2026-10-28 ［↶ 1つ戻す］（public/tasks-core.js LifelogUndo・平野さん「5秒の待ちは不要。戻すなら共通の『1つ戻す』が1個あれば十分」）
   押した直後 6秒は下の中央に「何をしたか＋［↶ 1つ戻す］」を目立たせ、その後は左下の小さなボタンだけ（控えめ）。戻せない操作は灰色・押すと理由 */
.undo-one {
  position: fixed; left: max(.75rem, calc(50% - 23rem + .75rem)); bottom: calc(var(--tab-bottom) + 9.6rem); z-index: 26;
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .5rem; max-width: calc(100% - 1.5rem); box-sizing: border-box;
}
.undo-one[hidden] { display: none; }
.undo-btn {
  flex: none; min-height: 2.75rem; padding: .3rem .85rem; border-radius: 99px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer;
  background: var(--panel2, #2c2c2e); color: var(--mute); border: 1px solid var(--bar-btn-line, #3a3a3c); box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}
.undo-what:empty, .undo-why[hidden] { display: none; }
.undo-why { flex: 1 1 12rem; min-width: 0; font-size: .8rem; color: var(--ink); background: #3a3a3c; padding: .45rem .65rem; border-radius: 10px; overflow-wrap: anywhere; }
.undo-one.hot {
  left: 50%; transform: translateX(-50%); width: min(30rem, calc(100% - 2rem)); max-width: none; padding: .5rem .55rem .5rem .9rem;
  background: #3a3a3c; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); animation: undo-in .18s ease-out;
}
.undo-one.hot .undo-what { flex: 1 1 10rem; min-width: 0; font-size: .88rem; color: var(--ink); overflow-wrap: anywhere; }
.undo-one.hot .undo-btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: none; }
.undo-one.hot.off .undo-btn, .undo-one.off .undo-btn { background: var(--panel2, #2c2c2e); color: var(--mute); border: 1px dashed var(--bar-btn-line, #48484a); }
.undo-one.hot .undo-why { flex-basis: 100%; background: #2c2c2e; }
/* 質問コーナー（全画面）: 下の段のボタン（✅ 完了・🚫・⏸）を隠さないよう、上の段（‹ 戻る・n/N・閉じる）のすぐ下に出す */
html.qa-open .undo-one { top: calc(max(.5rem, env(safe-area-inset-top)) + 3.1rem); bottom: auto; }
html.qa-open .undo-one:not(.hot) { left: .8rem; }
@keyframes undo-in { from { opacity: 0; transform: translate(-50%, .5rem); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .undo-one.hot { animation: none; } }
html.of-open .undo-one:not(.hot) { bottom: max(1rem, env(safe-area-inset-bottom)); }

/* ---------- 2026-10-29 🏢 AIオフィス「一枚の机」（src/pages/office-focus.js・public/office-focus.js・見本 ai-office-onecard-20261028）----------
   機能表 office_focus の版だけ #aiOffice に data-focus="1" が付く。旧オフィスの帯・机・フロア（.ofx-bar〜.ofx-scroll）は隠し、.off-root が1枚を出す。
   👥 オフィスを見る（off-whole）で旧オフィスの全景に切り替え、上の「‹ 一枚の机へ」で戻る。シート・お知らせ（#ofDetail など）は両方で使う。 */
.ofx[data-focus="1"]:not(.off-whole) > .ofx-bar, .ofx[data-focus="1"]:not(.off-whole) > .ofx-strip, .ofx[data-focus="1"]:not(.off-whole) > .ofx-whereline,
.ofx[data-focus="1"]:not(.off-whole) > .biz-legend, .ofx[data-focus="1"]:not(.off-whole) > .ofx-scroll { display: none; }
.ofx[data-focus="1"].off-whole > .off-root { display: none; }
.ofx[data-focus="1"] { --off-accent: #80d0b7; }
.off-back-bar { display: none; }
.ofx[data-focus="1"].off-whole > .off-back-bar { display: block; flex: none; padding: max(.4rem, env(safe-area-inset-top)) .8rem .4rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.ofx[data-focus="1"].off-whole > .ofx-bar { padding-top: .45rem; }
.off-tofocus { min-height: 44px; padding: 0 1rem; border-radius: 12px; border: 1px solid var(--off-accent); background: transparent; color: var(--off-accent); font-weight: 700; font-size: .95rem; }
html.off-mode.of-open:not(.off-wide) .undo-one:not(.says) { display: none; }
.off-root { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #000;
  color: #f2f2f7; font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; padding: 0 12px 40px; box-sizing: border-box; }
.off-root > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.off-root button { font: inherit; color: inherit; cursor: pointer; }
.off-root button:focus-visible, .off-root textarea:focus-visible { outline: 2px solid var(--off-accent); outline-offset: 2px; }
.off-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 56px; padding-top: env(safe-area-inset-top); }
.off-back { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid #3a3a3c; background: #1c1c1e; font-size: 15px; white-space: nowrap; }
.off-h { margin: 0; font-size: 16px; font-weight: 800; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.off-undo { min-height: 44px; width: 124px; max-width: 124px; padding: 3px 10px; border-radius: 12px; border: 1px solid #3a3a3c; background: #1c1c1e; display: grid; justify-items: start; line-height: 1.2; text-align: left; }
.off-undo b { font-size: 15px; white-space: nowrap; }
.off-undo small { font-size: 11px; color: #a1a1a6; max-width: 104px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.off-undo:disabled { opacity: .45; cursor: default; }
.off-undo.cant b { color: #a1a1a6; }
.off-band { margin-top: 2px; margin-bottom: 10px; border-radius: 10px; background: #161618; overflow: hidden; }
.off-st { width: 100%; min-height: 40px; padding: 6px 8px 6px 10px; gap: 2px; white-space: nowrap; letter-spacing: -.03em; border: 0; background: transparent; color: #a1a1a6 !important; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.off-st b { color: #f2f2f7; }
.off-st-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.off-go { color: #8e8e93; flex: none; font-size: 12px; margin-right: -4px; }
/* 社員の小さなドット絵（1行分の高さ・名札や吹き出しは出さない）。作業中だけ動く */
.off-crew { width: 100%; height: 34px; padding: 0 10px 4px; border: 0; background: transparent; display: flex; align-items: flex-end; justify-content: flex-start; gap: 6px; }
.off-mini { width: 24px; height: 29px; flex: none; display: block; opacity: .5; filter: saturate(.6); }
.off-mini svg { width: 24px; height: 29px; display: block; }
.off-mini.wait { opacity: .85; filter: none; }
.off-mini.run { opacity: 1; filter: none; animation: off-bob .9s ease-in-out infinite; }
.off-mini.run:nth-child(2n) { animation-delay: .25s; }
@keyframes off-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.off-card { position: relative; background: #1c1c1e; border-radius: 14px; border: 1px solid #3a3a3c; border-top: 4px solid var(--biz-line, #3a3a3c); touch-action: pan-y; }
.off-card.in { animation: off-in .18s ease; }
@keyframes off-in { from { transform: translateX(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.off-in { padding: 12px 14px 4px; }
.off-meta { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #a1a1a6; min-height: 28px; }
.off-meta .biz-dot { margin: 0; }
.off-kind { padding: 1px 10px; border-radius: 99px; font-weight: 800; font-size: 14px; color: #000; background: var(--off-kind, var(--off-accent)); white-space: nowrap; }
.off-card.k-decide { --off-kind: #f2c66d; }
.off-card.k-take { --off-kind: var(--off-accent); }
.off-card.k-go { --off-kind: #8fd3ff; }
.off-pager { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; }
.off-pager button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #3a3a3c; background: transparent; font-size: 18px; line-height: 1; padding: 0; }
.off-pager button:disabled { opacity: .3; cursor: default; }
.off-count { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; color: #f2f2f7; font-weight: 700; }
.off-title { margin: 8px 0 6px; font-size: 19px; font-weight: 800; line-height: 1.45; }
.off-need { margin: 0 0 10px; padding: 8px 10px; border-left: 4px solid var(--off-kind, var(--off-accent)); background: #232325; border-radius: 6px; font-weight: 800; font-size: 17px; }
.off-chs { display: grid; gap: 8px; margin: 0 0 10px; }
.off-ch { min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid #3a3a3c; background: #2c2c2e; text-align: left; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.off-ch:active { background: #3a3a3c; }
.off-ch-t { min-width: 0; }
.off-rec { flex: none; font-size: 12px; font-weight: 800; color: #1a1a1a; background: #f2c66d; border-radius: 99px; padding: 2px 8px; }
.off-other { display: flex; gap: 8px; margin: 0 0 6px; }
.off-other textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 140px; resize: vertical; padding: 11px 12px; border-radius: 12px; border: 1px solid #3a3a3c; background: #2c2c2e; color: #f2f2f7; font: inherit; font-size: 16px; box-sizing: border-box; }
.off-root .off-send { flex: none; min-width: 72px; min-height: 48px; border-radius: 12px; border: 1px solid var(--off-accent); background: transparent; color: var(--off-accent); font-weight: 800; }
.off-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.off-pts { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 4px; }
.off-pts li { position: relative; padding-left: 18px; font-size: 16px; }
.off-pts li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: #a1a1a6; }
.off-root .off-full { width: 100%; min-height: 44px; margin: 4px 0 8px; padding: 0 12px; border: 0; border-radius: 10px; background: #232325; color: var(--off-accent); font-weight: 700; text-align: left; }
.off-acts { position: sticky; bottom: 0; z-index: 2; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #1c1c1e; border-top: 1px solid #3a3a3c; border-radius: 0 0 14px 14px; }
.off-act-row { display: grid; grid-template-columns: 1.5fr 1fr 52px; gap: 8px; }
.off-ok, .off-fix, .off-more { min-height: 52px; border-radius: 12px; font-weight: 800; font-size: 17px; padding: 0 6px; }
.off-root .off-ok { border: 2px solid #30d158; background: #12301c; color: #8ff0a8; }
.off-root .off-ok.dim { border-style: dashed; opacity: .7; }
.off-fix { border: 1px solid #3a3a3c; background: #2c2c2e; }
.off-more { border: 1px solid #3a3a3c; background: transparent; font-size: 20px; }
.off-eff { margin: 6px 2px 0; font-size: 13px; color: #8e8e93; }
.off-empty { padding: 28px 16px; text-align: center; background: #1c1c1e; border: 1px solid #3a3a3c; border-radius: 14px; }
.off-empty p { margin: 0; font-size: 18px; font-weight: 800; }
.off-empty small { display: block; margin-top: 8px; color: #a1a1a6; font-size: 15px; }
.off-below { margin-top: 22px; display: grid; gap: 12px; }
.off-sec-h { display: flex; align-items: center; justify-content: space-between; margin: 0 2px -4px; font-size: 16px; font-weight: 800; }
.off-sec-h small { color: #a1a1a6; font-weight: 400; font-size: 13px; }
.off-shelf-none { margin: 0 2px; color: #a1a1a6; font-size: 14px; }
.off-box { background: #1c1c1e; border: 1px solid #3a3a3c; border-left: 5px solid var(--biz-line, #8e8e93); border-radius: 12px; margin-bottom: 8px; }
.off-box.new { animation: off-pop .5s ease; }
@keyframes off-pop { from { box-shadow: 0 0 0 3px var(--off-accent); } to { box-shadow: 0 0 0 0 transparent; } }
.off-box-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 8px 8px 12px; }
.off-box-t { min-height: 44px; padding: 4px 0; border: 0; background: transparent; text-align: left; font-weight: 700; font-size: 16px; line-height: 1.45; }
.off-box-t span, .off-box-t small { display: block; }
.off-box-t small { font-weight: 400; font-size: 12px; color: #a1a1a6; }
.off-tidy { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #3a3a3c; background: #2c2c2e; font-size: 15px; white-space: nowrap; }
.off-box-after { margin: 0 12px 8px; font-size: 13px; color: #8e8e93; }
.off-box-b { margin: 0 12px 10px; padding-top: 8px; border-top: 1px solid #3a3a3c; font-size: 15px; color: #d8d8dc; }
.off-box-b[hidden] { display: none; }
.off-box-l { margin: 0 0 4px; }
.off-root .off-box-all { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--off-accent); font-weight: 700; }
.off-row { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid #3a3a3c; background: #1c1c1e; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; text-align: left; }
.off-row[hidden] { display: none; }
.off-row small { color: #a1a1a6; font-weight: 400; }
.off-pol.fresh { border-color: var(--off-accent); }
.off-sheet { margin: 0 !important; max-width: none !important; position: fixed; inset: 0; z-index: 9; background: rgba(0, 0, 0, .55); display: flex; flex-direction: column; justify-content: flex-end; }
.off-sheet-p { max-height: 80vh; overflow: auto; background: #1c1c1e; border-radius: 16px 16px 0 0; border-top: 1px solid #3a3a3c; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; max-width: 520px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.off-sheet-h { margin: 0; font-size: 17px; font-weight: 800; }
.off-sheet-s { margin: 0 0 4px; color: #a1a1a6; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.off-m { min-height: 52px; padding: 6px 14px; border-radius: 12px; border: 1px solid #3a3a3c; background: #2c2c2e; text-align: left; font-size: 16px; }
.off-m small { display: block; color: #a1a1a6; font-size: 12px; line-height: 1.3; }
.off-m:disabled { opacity: .5; }
.off-m.close { background: transparent; text-align: center; }
.off-toast { margin: 0 !important; position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: #3a3a3c; color: #f2f2f7; font-size: 14px; }
.off-toast[hidden] { display: none; }
.off-arch { margin-top: 1rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.off-arch-h { margin: 0 0 .4rem; font-weight: 700; }
.off-arch-none { margin: 0; color: var(--mute); font-size: .86rem; }
.off-arch-r { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.off-arch-t { flex: 1; min-width: 0; font-size: .92rem; }
.off-arch-b { flex: none; min-height: 44px; padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .off-card.in, .off-box.new, .off-mini.run { animation: none; } }
/* 2026-10-29 成果物を開く入口（題名のすぐ下・一番目立つ） */
.off-root .off-open { display: flex; align-items: center; width: 100%; min-height: 48px; margin: 2px 0 10px; padding: 0 14px; border: 1px solid var(--off-accent); border-radius: 12px; background: #1f2a26; color: var(--off-accent); font-weight: 800; font-size: 16px; text-decoration: none; text-align: left; box-sizing: border-box; overflow-wrap: anywhere; }
/* 2026-10-29 成果物の全文: 見出しは太字・要点は色（src/pages/office-block.js dress） */
.ofd-body .ofd-h { display: inline-block; margin: .55rem 0 .1rem; font-weight: 800; font-size: 1.02rem; color: var(--off-accent, #80d0b7); }
.ofd-body .ofd-hl { font-weight: 800; color: #ffd27a; }
.ofd-body .ofd-key { font-weight: 800; color: #ffd27a; }
/* 2026-10-29 文の中の URL は押せるリンク（見た目もリンクに） */
.ofd-body .ofd-a, .off-root .off-link { color: var(--off-accent, #80d0b7); text-decoration: underline; overflow-wrap: anywhere; word-break: break-all; }

/* ---------- 2026-10-29 AIオフィス v6（機能表 office_v6・src/pages/office-v6.js・public/office-v6.js）
   承認待ち・詰まり・今日の完了・事業ごとの進み具合・指示欄。ダークが既定（--bg/--panel/--ink）。事業の色は .biz-<語>（--biz-line）。
   URL・長い題はどこでも折り返す（overflow-wrap）。390px で横にはみ出さない。 ---------- */
.o6 { position: fixed; inset: 0; z-index: 16; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
.o6[hidden] { display: none; }
.o6-bar { flex: none; display: flex; align-items: center; gap: .5rem; padding: max(.55rem, env(safe-area-inset-top)) .8rem .55rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.o6-back { flex: none; font: inherit; font-size: .88rem; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 8px; padding: .25rem .6rem; cursor: pointer; }
.o6-ttl { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o6-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.o6-main { max-width: 44rem; margin: 0 auto; padding: .75rem .9rem 6rem; display: grid; gap: .9rem; min-width: 0; }
.o6-main > #o6Body { min-width: 0; display: grid; gap: .9rem; }
.o6-sec { display: grid; gap: .6rem; min-width: 0; }
.o6-st { margin: 0; font-size: 1rem; color: var(--ink); }
.o6-n { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .78rem; text-align: center; }
.o6-calm, .o6-none { margin: 0; color: var(--mute); font-size: .9rem; }
.o6-card { padding: .75rem .8rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--biz-line, var(--line)); display: grid; gap: .45rem; min-width: 0; }
.o6-appr { border-top: 3px solid var(--warn); }
.o6-blk { border-top: 3px solid var(--danger); }
.o6-k { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .1rem; font-size: .8rem; color: var(--mute); }
.o6-biz { margin-left: auto; font-size: .76rem; }
.o6-h { margin: 0; font-size: 1.02rem; line-height: 1.5; overflow-wrap: anywhere; }
.o6-meta, .o6-why, .o6-need { margin: 0; font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.o6-need { color: var(--warn); }
.o6-sum { margin: 0; padding-left: 1.2rem; font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.o6-ops { margin: 0; }
.o6-open { display: inline-block; color: var(--accent); font-size: .88rem; text-decoration: underline; overflow-wrap: anywhere; word-break: break-all; padding: .3rem 0; }
.o6-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.o6-go, .o6-done, .o6-send { font: inherit; font-weight: 700; min-height: 2.75rem; padding: .4rem 1.1rem; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.o6-fix, .o6-cancel, .o6-opt { font: inherit; min-height: 2.75rem; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--ink); cursor: pointer; }
.o6-go:disabled, .o6-done:disabled, .o6-send:disabled, .o6-fix:disabled, .o6-opt:disabled { opacity: .5; }
.o6-opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.o6-opt { text-align: left; overflow-wrap: anywhere; max-width: 100%; }
.o6-say, .o6-form { display: grid; gap: .5rem; }
.o6-ta { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .65rem; resize: vertical; }
.o6-sel { font: inherit; font-size: 1rem; color: var(--ink); background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; min-height: 2.75rem; max-width: 100%; }
.o6-fixbox { display: grid; gap: .5rem; }
.o6-fixbox[hidden] { display: none; }
.o6-rows, .o6-progs, .o6-inss { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.o6-row { padding: .6rem .7rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: .4rem; min-width: 0; }
.o6-row-main { display: flex; align-items: flex-start; gap: .1rem; min-width: 0; }
.o6-row-main .biz-dot { margin-top: .5em; }
.o6-row-t { display: grid; gap: .1rem; min-width: 0; }
.o6-row-t b { font-size: .98rem; line-height: 1.5; overflow-wrap: anywhere; }
.o6-res { color: var(--mute); font-size: .85rem; line-height: 1.5; overflow-wrap: anywhere; }
.o6-row-ops { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.o6-open-s { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.o6-fix-s { padding: .4rem .8rem; }
.o6-mark { color: var(--ok); font-weight: 700; font-size: .9rem; }
.o6-prog { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .5rem; padding: .5rem .7rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: .88rem; min-width: 0; }
.o6-pn { color: var(--mute); }
.o6-pnow, .o6-p2 { flex-basis: 100%; color: var(--mute); font-size: .82rem; overflow-wrap: anywhere; }
.o6-ins { padding: .5rem .7rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.o6-ins-t, .o6-rep { margin: 0; font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.o6-ins-c { color: var(--mute); }
.o6-rep { color: var(--ok); }
.o6-new { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .2rem .7rem .7rem; }
.o6-new summary { cursor: pointer; padding: .6rem 0; font-weight: 700; min-height: 2.75rem; }
.o6-gone { display: none; }
.o6-badge { flex: none; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--danger); color: #000; font-size: .78rem; font-weight: 700; text-align: center; }
.o6-badge[hidden] { display: none; }
html.o6-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .o6-card, .o6-row { transition: opacity .15s; } }

/* 2026-10-29 AIオフィス v6: 社員のドット絵の帯（1行）・今日の数・点・納品棚（平野さん「キャラクターは小さくてもいいから消さないで」） */
.o6-band { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; min-height: 38px; padding: 2px .8rem 0; background: var(--panel); border-bottom: 1px solid var(--line); min-width: 0; }
.o6-band:empty { display: none; }
.o6-crew { flex: none; display: flex; align-items: flex-end; gap: 8px; height: 36px; padding: 0 0 3px; border: 0; background: transparent; font: inherit; cursor: pointer; min-width: 0; }
.o6-mini { position: relative; width: 24px; height: 29px; flex: none; display: block; border-bottom: 3px solid var(--biz-line, var(--line)); padding-bottom: 1px; opacity: .6; filter: saturate(.7); }
.o6-mini svg { width: 24px; height: 29px; display: block; overflow: visible; }
.o6-chibi .face, .o6-chibi .arms { display: none; }
.o6-mini.making .f-work, .o6-mini.making .a-type, .o6-mini.ask .f-ask, .o6-mini.ask .a-up, .o6-mini.idle .f-idle, .o6-mini.idle .a-idle,
.o6-mini.waiting:not(.ask) .f-happy, .o6-mini.waiting:not(.ask) .a-hold, .o6-mini.got .f-happy, .o6-mini.got .a-hold { display: inline; }
.o6-mini.got .f-work, .o6-mini.got .f-idle, .o6-mini.got .f-ask { display: none; }
.o6-mini.waiting, .o6-mini.ask { opacity: .95; filter: none; }
.o6-mini.making { opacity: 1; filter: none; animation: o6-bob .9s ease-in-out infinite; }
.o6-mini.making .a-type .l { animation: ofx-tap .3s steps(2) infinite alternate; }
.o6-mini.making .a-type .r { animation: ofx-tap .3s steps(2) infinite alternate .15s; }
.o6-mini.ask .a-up .r { animation: ofx-wave .8s steps(2) infinite; }
.o6-mini.got { opacity: 1; filter: none; animation: o6-hop .5s ease-in-out 3; }
.o6-mini:nth-child(2n).making { animation-delay: .25s; }
@keyframes o6-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes o6-hop { 50% { transform: translateY(-6px); } }
.o6-stats { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; gap: .1rem .6rem; padding-bottom: .35rem; font-size: .8rem; color: var(--mute); min-width: 0; }
.o6-stats b { color: var(--ink); font-variant-numeric: tabular-nums; margin-left: .2em; }
.o6-shelf .ofx-shelfwrap { border-radius: 10px; overflow: hidden; }
.o6-shelf .of-box { text-decoration: none; }
.o6-shelf .of-box.new { animation: of-in .3s ease-out 2; box-shadow: 0 0 0 2px var(--ok); }
@media (prefers-reduced-motion: reduce) { .o6-mini, .o6-mini *, .o6-shelf .of-box.new { animation: none !important; } }

/* 2026-10-29 午後 v6 のできあがり（平野さん IMG_2744「何ができあがったのか全く分からない・全部同じフォントサイズ」）:
   題は大きく・結論1文は色つきで大きめ・［📄 成果物を開く］は先頭の大きなボタン・全文は見出し/太字/色/箇条 */
.o6-row { padding: .8rem .85rem; border-left: 5px solid var(--biz-line, var(--line)); gap: .5rem; }
/* .card h3（0.95rem）より強く: 題は #aiOffice6 の中で大きく */
#aiOffice6 .o6-h { margin: 0; font-size: 1.1rem; font-weight: 800; line-height: 1.45; color: var(--ink); }
#aiOffice6 .o6-row-h, #aiOffice6 .o6-appr .o6-h { font-size: 1.2rem; }
.o6-concl { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.6; color: var(--off-accent, #80d0b7); overflow-wrap: anywhere; }
.o6-big-open { display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: .55rem 1rem; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 1.02rem; font-weight: 800; text-decoration: none; text-align: center; word-break: normal; }
.o6-more { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.o6-full { border-top: 1px solid var(--line); padding-top: .35rem; }
.o6-full summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; color: var(--accent); font-weight: 700; font-size: .95rem; list-style: none; }
.o6-full summary::-webkit-details-marker { display: none; }
.o6-full[open] summary { color: var(--mute); }
.o6-body { margin-top: .3rem; overflow-wrap: anywhere; }
.o6-li { display: block; position: relative; padding-left: 1.1em; }
.o6-li::before { content: "•"; position: absolute; left: .2em; color: var(--off-accent, #80d0b7); font-weight: 800; }
.o6-old { margin: 0; display: flex; align-items: flex-start; gap: .5rem; padding: .55rem .7rem; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: .88rem; line-height: 1.6; color: var(--mute); }
.o6-old[hidden] { display: none; }
.o6-old span { flex: 1; min-width: 0; }
.o6-old b { color: var(--ink); }
.o6-old-x { flex: none; min-width: 2.75rem; min-height: 2.75rem; margin: -.5rem -.5rem -.5rem 0; border: 0; background: transparent; color: var(--mute); font: inherit; font-size: 1.1rem; cursor: pointer; }
.ofx-whole .ofx-v6note { margin: 0; padding: .6rem .7rem; border-radius: 10px; background: var(--panel2); font-size: .9rem; line-height: 1.6; }

/* 2026-10-30 平野さん「必ず通知か Claude ブリッジへのリンクを表示して」: 件ごとの［🔍 ブリッジで見る］と、通知から開いた件の印 */
.o6-watch { display: inline-flex; align-items: center; min-height: 2.75rem; margin: .2rem 0; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); font-size: .9rem; text-decoration: none; overflow-wrap: anywhere; }
.o6-watch-wait { margin: .2rem 0; color: var(--mute); font-size: .85rem; }
.o6-focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }

/* 2026-10-30 夜「あなたの番」の問い（旗 office_v6_ask・設計 OFFICE_V6_SUCCESS §4.1）: 概要（太字）→ なぜ → 問い（太字）→ 選択肢（★おすすめ先頭・効果の小さい行）→ 小さな1行の畳み */
.o6-ask { border-top: 3px solid var(--accent); }
.o6-q { margin: .15rem 0 0; font-size: 1rem; font-weight: 800; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.o6-chs { display: grid; gap: .45rem; }
.o6-ch { display: grid; gap: .1rem; width: 100%; min-height: 3rem; padding: .5rem .8rem; text-align: left; }
.o6-ch-l { font-size: 1rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.o6-ch-e { color: var(--mute); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.o6-rec { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel2)); }
.o6-star { color: var(--accent); margin-right: .2em; }
.o6-togs { margin: 0; display: flex; flex-wrap: wrap; gap: 0 1rem; }
.o6-tog { font: inherit; font-size: .85rem; min-height: 2.75rem; padding: 0 .1rem; border: 0; background: transparent; color: var(--mute); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.o6-tog.on { color: var(--accent); }
.o6-say[hidden], .o6-ev[hidden] { display: none; }
.o6-ev { display: grid; gap: .4rem; padding: .5rem .6rem; border-radius: 10px; background: var(--panel2); font-size: .88rem; line-height: 1.6; min-width: 0; }
.o6-ev-t { margin: 0; color: var(--mute); overflow-wrap: anywhere; }
.o6-gnote { margin: 0; color: var(--mute); font-size: .88rem; }
/* 2026-10-31 昼 目的の3行（折り返す・省略記号で切らない）と［違う］ */
.o6-goal { display: grid; gap: .15rem; min-width: 0; }
.o6-g1row { display: flex; align-items: flex-start; gap: .5rem; min-width: 0; }
.o6-g1 { margin: 0; flex: 1 1 auto; min-width: 0; font-size: .92rem; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; white-space: normal; }
.o6-g2, .o6-g3 { margin: 0; font-size: .85rem; line-height: 1.55; color: var(--mute); overflow-wrap: anywhere; white-space: normal; }
.o6-gno { flex: 0 0 auto; font: inherit; font-size: .8rem; min-height: 2.75rem; padding: 0 .6rem; border: 1px solid var(--line, currentColor); border-radius: 999px; background: transparent; color: var(--mute); cursor: pointer; }
.o6-gfbox { display: grid; gap: .4rem; }
.o6-gfbox[hidden] { display: none; }
.o6-gdone { margin: 0; font-size: .85rem; color: var(--accent); }
.o6-gsmall { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--mute); overflow-wrap: anywhere; white-space: normal; }

/* 2026-11-01 AIオフィス v6 の上では［↶ 1つ戻す］をカードのボタンに重ねない（平野さん 13:26: 進行中の2枚目の［指示］に重なって押せない）。
   ふだん（小さいボタンだけ）は上の題の帯の右に置き、帯の右側をその分あける。押した直後 6秒の知らせ（.hot）も上（題の帯と社員の帯の
   上・高さ 86px の中）に出す＝スクロールのどの位置でもカードのボタンに重ならない（390px の Chromium・WebKit で確かめた）。 */
html.o6-open .o6-bar { min-height: 3.3rem; padding-right: 8.6rem; box-sizing: border-box; }
html.o6-open .undo-one:not(.hot) { top: calc(env(safe-area-inset-top, 0px) + .3rem); bottom: auto; left: auto; right: .6rem; max-width: 8rem; }
html.o6-open .undo-one:not(.hot) .undo-btn { box-shadow: none; }
html.o6-open .undo-one.hot { top: calc(env(safe-area-inset-top, 0px) + .2rem); bottom: auto; }
.o6-origin { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--mute); overflow-wrap: anywhere; white-space: normal; }
