/* 工程進捗管理 共通スタイル（配色・寸法は docs/koutei-handoff/HANDOFF.md 12章に合わせる） */
:root {
  --nav-bg: #16302E;
  --bg: #F4F5F2;
  --card: #FFFFFF;
  --text: #1B2422;
  --sub: #5A6662;
  --sub2: #3F4A47;
  --line: #DDE2DF;
  --line-soft: #EEF1EF;
  --field-line: #C9D1CE;
  --accent: #0E6B63;
  --accent-dark: #0B4F49;
  --accent-bg: #E3F0EE;
  --warn: #B54708;
  --warn-strong: #8A3A06;
  --warn-bg: #FDF0E6;
  --warn-line: #F3CFB1;
  --err: #8A1C12;
  --err-bg: #FCEBEA;
  --err-line: #F2C4C0;
  --danger: #B42318;
  --track: #E6EAE8;
  --heat1: #EAF3F1;
  --heat2: #B9DAD5;
  --heat3: #2D7A72;
  --heat4: #C2410C;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'IBM Plex Sans JP', sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
[x-cloak] { display: none !important; }
.num { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.r { text-align: right; }
.c { text-align: center; }
.muted { color: var(--sub); }
.small { font-size: 12px; }
.warn-text { color: var(--warn); font-weight: 500; }
.good-text { color: var(--accent); font-weight: 500; }
.err-text { color: var(--err); }
.sr-only { position: absolute; left: -9999px; }

/* ---- 枠組み ---- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.nav { flex: 1 1 220px; background: var(--nav-bg); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.nav .brand { padding: 4px 12px 20px; color: #FFFFFF; font-weight: 700; font-size: 16px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: #C9D6D3; text-decoration: none; font-size: 14px; }
.nav a:hover { background: #21403D; color: #FFFFFF; }
.nav a.on { background: var(--accent-bg); color: var(--accent-dark); font-weight: 700; }
.nav .count { margin-left: auto; background: #E8823A; color: var(--text); font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.nav .group { margin-top: 16px; padding: 0 12px 4px; font-size: 11px; color: #9DB3AE; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 800px) {
  .nav { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .nav .brand { flex-basis: 100%; padding: 4px 12px 8px; }
  .nav .group { display: none; }
  .main { padding: 20px 16px 40px; }
}

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.page-head > div:first-child { flex: 1 1 420px; min-width: 0; }
.who { flex: 0 0 auto; }
.page-head h1 { margin: 4px 0 0; font-size: 26px; font-weight: 700; }
.page-head .lead { font-size: 13px; color: var(--sub); margin-top: 6px; }
.crumbs { font-size: 13px; color: var(--sub); }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--accent); text-decoration: underline; cursor: pointer; min-height: 32px; }

/* ---- カード ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 4px 8px; }
.card.pad { padding: 20px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 12px; }
.card.pad .card-head { padding: 0 0 12px; }
.card-head h2 { margin: 0; font-size: 18px; }
.card-head .lead { font-size: 12px; color: var(--sub); margin-top: 4px; }
.card-foot { font-size: 12px; color: var(--sub); padding: 12px 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; align-items: start; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: var(--text); }
.stat .k { font-size: 13px; color: var(--sub); }
.stat .v { font-size: 32px; font-weight: 500; margin-top: 6px; }
.stat.err { background: var(--err-bg); border-color: var(--err-line); }
.stat.err .k, .stat.err .v { color: var(--err); }
.stat.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.stat.warn .k, .stat.warn .v { color: var(--warn-strong); }

/* ---- 表 ---- */
.scroll-x { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { font-size: 12px; color: var(--sub); font-weight: 500; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { font-size: 14px; padding: 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th.r, td.r { text-align: right; }
td.wrap { white-space: normal; }

/* ---- 部品 ---- */
.btn, .ok, .danger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 8px; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn { border: 1px solid var(--field-line); background: #FFFFFF; color: var(--text); }
.btn:hover { background: #F7F9F8; color: var(--text); }
.ok { border: 0; background: var(--accent); color: #FFFFFF; font-weight: 700; padding: 0 16px; }
.ok:hover { background: var(--accent-dark); color: #FFFFFF; }
.danger { border: 0; background: var(--danger); color: #FFFFFF; font-weight: 700; }
.btn.lg, .ok.lg, .danger.lg { min-height: 44px; padding: 0 18px; }
button:disabled { opacity: .5; cursor: not-allowed; }

.tag, .badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.tag.admin { background: var(--nav-bg); color: #FFFFFF; }
.tag.member { background: var(--track); color: var(--sub2); }
.tag.default { background: var(--accent-bg); color: var(--accent-dark); }
.tag.division { background: var(--track); color: var(--text); font-weight: 500; }
.division-list { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.ok { background: var(--accent-bg); color: var(--accent-dark); }
.badge.gray { background: var(--track); color: var(--sub2); }
.badge.dark { background: var(--accent); color: #FFFFFF; }

.bar { display: flex; align-items: center; gap: 8px; }
.bar .track { width: 120px; height: 8px; background: var(--track); border-radius: 4px; }
.bar .fill { height: 8px; background: var(--accent); border-radius: 4px; }

.seg { display: inline-flex; background: #EEF1EF; border-radius: 8px; padding: 3px; }
.seg a, .seg button { min-height: 36px; padding: 0 14px; border: 0; background: transparent; border-radius: 6px; font: inherit; font-size: 13px; color: var(--sub2); display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.seg .on { background: #FFFFFF; color: var(--text); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---- フォーム ---- */
.lbl { display: block; font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.fld { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 8px; background: #FFFFFF; font: inherit; font-size: 14px; color: var(--text); }
textarea.fld { padding: 10px 12px; min-height: 88px; }
.fld[type="file"] { padding: 9px 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-row { display: flex; flex-direction: column; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.checks { display: flex; flex-direction: column; }
.checks .check { min-height: 36px; }
.field-error { color: var(--err); font-size: 12px; margin-top: 4px; }

/* ---- お知らせ ---- */
.alert { border-radius: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.7; }
.alert.err { background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err); }
.alert.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-strong); }
.alert.ok { background: var(--accent-bg); border: 1px solid #BFDDD8; color: var(--accent-dark); }
.alert ul { margin: 4px 0 0; padding-left: 20px; }

/* ---- モーダル ---- */
.modal-back { position: fixed; inset: 0; background: rgba(22, 48, 46, .45); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; z-index: 50; }
.modal { background: #FFFFFF; border-radius: 14px; width: 100%; max-width: 560px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal.wide { max-width: 820px; }
.modal h2 { margin: 0; font-size: 18px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---- ヒートマップ ---- */
.heat1 { background: var(--heat1); color: var(--text); }
.heat2 { background: var(--heat2); color: var(--text); }
.heat3 { background: var(--heat3); color: #FFFFFF; }
.heat4 { background: var(--heat4); color: #FFFFFF; }

/* ---- 工程と子タスクの表 ---- */
.ptable { min-width: 1000px; }
.prow { display: grid; grid-template-columns: minmax(230px, 2.4fr) 90px 96px 92px 64px 64px 64px 68px 70px 64px; align-items: center; column-gap: 8px; padding: 0 12px; min-height: 52px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.prow.head { font-size: 12px; color: var(--sub); min-height: 40px; border-bottom-color: var(--line); }
.prow.task { background: #FAFBFA; }
.prow .toggle { white-space: nowrap; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: transparent; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; }
.prow .toggle svg { transition: transform .15s; }
.prow .toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.prow .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .mini { display: flex; align-items: center; gap: 8px; }
.prow .mini .track { flex: 1; height: 8px; background: var(--track); border-radius: 4px; }
.prow .mini .fill { height: 8px; background: var(--accent); border-radius: 4px; }
.row-btn { white-space: nowrap; flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid var(--field-line); background: #FFFFFF; border-radius: 6px; font: inherit; font-size: 12px; color: var(--sub2); cursor: pointer; }
.add-row { padding: 6px 16px 6px 40px; background: #FAFBFA; border-bottom: 1px solid var(--line-soft); }
.add-link { min-height: 40px; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--accent); font-weight: 700; padding: 0 4px; cursor: pointer; }
.st-done { background: var(--track); color: var(--sub2); }
.st-doing { background: var(--accent-bg); color: var(--accent-dark); }
.st-todo { background: #FFFFFF; color: var(--sub); border: 1px solid var(--field-line); }
.st-late { background: var(--err-bg); color: var(--err); }

/* ---- ガントチャート ---- */
.gantt { min-width: 980px; display: grid; grid-template-columns: 170px 1fr; }
.gantt .label { font-size: 13px; min-height: 40px; display: flex; align-items: center; border-bottom: 1px solid var(--line-soft); padding-right: 8px; }
.gantt .label.sub { padding-left: 16px; color: var(--sub2); font-size: 12px; min-height: 32px; }
.gantt .lane { position: relative; min-height: 40px; border-bottom: 1px solid var(--line-soft); }
.gantt .lane.sub { min-height: 32px; background: #FAFBFA; }
.gantt .scale { position: relative; height: 28px; border-bottom: 1px solid var(--line); }
.gantt .month { position: absolute; top: 6px; font-size: 12px; color: var(--sub); padding-left: 6px; white-space: nowrap; }
.gantt .grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-soft); }
.gantt .today { position: absolute; top: 0; bottom: 0; width: 2px; background: #C2410C; }
.gantt .gbar { position: absolute; top: 11px; height: 18px; border-radius: 4px; overflow: hidden; }
.gantt .lane.sub .gbar { top: 9px; height: 14px; }
.gbar.done { background: #5E8F89; }
.gbar.doing { background: #9CC5C0; }
.gbar.todo { background: #FFFFFF; border: 1.5px dashed #8FA6A1; }
.gbar.late { background: #F6C9C4; border: 1px solid #D9817A; }
.gbar .gfill { height: 100%; background: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--sub2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---- 負荷状況 ---- */
.heatmap { display: grid; gap: 4px; align-items: stretch; }
.heatmap .hcell { font-size: 12px; color: var(--sub); padding: 6px 4px; text-align: center; }
.heatmap .hcell .lbl2 { font-weight: 500; color: var(--text); }
.heatmap .name { min-height: 52px; border: 0; background: transparent; border-radius: 8px; font: inherit; font-size: 14px; color: var(--text); text-align: left; padding: 0 10px; cursor: pointer; }
.heatmap .name.on { background: var(--accent-bg); color: var(--accent-dark); font-weight: 700; }
.heatmap .cell { border: 0; border-radius: 6px; min-height: 52px; padding: 6px 2px; text-align: center; font: inherit; cursor: pointer; overflow: hidden; }
.heatmap .cell.on { outline: 2px solid var(--text); outline-offset: 1px; }
.heatmap .name, .heatmap > .hcell:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
.heatmap .name.on { background: var(--accent-bg); }
.heatmap.compact .hcell { font-size: 11px; padding: 6px 2px; }
.heatmap.compact .cell .num:first-child { font-size: 13px !important; }
.heatmap.compact .name { font-size: 13px; padding: 0 6px; }
.heatmap.compact .tcell { font-size: 12px; padding: 8px 6px; }
.heatmap .tcell { font-size: 13px; padding: 8px 10px; text-align: right; border-left: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: flex-end; }

/* 金額のように桁の多い数値でも列からはみ出さないよう、少し小さくする */
.prow .num.r { font-size: 13px; white-space: nowrap; }

/* 案件の担当メンバー（案件一覧「担当者」「工数（担当者別）」タブ・案件詳細） */
/* 役割の色：--rc は文字・アバター、--rb は背景 */
.r-pm { --rc: #A85A0C; --rb: #FCEBD7; }
.r-pl { --rc: #6B3FA0; --rb: #EFE6F8; }
.r-pmo { --rc: #46566B; --rb: #E6EBF1; }
.r-se { --rc: #0E6B63; --rb: #DDF0ED; }
.r-pg { --rc: #1D5FA8; --rb: #E2ECF8; }
.r-infra { --rc: #5E6A12; --rb: #EDF1D6; }
.r-design { --rc: #A3326B; --rb: #F8E4EE; }
.r-qa { --rc: #2F7A3A; --rb: #E3F1E5; }
.r-unset { --rc: #6B7280; --rb: #EEF0F2; }
.role { background: var(--rb); color: var(--rc); }
.role-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 16px 12px; }
.role-edit { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; padding-right: 4px; }
.role-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 48px; gap: 12px; align-items: center; }
.role-row .work { display: block; }
.role-add { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.role-add-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.role-removed { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 8px; background: #FDF1EE; color: var(--danger); }
.card-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 0 16px 12px; }
.role { display: inline-flex; align-items: center; gap: 3px; padding: 0 7px 0 5px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 20px; white-space: nowrap; vertical-align: middle; }
.role svg { width: 12px; height: 12px; flex: 0 0 auto; }
table.assign td { vertical-align: top; }
table.assign .pj { min-width: 200px; max-width: 260px; white-space: normal; }
table.assign .pmcol { min-width: 200px; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchips.stack { flex-direction: column; align-items: stretch; }
.mchips.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mchip { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-width: 0; }
.mchip .avatar { width: 28px; height: 28px; font-size: 13px; flex: 0 0 auto; }
.mchip .body { min-width: 0; }
.mchip .nm { font-size: 14px; font-weight: 700; white-space: nowrap; }
.mchip .sub { font-size: 12px; color: var(--sub); display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 3px; white-space: normal; }
.mchip .avatar { background: var(--rc); }
.mchip.idle .avatar { background: var(--rb); color: var(--rc); }
.mchip.r-pm, .mchip.r-pl { border-color: color-mix(in srgb, var(--rc) 30%, transparent); background: color-mix(in srgb, var(--rb) 35%, var(--card)); }
.mchip.off { opacity: .6; }
@media (max-width: 720px) {
  table.assign thead { display: none; }
  table.assign tr, table.assign td { display: block; }
  table.assign tr { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
  table.assign td { padding: 0; border: 0; }
  table.assign .pj { max-width: none; margin-bottom: 8px; }
  table.assign .pmcol { margin-bottom: 8px; }
  table.assign td.num.r { display: inline-block; margin: 8px 12px 0 0; font-size: 13px; color: var(--sub); }
  table.assign td.num.r:last-child::before { content: '残工数 '; }
  .mchip { flex: 1 1 100%; }
}
table.workload th.dept { text-align: center; color: var(--text); font-weight: 700; border-left: 1px solid var(--line); }
table.workload th.mem { text-align: center; white-space: normal; min-width: 84px; max-width: 120px; }
table.workload td.ac { text-align: center; vertical-align: top; min-width: 84px; padding: 8px; border-left: 1px solid var(--line-soft); }
table.workload td.ac.has { background: var(--accent-bg); }
table.workload .role { padding: 0 4px; }
@media (max-width: 720px) { .role-row { grid-template-columns: minmax(0, 1fr) 48px; } .role-row select { grid-row: 2; grid-column: 1 / -1; } .role-add-fields { grid-template-columns: minmax(0, 1fr); } }
table.workload .pj { position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 200px; max-width: 280px; white-space: normal; }
table.workload tfoot th, table.workload tfoot td { border-top: 2px solid var(--line); border-bottom: 0; }

/* 負荷状況「12か月グラフ」 */
.mchart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--sub2); }
.mchart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mchart-legend .sw { display: inline-block; width: 14px; height: 12px; border-radius: 3px; }
.mchart-legend .sw-ok { background: var(--accent); }
.mchart-legend .sw-over { background: var(--danger); }
.mchart-legend .sw-line { height: 0; border-top: 2px dashed var(--text); border-radius: 0; width: 18px; }
.mchart { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-width: 720px; }
.mchart .axis { position: relative; height: 260px; margin-top: 24px; }
.mchart .axis span { position: absolute; right: 8px; transform: translateY(50%); font-size: 11px; color: var(--sub); font-family: 'IBM Plex Mono', monospace; }
.mchart .plot { position: relative; height: 260px; margin-top: 24px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.mchart .grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-soft); pointer-events: none; }
.mchart .col { position: relative; height: 100%; border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 6px 6px 0 0; }
.mchart .col:hover, .mchart .col.on { background: rgba(14, 107, 99, .07); }
.mchart .col.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.mchart .bar { position: absolute; bottom: 0; left: 22%; right: 22%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 1px; }
.mchart .bar.over { background: var(--danger); }
.mchart .cap { position: absolute; left: 8%; right: 8%; border-top: 2px dashed var(--text); pointer-events: none; }
.mchart .val { position: absolute; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--sub2); white-space: nowrap; }
.mchart .val.over { color: var(--danger); font-weight: 700; }
.mchart .labels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); text-align: center; font-size: 12px; color: var(--sub2); padding-top: 6px; }
.mchart .labels span { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; }
.mchart .labels span.on { color: var(--text); font-weight: 700; }
.mchart .labels small { font-size: 10px; color: var(--sub); font-weight: 400; }
.mchart .labels em { font-style: normal; font-size: 10px; color: #FFFFFF; background: var(--danger); border-radius: 999px; padding: 0 6px; line-height: 16px; }
.mdetail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .mdetail { grid-template-columns: minmax(0, 1fr); } }
.mtable tr.over td { background: #FDF1EE; }
.mtable tr.on td { box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }
.mtable tr.on td:first-child { box-shadow: inset 2px 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }
.mtable .mname { font-weight: 700; color: var(--text); margin-right: 6px; }
.mtable .over-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 18px; }
.bar .fill.over { background: var(--danger); }
.mperson .subhead { margin: 18px 0 8px; font-size: 14px; }
.mperson .pbar { margin-bottom: 10px; }
.mperson .pbar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 4px; }
.mperson .pbar .track { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.mperson .pbar .fill { height: 100%; background: var(--accent); }
.mperson .mtask { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.mtable .bar .track { width: 72px; }
.heatmap .hcell .yr { display: block; font-weight: 400; font-size: 10px; color: var(--sub); }
