/* tabikaban ID — CSP が style-src 'self' のため、スタイルはすべてこのファイルに置く（インライン style・外部フォントは使えない） */
:root {
  /* 色は tabikaban-ui.css（PS-F9）から取る。ここでは値を持たない */
  --bg:var(--tb-paper); --card:var(--tb-card); --fg:var(--tb-ink); --muted:var(--tb-muted); --line:var(--tb-line); --soft:var(--tb-paper);
  --accent:var(--tb-accent); --accent-ink:var(--tb-accent-ink); --accent-soft:var(--tb-accent-soft);
  --danger:#B3261E; --danger-soft:#FBEAE8;
  --warn:#7A5200; --warnbg:#FFF3D6;
  --ok:#1F6B3A; --ok-soft:#E4F4EA;
  /* スケジュールのステータスの色（未着手・進行中・完了・一時保留）。文字ではなく線の色なので、3:1以上の濃さ */
  --st-todo:#7D838C; --st-doing:#0B7285; --st-done:#2F7D4A; --st-hold:#B36B00;
  /* 管理: 支出のグラフの系列の色（8色。暗い表示は下で明るくする） */
  --lg1:#0B7285; --lg2:#B36B00; --lg3:#2F7D4A; --lg4:#B3261E; --lg5:#7B4FB0; --lg6:#2A47D6; --lg7:#8A6D00; --lg8:#5B6472;
  --radius:14px;
  --font:"M PLUS 1p","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Noto Sans JP",system-ui,sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --soft:#27302b;
    --danger:#FF8F86; --danger-soft:#3A1E1C;
    --warn:#F0C674; --warnbg:#3A3017;
    --ok:#7FD39A; --ok-soft:#173222;
    --st-todo:#9CA3AD; --st-doing:#4DC4D8; --st-done:#7FD39A; --st-hold:#F0C674;
    --lg1:#4DC4D8; --lg2:#F0C674; --lg3:#7FD39A; --lg4:#FF8F86; --lg5:#C7A4F0; --lg6:#9AAEFF; --lg7:#D6BE5A; --lg8:#A5B0BF;
  }
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.7 var(--font); -webkit-font-smoothing:antialiased; }
a { color:var(--accent); }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* ---- 外枠 ---- */
.shell { max-width:420px; margin:0 auto; padding:7vh 20px 48px; }
.shell.wide { max-width:680px; padding-top:32px; }
@media (min-width:1024px) {
  .shell.wide { max-width:760px; }
  .shell.wide.xwide { max-width:1200px; padding-left:32px; padding-right:32px; }
  .shell.wide.xwide.full { max-width:1760px; }   /* 支出（列が多い一覧）は、画面を広く使う */
}
.masthead { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
.brand { margin:0; font-size:24px; font-weight:800; letter-spacing:.01em; line-height:1.2; }
.brand a { color:inherit; text-decoration:none; }
.brand-id { margin-left:8px; padding:1px 8px; border-radius:6px; background:var(--accent); color:var(--accent-ink); font-size:13px; font-weight:700; letter-spacing:.08em; vertical-align:.25em; }
.lead { margin:0 0 20px; color:var(--muted); font-size:14.5px; }

.panel { padding:24px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
.panel[hidden] { display:none; }
h2 { margin:0 0 4px; font-size:20px; line-height:1.4; }
.gap { margin-bottom:16px; }
.sub { margin:0 0 18px; color:var(--muted); font-size:14px; }
section[data-view] > h2 + form, section[data-view] > h2 + p:not(.sub) { margin-top:14px; }

/* ---- フォーム ---- */
label { display:block; margin:0 0 14px; font-size:13.5px; font-weight:600; color:var(--fg); }
input { display:block; width:100%; margin-top:6px; min-height:44px; padding:11px 12px; font:inherit; font-weight:400; color:var(--fg); background:var(--bg); border:1.5px solid var(--line); border-radius:10px; }
input:focus { outline:2px solid var(--accent); outline-offset:0; border-color:var(--accent); background:var(--card); }
button { min-height:44px; padding:11px 18px; font:inherit; font-weight:700; color:var(--accent-ink); background:var(--accent); border:1.5px solid var(--accent); border-radius:10px; cursor:pointer; }
button:hover { filter:brightness(1.08); }
button:disabled { opacity:.6; cursor:default; }
form > button { width:100%; margin-top:4px; }
button.secondary { color:var(--fg); background:transparent; border-color:var(--line); font-weight:600; }
button.secondary:hover { border-color:var(--accent); filter:none; }
button.small { padding:6px 14px; font-size:13.5px; }
button.danger { background:var(--danger); border-color:var(--danger); color:#fff; }
button.link { padding:0; font-weight:400; color:var(--accent); background:none; border:0; text-decoration:underline; }
form.inline { display:flex; gap:8px; }
form.inline input { margin:0; }
form.inline button { width:auto; margin:0; white-space:nowrap; }
.hint { margin:10px 0 0; font-size:13px; color:var(--muted); }
.links { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 16px; margin:20px 0 0; padding-top:16px; border-top:1px solid var(--line); font-size:14px; }

/* ---- メッセージ ---- */
.msg { position:sticky; top:12px; z-index:5; margin:0 0 14px; padding:11px 14px; border-radius:10px; background:var(--card); border:1px solid var(--line); box-shadow:0 4px 16px rgba(10,20,40,.12); font-size:14.5px; }
.msg.err { color:var(--danger); background:var(--danger-soft); border-color:var(--danger); }
.msg.ok { color:var(--ok); background:var(--ok-soft); border-color:var(--ok); }
.warn { margin:0 0 14px; padding:10px 14px; border-radius:10px; background:var(--warnbg); color:var(--warn); font-size:14px; }
.badge { display:inline-block; padding:0 8px; border-radius:99px; background:var(--soft); color:var(--muted); font-size:12px; font-weight:700; line-height:1.7; }
.badge.ok { background:var(--ok-soft); color:var(--ok); }

/* ---- アカウント画面 ---- */
.account { display:block; }
.account[hidden] { display:none; }
.who { display:flex; align-items:center; gap:16px; margin:12px 0 18px; }
.avatar { flex:none; width:60px; height:60px; border-radius:50%; background:var(--accent); color:var(--accent-ink); display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:800; }
.who h2 { margin:0; font-size:24px; overflow-wrap:anywhere; }
.who-mail { margin:2px 0 0; color:var(--muted); font-size:14px; overflow-wrap:anywhere; }
.block-title { margin:30px 0 12px; font-size:17px; }

.services { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:10px; margin:0; padding:0; list-style:none; }
.services a { display:flex; align-items:center; gap:12px; padding:14px 16px; color:var(--fg); text-decoration:none; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.services a:hover { border-color:var(--accent); background:var(--accent-soft); }
.services .svc-icon { flex:none; width:44px; height:44px; border-radius:10px; object-fit:cover; background:#fff; }
.services .svc-text { min-width:0; }
.services strong { display:block; font-size:16px; }
.services small { display:block; color:var(--muted); font-size:12.5px; overflow-wrap:break-word; }
#services:empty::after { content:"利用できるサービスはまだありません。"; color:var(--muted); font-size:14px; }

.settings { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.set { border-top:1px solid var(--line); }
.settings .set:first-child { border-top:0; }
.set > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; cursor:pointer; list-style:none; }
.set > summary::-webkit-details-marker { display:none; }
.set > summary::after { content:""; flex:none; width:8px; height:8px; margin-left:4px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(-45deg); transition:transform .15s; }
.set[open] > summary::after { transform:rotate(45deg); }
.set > summary:hover { background:var(--soft); }
.set-name { font-weight:700; }
.set-val { flex:1; min-width:0; text-align:right; color:var(--muted); font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.set > form, .set > ul, .set > p { margin:0; padding:8px 18px 20px; }
.set > p.warn { margin:0 18px 14px; padding:10px 14px; }
.set > form > .warn { margin-bottom:14px; }

.sessions { list-style:none; font-size:14px; }
.set > ul.sessions { padding-top:0; }
.sessions li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line); }
.sessions li:first-child { border-top:0; }
.sessions li > div { min-width:0; overflow-wrap:anywhere; }
.sessions small { display:block; color:var(--muted); }
.sessions button { padding:6px 12px; font-size:13px; flex:none; }

.danger-zone { margin-top:28px; background:transparent; border:1px solid var(--line); border-radius:var(--radius); }
.danger-zone > summary .set-name { color:var(--danger); font-weight:600; }

/* ---- 管理画面 ---- */
.admin-link { margin:22px 0 0; font-size:14px; }
.admin .back { margin:0 0 8px; padding:0; border:0; }
.admin h2 { margin:0 0 6px; }
.admin .sub { margin:0 0 14px; color:var(--muted); font-size:14px; }
.admin input[type=search] { width:100%; max-width:360px; margin-bottom:14px; }
.admin-users-scroller { overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:thin; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
.admin-users { display:flex; flex-direction:column; gap:0; width:max-content; min-width:100%; }
.admin-user { padding:8px 12px; border-top:1px solid var(--line); }
.admin-user:first-child { border-top:0; }
.admin-user-cols-head { position:sticky; top:0; z-index:1; background:var(--soft); border-top:0; padding-top:10px; padding-bottom:8px; }
.admin-user-cols-head .admin-user-head { color:var(--muted); font-size:12px; font-weight:600; }
.admin-user-head { display:flex; flex-wrap:nowrap; align-items:baseline; gap:6px 8px; font-size:14px; line-height:1.35; white-space:nowrap; }
.admin-user-head strong { font-weight:700; flex:none; }
.admin-user-mail { color:var(--muted); font-size:13px; flex:none; }
.admin-user-sep { color:var(--line); font-weight:400; user-select:none; flex:none; }
.admin-user-svcs { display:grid; grid-template-columns:repeat(var(--svc-n, 5), minmax(4.75rem, max-content)); gap:0; margin-top:6px; align-items:center; justify-items:center; }
.admin-svc-col { min-width:4.75rem; padding:2px 4px; text-align:center; font-size:12.5px; font-weight:600; white-space:nowrap; }
.admin-plan-col { min-width:5rem; padding:2px 8px; text-align:center; font-size:12.5px; font-weight:600; white-space:nowrap; flex:none; }
.admin-plan-select { width:4.5rem; padding:4px 6px; font-size:13px; border:1px solid var(--line); border-radius:6px; background:var(--card); cursor:pointer; }
.admin-plan-select:disabled { opacity:.5; cursor:wait; }
.admin-plan-exp { display:block; color:var(--muted); font-size:11px; font-weight:400; margin-top:2px; }
.admin-user-svcs .admin-svc { display:inline-flex; align-items:center; justify-content:center; margin:0; padding:4px; cursor:pointer; border-radius:8px; font-weight:500; }
.admin-user-svcs .admin-svc:hover { background:rgba(0,0,0,.04); }
.admin-user-svcs input[type=checkbox] { width:18px; height:18px; margin:0; flex:none; cursor:pointer; }
.table-wrap { overflow-x:auto; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
.admin-table { width:100%; border-collapse:collapse; font-size:14px; }
.admin-table th, .admin-table td { padding:12px 16px; text-align:center; border-top:1px solid var(--line); }
.admin-table thead th { border-top:0; background:var(--soft); font-size:13px; white-space:nowrap; }
.admin-table th:first-child, .admin-table td:first-child { text-align:left; overflow-wrap:anywhere; }
.admin-table small { display:block; color:var(--muted); font-size:12.5px; }
.admin-table .admin-svc-icon { display:block; margin:0 auto 4px; width:28px; height:28px; border-radius:7px; object-fit:cover; background:#fff; }
.admin-table .check { display:inline-flex; margin:0; padding:6px; cursor:pointer; }
.admin-table input[type=checkbox] { width:20px; height:20px; margin:0; cursor:pointer; }

/* ---- 利用範囲の比較（公開前の検討用） ---- */
.tiers-meta { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.tiers-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; background:var(--soft); border:1px solid var(--line); border-radius:999px; font-size:12.5px; color:var(--muted); }
.tiers-chip strong { color:var(--fg); font-weight:600; }
.tiers-principles { margin:0 0 18px; padding:12px 14px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); font-size:13.5px; }
.tiers-principles ul { margin:6px 0 0; padding-left:1.2em; }
.tiers-principles li { margin:3px 0; }
.tiers h3 { margin:26px 0 8px; font-size:16px; }
.tiers-table th.tier-guest, .tiers-table td.tier-guest { width:13%; }
.tiers-table th.tier-free, .tiers-table td.tier-free { width:16%; }
.tiers-table th.tier-paid, .tiers-table td.tier-paid { width:16%; }
.tiers-table th.tier-appeal { width:30%; }
.tier-mark { display:inline-block; font-weight:700; font-variant-numeric:tabular-nums; }
.tier-mark.ok { color:#1a7a45; }
.tier-mark.no { color:#b42318; }
.tier-mark.soft { color:#8a5a00; }
.tier-mark.pending { color:var(--muted); font-weight:600; }
.tiers-note { margin:4px 0 0; color:var(--muted); font-size:12px; font-weight:400; }
.tiers-legend { margin:18px 0 0; font-size:13px; color:var(--muted); }
.tiers-legend span { margin-right:12px; white-space:nowrap; }

@media (max-width:480px) {
  .shell, .shell.wide { padding-left:16px; padding-right:16px; }
  .panel { padding:20px 18px; }
  .services { grid-template-columns:minmax(0,1fr); }
  .services a::after { content:"\203A"; margin-left:auto; color:var(--muted); font-size:22px; line-height:1; }
  form.inline { flex-direction:column; }
  form.inline button { width:100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition:none !important; } }

form label.check { display:flex; gap:8px; align-items:flex-start; font-weight:400; }
form label.check input { width:auto; margin:3px 0 0; }

/* ---- 規約・プライバシーポリシー（静的ページ） ---- */
.consent-changes { margin:12px 0 16px; padding:12px 16px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); font-size:14.5px; text-align:left; }
.consent-changes ul { margin:8px 0 0; padding-left:1.3em; }
.consent-changes li { margin:4px 0; }
.legal { max-width:760px; margin:0 auto; padding:28px 18px 56px; }
.legal h1 { margin:6px 0 4px; font-size:26px; line-height:1.4; }
.legal h2 { margin:34px 0 8px; padding-top:6px; font-size:19px; line-height:1.5; border-top:1px solid var(--line); }
.legal h3 { margin:20px 0 4px; font-size:16px; }
.legal p, .legal li { font-size:15.5px; }
.legal ul, .legal ol { padding-left:1.4em; }
.legal li { margin:3px 0; }
.legal .meta { color:var(--muted); font-size:14px; }
.legal .back { display:inline-block; margin-bottom:6px; font-size:14px; }
.legal table { width:100%; border-collapse:collapse; margin:10px 0 16px; font-size:14.5px; }
.legal th, .legal td { padding:8px 10px; border:1px solid var(--line); text-align:left; vertical-align:top; }
.legal th { background:var(--soft); font-weight:700; white-space:nowrap; }
.legal .operator { margin:14px 0 6px; padding:12px 16px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); font-size:14.5px; }
.legal .operator dt { float:left; clear:left; width:7.5em; color:var(--muted); }
.legal .operator dd { margin:0 0 4px 7.5em; }
.legal .draft-banner { margin:0 0 18px; padding:12px 16px; background:var(--warnbg); color:var(--warn); border-radius:var(--radius); font-size:14.5px; font-weight:600; }
.legal .todo { background:var(--warnbg); color:var(--warn); padding:0 4px; border-radius:4px; font-weight:600; }
.legal .foot { margin-top:40px; padding-top:16px; border-top:1px solid var(--line); font-size:14px; color:var(--muted); }
@media (max-width:560px) { .legal th { white-space:normal; } .legal .operator dt { float:none; width:auto; } .legal .operator dd { margin-left:0; } }
.legal table.svc th, .legal table.svc td:first-child, .legal table.svc td:last-child { white-space:nowrap; }

/* ---- プロフィール画像（丸い画像の右下にカメラのマーク。タップで小さなメニュー） ---- */
.avatar-wrap { position:relative; flex:none; }
.avatar { position:relative; padding:0; border:0; overflow:hidden; cursor:pointer; font-family:inherit; }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.avatar:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.cam { position:absolute; right:-4px; bottom:-4px; width:26px; height:26px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--card); color:var(--fg); border:1px solid var(--line); box-shadow:0 1px 3px rgba(0,0,0,.18); pointer-events:none; }
.avatar-menu { position:absolute; left:0; top:calc(100% + 10px); z-index:20; min-width:230px; padding:6px; background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:0 6px 24px rgba(0,0,0,.18); }
.am-item { display:block; width:100%; margin:0; padding:10px 12px; border:0; border-radius:8px; background:none; color:var(--fg); font:inherit; font-size:15px; font-weight:600; text-align:left; cursor:pointer; }
.am-item:hover, .am-item:focus-visible { background:var(--soft); outline:none; }
.am-danger { color:var(--danger); }
.am-hint { margin:4px 8px 6px; padding-top:8px; border-top:1px solid var(--line); color:var(--muted); font-size:12.5px; line-height:1.5; }

/* hidden 属性は、他のスタイル（display の指定）に負けないようにする */
[hidden] { display:none !important; }
#top-link { margin-top:24px; }

/* ---- 右上のアカウントメニュー ---- */
.hd-wrap { position:relative; flex:none; }
.hd-avatar { width:36px; height:36px; padding:0; border:0; border-radius:50%; overflow:hidden; background:var(--accent); color:var(--accent-ink); font:inherit; font-size:16px; font-weight:800; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.hd-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.hd-avatar:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.hd-menu { position:absolute; right:0; top:calc(100% + 8px); z-index:30; width:272px; max-width:calc(100vw - 24px); padding:6px; background:var(--card); border:1px solid var(--line); border-radius:14px; box-shadow:0 8px 28px rgba(0,0,0,.18); }
.hd-menu[hidden] { display:none; }
.hd-who { padding:8px 10px 10px; border-bottom:1px solid var(--line); line-height:1.4; }
.hd-who b { display:block; overflow-wrap:anywhere; }
.hd-who small { display:block; color:var(--muted); overflow-wrap:anywhere; }
.hd-item { display:flex; align-items:center; gap:12px; width:100%; margin:0; padding:8px 10px; border:0; border-radius:10px; background:none; color:var(--fg); font:inherit; font-size:15px; font-weight:600; text-align:left; text-decoration:none; cursor:pointer; }
.hd-item:hover, .hd-item:focus-visible, .hd-item.cur { background:var(--soft); outline:none; }
.hd-item img { flex:none; border-radius:8px; background:#fff; }
.hd-item:disabled { opacity:.5; }
.hd-name { flex:1; min-width:0; }
.hd-tag { font-size:11px; color:var(--accent); }
.hd-sep { border:0; border-top:1px solid var(--line); margin:4px 0; }

/* 管理: 事業計画 */
.stats h3 { margin:26px 0 8px; font-size:16px; }
.stats-table th { width:58%; font-weight:500; }
.stats-table td { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
@media (max-width:560px) { .stats-table td { white-space:normal; } .stats-table th, .stats-table td { padding:10px 12px; } }
.admin-menu { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 18px; }
.btn-link { display:inline-block; padding:10px 18px; font-weight:700; color:var(--accent-ink); background:var(--accent); border-radius:9px; text-decoration:none; }
.btn-link:hover { opacity:.9; }
/* 計画の目次（お題目・読む順番・オープン課題） */
.plan-jump { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 6px; }
.plan-jump-btn { min-height:44px; padding:0 16px; font:inherit; font-weight:700; color:var(--accent); background:var(--card); border:1.5px solid var(--accent); border-radius:10px; cursor:pointer; }
.plan-jump-btn:hover { background:var(--soft); }
.plan-h { margin:28px 0 8px; padding-top:12px; border-top:1px solid var(--line); font-size:18px; scroll-margin-top:12px; }
.plan-theme { padding:14px 16px; background:var(--card); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:var(--radius); }
.plan-theme p, .plan-theme ul { margin:0 0 8px; }
.plan-theme > :last-child { margin-bottom:0; }
.plan-group { margin:20px 0 8px; font-size:14px; color:var(--muted); }
.plan-list, .issue-list { margin:0; padding:0; list-style:none; display:grid; gap:8px; }
.plan-row { display:flex; align-items:center; gap:14px; min-height:44px; padding:12px 16px; color:var(--fg); background:var(--card); border:1px solid var(--line); border-radius:var(--radius); text-decoration:none; }
a.plan-row:hover { border-color:var(--accent); }
.plan-row.is-missing { opacity:.55; border-style:dashed; }
.plan-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.plan-name { font-weight:700; overflow-wrap:anywhere; }
.plan-desc { font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.plan-date { flex:none; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.plan-no { flex:none; display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; color:var(--accent-ink); background:var(--accent); font-size:13px; font-weight:700; }
.issue { padding:12px 16px; background:var(--card); border:1px solid var(--line); border-left:4px solid #d9a23a; border-radius:var(--radius); }
.issue-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:4px; }
.issue-id { padding:1px 8px; font-size:12px; font-weight:700; color:#8a5a00; background:#fff3d6; border-radius:999px; }
.issue-due { font-size:12px; font-weight:700; color:#b42318; }
.issue-q { font-weight:700; overflow-wrap:anywhere; }
.issue-memo { margin-top:3px; font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.issue-none { padding:12px 16px; color:var(--muted); }
@media (max-width:560px) { .plan-row { align-items:flex-start; } .plan-date { display:none; } }
.plan-pager { display:grid; gap:10px; margin-top:28px; padding-top:18px; border-top:1px solid var(--line); grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); }
.plan-btn { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 14px; color:var(--fg); background:var(--card); border:1px solid var(--line); border-radius:var(--radius); text-decoration:none; font-weight:600; }
.plan-btn:hover { border-color:var(--accent); }
.plan-btn .plan-name small { display:block; font-size:11px; font-weight:500; color:var(--muted); }
.plan-back { justify-content:center; }
/* PC（1024px 以上）: 目次は横幅を使い、読む順番は2列、課題は2列で見せる */
@media (min-width:1024px) {
  .plan-cols { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:4px 32px; align-items:start; }
  .plan-col { min-width:0; }
  .plan-col:first-child .plan-group { margin-top:8px; }
  .issue-list { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px 20px; }
  .plan-jump-btn { min-height:44px; }
}
.md { margin-top:6px; font-size:15px; overflow-wrap:anywhere; }
.md h2 { margin:0 0 14px; font-size:22px; }
.md h3 { margin:30px 0 10px; padding-top:10px; border-top:1px solid var(--line); font-size:18px; }
.md h4, .md h5 { margin:22px 0 8px; font-size:16px; }
.md p { margin:0 0 12px; }
.md ul, .md ol { margin:0 0 14px; padding-left:22px; }
.md li { margin:3px 0; }
.md li > ul, .md li > ol { margin:4px 0 4px; }
.md code { padding:1px 6px; background:var(--soft); border-radius:5px; font-size:.92em; }
.md pre { overflow-x:auto; padding:12px 14px; background:var(--soft); border-radius:9px; }
.md pre code { padding:0; background:none; }
.md blockquote { margin:0 0 14px; padding:8px 14px; color:var(--muted); background:var(--soft); border-left:3px solid var(--line); border-radius:0 9px 9px 0; }
.md hr { margin:22px 0; border:0; border-top:1px solid var(--line); }
.md .table-wrap { margin:0 0 16px; }
.md-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.md-table th, .md-table td { padding:9px 12px; text-align:left; vertical-align:top; border-top:1px solid var(--line); }
.md-table thead th { border-top:0; background:var(--soft); white-space:nowrap; }
.md .task-item { list-style:none; margin-left:-22px; }
.md .task { display:inline-block; width:15px; height:15px; margin-right:8px; vertical-align:-2px; border:1.5px solid var(--muted); border-radius:4px; }
.md .task.done { background:var(--accent); border-color:var(--accent); }
.md .task-item.done { color:var(--muted); }


/* 実装状況（機能名の横のバッジ）と、課金したくなる度。まだ無い機能（未実装・案）は、点線・淡色で分かるようにする */
.impl-badge { display:inline-block; margin-left:8px; padding:1px 8px; border-radius:999px; font-size:11px; font-weight:600; vertical-align:middle; white-space:nowrap; }
.impl-done { background:#e3f3ea; color:#1a7a45; }
.impl-part { background:#fff3d6; color:#8a5a00; }
.impl-todo { background:#fde7e4; color:#b42318; }
.impl-idea { background:transparent; color:#5b6472; border:1px dashed #8a93a1; }
.tiers-table tr.not-built th, .tiers-table tr.not-built td { opacity:.82; }
.tiers-table.is-idea { border:1.5px dashed #8a93a1; }
.tiers-table.is-idea tbody tr { background:repeating-linear-gradient(135deg, transparent 0 10px, rgba(138,147,161,.07) 10px 20px); }
.tiers-ideanote { margin:0 0 8px; padding:8px 12px; border:1px dashed #8a93a1; border-radius:var(--radius); font-size:13.5px; color:#5b6472; background:rgba(138,147,161,.08); }
.appeal { display:inline-block; min-width:2em; padding:1px 10px; border-radius:6px; font-size:12.5px; font-weight:700; text-align:center; }
.appeal-high { background:#1a7a45; color:#fff; }
.appeal-mid { background:#f0c24b; color:#4a3500; }
.appeal-low { background:#e6e8ec; color:#5b6472; }
.appeal-none { background:transparent; color:var(--muted); }
.tiers-assess { margin:0 0 20px; padding:14px 16px; border:1.5px solid #d9a23a; border-radius:var(--radius); background:#fffaf0; font-size:13.5px; }
.tiers-assess ol, .tiers-assess ul { margin:6px 0 10px; padding-left:1.4em; }
.tiers-assess li { margin:5px 0; }
.tiers-verdict { margin:8px 0 4px; font-size:15px; font-weight:700; color:#8a3b00; }
.tiers-sub { margin:12px 0 0; font-weight:700; }
.tiers-chip.soft { margin-left:8px; background:#fff3d6; color:#8a5a00; }

/* 管理: スケジュール（ガントチャート。横軸は月・1か月 84px。線の上に名前、下に日付。左の列は無い） */
.schedule .sched-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }
.sched-range { font-weight:700; font-variant-numeric:tabular-nums; }
.sched-bar button { width:auto; margin:0; }
.gantt-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:thin; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
.gantt { --months:18; min-width:calc(var(--months) * 84px); font-size:14px; }
.gantt-head, .gantt-row { display:grid; grid-template-columns:calc(var(--months) * 84px); }
.gantt-head { background:var(--soft); }
.gantt-months { display:grid; grid-template-columns:repeat(var(--months), 84px); }
.gantt-m { padding:8px 0; text-align:center; font-size:13px; font-weight:700; border-left:1px solid var(--line); white-space:nowrap; }
.gantt-m small { display:block; font-size:11px; font-weight:500; color:var(--muted); }
.gantt-group { position:sticky; left:0; padding:8px 12px; border-top:1px solid var(--line); background:var(--soft); font-size:13.5px; font-weight:700; }
.gantt-row { border-top:1px solid var(--line); }
.gantt-track { position:relative; min-height:46px; background-image:linear-gradient(to right, var(--line) 1px, transparent 1px); background-size:84px 100%; }
.gantt-bar { position:absolute; top:26px; height:14px; min-width:6px; border-radius:6px; background:var(--accent); cursor:pointer; }
.gantt-pt { position:absolute; top:26px; width:14px; height:14px; margin-left:-7px; border-radius:3px; background:var(--accent); transform:rotate(45deg); cursor:pointer; }
/* ステータスの色（予定の線・ひし形と、凡例の色。名前は日付の行にも出す） */
.st-todo { background:var(--st-todo); }
.st-doing { background:var(--st-doing); }
.st-done { background:var(--st-done); }
.st-hold { background:var(--st-hold); }
.sched-legend { display:flex; flex-wrap:wrap; gap:6px 18px; margin:8px 0 0; padding:0; list-style:none; font-size:13px; color:var(--muted); }
.sched-swatch { display:inline-block; width:14px; height:14px; margin-right:6px; border-radius:4px; vertical-align:-2px; }
.sched-swatch.st-hold { border-radius:50%; }
/* 名前の右に日付を並べ、線の上に1行で置く。線の始まりと左をそろえて、改行しない（タップで編集） */
.gantt-label { position:absolute; top:4px; display:flex; align-items:baseline; gap:8px; white-space:nowrap; line-height:1.3; cursor:pointer; }
.gantt-name { font-size:13px; font-weight:700; color:var(--fg); }
.gantt-date { font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.gantt-label:hover .gantt-name { color:var(--accent); text-decoration:underline; }
.gantt-label:hover .gantt-date { color:var(--accent); text-decoration:underline; }
.gantt-label.is-point { margin-left:-7px; }
.gantt-today { position:absolute; top:0; bottom:0; width:2px; margin-left:-1px; background:var(--danger); opacity:.75; pointer-events:none; }
.gantt-empty { margin:0; padding:16px; color:var(--muted); font-size:14px; }
.sched-form select, .sched-form textarea { display:block; width:100%; margin-top:6px; min-height:44px; padding:11px 12px; font:inherit; font-size:16px; font-weight:400; color:var(--fg); background:var(--bg); border:1.5px solid var(--line); border-radius:10px; }
.sched-form textarea { min-height:88px; resize:vertical; }
.sched-form select:focus, .sched-form textarea:focus { outline:2px solid var(--accent); outline-offset:0; border-color:var(--accent); background:var(--card); }
/* 設立チェックリスト */
.cl-summary { margin:0 0 16px; }
.cl-bar { height:10px; border-radius:99px; background:var(--soft); border:1px solid var(--line); overflow:hidden; }
.cl-bar span { display:block; height:100%; width:0; background:var(--accent); transition:width .2s; }
.cl-count { margin:8px 0 4px; font-weight:700; font-variant-numeric:tabular-nums; }
.cl-filter { display:flex; align-items:center; gap:10px; min-height:44px; margin:0; font-weight:400; cursor:pointer; }
.cl-filter input, .cl-check input { display:block; flex:none; width:22px; height:22px; min-height:0; margin:0; padding:0; accent-color:var(--accent); cursor:pointer; }
.cl-section { margin:0 0 14px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.cl-section-h { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; margin:0; padding:6px 14px; background:var(--soft); font-size:15px; font-weight:700; cursor:pointer; list-style:none; }
.cl-section-h::-webkit-details-marker { display:none; }
.cl-section-h::before { content:'▸'; flex:none; color:var(--muted); transition:transform .15s; }
.cl-section[open] > .cl-section-h { border-bottom:1px solid var(--line); }
.cl-section[open] > .cl-section-h::before { transform:rotate(90deg); }
.cl-section-name { flex:1; min-width:0; }
.cl-section.is-all-done .cl-section-h { color:var(--muted); }
.cl-list { margin:0; padding:0; list-style:none; }
.cl-item { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; padding:2px 10px 2px 6px; border-top:1px solid var(--line); }
.cl-list > .cl-item:first-child { border-top:0; }
.cl-check { display:flex; flex:1 1 0; min-width:0; align-items:flex-start; gap:10px; min-height:44px; padding:10px 4px; margin:0; font-weight:400; cursor:pointer; }
.cl-check input { margin-top:1px; }
.cl-title { overflow-wrap:anywhere; }
.cl-item.is-done > .cl-check .cl-title { color:var(--muted); text-decoration:line-through; }
.cl-edit { flex:none; width:auto; margin:0; }
.cl-note { flex:0 0 100%; margin:0 0 8px 40px; color:var(--muted); font-size:13.5px; white-space:pre-line; overflow-wrap:anywhere; }
.cl-kids { flex:0 0 calc(100% - 28px); margin-left:28px; border-left:2px solid var(--line); }
.cl-kids .cl-item { border-top:1px dashed var(--line); padding-right:0; }
.cl-kids .cl-item:first-child { border-top:0; }
.sched-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.sched-actions button { width:auto; margin:0; }

/* 予定のPDF（ブラウザの印刷で「PDFに保存」。用紙は A4 横の1枚。表の大きさは app.js が印刷の直前に合わせる） */
.only-print { display:none; }
.sched-print-meta { margin:0 0 8px; font-size:13px; color:var(--muted); }
@page { size:A4 landscape; margin:10mm; }
@media print {
  :root { --bg:#fff; --card:#fff; --fg:#000; --muted:#444; --line:#999; --soft:#eee; --accent:#0b7285; --accent-ink:#fff; --danger:#b3261e; }
  html, body { background:#fff; color:#000; }
  * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  body * { visibility:hidden; }
  .schedule, .schedule * { visibility:visible; }
  .schedule { position:absolute; top:0; left:0; width:100%; margin:0; padding:0; }
  .schedule .no-print { display:none !important; }
  .schedule .only-print { display:block; }
  .schedule h2 { font-size:18px; }
  .gantt-scroll { overflow:visible; border:0; border-radius:0; background:none; }
  .gantt { font-size:11px; }
}
.admin-svc-col .admin-svc-icon { display:block; margin:0 auto 4px; width:28px; height:28px; border-radius:7px; object-fit:cover; background:#fff; }

/* 管理ダッシュボード（ユーザー・統計） */
.admin-flags { display:flex; align-items:center; gap:0; margin-top:6px; }
.admin-flags .admin-plan-col, .admin-flags .admin-test-col { min-width:5rem; }
.admin-test-col { min-width:3.5rem; padding:2px 8px; text-align:center; font-size:12.5px; font-weight:600; white-space:nowrap; flex:none; }
.admin-test-col input[type=checkbox] { width:18px; height:18px; cursor:pointer; vertical-align:middle; }
.board-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; border-bottom:1.5px solid var(--line); }
.board-tabs a, .board-tabs .board-soon { padding:10px 16px; font-weight:700; font-size:14px; color:var(--muted); text-decoration:none; border-bottom:3px solid transparent; margin-bottom:-1.5px; }
.board-tabs a:hover { color:var(--accent); }
.board-tabs a[aria-current="page"] { color:var(--accent); border-bottom-color:var(--accent); }
.board-tabs .board-soon { opacity:.55; cursor:not-allowed; }
.board-wrap { max-height:70vh; overflow:auto; }
.board-table { border-collapse:separate; border-spacing:0; font-size:13px; white-space:nowrap; }
.board-table th, .board-table td { padding:7px 10px; border-bottom:1px solid var(--line); text-align:right; font-variant-numeric:tabular-nums; }
.board-table thead th { position:sticky; top:0; z-index:2; background:var(--soft); color:var(--muted); font-size:12px; font-weight:700; text-align:center; }
.board-table thead tr:nth-child(2) th { top:34px; }
.board-table th.bt-group { border-left:1px solid var(--line); }
.board-table th.bt-sortable { cursor:pointer; }
.board-table th.bt-sortable:hover { color:var(--accent); }
.board-table th small { display:block; font-weight:400; font-size:11px; }
.board-table tbody td:first-child, .board-table thead tr:first-child th:first-child { position:sticky; left:0; z-index:1; background:var(--card); text-align:left; border-right:1px solid var(--line); }
.board-table thead tr:first-child th:first-child { z-index:3; background:var(--soft); }
.board-table td.zero { color:var(--muted); opacity:.55; }
.board-table tr.bt-total td { font-weight:700; background:var(--soft); }
.board-table tr.bt-total td:first-child { background:var(--soft); }
.board-table td.bt-date { text-align:center; color:var(--muted); }
.board-controls { display:flex; flex-wrap:wrap; gap:12px 18px; margin:10px 0 6px; }
.board-controls label { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; }
.board-controls select { min-height:36px; font-size:14px; border:1.5px solid var(--line); border-radius:8px; background:var(--card); padding:2px 8px; }
.board-chart { margin:10px 0 16px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:8px; }
.board-chart svg { display:block; width:100%; height:auto; }
.board-chart .axis { stroke:var(--line); stroke-width:1; }
.board-chart .grid { stroke:var(--line); stroke-width:1; stroke-dasharray:3 4; }
.board-chart .tick { fill:var(--muted); font-size:11px; }
.board-chart .line { fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; }
.board-chart .dot { fill:var(--accent); stroke:var(--card); stroke-width:1.5; }
.board-chart .empty { padding:36px 12px; text-align:center; color:var(--muted); font-size:14px; }
.board-check { display:inline-flex; align-items:center; gap:8px; margin:10px 0; font-size:13px; font-weight:600; cursor:pointer; }
.board-check input[type=checkbox] { width:18px; height:18px; margin:0; flex:none; cursor:pointer; }
.needs-kinds { display:flex; flex-wrap:wrap; gap:4px 18px; margin:10px 0 4px; padding:0; border:0; }
.needs-kinds legend { padding:0; margin:0 0 4px; font-size:12px; font-weight:700; color:var(--muted); }
.needs-layout { display:grid; grid-template-columns:minmax(0,3fr) minmax(300px,2fr); gap:16px; align-items:start; }
@media (max-width:900px) { .needs-layout { grid-template-columns:1fr; } }
.needs-map svg { max-height:720px; background:#fff; }
.needs-map .hint { margin:6px 4px 0; }
.needs-pref { fill:#fff; stroke:#9a9a9a; stroke-width:.7; stroke-linejoin:round; }
.needs-pref:hover { fill:#f1f1ee; }
.needs-label { font-size:10px; font-weight:700; fill:#3b3226; pointer-events:none; paint-order:stroke; stroke:#fff; stroke-width:3px; stroke-linejoin:round; }
.needs-count { font-size:10px; font-weight:800; fill:#b3261e; }
.needs-legend { display:flex; flex-wrap:wrap; gap:4px 16px; margin:6px 4px 0; font-size:12px; color:var(--muted); }
.needs-legend i { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:5px; vertical-align:baseline; }
.needs-side h3 { margin:0 0 8px; font-size:14px; }
.needs-list { max-height:640px; overflow:auto; }
.needs-list .board-table td:first-child { text-align:left; }

/* 管理: 支出（レシート・帳簿の閲覧）。CSP が style-src 'self' なので、色・寸法は、すべてクラスで付ける */
.exp-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 20px; margin:0 0 16px; }
.exp-seg { display:inline-flex; gap:8px; }
.exp-field { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:700; color:var(--muted); }
.exp-field select, .exp-field input { min-height:44px; padding:10px 12px; font:inherit; font-size:16px; font-weight:400; color:var(--fg); background:var(--card); border:1.5px solid var(--line); border-radius:10px; max-width:100%; }
.exp-field select:focus, .exp-field input:focus { outline:2px solid var(--accent); outline-offset:0; border-color:var(--accent); }
.exp-check { display:inline-flex; align-items:center; gap:8px; min-height:44px; font-size:14px; cursor:pointer; }
.exp-check input { width:20px; height:20px; margin:0; }
.exp-chip { min-height:44px; padding:0 16px; font:inherit; font-size:14px; font-weight:700; color:var(--accent); background:var(--card); border:1.5px solid var(--accent); border-radius:10px; cursor:pointer; }
.exp-chip:hover { background:var(--accent-soft); }
.exp-chip[aria-pressed="true"] { color:var(--accent-ink); background:var(--accent); }
.exp-chip[aria-pressed="true"]:hover { background:var(--tb-accent-strong); }
.exp-chip:active, .exp-link:active { transform:translateY(1px); }
.exp-chip:focus-visible, .exp-link:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.exp-stats { display:flex; flex-wrap:wrap; gap:8px 32px; margin:0 0 16px; }
.exp-stat .k { font-size:13px; color:var(--muted); }
.exp-stat .v { font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; }
.exp-card { margin:0 0 16px; padding:14px 16px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
.exp-card h3 { margin:0 0 10px; font-size:15px; }
.exp-card .table-wrap { border:0; border-radius:0; background:none; }
.exp-filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px 16px; margin:0 0 12px; }
.exp-filters button { margin:0; width:auto; }
.exp-table th, .exp-table td { padding:8px 10px; white-space:nowrap; font-variant-numeric:tabular-nums; text-align:left; }
.exp-table .num { text-align:right; }
.exp-table td.wrapok { white-space:normal; min-width:140px; text-align:left; }
.exp-table th { text-align:left; }
.exp-table th.num { text-align:right; }
.exp-pager { display:flex; align-items:center; gap:12px; margin-top:12px; font-size:14px; color:var(--muted); }
.exp-pager button { width:auto; margin:0; }
.exp-link { padding:6px 0; font:inherit; font-weight:700; color:var(--accent); background:none; border:0; text-align:left; cursor:pointer; text-decoration:underline; }
.exp-split { display:flex; align-items:flex-start; gap:16px; }
.exp-list { flex:1 1 auto; min-width:0; }
.exp-detail { flex:0 0 340px; max-width:40%; padding:14px; background:var(--soft); border:1px solid var(--line); border-radius:var(--radius); position:sticky; top:12px; }
.exp-detail h4 { margin:0 0 8px; font-size:15px; overflow-wrap:anywhere; }
.exp-detail dl { margin:0 0 12px; display:grid; grid-template-columns:auto 1fr; gap:4px 12px; font-size:13.5px; }
.exp-detail dt { color:var(--muted); }
.exp-detail dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.exp-detail .exp-close { margin:0 0 10px; width:auto; }
.er-thumb { display:block; width:48px; height:64px; object-fit:cover; border-radius:6px; background:var(--soft); border:1px solid var(--line); }
.er-none { display:inline-block; width:48px; font-size:11px; color:var(--muted); text-align:center; }
.er-big { display:block; width:100%; max-height:420px; object-fit:contain; border-radius:8px; background:#fff; border:1px solid var(--line); }
.exp-chart svg { width:100%; height:auto; display:block; }
.exp-chart .exp-grid { stroke:var(--line); stroke-width:1; }
.exp-chart text { font-size:12px; fill:var(--muted); }
.exp-chart text.exp-sub { font-size:10px; }
.exp-chart .exp-axis-l { text-anchor:end; }
.exp-chart .exp-axis-x { text-anchor:middle; }
.exp-s1 { fill:var(--lg1); } .exp-s2 { fill:var(--lg2); } .exp-s3 { fill:var(--lg3); } .exp-s4 { fill:var(--lg4); }
.exp-s5 { fill:var(--lg5); } .exp-s6 { fill:var(--lg6); } .exp-s7 { fill:var(--lg7); } .exp-s8 { fill:var(--lg8); }
.exp-legend { display:flex; flex-wrap:wrap; gap:4px 16px; margin:8px 0 0; padding:0; list-style:none; font-size:13px; color:var(--muted); }
.exp-legend i { display:inline-block; width:12px; height:12px; margin-right:6px; border-radius:3px; vertical-align:-1px; }
.exp-legend .b1 { background:var(--lg1); } .exp-legend .b2 { background:var(--lg2); } .exp-legend .b3 { background:var(--lg3); } .exp-legend .b4 { background:var(--lg4); }
.exp-legend .b5 { background:var(--lg5); } .exp-legend .b6 { background:var(--lg6); } .exp-legend .b7 { background:var(--lg7); } .exp-legend .b8 { background:var(--lg8); }
/* 詳細パネルを開くと、一覧が狭くなるので、1180px 以下では、詳細を一覧の上に出す（開いたときに、画面をそこへ動かす） */
@media (max-width: 1180px) { .exp-split { flex-direction:column-reverse; } .exp-detail { flex-basis:auto; max-width:none; width:100%; position:static; } .exp-detail .er-big { max-width:360px; } }

/* 管理: 支出の表は、直したい欄を、そのまま押して直す（セルが、その場で入力欄になる） */
.exp-table td.exp-cell { cursor:text; }
.exp-table td.exp-cell:hover { background:var(--accent-soft); }
.exp-table td.exp-cell:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.exp-table td.exp-active { background:var(--accent-soft); padding:6px 8px; }
.exp-edit { width:100%; min-width:130px; min-height:44px; padding:8px 10px; font:inherit; font-size:16px; color:var(--fg); background:var(--card); border:1.5px solid var(--accent); border-radius:10px; }
.exp-edit:focus { outline:2px solid var(--accent); outline-offset:0; }
textarea.exp-edit { min-width:220px; resize:vertical; }
td.num .exp-edit { min-width:110px; text-align:right; }
.exp-hint { display:block; margin-top:2px; font-size:12px; color:var(--muted); }
.exp-saving td { opacity:.55; }   /* 保存中も、次のセルを押せる（押したセルは、保存が終わってから開く） */
.exp-empty { color:var(--muted); font-size:13px; opacity:.7; }
.exp-comment { min-width:200px; max-width:340px; white-space:pre-wrap; overflow-wrap:anywhere; }
.exp-ops { white-space:nowrap; }
.exp-ops button { width:auto; margin:0; padding:0 14px; }
.exp-table .badge { margin-left:4px; }
.bt-device { display:block; font-size:12px; color:var(--muted); }
/* スマホ: 余白と段差を詰めて、一覧で見やすくする。編集は小さなボタンにして、タイトルの幅を広げる */
@media (max-width:600px) {
  .cl-section { margin-bottom:8px; }
  .cl-section-h { padding:6px 12px; font-size:14.5px; }
  .cl-item { gap:0 4px; padding:0 6px 0 4px; }
  .cl-check { gap:8px; min-height:44px; padding:8px 2px; font-size:14.5px; line-height:1.45; }
  .cl-check input { width:20px; height:20px; }
  .cl-edit { min-height:36px; padding:0 8px; font-size:12px; }
  .cl-note { margin:0 0 6px 30px; font-size:12.5px; }
  .cl-kids { flex-basis:calc(100% - 14px); margin-left:14px; }
}
/* 統計: 複数の線を重ねたグラフ。色は JS が線ごとに付ける */
.board-chart .mline { fill:none; stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; }
.board-chart .mdot { stroke:var(--card); stroke-width:1.5; }
.board-legend { display:flex; flex-wrap:wrap; gap:6px 18px; margin:-6px 0 14px; padding:0; list-style:none; font-size:13.5px; }
.board-legend li { display:flex; align-items:center; gap:8px; }
.board-swatch { display:inline-block; width:26px; height:0; border-top:3px solid; }
