/* 仕組み › 自動化 の「実行結果」（#tab-batch）と「予定」（#tab-weekly）。色は style.css の :root のトークンだけ（2026-10-30 2段目 F4）。 */

/* ---------- 共通 ---------- */
#tab-batch .muted, #tab-weekly .muted { color: var(--muted); }
#tab-batch .card-head .back, #tab-weekly .card-head .back { font-size: 13px; color: var(--primary); white-space: nowrap; }
#tab-batch .card-head .back::before { content: "‹ "; }
#tab-batch a.jl, #tab-weekly a.jl { color: var(--text); font-weight: 600; text-decoration: none; }
#tab-batch a.jl:hover, #tab-weekly a.jl:hover { color: var(--primary); text-decoration: underline; }
#tab-batch table.t col.c-st, #tab-weekly table.t col.c-st { width: 112px; }
#tab-batch table.t col.c-pl, #tab-weekly table.t col.c-pl { width: 104px; }
#tab-batch table.t col.c-when, #tab-weekly table.t col.c-when { width: 124px; }
#tab-batch table.t col.c-dur, #tab-weekly table.t col.c-dur { width: 92px; }
#tab-batch table.t col.c-act, #tab-weekly table.t col.c-act { width: 128px; }
#tab-batch table.t, #tab-weekly table.t { table-layout: fixed; font-size: 13px; }
#tab-batch table.t td.act, #tab-weekly table.t td.act { text-align: right; overflow: visible; }
#tab-batch table.t th.act, #tab-weekly table.t th.act { text-align: right; }
#tab-batch table.t td.when, #tab-weekly table.t td.when { font-variant-numeric: tabular-nums; }

/* 吹き出し（ガントの棒・カレンダーの項目） */
#tab-batch .am-pop, #tab-weekly .am-pop { position: fixed; z-index: 40; background: var(--text); color: #fff; border-radius: var(--radius-lg); padding: 8px 12px; font-size: 12px; line-height: 1.6; pointer-events: none; max-width: 300px; box-shadow: var(--shadow-raised); }
#tab-weekly .am-pop b { font-size: 13px; display: block; }
#tab-weekly .am-pop .tst { display: inline-flex; align-items: center; gap: 5px; }
#tab-weekly .am-pop .tst i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* 状態の色（棒・凡例・吹き出しの点で共通） */
#tab-weekly .b-ok, #tab-weekly .lg-ok { background: var(--ok-dot); }
#tab-weekly .b-ng, #tab-weekly .lg-ng { background: var(--ng-dot); }
#tab-weekly .b-warn, #tab-weekly .lg-warn { background: var(--warn-dot); }
#tab-weekly .b-unk, #tab-weekly .lg-unk { background: var(--unk-dot); }
#tab-weekly .b-run, #tab-weekly .lg-run { background: var(--run-dot); }
#tab-weekly .lg-future { background: var(--card); box-shadow: inset 0 0 0 1px var(--unk-dot); }
#tab-weekly .lg-human { background: var(--line); }
#tab-weekly .lg-none { background: transparent; }

