/* DawnLap Web(試作 0.16-web。前の仮の名前は Minutino)。色は Mac 版のリッチのテーマに合わせる。
   状態は色だけで分けない(形・記号・ことば・線の太さ/点線)。緑と黄の見分けがつかない人にも分かるように(§H)。
   幅で形が変わる: 広い(1000px〜)= 3つの枠/中くらい(700〜999px)= 左の枠+まん中/せまい(〜699px)= 1列+下のタブ */
:root {
  color-scheme: light dark;
  --bg: #FBF8F4;
  --side: #F3EFEA;
  --pane: #F6F3EE;
  --surface: #FFFFFF;
  --ink: #1D1B19;
  --muted: #5F5A55;
  --faint: #8C8680;
  --line: #E4DED7;
  --accent: #DC4C3E;
  --accent-strong: #C23B2E;
  --accent-soft: rgba(220, 76, 62, 0.10);
  --accent-line: rgba(220, 76, 62, 0.55);
  /* 主の色の上の字と記号。明るい見た目は白、暗い見た目は墨 #1A0E12(暗い見た目の主の色は明るめで、白い字は対比 約2.6 しかない。
     墨で 約7.1。Mac 0.17.1 の DS.onAccent・ホームページの --on-accent と同じ決まり) */
  --on-accent: #FFFFFF;
  /* 面(三角1枚 = 今日のタスク1つ)の光 = 1分さわった。主の色と同じ(Mac の FacetColor.lit = DS.accent)。色は補助で、意味は ▲ の形 */
  --facet-lit: #DC4C3E;
  --chip: rgba(29, 27, 25, 0.06);
  --hover: rgba(29, 27, 25, 0.045);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tap: 36px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #222325; --side: #2A2B2E; --pane: #262729; --surface: #303134;
    --ink: #EEECEA; --muted: #B4AFA9; --faint: #8E8984; --line: #3A3B3F;
    --accent: #FF7468; --accent-strong: #FF8A80; --accent-soft: rgba(255, 116, 104, 0.15); --accent-line: rgba(255, 116, 104, 0.6);
    --on-accent: #1A0E12;
    --facet-lit: #FF7468;
    --chip: rgba(255, 255, 255, 0.08); --hover: rgba(255, 255, 255, 0.05);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #222325; --side: #2A2B2E; --pane: #262729; --surface: #303134;
  --ink: #EEECEA; --muted: #B4AFA9; --faint: #8E8984; --line: #3A3B3F;
  --accent: #FF7468; --accent-strong: #FF8A80; --accent-soft: rgba(255, 116, 104, 0.15); --accent-line: rgba(255, 116, 104, 0.6);
  --on-accent: #1A0E12;
  --facet-lit: #FF7468;
  --chip: rgba(255, 255, 255, 0.08); --hover: rgba(255, 255, 255, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* C09 色のテーマ「クラシック」(設定。この端末だけ。data-look="classic")。リッチ(はじめ)との見分けは、色だけにしない:
   主の色を赤から青へ・角を小さく(14px→8px)・影をほとんど無く・地を白とグレーのやさしい面に。意味の印(▲ ✓ 線の形)はどちらも同じ */
:root[data-look="classic"] {
  --bg: #FFFFFF; --side: #F4F4F5; --pane: #FAFAFA; --surface: #FFFFFF;
  --ink: #1A1A1C; --muted: #58585C; --faint: #88888C; --line: #E1E1E4;
  --accent: #2F5FA7; --accent-strong: #234A85; --accent-soft: rgba(47, 95, 167, 0.10); --accent-line: rgba(47, 95, 167, 0.55);
  --on-accent: #FFFFFF; --facet-lit: #2F5FA7;
  --chip: rgba(26, 26, 28, 0.06); --hover: rgba(26, 26, 28, 0.045);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root[data-look="classic"]:not([data-theme="light"]) {
    --bg: #1E1F21; --side: #26272A; --pane: #232426; --surface: #2C2D30;
    --ink: #EDEDEF; --muted: #B0B0B5; --faint: #8A8A8F; --line: #3A3B3F;
    --accent: #8FB4F0; --accent-strong: #A9C6F5; --accent-soft: rgba(143, 180, 240, 0.15); --accent-line: rgba(143, 180, 240, 0.6);
    --on-accent: #0E1A2E; --facet-lit: #8FB4F0;
    --chip: rgba(255, 255, 255, 0.08); --hover: rgba(255, 255, 255, 0.05);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}
:root[data-look="classic"][data-theme="dark"] {
  --bg: #1E1F21; --side: #26272A; --pane: #232426; --surface: #2C2D30;
  --ink: #EDEDEF; --muted: #B0B0B5; --faint: #8A8A8F; --line: #3A3B3F;
  --accent: #8FB4F0; --accent-strong: #A9C6F5; --accent-soft: rgba(143, 180, 240, 0.15); --accent-line: rgba(143, 180, 240, 0.6);
  --on-accent: #0E1A2E; --facet-lit: #8FB4F0;
  --chip: rgba(255, 255, 255, 0.08); --hover: rgba(255, 255, 255, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* C33 色のテーマ「モノ」(設定。この端末だけ。data-look="mono")。白黒のすっきりした見た目。見分けは、色だけにしない:
   主の色を黒に近い灰色へ・角をほぼ四角に(2px)・影を無くして細い線で囲む。意味の印(▲ ✓ 線の形)はどのテーマも同じ */
:root[data-look="mono"] {
  --bg: #FFFFFF; --side: #F2F2F2; --pane: #FAFAFA; --surface: #FFFFFF;
  --ink: #111111; --muted: #4D4D4D; --faint: #7A7A7A; --line: #C8C8C8;
  --accent: #2B2B2B; --accent-strong: #000000; --accent-soft: rgba(0, 0, 0, 0.07); --accent-line: rgba(0, 0, 0, 0.55);
  --on-accent: #FFFFFF; --facet-lit: #2B2B2B;
  --chip: rgba(0, 0, 0, 0.07); --hover: rgba(0, 0, 0, 0.05);
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  --radius: 2px;
}
@media (prefers-color-scheme: dark) {
  :root[data-look="mono"]:not([data-theme="light"]) {
    --bg: #121212; --side: #1B1B1B; --pane: #171717; --surface: #222222;
    --ink: #F2F2F2; --muted: #BDBDBD; --faint: #8F8F8F; --line: #444444;
    --accent: #E6E6E6; --accent-strong: #FFFFFF; --accent-soft: rgba(255, 255, 255, 0.12); --accent-line: rgba(255, 255, 255, 0.6);
    --on-accent: #111111; --facet-lit: #E6E6E6;
    --chip: rgba(255, 255, 255, 0.09); --hover: rgba(255, 255, 255, 0.06);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  }
}
:root[data-look="mono"][data-theme="dark"] {
  --bg: #121212; --side: #1B1B1B; --pane: #171717; --surface: #222222;
  --ink: #F2F2F2; --muted: #BDBDBD; --faint: #8F8F8F; --line: #444444;
  --accent: #E6E6E6; --accent-strong: #FFFFFF; --accent-soft: rgba(255, 255, 255, 0.12); --accent-line: rgba(255, 255, 255, 0.6);
  --on-accent: #111111; --facet-lit: #E6E6E6;
  --chip: rgba(255, 255, 255, 0.09); --hover: rgba(255, 255, 255, 0.06);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
/* C24 書体「明朝」(設定。この端末だけ。data-font="mincho")。端末にもともと入っている明朝だけを使う(ダウンロードしない)。
   意味の印(▲ ✓ 線の形)は書体で変わらない */
:root[data-font="mincho"] { --font: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "BIZ UDPMincho", "MS PMincho", "Noto Serif JP", serif; }
.fontsample[data-fontsample="gothic"] { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
.fontsample[data-fontsample="mincho"] { font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "BIZ UDPMincho", "MS PMincho", "Noto Serif JP", serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.4; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.ic { flex: none; display: inline-block; vertical-align: -0.15em; }
/* 面(三角1枚 = 今日のタスク1つ。icons.js の facet)。塗り = 光が当たった = 1分さわった。✓ は「終えた」だけ。
   塗りと同じ形の線(ふち)もいつも描く(塗りが消える見え方でも、線で三角の形が残る)。線の角が枠から少し出るので、はみ出しを見せる */
.facet { flex: none; display: inline-block; vertical-align: -0.15em; overflow: visible; }
.facet .facet-face { fill: var(--facet-lit); stroke: var(--facet-lit); }
/* Windows のハイコントラスト(色を機械が置きかえる見え方): 塗りも線も文字の色に。主の色が消えても、▲ の形で読める */
@media (forced-colors: active) {
  .facet .facet-face { fill: CanvasText; stroke: CanvasText; }
}
[hidden] { display: none !important; }
.spacer { flex: 1; }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.note { color: var(--muted); font-size: 13px; margin: 6px 0; display: flex; gap: 6px; align-items: center; }
.note.warn { color: var(--ink); background: var(--chip); border-inline-start:3px solid var(--accent); padding: 6px 10px; border-radius: 6px; }
/* Google ToDo から取りこむ(12-01): 数の並び。色は使わず、字と並びで */
.gtcount { margin: 6px 0; padding-inline-start: 1.2em; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.pad { padding: 4px 10px; }
kbd { font: 600 11px var(--mono); padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.22); }

/* MARK: 枠の並び */
.app { display: grid; height: 100vh; height: 100dvh; min-height: 0; }
/* C05 文字の大きさ(設定。この端末だけ)。body ごとふくらます。.app の高さは、ふくらんだぶんだけ小さく置いて、画面にぴったり合わせる。
   倍率は app/deviceprefs.js の TEXT_ZOOM と同じ数 */
html[data-text="large"] body { zoom: 1.15; }
html[data-text="large"] .app { height: calc(100vh / 1.15); height: calc(100dvh / 1.15); }
html[data-text="xlarge"] body { zoom: 1.3; }
html[data-text="xlarge"] .app { height: calc(100vh / 1.3); height: calc(100dvh / 1.3); }
.app[data-layout="wide"] {
  grid-template-columns: 248px minmax(0, 1fr) 344px;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "top top top" "nav center live";
}
.app[data-layout="mid"] {
  grid-template-columns: 228px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top top" "nav center" "nav runbar";
}
.app[data-layout="narrow"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "top" "center" "runbar" "tabs";
  --tap: 44px;
}
.topbar { grid-area: top; }
.nav { grid-area: nav; }
.center { grid-area: center; }
.livepane { grid-area: live; }
.runbar { grid-area: runbar; }
.tabs { grid-area: tabs; }
.app[data-layout="narrow"] .nav, .app:not([data-layout="wide"]) .livepane { display: none; }
.app:not([data-layout="narrow"]) .tabs { display: none; }
.app[data-layout="wide"] .runbar { display: none; }
.app[data-layout="wide"] .show-notwide { display: none; }
.app[data-layout="narrow"] .hide-narrow { display: none; }
/* U-15: 指の機械(iPad など画面のキーボードだけ)では、⌘↩ の印を出さない */
@media (pointer: coarse) { kbd.hide-narrow { display: none; } }

/* MARK: 上の帯 */
.topbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--side); min-height: 50px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.brand img { border-radius: 7px; }
.ver { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; white-space: nowrap; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; white-space: nowrap; }
/* 見出しの版の札は、せまい画面では出さない(375 幅で「更新」と2行に折れていた。版は設定の「版と更新」で見える) */
@media (max-width: 420px) { .ver { display: none; } }
.chipbtn:hover { background: var(--hover); }
.chipbtn.update.has-new { border: 2px solid var(--accent); color: var(--accent); }
.newmark { font-size: 12px; }

/* MARK: 左の枠 */
.nav { background: var(--side); border-inline-end:1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.navlist { flex: 1; overflow-y: auto; padding: 8px; }
.navgroup { display: flex; flex-direction: column; gap: 1px; }
.navitem { width: 100%; display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 10px; border: 0; background: transparent; border-radius: 9px; text-align: start; font-size: 14.5px; }
.navitem:hover { background: var(--hover); }
.navitem[aria-current="page"] { background: var(--accent-soft); font-weight: 750; box-shadow: inset 3px 0 0 var(--accent); }
.navlabel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 係 R2c(評価係 E5-05・持ち主の好み 型8「折り返しもされず全てが表示されないのが、非常に不便」): 左の枠のプロジェクトの名前は、切らずに折り返して全部出す。
   大目標の行(呼び名の1行。全文は上の止めて置く札 = D15)は前のまま */
.ptree .prow:not(.gnavrow) .navlabel { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.navitem .count, .count { margin-inline-start:auto; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; background: var(--chip); border-radius: 999px; padding: 0 7px; }
.navhead { font-size: 12px; font-weight: 700; color: var(--muted); padding: 16px 10px 4px; }
.navfoot { border-top: 1px solid var(--line); padding: 8px; }
.prow { display: flex; align-items: center; padding-inline-start: calc(var(--depth) * 16px); }
.prow .navitem { flex: 1; min-width: 0; }
.fold, .fold-space { width: 22px; flex: none; }
.fold { height: 28px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; display: grid; place-items: center; padding: 0; }
.fold:hover { background: var(--hover); }
.navitem.big { min-height: 48px; font-size: 15.5px; }

/* MARK: まん中 */
.center { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
/* ほかのアプリから落としている間(点線の枠と記号+ことば。色だけにしない) */
.dropzone { position: absolute; inset: 10px; border: 3px dashed var(--accent); border-radius: 18px; background: var(--accent-soft); display: grid; place-items: center; pointer-events: none; z-index: 20; }
.droplabel { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 16px; }
.centerhead { padding: 16px 24px 8px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.centerhead h1 { margin: 0; font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.centerhead h1 .ic { color: var(--accent); }
.centerhead .sub { color: var(--muted); font-size: 15px; font-weight: 600; }
.centerhead .stats { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-inline-start:auto; }
/* MARK: 消えない帯(0.18.2-web。保存を止めた・記録を残せない・いつもの置き場が開けない・読めなかった)。
   色だけにたよらない: 先頭の印(止 = 塗った四角/注 = 枠だけの四角)・太い見出しのことば・帯の枠(実線 = 保存していない/点線 = 気をつけて)。
   印に ✕ を使わない(閉じるボタンに見えるため) */
.bands { display: flex; flex-direction: column; gap: 8px; padding: 12px 24px 0; }
.bands[hidden] { display: none; }
.band { display: flex; align-items: flex-start; gap: 10px 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 2.5px solid var(--ink); box-shadow: var(--shadow); }
.band.warn { border-style: dashed; border-color: var(--muted); }
.bandmark { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 17px; }
.band.warn .bandmark { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.bandtext { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.bandtext b { font-size: 15px; }
.bandacts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.app[data-layout="narrow"] .bands { padding: 10px 12px 0; }
.bandunsaved { font-size: 14px; }
/* 開いている板の中の「止」の行(点検R6 △4: 板は画面のいちばん上の層なので、まん中の列の帯は板の下にかくれて見えなかった) */
.bands.inboard { padding: 12px 16px 0; }
.band.compact { padding: 8px 10px; box-shadow: none; }
.band.compact .bandmark { width: 26px; height: 26px; font-size: 15px; }
.stat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--chip); font-size: 14px; }
.stat b { font-variant-numeric: tabular-nums; }
.addbar { margin: 0 24px 8px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--accent-line); border-radius: var(--radius); padding: 5px 8px 5px 10px; box-shadow: var(--shadow); }
.addbar:focus-within { border-color: var(--accent); }
.addbar textarea, .dayadd textarea { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; line-height: 22px; padding: 7px 0; resize: none; min-height: 36px; max-height: 160px; color: var(--ink); }
.addbar .plus, .dayadd .plus { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.list { flex: 1; overflow-y: auto; padding: 4px 14px 120px; -webkit-overflow-scrolling: touch; }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }
.empty p { margin: 8px 0 14px; }
.toolbar { padding: 6px 10px 12px; }

/* 見出しの線(持ち越し・予定・やること・終わったタスク) */
.section { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 14px 10px 6px; width: 100%; border: 0; background: transparent; text-align: start; }
.section.foldable:hover { color: var(--ink); }
.section .trailing { font-weight: 500; color: var(--faint); }
.section .rule { flex: 1; height: 1px; background: var(--line); margin-inline-start:6px; }

/* MARK: 行 */
.row { display: flex; align-items: flex-start; gap: 6px; padding: 7px 8px; border-radius: 12px; position: relative; }
.row:hover { background: var(--hover); }
.row .indent { width: calc(var(--depth, 0) * 22px); flex: none; }
/* 電話の幅(10-28 N3): 320 の幅で、4段目の行の名前の欄が 13〜25px に縮み、1字ずつ縦に並んでいた → せまい形だけ 1段ごとの字下げを 22 → 12px に(仮の値。朝の問い) */
.app[data-layout="narrow"] .row .indent { width: calc(var(--depth, 0) * 12px); }
.run { width: 30px; height: 30px; border-radius: 50%; border: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent)); color: var(--on-accent); display: grid; place-items: center; flex: none; box-shadow: 0 1.5px 3px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.45); margin-top: 1px; padding: 0; }
.run:hover { transform: scale(1.07); }
.run .ic { margin-inline-start:2px; }
.run.is-running .ic { margin-inline-start:0; }
.run-space { width: 30px; flex: none; display: grid; place-items: center; color: var(--muted); }
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--faint); background: transparent; flex: none; margin: 4px 4px 0 2px; display: grid; place-items: center; padding: 0; color: var(--on-accent); }
.check.imp1 { border-color: #3B78E7; }
.check.imp2 { border-color: #E08A00; border-width: 2.4px; }
.check.imp3 { border-color: var(--accent); border-width: 2.8px; }
.check:hover { background: var(--hover); }
.check.on { background: var(--muted); border-color: var(--muted); }
/* C01(11-19): 押した丸だけ、描き直しのあとに一度だけ動く(src/ui/checkpop.js)。終える = ぽんとふくらんでチェックが出る・戻す = ふっとへこんで戻る。0.28秒 */
.check.pop { animation: check-back 0.22s ease-out; }
.check.on.pop { animation: check-pop 0.28s cubic-bezier(0.3, 1.5, 0.5, 1); }
.check.on.pop svg { animation: check-mark 0.28s ease-out; }
@keyframes check-pop { 0% { transform: scale(0.7); } 100% { transform: scale(1); } }
@keyframes check-back { 0% { transform: scale(0.88); } 100% { transform: scale(1); } }
@keyframes check-mark { 0% { opacity: 0; transform: scale(0.3) rotate(-20deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.row .body { flex: 1; min-width: 0; padding-top: 3px; }
.row .title { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; max-width: 44em; }
.row.done .title { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.chips { display: flex; gap: 5px 6px; flex-wrap: wrap; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; max-width: 100%; font-size: 12.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--chip); color: var(--muted); min-height: 22px; }
/* 深い行・せまい幅(10-28 N3 の補足): 札の字(「⛰ 大目標へつなぐ」など)が折れずに、札の地(丸い枠)の外へ 33〜87px 出ていた
   → 行の札は、入りきらないときだけ札の中で折り返す(1行に入る札は前のまま) */
.row .chip { white-space: normal; overflow-wrap: anywhere; }
.row .chip > span { min-width: 0; }
.chip.strong { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.chip.quota { padding: 2px 7px; }
.trail { display: flex; align-items: center; gap: 4px; flex: none; margin-inline-start:6px; }
.rowuntag { margin-inline-start: 6px; }
.datebtn { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px; border-radius: 999px; border: 0; background: var(--chip); font-size: 12.5px; font-weight: 600; }
.datebtn:hover { background: var(--accent); color: var(--on-accent); }
.datebtn.quiet { width: 34px; padding: 0; justify-content: center; color: var(--muted); }
.datebtn.nodate { width: 34px; padding: 0; justify-content: center; color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1.2px var(--accent-line); }
.datebtn.routine { color: var(--muted); cursor: default; }
.datebtn.routine:hover { background: var(--chip); color: var(--muted); }
.iconbtn { width: var(--tap); height: var(--tap); border-radius: 10px; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--muted); flex: none; padding: 0; font-size: 18px; font-weight: 700; }
.iconbtn:hover { background: var(--hover); color: var(--ink); }
.iconbtn.small { width: 28px; height: 28px; }
.iconbtn.big { width: 44px; height: 44px; }
/* 行の 🗑 は置かない(閉ループ 輪2 R2b: 日付の 📅 のすぐ隣で押しまちがいのもと。ゴミ箱へは詳しく見る板のいちばん下から = .tdfoot) */
/* 計測中の行: 太い枠+影(色だけでなく、枠の太さと影の形でも分かる) */
.row.running { background: var(--accent-soft); box-shadow: inset 0 0 0 2.2px var(--accent), 0 4px 12px color-mix(in srgb, var(--accent) 22%, transparent); }
/* 一時停止中の行: 細い実線の枠+丸の ‖ の札「一時停止中」(view.js)。点線は「次」だけ(台帳33回目 B #6 ②。止まっている = 計測中より細い線) */
.row.paused { outline: 1px solid var(--faint); outline-offset: -2px; }
.row.guide .body { color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: 14px; }
.row.guide .title { font-weight: 500; }
.routine-preview { color: var(--muted); }
.routine-preview .title { font-weight: 500; }

/* MARK: ボタン */
.btn { display: inline-flex; align-items: center; gap: 7px; min-height: var(--tap); padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: 14px; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.danger { color: var(--accent); }
/* いくつも選ぶ(台帳35回目 係 FB・acts_pick.js)。選んだ行 = 太い枠+「選択」の字の札(色だけで分けない)。帯 = まん中の下 */
.row.picked { background: var(--chip); outline: 2.5px solid var(--ink); outline-offset: -2.5px; }
.pickmark { position: absolute; inset-inline-end: 48px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 800; line-height: 1.5; padding: 0 7px; border: 1.5px solid currentColor; border-radius: 999px; background: var(--surface); color: var(--ink); pointer-events: none; }
/* 係 R2c(評価係 E5-18): 帯は一覧の上にかぶせず、まん中の枠のいちばん下に自分の場所を取る(一覧はその分だけ短くなる = 行は隠れない・行の場所も動かない) */
.pickbar { position: relative; flex: none; align-self: center; margin: 4px 12px 10px; z-index: 30; max-width: calc(100% - 24px); }
.pickbar[hidden] { display: none; }
.pickbar-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.pickcount { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pickhint { color: var(--muted); font-size: 12.5px; }
.pickbar .btn { white-space: nowrap; }
.pickbar .btn:not(.primary) kbd { background: var(--chip); }
/* G-7(係 w_g7 11-05): 帯のボタンが増えた分。せまい画面(narrow = 375px の電話)は Mac の TaskPickBar の size 0 と同じ短い字
   (「n件」「開始」「完了」「やめる」・まとめて とゴミ箱は絵だけ。読み上げは aria-label の長い名前)。入りきらなければ折り返す(.pickbar-in の flex-wrap)。
   キーの印は、せまい画面と指の機械では出さない(iPad の画面のキーボードに ⌘ は無い)。押す所の高さは .btn の --tap(指の機械は 44px) */
.pickbar .pl-short { display: none; }
.pickbar .pickmenu { padding: 0 12px; }
.pickbar .pickmenu .fselface { gap: 6px; }
.app[data-layout="narrow"] .pickbar .pl-long { display: none; }
.app[data-layout="narrow"] .pickbar .pl-short { display: inline; }
.app[data-layout="narrow"] .pickbar kbd { display: none; }
.app[data-layout="narrow"] .pickbar-in { gap: 6px; padding: 6px 8px; }
.app[data-layout="narrow"] .pickbar .btn { padding: 0 10px; min-width: var(--tap); justify-content: center; }
@media (pointer: coarse) { .pickbar kbd { display: none; } }
.linkbtn { border: 0; background: transparent; color: var(--accent); font-weight: 700; padding: 8px 4px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { min-height: var(--tap); padding: 4px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
/* 選んでいる = 太い枠 + 太字(点検 R2 △14: ✓ は「終えた」・● は「すんだ」の印なので、選んでいる印に使わない。色だけにもしない) */
.choice[aria-pressed="true"] { border: 2.5px solid var(--accent); background: var(--accent-soft); font-weight: 800; }
.sliderrow { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.sliderrow input[type="range"] { flex: 1; min-width: 0; min-height: var(--tap); accent-color: var(--accent); }
.sliderrow output { min-width: 3.2em; text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.choice .sub { font-size: 12px; color: var(--muted); font-weight: 500; }

/* MARK: 右の枠(次の1分・進行中の札・ポモドーロ・年表) */
.livepane { background: var(--pane); border-inline-start:1px solid var(--line); overflow-y: auto; padding: 14px 14px 40px; display: flex; flex-direction: column; gap: 12px; }
.inline-live { display: flex; flex-direction: column; gap: 10px; padding: 6px 4px 6px; }
.panelabel { display: flex; align-items: center; gap: 7px; font-weight: 750; font-size: 14px; }
.panelabel .ic { color: var(--accent); }
.cardtop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lap { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 750; padding: 2px 9px; border-radius: 999px; background: var(--chip); white-space: nowrap; flex: none; } /* 折らない・縮めない(下の帯 .rb-title の横並びで「1周目」が縦3行に折れた) */
.lapnum { font-size: 15px; line-height: 1; }
.lap.lap2 { box-shadow: inset 0 0 0 1.5px var(--ink); }
.progress { display: inline-flex; align-items: center; gap: 5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.nextcard { border: 1.8px dashed var(--accent-line); background: var(--accent-soft); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.nexttitle { font-size: 16.5px; font-weight: 750; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.primary.big { min-height: 52px; border-radius: 12px; border: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent)); color: var(--on-accent); font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 3px 8px color-mix(in srgb, var(--accent) 35%, transparent); }
.primary.big:hover { filter: brightness(1.05); }
.allset { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 8px 4px; }
.allset .ic { color: var(--accent); }
/* 今日が空: ✓ は出さない(✓ は「終えた」だけの印)。地図への入口のボタン */
.allset.empty { flex-wrap: wrap; gap: 8px 10px; }
.allset.empty > .ic { color: var(--muted); }
.allset.empty .chipbtn .ic { color: var(--accent); }
/* 英語(10-28 N1): 右の枠の「Find the Next Step on the Big Goal Screen」が1行のまま(.chipbtn は折らない)で、枠の中身から 3.8px はみ出していた
   → この札だけ、枠の中で折り返す(板の親の札 .ckparent と同じやり方。1行に入る日本語は前のまま) */
.allset.empty .chipbtn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: start; padding-top: 4px; padding-bottom: 4px; }
/* 進行中の札: 一時停止中 = 細い実線+札の丸の ‖ / 計測中 = 太い実線+影(点線は「次」の .nextcard だけ。台帳33回目 B #6 ②) */
.activecard { border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 9px; background: var(--chip); border: 1px solid var(--faint); }
.activecard.running { background: var(--accent-soft); border: 2.2px solid var(--accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 26%, transparent); }
.state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 750; padding: 2px 9px; border-radius: 999px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--faint); }
.state.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.cardtitle { font-size: 15px; font-weight: 700; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.clockrow { display: flex; align-items: center; gap: 12px; }
.clockcol { display: flex; flex-direction: column; }
/* G-2(係 w_g2 11-05): 1分の戸口 = 最初の1分の1行。次の1分の札(押すとタスクの板)・進行中の札の数え下げの右どなり(見るだけ)。
   色でなく形(門と札と ✓ の絵)と字で読む。せまい画面(375px)でも2行まで折り返す(全文は乗せたときの字) */
.clockrow.first { flex-wrap: wrap; }
.doorstep { display: flex; align-items: flex-start; gap: 7px; width: 100%; min-height: var(--tap); text-align: start; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 9px; padding: 6px 9px; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.doorstep:hover { border-color: var(--accent); }
.doorstep:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.doornote { display: flex; align-items: flex-start; gap: 6px; flex: 1 1 9em; min-width: 0; font-size: 13px; font-weight: 650; }
.doorstep > .ic, .doornote > .ic { flex: none; margin-top: 1px; }
.doorline { flex: 1 1 auto; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doorroutine { flex: none; display: inline-flex; padding-top: 2px; color: var(--muted); }
.bigclock { font: 800 30px/1.1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; color: var(--muted); }
.bigclock.ticking { color: var(--ink); }
.bigclock.countdown { font-size: 40px; }
.bigclock.countdown.ticking { color: var(--accent); }
.smallclock { font-size: 12.5px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.ring .ring-bg { stroke: var(--chip); }
.ring .ring-fg { stroke: var(--accent); transition: stroke-dashoffset 0.4s linear; }
.ring .ring-text { font: 750 11px var(--font); fill: var(--ink); font-variant-numeric: tabular-nums; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ctl { min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; padding: 0 8px; white-space: nowrap; }
.ctl:hover { background: var(--hover); }
.ctl.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent)); border: 1px solid var(--accent); color: var(--on-accent); box-shadow: 0 2px 5px color-mix(in srgb, var(--accent) 30%, transparent); }
.app[data-layout="wide"] .ctl { min-height: 38px; }
.pomo { border-radius: var(--radius); padding: 10px 12px; background: var(--chip); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
/* 封印(1周目)= 見出しの鍵の印と ② だけで見せる。ふちは点線にしない(点線は「次」だけ。台帳33回目 B #6 ②) */
.pomo.sealed { background: transparent; }
.pomohead { display: flex; align-items: center; gap: 6px; }
.pomotoggle { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 4px 0; font-weight: 750; font-size: 14px; min-height: 32px; }
.pomo.sealed .pomotoggle { color: inherit; } /* 35回目: 鍵のときも 開く/たたむ は押せる(うすい字にしない。鍵は印で見せる) */
.sealmark { font-size: 13px; color: var(--muted); font-weight: 700; } /* 34回目: ② から「1分」(ノルマの語)の字に。見出しより目立たない大きさ */
.pomomini { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pomobody { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.phase { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 750; padding: 2px 9px; border-radius: 999px; background: var(--chip); }
.phase.focus { background: var(--accent-soft); color: var(--accent); }
.pomoclock { font: 850 30px/1 var(--font); font-variant-numeric: tabular-nums; }
.pomoclock.stopped { color: var(--muted); }
.pomobar { height: 7px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.pomobar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.rounds { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.rounds .dot { font-size: 12px; }
.controls.two .ctl { min-height: 36px; }
/* 35回目: スタート ⇄ 一時停止 は上の段いっぱい・下に 休憩へ・リセット(375 幅でも字を折らない) */
.controls.three .ctl { min-height: 36px; }
.controls.three .ctl:first-child { grid-column: 1 / -1; }
.sealnote { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; font-weight: 650; }

/* 年表(今日のタスク運用) */
.timeline { display: flex; flex-direction: column; gap: 2px; }
.pasthead { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; border: 0; background: var(--chip); color: var(--muted); font-weight: 650; font-size: 13px; width: 100%; }
.nowline { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.nowpill { background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 12.5px; padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.nowrule { flex: 1; height: 2px; background: var(--accent); }
.oprow { display: flex; align-items: flex-start; gap: 8px; padding: 5px 6px; border-radius: 9px; }
.oprow.ahead { padding-inline-start: 10px; }
.oprow.running { background: var(--accent-soft); box-shadow: inset 0 0 0 1.8px var(--accent); }
.oprow .run { width: 26px; height: 26px; }
.oprow .body { flex: 1; min-width: 0; }
.oprow .title { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oprow.past .title { color: var(--muted); }
.oprow .sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.oprow .sub.strong { color: var(--accent); font-weight: 700; }
.timecol { width: 5.6em; white-space: nowrap; text-align: end; font-weight: 750; font-size: 13px; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; flex: none; line-height: 1.25; }
.timecol.planned { color: var(--muted); }
.timecol.running { color: var(--accent); }
.tc-sub { font-size: 11px; font-weight: 600; color: var(--muted); }
.kind { width: 18px; flex: none; color: var(--muted); padding-top: 1px; }
.again { width: 30px; height: 30px; border-radius: 50%; border: 1.6px solid var(--accent); color: var(--accent); background: transparent; display: grid; place-items: center; flex: none; padding: 0; }
.timeline.big .oprow .title { font-size: 15px; }
.timeline.big .timecol { font-size: 14.5px; }

/* MARK: 近日予定(今日・明日・あさって + 大きな「日を選ぶ」) */
.daycard { background: var(--chip); border-radius: var(--radius); padding: 10px 6px 8px; margin: 8px 0 12px; }
.dayhead { display: flex; align-items: center; gap: 10px; padding: 0 8px 6px; flex-wrap: wrap; }
.dayword { font-size: 17px; font-weight: 800; }
.dayhead .sub { color: var(--muted); font-size: 13.5px; }
.addday { width: 34px; height: 34px; border-radius: 50%; border: 1.3px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; padding: 0; }
.app[data-layout="narrow"] .addday { width: 44px; height: 44px; }
.dayadd { display: flex; align-items: center; gap: 8px; margin: 2px 8px 8px; background: var(--surface); border: 2px solid var(--accent); border-radius: 12px; padding: 3px 8px; }
.none { color: var(--faint); padding: 2px 16px 6px; }
.gauge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gauge .bar { width: 86px; height: 8px; border-radius: 999px; background: var(--chip); overflow: hidden; display: inline-block; }
.gauge .bar span { display: block; height: 100%; background: var(--accent); }
.gauge.over .bar span { background: var(--ink); }
.gauge.over { color: var(--ink); font-weight: 700; }
.picker { margin: 12px 0 24px; border-radius: 18px; border: 2px solid var(--accent-line); padding: 14px 12px 16px; background: var(--surface); box-shadow: var(--shadow); }
.pickhead { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; }
.pickhead .ic { color: var(--accent); }
.picktitle { font-size: 19px; font-weight: 800; }
.monthname { font-size: 17px; font-weight: 800; min-width: 7.5em; text-align: center; }
.pickhead.small { justify-content: center; padding-top: 10px; }
.cal { display: flex; flex-direction: column; gap: 6px; }
.calrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calwd { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.calday { min-height: 72px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 6px 2px; gap: 2px; }
.calday:hover:not(:disabled) { border-color: var(--accent); }
.calday .num { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.calday .dots { font-size: 11px; letter-spacing: 1px; color: var(--accent); min-height: 14px; }
.calday.out { opacity: 0.45; }
.calday.past { opacity: 0.3; }
/* 11-04 色の点検 C-4: うすさだけにしない。過ぎた日 = 数字に打ち消し線 / 今月以外 = 数字を小さい斜体に */
.calday.past .num, .calday:disabled .num { text-decoration: line-through; } /* 日付の板のカレンダー(view.js setDate)は past の印が無く disabled だけ */
.calday.out .num { font-size: 15px; font-style: italic; font-weight: 600; }
.calday.today { border: 2.5px solid var(--ink); }
.calday.today .num::after { content: "•"; display: block; font-size: 10px; line-height: 0.6; text-align: center; }
.calday.picked { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.calday.picked .dots { color: var(--on-accent); }
.calday.over .dots { color: var(--ink); }
.calday.picked.over .dots { color: var(--on-accent); }
.cal.small .calday { min-height: 44px; }
.cal.small .calday .num { font-size: 16px; }
.pickedday { margin-top: 12px; }
.pickedday .daycard { margin: 0; background: var(--chip); }
.app[data-layout="narrow"] .calday { min-height: 58px; border-radius: 10px; }
.app[data-layout="narrow"] .calrow { gap: 4px; }
.app[data-layout="narrow"] .calday .num { font-size: 18px; }

/* MARK: 下の帯(計測中)と、下のタブ(せまい形) */
.runbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border-top: 2px solid var(--accent); box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08); }
.runbar .run { width: 44px; height: 44px; }
.rb-body { flex: 1; min-width: 0; }
.rb-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.rb-title > span:not(.lap):not(.count) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-clock { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.rb-clock b { font-size: 22px; font-weight: 850; color: var(--accent); }
.rb-clock span { font-size: 12px; color: var(--muted); }
.runbar .ctl { min-height: 44px; padding: 0 14px; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--side); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tab { min-height: 56px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 650; color: var(--muted); padding: 4px 2px; }
.tab[aria-current="page"] { color: var(--accent); font-weight: 800; box-shadow: inset 0 3px 0 var(--accent); }
.cardlist { background: var(--chip); border-radius: var(--radius); padding: 6px; margin: 8px 0; }
.cardlist:empty { display: none; } /* 係 R2c(E5-04): 中身の無い段(大目標の外のプロジェクトが無いとき)は、箱も出さない */
/* 係 b_look(B目 #4・10-18): 下の帯の「+1」= ほかにも計測中。押すと帯がそのタスクに切りかわる(前は押しても何も起きない字だった)。
   見た目は小さい札のまま(帯を高くしない)、押せる所だけ見えない ふちで 44px ほどに広げる(.run::after と同じ形) */
.runbar .rbswitch { position: relative; flex: none; border: 1px solid var(--accent-line); min-height: 26px; min-width: 34px; padding: 0 8px; font-size: 13px; color: var(--accent); cursor: pointer; }
.runbar .rbswitch::after { content: ''; position: absolute; inset: -9px -5px; }
/* 係 b_look(点検 △4・10-18): 読み上げだけの字(見えない・場所を取らない)。行の ‖ の札の「一時停止中」など */
.srtext { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 係 b_look(点検 △5・10-18): 下の帯で止めたタスク = 時計の横に「‖ 一時停止中」(形+ことば。帯の高さは変えない) */
.runbar .rb-state { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; min-width: 0; overflow: hidden; }
/* B(10-18・A の確かめ係 V4 の △): 幅 375 で止めると「一時停止中」の右はし 19px が「終了して次へ」の下に隠れた(時計の行が帯の真ん中の幅をこえて、はみ出しを止める決まりが無かった)。
   → 時計の行は真ん中の幅の中で切る・時計の数字は縮めない・字は入りきらないとき「…」(隠れるより読める)。狭い形では すき間・ボタンの横の余白・時計の字を少し小さく(帯の高さは変えない) */
.rb-clock { min-width: 0; overflow: hidden; }
.rb-clock b { flex: none; }
.runbar .rb-state .rb-statew { overflow: hidden; text-overflow: ellipsis; }
.app[data-layout="narrow"] .runbar { gap: 8px; }
.app[data-layout="narrow"] .runbar .ctl { padding: 0 10px; }
.app[data-layout="narrow"] .rb-clock b { font-size: 20px; }
/* B(10-18・A の指摘): 狭い形では「一時停止中」が入りきらず「‖ 一時停…」と切れた = 持ち主の好み 型8(全文が切れて見えないのを嫌う)。
   → 狭い形の帯では字を出さず ‖ の印だけ(型11 文字より記号。行の ‖ の札と同じ形)。字は読み上げだけに残す(.srtext と同じ消し方)。持ち主に聞いている問4 と同じ形 */
.app[data-layout="narrow"] .runbar .rb-state .rb-statew { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 係 b_look(B目 #5・10-18。点検 ✕1 で今日の画面だけに): せまい形では、上に止まる固まり(見出し+入れる欄)を小さくして、一覧の見える高さを広げる。
   前は 375×740 で 上の固まりが 312px まで・一覧の見える高さ 289px(39%)。見出しを1段にまとめるのは今日の画面だけ(#head の data-screen="today"。
   ほかの画面の道具 = 大目標の「見直し」・地図の「4週」「ほかの地図 ▾」・プロジェクトの道具 は前のまま折り返す)。今日の数の札は横に送って見る
   (送れる側の端はうすくなり、右にまだあるときは › の印 = #head の data-more。acts_look.js の markHead)。画面の名前と日付は縮めて「…」で切る。
   入れる欄は ふちと すき間を細く(どの画面も)。入れる欄の中身・見出しの札の中身は変えない(CSS だけ) */
.app[data-layout="narrow"] .centerhead[data-screen="today"] { position: relative; padding: 6px 12px 4px; gap: 4px 8px; flex-wrap: nowrap; }
.app[data-layout="narrow"] .centerhead[data-screen="today"] h1 { font-size: 19px; gap: 6px; flex: 0 1 auto; min-width: 0; }
.app[data-layout="narrow"] .centerhead[data-screen="today"] h1 .ic { width: 20px; height: 20px; flex: none; }
.app[data-layout="narrow"] .centerhead[data-screen="today"] h1 span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app[data-layout="narrow"] .centerhead[data-screen="today"] .sub { font-size: 12.5px; flex: 0 2 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app[data-layout="narrow"] .centerhead[data-screen="today"] .stats { flex: 1 1 45%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-inline-start:2px; }
.app[data-layout="narrow"] .centerhead[data-screen="today"] .stats::-webkit-scrollbar { display: none; }
.app[data-layout="narrow"] .centerhead[data-screen="today"] .stats > * { flex: none; }
.app[data-layout="narrow"] .centerhead[data-screen="today"] .stat { padding: 3px 9px; font-size: 13px; }
.app[data-layout="narrow"] .centerhead[data-screen="today"][data-more="right"] .stats { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); }
.app[data-layout="narrow"] .centerhead[data-screen="today"][data-more="left"] .stats { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent); }
.app[data-layout="narrow"] .centerhead[data-screen="today"][data-more="left right"] .stats { -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 34px), transparent); }
.app[data-layout="narrow"] .centerhead[data-screen="today"][data-more~="right"]::after { content: '›'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 800; line-height: 1; color: var(--muted); pointer-events: none; }
.app[data-layout="narrow"] .addbar { margin: 0 10px 6px; padding: 2px 6px 2px 8px; gap: 8px; }
.app[data-layout="narrow"] .addbar textarea { min-height: 32px; padding: 5px 0; }

/* 入れる欄がせまいとき(10-28。昼は電話の幅だけ → N5 で どの形でも): 390 の幅で入れる欄が 156px に縮み、「インボックスに入れる」(10字 = 160px)の
   「る」が下に折り返して隠れていた(0.20.4-web から)。広い形の 1000〜1015px(左右の枠を両方出す)でも、同じく2行に折れて「れる」が隠れていた。
   くり返しのボタンは、選んでいないとき印だけにする(字は title と読み上げに残る)。選んだときは「平日」などの字を出す。
   曜日をいくつも選ぶと字が長くなる(「月 ・ 水 ・ 木 ・ 金 ・ 土」= 193px。375 の幅で書く所が 48px まで縮んだ = 10-28 M3)ので、
   選んだときのボタンは 80px まで(「平日」「毎日」の 77px は そのまま)にして、はみ出す字は「…」で切る(字の全部は title と読み上げに残る)。
   375 の幅で 書く所 = 241 − 80 = 161px(「インボックスに入れる」の 160px が入る)・390 で 176px。
   せまいかどうかは、画面の幅でなく 入れる欄そのものの幅で決める(@container)。線 = 欄の中の幅 370px(字を出しても、書く所が 176px 以上 = 薄い字に 16px の余裕)。
   @container が効かないブラウザ(Safari 15・Chrome 104 まで)は、前と同じく せまい形だけ印にする(@supports not の所)。
   薄い字は1行にする(折れて下の段が半分見えるより、はしで切れるほうが読める)。… で切る指定も書いてあるが、Chrome の textarea の薄い字には効かない
   (… は出ず、はしで切れるだけ。10-28 N4 で 320 の幅で見た) */
.addbar { container-type: inline-size; }
@container (width < 370px) {
  .addbar .addrepeatbtn:not(.on) > span { display: none; }
  .addbar .addrepeatbtn:not(.on) { padding: 0; min-width: var(--tap); justify-content: center; }
  .addbar .addrepeatbtn.on { max-width: 80px; }
  .addbar .addrepeatbtn.on > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@supports not (container-type: inline-size) {
  .app[data-layout="narrow"] .addrepeatbtn:not(.on) > span { display: none; }
  .app[data-layout="narrow"] .addrepeatbtn:not(.on) { padding: 0; min-width: var(--tap); justify-content: center; }
  .app[data-layout="narrow"] .addrepeatbtn.on { max-width: 80px; }
  .app[data-layout="narrow"] .addrepeatbtn.on > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
.addbar textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* MARK: 地図(大目標から1分まで。0.18-web = Mac の台帳27回目 地図の動線 第5版)
   状態は形とことばで(色だけで分けない §H): 大目標 = 線の山 / 達成 = 塗りの山+「達成」/ しまう = 箱+「しまう」+ 点線の枠。
   道しるべ = 済み ✓ / いま ➜(大きく太く)/ とばした − / このあと ①②③④。枠は付けない(押せる物・タブに見えないように。0.18.1-web)。
   光る(次にやること)= 主の色の塗り+頭の「➜」+ ▶ の形。ほかは ふちだけ。今週の価値観 = 「今週」の字+太い ふち(✓ は使わない)。
   今週の時間 = 数と ■□。4週の航跡 = 「4週」+ ■□。つながっていない時間 = 点線の枠(大目標のカードと形でちがう) */
.gtrail, .gtime { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gcap { font-size: 11px; font-weight: 700; }
.sq { letter-spacing: 1px; font-size: 11px; line-height: 1; }
.gtime b { min-width: 4.8em; text-align: end; font-weight: 650; }
.unlinked { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 650; padding: 8px 12px; margin: 12px 0; border: 1.5px dashed var(--line); border-radius: 10px; }
.fnum { font-weight: 800; }
/* 順番の道しるべ(準備の段 ① ② ③ のときだけ出る。字と記号だけ。丸い枠・地の色を付けない = タブに見えないように) */
.fguide { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 2px 4px; margin: 2px 0 12px; }
.fstep { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--muted); }
.fstep .fmark { font-weight: 800; font-size: 12.5px; }
.fstep.current { color: var(--ink); font-weight: 800; }
.fstep.current .fmark { color: var(--accent); font-size: 15px; }
.farrow { display: inline-flex; color: var(--muted); }
/* 光る一手のボタンの字の頭の「➜」(道しるべの「➜ いま」とつなぐ) */
.flead { font-weight: 900; margin-inline-end: 1px; }
/* 選ぶ一覧(透明の select を、見える形の上に重ねる。押した所が、そのまま select になる) */
.fsel { position: relative; display: inline-flex; align-items: center; }
.fsel select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; -webkit-appearance: none; appearance: none; border: 0; padding: 0; margin: 0; }
.fsel:focus-within { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.fselface { display: inline-flex; align-items: center; gap: 5px; pointer-events: none; min-width: 0; }
/* 価値観の帯(大目標のカードの下。1文の説明・[直す]・見るだけの札。0 のときはボタン1つ) */
.fvalues { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.fvalues.none { border: 0; padding: 0; }
.fvhead { display: flex; align-items: flex-start; gap: 8px; }
.fvhead > .ic { color: var(--muted); flex: none; margin-top: 2px; }
.fvnote { flex: 1; min-width: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.fvhead > .chipbtn { flex: none; }
.fvchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* 見るだけの札(押せる物の塗りを付けない)。今週の1つ = 「今週」の字+太い ふち */
.fvchip { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 12.5px; font-weight: 650; cursor: default; }
.fvchip.week { border: 2px solid var(--accent); font-weight: 800; }
.fvchip b { font-size: 11px; }
/* 大目標のカード */
.fcard { background: var(--chip); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.fcard.archived { background: transparent; border: 1.5px dashed var(--faint); }
.fchead { display: flex; align-items: flex-start; gap: 12px; }
.fcmark { flex: none; display: inline-flex; color: var(--accent); padding-top: 2px; }
.fcard.archived .fcmark { color: var(--muted); }
.fcmain { flex: 1; min-width: 0; }
/* 頭: ⛰ 呼び名か全文(改行・空行もそのまま。折り返す・縮めない・切らない)+「全文 ▸ / たたむ ▴」 */
.fctitle { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.fcname { margin: 0; flex: 0 1 auto; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 750; font-size: 16.5px; line-height: 1.6; }
.fctoggle { flex: none; display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; min-height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); color: var(--muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.fctoggle:hover { color: var(--ink); background: var(--hover); }
.fcfull { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 650; font-size: 15px; line-height: 1.6; }
.fctools { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.fcbtns { display: flex; align-items: center; gap: 4px; }
.fcmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.fcinfo { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; }
.fcstatus { box-shadow: inset 0 0 0 1px var(--faint); }
.fvlink { min-height: 26px; padding: 0 9px; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); }
.fvlink:hover { color: var(--ink); background: var(--hover); }
.fcrows { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 6px; display: flex; flex-direction: column; gap: 2px; }
/* プロジェクトの1行 */
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 5px 6px 5px calc(6px + var(--depth, 0) * 18px); border-radius: 9px; min-width: 0; }
.frow:hover { background: var(--hover); }
.frname { display: inline-flex; align-items: center; gap: 6px; max-width: 15em; min-width: 0; padding: 3px 4px; border: 0; background: transparent; border-radius: 6px; font-weight: 700; font-size: 14px; text-align: start; }
.frname > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frname > .ic { color: var(--muted); }
.frname:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.frarrow { display: inline-flex; color: var(--muted); }
.frtask { flex: 1 1 9em; min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.frtask > .ic { color: var(--muted); flex: none; }
.frtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.frmore { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.frnone { flex: 1 1 9em; color: var(--muted); font-size: 13px; }
.frtools { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-inline-start:auto; }
/* 押すボタン(ふちだけ)。光る1つ = 主の色の塗り(primary) */
.flowbtn { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; white-space: nowrap; flex: none; }
.flowbtn:hover { background: var(--hover); }
.flowbtn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 1.5px 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.flowbtn.primary:hover { filter: brightness(1.06); background: var(--accent); }
.ftoday { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 999px; }
/* 行の右はしの小さな ＋(タスクがあっても いつも出す。タスクをいくつも書ける) */
.fplus { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: var(--chip); color: var(--muted); }
.fplus:hover, .fplus[aria-expanded="true"] { color: var(--ink); background: var(--hover); }
/* 行の ＋ の欄(タスクのある行では、行の下に開く) */
.frfield { flex: 1 1 100%; display: flex; padding: 2px 0; }
/* ② 分ける案内・＋ プロジェクト・その場に書く欄(主の色の地と ふちは、光るカードのときだけ) */
.fsplit { margin-top: 12px; padding: 12px; border-radius: 10px; background: transparent; border: 1px dashed var(--line); }
.fsplit.lit { background: var(--accent-soft); border: 1.4px dashed var(--accent-line); }
.fsplithead { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.fsplitnote { margin: 4px 0 10px; color: var(--muted); font-size: 12.5px; }
.fcadd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ffield { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 260px; min-width: 0; background: var(--surface); border: 2px solid var(--accent); border-radius: 10px; padding: 2px 4px 2px 8px; }
.ffield > .ic { color: var(--accent); }
.ffield input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; padding: 6px 0; }
/* まだ大目標に入っていないプロジェクト */
.fband { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.fbhead { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.fbhead .count { margin-inline-start:2px; }
/* 点検 R2 △13: 説明の文(.fbnote)は見出しの吹き出しへ移した。見出しと札のあいだは ここで空ける */
.fband .fbchips { margin-top: 8px; }
.fbchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fbchip .fselface > .ic:last-child, .fbchip > .ic:last-child { color: var(--accent); }
.fbchip .count { margin-inline-start:0; }
/* 大目標を書く欄(何行でも)・はじめての人の案内 */
.fadd { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; margin: 0 0 12px; border-radius: 14px; background: var(--accent-soft); border: 1.4px solid var(--accent-line); }
.faddhead { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.faddhead > .ic { color: var(--accent); }
.fadd.first .faddhead { font-size: 16.5px; }
.faddnote { margin: 0; color: var(--muted); font-size: 12.5px; }
.faddtext { width: 100%; min-height: 120px; max-height: 320px; resize: vertical; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); padding: 10px 12px; font-size: 16px; line-height: 1.6; }
.faddtext:focus { border-color: var(--accent); outline: none; }
.faddfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* 呼び名(1行・なくてもよい) */
.faddshortrow { flex: 1 1 220px; display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); }
.faddshort { flex: 1; min-width: 0; max-width: 320px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); padding: 7px 10px; font-size: 16px; color: var(--ink); }
.faddshort:focus { border-color: var(--accent); outline: none; }
.faddfoot > .btn { margin-inline-start:auto; }
.fnext { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; margin: 0 0 12px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); }
.fnrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13.5px; }
.fnrow > .ic { align-self: center; }
.fnrow span { font-size: 12.5px; }
/* せまい形: カードの道具は名前の下へ・プロジェクトの1行は2段(名前 / 次のタスクと ▶) */
.app[data-layout="narrow"] .fchead { flex-wrap: wrap; }
.app[data-layout="narrow"] .fctools { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
.app[data-layout="narrow"] .frname { flex: 1 1 100%; max-width: 100%; }
.app[data-layout="narrow"] .frarrow { display: none; }
.app[data-layout="narrow"] .flowbtn, .app[data-layout="narrow"] .ftoday { min-height: var(--tap); }
.app[data-layout="narrow"] .ftoday { width: var(--tap); height: var(--tap); }
/* せまい形(指で押す): 行の ＋・カードの頭の「全文 ▸ / たたむ ▴」も押しやすい大きさに */
.app[data-layout="narrow"] .fplus { width: var(--tap); height: var(--tap); }
.app[data-layout="narrow"] .fctoggle { min-height: 32px; padding: 0 12px; }
/* 左の枠: 大目標の段(止めて置く札・見出し ＋・大目標の行) */
.goalpin { padding: 10px 10px 2px; flex: none; }
/* 札: 押すと地図へ。中を動かせるように button でなく role="button" の箱。高さが窓の約45%をこえたときだけ、札の中を動かす */
.gpin { width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--accent-soft); text-align: start; cursor: pointer; }
.gpin:hover { background: var(--hover); }
.gpin:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.gpin > .ic { color: var(--accent); margin-top: 2px; flex: none; }
.gpinbox { flex: 1; min-width: 0; max-height: 45vh; overflow-y: auto; }
/* 全文(改行・空行もそのまま。はみ出す行は折り返す。字は縮めない) */
.gpintext { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 700; font-size: 13.5px; line-height: 1.5; }
.gpinmore { display: flex; align-items: center; gap: 4px; margin: 4px 2px 0; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.gpinmore[hidden] { display: none; }
/* C149: 大目標をしまう(外出用)の目のボタン(札の右はし)と、しまっている間の帯(押すと出る) */
.gpineye { flex: none; min-width: 36px; min-height: 36px; margin: -8px -8px -8px 0; border: 0; border-radius: 50%; background: none; color: var(--accent); display: inline-grid; place-items: center; cursor: pointer; }
.gpineye:hover { background: var(--hover); }
.gpineye:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 1px; }
.gpin.gpinhid { align-items: center; color: inherit; font: inherit; border-style: dashed; }
.gpin.gpinhid .gpintext { font-weight: 600; opacity: .85; }
.list > .gpin { margin: 6px 0 4px; }
.list > .gpin .gpinbox { max-height: none; }
.gnavhead { display: flex; align-items: center; gap: 6px; }
.gnavadd { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; padding: 0; }
.gnavadd:hover { background: var(--accent); color: var(--on-accent); }
/* 「マイ プロジェクト(大目標の外)」の見出し + ＋(第22周): 見出しは左・＋は右の端。見出しの字の高さは前のまま */
.navheadrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding-inline-end: 6px; }
.navheadrow .navhead { padding-bottom: 4px; }
.gnavrow .navitem .ic { color: var(--accent); }
.gempty { color: var(--muted); font-size: 13.5px; }
.gempty .navlabel { white-space: normal; }
/* 閉ループ 輪2 R2d(D15「大目標は、どこでも全文を、切らず縮めずに」): 大目標の行・地図の「時間0」は 呼び名(あれば)+ 全文(改行・空行のまま折り返す) */
.gfullrow .navitem { align-items: flex-start; }
.gfullrow .navitem > .ic { margin-top: 2px; }
.gfullrow .navlabel { white-space: normal; overflow: visible; text-overflow: clip; }
.gfullbox { display: block; }
.gfullbox .gshort { display: block; font-weight: 800; }
.gfullbox .gfulltext { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 650; }
.gfullbox .gfulltext.sub { color: var(--muted); font-weight: 600; }
/* 閉ループ 輪2 R2d(E4-18): つないだ・見に行った行を、少しの間 太い枠と「ここ」の札で光らせる(色だけに頼らない) */
.row.reveal { outline: 2.5px solid var(--accent); outline-offset: -2px; border-radius: 8px; position: relative; }
.row .revealtag { position: absolute; top: 3px; inset-inline-end: 8px; font-size: 11px; font-weight: 800; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 0 7px; pointer-events: none; }
.toast .toastgo { margin: 4px 0 4px 6px; border: 1.5px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 2px 10px; font-weight: 800; cursor: pointer; }
/* 係 w_undo: 知らせの「↶ 取り消す」(形 = 戻る矢印 + 字・実線の枠。色だけに頼らない)。指で押す機械(iPhone・iPad)は押す所を 44px に */
.toast .toastundo { min-height: 32px; }
@media (pointer: coarse) { .toast .toastundo { min-height: 44px; min-width: 44px; padding: 6px 14px; } }
/* 10-28 N6: 「→ 見に行く」と「↶ 取り消す」が2段に折れたとき、上下が すき間 0px でくっついていた → ボタンの上下に 4px(2段なら 8px あく)。
   指で押す機械では「→ 見に行く」も 44px に(前は 28px。知らせは .app の外なので --tap でなく 44px と書く = 指の機械の --tap と同じ数) */
@media (pointer: coarse) { .toast .toastgo { min-height: 44px; min-width: 44px; } }
.gempty .ic { color: var(--accent); }

/* MARK: 大目標の板(項目は Mac の GoalBoardOverlay と同じ) */
dialog[data-kind="goal"] { width: min(94vw, 620px); }
.goalboard h2:focus { outline: none; }
.goalboard .run { width: 30px; height: 30px; margin-top: 0; }
/* 名前は何行でも(アフォメーション。0.18-web から textarea) */
.goalboard .gbname { display: block; width: 100%; font-size: 19px; font-weight: 750; line-height: 1.5; border: 1.5px solid transparent; border-radius: 10px; background: var(--chip); padding: 10px 12px; margin: 10px 0 4px; resize: vertical; max-height: 60vh; }
.goalboard .gbname:focus { border-color: var(--accent); outline: none; }
.gbfield { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 6px 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.gblabel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--muted); min-height: var(--tap); }
.gbbody { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.gbbody > input[type="text"] { flex: 1 1 100%; min-width: 0; }
.goalboard input[type="text"], .goalboard input[type="date"], .goalboard select { min-height: var(--tap); border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 10px; font-size: 15px; max-width: 100%; }
.goalboard input:focus, .goalboard select:focus { border-color: var(--accent); outline: none; }
.goalboard select { flex: 1 1 12em; }
.gbinline { display: inline-flex; align-items: center; gap: 4px; flex: 1 1 12em; min-width: 0; }
.gbinline.wide { flex-basis: 100%; }
.gbinline > .ic { color: var(--accent); flex: none; }
.gbinline input[type="text"] { flex: 1; min-width: 0; }
.gbnote { margin: 0; font-size: 12px; }
.vchip { min-height: 32px; padding: 2px 12px; }
@media (max-width: 520px) {
  .gbfield { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gblabel { min-height: 0; }
}

/* MARK: 週の決め直しの板(項目は Mac の WeekBoard と同じ)・価値観の板(Mac の ValuesOverlay と同じ)。0.17.2-web
   状態は形とことばで: 今日 = 太い枠+太字 / 入りきらない日 = ! の丸 / 選んだもの = ✓ と太い枠 / 置いた一歩 = 👣(足あと)+ 日のことば /
   見直しの合図 = 照準の形。色だけで分けない(§H)。せまい形(〜699px)・指で押す機械では、板の中の押す所を 44px 以上に */
dialog[data-kind="week"] { width: min(96vw, 760px); max-height: min(92dvh, 940px); overflow: auto; }
dialog[data-kind="values"] { width: min(94vw, 640px); max-height: min(90dvh, 820px); overflow: auto; }
.bhead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; margin: -16px -16px 4px; padding: 12px 10px 6px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.bhead h2 { margin: 0; }
.bhead h2:focus { outline: none; }
.bhead h2 .ic { color: var(--accent); }
.wbsec { background: var(--chip); border-radius: 12px; padding: 10px 12px 12px; margin: 10px 0; }
.wbsec h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 750; display: flex; align-items: center; gap: 7px; }
.wbsec h3 .ic { color: var(--accent); }
.wbdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.wbday { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.wbday.today { border: 2.5px solid var(--accent); }
.wbday.today .wbwd { font-weight: 800; }
.wbwd { font-size: 12px; font-weight: 600; }
.wbnum { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wbbar { width: 22px; height: 44px; border-radius: 4px; background: var(--chip); display: flex; align-items: flex-end; overflow: hidden; }
.wbbar > span { display: block; width: 100%; background: var(--accent); border-radius: 4px; }
.wbday.over .wbbar > span { background: var(--ink); opacity: 0.7; }
.wbload { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wbover { display: inline-flex; color: var(--ink); }
.wbstats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wbstats .stat { background: var(--surface); }
.wbgoal { display: flex; align-items: center; gap: 8px; padding: 4px 2px; min-width: 0; }
.wbgoal > .ic { color: var(--accent); flex: none; }
.wbname { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wbsecs { min-width: 4.8em; text-align: end; font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; }
.wbtarget { margin-bottom: 4px; }
.wbstep { background: var(--surface); border-radius: 10px; padding: 8px 10px; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.wbstephead { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.wbstephead > .ic { color: var(--muted); flex: none; }
.wbstephead > .ic:first-child { color: var(--accent); }
.wbsteptitle { font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.wbplaced { white-space: normal; }
.wbstepfield, .wbtime, .wbafter { min-height: var(--tap); border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 10px; font-size: 16px; max-width: 100%; }
.wbstepfield { flex: 1 1 14em; min-width: 0; }
.wbafter { flex: 1 1 12em; min-width: 0; }
.wbstepfield:focus, .wbtime:focus, .wbafter:focus { border-color: var(--accent); outline: none; }
.wbplacer { display: flex; flex-direction: column; gap: 8px; }
.wbdaypick { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tap), 1fr)); gap: 4px; }
.wbdaybtn { min-height: var(--tap); border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 13.5px; padding: 0; }
.wbdaybtn[aria-pressed="true"] { border: 2.5px solid var(--accent); background: var(--accent-soft); font-weight: 800; }
.wbcuerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 閉ループ 輪2 係 R2e: 「置く」が押せないときだけ、わけを字で(押せるときは出さない) */
.wbwhy { color: var(--muted); font-size: 12.5px; }
.wbwhy[hidden] { display: none; }
.wbcue { gap: 4px; flex-wrap: nowrap; }
.wbcue .choice { padding: 4px 10px; min-width: var(--tap); }
.wbroutine { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 2px 0; color: var(--muted); }
.wbroutinelabel { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.wbroutinedays { display: flex; flex-wrap: wrap; gap: 6px; }
.wbroutinedays .chipbtn { min-width: var(--tap); justify-content: center; }
.reviewmark { display: inline-flex; color: var(--accent); flex: none; }
.vbnote { margin: 6px 0 10px; font-size: 12.5px; }
.vbrow { display: grid; grid-template-columns: auto minmax(7em, 0.8fr) minmax(8em, 1.2fr) auto; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.vbmark { display: inline-flex; color: var(--accent); }
.vbrow input { min-height: var(--tap); border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 10px; font-size: 16px; min-width: 0; width: 100%; }
.vbrow input:focus { border-color: var(--accent); outline: none; }
.vbtools { display: inline-flex; gap: 2px; align-items: center; justify-content: flex-end; }
.vbadd { border-bottom: 0; }
.vbaddbtn { padding: 0 14px; }
.vbarchived { grid-template-columns: auto minmax(0, 1fr) auto; }
.vbarchived .vbmark { color: var(--muted); }
.vbtext { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .vbrow { grid-template-columns: auto minmax(0, 1fr); }
  .vbrow .vbline, .vbrow .vbtools { grid-column: 2; }
  .vbarchived { grid-template-columns: auto minmax(0, 1fr) auto; }
  .vbarchived .vbtools { grid-column: auto; }
}
/* 板は .app の外にあるので、押す所の大きさ(--tap)は ここで決める */
@media (max-width: 699.98px), (pointer: coarse) {
  dialog { --tap: 44px; }
  dialog .vchip, dialog .section.foldable { min-height: var(--tap); }
}
/* せまい形: 週の板・価値観の板は画面いっぱい(曜日のボタン7つを 44px 以上で1列に並べるため) */
@media (max-width: 699.98px) {
  dialog[data-kind="week"], dialog[data-kind="values"] { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  dialog[data-kind="week"] .dlg, dialog[data-kind="values"] .dlg { padding: 16px 8px max(16px, env(safe-area-inset-bottom)); }
  dialog[data-kind="week"] .bhead, dialog[data-kind="values"] .bhead { margin: -16px -8px 4px; padding: max(10px, env(safe-area-inset-top)) 4px 6px 10px; }
  /* 曜日のボタン7つ(44px)を、幅 360px の電話でも1列に: 44×7 + 2×6 = 320 */
  .wbsec { padding: 10px 4px 12px; }
  .wbsec h3 { padding-inline-start: 4px; }
  .wbstep { padding: 8px 6px; }
  .wbdaypick { gap: 2px; }
  .wbday { padding: 5px 1px; }
}

/* MARK: タスクの詳しく見る板(B33 #7・係 b_w7。Mac の TaskDetailOverlay。見積はここでだけ出す = 台帳8回目)
   働き: 行の指の形(cursor)= 押すと1回で見積と実測に届く(台帳11回目)/見積の横の語 = 実測が次の計画へ戻る道を ことばで見せる(台帳5回目)/
   重要度・緊急度 = ★ と ! の数・選んだものは太い枠と太字(色だけで分けない §H)。せまい画面(375px)でも はみ出さない */
.row[data-id] { cursor: pointer; }
.oprow .body[data-act="detail"] { cursor: pointer; } /* 今日のタスク運用の行の題名も、押すと詳しく見る(10-28 点検 E4) */
.row .body[role="button"]:focus-visible, .oprow .body[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
dialog[data-kind="task"] { width: min(94vw, 600px); max-height: min(92dvh, 900px); overflow: auto; overscroll-behavior: contain; }
.taskboard textarea, .taskboard input { font-family: inherit; color: inherit; box-sizing: border-box; }
.taskboard .tdname { display: block; width: 100%; font-size: 18px; font-weight: 700; line-height: 1.45; border: 1.5px solid transparent; border-radius: 10px; background: var(--chip); padding: 10px 12px; margin: 10px 0 4px; resize: none; overflow-wrap: anywhere; }
.taskboard .tdname:focus, .taskboard .tdnote:focus, .taskboard .tdmins input:focus { border-color: var(--accent); outline: none; }
.tdglyph { display: inline-grid; place-items: center; width: 16px; font-weight: 800; font-size: 14px; }
.tdmins { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.tdmins .iconbtn { border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.tdmins input { width: 4.6em; min-height: var(--tap); border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 6px; font-size: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.tdmins .unit { color: var(--muted); font-size: 13px; }
.tdsource { margin: 0; }
.tdroutine { flex-basis: 100%; flex-wrap: wrap; margin: 2px 0 0; font-size: 12.5px; }
.tdactual { font-variant-numeric: tabular-nums; font-weight: 600; }
.taskboard .choices { gap: 6px; }
.taskboard .choice { min-width: var(--tap); padding: 4px 10px; }
.tdnotelabel { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--muted); margin: 12px 0 6px; }
.taskboard .tdnote { display: block; width: 100%; min-height: 6.5em; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); padding: 8px 10px; font-size: 16px; line-height: 1.5; resize: vertical; }
/* 日付と時刻(B目 ✕1・係 b_time)。欄は見積の欄と同じ箱(打てる所 = ふちのある箱)・選んでいる札は .choice の太い枠と太字(色だけで分けない)。
   予定の小さな絵: 並ぶときは実線の枠、並ばないときは点線の枠・うすく・「--:--」(Mac の ScheduledHint と同じ。形で分かれる) */
.taskboard .tdwhen { align-items: center; }
.taskboard .tddate, .taskboard .tdtime { min-height: var(--tap); border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 8px; font-size: 16px; font-variant-numeric: tabular-nums; }
.taskboard .tddate:focus, .taskboard .tdtime:focus { border-color: var(--accent); outline: none; }
/* G-2: 最初の1分の欄(1行。字は 16px = iPhone で開いても画面が拡がらない) */
.taskboard .tdfirst { flex: 1 1 100%; width: 100%; min-width: 0; min-height: var(--tap); border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 10px; font-size: 16px; }
.taskboard .tdfirst:focus { border-color: var(--accent); outline: none; }
.taskboard .tdfirstnote { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
/* キーで来たときは、ほかの所と同じ 2.5px の外枠も(枠の色が変わるだけだと、色の見分けにたよる。日付・時刻・計測の記録の欄。10-28 K8) */
.taskboard .tddate:focus-visible, .taskboard .tdtime:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.tdhint { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 1.5px solid var(--accent-line); background: var(--chip); color: var(--accent); }
.tdhint[data-on="false"] { border-style: dashed; border-color: var(--line); color: var(--muted); opacity: .6; }
.tdhinttime { font-variant-numeric: tabular-nums; }
/* 計測の記録の段(係 w_time 10-28・輪4 E9 ✕3。logeditview.js)。スマホの幅(375〜390px)では「始め [欄]」「→ 終わり [欄]」が折り返す。
   計測中・長い記録は色だけで分けない(絵 + 字。計測中は太い枠の札、長い記録は ⚠ と点線の枠) */
.tdlogs { padding: 10px 0 2px; border-bottom: 1px solid var(--line); }
.tdlogtitle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tdlogtitle .btn { min-height: var(--tap); padding: 0 12px; }
.tdloglist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tdlog { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; min-width: 0; }
.tdlog[data-running="true"] { border-width: 2px; border-color: var(--accent-line); }
.tdloghead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.tdlogmark { display: inline-flex; }
.tdlogday { font-weight: 700; color: var(--ink); }
.tdloglen { font-variant-numeric: tabular-nums; font-weight: 600; }
.tdloglong { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 6px; border: 1.5px dashed currentColor; color: var(--ink); }
.tdlogtimes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; min-width: 0; }
.tdlogt { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; min-width: 0; }
.taskboard .tdlogt .tdtime { min-width: 0; max-width: 100%; }
.tdlogtimes { column-gap: 12px; }
.tdlogarrow { font-weight: 800; color: var(--muted); }
.tdlogrun { color: var(--muted); font-weight: 600; }
.tdlogempty { margin: 6px 0; }

/* MARK: 設定 */
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; }
.group h2 { margin: 0 0 10px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.fieldrow { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 6px 0; justify-content: space-between; }
.fieldrow > span:first-child { font-weight: 600; }
.chimepick { display: inline-flex; align-items: center; gap: 6px; }
.chimepick select:disabled, .chimepick .iconbtn:disabled { opacity: 0.45; }
.fieldrow select { min-height: var(--tap); border-radius: 9px; border: 1px solid var(--line); background: var(--bg); padding: 0 8px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper .stepnum { width: 3em; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 2px; }
.stepper .iconbtn { border: 1px solid var(--line); background: var(--bg); }
.stepper .unit { color: var(--muted); font-size: 13px; margin-inline-start:-3px; }
.bigcode { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; padding: 14px; margin: 8px 0; border-radius: 12px; border: 2.5px solid var(--accent); background: var(--accent-soft); }
.bigcode > div { display: flex; flex-direction: column; }
.bigcode .label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.bigcode b { font-size: 30px; font-weight: 850; }
.signin { display: flex; flex-direction: column; gap: 10px; }
.signin label { display: flex; flex-direction: column; gap: 4px; font-weight: 650; font-size: 13.5px; }
.signin input { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 12px; font-size: 20px; }

/* MARK: 知らせ・板 */
/* 知らせ(10-28 N6・N2): 前は left: 50% + translateX(-50%) で、幅が「右に残った幅 = 画面の半分」で止まっていた(375 の幅で 188px。92vw に届かない)。
   → 左右を 0 にして まん中に寄せ、幅は中身に合わせて 92vw(640px まで)まで使う。空白の無い長い語(URL など)も、知らせの中で折り返す */
.toast { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: min(92vw, 640px); overflow-wrap: anywhere; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 650; font-size: 14px; box-shadow: var(--shadow); z-index: 50; }
.app[data-layout="narrow"] ~ .toast, .app.has-runbar ~ .toast { bottom: calc(132px + env(safe-area-inset-bottom)); }
dialog { border: 0; border-radius: 18px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); width: min(94vw, 460px); }
dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
.dlg { padding: 16px; }
.dlg h2 { margin: 0 0 4px; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.dlgtitle { margin: 0 0 12px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.dlgfoot { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .ring .ring-fg { transition: none; }
  .run:hover { transform: none; }
  .check.pop, .check.on.pop, .check.on.pop svg { animation: none; }
}

/* MARK: 第6版の2(台帳31回目・係 v2web)大目標の画面・左の枠・今日の札・週の板。設計 地図と大目標_第6版_時間の地図と価値観.md §3〜§6。
   状態は形と字で(色だけで分けない §H): 価値観 = 分かれ道の線画 + 名前・価値観なし = 点線の枠 + 字・候補の札 = 点線 + ＋・
   つながった見出し = 実線・光る1つ = 地の色 + 頭の「➜」・左の枠から来たカード = 太い外枠 */
/* 道しるべ5段: 番号 → 絵 → 名前 → 印(● すんだ・➜ いま・− とばした・印なし まだ) */
.fguide5 .fstep .fnum { font-size: 12.5px; }
.fguide5 .fstep .fmark { margin-inline-start:1px; }
/* 左の枠の大目標の行から来たカード(大目標のページは作らない。そのカードへ動いて枠) */
.fcard.focus { outline: 3px solid var(--accent); outline-offset: 2px; }
/* 価値観の見出し(押すと地図)。価値観なし = 点線の枠 + 字 */
.fvalhead { display: flex; align-items: center; gap: 6px; width: 100%; margin: 8px 0 2px; padding: 4px 9px; border: 1.5px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink); font-weight: 750; font-size: 13.5px; text-align: start; }
.fvalhead:hover { background: var(--hover); }
.fvalhead .ic { color: var(--accent); flex: none; }
.fvalhead.none { border: 1.5px dashed var(--faint); color: var(--muted); font-weight: 650; }
.fvalhead.none .ic { color: var(--muted); }
.fvalname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fvaltime { flex: none; display: inline-flex; align-items: baseline; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.fvaltime b { color: var(--ink); font-size: 13px; }
/* B33・芯2(係 b_w12): 価値観の見出しの行の小さな ＋(働き = 置き場を決める手間を1手へらす。見出しは押すと地図なので ＋ は となり)と、
   新しいプロジェクトの欄の頭の行き先の札(働き = 作る前に、どの価値観の組に入るかを見せ、その場で選び直せる)。
   価値観なしの札は点線の ふち + 字「価値観なし」(見出しの「価値観なし」と同じ形。色だけで分けない) */
.fvalrow { display: flex; align-items: center; gap: 4px; margin: 8px 0 2px; }
.fvalrow > .fvalhead { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; }
.fvalrow > .fvaladd { flex: none; }
.fvdest { flex: none; max-width: 48%; }
.fvdest .fselface { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.fvdest .fselface span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fvdest.none { border-style: dashed; }
/* 空の段(価値観が0の大目標): 1行 + 候補の札(点線 + ＋)+ [あとで]。光るのは ② が ➜ のとき(地の色 + 頭の「➜」) */
.fvempty { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line); }
.fvempty.lit { background: var(--accent-soft); border: 1.4px dashed var(--accent-line); }
.fvemptynote { margin: 0 0 8px; display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.fvemptynote .ic { flex: none; margin-top: 2px; }
.fvcands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fvcand { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1.5px dashed var(--accent-line); background: var(--surface); font-weight: 700; font-size: 13px; }
.fvcand:hover { background: var(--hover); }
.fvlater { min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 650; font-size: 12.5px; }
.fvlater:hover { color: var(--ink); background: var(--hover); }
.fvunread { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
/* 習慣の字「毎日」(絵は使わない = ↻ は見直し・更新の絵)・[価値観 ▾]・「この大目標のタスク n ▸」の一覧 */
.frhabit { flex: none; padding: 0 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.fvpick { min-height: 28px; padding: 0 9px; color: var(--muted); font-size: 12px; font-weight: 650; }
.frtasks .count { margin-inline-start:2px; }
.fctasks { margin: 2px 0 6px 24px; padding-inline-start: 8px; border-inline-start:2px solid var(--line); }
/* 左の枠: 「⛰ 大目標」は選べる行(塗りの帯は .navitem[aria-current])。価値観の見出しは字だけ(押すと たたむ)。価値観なし = 点線の枠 */
.prow.gnavhead { margin-top: 14px; }
.gnavgoals { flex: 1; min-width: 0; font-weight: 700; }
.gnavgoals .ic { color: var(--accent); }
.gvhead { min-height: 32px; color: var(--muted); font-size: 13px; font-weight: 700; }
.gvhead .ic { color: var(--accent); flex: none; }
.gvhead .navlabel { flex: 1; min-width: 0; }
.gvhead.none { border: 1.2px dashed var(--faint); }
.gvhead.none .ic { color: var(--muted); }
.gvtouch { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink); }
/* 今日の見出しの、今週の価値観の札(押すと地図) */
.stat.tvalue { border: 1.5px solid var(--accent-line); color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.stat.tvalue .ic { color: var(--accent); }
.stat.tvalue:hover { background: var(--hover); }
/* 週の決め直しの「先週の記録」: 夜の印(● 沿えた・◐ 半分・○ まだ)と、そのときの価値観 */
.wbmarks { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 2px; }
.wbmark { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.wbmark b { font-size: 14px; }
.wbmark .ic { color: var(--accent); }
/* 「なぜ」(カードが呼び名を出しているときだけ。1行の字 + 盾の絵) */
.fcwhy { margin: 4px 0 0; display: flex; align-items: flex-start; gap: 5px; color: var(--muted); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.fcwhy .ic { flex: none; margin-top: 2px; }
/* プロジェクトの画面の頭の道すじ(⛰ 呼び名 › 分かれ道 価値観 › # 名前)。形 + 名前。
   点検 R2 △6: 見出しの下の1行(横いっぱい・見出しの道具より下 = order で並びの最後へ) */
.subpath { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.centerhead .subpath { order: 9; flex-basis: 100%; font-size: 13.5px; }
.subpath .subgoal, .subpath .subvalue, .subpath .subproj { display: inline-flex; align-items: center; gap: 3px; }
.subpath .subgoal .ic, .subpath .subvalue .ic { color: var(--accent); }
.subpath .subproj .ic { color: var(--muted); }
/* 候補をたたんだ1行(点検 R2 △1・△11): 「価値観なし」の見出しと同じ言葉(分かれ道 + 点線)。横いっぱいにせず、▸ ▾ で「開くもの」と分ける */
.fvfold { margin: 8px 0 2px; }
.fvfold.choose { margin-top: 10px; }
.fvfoldbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 10px; border: 1.5px dashed var(--faint); border-radius: 9px; background: transparent; color: var(--muted); font-weight: 650; font-size: 13px; }
.fvfoldbtn:hover { background: var(--hover); color: var(--ink); }
.fvfoldbtn .count { font-variant-numeric: tabular-nums; }
.fvfold > .fvcands { margin: 8px 0 0 8px; }
.fvfold > .fvempty { margin-top: 8px; }
/* 週の決め直しの「先週の記録」の上の 時間の地図の列(点検 R2 △5。名前・時間・割合・短い棒 = 長さで読む。色でなく長さ) */
.wbmap { display: flex; flex-direction: column; gap: 3px; margin: 2px 0 10px; }
.wbmaphead, .wbmaprow { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 3px 8px; border: 0; border-radius: 7px; background: var(--chip); color: var(--ink); text-align: start; font: inherit; }
.wbmaphead { background: transparent; font-weight: 700; font-size: 13.5px; padding-inline-start: 2px; }
.wbmaphead .ic { color: var(--accent); flex: none; }
.wbmaphead:hover, .wbmaprow:hover { background: var(--hover); }
.wbmapper { color: var(--muted); font-weight: 650; font-size: 12.5px; }
.wbmapname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; font-size: 13px; }
.wbmaphead .wbmaptime { margin-inline-start:auto; }
.wbmaptime { font-variant-numeric: tabular-nums; font-size: 12.5px; white-space: nowrap; }
.wbmapshare { width: 4.6em; text-align: end; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; }
.wbmapbar { flex: none; width: 72px; height: 8px; border: 0.8px solid var(--muted); display: flex; }
.wbmapbar > span { display: block; height: 100%; background: var(--ink); opacity: 0.6; }
.wbmapgo { width: 0.8em; font-weight: 700; color: var(--muted); }
/* 右から左へ読む言語(アラビア語): 「›」(進む向き)を鏡うつしにして、左を向ける。字は変えない(読み上げ・タイトルはそのまま) */
:root[dir="rtl"] .wbmapgo, :root[dir="rtl"] .tmap .tmsep, :root[dir="rtl"] .subsep { display: inline-block; transform: scaleX(-1); }
:root[dir="rtl"] .subsep { white-space: pre; }
.wbmapover { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.wbhatch { display: inline-block; width: 18px; height: 12px; border: 1px solid var(--ink); background: repeating-linear-gradient(135deg, transparent 0 4px, var(--ink) 4px 5.5px); }

/* 設定の「同期」の節・はじめてつなぐ板・安全弁の板(係 G・2026-10-17)。様子は ◎ / △ / ✕ / − の記号と字で分ける(色は使わない。枠の線の形だけ補助) */
.syncstatus { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.syncmark { display: inline-grid; place-items: center; min-width: 22px; height: 22px; font-weight: 850; font-size: 15px; line-height: 1; }
.syncstatus[data-level="stop"] .syncmark { border: 2px solid var(--ink); border-radius: 6px; }
.syncshort { font-size: 12px; font-weight: 750; white-space: nowrap; }
.chipbtn .syncstatus { gap: 3px; }
.syncstatus[data-level="wait"] .syncmark { border: 2px dashed var(--muted); border-radius: 6px; }
.synchead { margin: 14px 0 4px; font-size: 14px; }
.syncfield { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; font-weight: 650; font-size: 13.5px; }
.syncinput { min-height: var(--tap); border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); padding: 6px 12px; font-size: 16px; width: 100%; box-sizing: border-box; color: inherit; }
textarea.syncinput { resize: vertical; }
.syncform { display: flex; flex-direction: column; gap: 6px; }
.syncline { margin: 4px 0 8px; }
.syncshare { font-size: 12.5px; word-break: break-all; color: var(--muted); margin: 4px 0; }
.syncconfirm { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; margin: 8px 0; border-radius: 12px; border: 2px dashed var(--ink); }
.syncboard { padding: 12px 14px; margin: 10px 0; border-radius: 12px; border: 2.5px solid var(--ink); background: var(--surface); }
.syncboard h3 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.synccounts { border-collapse: collapse; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.synccounts th, .synccounts td { padding: 4px 10px; text-align: end; border-bottom: 1px solid var(--line); }
.synccounts th[scope="row"], .synccounts thead th:first-child { text-align: start; }
.syncopt { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.syncoptbody { display: flex; flex-direction: column; gap: 2px; flex: 1 1 280px; }
.syncrec { align-self: flex-start; font-size: 12.5px; font-weight: 750; padding: 1px 8px; border-radius: 999px; border: 1.5px solid var(--ink); }
.syncnote { flex-wrap: wrap; }
/* 番人の箱の入り方(2026-12-01。ui/keeperview.js)。「入る」と「はじめる」は、枠の線の形(実線・破線)と、見出しの字・札の字で分ける(色は使わない)。
   出した数字は、大きく・等幅で。幅 360px でも 1 行に収まる大きさ */
.keeperenter h3 { flex-wrap: wrap; }
.keeperstart { border-style: dashed; }
.keepertag { font-size: 12.5px; font-weight: 750; padding: 1px 8px; border-radius: 999px; border: 1.5px solid var(--ink); white-space: nowrap; }
.keeperinput { font-size: 20px; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; max-width: 16em; }
.keepercode { font-size: clamp(28px, 9vw, 40px); font-weight: 800; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; margin: 6px 0; white-space: nowrap; user-select: all; }
.keeperleft { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.keeperleft b { font-size: 17px; }
.keeperdevices { list-style: none; margin: 6px 0; padding: 0; }
.keeperdev { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.keeperdevtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }
.keeperdevtext .keepertag { align-self: flex-start; }
.keeperdevtime { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
/* 予定の時刻のカード(係 b_w11・2026-10-18。箱は acts_timecall.js が body に足す)。
   画面のいちばん上に浮かぶ = どの画面を開いていても、予定の時刻が来たことを見落とさない(強制認知)。
   幅は 420px か「画面の幅 − 16px」の小さいほう = iPhone の 375 幅でも はみ出さない。高さは画面の中に収め、あふれたら箱の中で動かす。
   いまのカードと まとめのカードは縦に並べる(2つを、色でなく 目覚まし時計/ふつうの時計の絵 と 見出しのことば で分ける) */
.timecall { position: fixed; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(420px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: auto; overscroll-behavior: contain; z-index: 60; display: flex; flex-direction: column; gap: 8px; --tap: 40px; }
.timecall[hidden] { display: none; }
.tcard { background: var(--surface); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.tchead { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tchead > b { min-width: 0; font-variant-numeric: tabular-nums; }
.tclap { margin-inline-start:auto; flex: none; font-size: 12px; font-weight: 650; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.tctitle { margin: 0; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcnote { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.tcleft { font-variant-numeric: tabular-nums; color: var(--ink); }
.tcacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tcrows { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tcrow { display: flex; align-items: center; gap: 8px; min-height: var(--tap); }
.tctime { flex: none; min-width: 5.2em; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tcname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.tcperm .tcstate { flex: 1 1 14em; min-width: 0; font-size: 13px; }
.tcmark { font-size: 15px; }
@media (pointer: coarse) { .timecall { --tap: 44px; } }
/* ほしい物・夢(大目標の画面のいちばん下。係 b_wish・wishesview.js。Mac の WishSection)。
   印は形とことば(◯ まだほしい / ✓ かなった / ↺ 手放した)・選んでいる印 = .choice の太い枠と太字・手放した = 打ち消し線。色だけで分けない */
.wishes { margin: 8px 0 28px; }
.wishhead .sparkles, .wishmark { color: var(--accent); }
.wishmark { display: inline-flex; flex: none; }
.wishnote { display: flex; align-items: center; gap: 6px; margin: 2px 10px 8px; color: var(--muted); font-size: 12.5px; }
.wishrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.wishmk { flex: none; width: 20px; text-align: center; font-weight: 800; }
.wishtext { flex: 1 1 10em; min-width: 0; overflow-wrap: anywhere; }
.wishrow.letgo .wishtext { text-decoration: line-through; color: var(--muted); }
.wishtools { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.wishchoice { padding: 2px 10px; font-size: 13px; }
.wishadd { border-bottom: 0; }
.wishadd input { flex: 1 1 12em; min-width: 0; min-height: var(--tap); border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 10px; font-size: 16px; }
.wishadd input:focus { border-color: var(--accent); outline: none; }
.wishaddbtn { padding: 0 14px; }
.wishpast { padding-top: 10px; }
/* せまい形: 印のボタンは1行の下へ(1行を細くつぶさない) */
@media (max-width: 520px) { .wishtools { flex-basis: 100%; padding-inline-start: 28px; } }
/* 閉ループ 輪1 係 R1a(2026-10-18): くり返し(習慣)の選び [くり返さない][毎日][平日][月]…[日]。
   選んでいる札は .choice の太い ふち・太字(aria-pressed)。色だけで分けない。✓ は使わない(「終えた」だけの印) */
.repeatchips { gap: 6px; align-items: center; }
.repeatchips .rchip { min-width: var(--tap); padding: 4px 10px; }
.repeatchips .rnow { font-size: 13px; padding: 0 4px; }
.frfield { flex-wrap: wrap; gap: 4px; }
.frepeat { flex: 1 1 100%; display: flex; padding: 2px 0 2px 4px; }
.addrepeat { flex: none; display: inline-flex; }
.addrepeatbtn.on { border: 2.5px solid var(--accent); font-weight: 800; }
/* C06: 入れる先のボタン(ふだんは絵だけ。選んだときだけ先の名前が出て、太い枠) */
.addtobtn { padding: 0; min-width: var(--tap); justify-content: center; }
.addtobtn.on { border: 2.5px solid var(--accent); font-weight: 800; padding: 0 10px; max-width: 120px; }
.addtobtn.on > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.addtochips { align-items: center; }
.addtoproject { min-height: var(--tap); max-width: 100%; }
.repeatrow { margin: -2px 24px 8px; }
.repeatrow[hidden] { display: none; }
/* 説明の吹き出し(閉ループ 輪2 R2b・tipview.js)。いつも出る説明の文を置かない(決め D5)。
   マウスの機械: ⓘ は出さない(行・見出しにポインタを乗せると title)。指の機械: ⓘ を押すと下に開く(下の @media (hover: none))。
   形の印(.always。地図の重なりの 2枚重ね)は、どの機械でも出す(形そのものが意味)。開いた字は1行ぶんの幅をとって下へ */
.tip { display: none; }
.tip.always { display: inline-block; }
.tip > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; min-width: 24px; min-height: 24px; border-radius: 8px; color: var(--muted); }
.tip > summary::-webkit-details-marker { display: none; }
.tip > summary:hover { background: var(--hover); color: var(--ink); }
.tip[open] { flex-basis: 100%; }
/* U-4 追い(△4): 指の機械では ⓘ の押せる範囲を 44px 以上に(見た目の丸は 24px のまま。::before で広げる) */
@media (pointer: coarse) {
  .tip > summary { position: relative; }
  .tip > summary::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); } /* 点検の追い: 44px だと となりの押す所の端にかぶるおそれ → 40px */
}
.tip .tiptext { display: block; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.5; margin: 2px 0 6px; }
.ghead { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; }
.flabel { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
/* U-4(11-05): 印と数だけの札の見方(tipview.js の tipRowsHTML)。指の機械だけ ⓘ(上の .tip の決まり)。開くと 説明 → 絵 と ことば の並び。
   絵は札と同じ(新しい記号は足さない)。字は折り返す(375px でもはみ出さない) */
.tiprows .tiptext { display: flex; flex-direction: column; gap: 3px; max-width: 100%; overflow-wrap: anywhere; }
.tiprows .tiphead { font-weight: 650; }
.tiprow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tipicon { flex: none; display: inline-grid; place-items: center; min-width: 18px; }
.tiprow > span:last-child { min-width: 0; }
.wbhead { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; margin: 0 0 8px; }
.wbhead h3 { margin: 0; }
/* 詳しく見る板のいちばん下のゴミ箱(ほかの欄から離す。線で区切る) */
.taskboard .tdfoot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
/* 係 w_g4(11-05): くり返しの回の「今日はとばす」は左・ゴミ箱は右はしへ離す(押しまちがえない。字と絵でも分ける) */
.taskboard .tdfoot .tdskip + .danger { margin-inline-start:auto; }

/* MARK: 枠をしまう/出す(広い形だけ。決まりは app/panes.js・描くのは view.js の renderPaneHead。Mac の たたむボタン と たたんだ柱(44pt)に合わせる)
   しまった印は 色でなく 柱の細さ + 縦書きの名前 + 絵(aria-expanded も付く)。中くらい・せまい形では帯ごと出さない(枠の出し方は前のまま) */
.panehead { display: none; }
.app[data-layout="wide"] .panehead { display: flex; align-items: center; gap: 6px; min-height: 44px; flex: none; }
.app[data-layout="wide"] .nav .panehead { padding: 2px 8px; }
.app[data-layout="wide"] .livepane .panehead { position: sticky; top: 0; z-index: 1; margin: -14px -14px 0; padding: 2px 8px 2px 14px; background: var(--pane); }
.panetitle { font-size: 12px; font-weight: 750; color: var(--muted); white-space: nowrap; }
.panefold { width: 34px; height: 34px; }
.panefold:hover { color: var(--ink); }
.panerail { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; height: 100%; padding: 12px 0; border: 0; background: transparent; color: var(--ink); }
.panerail:hover { background: var(--hover); }
.panerail .ic { color: var(--accent); }
.panerailname { writing-mode: vertical-rl; font-size: 12.5px; font-weight: 750; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.app[data-layout="wide"][data-nav="folded"] { grid-template-columns: 44px minmax(0, 1fr) 344px; }
.app[data-layout="wide"][data-live="folded"] { grid-template-columns: 248px minmax(0, 1fr) 44px; }
.app[data-layout="wide"][data-nav="folded"][data-live="folded"] { grid-template-columns: 44px minmax(0, 1fr) 44px; }
.app[data-layout="wide"][data-nav="folded"] .nav > :not(.panehead) { display: none; }
.app[data-layout="wide"][data-nav="folded"] .nav .panehead { flex: 1; min-height: 0; padding: 0; align-items: stretch; }
.app[data-layout="wide"][data-live="folded"] .livepane { padding: 0; overflow: hidden; }
.app[data-layout="wide"][data-live="folded"] .livepane .panehead { flex: 1; min-height: 0; position: static; margin: 0; padding: 0; align-items: stretch; }
/* MARK: 枠をしまう/出す ここまで */

/* 11-04 色の点検 C-1・C-3: 記号の見方(凡例)。小さく1行。375px でもはみ出さず折り返す */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 4px 4px; font-size: 12px; color: var(--muted); max-width: 100%; overflow-wrap: anywhere; }
.legend .lgtitle { font-weight: 750; }
.legend .lg { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }

/* G-5(係 w_g5 11-05): 今日の見出しの朝 ☀・夜 🌙(Mac の DayRingButtons)。記号だけのカプセル(枠 = 押せる物)。
   夜を書いたあとは塗りの月(絵の形が替わる。色は替えない)。広い形は数の札のうしろ(Mac と同じ右の端)・せまい形は横に送る帯のいちばん前
   (order。送らなくても見える。帯は1段のまま = 折れない)。指の機械は 44px(押せる大きさ) */
.dayrings { display: inline-flex; gap: 6px; align-items: center; flex: none; }
.dayring { width: 40px; height: 32px; border-radius: 999px; border: 1.5px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; padding: 0; cursor: pointer; flex: none; }
.dayring:hover { background: var(--hover); }
@media (pointer: coarse) { .dayring { width: 44px; height: 44px; } }
.app[data-layout="narrow"] .centerhead[data-screen="today"] .stats > .dayrings { order: -1; }
/* 朝・夜の板(dlg。ほかの板と同じ頭 .bhead と ✕) */
dialog[data-kind="morning"], dialog[data-kind="evening"] { width: min(94vw, 460px); max-height: min(90dvh, 720px); overflow: auto; }
.dayboard { display: flex; flex-direction: column; gap: 10px; }
.drempty { display: flex; gap: 8px; align-items: center; color: var(--muted); margin: 6px 0; }
.drsteps { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.drstep { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 32px; }
.drstep .drfeet { color: var(--accent); flex: none; }
.drstep b { font-size: 15px; overflow-wrap: anywhere; }
.drcue, .drgoal { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; }
.drnote { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.drnote input { flex: 1 1 auto; min-width: 0; min-height: var(--tap); padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.drmarks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.drmarks > .ic { color: var(--accent); }
.drmark span[aria-hidden] { font-size: 16px; line-height: 1; }
.drplace { margin: 2px 0 0; font-size: 12.5px; }
.fieldrow input.drtime { min-height: var(--tap); padding: 4px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { .drnote input, .fieldrow input.drtime { font-size: 16px; } }

/* スレッドの棚(11-25。この Mac の中だけで出る画面「スレッド」。絵は src/ui/threadsview.js・入れ物は view.js の .threads)。
   色だけで分けない: スレッドの今は「？ 手待ち/▶ 動いている/・ 静か」の形と字・手を待っている札は太い実線の枠・
   選択肢は押せない札(地なし・点線の枠。返事は、そのスレッドで)・段取りは ☑ ▶ ☐ － の形(まとめて閉じた物は、☑ に字を添える)。記録から来た字は長さが分からないので、
   どこでも折り返す(overflow-wrap: anywhere)・はみ出さない(min-width: 0)。左右は決め打ちしない(start・end) */
.threads { max-width: 60em; padding: 0 4px 8px; }
.th-sec { margin: 6px 0 18px; }
.th-h { display: flex; align-items: center; gap: 8px; margin: 14px 4px 6px; font-size: 15px; font-weight: 750; }
h3.th-h { font-size: 14.5px; }
.th-h .count { margin-inline-start: 0; flex: none; }
.th-h .th-when { font-weight: 500; }
.th-htext { min-width: 0; overflow-wrap: anywhere; }
.th-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 4px 10px; color: var(--muted); font-size: 13.5px; }
.th-status.th-warn { color: var(--ink); background: var(--chip); border-inline-start: 3px solid var(--accent); padding: 8px 10px; border-radius: 6px; }
.th-statusword { font-weight: 700; }
.th-none { color: var(--muted); margin: 4px 6px 8px; font-size: 14px; }
.th-card { background: var(--surface); border: 2px solid var(--accent-line); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; }
.th-cardtop { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.th-state { flex: none; white-space: nowrap; font-size: 12.5px; font-weight: 750; color: var(--muted); }
.th-card .th-state, .th-dmeta .th-state, .th-row[data-state="waiting"] .th-state, .th-row[data-state="working"] .th-state { color: var(--ink); }
.th-room { min-width: 0; overflow-wrap: anywhere; }
.th-when { white-space: nowrap; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.th-open { display: flex; align-items: flex-start; gap: 8px; width: 100%; min-height: var(--tap); padding: 6px 4px; margin: 2px 0; border: 0; background: transparent; border-radius: 9px; text-align: start; font-size: 15.5px; font-weight: 700; }
.th-open:hover, .th-row:hover { background: var(--hover); }
.th-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.th-go { flex: none; color: var(--muted); }
.th-ask, .th-text { margin: 4px 4px 6px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; max-width: 44em; }
.th-opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 4px 2px; }
.th-opt { white-space: normal; overflow-wrap: anywhere; cursor: default; background: transparent; border: 1px dashed var(--faint); }
.th-reply { margin: 4px 4px 0; color: var(--muted); font-size: 13px; }
/* 11-26: 札の下の段(「返事は、そのスレッドで」と、小さな「しまう」)・いつ読んだ物か(右はしに小さく)・まとめて閉じた物の添え書き */
.th-cardfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; margin-top: 2px; }
.th-cardfoot .th-reply { margin: 0 4px; }
.th-cardfoot .th-put { margin: 0; margin-inline-start: auto; }
.th-made { margin: 2px 6px 6px; color: var(--muted); font-size: 12px; text-align: end; font-variant-numeric: tabular-nums; }
.th-note { flex: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.th-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 10px; width: 100%; min-height: var(--tap); padding: 7px 8px; border: 0; background: transparent; border-radius: 10px; text-align: start; font-size: 14.5px; }
.th-row .th-state { width: 7.5em; padding-top: 1px; }
.th-main { flex: 1 1 12em; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.th-main .th-room { color: var(--muted); font-size: 12.5px; }
.th-tail { margin-inline-start: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px 10px; }
.th-row .th-title { flex: 0 1 auto; font-weight: 600; }
.th-hint { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 12.5px; }
.th-counts { white-space: nowrap; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.th-fold, .th-more { display: flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 4px 10px; margin: 2px 0; border: 0; background: transparent; border-radius: 9px; color: var(--muted); font-size: 13.5px; font-weight: 700; text-align: start; }
.th-fold:hover, .th-more:hover { background: var(--hover); color: var(--ink); }
.th-auto { color: var(--muted); font-size: 12px; margin: 14px 6px 4px; }
.th-back { margin: 2px 0 8px; }
.th-dhead { margin: 4px 4px 14px; }
.th-dtitle { margin: 0 0 6px; font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.th-dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.th-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.th-choice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; margin: 6px 0; }
.th-pastchoice { background: transparent; }
.th-optlist, .th-plan { list-style: none; margin: 4px 0; padding: 0; }
.th-optrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 3px 4px; }
.th-optnote { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.th-result { margin: 4px 4px 2px; font-size: 13.5px; font-weight: 650; overflow-wrap: anywhere; }
.th-item { display: flex; align-items: flex-start; gap: 8px; padding: 4px 6px; }
.th-mark { flex: none; width: 1.4em; text-align: center; font-weight: 800; }
.th-itemtext { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.th-item[data-status="done"] .th-itemtext, .th-item[data-status="closed"] .th-itemtext, .th-item[data-status="left"] .th-itemtext { color: var(--muted); }
.th-item[data-status="doing"] .th-itemtext { font-weight: 700; }
.th-time { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.th-day { margin: 10px 6px 2px; font-size: 12.5px; font-weight: 750; color: var(--muted); }
.th-recap { border-top: 1px solid var(--line); padding: 6px 2px; }
.th-legend { margin-top: 16px; }

/* MARK: iPad・Windows で入れて毎日使う(係 pwa・2026-10-17)。ここから下は、指で押す機械と画面のふちの決まり。
   マウスで使う Mac・Windows の見た目は変えない(指で押す機械 = pointer: coarse・ホバーの無い機械 = hover: none のときだけ) */
/* 画面のふち(ホーム画面から開いた iPad の下の帯・横向きの iPhone の左右の切りかけ)に、押す物を置かない */
.app { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.navfoot { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.app[data-layout="mid"] .runbar { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
/* すばやく2回押しても、画面が大きくならない(＋ − や ▶ を続けて押すとき) */
button, .choice, .tab, [role="button"], summary { touch-action: manipulation; }
/* 指で押す機械(iPad・iPhone・指で押す Windows): 広い形・中くらいの形でも、押す所を 44px に(前は せまい形だけ) */
@media (pointer: coarse) {
  .app { --tap: 44px; }
  /* 広い形の左右の「たたむ」も、ほかの .iconbtn と同じ押す所に(上の 34px が後ろに書いてあって勝っていた。10-28 K6) */
  .panefold { width: var(--tap); height: var(--tap); }
  /* 地図の行のボタン(せまい形と同じ大きさ) */
  .flowbtn, .ftoday { min-height: var(--tap); }
  .ftoday { width: var(--tap); height: var(--tap); }
  .fplus { width: var(--tap); height: var(--tap); }
  .fctoggle { min-height: 32px; padding: 0 12px; }
  /* 小さく見せたままの物は、見えない ふちで押せる所だけを 44px ほどに広げる(となりと重なる所は、あとの物が受ける) */
  .run, .check, .fold, .datebtn, .iconbtn.small, .gnavadd, .fvlink { position: relative; }
  .run::after, .check::after, .fold::after, .datebtn::after, .iconbtn.small::after, .gnavadd::after, .fvlink::after { content: ""; position: absolute; }
  .run::after { inset: -7px; }
  .check::after { inset: -10px; }
  .fold::after { inset: -8px -3px; }
  .datebtn::after { inset: -7px 0; }
  .iconbtn.small::after, .gnavadd::after { inset: -8px; }
  .fvlink::after { inset: -9px 0; }
  /* 板の「親」の候補の行・子の行・「子タスクを入れる」(10-28 N7): 部品の中の決まり(childtaskview.js の CHILD_STYLE)は 40px・行の すき間 2px で、
     候補の行は押すと1回で決まる(となりを押すと別の親に移る)→ 44px と すき間 6px に。部品の中の決まりより強く書く。
     板は .app の外なので --tap でなく 44px と書く(指の機械の --tap と同じ数) */
  .gbbody .cklist { gap: 6px; }
  .cklist .ckrow { min-height: 44px; }
  .gbbody .ckadd .btn { min-height: 44px; }
  /* 時間の地図の上の段(期間・1段上へ・その帯へ)。地図の中の見た目の決まりより強く書く */
  .app .tmap .tmseg button, .app .tmap .tmgo { min-height: 40px; }
  .app .tmap .tmup { width: 40px; height: 40px; }
  /* 字の欄は 16px 以上(iPhone・iPad は、小さな字の欄を押すと画面を大きくする) */
  .goalboard input[type="text"], .goalboard input[type="date"], .goalboard select, .fieldrow select { font-size: 16px; }
  /* 10-29 点検 P5: 板の「子タスク」の欄(本文の 15px)・時間の地図の「止めた時刻」の欄(地図の 13px)も同じ決まりに */
  .gbbody .ckadd textarea, .app .tmap .tmfixrow input[type="datetime-local"] { font-size: 16px; }
}
/* ホバーの無い機械(指): 見えないのに押せる物を作らない(前は行のゴミ箱。閉ループ 輪2 R2b で行から外した)。
   ポインタを乗せられないので、説明の吹き出しの入口 ⓘ を出す(押すと下に開く) */
@media (hover: none) {
  .tip { display: inline-block; }
  /* U-4(11-05): せまい形の今日の見出しは1段(横に送る帯)。ⓘ は帯の外のいちばん右 → 「›」(続きあり)の印を ⓘ の左へ。
     開いたときだけ段を折り返して、字を見出しの下の1行に(帯の中で1行に伸びないように) */
  .app[data-layout="narrow"] .centerhead[data-screen="today"]:has(> .headtip)[data-more~="right"]::after { right: 40px; }
  .app[data-layout="narrow"] .centerhead[data-screen="today"]:has(> .tip[open]) { flex-wrap: wrap; }
  .app[data-layout="narrow"] .centerhead[data-screen="today"]:has(> .tip[open])::after { content: none; }
  /* 押したあとに「指を乗せた形」が残って、選んだ物に見えないように */
  .run:hover { transform: none; }
  .datebtn:hover { background: var(--chip); color: inherit; }
  .datebtn.quiet:hover { color: var(--muted); }
  .datebtn.nodate:hover { background: var(--accent-soft); color: var(--accent); }
  .gnavadd:hover { background: var(--accent-soft); color: var(--accent); }
}
/* 設定の「この端末に入れる」(◎ / △ / ? の記号とことば。色で分けない) */
.pwastate { font-weight: 750; }
.pwahead { margin: 12px 0 4px; font-size: 14px; }
.pwasteps { margin: 4px 0 6px; padding-inline-start: 1.6em; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pwamore { margin-top: 10px; }
.pwamore > summary { cursor: pointer; font-weight: 700; min-height: var(--tap); display: flex; align-items: center; }
