/* 目標進捗表（作り直し・2026-11-05）
   見た目は福利厚生ガイド（https://fukuri-kousei.vercel.app/）の決まりに寄せた（2026-11-05 宮村さん「そもそもデザインも微妙だからこれ参考にしてみて」）：
   うすい灰の地＋黒い帯・黒いボタン、字は Zen Kaku Gothic New の太字、数字と英字は Jost、角は小さく（2〜6px）、カードは色の細い縁＋色の影、見出しは「—— 線」と黄色いマーカー */
:root {
  /* Notion の明るい画面に寄せた色。地は白から一段落とした #F1F0EC（2026-11-05 宮村さん「白ベースか明る色ベースにできない？」→「もうちょい白落とせる？まぶしいかも」→3段階から「2. 中くらい」） */
  /* 2026-11-06 宮村さん「２がいいね！」（背景の見比べで「2. 青みグレー」）で #F1F0EC → #EEF1F4。上の帯・マウスを乗せたとき・選んでいるときも合わせた */
  --color-bg: #EEF1F4; --color-surface: #FCFCFB; --color-surface-sub: #F7F7F5; --color-surface-muted: #F7F7F5; --color-track: #E9E9E7;
  --color-header: #EEF1F4; --color-header-sub: #787774; --color-header-faint: #C7C6C4; --color-avatar: #E3E2E0; --color-step: #EFEFED;
  --color-sel: #DDE2E8; --color-hover: #E3E7EC; --color-primary: #2383E2; --color-primary-hover: #0F6FCF; --color-on: #FFFFFF; --color-cover-ink: #37352F; --color-band: #37352F;
  --color-text: #37352F; --color-text-sub: #787774; --color-text-muted: #9B9A97; --color-placeholder: #B4B4B0; --color-empty-value: #C7C6C4;
  --color-border: #E2E0D9; --color-border-soft: #EAE8E3; --color-border-strong: #D6D4CD; --color-border-hover: #C7C6C4;
  --color-edit: #37352F; --color-edit-strong: #191919; --color-edit-tint: #F7F7F5; --color-edit-border: #E9E9E7; --color-edit-ring: rgba(35, 131, 226, .28);
  --color-link: #2383E2; --color-focus: #2383E2; --color-marker: transparent;
  --color-warn-bg: #FBF3DB; --color-warn-border: #F1E2B3; --color-warn-text: #6B5410;
  --color-danger: #D44C47; --color-danger-hover: #FDEBEC;
  --color-done-border: #448361; --color-miss-border: #D44C47;
  --progress-done-bar: #4DAB9A; --progress-done-text: #448361; --progress-done-tint: #EDF3EC;
  /* あと少し（70〜99%）は黄。前の橙（#D9730D）は要対応の赤と色相が28度しか離れず見分けにくかった（2026-11-05 宮村さん「あと少しと要対応の色が似てるのは避けたい」） */
  --progress-near-bar: #DFAB01; --progress-near-text: #7A5C00; --progress-near-tint: #FBF3DB;
  --progress-low-bar: #D44C47; --progress-low-text: #C4554D; --progress-low-tint: #FDEBEC;
  --progress-none-bar: #C7C6C4; --progress-none-text: #787774; --progress-none-tint: #F1F1EF;
  --radius-cell: 4px; --radius-tool: 6px; --radius-block: 8px; --radius-card: 10px; --radius-pill: 999px;
  --shadow-hover: none; --shadow-menu: 0 12px 32px -8px rgba(15, 15, 15, .2); --shadow-panel: 0 12px 32px -8px rgba(15, 15, 15, .2);
  --font: "Noto Sans JP", ui-sans-serif, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Noto Sans JP", ui-sans-serif, -apple-system, sans-serif;
  --dc: #9B9A97; --dc-strong: #37352F; --dc-tint: #F7F7F5;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font); font-size: 14px; line-height: 1.7; letter-spacing: .04em; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--color-link); text-underline-offset: 3px; } a:hover { color: var(--color-text); }
button { font: inherit; letter-spacing: inherit; }
.num, input { font-variant-numeric: tabular-nums; }
.num { font-family: var(--font-en); }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 上の帯 */
.top { height: 56px; background: var(--color-header); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; color: #fff; position: relative; z-index: 8; }
.crumbs { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crumbs a, .crumbs span { color: var(--color-text); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.crumbs a:hover { opacity: .8; color: var(--color-text); }
.crumbs .brand { font-size: 17px; font-weight: 700; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 12px; }
.crumbs .brand svg { width: 22px; height: 22px; fill: none; stroke: var(--color-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.crumbs .sep { color: var(--color-header-faint); font-family: var(--font-en); }
.crumbs .dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--dc); margin-right: 8px; vertical-align: 1px; }
.crumbs .last { overflow: hidden; text-overflow: ellipsis; }
/* 部署のタブ：参考ページの「01 全ての制度」の箱。選んでいる部署は黒く塗る */
.deptabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 10px 32px; background: var(--color-surface); border-bottom: 1px solid var(--color-border); box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .25); position: relative; z-index: 7; }
.deptabs[hidden] { display: none; }
.deptab { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px; font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--color-text); text-decoration: none; white-space: nowrap; background: var(--color-surface); border: 1.5px solid var(--color-text); border-radius: 4px; transition: background .15s, color .15s; }
.deptab .n { font-family: var(--font-en); font-size: 22px; font-weight: 500; line-height: 1; letter-spacing: 0; }
.deptab .lb { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.deptab .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--tc); flex: none; }
.deptab:hover { background: var(--color-bg); color: var(--color-text); }
.deptab.on { background: var(--color-sel); color: var(--color-on); border-color: transparent; }
.top-right { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--color-header-sub); white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--color-avatar); color: var(--color-text); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-en); font-size: 13px; font-weight: 500; }
.logout { background: transparent; border: 0; color: var(--color-text-sub); opacity: .85; padding: 0; font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.logout:hover { opacity: 1; }

/* ログイン */
.login { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { background: var(--color-surface); border-radius: var(--radius-card); padding: 44px 32px; max-width: 440px; width: 100%; text-align: center; box-shadow: var(--shadow-panel); }
.login-card h1 { margin: 0 0 10px; font-size: 28px; font-weight: 700; letter-spacing: .08em; }
.login-card p { color: var(--color-text-sub); margin: 0 0 24px; }
.login-err { color: var(--color-danger); min-height: 1.6em; margin: 16px 0 0 !important; }

/* ボタン（参考ページの黒いボタン・線だけのボタン） */
.btn { height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-tool); font-size: 14px; font-weight: 500; letter-spacing: .06em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s, color .15s; }
.btn-primary { border: 0; background: var(--color-primary); color: var(--color-on); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-on); }
.btn-primary:disabled { background: var(--color-border-strong); cursor: default; }
.btn-secondary { border: 0; background: transparent; color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.btn-secondary:hover { background: var(--color-hover); box-shadow: inset 0 0 0 1px var(--color-text); color: var(--color-text); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-danger { border: 0; background: transparent; color: var(--color-danger); padding: 0 12px; box-shadow: inset 0 0 0 1px currentColor; }
.btn-danger:hover { background: var(--color-danger-hover); color: var(--color-danger); }
.btn-big { height: 46px; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* 中身の幅 */
.wrap { max-width: 1376px; margin: 0 auto; padding: 0 32px; }
.bar { background: transparent; border-bottom: 1px solid var(--color-border); }
.bar .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 24px; }
.bar.sticky { position: sticky; top: 0; z-index: 5; background: rgba(241, 240, 236, .94); backdrop-filter: blur(6px); }
.bar.sticky .wrap { padding-top: 16px; padding-bottom: 16px; }
main.wrap { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.title-row { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: wrap; }
.title-row h1 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.35; letter-spacing: .08em; background-image: linear-gradient(var(--color-marker), var(--color-marker)); background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .36em; padding: 0 .04em; }
.title-row h1 small { font-size: 16px; font-weight: 500; color: var(--color-text-sub); letter-spacing: .04em; }
.bar.sticky .title-row h1 { font-size: 22px; }
.dep-bar { width: 28px; height: 1.5px; border-radius: 0; background: var(--color-text); flex: none; }
.count { font-family: var(--font-en); font-size: 15px; font-weight: 500; color: var(--color-text-sub); }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--color-text-sub); }
.back:hover { color: var(--color-text); }