/* ---------- 予定: 1日のガント ---------- */
#tab-weekly .sumrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#tab-weekly .sumrow .st { font-weight: 500; }
#tab-weekly .sumrow b { font-weight: 700; margin-left: 2px; }
#tab-weekly .gwrap { overflow-x: auto; margin: 16px calc(var(--card-pad) * -1) 0; padding: 0 var(--card-pad); }
#tab-weekly .gantt { min-width: 760px; display: grid; grid-template-columns: 96px minmax(0, 1fr); }
#tab-weekly .g-axis { position: relative; height: 34px; }
#tab-weekly .g-axis .tk { position: absolute; top: 16px; font-size: 11px; color: var(--muted); transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
#tab-weekly .g-axis .day { position: absolute; top: 0; font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; }
#tab-weekly .g-axis .nowlab { z-index: 4; position: absolute; top: 0; font-size: 11px; font-weight: 600; color: var(--primary); transform: translateX(-50%); white-space: nowrap; background: var(--card); padding: 0 3px; }
#tab-weekly .g-label { border-top: 1px solid var(--line-soft); padding: 8px 8px 8px 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
#tab-weekly .g-label { position: sticky; left: 0; z-index: 6; background: var(--card); }
#tab-weekly .gantt > div:first-child { position: sticky; left: 0; z-index: 6; background: var(--card); }
#tab-weekly .g-label b { font-size: 13px; font-weight: 600; white-space: nowrap; }
#tab-weekly .g-label span { font-size: 11px; color: var(--muted); white-space: nowrap; }
#tab-weekly .g-track { position: relative; border-top: 1px solid var(--line-soft); }
#tab-weekly .g-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-soft); }
#tab-weekly .g-grid.mid { background: var(--line); }
#tab-weekly .g-future { position: absolute; top: 0; bottom: 0; right: 0; background: var(--sunken); }
#tab-weekly .g-now { position: absolute; top: -34px; bottom: 0; width: 2px; background: var(--primary); z-index: 3; pointer-events: none; }
#tab-weekly .bar { position: absolute; height: 14px; margin: 0; border: 0; border-radius: var(--radius); cursor: pointer; z-index: 2; overflow: hidden; color: #fff; font: inherit; font-size: 11px; line-height: 14px; padding: 0 4px; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
#tab-weekly .bar:hover, #tab-weekly .bar.is-sel, #tab-weekly .bar:focus-visible { box-shadow: 0 0 0 2px var(--text); outline: none; z-index: 5; }
#tab-weekly .bar.b-warn { color: var(--text); }
#tab-weekly .bar.b-future { background: var(--card); box-shadow: inset 0 0 0 1px var(--unk-dot); color: var(--muted); }
#tab-weekly .bar.b-future:hover, #tab-weekly .bar.b-future.is-sel { box-shadow: inset 0 0 0 1px var(--unk-dot), 0 0 0 2px var(--text); }
#tab-weekly .bar.b-human { background: var(--line); color: var(--text); height: 18px; line-height: 18px; }
#tab-weekly .bar.b-human.is-future { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
#tab-weekly .bar.b-band { height: 4px; padding: 0; border-radius: 2px; }
#tab-weekly .g-tick { position: absolute; width: 3px; height: 8px; border-radius: 1px; z-index: 3; pointer-events: none; transform: translateX(-1px); }
#tab-weekly .g-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
#tab-weekly .g-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#tab-weekly .g-legend i { display: inline-block; width: 16px; height: 10px; border-radius: 2px; }

/* 選んだ棒の帯 */
#tab-weekly .sel { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; background: var(--sunken); border-radius: var(--radius-lg); min-width: 0; }
#tab-weekly .sel .nm { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
#tab-weekly .sel .meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
#tab-weekly .sel .jl-more { font-size: 12px; color: var(--primary); white-space: nowrap; }
#tab-weekly .sel .btn-ai { margin-left: 4px; }

/* 失敗・停止の表 */
#tab-weekly .fails tbody tr { cursor: pointer; }
#tab-weekly .fails tr.is-sel td { background: var(--primary-glow); }

/* ---------- 予定: 週のカレンダー ---------- */
#tab-weekly .cal-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
#tab-weekly .chip-t { height: 28px; padding: 0 10px; font-size: 12px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); color: var(--text); cursor: pointer; font-family: inherit; white-space: nowrap; }
#tab-weekly .chip-t.is-on { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
#tab-weekly .daypick { display: none; gap: 4px; margin-bottom: 12px; overflow-x: auto; }
#tab-weekly .cal { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
#tab-weekly .cal .dh { font-size: 12px; font-weight: 600; text-align: center; padding: 8px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--muted); }
#tab-weekly .cal .dh.today { color: var(--primary); background: var(--primary-glow); }
#tab-weekly .cal .dh.past { color: var(--text); }
#tab-weekly .cal .hr { font-size: 11px; color: var(--muted); padding: 4px 8px 4px 0; text-align: right; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
#tab-weekly .cal .cell { border-bottom: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); padding: 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 22px; }
#tab-weekly .cal .cell.today { background: var(--sunken); }
#tab-weekly .cal .row-always.cell, #tab-weekly .cal .row-always.hr { background: var(--sunken); }

