/* ワイヤーフレーム第2版の共通スタイル。白黒＋1色（青）だけ。飾らない。
   初版（../wireframe/wire.css）に、状態7語の印・担当（AI/人）の札・将来の印を足したもの。 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #111; background: #fff; font-size: 14px; line-height: 1.5;
}
a { color: inherit; text-decoration: underline; }
.wrap { padding: 12px 12px 72px; max-width: 1360px; margin: 0 auto; }

/* 上部バー */
.top { border-bottom: 2px solid #111; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.top .brand { font-weight: 700; }
.top .brand small { color: #666; font-weight: 500; font-size: 10px; margin-left: 4px; }
.top .role { font-weight: 700; font-size: 16px; }
.top .who { color: #666; }
.example { display: inline-block; border: 1px dashed #111; padding: 0 6px; font-size: 11px; color: #111; background: #fff; }

/* 鮮度の表示（必ず出す） */
.fresh { font-size: 12px; color: #111; padding: 6px 0; display: flex; align-items: center; gap: 6px; }
.fresh .dot { width: 9px; height: 9px; border-radius: 50%; background: #1a73e8; display: inline-block; }
.fresh.stale { color: #444; border: 1px dashed #666; padding: 6px 8px; margin: 6px 0; }
.fresh.stale .dot { background: #fff; border: 2px solid #666; }

/* 見出し・箱 */
h2 { font-size: 15px; margin: 16px 0 6px; padding-bottom: 2px; border-bottom: 1px solid #111; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
h2 .count { font-weight: 400; font-size: 12px; color: #666; }
h3 { font-size: 14px; margin: 0 0 4px; }
.box { border: 1px solid #111; padding: 10px; margin-bottom: 8px; background: #fff; }
.box.dashed { border-style: dashed; color: #444; }
.muted { color: #666; }
.small { font-size: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.between { justify-content: space-between; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px dotted #999; }
ul.plain li:last-child { border-bottom: 0; }

/* 優先度（3段階・文字と白黒だけで見分ける） */
.pri { display: inline-block; font-size: 11px; padding: 0 6px; border: 1px solid #111; border-radius: 3px; white-space: nowrap; }
.pri.high { background: #111; color: #fff; }
.pri.mid { background: #fff; color: #111; }
.pri.low { background: #fff; color: #777; border-color: #999; }
.why { font-size: 12px; color: #444; }

/* 仕事の状態 7語（status-vocabulary.md §4）。印＋言葉。色は「動いている」の青だけ */
.st { white-space: nowrap; }
.live    { color: #1a73e8; font-weight: 700; }  .live::before    { content: "●"; margin-right: 4px; }  /* 動いている */
.stalled { color: #111; }                        .stalled::before { content: "‖"; margin-right: 4px; }  /* 手が止まっている */
.waiting { color: #111; }                        .waiting::before { content: "◐"; margin-right: 4px; }  /* 待っている（◯◯待ち） */
.idle    { color: #666; }                        .idle::before    { content: "○"; margin-right: 4px; }  /* 手つかず */
.held    { color: #666; }                        .held::before    { content: "◇"; margin-right: 4px; }  /* 後回し（見直し日つき） */
.done    { color: #666; }                        .done::before    { content: "✔"; margin-right: 4px; }  /* 終わった */
.quit    { color: #666; }                        .quit::before    { content: "✖"; margin-right: 4px; }  /* やめた */
/* AI の側（仕事の状態とは別の層） */
.lost { color: #444; border: 1px dashed #666; padding: 0 4px; }  .lost::before { content: "⚠"; margin-right: 4px; }  /* 途切れている */
.anon { color: #444; }                                           .anon::before { content: "?"; margin-right: 4px; font-weight: 700; }  /* 名乗っていない */

/* 担当の札: AI か 人か（誰が監督しているかを並べて出す） */
.tag { display: inline-block; font-size: 10px; padding: 0 4px; border: 1px solid #111; border-radius: 2px; line-height: 15px; vertical-align: middle; margin-right: 2px; }
.tag.ai { background: #111; color: #fff; }
.tag.hu { background: #fff; color: #111; }
.people { font-size: 12px; color: #444; }

/* 動作の流れ（実際に起きたことだけ） */
.trace { list-style: none; padding: 0 0 0 14px; margin: 6px 0 0; border-left: 2px solid #111; font-size: 12px; }
.trace li { padding: 2px 0 2px 6px; position: relative; }
.trace li::before { content: ""; position: absolute; left: -19px; top: 9px; width: 8px; height: 8px; background: #fff; border: 1px solid #111; border-radius: 50%; }
.trace li.now::before { background: #1a73e8; border-color: #1a73e8; }
.trace li.now { color: #1a73e8; font-weight: 700; }
.trace .t { display: inline-block; width: 44px; color: #666; font-weight: 400; }

/* 導線（押せない絵）。第1版の画面は「読むだけ」なので、動くのは Discord への導線だけ */
.btn { display: inline-block; border: 1px solid #111; padding: 4px 10px; font-size: 12px; background: #fff; border-radius: 3px; }
.btn.primary { background: #111; color: #fff; }
.readonly { font-size: 11px; color: #444; border-top: 1px dotted #999; margin-top: 6px; padding-top: 4px; }

/* 将来の画面の印（第2版以降・いまは作らない） */
.future-banner { border: 3px dashed #111; padding: 8px 12px; margin: 8px 0; font-weight: 700; background: repeating-linear-gradient(135deg, #fff 0 10px, #eee 10px 20px); }
.future-tag { display: inline-block; border: 2px dashed #111; padding: 0 6px; font-size: 11px; font-weight: 700; }

/* アカウント別（将来）の部品 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { border: 1px solid #111; border-radius: 14px; padding: 2px 10px; font-size: 12px; }
.chip.on { background: #111; color: #fff; }
.filters { border: 1px solid #111; padding: 6px 8px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.filters .seg { border: 1px solid #999; padding: 0 6px; }
.filters .seg.on { background: #111; color: #fff; border-color: #111; }
.acol { border: 1px solid #111; padding: 8px; margin-bottom: 8px; }
.acol h3 { display: flex; justify-content: space-between; }
.card { border: 1px solid #999; padding: 6px 8px; margin: 6px 0; font-size: 12px; }
.card .tool { display: inline-block; border: 1px solid #111; padding: 0 4px; font-size: 10px; margin-right: 4px; }
.card .tool.on { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.card .path { color: #666; }

/* 下のタブ（スマホ）／上のタブ（パソコン） */
.nav { position: fixed; left: 0; right: 0; bottom: 0; border-top: 2px solid #111; background: #fff; display: flex; z-index: 2; }
.nav a { flex: 1; text-align: center; padding: 10px 2px; font-size: 11px; text-decoration: none; border-right: 1px solid #ccc; }
.nav a:last-child { border-right: 0; }
.nav a.on { background: #111; color: #fff; font-weight: 700; }
.nav a.future { color: #666; border-top: 2px dashed #666; }

.grid { display: grid; gap: 8px; grid-template-columns: 1fr; }

/* パソコン幅 */
@media (min-width: 900px) {
  .wrap { padding: 16px 24px 24px; }
  .top { padding: 10px 24px; }
  .nav { position: static; border-top: 0; border-bottom: 2px solid #111; justify-content: flex-start; }
  .nav a { flex: 0 0 auto; padding: 8px 20px; font-size: 12px; border-right: 1px solid #ccc; }
  .nav a.future { border-top: 0; }
  .cols { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
  .cols.even { grid-template-columns: 1fr 1fr; }
  .cols.detail { grid-template-columns: 3fr 2fr; }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  h2 { margin-top: 8px; }
}

/* ===== 第3版で足した分: 画面を「一覧1枚＋詳細1枚」に畳むための部品 ===== */
/* 一覧の操作（見方・絞り込み・束ね・並べ方・見た目）。スマホは1行に畳み、「開く」で全部出す */
.ctl { border: 1px solid #111; padding: 6px 8px; font-size: 12px; margin: 6px 0 10px; }
.ctl .line { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 3px 0; }
.ctl .lbl { color: #666; min-width: 52px; }
.ctl .seg { border: 1px solid #999; padding: 0 6px; white-space: nowrap; }
.ctl .seg.on { background: #111; color: #fff; border-color: #111; }
.ctl .sep { color: #999; }
.ctl-short { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ctl-full { display: none; }
body.ctl-open .ctl-full { display: block; }
body.ctl-open .ctl-short { display: none; }
.navnote { font-size: 11px; color: #666; margin: 4px 0 0; }

/* 束ねの見出し（「あなた待ち」だけ太い下線で目立たせる） */
.grp h2 { margin-top: 14px; }
.grp.mine h2 { border-bottom: 3px solid #111; }
.grp .def { font-size: 11px; color: #666; margin: -2px 0 6px; }

/* 事業の札・アカウントの札（アカウントは画面ではなく、仕事と AI に付く情報） */
.biz { display: inline-block; font-size: 10px; border: 1px solid #666; padding: 0 4px; color: #444; margin-right: 4px; line-height: 15px; vertical-align: middle; }
.tag.ac { border-style: dotted; background: #fff; color: #444; }

/* カンバン（列＝束ねたもの）。スマホは列を縦に積む＝リストと同じ見え方になる */
.kanban { display: grid; grid-template-columns: 1fr; gap: 8px; }
.kcol { border: 1px solid #111; padding: 6px; }
.kcol h3 { display: flex; justify-content: space-between; border-bottom: 1px solid #111; padding-bottom: 4px; margin-bottom: 4px; }
.kcard { border: 1px solid #999; padding: 6px 8px; margin: 6px 0; font-size: 12px; }
.kcard .why, .kcard .people { font-size: 11px; }
@media (min-width: 900px) {
  .ctl-full { display: block; } .ctl-short { display: none; }
  .kanban { grid-template-columns: repeat(5, 1fr); align-items: start; }
}

/* ===== 第4版で足した分（2026-09-07 03:28 の指摘）: 文字を減らし、スマホを軽くする =====
   1. 切り替えは「札（チップ）」だけ。中身は押したときだけ出る。並べ方の札だけ太字で常に見える
   2. スマホの行は 題名・事業・優先度・期日 だけ（[AI] の札は残す）。ほかは詳細へ
   3. 「あなたが担当」と「あなたが監督」は1つの節（行の [AI] で見分ける） */
.navnote { display: none; }                       /* 見方をタブの下で文章で説明しない */
.ctl { border: 0; padding: 0; margin: 6px 0 2px; }
.ctl-short, .ctl-full { display: none !important; } /* 第3版の1行説明は使わない */
.bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #111; border-radius: 14px; padding: 2px 10px; font-size: 12px; white-space: nowrap; background: #fff; line-height: 18px; }
.chip.sort { font-weight: 700; }                  /* いま何で並んでいるか＝常に見える */
.chip.open { background: #111; color: #fff; }     /* 押して開いている札 */
.chip .k { color: #666; font-weight: 400; }
.chip.open .k { color: #ccc; }
.chip .ic { font-weight: 700; }
.pop { border: 1px solid #111; padding: 6px 10px; margin: 6px 0 0; font-size: 12px; background: #fff; box-shadow: 4px 4px 0 #ddd; max-width: 720px; }
.pop .line { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 3px 0; }
.pop .lbl { color: #666; min-width: 58px; }
.pop .seg { border: 1px solid #999; padding: 0 6px; white-space: nowrap; }
.pop .seg.on { background: #111; color: #fff; border-color: #111; }
.pop .opt { display: block; padding: 3px 0; }
.pop .opt.on { font-weight: 700; }
.pop .opt.on::before { content: "● "; }
.pop .opt::before { content: "○ "; color: #666; }
.pop .foot { border-top: 1px dotted #999; margin-top: 4px; padding-top: 4px; color: #666; }

/* 行: 題名の行（事業・優先度・[AI]・題名 ／ 期日）＋ あなた待ちだけ「要: …」の1行 */
.box .ttl a { text-decoration: none; }
.due { font-size: 12px; color: #666; white-space: nowrap; margin-left: auto; }
.due.soon { color: #111; font-weight: 700; }
.need { font-size: 12px; margin-top: 4px; }        /* あなた待ちの例外1行（捌くために何が要るか） */
.need b { font-weight: 700; }
.chev { color: #999; margin-left: 4px; }

.pc-only { display: none; }
@media (min-width: 900px) {
  .pc-only { display: revert; }
  .sp-only { display: none; }
  .due { font-size: 12px; }
}
/* スマホ幅: 行から 理由・担当/監督/アカウント・いまの動き・導線・節の説明 を消す（詳細へ） */
@media (max-width: 899px) {
  .box .why, .box .people, .box .act, .box .trace, .box .note, .box .readonly,
  .kcard .why, .kcard .people, .grp .def, .helpbox { display: none; }
  .box { padding: 8px 10px; margin-bottom: 6px; }
  .kcard { padding: 6px 8px; }
  .kcol h3 { font-size: 13px; }
  .grp h2 { margin-top: 12px; }
  .top .who { font-size: 12px; }
}

/* ===== AI環境・導入の公開モック（要件 §16-17） ===== */
.env-nav { display: flex; gap: 5px; overflow-x: auto; padding: 2px 0 8px; white-space: nowrap; }
.env-nav a { border: 1px solid #999; border-radius: 14px; padding: 3px 10px; text-decoration: none; font-size: 12px; }
.env-nav a.on { background: #111; color: #fff; border-color: #111; font-weight: 700; }
.hero-os { border: 2px solid #111; padding: 18px; display: grid; gap: 16px; margin-bottom: 10px; background: linear-gradient(135deg, #fff 60%, #eef5ff); }
.hero-os h1 { margin: 0; font-size: clamp(28px, 6vw, 52px); letter-spacing: -.04em; line-height: 1; }
.hero-os p { max-width: 36em; margin: 10px 0 0; font-size: 15px; }
.hero-motoko { border-left: 4px solid #1a73e8; padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; }
.hero-motoko span, .hero-motoko small { color: #555; }
.hero-motoko b { font-size: 28px; letter-spacing: .08em; }
.setup-flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 10px; }
.setup-step { display: grid; grid-template-columns: 24px 1fr auto; gap: 6px; align-items: center; border: 1px solid #aaa; padding: 7px; text-decoration: none; }
.setup-step > span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #111; display: grid; place-items: center; font-size: 11px; }
.setup-step small { color: #666; }
.setup-step.done > span { background: #111; color: #fff; }
.setup-step.live { border-color: #1a73e8; background: #eef5ff; }
.health { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; white-space: nowrap; }
.health::before { content: "●"; }
.health.ok { color: #137333; }.health.watch { color: #8a5a00; }.health.warn { color: #b3261e; font-weight: 700; }
.env-card small, .env-line small, .skill-row small, .plugin-card small, .connection small, .knowledge-row small, .table-row small { display: block; color: #666; }
.usage-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin: 10px 0 4px; font-size: 11px; }
.usage { height: 8px; border: 1px solid #111; display: block; }.usage i { display: block; width: var(--used); height: 100%; background: #1a73e8; }
.env-foot { border-top: 1px dotted #aaa; margin-top: 8px; padding-top: 6px; font-size: 12px; }
.table-card { border: 1px solid #111; overflow-x: auto; }
.table-row { display: grid; grid-template-columns: 1.1fr 1.4fr 1.3fr .7fr .7fr; gap: 8px; min-width: 720px; padding: 8px 10px; border-bottom: 1px dotted #aaa; align-items: center; font-size: 12px; }
.table-row:last-child { border-bottom: 0; }.table-row.head { background: #f5f5f5; color: #666; font-size: 11px; }
.compact-flow, .knowledge-loop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.compact-flow span, .knowledge-loop b { border: 1px solid #111; padding: 5px 8px; font-size: 12px; }
.canon-map { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; margin: 8px 0 10px; }
.canon-map > div { border: 1px solid #111; padding: 10px; }.canon-map small { display: block; color: #666; }
.env-line { display: grid; grid-template-columns: 2fr .5fr 1.2fr .7fr; gap: 10px; align-items: center; }
.stage-legend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; color: #666; font-size: 10px; text-align: center; margin: 6px 0 4px; padding-left: 32%; }
.skill-row { display: grid; grid-template-columns: 2fr 3fr .7fr; gap: 10px; align-items: center; }
.stage-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; text-align: center; align-items: center; }
.stage-dots i { width: 10px; height: 10px; border: 1px solid #777; border-radius: 50%; margin: auto; }.stage-dots i.on { background: #1a73e8; border-color: #1a73e8; }
.grid.three { grid-template-columns: 1fr; }.plugin-card { display: flex; flex-direction: column; }.plugin-icon { font-size: 28px; color: #1a73e8; }.plugin-card p { flex: 1; }
.connection { display: grid; grid-template-columns: 1.3fr .8fr .7fr 1.1fr 1fr; gap: 10px; align-items: center; }
.knowledge-row { display: grid; grid-template-columns: 2fr repeat(3, .55fr); gap: 10px; align-items: center; }.warn-text { color: #b3261e; }
@media (min-width: 900px) { .hero-os { grid-template-columns: 2fr 1fr; }.setup-flow { grid-template-columns: repeat(4, 1fr); }.grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px) {
  .nav a { padding-left: 1px; padding-right: 1px; }
  .env-line { grid-template-columns: 1fr auto; }.env-line > span:nth-child(3) { display: none; }
  .stage-legend { display: none; }.skill-row { grid-template-columns: 1.5fr 2fr auto; }.connection { grid-template-columns: 1.2fr 1fr; }.connection > span:nth-child(n+4) { display: none; }
  .canon-map { grid-template-columns: 1fr; }.canon-map > span { transform: rotate(90deg); text-align: center; }
  .knowledge-row { grid-template-columns: 1.6fr repeat(3, .55fr); font-size: 11px; }
}
/* 題名の行: 期日は1行目の右に固定し、長い題名は題名の側だけ折り返す（期日が2行目に落ちないように） */
.box .row.between, .kcard .row.between { flex-wrap: nowrap; align-items: flex-start; }
.ttl { flex: 1 1 auto; min-width: 0; }
.due { flex: 0 0 auto; padding-top: 2px; }

/* ===== 第6版で足した分（2026-09-07 04:03 の問い）: 順番待ちを画面に出す =====
   1. 「動いているAI」: 見出し＝役割（engineer-I（ONPOCA））。窓（セッション）は1つ1箱。窓の下に「次にやる予定」を順番つきで出す
   2. 仕事の行: 順番待ちの仕事に「N番目」の札を1つ足す（スマホは札だけ・担当は詳細へ）
   3. 詳細: 「順番待ち」の箱（何番目・何が終われば動くか・いつごろか／分かりません） */
.tag.q { background: #e6e6e6; color: #111; border-color: #111; font-weight: 700; }   /* N番目（灰の札・色は増やさない） */
.win { font-size: 12px; color: #444; margin-bottom: 4px; }                             /* 窓の情報（開いて何分・アカウント・監督）。役割の見出しから箱の中へ移した */
.qh { font-size: 12px; color: #444; margin: 8px 0 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qh b { font-weight: 700; color: #111; }
.box.q { border-color: #999; }                                                         /* 順番待ちの行（まだ窓が無い）。いま動いている箱（黒い枠）より薄い枠 */
.box.q .ttl a { color: #444; }
.qmore { font-size: 12px; color: #666; padding: 2px 0 6px; }                           /* 4番目以降は件数だけ */
.qnone { font-size: 12px; color: #666; border: 1px dashed #999; padding: 4px 8px; margin-bottom: 8px; }  /* 次の予定はありません */
.cond { list-style: none; padding: 0; margin: 4px 0 0; font-size: 12px; }              /* 動き出す条件（詳細） */
.cond li { padding: 3px 0; border-bottom: 1px dotted #999; }
.cond li:last-child { border-bottom: 0; }
.cond .k { display: inline-block; min-width: 52px; margin-right: 6px; color: #666; }
@media (max-width: 899px) {
  .box.q { padding: 6px 10px; margin-bottom: 4px; }
  .qh { margin-top: 6px; }
}

/* ===== 触れる試作（2026-09-07）で足した分: 押せる・開く・戻れる ===== */
[data-task] { cursor: pointer; }
[data-task]:hover { background: #f5f5f5; }
.chip, .pop .seg, .pop .opt, .btn, [data-act] { cursor: pointer; user-select: none; }
.pop .seg:hover, .pop .opt:hover { text-decoration: underline; }
.pop .foot .seg { margin-left: 6px; }
.gsec { margin-bottom: 4px; }
.mt6 { margin-top: 6px; } .mt10 { margin-top: 10px; }
.h1 { font-size: 18px; border: 0; margin-top: 4px; }
.h1.done { color: #666; }
.top .who select { font: inherit; font-size: 12px; border: 1px solid #111; background: #fff; padding: 1px 4px; }
.back { display: inline-block; margin-bottom: 4px; }
.summary { margin-bottom: 8px; }
dialog { border: 2px solid #111; padding: 14px; max-width: 420px; width: calc(100% - 32px); font-size: 13px; color: #111; }
dialog::backdrop { background: rgba(0, 0, 0, .35); }
.dlg-ch { font-weight: 700; margin-top: 6px; }
.dlg-th { border: 1px solid #111; padding: 4px 8px; margin: 6px 0; }
.dlg-url { font-size: 11px; color: #666; word-break: break-all; }
.toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); background: #111; color: #fff; padding: 6px 14px; font-size: 12px; border-radius: 3px; z-index: 6; }
.stale-note { margin: 8px 0; }
.qnq { margin: -2px 0 8px; }
.progress { margin: 7px 0 5px; }
.progress-row { display: grid; grid-template-columns: auto minmax(70px, 1fr) auto; align-items: center; gap: 7px; font-size: 11px; }
.progress-track { height: 9px; border: 1px solid #111; background: #fff; overflow: hidden; }
.progress-track i { display: block; width: var(--progress); height: 100%; background: #1a73e8; }
.progress-track.unknown { border-style: dashed; background: repeating-linear-gradient(135deg, #fff 0 5px, #eee 5px 10px); }
.progress-basis { color: #666; font-size: 10px; margin-left: 57px; }
.progress-note { border-top: 1px dotted #999; margin-top: 6px; padding-top: 5px; color: #444; }
@media (min-width: 900px) {
  .list.two { column-count: 2; column-gap: 24px; }
  .gsec { break-inside: avoid; }
  .kanban { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .toast { bottom: 24px; }
}
@media (max-width: 899px) {
  /* 「絞る」などの中身は下から出る紙（シート）にする。実物と同じ出方 */
  .backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 3; }
  .pop { position: fixed; left: 0; right: 0; bottom: 41px; max-height: 65vh; overflow: auto; z-index: 4; border: 0; border-top: 2px solid #111; box-shadow: none; padding: 10px 12px 14px; max-width: none; margin: 0; }
  .pop .lbl { min-width: 48px; }
  .box.q .why { display: none; }
  .progress-basis { margin-left: 0; }
}
/* 詳細の画面では、スマホでも「いまの動き」の流れと注記を出す（上の「行から消す」規則は一覧の行だけのもの） */
@media (max-width: 899px) {
  .detail .box .trace { display: block; }
  .detail .box .note, .detail .box .readonly { display: block; }
}
/* 詳細の「これまでの出来事」は日付つき（9/6 20:30）なので、時刻の欄を広げる */
.detail .trace .t { width: 78px; }

/* ===== 2026-09-07 15:09 の指摘「タスクの番号はなくて大丈夫ですか？」: 仕事の番号（T-xxxx）を出す =====
   行: 題名の前に小さく薄く。順番の札「N番目」（灰の枠つき・太字）とは別物なので、枠を付けず文字だけにする
   詳細: 題名の上にはっきり出し、押すと番号だけを写せる（Discord で「T-1124 の件です」と指すための取っ手） */
.tid { font-size: 11px; color: #666; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tid-line { margin: 2px 0 0; }
.tid.lg { display: inline-flex; align-items: center; font-size: 13px; color: #111; border: 1px solid #111; border-radius: 3px; padding: 1px 8px; cursor: pointer; user-select: none; }
.tid.lg .copy { font-size: 11px; color: #666; margin-left: 6px; border-left: 1px solid #999; padding-left: 6px; }
.tid.lg:hover { background: #f5f5f5; }

/* ===== 報告と資料: 日報・稼働レポート・資料を1入口の縦ナビへまとめる ===== */
.eyebrow { color: #666; font-size: 11px; margin-top: 4px; }
.document-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 22px; align-items: start; }
.document-nav { display: grid; gap: 8px; position: sticky; top: 92px; }
.document-nav a { display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; align-items: center; min-height: 58px; padding: 10px 12px; border: 1px solid #cad4e4; border-radius: 14px; background: rgba(255,255,255,.82); color: #263750; text-decoration: none; }
.document-nav a > span { grid-row: 1 / span 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #eaf0f9; color: #31547e; font-size: 10px; font-weight: 800; }
.document-nav a b { font-size: 13px; }
.document-nav a small { color: #718096; font-size: 10px; line-height: 1.25; }
.document-nav a.on { border-color: #173f84; background: linear-gradient(145deg, #173f84, #102f66); color: #fff; box-shadow: 0 7px 18px rgba(16,47,102,.18); }
.document-nav a.on > span { background: rgba(255,255,255,.16); color: #fff; }
.document-nav a.on small { color: #dce8ff; }
.document-main { min-width: 0; }
.document-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 3px 2px 12px; border-bottom: 1px solid #cad4e4; }
.document-page-head .h1 { margin-bottom: 0; }
.document-toolbar { display: grid; gap: 10px; margin: 12px 0; padding: 12px 14px; border: 1px solid #cad4e4; border-radius: 14px; background: linear-gradient(145deg, #f8faff, #eef3fb); }
.document-toolbar > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 8px; }
.document-toolbar > div > b { color: #42526a; font-size: 12px; }
.module-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.module-card { border: 1px solid #111; padding: 12px; text-decoration: none; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.module-card b { font-size: 15px; }
.module-card span { color: #666; font-size: 12px; grid-column: 1; }
.module-card i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 12px; }
.module-card:hover, .record-link:hover { background: #f5f5f5; }
.record-link { display: block; text-decoration: none; }
.artifact-box { padding: 0; overflow: hidden; }
.artifact-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px dotted #aab3c2; }
.artifact-row:last-child { border-bottom: 0; }
.artifact-row small { display: block; color: #667085; margin-top: 2px; }
.file-icon { width: 42px; min-height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #e7efff; color: #174ea6; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.material-filters { border: 1px solid #cad2df; border-radius: 16px; background: linear-gradient(145deg, #f8faff, #eef3fb); padding: 12px 14px; margin: 12px 0 8px; display: grid; gap: 10px; }
.material-filters > div { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 8px; }
.material-filters > div > b { font-size: 12px; color: #42526a; }
.material-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.material-tabs .seg { border: 1px solid #9ba8bb; border-radius: 999px; padding: 6px 12px; background: #fff; color: #22304a; cursor: pointer; font: inherit; font-size: 12px; }
.material-tabs .seg.on { border-color: #163b7a; background: linear-gradient(145deg, #163b7a, #2459ad); color: #fff; box-shadow: 0 3px 8px rgba(22,59,122,.18); }
.material-count { color: #667085; font-size: 12px; text-align: right; margin-bottom: 4px; }
.material-list { display: grid; gap: 8px; }
.material-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; }
.material-row > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.material-row .rowline { display: flex; gap: 5px; align-items: center; }
.material-row b { overflow-wrap: anywhere; }
.kadou-biz { margin: 10px 0 8px; }
.document-surface { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; border: 1px solid #cbd4e2; border-radius: 16px; padding: 16px; margin: 10px 0; background: #fff; }
.document-surface h2 { margin: 0; }
.document-surface p { color: #596579; margin: 4px 0 12px; }
.section-kicker { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e7efff; color: #174ea6; font-weight: 800; }
.value-good { border-color: #a9c4f0; background: linear-gradient(145deg, #fff, #f1f6ff); }
.value-good .value-money { background: #173f84; color: #fff; border-color: #173f84; }
.value-good .value-money span { color: #dce8ff; }
.value-improve { border-color: #ecd08a; background: #fffaf0; }
.value-improve .section-kicker { background: #ffe7ad; color: #875600; }
.value-routine { border-color: #b8d9ce; background: #f4fbf8; }
.value-routine .section-kicker { background: #dcefe8; color: #1c6b53; }
.improve-line { display: flex; gap: 14px; align-items: baseline; padding: 12px; border-radius: 10px; background: #fff; border: 1px solid #ecd08a; }
.improve-line b { font-size: 22px; white-space: nowrap; }
.improve-line span { color: #6e5b2f; font-size: 12px; }
.module-controls { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; align-items: center; font-size: 12px; }
.module-controls label { white-space: nowrap; }
.module-controls select { font: inherit; border: 1px solid #111; background: #fff; padding: 3px 5px; }
.module-controls .seg { font: inherit; border: 1px solid #999; background: #fff; padding: 3px 8px; cursor: pointer; }
.module-controls .seg.on { background: #111; color: #fff; border-color: #111; }
.control-gap { width: 8px; }
.daily-report { border-color: #a9c4f0; background: linear-gradient(145deg, #fff, #f1f6ff); }
.daily-report .report-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.daily-report .report-title small { display: block; margin-bottom: 3px; color: #31547e; font-size: 10px; font-weight: 800; }
.daily-report p { font-size: 15px; line-height: 1.85; white-space: pre-line; color: #263750; }
.report-by { font-size: 12px; color: #666; margin-top: -2px; }
.daily-report details { border-top: 1px dotted #999; padding-top: 8px; }
.daily-report summary { cursor: pointer; font-size: 12px; color: #444; }
.daily-report ol { padding-left: 22px; }
.daily-report li { padding: 4px 0; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metric-grid > div { border: 1px solid #111; padding: 12px; display: flex; flex-direction: column; }
.metric-grid b { font-size: 20px; }
.metric-grid span { color: #666; font-size: 11px; }
.module-head { margin-top: 28px; border-top: 3px solid #111; padding-top: 10px; display: flex; justify-content: space-between; align-items: end; }
.module-head h2 { margin: 0; min-width: 420px; }
@media (min-width: 900px) {
  .module-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 899px) {
  .nav a { min-width: 0; overflow: hidden; white-space: nowrap; padding-left: 1px; padding-right: 1px; }
  .module-controls { width: 100%; justify-content: flex-start; margin-top: 6px; }
  .module-head { display: none; }
  .document-layout { grid-template-columns: 1fr; gap: 14px; }
  .document-nav { position: static; gap: 6px; }
  .document-nav a { min-height: 50px; padding: 8px 10px; }
  .document-page-head { align-items: flex-start; gap: 10px; }
  .document-toolbar > div { grid-template-columns: 1fr; gap: 5px; }
  .daily-report p { font-size: 15px; }
  .material-filters > div { grid-template-columns: 1fr; gap: 5px; }
  .material-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .material-tabs .seg { flex: 0 0 auto; min-height: 38px; }
  .material-row { grid-template-columns: 38px 1fr; }
  .material-row > .btn { grid-column: 2; justify-self: start; }
  .artifact-row { grid-template-columns: 38px 1fr; }
  .artifact-row .btn { grid-column: 2; justify-self: start; }
  .document-surface { grid-template-columns: 1fr; padding: 14px; }
  .improve-line { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* ===== 2026-09-08 00:33 の指示（要件 §15）: 状態を「絵と動きと色」で出し、説明の文章はタップで出す =====
   色はここだけに置く（fig.js は var() で参照）。色だけで区別しない — 形か動きも必ず違う（fig.js の注釈）。 */
:root {
  --fig-ink: #333; --fig-cheek: #f6b8c3;
  --fig-live: #1a73e8;   --fig-live-tint: #e3eefc;     /* 青: 動いている（既存の「動いている」の青と同じ） */
  --fig-stalled: #b7791f; --fig-stalled-tint: #fdf1d6; /* 琥珀: 手が止まっている */
  --fig-waiting: #6f4fc7; --fig-waiting-tint: #ede7fb; /* 紫: 待っている */
  --fig-idle: #777;      --fig-idle-tint: #f0f0f0;     /* 灰: 手つかず */
  --fig-held: #2a8a7c;   --fig-held-tint: #dff3ef;     /* 青緑: 後回し */
  --fig-done: #2e8b57;   --fig-done-tint: #e0f4e6;     /* 緑: 終わった */
  --fig-quit: #999;      --fig-quit-tint: #f5f5f5;     /* 薄い灰: やめた */
  --fig-lost: #c62828;   --fig-lost-tint: #fde8e8;     /* 赤: 途切れている */
  --fig-rest: #6b7a90;   --fig-rest-tint: #eceff4;     /* 灰青: 休んでいる（窓なし） */
  --fig-anon: #666;      --fig-anon-tint: #f0f0f0;     /* 灰: 名乗っていない */
}
.fig-live { --c: var(--fig-live); --tint: var(--fig-live-tint); --step: .3s; }
.fig-stalled { --c: var(--fig-stalled); --tint: var(--fig-stalled-tint); }
.fig-waiting { --c: var(--fig-waiting); --tint: var(--fig-waiting-tint); --step: .6s; }
.fig-idle { --c: var(--fig-idle); --tint: var(--fig-idle-tint); }
.fig-held { --c: var(--fig-held); --tint: var(--fig-held-tint); }
.fig-done { --c: var(--fig-done); --tint: var(--fig-done-tint); }
.fig-quit { --c: var(--fig-quit); --tint: var(--fig-quit-tint); }
.fig-lost { --c: var(--fig-lost); --tint: var(--fig-lost-tint); --step: .5s; }
.fig-rest { --c: var(--fig-rest); --tint: var(--fig-rest-tint); }
.fig-anon { --c: var(--fig-anon); --tint: var(--fig-anon-tint); }

.fig { display: inline-block; vertical-align: middle; flex: 0 0 auto; line-height: 0; cursor: pointer; }
.fig svg { width: 100%; height: 100%; overflow: visible; }
.fig.xs { width: 18px; height: 18px; margin-right: 4px; }
.fig.sm { width: 24px; height: 24px; margin-right: 5px; }
.fig.md { width: 44px; height: 44px; }
.fig.lg { width: 64px; height: 64px; }
.fig .ln { stroke: var(--fig-ink); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig .fill { fill: var(--tint); stroke: var(--fig-ink); stroke-width: 1.7; stroke-linejoin: round; }
.fig .ink { fill: var(--fig-ink); }
.fig .cheek { fill: var(--fig-cheek); opacity: .85; }
.fig .acc { fill: var(--c); }
.fig .accln { stroke: var(--c); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig .onacc { stroke: #fff; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig .scr { fill: #fff; stroke: var(--fig-ink); stroke-width: 1.7; }
.fig-live .scr { fill: var(--tint); }
.fig .bub, .fig .cal { fill: #fff; stroke: var(--fig-ink); stroke-width: 1.5; stroke-linejoin: round; }
.fig .ghost { fill: none; stroke: var(--c); stroke-width: 1.7; stroke-dasharray: 3 2.6; }   /* 途切れている: 顔が見えない（点線） */
.fig-lost .scr { fill: var(--tint); }
.fig-quit .x { stroke-width: 2.4; }
.fig-stalled .clock { fill: #fff; }

/* 動き。動くのは3つだけ。幅は 1〜2px、周期は 1.2〜2.4秒（1時間に1回見る画面で疲れないように）。
   animation-delay を「部品の遅れ ＋ コマ送りの位相」で組み、凡例のコマ送りに使う */
@keyframes fig-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
@keyframes fig-hand { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4px); } }
@keyframes fig-cursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes fig-dots { 0%, 60%, 100% { opacity: .22; } 25% { opacity: 1; } }
@keyframes fig-alarm { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.fig svg * { transform-box: fill-box; transform-origin: center; animation-delay: calc(var(--d, 0s) + var(--ph, 0s)); }
.fig-live .body { animation: fig-bob 1.2s ease-in-out infinite; }
.fig-live .hand.l { animation: fig-hand 1.2s ease-in-out infinite; }
.fig-live .hand.r { animation: fig-hand 1.2s ease-in-out infinite; --d: -.6s; }
.fig-live .cursor { animation: fig-cursor 1s steps(1) infinite; }
.fig-waiting .d { animation: fig-dots 2.4s ease-in-out infinite; }
.fig-waiting .d2 { --d: .4s; }
.fig-waiting .d3 { --d: .8s; }
.fig-lost .warn { animation: fig-alarm 2s ease-in-out infinite; }   /* 途切れている: 唯一の「注意を引く」動き（ゆっくり明滅・点滅ではない） */
/* 止める: 上の「動き」のチェックを外す（localStorage に残す）。止めても位相0の形で見分けられる */
body.no-motion .fig svg * { animation-play-state: paused !important; }
/* 凡例のコマ送り: 同じ絵を位相をずらして止める（--step は状態ごとに fig-* が持つ） */
.frames .fig svg * { animation-play-state: paused !important; }
.frames span[class^="ph"] { display: inline-block; }
.frames .ph2 .fig { --ph: calc(var(--step, .3s) * -1); }
.frames .ph3 .fig { --ph: calc(var(--step, .3s) * -2); }
.frames .ph4 .fig { --ph: calc(var(--step, .3s) * -3); }
.frames-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.frames-lbl { font-size: 12px; min-width: 6.5em; }
.frames { display: inline-flex; gap: 6px; border: 1px dotted #999; padding: 4px 6px; background: #fff; }
.frames-wrap { margin-top: 8px; }
.top .motion { font-size: 12px; color: #444; display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }

/* 凡例（状態の見方） */
.legend { margin-top: 6px; }
.lg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.lg-cell { border: 1px solid #ccc; padding: 6px 8px; display: grid; grid-template-columns: 64px 1fr; gap: 2px 8px; align-items: center; }
.lg-cell .lg-fig { grid-row: 1 / span 2; }
.lg-cell b { font-size: 13px; }
.lg-cell .small { font-size: 11px; line-height: 1.35; }
@media (min-width: 900px) { .lg-grid { grid-template-columns: repeat(5, 1fr); } .lg-cell { grid-template-columns: 1fr; } .lg-cell .lg-fig { grid-row: auto; } }

/* 絵の隣では、文字の状態印（●‖◐…）は重ねて出さない */
.fig + .st::before { content: none; }

/* 説明はタップで出す（<details>）。閉じているあいだは「ⓘ」1文字だけ。行の中でも押せる（app.js の click で行の遷移から除く） */
details.tap { font-size: 12px; margin-top: 4px; }
details.tap > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; color: #666; min-height: 22px; padding: 0 2px; }
details.tap > summary::-webkit-details-marker { display: none; }
details.tap > summary::before { content: "ⓘ"; font-size: 15px; line-height: 1; color: #1a73e8; }
details.tap[open] > summary { color: #111; }
details.tap[open] > summary::before { content: "ⓘ"; color: #111; }
details.tap > div { margin-top: 4px; padding: 6px 8px; border: 1px dashed #999; background: #fafafa; color: #444; }
details.tap .trace { border-left-color: #999; }
/* 行の ⓘ は担当の行の末尾に置く（閉じているときは1文字ぶん）。開くと下に広がる */
.people details.tap { display: inline-block; vertical-align: middle; margin: 0 0 0 6px; }
.people details.tap[open] { display: block; margin: 4px 0 0; }
/* 「動いているAI」の窓の箱では、タップの中の流れ（trace）をスマホでも出す（第4版の「行から消す」より優先） */
@media (max-width: 899px) { .box details.tap .why, .box details.tap .trace, .box details.tap .note { display: block; } }

/* 「動いているAI」の窓の箱: 絵 ＋ いまの1行 ＋ 進み具合。流れと根拠はタップ */
.sess { display: flex; gap: 8px; align-items: flex-start; }
.sess-main { flex: 1 1 auto; min-width: 0; }
.now { font-size: 12px; margin-top: 3px; }
.now::before { content: "いま "; color: #666; }
.now.lostfact { color: var(--fig-lost); font-weight: 700; }
.now.lostfact::before { content: "⚠ "; }
.progress .hint { font-size: 10px; color: #666; }
.progress-row { grid-template-columns: auto minmax(70px, 1fr) auto auto; }
.summary .counts { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; }
.summary .counts b { font-weight: 700; }
.summary .counts .fig { margin-right: 2px; }
.box.dashed.lostbox { border-color: var(--fig-lost); }
.box.dashed.lostbox .win b { color: var(--fig-lost); }
/* 詳細の「いまの動き」の見出しに絵 */
.nowhead { display: flex; align-items: center; gap: 8px; }

/* ===== 2026-09-08 00:44 の指示（要件 §15-2）: 事業単位が基本・Active/Routine・ピン留め・予定のタイムテーブル =====
   1. 事業バー: いま見ている事業を常に出す（スマホでは上に貼り付く）。わたしの仕事だけ「事業をまたいで」
   2. AI の画面を Active / Routine の2段のタブに分け、Routine の中を 型 / 予定 に分ける
   3. ピン留め: 「あなたが担当・監督」の行に押せる針。留めた行は節の先頭に固まる（上限は app.js の PIN_MAX）
   4. 予定: 今日＝時間軸の一覧、今週＝型 × 曜日の升目。回らなかった回（— 記録なし・✖ 止まった）は畳まない */
.bizbar { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid #111; padding: 6px 12px; display: flex; align-items: center; gap: 6px; overflow-x: auto; font-size: 12px; white-space: nowrap; }
.bizbar:empty { display: none; }
.bizbar-lbl { color: #666; margin-right: 2px; }
.bizbar-lbl b { color: #111; font-size: 14px; margin-left: 4px; }
.bizseg { border: 1px solid #999; border-radius: 14px; padding: 2px 10px; cursor: pointer; user-select: none; }
.bizseg.on { background: #111; color: #fff; border-color: #111; font-weight: 700; }
.bizbar details.tap { margin: 0; }
.bizbar details.tap[open] { white-space: normal; }
@media (min-width: 900px) { .bizbar { padding: 8px 24px; } }

.subnav { display: flex; border: 1px solid #111; margin: 6px 0 8px; }
.subnav a { flex: 1; text-align: center; text-decoration: none; padding: 6px 4px; font-size: 13px; font-weight: 700; border-right: 1px solid #111; line-height: 1.2; }
.subnav a:last-child { border-right: 0; }
.subnav a small { display: block; font-size: 10px; font-weight: 400; color: #666; }
.subnav a.on { background: #111; color: #fff; }
.subnav a.on small { color: #ccc; }
.subnav.second { border-color: #999; margin-top: -4px; }
.subnav.second a { font-size: 12px; padding: 4px; border-right-color: #999; }
@media (min-width: 900px) {
  .subnav { display: inline-flex; margin-right: 10px; vertical-align: top; }
  .subnav a { flex: 0 0 auto; padding: 6px 18px; }
  .subnav.second { margin-top: 6px; }
}

.pin { flex: 0 0 auto; width: 26px; height: 26px; border: 0; background: none; padding: 4px; margin: -5px -6px -5px 2px; cursor: pointer; color: #999; line-height: 0; }
.pin svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.pin.on { color: #111; }
.pin.on svg { fill: #111; }
.pin:hover { color: #111; }
.box.pinned { border-width: 2px; }
.pinhead { font-size: 12px; color: #444; display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.pinhead .pin { pointer-events: none; margin: -6px 0; }
.pinsep { border-top: 1px dashed #999; margin: 6px 0 8px; }
.tag.kata { background: #fff; color: #111; border: 1px double #111; border-width: 3px; line-height: 11px; }   /* 型の実行の札 */

/* 回った・回らなかった の印（型の一覧・予定・詳細で共通） */
.mk { display: inline-block; min-width: 1em; text-align: center; font-weight: 700; }
.mk.ok { color: var(--fig-done); }
.mk.miss { color: var(--fig-stalled); }
.mk.fail { color: var(--fig-lost); }
.mk.next { color: #999; }
.marks .mk { margin-right: 1px; }
.marks-line { font-size: 12px; color: #444; margin-top: 3px; }
.kbad { font-size: 12px; color: var(--fig-stalled); margin-top: 3px; }
.kbad.fail { color: var(--fig-lost); }
.missline { font-size: 12px; margin-top: 4px; color: var(--fig-stalled); }
.missline a { color: inherit; }

/* 予定（今日）: 時間軸の一覧 */
.tt { border: 1px solid #111; margin-top: 6px; }
.tt-row { display: grid; grid-template-columns: 42px 22px 1fr; gap: 6px; align-items: start; padding: 6px 8px; border-bottom: 1px dotted #999; font-size: 13px; }
.tt-row:last-child { border-bottom: 0; }
.tt-row.next { color: #666; }
.tt-at { font-variant-numeric: tabular-nums; color: #444; }
.tt-row.running .tt-at { color: var(--fig-live); font-weight: 700; }
.tt-main a { text-decoration: none; }
.tt-row.next .tt-main a { color: #444; }
.tt-link { font-size: 11px; color: var(--fig-live); margin-left: 6px; text-decoration: underline; }
.tt-note { font-size: 11px; color: var(--fig-stalled); margin-top: 2px; }
.tt-row.fail .tt-note { color: var(--fig-lost); }
.tt-now { display: grid; grid-template-columns: 42px 1fr; gap: 6px; padding: 3px 8px; background: var(--fig-live-tint); color: var(--fig-live); font-size: 11px; font-weight: 700; border-bottom: 1px dotted #999; }
.tt .fig.xs, .wk .fig.xs { margin-right: 0; }
.tt-evt { font-size: 12px; color: #444; margin-top: 6px; }
/* 予定（今週）: 型 × 曜日 */
.wk { border: 1px solid #111; font-size: 12px; overflow-x: auto; margin-top: 6px; }
.wk-row { display: grid; grid-template-columns: minmax(118px, 1.6fr) repeat(7, minmax(33px, 1fr)); border-bottom: 1px dotted #999; }
.wk-row:last-child { border-bottom: 0; }
.wk-head { font-weight: 700; background: #f5f5f5; }
.wk-lbl { padding: 5px 8px; min-width: 0; }
.wk-lbl a { text-decoration: none; }
.wk-lbl .small { font-size: 10px; }
.wk-cell { padding: 5px 2px; text-align: center; border-left: 1px dotted #ccc; word-break: break-all; }
.wk-cell.today { background: var(--fig-live-tint); }
.plan-legend { font-size: 11px; color: #444; margin-top: 6px; }
[data-kata] { cursor: pointer; }
[data-kata]:hover { background: #f5f5f5; }
@media (max-width: 899px) {
  .bizbar { padding: 6px 8px; gap: 5px; }                      /* 5事業が 390px に収まるように詰める */
  .bizseg { padding: 1px 7px; font-size: 11px; }
  .wk-head .wk-cell { font-size: 10px; white-space: nowrap; word-break: normal; }   /* 「9/10」を折らない */
}

/* ===== KUSANAGI visual system（2026-09-08） =====
   参照イラストの白い装甲、青灰の面、濃紺の輪郭、橙赤の警告色をUIへ翻訳する。
   情報構造は変えず、面・奥行き・動きだけを上書きする。 */
:root {
  --ks-navy-950: #07162f;
  --ks-navy-900: #0d2348;
  --ks-navy-800: #173867;
  --ks-blue-700: #2c5da8;
  --ks-blue-500: #4b82d0;
  --ks-blue-100: #dce9f7;
  --ks-blue-050: #eef5fc;
  --ks-surface: rgba(255, 255, 255, .91);
  --ks-surface-strong: #ffffff;
  --ks-line: rgba(24, 57, 103, .18);
  --ks-ink: #10213e;
  --ks-muted: #62728a;
  --ks-orange: #e65f36;
  --ks-orange-soft: #fff0e9;
  --ks-shadow: 0 14px 35px rgba(23, 56, 103, .10), 0 2px 8px rgba(23, 56, 103, .06);
  --pointer-x: 78vw;
  --pointer-y: 20vh;
  --fig-ink: var(--ks-navy-900);
  --fig-live: var(--ks-blue-500);
  --fig-live-tint: var(--ks-blue-050);
  --fig-stalled: #d45b35;
  --fig-stalled-tint: var(--ks-orange-soft);
  --fig-lost: #c54232;
  --fig-lost-tint: #ffebe8;
}
html { background: #edf3fa; scroll-behavior: smooth; }
body {
  color: var(--ks-ink);
  background:
    linear-gradient(rgba(44, 93, 168, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 93, 168, .032) 1px, transparent 1px),
    linear-gradient(145deg, #f8fbff 0%, #edf4fb 56%, #e6eef8 100%);
  background-size: 32px 32px, 32px 32px, auto;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(440px circle at var(--pointer-x) var(--pointer-y), rgba(91, 145, 220, .14), transparent 68%);
  transition: background .16s linear;
}
.top, .nav, .bizbar, .wrap { position: relative; z-index: 1; }
.top {
  min-height: 62px;
  padding: 10px 18px;
  color: #f7fbff;
  border: 0;
  background: linear-gradient(110deg, var(--ks-navy-950), var(--ks-navy-800));
  box-shadow: 0 10px 30px rgba(7, 22, 47, .18);
}
.top::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 2%, #78a9e7 32%, var(--ks-orange) 73%, transparent 98%);
  opacity: .75;
}
.brand-lockup { display: flex; align-items: center; flex: 0 0 auto; }
.brand-lockup img { display: block; width: 100%; height: auto; }
.brand-lockup-dark { width: 188px; }
.top .brand small, .top .who, .top .motion { color: #c6d6ea; }
.top .role { color: #fff; }
.top .who select {
  color: #eff6ff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .09);
  border-radius: 8px;
  padding: 4px 8px;
}
.example {
  color: #d8e8fb;
  border: 1px solid rgba(216, 232, 251, .35);
  background: rgba(255, 255, 255, .07);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: auto;
}
.motion input { accent-color: #77a8e6; }
.nav {
  border-color: var(--ks-line);
  background: rgba(247, 251, 255, .86);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 8px 24px rgba(23, 56, 103, .07);
}
.nav a { position: relative; border-color: var(--ks-line); color: var(--ks-muted); transition: color .2s ease, background .2s ease; }
.nav a::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%; bottom: -2px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ks-blue-500);
  transform: scaleX(0);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.nav a:hover { color: var(--ks-navy-800); background: rgba(75, 130, 208, .07); }
.nav a.on { color: var(--ks-navy-900); background: rgba(220, 233, 247, .66); }
.nav a.on::after { transform: scaleX(1); }
.bizbar {
  border-color: var(--ks-line);
  background: rgba(239, 246, 253, .88);
  backdrop-filter: blur(14px);
}
.bizseg, .chip, .env-nav a, .subnav a, .module-controls .seg {
  border-color: rgba(24, 57, 103, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}
.bizseg:hover, .chip:hover, .env-nav a:hover, .subnav a:hover, .module-controls .seg:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(23, 56, 103, .10); }
.bizseg.on, .chip.open, .env-nav a.on, .subnav a.on, .module-controls .seg.on {
  color: #fff;
  border-color: var(--ks-navy-800);
  background: linear-gradient(135deg, var(--ks-navy-800), var(--ks-blue-700));
  box-shadow: 0 6px 16px rgba(44, 93, 168, .22);
}
.wrap { padding-top: 22px; }
h2 { border-color: rgba(24, 57, 103, .2); }
.h1 { color: var(--ks-navy-900); letter-spacing: -.025em; }
.eyebrow { color: var(--ks-blue-700); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.muted, .small, .why, .people, .due, .tid, .env-card small, .env-line small, .skill-row small, .plugin-card small, .connection small, .knowledge-row small, .table-row small { color: var(--ks-muted); }
.box, .card, .kcol, .kcard, .module-card, .table-card, .canon-map > div, .tt, .wk, dialog, .pop {
  border-color: var(--ks-line);
  background: var(--ks-surface);
  box-shadow: var(--ks-shadow);
  backdrop-filter: blur(12px) saturate(1.08);
}
.box, .card, .kcard, .module-card, .table-card, .canon-map > div, .tt, .wk { border-radius: 12px; }
.box, .kcard, .module-card, [data-kata] {
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
[data-task]:hover, [data-kata]:hover, .module-card:hover, .record-link:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 93, 168, .38);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(23, 56, 103, .15), 0 3px 8px rgba(23, 56, 103, .08);
}
.box.dashed, .qnone { border-color: rgba(44, 93, 168, .34); background: rgba(238, 245, 252, .7); }
.box.lostbox, .box.q { border-left: 3px solid var(--ks-orange); }
.pri { border-color: rgba(24, 57, 103, .3); border-radius: 999px; }
.pri.high { border-color: var(--ks-orange); background: var(--ks-orange); }
.tag { border-color: rgba(24, 57, 103, .28); border-radius: 999px; padding-inline: 6px; }
.tag.ai { border-color: var(--ks-navy-800); background: linear-gradient(135deg, var(--ks-navy-900), var(--ks-blue-700)); }
.tag.q { color: var(--ks-navy-900); border-color: var(--ks-line); background: var(--ks-blue-100); }
.pri + .tag.ai, .tag.ai + .pri { margin-left: 6px; }
.live, .now, .tt-link { color: var(--ks-blue-700); }
.fresh { color: var(--ks-muted); }
.fresh .dot {
  background: var(--ks-blue-500);
  box-shadow: 0 0 0 0 rgba(75, 130, 208, .38);
  animation: ks-pulse 2.2s ease-out infinite;
}
.progress-track, .usage { border: 0; border-radius: 999px; background: #dce6f2; }
.progress-track i, .usage i {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ks-blue-700), #72a5df);
  transform-origin: left;
  animation: ks-grow .65s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-os {
  overflow: hidden;
  position: relative;
  color: #f8fbff;
  border: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 38%, rgba(100, 160, 232, .34), transparent 28%),
    linear-gradient(120deg, var(--ks-navy-950), var(--ks-navy-800));
  box-shadow: 0 22px 54px rgba(7, 22, 47, .25);
}
.hero-os::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  right: -100px; top: -150px;
  border: 1px solid rgba(159, 197, 242, .28);
  border-radius: 46% 54% 58% 42%;
  transform: rotate(28deg);
  animation: ks-orbit 14s linear infinite;
}
.hero-os .eyebrow, .hero-os p, .hero-motoko span, .hero-motoko small { color: #c9d9ee; }
.hero-motoko { border-color: var(--ks-orange); }
.hero-motoko b { color: #fff; text-shadow: 0 0 24px rgba(114, 165, 223, .45); }
.setup-step {
  border-color: var(--ks-line);
  border-radius: 10px;
  background: var(--ks-surface);
  box-shadow: 0 8px 20px rgba(23, 56, 103, .07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.setup-step:hover { transform: translateY(-2px); border-color: rgba(44, 93, 168, .38); box-shadow: var(--ks-shadow); }
.setup-step.done > span { border-color: var(--ks-navy-800); background: var(--ks-navy-800); }
.setup-step.live { border-color: var(--ks-blue-500); background: linear-gradient(135deg, #fff, var(--ks-blue-050)); }
.health.ok { color: #247060; }.health.watch { color: #a66820; }.health.warn, .warn-text { color: var(--ks-orange); }
.plugin-icon { color: var(--ks-blue-500); filter: drop-shadow(0 5px 8px rgba(75, 130, 208, .28)); }
.toast {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(7, 22, 47, .94);
  box-shadow: 0 12px 30px rgba(7, 22, 47, .28);
  backdrop-filter: blur(14px);
  animation: ks-toast .22s ease-out both;
}
.toast.fig-toast {
  bottom: 32px;
  width: min(520px, calc(100vw - 32px));
  max-height: min(46vh, 360px);
  overflow: auto;
  padding: 18px 50px 18px 20px;
  border-color: rgba(155, 194, 240, .3);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(7, 22, 47, .98), rgba(23, 56, 103, .98));
  box-shadow: 0 20px 54px rgba(7, 22, 47, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
  text-align: left;
  line-height: 1.65;
}
.fig-toast-title {
  display: block;
  color: #fff;
  font-size: 16px;
  letter-spacing: .02em;
}
.fig-toast-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ks-orange);
  box-shadow: 0 0 0 4px rgba(230, 95, 54, .14);
}
.fig-toast-body { margin-top: 6px; color: #dce9f8; font-size: 14px; }
.fig-toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.fig-toast-close:hover { background: rgba(255, 255, 255, .16); }
dialog { border: 1px solid rgba(24, 57, 103, .24); border-radius: 16px; }
dialog::backdrop { background: rgba(7, 22, 47, .52); backdrop-filter: blur(4px); }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(230, 95, 54, .72);
  outline-offset: 3px;
}
.page-enter > * { animation: ks-rise .36s cubic-bezier(.2, .8, .2, 1) both; }
.page-enter > :nth-child(2) { animation-delay: .035s; }
.page-enter > :nth-child(3) { animation-delay: .07s; }
.page-enter > :nth-child(4) { animation-delay: .105s; }
.page-enter > :nth-child(n+5) { animation-delay: .14s; }
@keyframes ks-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ks-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ks-pulse { 70%, 100% { box-shadow: 0 0 0 8px rgba(75, 130, 208, 0); } }
@keyframes ks-orbit { to { transform: rotate(388deg); } }
@keyframes ks-toast { from { opacity: 0; transform: translate(-50%, 8px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

@media (min-width: 900px) {
  .top { padding-inline: 28px; }
  .nav { padding-inline: 12px; }
  .nav a { border-right: 0; padding: 12px 18px; }
  .wrap { padding: 26px 28px 36px; }
  .kcol { border: 0; border-radius: 14px; background: rgba(232, 240, 249, .72); box-shadow: inset 0 0 0 1px var(--ks-line); }
}
@media (max-width: 899px) {
  .top {
    min-height: 70px;
    padding: 7px 12px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .top .brand { width: 148px; height: auto; }
  .top .role {
    margin-left: auto;
    padding-left: 11px;
    border-left: 1px solid rgba(255,255,255,.22);
    font-size: 14px;
    line-height: 1.25;
    text-align: right;
  }
  /* デモ注記はヘッダーの組版に参加させない。将来これを消してもロゴとページ名の位置は変わらない */
  .top .example {
    position: absolute;
    right: 12px;
    bottom: 5px;
    max-width: 172px;
    overflow: hidden;
    padding: 1px 7px;
    font-size: 8px;
    line-height: 14px;
    white-space: nowrap;
    opacity: .74;
    pointer-events: none;
  }
  .nav { border-color: var(--ks-line); padding-bottom: env(safe-area-inset-bottom); }
  .nav a { border-color: var(--ks-line); padding-block: 11px; }
  .nav a::after { bottom: auto; top: -1px; }
  .wrap { padding: 14px 10px 78px; }
  .box, .card, .kcard, .module-card { border-radius: 10px; }
  .hero-os { border-radius: 14px; }
  body::before { background: radial-gradient(260px circle at 84% 10%, rgba(91, 145, 220, .12), transparent 70%); }
  .toast.fig-toast { bottom: 22px; width: calc(100vw - 24px); padding: 17px 46px 17px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body.no-motion *, body.no-motion *::before, body.no-motion *::after {
  animation-play-state: paused !important;
  transition-duration: 0s !important;
}

/* ===== 公開デモの密度調整（2026-09-08） ===== */
.bizbar { padding-block: 12px; gap: 9px; }
.wrap { padding-top: 30px; }
.ctl { margin: 14px 0 18px; }
.bar { gap: 9px; }
.gsec { margin-bottom: 22px; }
.grp h2 { margin-top: 24px; margin-bottom: 10px; padding-bottom: 6px; }
.box { padding: 14px 16px; margin-bottom: 12px; }
.kcard { padding: 10px 12px; margin: 9px 0; }
.kanban, .grid, .module-grid { gap: 14px; }

/* 上位ナビは画面の大分類、事業バーはその中の絞り込み。色・面・文字の強さを分ける */
.nav {
  border-bottom: 1px solid rgba(24, 57, 103, .22);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(23, 56, 103, .10);
}
.nav a {
  color: #40516b;
  font-weight: 700;
  letter-spacing: .02em;
}
.nav a.on {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ks-navy-900), var(--ks-navy-800));
}
.nav a.on::after { left: 24%; right: 24%; background: var(--ks-orange); }
.bizbar {
  border-bottom: 1px solid rgba(24, 57, 103, .14);
  background: rgba(247, 250, 253, .96);
  box-shadow: 0 5px 14px rgba(23, 56, 103, .05);
}
.bizbar-lbl {
  color: #6a778b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  padding-right: 10px;
  border-right: 1px solid rgba(24, 57, 103, .18);
}
.bizseg {
  color: #40516b;
  font-weight: 600;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.bizseg:hover { background: #fff; border-color: rgba(24, 57, 103, .18); }
.bizseg.on {
  color: var(--ks-navy-900);
  font-weight: 800;
  border-color: var(--ks-blue-500);
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 56, 103, .10), inset 0 0 0 1px rgba(75, 130, 208, .12);
}

/* All Tasks / Bottleneck は独立したピルにして、周囲の黒い外枠を持たせない */
.subnav.business { border: 0; gap: 10px; margin: 4px 0 20px; }
.subnav.business a { border: 1px solid rgba(24, 57, 103, .20); padding: 8px 20px; }
.subnav.business a:last-child { border-right: 1px solid rgba(24, 57, 103, .20); }

/* Active / Routine と 型 / 予定も、外側の黒い箱を使わず独立したピルにする */
.subnav.ai-tabs { border: 0; gap: 10px; margin-bottom: 16px; }
.subnav.ai-tabs a { border: 1px solid rgba(24, 57, 103, .20); padding: 8px 20px; }
.subnav.ai-tabs a:last-child { border-right: 1px solid rgba(24, 57, 103, .20); }
.subnav.second.ai-tabs { margin-top: 4px; }

/* Routine の異常は注意領域として淡い赤でまとめ、復旧か保守依頼を選べる */
.box.routine-warning {
  border: 1px solid rgba(197, 66, 50, .34);
  border-left: 4px solid var(--fig-lost);
  background: linear-gradient(135deg, #fff8f7, #ffebe8);
}
.routine-support { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(197, 66, 50, .18); }
.routine-support > span { margin-right: auto; color: #8b3d35; font-size: 11px; font-weight: 700; }
.recovery-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(230, 95, 54, .28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 247, 238, .96), rgba(255, 252, 248, .96));
}
.recovery-guide > div { flex: 1 1 280px; }
.recovery-guide b { color: #9a4b22; }
.recovery-guide.lost {
  border-color: rgba(197, 66, 50, .32);
  background: linear-gradient(135deg, rgba(255, 239, 236, .96), rgba(255, 249, 248, .96));
}
.recovery-guide.lost b { color: #96372f; }

/* ===== 仕事の詳細: 長文を「要点カード → 判断材料」の順に読む ===== */
.detail-head {
  margin: 4px 0 22px;
  padding: 18px 20px;
  border: 1px solid var(--ks-line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), var(--ks-blue-050));
  box-shadow: 0 9px 24px rgba(23, 56, 103, .07);
}
.detail-head .back { margin-bottom: 10px; text-decoration: none; }
.detail-head .h1 { margin: 7px 0 12px; font-size: clamp(21px, 3vw, 30px); }
.detail-head > .row { gap: 8px; }
.detail-page { gap: 28px; }
.detail-page h2 {
  justify-content: flex-start;
  gap: 8px;
  margin: 24px 0 9px;
  padding: 0;
  border: 0;
  color: var(--ks-navy-900);
  font-size: 16px;
  letter-spacing: -.01em;
}
.detail-page h2::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 4px;
  background: linear-gradient(var(--ks-orange), #f29a62);
}
.detail-page h2 .count { margin-left: auto; }
.detail-page > div > h2:first-child { margin-top: 0; }
.detail-page .box { border-color: var(--ks-line); box-shadow: 0 8px 22px rgba(23, 56, 103, .065); }

.purpose-panel { display: grid; gap: 9px; padding: 10px; }
.purpose-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 11px;
  align-items: start;
  padding: 12px;
  border-radius: 11px;
  background: #f7fafe;
}
.purpose-item > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--ks-blue-700);
  background: var(--ks-blue-100);
  font-size: 10px;
  font-weight: 900;
}
.purpose-item b { display: block; color: var(--ks-navy-800); font-size: 11px; letter-spacing: .04em; }
.purpose-item p { margin: 3px 0 0; color: #253754; line-height: 1.65; }
.purpose-item.completion { background: #f3f8ff; }
.purpose-item.boundary { background: #f7f7f8; }
.purpose-item.boundary > span { color: #657085; background: #e9edf2; }

.queue-panel { overflow: hidden; padding: 0; }
.queue-status-band {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(230, 95, 54, .18);
  background: linear-gradient(135deg, #fff8f3, #fffdfb);
}
.queue-status-band > div:first-child { display: grid; gap: 3px; }
.queue-status-band .st { color: #9a4b22; font-size: 16px; font-weight: 800; }
.queue-status-band small { color: #765f53; }
.queue-account { align-self: center; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.queue-panel > .recovery-guide { margin: 12px 14px 0; }
.queue-rank {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  margin: 14px;
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--ks-navy-900), var(--ks-navy-800));
}
.queue-rank-no {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border-radius: 12px;
  color: var(--ks-navy-900);
  background: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}
.queue-rank-no small { display: block; margin-top: 2px; font-size: 9px; }
.queue-rank > span:nth-child(2) { display: grid; min-width: 0; }
.queue-rank > span:nth-child(2) b { overflow-wrap: anywhere; }
.queue-rank > span:nth-child(2) small { color: #cfddf0; }
.queue-window { padding: 4px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #dce8f7; font-size: 10px; }
.queue-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 14px 14px; }
.queue-neighbors > div { display: grid; gap: 5px; padding: 10px 11px; border: 1px solid var(--ks-line); border-radius: 10px; background: #f8fafc; }
.queue-neighbors small { color: var(--ks-blue-700); font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.queue-neighbors > div > span { font-size: 11px; line-height: 1.55; }
.queue-conditions { margin: 0 14px 12px; padding: 13px; border-radius: 11px; background: var(--ks-blue-050); }
.queue-subhead { display: flex; justify-content: space-between; gap: 8px; color: var(--ks-navy-800); }
.queue-subhead span { color: var(--ks-muted); font-size: 10px; }
.queue-panel .cond { margin-top: 8px; font-size: 12px; }
.queue-panel .cond li { position: relative; padding: 8px 0 8px 21px; border-color: rgba(24, 57, 103, .15); }
.queue-panel .cond li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--ks-blue-700); font-weight: 900; }
.queue-panel .cond .k { min-width: 62px; color: var(--ks-blue-700); font-weight: 800; }
.queue-forecast { display: flex; align-items: center; gap: 9px; margin: 0 14px; padding: 11px 13px; border: 1px dashed rgba(24, 57, 103, .28); border-radius: 10px; }
.queue-forecast > span { color: var(--ks-muted); font-size: 11px; }
.queue-forecast > b { color: var(--ks-navy-800); }
.queue-forecast details.tap { margin: 0 0 0 auto; }
.queue-actions { margin-top: 14px; padding: 13px 14px; border-top: 1px solid var(--ks-line); background: #f8fafc; }
.queue-actions .btn { min-height: 36px; display: inline-flex; align-items: center; border-color: rgba(24,57,103,.28); color: var(--ks-navy-800); font-weight: 700; }
.queue-actions details.tap { margin-left: auto; }

.priority-panel { padding: 10px 14px; }
.priority-head { display: flex; align-items: center; gap: 9px; padding: 4px 0 10px; border-bottom: 1px solid var(--ks-line); }
.priority-head > span:first-child { color: var(--ks-muted); font-size: 11px; }
.priority-head .pri { padding: 3px 9px; border-radius: 999px; }
.priority-head small { margin-left: auto; color: var(--ks-muted); }
.priority-reasons li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 10px 0; }
.priority-reasons li > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ks-blue-700); font-weight: 900; }
.priority-reasons li.off > span { color: var(--ks-muted); background: #edf0f4; }
.priority-reasons li div { display: grid; }
.priority-reasons li small { color: var(--ks-muted); }

@media (min-width: 900px) {
  .bizbar { padding: 12px 28px; }
  .wrap { padding-top: 34px; padding-bottom: 48px; }
}
@media (max-width: 899px) {
  .bizbar { padding: 10px 10px; gap: 7px; }
  .nav a { font-size: 13px; padding-block: 12px; }
  .bizbar-lbl { flex: 0 0 auto; }
  .wrap { padding-top: 22px; }
  .box { padding: 12px; margin-bottom: 10px; }
  .grp h2 { margin-top: 20px; }
  .subnav.business { margin-bottom: 16px; }
  .subnav.business a { padding: 7px 12px; }
  .routine-support { justify-content: flex-start; }
  .routine-support > span { flex-basis: 100%; }
  .recovery-guide { align-items: flex-start; }
  .recovery-guide .btn { width: 100%; text-align: center; }
  .detail-head { margin-bottom: 18px; padding: 14px; border-radius: 13px; }
  .detail-head .h1 { font-size: 21px; line-height: 1.45; }
  .detail-page { display: block; }
  .detail-page h2 { margin-top: 26px; font-size: 16px; }
  .detail-page .box { padding: 13px; border-radius: 13px; }
  .detail-page .purpose-panel, .detail-page .queue-panel { padding: 9px; }
  .purpose-item { grid-template-columns: 29px 1fr; padding: 11px 9px; }
  .purpose-item p { font-size: 13px; line-height: 1.7; }
  .queue-panel .queue-status-band { margin: -9px -9px 0; padding: 13px; }
  .queue-account { display: none; }
  .queue-panel > .recovery-guide { margin: 10px 0 0; }
  .queue-rank { grid-template-columns: auto minmax(0, 1fr); margin: 10px 0; }
  .queue-window { grid-column: 2; justify-self: start; }
  .queue-neighbors { grid-template-columns: 1fr; margin: 0 0 10px; }
  .queue-conditions { margin: 0 0 10px; }
  .queue-forecast { margin: 0; }
  .queue-actions { margin: 10px -9px -9px; padding: 12px 9px; }
  .queue-actions .btn { width: calc(100% - 34px); justify-content: center; }
  .queue-actions details.tap { margin-left: 0; }
  .priority-head small { display: none; }
}

/* ===== 「絞る」パネル: KUSANAGI visual system（2026-09-08） ===== */
.pop.filter-pop {
  overflow: hidden;
  max-width: 820px;
  padding: 0;
  border: 1px solid rgba(44, 93, 168, .24);
  border-radius: 18px;
  background: rgba(249, 252, 255, .98);
  box-shadow: 0 24px 58px rgba(7, 22, 47, .18), 0 3px 10px rgba(23, 56, 103, .08);
}
.pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 25%, rgba(116, 171, 231, .34), transparent 34%),
    linear-gradient(130deg, var(--ks-navy-950), var(--ks-navy-800));
}
.pop-head b { display: block; font-size: 15px; letter-spacing: .01em; }
.pop-kicker { margin-bottom: 1px; color: #a9c9ee; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.pop-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .09);
  font: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.pop-close:hover { background: rgba(255, 255, 255, .18); }
.filter-current {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--ks-line);
  color: var(--ks-muted);
  background: var(--ks-blue-050);
}
.filter-current span { flex: 0 0 auto; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.filter-current b { color: var(--ks-navy-800); font-size: 12px; }
.filter-body { display: grid; gap: 12px; padding: 14px 18px 16px; }
.filter-section {
  padding: 12px 14px;
  border: 1px solid rgba(24, 57, 103, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
}
.filter-section-title {
  margin-bottom: 8px;
  color: var(--ks-navy-800);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.filter-pop .line {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  justify-content: start;
  gap: 7px 8px;
  padding: 6px 0;
}
.filter-pop .line + .line { border-top: 1px solid rgba(24, 57, 103, .08); }
.filter-pop .lbl {
  align-self: center;
  min-width: 0;
  color: #68778c;
  font-size: 11px;
  font-weight: 700;
}
.filter-pop .seg {
  grid-column: auto;
  justify-self: start;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid rgba(24, 57, 103, .2);
  border-radius: 999px;
  color: #40516b;
  background: #f6f9fd;
  font: inherit;
  font-size: 11px;
  line-height: 1.25;
  box-shadow: none;
}
.filter-pop .line { grid-auto-flow: row; }
.filter-pop .line .seg { margin-right: 0; }
.filter-pop .seg:hover { border-color: rgba(44, 93, 168, .5); color: var(--ks-navy-900); background: var(--ks-blue-050); text-decoration: none; transform: translateY(-1px); }
.filter-pop .seg.on {
  color: #fff;
  border-color: var(--ks-blue-700);
  background: linear-gradient(135deg, var(--ks-navy-800), var(--ks-blue-700));
  box-shadow: 0 5px 12px rgba(44, 93, 168, .2);
}
.filter-pop .seg.on::before { content: "✓"; margin-right: 4px; color: #b9dafb; font-weight: 800; }
.filter-pop .foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--ks-line);
  color: var(--ks-muted);
  background: rgba(237, 244, 252, .78);
}
.filter-pop .foot .lbl { min-width: 0; }
.view-chip { color: var(--ks-navy-900); font-size: 12px; font-weight: 800; }
.view-note { font-size: 10px; }
.filter-actions { display: flex; gap: 8px; margin-left: auto; }
.filter-reset, .filter-save {
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.filter-reset { border: 1px solid rgba(24, 57, 103, .24); color: var(--ks-navy-800); background: #fff; }
.filter-save { border: 1px solid var(--ks-navy-800); color: #fff; background: linear-gradient(135deg, var(--ks-navy-900), var(--ks-blue-700)); box-shadow: 0 5px 14px rgba(44, 93, 168, .2); }

@media (min-width: 900px) {
  .filter-pop .line { display: flex; }
  .filter-pop .lbl { flex: 0 0 82px; }
  .filter-pop .seg { min-height: 28px; }
}
@media (max-width: 899px) {
  /* page-enter の transform が fixed の基準を変えないよう、開いている間は操作列だけ静止させる */
  .page-enter > .ctl.pop-open { animation: none; transform: none; }
  .backdrop { background: rgba(7, 22, 47, .46); backdrop-filter: blur(4px); }
  .pop.filter-pop {
    bottom: 52px;
    max-height: min(78vh, 720px);
    border: 1px solid rgba(159, 197, 242, .26);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 54px rgba(7, 22, 47, .26);
  }
  .pop.filter-pop::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 50%;
    width: 36px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .48);
    transform: translateX(-50%);
  }
  .pop-head { position: sticky; z-index: 1; top: 0; padding: 17px 16px 12px; }
  .filter-current { padding: 9px 14px; }
  .filter-current b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .filter-body { gap: 10px; padding: 12px; }
  .filter-section { padding: 10px 11px; }
  .filter-pop .line { display: flex; gap: 7px; padding: 7px 0; }
  .filter-pop .lbl { flex: 0 0 100%; }
  .filter-pop .seg { min-height: 36px; padding: 7px 12px; font-size: 12px; }
  .filter-pop .foot { position: sticky; bottom: 0; flex-wrap: wrap; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 18px rgba(23, 56, 103, .08); }
  .filter-pop .foot .lbl, .view-chip, .view-note { display: none; }
  .filter-actions { width: 100%; margin-left: 0; }
  .filter-reset, .filter-save { min-height: 42px; }
  .filter-reset { flex: 0 0 auto; }
  .filter-save { flex: 1; }
}

/* ===== AI環境: 共通基盤 → 事業登録 → 事業を育てる（2026-09-08） ===== */
.env-nav {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 16px;
  white-space: nowrap;
  scrollbar-width: thin;
}
.env-nav-section {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(24, 57, 103, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
}
.env-nav-section > span {
  writing-mode: vertical-rl;
  padding: 3px 2px;
  color: var(--ks-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}
.env-main { min-width: 0; }
.env-nav-section a { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 14px; border: 0; border-radius: 15px; }
.env-nav a.on { color: #fff; border: 0; background: linear-gradient(135deg, var(--ks-navy-900), var(--ks-blue-700)); }
.env-intro {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(44, 93, 168, .15);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(236,244,253,.96));
  box-shadow: 0 12px 30px rgba(23, 56, 103, .09);
}
.env-intro-copy { position: relative; z-index: 1; max-width: 690px; }
.brand-lockup-light { width: 244px; }
.env-brand-lockup {
  position: absolute;
  z-index: 1;
  right: 28px;
  top: 26px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ks-navy-950), var(--ks-navy-800));
  box-shadow: 0 10px 24px rgba(7, 22, 47, .16);
}
.env-intro::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(44, 93, 168, .13);
  border-radius: 46% 54% 58% 42%;
  transform: rotate(20deg);
}
.env-intro h1 { margin: 2px 0 8px; color: var(--ks-navy-950); font-size: clamp(25px, 4vw, 38px); letter-spacing: -.035em; }
.env-intro p { max-width: 690px; margin: 0; color: #465a75; font-size: 14px; line-height: 1.75; }
.env-roadmap { display: grid; gap: 9px; margin-bottom: 12px; }
.env-phase {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--ks-line);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(23, 56, 103, .06);
}
.env-phase-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--ks-blue-700);
  background: var(--ks-blue-100);
  font-size: 13px;
  font-weight: 900;
}
.env-phase.phase-done .env-phase-no { color: #fff; background: var(--ks-navy-800); }
.env-phase.phase-live { border-color: rgba(44, 93, 168, .3); background: linear-gradient(135deg, #fff, var(--ks-blue-050)); }
.env-phase small { color: var(--ks-muted); font-size: 10px; font-weight: 700; }
.env-phase h2 { margin: 1px 0 4px; border: 0; color: var(--ks-navy-900); font-size: 16px; }
.env-phase p { margin: 0 0 9px; color: #53657d; font-size: 12px; }
.env-phase-links { display: flex; flex-wrap: wrap; gap: 6px; }
.env-phase-links a, .env-phase-cta {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(44, 93, 168, .2);
  border-radius: 999px;
  color: var(--ks-blue-700);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.env-page-head { display: flex; align-items: flex-start; gap: 10px; }
.env-page-head .eyebrow { margin-top: 0; }
.env-page-head .h1 { margin-bottom: 4px; }
.env-scope {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
}
.env-scope.common { color: #315d4e; background: #e5f2ed; }
.env-scope.business { color: var(--ks-blue-700); background: var(--ks-blue-100); }
.env-inherited {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 7px 0 10px;
  padding: 9px 12px;
  border: 1px dashed rgba(44, 93, 168, .28);
  border-radius: 11px;
  color: var(--ks-muted);
  background: rgba(236, 244, 253, .65);
  font-size: 11px;
}
.env-inherited > span { color: var(--ks-blue-700); font-size: 9px; font-weight: 900; }
.env-inherited b { color: var(--ks-navy-800); }
.env-empty {
  display: grid;
  justify-items: start;
  gap: 5px;
  width: 100%;
  padding: 18px;
  border: 1px dashed rgba(44, 93, 168, .28);
  border-radius: 12px;
  color: var(--ks-muted);
  background: rgba(255,255,255,.72);
}
.grid.three > .env-empty { grid-column: 1 / -1; }
.env-empty b { color: var(--ks-navy-800); }
.env-empty span { font-size: 11px; }
.env-business-card { position: relative; }
.env-business-card p { margin: 8px 0; min-height: 2.5em; color: #40516b; font-size: 12px; }
.env-business-card > a { display: inline-block; margin-top: 10px; color: var(--ks-blue-700); font-size: 11px; font-weight: 800; text-decoration: none; }
.business-readiness { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin-top: 11px; }
.business-readiness > span { overflow: hidden; height: 7px; border-radius: 99px; background: #dce6f2; }
.business-readiness i { display: block; width: var(--ready); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ks-blue-700), #72a5df); }
.bizseg.add { color: var(--ks-blue-700); border-style: dashed; background: transparent; }

@media (min-width: 900px) {
  .env-intro-copy { max-width: 920px; padding-right: 230px; }
  .env-roadmap { grid-template-columns: repeat(3, 1fr); }
  .env-phase { grid-template-columns: 42px minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .env-nav { gap: 6px; margin-inline: -2px; padding-bottom: 12px; }
  .env-nav-section > span { padding: 3px 1px; }
  .env-nav-section a { min-height: 36px; padding: 8px 10px; }
  .env-intro { display: flex; flex-direction: column; padding: 18px 16px; }
  .env-brand-lockup { position: relative; right: auto; top: auto; order: -1; width: 206px; margin: 0 0 12px; padding: 8px 12px; }
  .env-phase { grid-template-columns: 42px minmax(0, 1fr); padding: 13px; gap: 10px; }
  .env-page-head { align-items: flex-start; }
  .env-inherited { grid-template-columns: auto 1fr; }
  .env-inherited small { grid-column: 1 / -1; }
  .env-business-card p { min-height: 0; }
}

/* ===== 事業起点オンボーディング（要件 §19） ===== */
.onboard-mobile-tabs { display: none; }
.onboard-shell {
  display: grid;
  grid-template-rows: minmax(360px, calc((100 - var(--chat-size)) * 8px)) 34px minmax(300px, calc(var(--chat-size) * 8px));
  overflow: hidden;
  border: 1px solid rgba(24, 57, 103, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(23, 56, 103, .1);
}
.onboard-os { overflow: auto; padding: 20px; background: linear-gradient(180deg, #f9fbfe, #eef4fb); }
.onboard-os.standalone { min-height: 0; overflow: visible; border: 1px solid rgba(24,57,103,.14); border-radius: 18px; box-shadow: 0 16px 38px rgba(23,56,103,.08); }
.onboard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.onboard-head h2 { margin: 2px 0 0; border: 0; color: var(--ks-navy-950); font-size: 21px; }
.onboard-head > b { color: var(--ks-blue-700); font-size: 19px; }
.setup-steps { display: grid; gap: 7px; }
.setup-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--ks-line);
  border-radius: 12px;
  color: var(--ks-navy-900);
  background: rgba(255,255,255,.8);
  text-decoration: none;
}
.setup-step > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--ks-muted); background: #edf2f7; font-size: 11px; font-weight: 900; }
.setup-step small { display: block; margin-top: 2px; color: var(--ks-muted); }
.setup-step em { color: var(--ks-muted); font-size: 10px; font-style: normal; font-weight: 800; }
.setup-step.completed > span { color: #fff; background: #3d7562; }
.setup-step.current { border-color: rgba(44,93,168,.38); background: #fff; box-shadow: 0 7px 18px rgba(23,56,103,.08); }
.setup-step.current > span { color: #fff; background: var(--ks-blue-700); }
.setup-step.current em { color: var(--ks-blue-700); }
.draft-preview { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid rgba(44,93,168,.25); border-radius: 13px; background: #fff; box-shadow: inset 3px 0 var(--ks-blue-700); }
.draft-preview > div:first-child span, .draft-preview small { display: block; color: var(--ks-muted); font-size: 9px; }
.draft-state { align-self: start; padding: 4px 7px; border-radius: 99px; color: #8a5a18; background: #fff0cd; font-size: 9px; font-weight: 900; }
.draft-fields { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.draft-fields > span { padding: 8px; border-radius: 9px; background: var(--ks-blue-050); }
.draft-fields b { display: block; margin-top: 2px; font-size: 11px; }
.draft-preview .btn { justify-self: start; }
.split-control { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px; color: var(--ks-muted); background: #dce7f4; font-size: 9px; font-weight: 800; cursor: row-resize; }
.split-control input { width: min(320px, 50%); accent-color: var(--ks-blue-700); }
.motoco-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; min-height: 0; background: #fff; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--ks-line); }
.chat-head > div { display: flex; align-items: center; gap: 9px; }
.chat-head small { display: block; color: var(--ks-muted); font-size: 9px; }
.chat-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--ks-navy-900), var(--ks-blue-700)); font-weight: 900; }
.chat-log { display: flex; flex-direction: column; gap: 8px; overflow: auto; padding: 14px 16px; background: linear-gradient(180deg, #fff, #f7faff); }
.chat-bubble { max-width: 78%; padding: 9px 11px; border-radius: 12px; font-size: 11px; line-height: 1.55; }
.chat-bubble.bot { align-self: flex-start; color: #31445e; background: #eaf2fb; border-bottom-left-radius: 3px; }
.chat-bubble.me { align-self: flex-end; color: #fff; background: var(--ks-blue-700); border-bottom-right-radius: 3px; }
.chat-suggestions { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 8px; }
.chat-suggestions button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(44,93,168,.24); border-radius: 99px; color: var(--ks-blue-700); background: #fff; font-size: 10px; font-weight: 800; }
.chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--ks-line); }
.chat-compose textarea { resize: none; min-height: 42px; padding: 9px 10px; border: 1px solid #bdcad9; border-radius: 10px; font: inherit; }
.chat-compose .btn { align-self: end; min-height: 42px; }
.motoco-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 7px 14px 7px 7px; border: 0; border-radius: 99px; color: #fff; background: linear-gradient(135deg, var(--ks-navy-950), var(--ks-blue-700)); box-shadow: 0 14px 30px rgba(7,22,47,.3); cursor: pointer; }
.motoco-launcher > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; background: rgba(255,255,255,.12); font-weight: 900; }
.motoco-launcher > b { font-size: 11px; letter-spacing: .08em; }
.motoco-backdrop { position: fixed; inset: 0; z-index: 46; visibility: hidden; opacity: 0; background: rgba(7,22,47,.28); transition: opacity .2s ease; }
.motoco-backdrop.open { visibility: visible; opacity: 1; }
.motoco-drawer { position: fixed; right: 18px; bottom: 18px; z-index: 47; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto auto; width: min(390px, calc(100vw - 36px)); height: min(650px, calc(100dvh - 36px)); overflow: hidden; border: 1px solid rgba(24,57,103,.16); border-radius: 20px; background: #fff; box-shadow: 0 26px 70px rgba(7,22,47,.28); transform: translateY(24px) scale(.98); visibility: hidden; opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.motoco-drawer.open { visibility: visible; opacity: 1; transform: none; }
.motoco-close { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--ks-muted); background: #edf2f7; font-size: 21px; cursor: pointer; }
.motoco-context { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; color: var(--ks-muted); background: var(--ks-blue-050); }
.motoco-context small { font-size: 9px; }
.motoco-context b { color: var(--ks-navy-900); font-size: 11px; }
.motoco-draft { align-self: stretch; padding: 12px; border: 1px solid rgba(44,93,168,.25); border-radius: 12px; background: #fff; box-shadow: inset 3px 0 var(--ks-blue-700); }
.motoco-draft span, .motoco-draft em, .motoco-draft dt { color: var(--ks-muted); font-size: 9px; font-style: normal; }
.motoco-draft > b { display: block; margin: 6px 0; color: var(--ks-navy-900); font-size: 16px; }
.motoco-draft dl { margin: 0 0 10px; }
.motoco-draft dl div { display: grid; grid-template-columns: 72px 1fr; gap: 7px; padding: 5px 0; border-top: 1px solid var(--ks-line); }
.motoco-draft dd { margin: 0; color: #40516b; font-size: 10px; }

.business-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; }
.registration-assist { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 13px 15px; border: 1px solid rgba(44,93,168,.22); border-radius: 13px; background: var(--ks-blue-050); }
.registration-assist small { display: block; margin-top: 3px; color: var(--ks-muted); }
.business-meta span { padding: 8px; border-radius: 9px; background: var(--ks-blue-050); }
.business-meta small, .business-meta b { display: block; }
.business-meta b { margin-top: 2px; color: var(--ks-navy-900); font-size: 11px; }
.register-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 12px 0; }
.register-steps button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px solid var(--ks-line); border-radius: 10px; color: var(--ks-muted); background: #fff; font-size: 11px; font-weight: 800; }
.register-steps span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #edf2f7; font-size: 9px; }
.register-steps button.on { color: #fff; border-color: var(--ks-blue-700); background: var(--ks-blue-700); }
.register-steps button.on span { color: var(--ks-blue-700); background: #fff; }
.register-steps button.completed { color: #315d4e; border-color: #b9d7cc; background: #edf7f3; }
.registration-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.registration-card { min-height: 430px; padding: 20px; border: 1px solid var(--ks-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(23,56,103,.07); }
.registration-title small { color: var(--ks-blue-700); font-weight: 900; }
.registration-title h2 { margin: 3px 0 16px; border: 0; color: var(--ks-navy-950); font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { color: #40516b; font-size: 11px; font-weight: 800; }
.form-grid label.wide { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select { box-sizing: border-box; width: 100%; margin-top: 5px; padding: 10px 11px; border: 1px solid #bdcad9; border-radius: 9px; color: var(--ks-navy-900); background: #fff; font: inherit; font-weight: 500; }
.form-grid textarea { resize: vertical; }
.register-actions { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--ks-line); }
.register-actions button[disabled] { opacity: .35; }
.registration-guide { display: flex; gap: 10px; padding: 15px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--ks-navy-950), var(--ks-navy-800)); box-shadow: 0 10px 24px rgba(7,22,47,.16); }
.registration-guide p { margin: 5px 0 0; color: #dbe8f7; font-size: 11px; line-height: 1.65; }
.member-draft { display: grid; gap: 8px; }
.member-draft article { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 12px; border: 1px solid var(--ks-line); border-radius: 11px; }
.member-draft article small { grid-column: 1 / -1; color: var(--ks-muted); }
.permission-strip, .proposal-resources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding: 11px; border-radius: 11px; background: var(--ks-blue-050); }
.permission-strip b { width: 100%; }
.permission-strip span, .proposal-resources span { padding: 5px 8px; border-radius: 99px; color: #40516b; background: #fff; font-size: 10px; font-weight: 700; }
.agent-proposal { display: grid; gap: 8px; }
.proposal-head span { display: block; color: var(--ks-blue-700); font-size: 9px; font-weight: 900; }
.proposal-head b { font-size: 17px; }
.agent-proposal article { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--ks-line); border-radius: 11px; }
.agent-proposal article > span, .agent-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: var(--ks-blue-700); font-size: 10px; font-weight: 900; }
.agent-proposal small { display: block; color: var(--ks-muted); }
.agent-proposal em { color: #8a5a18; font-size: 9px; font-style: normal; font-weight: 800; }
.launch-review h3 { margin: 9px 0 14px; font-size: 20px; }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.review-grid span { padding: 11px; border-radius: 10px; background: var(--ks-blue-050); }
.review-grid small, .review-grid b { display: block; }
.risk-check { margin-top: 14px; padding: 13px; border-left: 4px solid #d39333; border-radius: 9px; background: #fff8e7; }
.risk-check p { margin: 5px 0 0; color: #655538; font-size: 11px; }

.workspace-tabs { display: flex; gap: 5px; overflow-x: auto; margin: 12px 0; padding: 5px; border-radius: 12px; background: #e9f0f8; }
.workspace-tabs button { flex: 0 0 auto; padding: 8px 10px; border: 0; border-radius: 8px; color: #53657d; background: transparent; font-size: 11px; font-weight: 800; }
.workspace-tabs button.on { color: #fff; background: var(--ks-navy-900); box-shadow: 0 5px 12px rgba(23,56,103,.16); }
.workspace-panel { min-height: 330px; padding: 16px; border: 1px solid var(--ks-line); border-radius: 15px; background: #fff; }
.workspace-summary { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.workspace-summary article, .workspace-grid article { padding: 15px; border-radius: 12px; background: var(--ks-blue-050); }
.workspace-summary small, .workspace-summary b { display: block; color: var(--ks-muted); }
.workspace-summary h3 { margin: 4px 0 7px; color: var(--ks-navy-900); font-size: 19px; }
.workspace-summary p, .workspace-grid p { margin: 5px 0 0; color: #53657d; font-size: 11px; }
.workspace-summary article:last-child b { margin: 3px 0 11px; color: var(--ks-navy-900); }
.readiness-seven { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.readiness-seven span { display: grid; justify-items: center; gap: 5px; padding: 9px 3px; border-radius: 9px; color: var(--ks-muted); background: #f3f6fa; font-size: 9px; font-weight: 800; }
.readiness-seven i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #e1e8f0; font-style: normal; }
.readiness-seven span.completed { color: #315d4e; background: #edf7f3; }
.readiness-seven span.completed i { color: #fff; background: #3d7562; }
.readiness-seven span.current { color: var(--ks-blue-700); background: #e8f1fc; }
.readiness-seven span.current i { color: #fff; background: var(--ks-blue-700); }
.next-action { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid rgba(44,93,168,.22); border-radius: 11px; }
.next-action > span { color: var(--ks-blue-700); font-size: 9px; font-weight: 900; }
.workspace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.workspace-grid small, .workspace-grid b { display: block; }
.agent-board { display: grid; gap: 8px; }
.agent-board article { display: grid; grid-template-columns: 42px 1fr auto auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--ks-line); border-radius: 12px; }
.agent-board small { display: block; color: var(--ks-muted); }
.agent-board p { margin: 4px 0 0; color: #53657d; font-size: 10px; }
.workspace-jump { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 12px; background: var(--ks-blue-050); }
.history-list { display: grid; gap: 8px; }
.history-list article { display: grid; grid-template-columns: 80px 1fr auto; gap: 10px; padding: 12px; border-bottom: 1px solid var(--ks-line); }
.history-list small { display: block; color: var(--ks-muted); }
.history-list em { color: var(--ks-blue-700); font-size: 10px; font-style: normal; font-weight: 800; }
.knowledge-types { display: grid; gap: 8px; margin: 12px 0; }
.knowledge-type { display: grid; grid-template-columns: 38px 1fr 70px auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--ks-line); border-radius: 12px; background: #fff; }
.knowledge-type > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: var(--ks-navy-800); font-weight: 900; }
.knowledge-type h3 { margin: 1px 0 3px; font-size: 15px; }
.knowledge-type p { margin: 0; color: var(--ks-muted); font-size: 10px; }
.knowledge-type > b { color: var(--ks-blue-700); font-size: 18px; text-align: right; }
.knowledge-type > b small { font-size: 9px; }

@media (max-width: 899px) {
  .onboard-mobile-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 8px; padding: 4px; border-radius: 11px; background: #e8eff7; }
  .onboard-mobile-tabs button { min-height: 38px; border: 0; border-radius: 8px; color: var(--ks-muted); background: transparent; font-weight: 800; }
  .onboard-mobile-tabs button.on { color: #fff; background: var(--ks-navy-900); }
  .onboard-shell { display: block; min-height: 570px; border-radius: 14px; }
  .onboard-shell .split-control { display: none; }
  .onboard-shell.pane-os .motoco-chat, .onboard-shell.pane-chat .onboard-os { display: none; }
  .onboard-os { min-height: 530px; padding: 13px; }
  .onboard-os.standalone { min-height: 0; }
  .motoco-chat { min-height: 570px; grid-template-rows: auto minmax(310px, 1fr) auto auto; }
  .draft-fields { grid-template-columns: 1fr; }
  .setup-step { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 9px; }
  .registration-layout { grid-template-columns: 1fr; }
  .registration-guide { order: -1; }
  .register-steps { overflow-x: auto; display: flex; }
  .register-steps button { flex: 0 0 90px; }
  .registration-card { min-height: 0; padding: 15px; }
  .registration-assist { align-items: stretch; flex-direction: column; }
  .motoco-launcher { right: 12px; bottom: 76px; padding-right: 9px; }
  .motoco-launcher > b { display: none; }
  .motoco-drawer { right: 8px; bottom: 70px; width: calc(100vw - 16px); height: min(690px, calc(100dvh - 82px)); border-radius: 18px; }
  .form-grid, .workspace-summary, .workspace-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .agent-proposal article { grid-template-columns: 34px 1fr; }
  .agent-proposal article em { grid-column: 2; }
  .readiness-seven { grid-template-columns: repeat(4, 1fr); }
  .next-action { grid-template-columns: 1fr auto; }
  .next-action > span { grid-column: 1 / -1; }
  .agent-board article { grid-template-columns: 38px 1fr auto; }
  .agent-board article .btn { grid-column: 2 / -1; justify-self: start; }
  .workspace-jump { align-items: flex-start; flex-direction: column; }
  .knowledge-type { grid-template-columns: 36px 1fr auto; }
  .knowledge-type > b { grid-column: 3; }
  .knowledge-type .btn { grid-column: 2 / -1; justify-self: start; }
}

/* ===== Desktop design system（2026-09-08 / JNG dashboard準拠） =====
   PCはスマホの拡大ではなく、左ナビ＋1180pxの業務キャンバスとして組む。
   字体・余白・面の尺度はこの末尾レイヤーを唯一の収束点にする。 */
@media (min-width: 900px) {
  :root {
    --pc-sidebar: 224px;
    --pc-canvas: 1180px;
    --pc-space-1: 4px;
    --pc-space-2: 8px;
    --pc-space-3: 12px;
    --pc-space-4: 16px;
    --pc-space-5: 20px;
    --pc-space-6: 24px;
    --pc-space-7: 32px;
    --pc-type-caption: 11px;
    --pc-type-meta: 12px;
    --pc-type-body: 14px;
    --pc-type-section: 16px;
    --pc-type-page: 24px;
    --pc-radius: 12px;
    --pc-shadow: 0 1px 2px rgba(15, 35, 72, .05), 0 7px 22px rgba(15, 35, 72, .055);
  }

  body { padding-top: 72px; font-size: var(--pc-type-body); line-height: 1.6; }
  .small, .why, .people, .due, .fresh, .report-by { font-size: var(--pc-type-meta); line-height: 1.55; }
  .eyebrow, .bizbar-lbl, .document-nav a small, .tag, .biz, .pri { font-size: var(--pc-type-caption); }
  h3, .box .ttl, .kcard .ttl { font-size: var(--pc-type-body); line-height: 1.5; }
  h2, .grp h2, .detail-page h2, .document-surface h2 { font-size: var(--pc-type-section); line-height: 1.4; }
  .h1, .document-page-head .h1, body[data-page="task"] .detail-head .h1,
  .registration-title h2, .onboard-head h2 { font-size: var(--pc-type-page); line-height: 1.3; letter-spacing: -.025em; }

  /* JNGと同じ、PCだけの固定サイドナビ。 */
  .top {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    min-height: 72px;
    padding: 12px 32px;
    gap: 16px;
  }
  .top .role { display: none; }
  .top .example { margin-left: auto; }
  .nav {
    position: fixed;
    top: 72px;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    width: var(--pc-sidebar);
    height: calc(100dvh - 72px);
    padding: 20px 12px;
    border: 0;
    border-right: 1px solid var(--ks-line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 7px 0 22px rgba(23, 56, 103, .045);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav a {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
    padding: 11px 14px 11px 24px;
    border: 0;
    border-radius: 9px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
  }
  .nav a::after {
    inset: 9px auto 9px 0;
    width: 3px;
    height: auto;
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
  }
  .nav a.on { color: var(--ks-navy-900); background: var(--ks-blue-050); box-shadow: none; }
  .nav a.on::after {
    inset: 9px auto 9px 7px;
    width: 3px;
    height: auto;
    transform: scaleY(1);
  }

  .bizbar {
    min-height: 50px;
    margin-left: var(--pc-sidebar);
    padding: 10px max(28px, calc((100vw - var(--pc-sidebar) - var(--pc-canvas)) / 2));
    gap: 10px;
  }
  .bizseg { min-height: 30px; padding: 4px 11px; font-size: 12px; }
  .wrap,
  .wrap#app,
  body[data-tab="mine"] .wrap#app,
  body[data-tab="ai"] .wrap#app,
  body[data-page="more"] .wrap#app,
  body[data-page="module"] .wrap#app,
  body[data-page="task"] .wrap#app,
  body[data-page="environment"] .wrap#app {
    width: auto;
    max-width: none;
    margin: 0 0 0 var(--pc-sidebar);
    padding: 32px max(28px, calc((100vw - var(--pc-sidebar) - var(--pc-canvas)) / 2)) 64px;
  }

  /* 6層の共通組版: ページ → 見出し → 区画 → カード → 行 → 補助。 */
  .fresh { min-height: 28px; margin: 0 0 var(--pc-space-4); padding: 4px 0; }
  .ctl { margin: 0 0 var(--pc-space-6); }
  .bar { gap: var(--pc-space-2); }
  .chip { min-height: 32px; padding: 5px 11px; font-size: 12px; }
  .gsec { margin-bottom: var(--pc-space-7); }
  .grp h2, .detail-page h2 {
    min-height: 30px;
    margin: 0 0 var(--pc-space-3);
    padding: 0 0 var(--pc-space-2);
    border-bottom: 1px solid var(--ks-line);
  }
  .box, .card, .kcard, .module-card, .table-card, .canon-map > div,
  .tt, .wk, .document-surface, .registration-card, .workspace-panel {
    border-color: var(--ks-line);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
  }
  .box { margin-bottom: var(--pc-space-3); padding: 18px; }
  .box .row { gap: 8px; }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px;
    border-color: rgba(24, 57, 103, .24);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
  }

  /* わたしの仕事 */
  body[data-tab="mine"] .list.two {
    display: grid;
    grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr);
    gap: 24px;
    column-count: auto;
    align-items: start;
  }
  body[data-tab="mine"] .list.two > .gsec:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body[data-tab="mine"] .list.two > .gsec:nth-child(2) > .grp,
  body[data-tab="mine"] .list.two > .gsec:nth-child(2) > .pinhead,
  body[data-tab="mine"] .list.two > .gsec:nth-child(2) > .pinsep { grid-column: 1 / -1; }
  body[data-tab="mine"] .list.two > .gsec:nth-child(2) > .box { padding: 16px; }
  body[data-tab="mine"] [data-task].box {
    height: 118px;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body[data-tab="mine"] [data-task] > .people,
  body[data-tab="all"] .kcard > .people,
  body[data-tab="waiting"] .kcard > .people { display: none; }

  /* 事業の仕事 */
  body[data-tab="all"] .kanban, body[data-tab="waiting"] .kanban {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  body[data-tab="all"] .kcol, body[data-tab="waiting"] .kcol {
    padding: 10px;
    border-radius: var(--pc-radius);
    background: rgba(238, 244, 251, .78);
  }
  body[data-tab="all"] .kcol h3, body[data-tab="waiting"] .kcol h3 {
    margin: 0 0 8px;
    padding: 2px 2px 9px;
    font-size: 14px;
  }
  body[data-tab="all"] .kcard, body[data-tab="waiting"] .kcard {
    margin: 0 0 8px;
    padding: 13px;
    font-size: 13px;
    line-height: 1.55;
    box-shadow: 0 1px 2px rgba(15, 35, 72, .045);
  }
  body[data-tab="all"] .kcard .ttl,
  body[data-tab="all"] .kcard .ttl a,
  body[data-tab="waiting"] .kcard .ttl,
  body[data-tab="waiting"] .kcard .ttl a,
  body[data-tab="mine"] .box .ttl,
  body[data-tab="mine"] .box .ttl a {
    color: var(--ks-navy-900);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
  }
  body[data-tab="all"] .kcard .why,
  body[data-tab="all"] .kcard .people,
  body[data-tab="waiting"] .kcard .why,
  body[data-tab="waiting"] .kcard .people,
  body[data-tab="mine"] .box .why,
  body[data-tab="mine"] .box .people { font-size: 12px; line-height: 1.55; }

  /* 稼働AI */
  body[data-tab="ai"] .list.two { gap: 24px; }
  body[data-tab="ai"] .gsec > .box { padding: 18px; }
  .subnav.business, .subnav.ai-tabs { margin: 0 0 20px; gap: 8px; }
  .subnav.business a, .subnav.ai-tabs a { min-height: 40px; padding: 8px 16px; font-size: 13px; }

  /* 資料・日報・稼働レポート */
  .document-layout { grid-template-columns: 204px minmax(0, 1fr); gap: 28px; }
  .document-nav { top: 20px; gap: 8px; }
  .document-nav a { min-height: 62px; padding: 10px 12px; border-radius: 10px; box-shadow: none; }
  .document-nav a b { font-size: 13px; }
  .document-page-head { min-height: 64px; padding: 0 0 14px; align-items: flex-end; }
  .document-toolbar { margin: 16px 0; padding: 14px 16px; border-radius: var(--pc-radius); }
  .material-list { gap: 10px; }
  .material-row { min-height: 82px; margin: 0; padding: 16px 18px; gap: 14px; }
  .material-row b, .module-card b { font-size: 14px; }
  .document-surface { margin: 0 0 16px; padding: 18px; gap: 14px; }
  .document-surface p { margin: 5px 0 14px; font-size: 13px; line-height: 1.65; }
  .metric-grid { gap: 10px; }
  .metric-grid > div { padding: 14px; border-color: var(--ks-line); border-radius: 9px; }
  .metric-grid b { font-size: 22px; }

  /* 仕事詳細 */
  body[data-page="task"] .detail-head { margin-bottom: 24px; padding: 22px 24px; }
  body[data-page="task"] .cols.detail { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 28px; }
  .detail-page { gap: 24px; }
  .purpose-panel { gap: 10px; padding: 10px; }
  .purpose-item { padding: 14px; }
  .purpose-item p { font-size: 13px; }

  /* 環境・事業設定 */
  .env-nav { gap: var(--pc-space-6); margin: 0 0 var(--pc-space-7); padding: 0; }
  .env-nav-section { padding: 4px; }
  .env-nav-section a { min-height: 38px; padding: 8px 13px; font-size: 12px; }
  .env-intro { min-height: 168px; margin-bottom: 20px; padding: 26px 28px; }
  .env-intro-copy { max-width: 760px; padding-right: 240px; }
  .env-intro h1 { font-size: 30px; line-height: 1.3; }
  .env-intro p { font-size: 14px; line-height: 1.7; }
  .env-brand-lockup { right: 28px; width: 224px; }
  .onboard-os.standalone { padding: 22px; }
  .onboard-head { margin-bottom: 16px; }
  .setup-steps { gap: 8px; }
  .setup-step {
    min-height: 64px;
    grid-template-columns: 42px minmax(0, 1fr) 64px;
    gap: 12px;
    padding: 11px 14px;
  }
  .setup-step > span { width: 36px; height: 36px; }
  .setup-step b { font-size: 14px; }
  .setup-step small { font-size: 12px; }
  .setup-step em { font-size: 11px; text-align: right; }
  .registration-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .registration-card { padding: 22px; }
  .form-grid { gap: 16px; }
  .form-grid label { font-size: 12px; }
  .workspace-panel { padding: 20px; }
}

/* 中間幅PC: 大画面を縮めず、カードの可読幅を守って段組みを変える。 */
@media (min-width: 900px) and (max-width: 1359px) {
  body[data-tab="mine"] .list.two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    column-count: auto;
  }
  body[data-tab="mine"] .list.two > .gsec { margin-bottom: 0; }
  body[data-tab="mine"] .list.two > .gsec:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body[data-tab="mine"] .list.two > .gsec:nth-child(2) > .grp,
  body[data-tab="mine"] .list.two > .gsec:nth-child(2) > .pinhead,
  body[data-tab="mine"] .list.two > .gsec:nth-child(2) > .pinsep { grid-column: 1 / -1; }
  body[data-tab="mine"] .list.two > .gsec:nth-child(2) > .box {
    height: 100%;
    margin-bottom: 0;
  }

  body[data-tab="all"] .kanban,
  body[data-tab="waiting"] .kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
  }

  body[data-tab="ai"] .list.two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    column-count: auto;
  }

  .document-layout { grid-template-columns: 176px minmax(0, 1fr); gap: 22px; }
  body[data-page="task"] .cols.detail { grid-template-columns: 1fr; }
  .registration-layout { grid-template-columns: 1fr; }
}
