/* テストの計画と品質。style.css・flow.css・fm.css の上に重ねる */
.tp-lead { margin: 0 0 8px; font-size: 13px; color: var(--ink2); }
.tp-small { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.tp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; }
.tp-score, .tp-count { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink2); }
.tp-judge { margin: 8px 0 0; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 7px 10px; }
.tp-judge.ok { background: #f0fdf4; color: #14532d; }
.tp-judge.ng { background: #fef2f2; color: #7f1d1d; }
.tp-judge.mid { background: #fffbeb; color: #78350f; }
/* テストの段 */
.tp-lv { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 10px; margin: 10px 0; align-items: start; }
.tp-levelinfo, .tp-tl { padding: 12px 14px; }
.tp-levelinfo h3, .tp-tl h3 { margin: 0 0 6px; font-size: 15px; }
.tp-dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 13px; }
.tp-dl dt { font-size: 11.5px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.tp-dl dd { margin: 0; color: var(--ink); }
.tp-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink2); }
.tp-timeline li { display: flex; gap: 8px; border-bottom: 1px solid var(--line2); padding-bottom: 3px; }
.tp-d { flex: none; width: 6.4em; font: 600 12px var(--latin); color: #1d4ed8; }
/* 技法 */
.tp-here { background: #f0fdfa; border-radius: 8px; padding: 6px 9px; }
.tp-here span { display: block; font-size: 11px; font-weight: 700; color: #0f766e; }
.tp-brules { margin: 12px 0 8px; }
.tp-bbox { padding: 12px 14px; }
.tp-rule { margin: 0; font-size: 13px; color: var(--ink2); background: #fffef8; border: 1px solid #e7e1c8; border-radius: 10px; padding: 8px 11px; }
.tp-rule b { display: block; font-size: 11.5px; color: var(--muted); }
.tp-parts { margin: 8px 0 10px; padding-left: 1.3em; font-size: 12.5px; color: var(--ink2); display: grid; gap: 2px; }
.tp-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.tp-chip { appearance: none; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 6px 9px; color: var(--ink); display: flex; gap: 6px; align-items: baseline; }
.tp-chip small { font: 600 11px var(--latin); color: var(--muted); }
.tp-chip:hover { border-color: #94a3b8; }
.tp-chip[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.tp-chip[aria-pressed="true"] small { color: #cbd5e1; }
.tp-btable { min-width: 600px; }
.tp-btable th small { font: 600 11px var(--latin); color: var(--muted); }
.tp-c { text-align: center !important; white-space: nowrap; }
.tp-hit { background: #dcfce7; color: #166534; font-weight: 700; }
.tp-no { color: #94a3b8; }
.tp-bugs { margin: 8px 0 0; padding-left: 1.4em; font-size: 13px; color: var(--ink2); display: grid; gap: 3px; }
.tp-bugs li b { margin-right: 6px; color: #b91c1c; }
.tp-bugs li.on b { color: #166534; }
/* デシジョンテーブル */
.tp-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tp-rcard { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-rcard h4 { margin: 0; font-size: 13px; }
.tp-rcard.ok { border-color: #86efac; background: #f0fdf4; }
.tp-rcard.ng { border-color: #fca5a5; background: #fef2f2; }
.tp-conds { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12px; color: var(--ink2); }
.tp-conds li { display: flex; gap: 6px; align-items: baseline; }
.tp-yn { flex: none; display: inline-grid; place-items: center; width: 20px; height: 18px; border-radius: 5px; font: 600 11px var(--latin); }
.tp-yn.y { background: #1d4ed8; color: #fff; }
.tp-yn.n { background: #e2e8f0; color: #334155; }
.tp-sel { display: grid; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tp-sel select { font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; background: var(--paper); min-width: 0; max-width: 100%; }
.tp-rfb { margin: 0; font-size: 12px; color: var(--ink2); }
.tp-dtable { min-width: 520px; }
.tp-dtable tr.tp-act th, .tp-dtable tr.tp-act td { background: #f8fafc; }
#tpDtNotes { margin-top: 10px; }
.tp-stable { min-width: 820px; font-size: 12px; }
.tp-stable th, .tp-stable td { font-size: 12px; }
.tp-stable thead th { white-space: nowrap; }
.tp-ok { color: #166534; background: #f0fdf4; }
.tp-x { color: #94a3b8; text-align: center !important; }
/* 不具合 */
.tp-def { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; align-items: start; }
.tp-fields { padding: 12px 14px; }
.tp-fields h3 { margin: 0 0 6px; font-size: 14px; }
.tp-fields ol { margin: 0; padding-left: 1.4em; font-size: 12.5px; color: var(--ink2); display: grid; gap: 2px; }
.tp-defcards { grid-template-columns: minmax(0, 1fr) !important; }
.tp-sev { display: inline-grid; place-items: center; width: 24px; height: 22px; border-radius: 6px; font: 600 12px var(--latin); }
.tp-sev.sA { background: #b91c1c; color: #fff; }
.tp-sev.sB { background: #f59e0b; color: #fff; }
.tp-sev.sC { background: #e2e8f0; color: #334155; }
.tp-dqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.tp-dq { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.tp-dq > p:first-child { margin: 0; font-size: 13.5px; color: var(--ink); }
.tp-dq.ok { border-color: #86efac; }
.tp-dq.ng { border-color: #fca5a5; }
.tp-dqopts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tp-dqopts button { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 6px 4px; color: var(--ink2); }
.tp-dqopts button:hover { border-color: #94a3b8; }
.tp-dqopts button[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.tp-dq.ok .tp-rfb { background: #f0fdf4; color: #14532d; border-radius: 8px; padding: 6px 9px; }
.tp-dq.ng .tp-rfb { background: #fef2f2; color: #7f1d1d; border-radius: 8px; padding: 6px 9px; }
/* 品質の数字 */
.tp-chartbox { margin-top: 10px; padding: 10px 12px; }
.tp-chartbox svg { width: 100%; height: auto; display: block; max-width: 760px; margin: 0 auto; }
.tp-grid { stroke: #eef1f6; stroke-width: 1; }
.tp-ax { font: 600 11px var(--latin); fill: var(--muted); }
.tp-found, .tp-open, .tp-run { fill: none; stroke-width: 2.5; }
.tp-found { stroke: #1d4ed8; }
.tp-open { stroke: #b91c1c; }
.tp-run { stroke: #64748b; stroke-dasharray: 5 4; stroke-width: 2; }
.tp-foundd { fill: #1d4ed8; }
.tp-opend { fill: #b91c1c; }
.tp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.tp-legend span::before { content: ""; display: inline-block; width: 16px; height: 0; border-top: 3px solid; margin-right: 5px; vertical-align: 3px; }
.tp-legend .tp-kf::before { border-color: #1d4ed8; }
.tp-legend .tp-ko::before { border-color: #b91c1c; }
.tp-legend .tp-kr::before { border-top: 3px dashed #64748b; }
.tp-sevline { margin: 6px 0 0; font-size: 13px; color: var(--ink2); }
.tp-sevline b { margin-right: 6px; color: var(--ink); }
.tp-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.tp-opt { appearance: none; font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 10px; color: var(--ink); }
.tp-opt:hover { border-color: #94a3b8; }
.tp-opt[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
/* 受け入れテストと検収 */
.tp-accsteps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: a; }
.tp-accsteps li { counter-increment: a; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-accsteps b { font-size: 13.5px; }
.tp-accsteps b::before { content: counter(a) ". "; font-family: var(--latin); color: #1d4ed8; }
.tp-accsteps span { font-size: 12.5px; color: var(--ink2); }
.tp-accsteps .fm-go { margin-top: auto; font-size: 12px; }
.tp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.tp-list { padding: 12px 14px; }
.tp-list h3 { margin: 0 0 6px; font-size: 14px; }
.tp-list ul { margin: 0; padding-left: 1.3em; font-size: 13px; color: var(--ink2); display: grid; gap: 3px; }
.tp-chip:focus-visible, .tp-sel select:focus-visible, .tp-dqopts button:focus-visible, .tp-opt:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (max-width: 1100px) {
  .tp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-accsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-def { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tp-lv, .tp-dqs, .tp-two, .tp-opts { grid-template-columns: minmax(0, 1fr); }
  .tp-rules { grid-template-columns: minmax(0, 1fr); }
  .tp-accsteps { grid-template-columns: minmax(0, 1fr); }
  .tp-dqopts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