/* 期間の切り替え（参考ページの選択肢ボタン：押しているものは黒） */
.period { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.period-label { font-size: 13px; font-weight: 700; color: var(--color-text); }
.segs { display: inline-flex; padding: 0; gap: 6px; background: transparent; border-radius: 0; flex-wrap: wrap; }
.seg { height: 34px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: var(--radius-tool); font-size: 13.5px; cursor: pointer; white-space: nowrap; background: var(--color-surface); color: var(--color-text); font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.seg:hover { border-color: var(--color-text); }
.seg[aria-pressed="true"] { background: var(--color-sel); color: var(--color-on); border-color: transparent; font-weight: 500; box-shadow: none; }
.saved { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-sub); margin-left: 8px; min-width: 7em; }
.saved.ok svg { stroke: var(--progress-done-text); }
.saved.err { color: var(--color-danger); font-weight: 700; }

/* 札・棒 */
.badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); white-space: nowrap; letter-spacing: .06em; }
.t-done { --bar: var(--progress-done-bar); --tx: var(--progress-done-text); --tint: var(--progress-done-tint); }
.t-near { --bar: var(--progress-near-bar); --tx: var(--progress-near-text); --tint: var(--progress-near-tint); }
.t-low { --bar: var(--progress-low-bar); --tx: var(--progress-low-text); --tint: var(--progress-low-tint); }
.t-none { --bar: var(--progress-none-bar); --tx: var(--progress-none-text); --tint: var(--progress-none-tint); }
.badge { background: var(--tint); color: var(--tx); }
/* 状態の札は Notion の「● 進行中」の形（丸い札＋頭に点）に寄せた（2026-11-05） */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px 2px 8px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--bar, currentColor); flex: none; }
.pct { color: var(--tx); font-family: var(--font-en); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.pct.empty { color: var(--color-empty-value); }
.track { height: 6px; border-radius: 999px; background: var(--color-track); overflow: hidden; }
.track > i { display: block; height: 100%; border-radius: 999px; background: var(--bar); }

/* 区切りの見出し（Notion の「THIS WEEK'S PLANS」の帯：左が濃く、右へ消えていく） */
.nlab { display: flex; }
.nlab span { display: inline-block; min-width: 260px; padding: 12px 64px 12px 16px; background: linear-gradient(90deg, var(--color-band) 0%, var(--color-band) 40%, rgba(55, 53, 47, 0) 100%); color: var(--color-on); font-family: var(--font-en); font-size: 14px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; border-radius: 2px 0 0 2px; }
main.wrap > .nlab { margin-bottom: -10px; }

/* 最初の画面（5部署）：Notion のページの表紙（上の帯＋大きな英字）と、帯に重なるページの印 */
.cover { height: 200px; display: flex; align-items: center; justify-content: center; text-align: center; background:
  radial-gradient(ellipse 30% 70% at 82% 60%, rgba(186, 214, 255, .55), transparent 70%),
  radial-gradient(ellipse 25% 60% at 70% 30%, rgba(255, 214, 236, .45), transparent 70%), var(--color-bg); border-bottom: 1px solid var(--color-border); }
.cover-in { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.cover-in b { font-family: var(--font-en); font-size: clamp(30px, 5vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -.01em; color: var(--color-cover-ink); }
.cover-in span { font-family: var(--font-en); font-size: 15px; font-weight: 400; letter-spacing: .02em; color: var(--color-cover-ink); }
.hero { padding: 0 0 28px; position: relative; }
.hero .wrap { position: relative; }
.page-icon { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; margin: -48px 0 20px; border-radius: 22px; background: var(--color-header); box-shadow: 0 10px 24px -12px rgba(21, 21, 21, .5); }
.page-icon svg { width: 52px; height: 52px; fill: none; stroke: var(--color-on); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--color-text); font-size: 13px; font-weight: 500; letter-spacing: .16em; margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--color-text); flex: none; }
.hero h1 { display: inline; font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; line-height: 1.35; letter-spacing: .08em; margin: 0; background-image: linear-gradient(var(--color-marker), var(--color-marker)); background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .36em; padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.stats { display: flex; flex-wrap: wrap; gap: 0; margin: 32px 0 0; }
.stats > div { display: flex; flex-direction: column-reverse; padding: 0 36px 0 0; margin-right: 36px; border-right: 1px solid var(--color-border); min-width: 0; }
.stats > div:last-child { border-right: 0; margin-right: 0; }
.stats dd { margin: 0; font-family: var(--font-en); font-size: 56px; font-weight: 300; line-height: 1; letter-spacing: -.04em; }
.stats dt { color: var(--color-text); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 20px 20px 18px; border-radius: var(--radius-card); border: 0; background: var(--color-surface); color: var(--color-text); cursor: pointer; text-decoration: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent), 0 10px 28px -14px color-mix(in srgb, var(--c) 60%, transparent); transition: transform .2s, box-shadow .2s; }
.card:hover { color: var(--color-text); transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--c), 0 16px 34px -14px color-mix(in srgb, var(--c) 70%, transparent); }
.card-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.card .no { font-family: var(--font-en); font-size: 44px; font-weight: 500; line-height: .85; color: var(--c); font-variant-numeric: tabular-nums; }
.card-mark { width: 32px; height: 32px; border-radius: 2px; color: var(--c-strong); background: var(--c-tint); display: flex; align-items: center; justify-content: center; }
.card-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card-name { font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: .06em; }
.card-sub { font-size: 13px; font-weight: 700; color: var(--c); letter-spacing: .1em; min-height: 1.7em; }
.card-foot { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--color-text-sub); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { padding: 3px 8px; border-radius: 2px; border: 1px solid var(--color-border); font-weight: 700; color: var(--color-text-sub); }
.pill.ed { background: var(--c-tint); color: var(--c-strong); font-weight: 700; }
.card-foot .go { color: var(--c); font-weight: 700; margin-left: auto; }
.activity { background: var(--color-surface); border-radius: var(--radius-block); padding: 26px 26px 20px; }
.activity h2 { font-size: 19px; font-weight: 700; letter-spacing: .06em; margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--color-text); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li + li { border-top: 1px solid var(--color-border); }
.feed a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; text-decoration: none; color: var(--color-text); }
.feed a:hover { background: var(--color-surface-muted); color: var(--color-text); }
.feed-av { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--font-en); font-weight: 500; color: var(--c-strong); background: var(--c-tint); }
.feed-where { display: block; font-size: 12.5px; color: var(--color-text-sub); }
.feed-v { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.feed-meta { font-size: 12.5px; color: var(--color-text-sub); text-align: right; white-space: nowrap; }
.feed-meta time { font-family: var(--font-en); }
.feed-empty { color: var(--color-text-sub); padding: 12px 0; }

/* 人の一覧 */
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.list-head p { margin: 0; color: var(--color-text-sub); }
.list-head b { color: var(--color-text); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pwrap { position: relative; }
/* 人のカード：Notion の目標カード（上に絵の帯→名前→日付→状態の札→%と細い棒）に寄せた（2026-11-05） */
.pcard { display: flex; flex-direction: column; min-height: 208px; height: 100%; background: var(--color-surface); border: 0; border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--color-text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dc) 45%, transparent), 0 10px 28px -14px color-mix(in srgb, var(--dc) 55%, transparent); transition: transform .2s, box-shadow .2s; }
.pcard:hover { color: var(--color-text); transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--dc), 0 16px 34px -14px color-mix(in srgb, var(--dc) 65%, transparent); }
.pcard-cover { height: 84px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--dc-tint); border-bottom: 1px solid color-mix(in srgb, var(--dc) 25%, transparent); }
.pcard-ic { width: 44px; height: 44px; border-radius: 10px; background: #FFFFFF; color: var(--dc-strong); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px -6px rgba(21, 21, 21, .35); }
.pcard-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcard-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.pcard-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pcard-name svg { color: var(--color-text-sub); width: 18px; height: 18px; }
.pcard-name span { font-size: 18px; font-weight: 700; line-height: 1.45; letter-spacing: .06em; overflow-wrap: anywhere; }
.pcard .pct small, .total-main .pct small { font-size: 20px; margin-left: 4px; font-weight: 400; letter-spacing: 0; color: var(--color-text-sub); }
.pcard-prog { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.pcard-prog .pct { font-size: 15px; font-weight: 500; letter-spacing: 0; min-width: 3.2em; }
.pcard .track { height: 6px; }
.pcard-meta { font-size: 13px; color: var(--color-text-sub); }
.pcard-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 16px; margin-top: 4px; border-radius: var(--radius-block); background: var(--color-bg); border: 0; }
.pcard-empty b { font-size: 14px; } .pcard-empty span { font-size: 13px; color: var(--color-text); font-weight: 700; }
.pwrap .iconbtn { background: rgba(255, 255, 255, .7); }
.iconbtn { position: absolute; top: 14px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: var(--radius-tool); background: transparent; color: var(--color-text-sub); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.iconbtn:hover { background: var(--color-bg); color: var(--color-text); }
.iconbtn svg { width: 18px; height: 18px; fill: currentColor; }
.pmenu { position: absolute; top: 54px; right: 12px; z-index: 6; width: 210px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-block); box-shadow: var(--shadow-menu); padding: 4px; }
.pmenu button { width: 100%; height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: var(--radius-tool); background: transparent; font-size: 14px; color: var(--color-text); cursor: pointer; text-align: left; }
.pmenu button:hover { background: var(--color-bg); }
.pmenu button.danger { color: var(--color-danger); font-weight: 500; }
.pmenu p { margin: 4px 12px 8px; font-size: 12px; color: var(--color-text-muted); line-height: 1.6; }
.addcard { min-height: 208px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1.5px dashed var(--color-border-strong); border-radius: var(--radius-card); background: transparent; color: var(--color-text-sub); font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.addcard:hover { border-color: var(--color-border-hover); background: var(--color-hover); color: var(--color-text); }
.addcard span { width: 40px; height: 40px; border-radius: var(--radius-tool); background: var(--color-sel); color: var(--color-text); border: 0; display: flex; align-items: center; justify-content: center; }
.removed { background: var(--color-surface); border: 0; border-radius: var(--radius-block); overflow: hidden; }
.removed > button { width: 100%; min-height: 56px; padding: 8px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 0; background: var(--color-surface); color: var(--color-text); cursor: pointer; text-align: left; }
.removed > button svg { transition: transform .15s; stroke: var(--color-text-sub); }
.removed[data-open="1"] > button svg { transform: rotate(90deg); }
.removed > button b { font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.removed > button .note { font-size: 13px; color: var(--color-text-muted); }
.rrow { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 24px; border-top: 1px solid var(--color-border); background: var(--color-surface-muted); }
.rrow b { color: var(--color-text-sub); }
.rrow span { font-size: 13px; color: var(--color-text-muted); }
.rrow a { font-size: 13px; font-weight: 500; }

/* 目標シート */
.panel { background: var(--color-surface); border: 0; border-radius: var(--radius-block); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.removed-note { background: var(--color-warn-bg); border: 1px solid var(--color-warn-border); color: var(--color-warn-text); border-radius: var(--radius-block); padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.total { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: center; padding: 28px 32px; }
.total-main { display: flex; flex-direction: column; gap: 10px; }
.total-main .lbl { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--color-text); letter-spacing: .06em; }
.total-main .pct { font-size: 96px; font-weight: 300; letter-spacing: -.04em; line-height: .9; }
.total-main .pct small { font-size: 30px; }
.total-main .track { height: 6px; }
.total-main .note { font-size: 13px; color: var(--color-text-sub); }
.total-items { display: flex; flex-direction: column; gap: 12px; padding-left: 48px; border-left: 1px solid var(--color-border); }
.total-items .cap { font-size: 12.5px; color: var(--color-text-muted); }
.total-items p { margin: 0; color: var(--color-text-sub); }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) 240px 64px; align-items: center; gap: 16px; }
.trow span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.trow .pct { text-align: right; font-size: 17px; }
.step { width: 26px; height: 26px; border-radius: var(--radius-cell); background: var(--color-step); color: var(--color-text); font-family: var(--font-en); font-size: 14px; font-weight: 500; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fhead label, .h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: .06em; margin: 0; }
.h2 { font-size: 22px; }
/* 編集はペンのマークだけ（2026-11-05 宮村さん「これダサいからペンマークとかにして」） */
.penbtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-tool); background: transparent; color: var(--color-text-sub); cursor: pointer; box-shadow: inset 0 0 0 1px var(--color-border); }
.penbtn:hover { background: var(--color-hover); color: var(--color-text); box-shadow: none; }
.penbtn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.penbtn svg { width: 18px !important; height: 18px !important; }
.flabel { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.fhead-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ftext { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.9; color: var(--color-text); padding: 14px 18px; border-radius: var(--radius-block); background: var(--color-bg); }
.ftext.empty { color: var(--color-text-muted); }
.fmeta { font-size: 12px; color: var(--color-text-muted); }
.field { transition: border-color .12s, background-color .12s; }
.field:hover { border-color: var(--color-border-hover); }
.field:focus { outline: none; border-color: var(--color-focus) !important; box-shadow: 0 0 0 3px var(--color-edit-ring); background: var(--color-surface); }
.field::placeholder { color: var(--color-placeholder); }
.field[aria-invalid="true"] { border-color: var(--color-danger) !important; background: var(--color-danger-hover); }
textarea.field { width: 100%; min-height: 128px; resize: vertical; padding: 14px 18px; border: 1px solid var(--color-border); border-radius: var(--radius-block); background: var(--color-surface); font: inherit; font-size: 14.5px; line-height: 1.9; color: var(--color-text); }
textarea.field.blank { border-style: dashed; border-color: var(--color-border-strong); }
textarea.f23 { min-height: 152px; } textarea.f5 { min-height: 120px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
/* 項目のタブ（参考ページの選択肢ボタン：開いているものは黒） */
.itabs { display: flex; flex-wrap: wrap; gap: 6px; }
.itab { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 10px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-tool); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.itab:hover { border-color: var(--color-text); }
.itab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.itab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22em; }
.itab-pct { font-family: var(--font-en); font-weight: 500; color: var(--tx, var(--color-text-sub)); font-variant-numeric: tabular-nums; }
.itab.on { border-color: transparent; background: var(--color-sel); color: var(--color-on); font-weight: 700; box-shadow: none; }
.itab.on .itab-pct { color: var(--color-on); }
.notes-panel { display: flex; flex-direction: column; gap: 16px; }
.notes-lead { margin: 0; font-size: 13px; color: var(--color-text-sub); }
.notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.note-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.note-cell .fhead label { font-size: 14px; }
.note-cell.now textarea { border-color: var(--color-step); }
textarea.note { min-height: 72px; }
@media (max-width: 760px) { .notes-grid { grid-template-columns: minmax(0, 1fr); } }
.istats { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 8px; }
.istat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--color-border); }
.istat:nth-last-child(1 of .istat) { border-right: 0; }
.istat span { font-size: 12px; color: var(--color-text-sub); }
.istat b { font-family: var(--font-en); font-size: 26px; font-weight: 400; line-height: 1.2; color: var(--color-text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.istat b small { font-family: var(--font); font-size: 12px; font-weight: 500; margin-left: 3px; color: var(--color-text-sub); }
.istat-note { font-size: 12px; color: var(--color-text-muted); align-self: flex-end; }
.mtg { font-size: 13px !important; font-weight: 700; color: var(--color-text) !important; }
.mtg small { font-weight: 500; color: var(--color-text-sub); margin-left: 1px; }
.items-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.items-head .right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mdot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--color-link); flex: none; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-text-sub); }
.item { background: var(--color-surface); border: 0; border-radius: var(--radius-block); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.item-top { display: grid; grid-template-columns: minmax(0, 1fr) 280px auto; align-items: center; gap: 32px; }
.item-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-name > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-name h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.45; letter-spacing: .06em; overflow-wrap: anywhere; }
.kind { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 2px; background: transparent; border: 1px solid var(--color-border); color: var(--color-text-sub); white-space: nowrap; }
.item-name .meta { font-size: 13px; color: var(--color-text-sub); }
.item-pct { display: flex; flex-direction: column; gap: 8px; }
.item-pct > div { display: flex; align-items: baseline; justify-content: space-between; }
.item-pct .pct { font-size: 40px; font-weight: 300; line-height: 1; }
.months { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.mrow { display: grid; grid-template-columns: 88px repeat(6, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.mlabel { display: flex; flex-direction: column; justify-content: center; padding: 0 10px; border-radius: var(--radius-block); background: var(--color-bg); color: var(--color-text); box-shadow: inset 2px 0 0 var(--color-text); }
.mlabel b { font-size: 13px; letter-spacing: .08em; } .mlabel span { font-size: 11.5px; color: var(--color-text-sub); }
.mcell { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: var(--radius-block); min-width: 0; }
.mcell.now { background: var(--color-bg); box-shadow: inset 0 0 0 1.5px var(--color-text); }
.out { opacity: .4; }
.mtop { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 12px; line-height: 1.5; flex-wrap: wrap; }
.mtop b { color: var(--color-text); white-space: nowrap; }
.nowtag { margin-left: 6px; padding: 1px 6px; border-radius: 2px; background: var(--color-marker); color: var(--color-text); font-size: 11.5px; font-weight: 700; }
.mtg { color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mcell input { width: 100%; height: 38px; padding: 0 10px; border-radius: var(--radius-cell); font-family: var(--font-en); font-size: 17px; font-weight: 500; text-align: right; color: var(--color-text); border: 1px solid var(--color-border); background: var(--color-surface); min-width: 0; }
.mcell.future input { border-color: var(--color-border); background: var(--color-surface-muted); }
.togs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
/* できた／できなかった（2026-11-05 宮村さん「ボタンのできたできなかったのボタンの挙動が逆に見えるから修正して」）
   選んだ方＝色で塗って頭に ✓。選んでいない方＝塗らず・うすい枠と字。片方を選んだら、もう片方はさらに薄く。まだ来ていない月も同じ */
.tog { height: 36px; padding: 0 4px; border-radius: var(--radius-tool); font-size: 12px; cursor: pointer; white-space: nowrap; border: 1px solid var(--color-border); background: transparent; color: var(--color-text-sub); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: background .12s, color .12s, border-color .12s, opacity .12s; }
.mcell.future .tog { border-color: var(--color-border-strong); background: transparent; color: var(--color-text-sub); }
.togs:has(.tog[aria-pressed="true"]) .tog[aria-pressed="false"] { opacity: .5; }
.tog[aria-pressed="false"]:hover { border-style: solid; border-color: var(--color-text); color: var(--color-text); opacity: 1 !important; }
.tog[aria-pressed="true"]::before { content: "✓ "; }
.tog.yes[aria-pressed="true"], .mcell.future .tog.yes[aria-pressed="true"] { border: 1px solid var(--color-done-border); background: var(--color-done-border); color: var(--color-on); font-weight: 700; }
.tog.no[aria-pressed="true"], .mcell.future .tog.no[aria-pressed="true"] { border: 1px solid var(--color-miss-border); background: var(--color-miss-border); color: var(--color-on); font-weight: 700; }
.collapsed { background: var(--color-surface); border: 0; border-radius: var(--radius-block); padding: 16px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto 200px 56px auto; align-items: center; gap: 16px; }
.collapsed > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.collapsed > div b { font-size: 16px; font-weight: 700; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collapsed .pct { font-size: 20px; text-align: right; }

/* 項目の編集パネル */
.editp { background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-card); box-shadow: var(--shadow-panel); overflow: hidden; }
.editp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 24px; background: var(--color-header); border-bottom: 0; }
.editp-head b { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text); font-size: 14px; letter-spacing: .06em; }
.editp-head span { font-size: 12px; color: var(--color-header-sub); }
.editp-body { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.erow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.efield { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.efield > label, .efield legend { font-size: 14px; font-weight: 700; color: var(--color-text); padding: 0; }
fieldset.efield { border: 0; margin: 0; padding: 0; }
.einput { height: 44px; padding: 0 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-tool); font: inherit; font-size: 14px; color: var(--color-text); background: var(--color-surface); width: 100%; min-width: 0; }
.einput.numin { text-align: right; font-family: var(--font-en); font-weight: 500; font-size: 17px; }
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.kinds label { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: var(--radius-tool); cursor: pointer; font-weight: 500; }
.kinds label:has(input:checked) { border: 1px solid transparent; background: var(--color-sel); color: #fff; font-weight: 700; }
.kinds input { accent-color: var(--color-header); margin: 0; }
.unit-line, .total-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.unit-line .einput { width: 96px; flex: none; }
.total-line .einput { width: 160px; flex: none; }
.chips-label { font-size: 12px; color: var(--color-text-muted); }
.chip { height: 32px; padding: 0 12px; border-radius: var(--radius-tool); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--color-text); }
.chip[aria-pressed="true"] { border-color: transparent; background: var(--color-sel); color: var(--color-on); font-weight: 700; }
.hint { font-size: 12px; color: var(--color-text-muted); }
.tg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tg-head > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tg-head b { font-size: 14px; }
.tg-grid .mcell { padding: 0; gap: 4px; }
.tg-grid .mcell > span { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tg-grid .mcell input { height: 40px; }
.warn { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--color-warn-bg); border: 1px solid var(--color-warn-border); color: var(--color-warn-text); border-radius: var(--radius-block); padding: 12px 16px; }
.warn svg { stroke: var(--progress-near-text); }
.warn .grow { flex: 1; }
.editp-desc { margin: 0; padding: 12px 16px; border-radius: var(--radius-block); background: var(--color-bg); color: var(--color-text-sub); }
.editp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.editp-foot .right { display: flex; gap: 8px; margin-left: auto; }
.eerr { color: var(--color-danger); font-weight: 700; margin: 0; }

/* まだ何も書いていない人 */
.guide { background: var(--color-surface); border: 0; border-radius: var(--radius-block); padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.guide h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; }
.guide > div > p { margin: 6px 0 0; color: var(--color-text-sub); }
.guide ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-block); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.guide li.next { border: 1.5px solid var(--color-text); }
.guide li.done { opacity: .6; }
.guide li > div { display: flex; align-items: center; gap: 10px; }
.guide li > div > b { font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.guide .gnum { width: 28px; height: 28px; border-radius: 2px; background: var(--color-surface-sub); color: var(--color-text-sub); font-family: var(--font-en); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.guide li.next .gnum { background: var(--color-primary); color: var(--color-on); }
.guide li.done .gnum { background: var(--progress-done-tint); color: var(--progress-done-text); }
.guide .tag { margin-left: auto; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 2px; background: var(--color-marker); color: var(--color-text); white-space: nowrap; }
.guide li p { margin: 0; font-size: 13px; color: var(--color-text-sub); }
.guide li a { font-size: 13px; font-weight: 700; }
.noitems { border: 1px solid var(--color-border-strong); background: transparent; border-radius: var(--radius-block); padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.noitems .ic { width: 56px; height: 56px; border-radius: 2px; background: var(--color-header); border: 0; display: flex; align-items: center; justify-content: center; }
.noitems .ic svg { width: 26px; height: 26px; stroke: var(--color-text); stroke-width: 2; }
.noitems p { margin: 0; color: var(--color-text-sub); }
.noitems p b { color: var(--color-text); font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; color: var(--color-text-sub); }
.examples span + span { padding: 3px 10px; border-radius: 2px; background: var(--color-surface); border: 1px solid var(--color-border); }

/* 確かめる窓 */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(21, 21, 21, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: var(--color-surface); border-radius: var(--radius-card); padding: 26px; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-menu); }
.modal-card h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.modal-card p { margin: 0; color: var(--color-text-sub); white-space: pre-line; }
.modal-bar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.loading { padding: 48px 0; color: var(--color-text-sub); text-align: center; }


/* ===== Notion に寄せた上書き（2026-11-05 宮村さん「完全に変えて」「完全にこっちにシフトで」）
   前の見た目（黒い帯・黄色いマーカー・「——」の線・番号・色の縁と影・黒塗りのボタン）はここで全部外す ===== */
body { letter-spacing: 0; }
.top { color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.crumbs .brand { letter-spacing: 0; font-size: 15px; font-weight: 600; }
.deptabs { background: var(--color-bg); box-shadow: none; display: flex; flex-wrap: wrap; gap: 4px; }
.deptab { flex: none; border: 0; border-radius: var(--radius-tool); padding: 6px 12px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--color-text-sub); background: transparent; }
.deptab:hover { background: var(--color-hover); color: var(--color-text); }
.deptab .n { display: none; }
.deptab .lb { flex: none; }
.title-row h1, .hero h1 { background-image: none; padding: 0; letter-spacing: 0; font-weight: 700; }
.eyebrow { letter-spacing: 0; color: var(--color-text-sub); }
.eyebrow::before { display: none; }
.dep-bar { display: none; }
.page-icon { background: #191919; box-shadow: 0 6px 16px -8px rgba(15, 15, 15, .4); }
.stats > div { border-right-color: var(--color-border); }
.stats dd { font-weight: 600; font-size: 44px; letter-spacing: -.02em; }
.stats dt { color: var(--color-text-sub); font-weight: 500; }
/* カード：縁も影もなく、面だけ（Notion のギャラリーのカード） */
.card, .pcard { box-shadow: 0 0 0 1px rgba(15, 15, 15, .08), 0 2px 4px rgba(15, 15, 15, .05) !important; background: var(--color-surface); transition: background .15s; }
.card:hover, .pcard:hover { transform: none; background: var(--color-hover); }
.card .no { display: none; }
.card-top { border-bottom: 0; padding-bottom: 0; justify-content: flex-start; }
.card-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--color-surface-sub); color: var(--c-strong); }
.card-mark svg { width: 20px; height: 20px; }
.card-name { font-weight: 700; letter-spacing: 0; font-size: 18px; }
.card-sub { color: var(--color-text-sub); font-weight: 500; letter-spacing: 0; }
.card-foot .go { color: var(--color-text-sub); font-weight: 500; }
.pill { border-color: var(--color-border-strong); border-radius: 999px; color: var(--color-text-sub); font-weight: 500; }
.pcard-cover { background: var(--color-surface-sub); border-bottom: 0; }
.pcard-name span { letter-spacing: 0; font-weight: 700; }
.badge { font-weight: 500; letter-spacing: 0; }
.panel, .item, .activity, .removed, .guide, .collapsed { background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-border); }
.activity h2 { border-bottom: 1px solid var(--color-border); font-weight: 700; letter-spacing: 0; }
.feed a:hover, .pmenu button:hover, .iconbtn:hover { background: var(--color-hover); }
.pwrap .iconbtn { background: transparent; }
.ftext { background: var(--color-surface-muted); }
.fhead label, .h2, .flabel { letter-spacing: 0; font-weight: 700; }
.mlabel { background: var(--color-surface-muted); box-shadow: none; }
.mcell.now { background: var(--color-surface-muted); box-shadow: inset 0 0 0 1px var(--color-border-hover); }
.nowtag { background: var(--color-sel); color: var(--color-text); }
.mcell input, textarea.field, .einput, .seg, .itab, .chip, .kinds label { background: var(--color-surface-muted); border-color: var(--color-border); color: var(--color-text); }
.seg, .itab { background: transparent; border-color: var(--color-border); }
.seg:hover, .itab:hover { background: var(--color-hover); border-color: var(--color-border-strong); }
.mcell.future input { background: var(--color-bg); }
.item-pct .pct, .total-main .pct, .istat b { font-weight: 600; }
.editp-head { background: var(--color-surface-sub); }
.examples span + span { background: var(--color-surface-muted); }
.noitems .ic { background: var(--color-sel); }
.pmenu, .modal-card, .login-card { background: var(--color-surface-sub); border-color: var(--color-border-strong); }
.bar { border-bottom-color: var(--color-border); }

/* 明るい地：選んでいるものは明るい面＋墨色の字（白い字だと読めない）。目標なしの箱は薄い灰の面 */
.deptab.on, .seg[aria-pressed="true"], .itab.on, .itab.on .itab-pct, .chip[aria-pressed="true"], .kinds label:has(input:checked) { color: var(--color-text); font-weight: 600; }
.seg[aria-pressed="true"], .itab.on { background: var(--color-sel); border-color: var(--color-border-strong); }
.pcard-empty { background: var(--color-surface-sub); }

/* 狭い画面（スマホ幅でも横にはみ出さない） */
@media (max-width: 1100px) {
  .item-top { grid-template-columns: minmax(0, 1fr) 220px; }
  .item-top > .btn, .item-top > .penbtn { grid-column: 1 / -1; justify-self: start; }
  .mrow { grid-template-columns: 64px repeat(3, minmax(0, 1fr)); }
  .mrow .mlabel { grid-row: span 2; }
  .collapsed { grid-template-columns: minmax(0, 1fr) auto 120px 48px auto; }
  .deptab { gap: 8px; padding: 10px; font-size: 14px; }
  .deptab .n { font-size: 18px; }
}
@media (max-width: 760px) {
  .top { padding: 0 16px; }
  .top-right .fy { display: none; }
  .crumbs .brand span { display: none; }
  .deptabs { gap: 6px; padding: 8px 16px; }
  .deptab { flex-direction: column; align-items: flex-start; gap: 4px; padding: 7px 8px; font-size: 12px; letter-spacing: 0; }
  .deptab .n { font-size: 16px; }
  .deptab .dot { display: none; }
  .deptab .lb { width: 100%; white-space: normal; overflow: visible; text-overflow: clip; word-break: break-all; line-height: 1.35; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .cover { height: 150px; }
  .page-icon { width: 72px; height: 72px; margin-top: -36px; border-radius: 16px; }
  .page-icon svg { width: 38px; height: 38px; }
  .nlab span { min-width: 0; width: 100%; }
  .stats > div { padding-right: 20px; margin-right: 20px; }
  .stats dd { font-size: 40px; }
  .title-row h1 { font-size: 24px; }
  .bar.sticky .title-row h1 { font-size: 18px; }
  .panel, .item { padding: 20px 18px; }
  .total { grid-template-columns: 1fr; gap: 24px; padding: 24px 18px; }
  .total-main .pct { font-size: 72px; }
  .total-items { padding-left: 0; border-left: 0; }
  .trow { grid-template-columns: minmax(0, 1fr) 80px 48px; }
  .two, .erow, .guide ol { grid-template-columns: 1fr; }
  .guide { padding: 22px 18px; }
  .item-top { grid-template-columns: 1fr; gap: 16px; }
  .istat { padding-right: 16px; margin-right: 16px; }
  .istat b { font-size: 22px; }
  .mrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrow .mlabel { grid-column: 1 / -1; grid-row: auto; padding: 4px 10px; flex-direction: row; gap: 8px; }
  .tog { white-space: normal; height: auto; min-height: 36px; padding: 4px 2px; letter-spacing: 0; line-height: 1.25; overflow: visible; text-overflow: clip; }
  .collapsed { grid-template-columns: minmax(0, 1fr) auto; }
  .collapsed .track { display: none; }
  .rrow { grid-template-columns: 1fr auto; }
  .rrow span { grid-column: 1 / -1; grid-row: 2; }
  .people { grid-template-columns: 1fr; }
}

/* ===== 2026-11-05「1〜3で進めて」：Notion「習慣トラッカー Pro」に寄せた上書き ===== */
/* 3. 区切りの見出し：英字の帯をやめ、日本語の見出し＋下に細い線 */
.nlab { display: block; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; }
.nlab span { display: block; min-width: 0; width: auto; padding: 0; background: none; color: var(--color-text); font-family: var(--font-ja, inherit); font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1.4; border-radius: 0; }
main.wrap > .nlab { margin-bottom: -6px; margin-top: 8px; }
.activity h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* 上の見出しと同じ言葉なので画面には出さない（読み上げには残す） */

/* 1. 達成率の丸いリング（色は札と同じ） */
.ring { flex: none; display: inline-block; vertical-align: middle; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; }
.ring-bg { stroke: var(--color-track); }
.ring-fg { stroke: var(--bar, var(--color-text-sub)); stroke-linecap: round; }
.pcard-prog { grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; }
.itab .ring { margin-right: -4px; }

/* 2. 部署の画面の「カード／表」と表 */
.list-actions { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ptable-wrap { overflow-x: auto; background: var(--color-surface); border-radius: var(--radius-card, 8px); box-shadow: 0 0 0 1px var(--color-border); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { padding: 10px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--color-border-soft); }
.ptable thead th { font-size: 12.5px; font-weight: 500; color: var(--color-text-sub); white-space: nowrap; background: var(--color-surface-sub); }
.ptable .r { text-align: right; }
.ptable tbody th { font-weight: 700; white-space: nowrap; }
.ptable tbody th a { color: var(--color-text); text-decoration: none; }
.ptable tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ptable tbody tr:hover { background: var(--color-hover); }
.ptable tbody tr[data-go] { cursor: pointer; }
.ptable tfoot th, .ptable tfoot td { border-bottom: 0; border-top: 1px solid var(--color-border); background: var(--color-surface-sub); font-weight: 700; white-space: nowrap; }
.ptable .num { font-family: var(--font-en); font-variant-numeric: tabular-nums; color: var(--color-text-sub); white-space: nowrap; }
.tpct { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.tpct .pct { font-family: var(--font-en); font-weight: 600; min-width: 3em; text-align: right; }
.tits { display: flex; flex-wrap: wrap; gap: 6px; }
.tit { display: inline-flex; align-items: center; gap: 5px; max-width: 15em; padding: 2px 8px 2px 5px; border: 1px solid var(--color-border); border-radius: 999px; font-size: 12.5px; }
.tit-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--color-text-sub); }
.tit b { font-family: var(--font-en); font-weight: 600; color: var(--tx, var(--color-text-sub)); white-space: nowrap; }
.tnone, .tnote { font-size: 12.5px; color: var(--color-text-muted); font-weight: 400; }
@media (max-width: 760px) {
  .nlab span { font-size: 16px; }
  .ptable { font-size: 13px; min-width: 640px; }
  .ptable th, .ptable td { padding: 8px 10px; }
}

/* ===== 2026-11-05 月ごとの振り返り：月のカードにその月の全項目の結果をまとめた ===== */
.notes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.note-cell { gap: 10px; padding: 14px 16px; background: var(--color-surface); border-radius: var(--radius-card, 8px); box-shadow: 0 0 0 1px var(--color-border); }
.note-cell.now { box-shadow: 0 0 0 1.5px var(--color-border-hover); }
.note-cell.now textarea { border-color: var(--color-border); }
.note-cell.future { background: var(--color-surface-sub); }
.note-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.note-m { font-size: 16px; font-weight: 700; }
.msum { margin-left: auto; font-size: 12.5px; color: var(--color-text-sub); white-space: nowrap; }
.msum b { font-family: var(--font-en); font-size: 15px; color: var(--color-text); }
.mitems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mitem { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 3.4em; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--color-border-soft); font-size: 13px; }
.mitem:first-child { border-top: 0; }
.mitem-n { overflow-wrap: anywhere; line-height: 1.45; }
.mitem-v { font-family: var(--font-en); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--color-text-sub); white-space: nowrap; }
.mitem-p { font-family: var(--font-en); font-weight: 600; text-align: right; color: var(--tx, var(--color-text-sub)); font-variant-numeric: tabular-nums; }
.mitem.nov .mitem-n, .note-cell.future .mitem-n { color: var(--color-text-sub); }
.note-cell .fhead { margin-top: 2px; }
.note-cell .fhead label { font-size: 12.5px; font-weight: 500; color: var(--color-text-sub); }
textarea.note { min-height: 56px; }
@media (max-width: 1100px) { .notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .notes-grid { grid-template-columns: minmax(0, 1fr); } .mitem { grid-template-columns: 16px minmax(0, 1fr) 3.4em; row-gap: 0; } .mitem-v { grid-column: 2; grid-row: 2; } .mitem-p { grid-column: 3; grid-row: 1 / span 2; } }

/* ===== 2026-11-05 1の文から項目を作る：候補の一覧 ===== */
.pc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pc { display: grid; grid-template-columns: 22px minmax(0, 1fr) 260px; gap: 12px 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--color-border-soft); }
.pc:first-child { border-top: 0; }
.pc > input[type="checkbox"] { width: 18px; height: 18px; margin-top: 10px; accent-color: var(--color-text); }
.pc:not(.on) .pc-main > input, .pc:not(.on) .pc-total { opacity: .55; }
.pc-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pc-src { font-size: 12px; color: var(--color-text-muted); overflow-wrap: anywhere; }
.pc-why { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--progress-near-text, var(--color-text-sub)); }
.pc-why .i { width: 14px; height: 14px; }
.pc-total { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-total label { font-size: 12px; color: var(--color-text-sub); }
.pc-total .total-line { display: flex; align-items: center; gap: 6px; }
.pc-total input { width: 9em; }
.pc-basis { font-size: 12px; color: var(--color-text-muted); }
.pc-skipped { border-top: 1px solid var(--color-border); padding-top: 12px; font-size: 13px; }
.pc-skipped summary { cursor: pointer; color: var(--color-text-sub); }
.pc-skipped ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pc-skipped li { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pc-skipped li span { overflow-wrap: anywhere; min-width: 0; }
.pc-skipped em { font-style: normal; font-size: 12px; color: var(--color-text-muted); }
.pc-note { font-size: 12.5px; color: var(--color-text-sub); }
@media (max-width: 760px) { .pc { grid-template-columns: 22px minmax(0, 1fr); } .pc-total { grid-column: 2; } }

/* 年度のタブ（2026-11-05「ここはタブで行こう！」）：部署のタブと同じ形で、期間の並びの上の行に */
.fytabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.bar .wrap > .fytabs { flex-basis: 100%; order: -1; }
.fytabs .deptab { cursor: pointer; font-family: inherit; }

/* 今月の枠：線を赤く・少し太く（2026-11-05 宮村さん「枠の線の色を赤くしてちょっと太くするくらいでいいよ！」→「さっきのスクショの箇所以外変えなくていい！」）。項目の月のマスだけ */
.mcell.now { box-shadow: inset 0 0 0 2.5px var(--color-danger); }

/* 在籍期間（2026-11-05）：まとめの上の欄と、期間の外の月を薄く */
.span-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; }
.items-head > .span-row { flex-basis: 100%; }
.span-row label { font-weight: 700; }
.span-row select { width: auto; min-width: 140px; height: 34px; padding: 0 8px; }
.span-row .note { color: var(--color-text-sub); font-size: 12.5px; }
.mcell.outspan, .note-cell.outspan { opacity: .45; }
.spantag { margin-left: 6px; padding: 1px 6px; border-radius: 2px; background: var(--color-border); color: var(--color-text-sub); font-size: 11.5px; font-weight: 700; }

/* 社員／バイトの札（2026-11-05）。どちらも塗りの札（宮村さん「見にくいバイトの色変えるなら社員も変えろや」）。達成状況の色（緑・黄・赤・灰）と重ならない青と紫。白い字との読みやすさ 社員 5.4・バイト 5.6 */
.rtag { display: inline-flex; align-items: center; flex: none; margin-right: 8px; padding: 1px 8px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.6; vertical-align: middle; background: #2E6DA4; color: #fff; }
.rtag-b { background: #7B4FB0; }
h1 .rtag { font-size: 12px; }
.ptable tbody th .rtag { margin-right: 6px; }
/* メンバーの見出しの行：見出し・全員／社員／バイトのタブ・名前の検索 */
.mem-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; margin-top: 8px; }
.mem-lab { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.mem-head .deptab .mem-c { margin-left: 6px; font-size: 12px; color: var(--color-text-sub); }
.mem-search { position: relative; display: inline-flex; align-items: center; margin-left: auto; }
.mem-search svg { position: absolute; left: 10px; width: 16px; height: 16px; fill: none; stroke: var(--color-text-sub); stroke-width: 2; pointer-events: none; }
.mem-search input { width: 220px; max-width: 100%; padding-left: 32px; min-height: 36px; }
.mem-shown { font-size: 13px; color: var(--color-text-sub); }
[data-person][hidden] { display: none !important; }
@media (max-width: 640px) { .mem-search { margin-left: 0; width: 100%; } .mem-search input { width: 100%; } }

/* 年度・期間のプルダウン（2026-11-05） */
.psel { display: inline-flex; align-items: center; gap: 8px; }
.psel select { width: auto; min-width: 150px; height: 36px; padding: 0 10px; font-size: 14px; font-weight: 700; }
/* 少ないほど良い（2026-11-06） */
.lower-line{display:flex;gap:8px;align-items:center;font-size:13px;margin:4px 0 12px;cursor:pointer}

/* 欄1〜3のタブと、振り返りの畳み（2026-11-06 他部署の意見） */
.ttabs .itab-name { max-width: 30em; }
.ttab .step { width: 22px; height: 22px; font-size: 12.5px; flex: none; }
.ttab svg.i, .note-tg svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.ttab[aria-expanded="true"] svg.i, .note-tg[aria-expanded="true"] svg.i { transform: rotate(90deg); }
.note-tg { width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; align-items: center; }
.note-tg svg.i { margin-left: auto; color: var(--color-text-sub); }
.note-tg:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }
.notes-grid { align-items: start; }
.note-cell.closed { padding-block: 10px; }
.note-cell.closed:hover { box-shadow: 0 0 0 1px var(--color-border-hover); }

/* 振り返り：開いた月は大きく、終わった月は小さな札（2026-11-06） */
.notes-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.notes-big > .note-cell.big:only-child { grid-column: 1 / -1; } /* 開いているのが前月の1枚だけなら横幅いっぱい */
.note-cell.big { padding: 22px 24px; gap: 12px; }
.note-cell.big .note-m { font-size: 22px; }
.note-cell.big .msum { font-size: 14px; }
.note-cell.big .mitem { font-size: 14.5px; padding-block: 6px; }
.note-cell.big textarea.note { min-height: 140px; font-size: 14.5px; }
.notes-past { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.np-lab { font-size: 12px; color: var(--color-text-muted); }
.np-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.note-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px; border: 1px solid var(--color-border-soft); border-radius: var(--radius-tool); background: transparent; color: var(--color-text-sub); font: 400 12.5px var(--font); cursor: pointer; }
.note-chip b { font-weight: 600; color: var(--color-text-sub); }
.note-chip svg.i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.note-chip:hover { background: var(--color-hover); color: var(--color-text); }
.note-chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.note-chip.outspan { opacity: .5; }
@media (max-width: 760px) { .notes-big { grid-template-columns: minmax(0, 1fr); } .note-cell.big { padding: 16px; } }
.itabs-br { flex-basis: 100%; height: 0; } /* 振り返りのタブのあとで行を変える（2026-11-06） */

/* 部署の中の区分け（2026-11-06 宮村さん「SNS事業部を部署ごとに分けて並べて欲しい」→「縦で区切らないで…タブとかにする？」→「タブにして」）。区分けは絞り込みのタブ、人のメニューに区分けの欄 */
.pm-team { display: flex; align-items: center; gap: 8px; padding: 4px 12px 6px; font-size: 14px; color: var(--color-text); }
.pm-team select { flex: 1; min-width: 0; height: 34px; padding: 0 8px; font-size: 13px; }

/* 「月ごとの振り返り」のボタンを目立つ色に（2026-11-24 宮村さん「月毎の振り返りを目立つ色にして」） */
.itab.notes { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on); font-weight: 700; }
.itab.notes:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: var(--color-on); }
/* 1枚に並べた振り返りの見出し（ボタンと同じ色の帯で、どこからが振り返りか分かるように） */
.notes-panel { border-top: 4px solid var(--color-primary); }
.notes-h { margin: 0; font-size: 17px; font-weight: 700; color: var(--color-primary); }
/* 振り返りの「年間で見る」「戻る」（2026-11-24 宮村さん「年間で見るってボタンにしてそこを押したら過去のやつが見れるように」「戻るボタンもつけて」） */
.notes-headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notes-actions { display: flex; justify-content: center; }
.notes-actions .btn small { font-weight: 500; opacity: .85; margin-left: 2px; }
.notes-panel .btn svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.note-top .nowtag { margin-left: 0; }
/* 振り返りの「年間で見る」は表（2026-11-24 宮村さん「年間で見る押した時にもっと見やすくできない？」→「１にしてクリックしたらさらに書き込めるように」） */
.ny-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-card, 8px); background: var(--color-surface); }
.ny-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ny-table th, .ny-table td { padding: 10px 10px; border-bottom: 1px solid var(--color-border-soft); text-align: left; vertical-align: middle; }
.ny-table thead th { font-size: 12px; font-weight: 600; color: var(--color-text-sub); background: var(--color-surface-sub); white-space: nowrap; }
.ny-table thead .ny-it { min-width: 5.5em; } /* 見出しは番号だけ。項目名は表の上の凡例（.ny-legend） */
.ny-no { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--color-sel); color: var(--color-text); font-family: var(--font-en); font-size: 12px; font-weight: 700; }
/* 項目名の一覧は全部同じ高さの箱に揃える（2026-11-24 宮村さん「高さとか揃えてバラバラすぎ」）。名前は2行まで、入らない分は … で切り、全文は title で出す */
.ny-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--ny-cols, 3), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; font-size: 13px; }
@media (max-width: 760px) { .ny-legend { grid-template-columns: minmax(0, 1fr); } }
.ny-legend li { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 8px 12px; box-sizing: border-box; border-radius: var(--radius-tool); background: var(--color-surface-sub); box-shadow: 0 0 0 1px var(--color-border-soft); }
.ny-legend li span:last-child { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
/* 改行は文節の切れ目で、2行の長さを揃える（2026-11-24 宮村さん「改行をもっと自然にして」）。auto-phrase が効かない環境は普通の折り返し */
.ny-legend li span:last-child { word-break: auto-phrase; line-break: strict; text-wrap: balance; }
.ny-m { position: sticky; left: 0; z-index: 1; background: var(--color-surface); white-space: nowrap; }
thead .ny-m { background: var(--color-surface-sub); }
.ny-mbtn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: var(--color-text); cursor: pointer; }
.ny-mbtn b { font-size: 15px; font-weight: 700; }
.ny-mbtn svg.i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; color: var(--color-text-muted); }
.ny-row.open .ny-mbtn svg.i { transform: rotate(90deg); color: var(--color-primary); }
.ny-mbtn .nowtag { margin-left: 2px; }
.ny-row { cursor: pointer; }
.ny-row:hover td, .ny-row:hover .ny-m { background: var(--color-hover); }
.ny-row.open td, .ny-row.open .ny-m { background: var(--color-edit-tint, var(--color-surface-sub)); }
.ny-row.outspan { opacity: .45; }
.ny-c { white-space: nowrap; }
.ny-c b { margin-left: 6px; font-family: var(--font-en); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tx, var(--color-text-sub)); }
.ny-c.nov b { color: var(--color-empty-value, var(--color-text-muted)); }
.ny-sum { white-space: nowrap; color: var(--color-text-sub); }
.ny-sum b { font-family: var(--font-en); font-size: 15px; color: var(--color-text); }
.ny-note { width: 100%; min-width: 9em; max-width: 0; } /* 残りの幅を全部使い、入らない分は … で切る */
.ny-note span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ny-empty { color: var(--color-text-muted); }
.ny-edit td { padding: 0; background: var(--color-edit-tint, var(--color-surface-sub)); cursor: default; }
.ny-edit-in { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; position: sticky; left: 0; box-sizing: border-box; } /* 幅は表の見えている幅に合わせる（goals.js の fitNyEdit） */
.ny-edit-in textarea.note { min-height: 120px; font-size: 14.5px; }