#tab-weekly .it { display: flex; align-items: center; gap: 5px; min-width: 0; width: 100%; height: 20px; padding: 0 4px; margin: 0; border: 0; background: transparent; border-radius: var(--radius); font: inherit; font-size: 11px; color: var(--text); cursor: default; text-align: left; }
#tab-weekly button.it:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
#tab-weekly .it .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
#tab-weekly .it .pl { font-size: 11px; color: var(--subtle); flex: 0 0 auto; }
#tab-weekly .it .mk { flex: 0 0 auto; display: inline-block; }
#tab-weekly .it.auto .mk { width: 12px; height: 5px; border-radius: 2px; }
#tab-weekly .it.notice .mk { width: 6px; height: 6px; border-radius: 50%; }
#tab-weekly .it.notice .tm { font-variant-numeric: tabular-nums; color: var(--muted); flex: 0 0 auto; }
#tab-weekly .s-ok .mk { background: var(--ok-dot); }
#tab-weekly .it.s-ng { background: var(--ng-bg); color: var(--ng); font-weight: 600; }
#tab-weekly .s-ng .mk { background: var(--ng-dot); }
#tab-weekly .s-ng .pl, #tab-weekly .s-ng .tm { color: var(--ng); }
#tab-weekly .it.s-warn { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
#tab-weekly .s-warn .mk { background: var(--warn-dot); }
#tab-weekly .s-unk .mk { background: var(--unk-dot); }
#tab-weekly .s-run .mk { background: var(--run-dot); }
#tab-weekly .s-future .mk { background: var(--card); box-shadow: inset 0 0 0 1px var(--unk-dot); }
#tab-weekly .it.s-none { color: var(--subtle); }
#tab-weekly .s-none .mk { background: transparent; }
#tab-weekly .it.human { height: auto; min-height: 34px; background: var(--line); color: var(--text); font-size: 12px; font-weight: 600; padding: 4px 6px; align-items: flex-start; flex-direction: column; gap: 0; }
#tab-weekly .it.human .t { width: 100%; }
#tab-weekly .it.human .du { font-size: 11px; font-weight: 400; color: var(--muted); }
#tab-weekly .it.human.future { background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
#tab-weekly .it.human.lg { min-height: 20px; padding: 0 6px; justify-content: center; width: auto; }
#tab-weekly .c-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
#tab-weekly .c-legend .it { height: 20px; width: auto; }
#tab-weekly .c-legend span.grp { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- 実行結果 ---------- */
#tab-batch .band .abrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#tab-batch .ab { display: flex; align-items: center; gap: 12px; padding: var(--card-pad-y) var(--card-pad); min-width: 0; }
#tab-batch .ab + .ab { border-left: 1px solid var(--line-soft); }
#tab-batch .ab-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; color: var(--text); text-decoration: none; }
#tab-batch .ab-main:hover .ab-l { color: var(--primary); }
#tab-batch .ab-l { font-size: 12px; color: var(--muted); white-space: nowrap; }
#tab-batch .ab-v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
#tab-batch .ab-s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-batch .ab.is-bad .ab-v { color: var(--ng); }
#tab-batch .ab.is-warn .ab-v { color: var(--warn); }
#tab-batch .jobs tr.is-slot td { font-size: 12px; color: var(--muted); }
#tab-batch .jobs tr.is-slot td:nth-child(2) { padding-left: 28px; }
#tab-batch .jobs tr.is-slot .st { height: 20px; font-weight: 500; }
#tab-batch .slot-l { color: var(--text); }
#tab-batch .okline { padding: var(--card-pad-y) var(--card-pad); font-size: 13px; }
#tab-batch details.fold { border-top: 1px solid var(--line-soft); }
#tab-batch details.fold > summary { display: flex; align-items: center; gap: 10px; padding: 12px var(--card-pad); cursor: pointer; list-style: none; font-size: 13px; }
#tab-batch details.fold > summary::-webkit-details-marker { display: none; }
#tab-batch details.fold > summary::after { content: "開く"; margin-left: auto; font-size: 12px; color: var(--primary); }
#tab-batch details.fold[open] > summary::after { content: "閉じる"; }
#tab-batch .fold-n { color: var(--muted); font-size: 12px; }

