/* 持ち時数・負担の見える化 */
.mj-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 10px; }
@media (max-width: 760px) { .mj-head { grid-template-columns: 1fr; } .mj-head .seg { flex-wrap: wrap; } }
.mj-summary { display: grid; gap: 8px; margin: 12px 0; }
.mj-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mj-tile { --c: var(--accent); position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--sh-sm); padding: 10px 12px 10px 16px; display: grid; gap: 2px; }
.mj-tile::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.mj-tile.ok { --c: var(--ok); } .mj-tile.warn { --c: var(--warn); }
.mj-tile > span { font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.mj-tile b { font-size: 26px; line-height: 1.1; font-family: var(--head); }
.mj-tile b small { font-size: 12.5px; color: var(--ink2); margin-left: 3px; }
.mj-tile > small { font-size: 11.5px; }
.mj-fix { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.mj-chart { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--sh-sm); padding: 14px 16px; margin-bottom: 14px; }
.mj-chart-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 8px; }
.mj-chart-head h2 { margin: 0; font-size: 16px; font-family: var(--head); }
.mj-svg { overflow-x: auto; color: var(--ink); }
.mj-svg svg { display: block; width: 100%; min-width: 560px; height: auto; }
.mj-table { font-size: 13.5px; }
.mj-table th { white-space: nowrap; }
.mj-table td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mj-table td.b { font-weight: 800; }
.mj-table td.warn { color: var(--warn); font-weight: 800; }
.mj-table tr.hi td { background: color-mix(in srgb, var(--warn) 10%, transparent); }
.mj-table td.nm { white-space: nowrap; }
.mj-table td.nm button { all: unset; cursor: pointer; font-weight: 700; color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.mj-table td.nm button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.mj-table tfoot th, .mj-table tfoot td { border-top: 2px solid var(--line); }
.mj-mini { min-width: 120px; }
.mj-mini i { display: block; height: 10px; border-radius: 3px; background: #2f63e0; }
.mj-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.mj-parts div { display: grid; grid-template-columns: 12px 1fr auto; gap: 6px; align-items: center; border: 1px solid var(--line-soft); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.mj-parts i { width: 12px; height: 12px; border-radius: 3px; }
.mj-ttable .input, .mj-ltable .input { min-height: 34px; padding: 4px 7px; font-size: 14px; }
.mj-w4 { width: 72px; } .mj-w6 { width: 100px; } .mj-w8 { width: 130px; } .mj-w14 { width: 220px; }
.mj-ltable { max-height: 60vh; }
.mj-import { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card2); padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 12px; }
.mj-import h3, .mj-h3 { margin: 0; font-size: 15px; }
.mj-h3 { margin: 8px 0; }
.mj-wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 8px; }
.mj-bun { display: grid; gap: 6px; margin-bottom: 10px; }
.mj-bunrow { display: grid; grid-template-columns: minmax(0, 280px) auto 3.5em auto; gap: 8px; align-items: center; }
@media (max-width: 520px) { .mj-bunrow { grid-template-columns: minmax(0, 1fr) auto; } }
