/* 開発の生産性の測り方。style.css・flow.css・cm.css の上に重ねる（接頭辞 pd-） */
.pd-h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.pd-nl { display: block; margin: 6px 0 0; }
.pd-inl { display: inline; margin: 0 0 0 4px; padding: 0; }
.pd-tips { margin-top: 12px; }
.pd-mt { margin-top: 10px; }
.pd-tnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.pd-box { padding: 12px 14px; min-width: 0; }
.pd-tbl { font-size: 12.5px; }
.pd-tbl th, .pd-tbl td { padding: 6px 8px; }
.pd-wait { margin: 0; font-size: 13px; color: var(--muted); background: var(--line2); border-radius: 10px; padding: 9px 12px; }

/* 操作の枠 */
.pd-ctl { padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 10px; }
.pd-crow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pd-clab { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 4.5em; }
.pd-scene { margin: 0; font-size: 13px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 11px; }
.pd-qrow { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 6px 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line2); }
.pd-qrow:last-child { border-bottom: 0; }
.pd-qlab { font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.pd-qlab small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

/* 会社の 1 枚の道具 */
.pd-dora { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
.pd-apptbl { min-width: 860px; }
.pd-apptbl tbody th { font-weight: 500; min-width: 15em; }
.pd-apptbl td { white-space: nowrap; }
.pd-apptbl tbody th b { font-size: 13px; }
.pd-how { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pd-prev { display: block; font-size: 11.5px; color: var(--muted); }
.pd-tbl tr.pd-odd th, .pd-tbl tr.pd-odd td { background: #fffbeb; }
.pd-tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 0 7px; margin-left: 6px; white-space: nowrap; }
.pd-tag-odd { background: #fef3c7; color: #92400e; }
.pd-kpis { margin: 0 0 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pd-kpis div { background: var(--any-bg); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; min-width: 0; }
.pd-kpis dt { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pd-kpis dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.pd-verdict { margin: 10px 0 0; font-size: 13px; color: var(--ink2); border-radius: 10px; padding: 9px 12px; border: 1px solid var(--line); }
.pd-verdict b { display: block; font-size: 14px; margin-bottom: 2px; }
.pd-verdict.pd-ok { background: #f0fdf4; border-color: #bbf7d0; } .pd-verdict.pd-ok b { color: #14532d; }
.pd-verdict.pd-mid { background: #fffbeb; border-color: #fde68a; } .pd-verdict.pd-mid b { color: #78350f; }
.pd-verdict.pd-ng { background: #fef2f2; border-color: #fecaca; } .pd-verdict.pd-ng b { color: #7f1d1d; }
.pd-warn { margin: 8px 0 0; font-size: 12.5px; color: #78350f; }
.pd-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pd-rank li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.pd-rn { width: 22px; height: 22px; border-radius: 6px; background: #0f172a; color: #fff; font: 600 11.5px/22px var(--latin); text-align: center; }
.pd-rt { display: flex; flex-direction: column; min-width: 0; }
.pd-rt small { font-size: 11px; color: var(--muted); }
.pd-rv { font-weight: 700; white-space: nowrap; }
.pd-trend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pd-trend li { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--paper); }
.pd-trend li.pd-odd { background: #fffdf5; border-color: #fde68a; }
.pd-tn { font-size: 13px; }
.pd-trs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; }
.pd-tr { font-size: 12.5px; color: var(--ink2); }
.pd-tr b { color: var(--ink); }
.pd-tr.pd-down b { color: #15803d; }
.pd-tr.pd-up b { color: #b91c1c; }
.pd-next { margin: 5px 0 0; font-size: 12.5px; color: var(--ink2); }
.pd-next > span:first-child { display: inline-block; font-size: 11px; font-weight: 700; color: #14532d; background: #dcfce7; border-radius: 6px; padding: 0 7px; margin-right: 6px; }

/* 選ぶ練習（面・比べ方） */
.pd-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-pi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--paper); min-width: 0; }
.pd-pi.pd-ok { border-color: #86efac; background: #f7fef9; }
.pd-pi.pd-ng { border-color: #fecaca; background: #fffafa; }
.pd-pih { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.pd-pih p { margin: 0; font-size: 13px; color: var(--ink); }
.pd-pn { width: 22px; height: 22px; border-radius: 50%; background: #0f172a; color: #fff; font: 600 11.5px/22px var(--latin); text-align: center; }
.pd-meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pd-pbtns { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0 30px; }
.pd-ch { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); background: var(--paper); color: var(--ink2); border-radius: 999px; padding: 4px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.pd-ch:hover { border-color: #94a3b8; color: var(--ink); }
.pd-ch[aria-pressed="true"] { color: #fff; background: #0f172a; border-color: #0f172a; }
.pd-dl { font: 600 11px var(--latin); width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--line2); color: var(--ink2); }
.pd-ch[aria-pressed="true"] .pd-dl { background: rgba(255, 255, 255, .25); color: #fff; }
.pd-ch.pd-d-S[aria-pressed="true"] { background: #15803d; border-color: #15803d; }
.pd-ch.pd-d-P[aria-pressed="true"] { background: #1d4ed8; border-color: #1d4ed8; }
.pd-ch.pd-d-A[aria-pressed="true"] { background: #b45309; border-color: #b45309; }
.pd-ch.pd-d-C[aria-pressed="true"] { background: #0f766e; border-color: #0f766e; }
.pd-ch.pd-d-E[aria-pressed="true"] { background: #6d28d9; border-color: #6d28d9; }
.pd-ch.pd-c-ok[aria-pressed="true"] { background: #15803d; border-color: #15803d; }
.pd-ch.pd-c-cond[aria-pressed="true"] { background: #b45309; border-color: #b45309; }
.pd-ch.pd-c-ng[aria-pressed="true"] { background: #b91c1c; border-color: #b91c1c; }
.pd-pans { margin: 8px 0 0 30px; font-size: 12.5px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 6px 9px; }
.pd-pans b { display: block; color: var(--ink); }
.pd-pfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.pd-psum { font-size: 13px; color: var(--ink2); }
.pd-spside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; align-items: start; }
.pd-bars { display: grid; gap: 6px; }
.pd-bar { display: grid; grid-template-columns: 10em minmax(0, 1fr) 2em; gap: 8px; align-items: center; font-size: 12.5px; }
.pd-bl { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); }
.pd-bl b { font: 600 11.5px var(--latin); width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--line2); }
.pd-bt { height: 12px; background: var(--line2); border-radius: 6px; overflow: hidden; }
.pd-bt i { display: block; height: 100%; border-radius: 6px; }
.pd-bt i.pd-d-S { background: #15803d; } .pd-bt i.pd-d-P { background: #1d4ed8; } .pd-bt i.pd-d-A { background: #b45309; } .pd-bt i.pd-d-C { background: #0f766e; } .pd-bt i.pd-d-E { background: #6d28d9; }
.pd-bn { font: 600 12.5px var(--latin); text-align: right; }
.pd-spout .pd-verdict { margin: 0; }

/* AI の効果の道具 */
.pd-aie { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.pd-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pd-rows li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 8px; align-items: baseline; font-size: 13px; padding: 6px 9px; border-radius: 8px; background: var(--any-bg); }
.pd-rows li > span:last-child { grid-column: 2; color: var(--ink2); font-size: 12.5px; overflow-wrap: anywhere; }
.pd-rk { font-weight: 700; text-align: center; color: var(--muted); }
.pd-rows li.pd-ok { background: #f0fdf4; } .pd-rows li.pd-ok .pd-rk { color: #15803d; }
.pd-rows li.pd-mid { background: #fffbeb; } .pd-rows li.pd-mid .pd-rk { color: #b45309; }
.pd-rows li.pd-ng { background: #fef2f2; } .pd-rows li.pd-ng .pd-rk { color: #b91c1c; }

/* 比べ方の練習の数 */
.pd-numtbl { min-width: 560px; }
.pd-numtbl tbody th { font-weight: 700; vertical-align: middle; }

/* 残す形 */
.pd-tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; align-items: start; }
.pd-tpl { padding: 12px 14px; min-width: 0; }
.pd-tpl-wide { grid-column: 1 / -1; }
.pd-tplh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pd-tplh .pd-h4 { margin: 0; }
.pd-pre { margin: 0; background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 10px 12px; font: 500 12px/1.6 var(--latin); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow-y: auto; }
.pd-deftbl { min-width: 1100px; }
.pd-deftbl td:nth-child(3) { min-width: 16em; }

.pd-ch:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

@media (max-width: 1100px) {
  .pd-aie, .pd-tpls, .pd-spside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .pd-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pd-qrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pd-clab { min-width: 0; width: 100%; }
  .pd-pbtns, .pd-pans { margin-left: 0; }
  .pd-kpis { grid-template-columns: minmax(0, 1fr); }
  .pd-bar { grid-template-columns: 9em minmax(0, 1fr) 1.6em; }
  .pd-apptbl tbody th { min-width: 11em; }
  .pd-tbl th, .pd-tbl td { padding: 5px 6px; }
}