/* 1件のジョブ */
#tab-batch .jhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#tab-batch .jhead .btn-ai { margin-left: auto; }
#tab-batch .jnote { font-size: 12px; color: var(--muted); }
#tab-batch .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 16px 0 0; }
#tab-batch .facts div { min-width: 0; }
#tab-batch .facts dt { font-size: 12px; color: var(--muted); }
#tab-batch .facts dd { margin: 2px 0 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-batch .jdesc { margin: 16px 0 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
#tab-batch .num-l { font-variant-numeric: tabular-nums; }
#tab-batch table.t col.c-start { width: 168px; }
#tab-batch pre.log { margin: 0; padding: 12px; background: var(--sunken); border-radius: var(--radius); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; }

/* 週の列が狭い幅では場所の短い印を外して名前に幅を回す（場所は吹き出しに出る） */
@media (max-width: 1280px) and (min-width: 769px) {
    #tab-weekly .cal .it .pl { display: none; }
}
@media (max-width: 768px) {
    #tab-weekly .daypick { display: flex; }
    #tab-weekly .cal { grid-template-columns: 52px minmax(0, 1fr); }
    #tab-weekly .cal > .dcol-off { display: none; }
    #tab-weekly .sel { flex-wrap: wrap; }
    #tab-weekly .sel .meta { flex-basis: 100%; white-space: normal; }
    #tab-weekly .card-head, #tab-batch .card-head { flex-wrap: wrap; }
    #tab-weekly .card-head .sub, #tab-batch .card-head .sub { margin-left: 0; white-space: normal; }
    #tab-batch table.t .pl, #tab-batch table.t .dur, #tab-batch table.t .nx,
    #tab-weekly table.t .pl, #tab-weekly table.t .when, #tab-weekly table.t .dur { display: none; }
    #tab-batch table.t col.c-st, #tab-weekly table.t col.c-st { width: 84px; }
    #tab-batch table.t col.c-when { width: 92px; }
    #tab-batch table.t col.c-act, #tab-weekly table.t col.c-act { width: 104px; }
    #tab-batch .jobs tr.is-slot td:nth-child(2) { padding-left: 16px; }
    #tab-batch .band .abrow { grid-template-columns: minmax(0, 1fr); }
    #tab-batch .ab + .ab { border-left: 0; border-top: 1px solid var(--line-soft); }
    #tab-batch .ab-v { font-size: 20px; }
    #tab-batch .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 実行の一覧・1回の実行（GitHub Actions の形・2026-11-03） ---------- */
#tab-batch .ri { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; color: #fff; background: var(--unk-dot); }
#tab-batch .ri-ok { background: var(--ok-dot); }
#tab-batch .ri-ng { background: var(--ng-dot); }
#tab-batch .ri-warn { background: var(--warn-dot); color: var(--text); }
#tab-batch .ri-run { background: var(--run-dot); }
#tab-batch .act-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); border-top: 1px solid var(--line-soft); }
#tab-batch .wf { border-right: 1px solid var(--line-soft); padding: 8px 0; max-height: 720px; overflow: auto; }
#tab-batch .wf-h { padding: 12px 16px 4px; font-size: 11px; color: var(--muted); font-weight: 600; }
#tab-batch .wf-i { display: flex; align-items: center; gap: 8px; padding: 6px 16px; font-size: 13px; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
#tab-batch .wf-i:hover { background: var(--sunken); }
#tab-batch .wf-i.on { background: var(--primary-glow); border-left-color: var(--primary); font-weight: 600; }
#tab-batch .wf-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-batch .wf-i .n, #tab-batch .seg .n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
#tab-batch .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--unk-dot); }
#tab-batch .d-ok { background: var(--ok-dot); } #tab-batch .d-ng { background: var(--ng-dot); }
#tab-batch .d-warn { background: var(--warn-dot); } #tab-batch .d-run { background: var(--run-dot); }
#tab-batch .runs-wrap { min-width: 0; }
#tab-batch .rf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--sunken); }
#tab-batch .segs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
#tab-batch .seg { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 12px; font: inherit; font-size: 12px; color: var(--text); cursor: pointer; min-height: 32px; }
#tab-batch .seg + .seg { border-left: 1px solid var(--line); }
#tab-batch .seg.on { background: var(--primary-glow); color: var(--primary); font-weight: 600; }
#tab-batch .rf select, #tab-batch .rf input { font: inherit; font-size: 12px; min-height: 32px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); }
#tab-batch .rf input { flex: 1; min-width: 180px; }
#tab-batch ul.runs { list-style: none; margin: 0; padding: 0; }
#tab-batch .run a { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); color: var(--text); text-decoration: none; }
#tab-batch .run a:hover { background: var(--sunken); }
#tab-batch .run .ri { margin-top: 1px; }
#tab-batch .r-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#tab-batch .r-t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-batch .run a:hover .r-t { color: var(--primary); }
#tab-batch .r-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
#tab-batch .r-host { font-weight: 600; }
#tab-batch .s-ng .r-st { color: var(--ng); font-weight: 600; } #tab-batch .s-warn .r-st { color: var(--warn); font-weight: 600; }
#tab-batch .r-stop { font-size: 12px; color: var(--ng); background: var(--ng-bg); border-radius: var(--radius); padding: 2px 6px; align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; }
#tab-batch .s-warn .r-stop { color: var(--warn); background: var(--warn-bg); }
#tab-batch .r-meta { flex: none; width: 150px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
#tab-batch .r-when { display: flex; flex-direction: column; align-items: flex-end; }
#tab-batch .r-when small { font-size: 11px; color: var(--subtle); }
#tab-batch .r-when::before { content: "開始 "; display: none; }
#tab-batch .r-dur::before { content: "⏱ "; }
#tab-batch .btn-more { display: block; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid var(--line-soft); background: var(--card); color: var(--primary); font: inherit; font-size: 13px; cursor: pointer; }
#tab-batch .btn-more:hover { background: var(--sunken); }
#tab-batch .actions details.fold { border-top: 1px solid var(--line-soft); }
#tab-batch .foot-note { font-size: 12px; margin: 0 4px; line-height: 1.7; }
/* ジョブの数字 */
#tab-batch .jstats { display: grid; grid-template-columns: 140px 140px minmax(0, 1fr); gap: 12px 24px; margin-top: 16px; }
#tab-batch .jstats dt { font-size: 12px; color: var(--muted); }
#tab-batch .jstats dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; }
#tab-batch .jstats dd small { font-size: 12px; font-weight: 400; color: var(--muted); }
#tab-batch .jstats .spark dd { overflow-x: auto; }
#tab-batch .spark rect { fill: var(--unk-dot); }
#tab-batch .spark rect.b-ok { fill: var(--ok-dot); } #tab-batch .spark rect.b-ng { fill: var(--ng-dot); } #tab-batch .spark rect.b-warn { fill: var(--warn-dot); }
#tab-batch .spark a:hover rect { opacity: .7; }
/* 1回の実行 */
#tab-batch .run-head { border-top: 3px solid var(--unk-dot); }
#tab-batch .run-head.s-ok { border-top-color: var(--ok-dot); } #tab-batch .run-head.s-ng { border-top-color: var(--ng-dot); } #tab-batch .run-head.s-warn { border-top-color: var(--warn-dot); }
#tab-batch .rh-t { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#tab-batch .rh-t .ri { width: 28px; height: 28px; font-size: 15px; }
#tab-batch .rh-t h3 { margin: 0; font-size: 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
#tab-batch .rh-t h3 small { font-size: 12px; font-weight: 400; color: var(--muted); }
#tab-batch .rh-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 12px; flex-wrap: wrap; }
#tab-batch .rh-nav a { color: var(--primary); text-decoration: none; }
#tab-batch .stop-call { display: flex; gap: 12px; align-items: flex-start; margin: 16px var(--card-pad) 8px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--ng-bg); color: var(--ng); font-size: 13px; line-height: 1.6; }
#tab-batch .stop-call.s-warn { background: var(--warn-bg); color: var(--warn); }
#tab-batch .stop-t { color: var(--text); margin-top: 2px; overflow-wrap: anywhere; }
#tab-batch .stop-go { margin-top: 8px; border: 1px solid currentColor; background: var(--card); color: inherit; border-radius: var(--radius); padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; min-height: 28px; }

@media (max-width: 768px) {
    #tab-batch .act-grid { grid-template-columns: minmax(0, 1fr); }
    #tab-batch .wf { border-right: 0; border-bottom: 1px solid var(--line-soft); max-height: none; display: flex; overflow-x: auto; padding: 8px; gap: 4px; }
    #tab-batch .wf-h { display: none; }
    #tab-batch .wf-i { flex: none; border-left: 0; border-radius: 999px; border: 1px solid var(--line); padding: 4px 12px; max-width: 220px; }
    #tab-batch .wf-i.on { border-color: var(--primary); }
    #tab-batch .run a { padding: 12px; gap: 10px; flex-wrap: wrap; }
    #tab-batch .r-main { flex: 1 1 calc(100% - 40px); }
    #tab-batch .r-meta { width: auto; flex: 1 1 100%; flex-direction: row; justify-content: flex-start; gap: 12px; margin-left: 30px; align-items: center; }
    #tab-batch .r-when { flex-direction: row; gap: 6px; }
    #tab-batch .r-t { white-space: normal; }
    #tab-batch .jstats { grid-template-columns: 1fr 1fr; }
    #tab-batch .jstats .spark { grid-column: 1 / -1; }
    #tab-batch .stop-call { margin: 12px 12px 4px; }
}

/* GitHub の実行画面の形（2026-11-03 2回目: 工程のまとまり・押すとログが開く） */
#tab-batch .r-inf { font-size: 11px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 0 5px; }
#tab-batch .rh-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; margin-top: 16px; padding: 12px 16px; background: var(--sunken); border-radius: var(--radius-lg); }
#tab-batch .rh-sum dt { font-size: 12px; color: var(--muted); }
#tab-batch .rh-sum dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; display: flex; align-items: baseline; gap: 6px; }
#tab-batch .rh-sum dd small { font-size: 11px; font-weight: 400; color: var(--muted); }
#tab-batch .rh-sum .v-ng { color: var(--ng); } #tab-batch .rh-sum .v-warn { color: var(--warn); } #tab-batch .rh-sum .v-ok { color: var(--ok); }
#tab-batch .stop-more { margin: 6px 0 0; padding: 8px 10px; background: #0d1117; color: #e6edf3; border-radius: var(--radius); font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow: auto; }
#tab-batch .run-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-top: 1px solid var(--line-soft); }
#tab-batch .run-grid.one { grid-template-columns: minmax(0, 1fr); }
#tab-batch .gnav { border-right: 1px solid var(--line-soft); padding: 8px 0; }
#tab-batch .gn-i { display: flex; align-items: center; gap: 8px; padding: 7px 16px; font-size: 13px; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
#tab-batch .gn-i:hover { background: var(--sunken); }
#tab-batch .gn-i.on { background: var(--ng-bg); border-left-color: var(--ng-dot); font-weight: 600; }
#tab-batch .gn-i .ri { width: 16px; height: 16px; font-size: 10px; }
#tab-batch .grps { min-width: 0; padding-bottom: 8px; }
#tab-batch .grp-tools { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 12px; border-bottom: 1px solid var(--line-soft); }
#tab-batch .grp-tools .muted { margin-right: auto; }
#tab-batch .lnk { border: 0; background: none; color: var(--primary); font: inherit; font-size: 12px; cursor: pointer; padding: 4px; }
#tab-batch .grp-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; font-size: 14px; position: sticky; top: 0; background: var(--card); z-index: 1; }
#tab-batch .grp-h .ri { width: 18px; height: 18px; font-size: 11px; }
#tab-batch .grp-h .n { margin-left: auto; font-size: 12px; color: var(--muted); }
#tab-batch details.sp { border-left: 3px solid transparent; }
#tab-batch details.sp > summary { display: grid; grid-template-columns: 14px 16px minmax(0, 1fr) 96px 56px; gap: 10px; align-items: center; padding: 7px 16px; cursor: pointer; list-style: none; font-size: 13px; }
#tab-batch details.sp > summary::-webkit-details-marker { display: none; }
#tab-batch details.sp > summary:hover { background: var(--sunken); }
#tab-batch .chev { width: 0; height: 0; border-left: 5px solid var(--muted); border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .12s; justify-self: center; }
#tab-batch .chev.none { border-left-color: transparent; }
#tab-batch details.sp[open] > summary .chev { transform: rotate(90deg); }
#tab-batch details.sp .ri { width: 16px; height: 16px; font-size: 10px; }
#tab-batch .sp-t { overflow-wrap: anywhere; line-height: 1.5; }
#tab-batch .sp-bar { height: 6px; background: var(--sunken); border-radius: 3px; overflow: hidden; }
#tab-batch .sp-bar i { display: block; height: 100%; background: var(--run-dot); border-radius: 3px; }
#tab-batch .sp-d { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
#tab-batch details.sp .log { margin: 0 16px 8px 40px; padding: 8px 0; background: #0d1117; color: #e6edf3; border-radius: var(--radius); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.6; max-height: 420px; overflow: auto; }
#tab-batch .log .ln { display: grid; grid-template-columns: 40px 64px minmax(0, 1fr); gap: 8px; padding: 0 12px; }
#tab-batch .log .ln:hover { background: rgba(110, 118, 129, .2); }
#tab-batch .log .no { color: #6e7681; text-align: right; user-select: none; }
#tab-batch .log .tm { color: #7d8590; }
#tab-batch .log .tx { white-space: pre-wrap; overflow-wrap: anywhere; }
#tab-batch details.sp.s-ng { border-left-color: var(--ng-dot); background: var(--ng-bg); }
#tab-batch details.sp.s-ng .sp-t { color: var(--ng); font-weight: 600; }
#tab-batch details.sp.s-warn { border-left-color: var(--warn-dot); background: var(--warn-bg); }
#tab-batch details.sp.s-warn .sp-t { font-weight: 600; }
#tab-batch details.sp.s-ng .sp-bar i { background: var(--ng-dot); } #tab-batch details.sp.s-warn .sp-bar i { background: var(--warn-dot); }
#tab-batch details.sp.s-after { color: var(--muted); }
#tab-batch details.sp.s-after .sp-bar i { background: var(--unk-dot); }
#tab-batch details.sp.flash { box-shadow: inset 0 0 0 2px var(--ng-dot); }
@media (max-width: 768px) {
    #tab-batch .rh-sum { grid-template-columns: 1fr 1fr; }
    #tab-batch .run-grid { grid-template-columns: minmax(0, 1fr); }
    #tab-batch .gnav { border-right: 0; border-bottom: 1px solid var(--line-soft); display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
    #tab-batch .gnav .wf-h { display: none; }
    #tab-batch .gn-i { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
    #tab-batch details.sp > summary { grid-template-columns: 12px 16px minmax(0, 1fr) 44px; padding: 8px 12px; gap: 8px; }
    #tab-batch details.sp .sp-bar { display: none; }
    #tab-batch details.sp .log { margin: 0 8px 8px; }
    #tab-batch .log .ln { grid-template-columns: 28px minmax(0, 1fr); }
    #tab-batch .log .tm { display: none; }
}
