/* プラットフォームと開発者の体験。style.css・flow.css・cm.css の上に重ねる（接頭辞 pf-） */
.pf-h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.pf-nl { display: block; margin: 6px 0 0; }
.pf-inl { display: inline; margin: 0 0 0 6px; padding: 0; }
.pf-tips { margin-top: 12px; }
.pf-mt { margin-top: 10px; }
.pf-tnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.pf-box { padding: 12px 14px; min-width: 0; }
.pf-tbl { font-size: 12.5px; }
.pf-tbl th, .pf-tbl td { padding: 6px 8px; }
.pf-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

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

/* 判定 */
.pf-what { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.pf-verdict { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; border-radius: 10px; padding: 9px 12px; border: 1px solid var(--line); }
.pf-verdict b { font-size: 17px; }
.pf-verdict span { font-size: 12.5px; color: var(--ink2); }
.pf-v-common { background: #f0fdf4; border-color: #bbf7d0; } .pf-verdict.pf-v-common b { color: #14532d; }
.pf-v-tmpl { background: #eff6ff; border-color: #bfdbfe; } .pf-verdict.pf-v-tmpl b { color: #1e3a8a; }
.pf-v-local { background: var(--line2); border-color: var(--line); } .pf-verdict.pf-v-local b { color: var(--ink); }
.pf-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.pf-parts li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink2); padding: 3px 0; border-bottom: 1px dashed var(--line2); }
.pf-parts li b { font: 600 12.5px var(--latin); color: var(--ink); white-space: nowrap; }
.pf-parts li.pf-ptot { border-bottom: 0; font-weight: 700; color: var(--ink); }
.pf-notes { margin: 10px 0 0; padding-left: 1.2em; font-size: 12.5px; color: #78350f; display: grid; gap: 4px; }
.pf-model { margin-top: 10px; background: var(--line2); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; color: var(--ink2); }
.pf-model p { margin: 0 0 4px; }
.pf-model p:last-child { margin-bottom: 0; }
.pf-model b { color: var(--ink); margin-right: 6px; }
.pf-chg { color: #78350f; }
.pf-stbl { min-width: 560px; }
.pf-stbl tbody th { font-weight: 500; }
.pf-tbl tr.pf-on th, .pf-tbl tr.pf-on td { background: #f0fdf4; }
.pf-srow { cursor: pointer; }
.pf-srow:hover th, .pf-srow:hover td { background: var(--line2); }
.pf-tbl tr.pf-on:hover th, .pf-tbl tr.pf-on:hover td { background: #f0fdf4; }
.pf-sel { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; }
.pf-sel:hover { border-color: #94a3b8; background: var(--any-bg); }
.pf-sel[aria-pressed="true"] { border-color: #15803d; background: #dcfce7; }
.pf-vt { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 8px; border: 1px solid var(--line); white-space: nowrap; }
.pf-vt.pf-v-common { color: #14532d; } .pf-vt.pf-v-tmpl { color: #1e3a8a; } .pf-vt.pf-v-local { color: var(--ink2); }

/* 入り口 */
.pf-steptbl { min-width: 680px; }
.pf-steptbl td:first-child { font: 600 13px var(--latin); text-align: center; }
.pf-cat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.pf-chk { margin-top: 12px; }
.pf-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pf-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); }
.pf-rows li > span:last-child { grid-column: 2; color: var(--ink2); font-size: 12.5px; overflow-wrap: anywhere; }
.pf-rk { font-weight: 700; text-align: center; color: var(--muted); }
.pf-rows li.pf-ok { background: #f0fdf4; } .pf-rows li.pf-ok .pf-rk { color: #15803d; }
.pf-rows li.pf-mid { background: #fffbeb; } .pf-rows li.pf-mid .pf-rk { color: #b45309; }
.pf-rows li.pf-ng { background: #fef2f2; } .pf-rows li.pf-ng .pf-rk { color: #b91c1c; }
.pf-sum { margin: 10px 0 0; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 7px 10px; }
.pf-sum.pf-ok { background: #f0fdf4; color: #14532d; }
.pf-sum.pf-mid { background: #fffbeb; color: #78350f; }
.pf-tplh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pf-tplh .pf-h4 { margin: 0; }
.pf-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; }

/* 成熟度 */
.pf-mm { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.pf-mrow { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--line2); }
.pf-mrow:first-child { padding-top: 0; }
.pf-mrow:last-child { border-bottom: 0; padding-bottom: 0; }
.pf-mlab b { font-size: 13.5px; margin-right: 6px; }
.pf-mlab small { font-size: 11.5px; color: var(--muted); }
.pf-lvs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.pf-lv { appearance: none; font: inherit; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; min-width: 0; }
.pf-lv small { display: block; font: 600 10.5px var(--latin); color: var(--muted); }
.pf-lv:hover { border-color: #94a3b8; }
.pf-lv[aria-pressed="true"] { background: #15803d; border-color: #15803d; color: #fff; }
.pf-lv[aria-pressed="true"] small { color: #dcfce7; }
.pf-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pf-next li { display: grid; gap: 2px; font-size: 12.5px; color: var(--ink2); background: var(--any-bg); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.pf-next li b { font-size: 13px; color: var(--ink); }
.pf-act { color: #14532d; }

/* 見張り表 */
.pf-me { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.pf-mcat { padding: 6px 0; border-bottom: 1px dashed var(--line2); }
.pf-mcat:first-child { padding-top: 0; }
.pf-mcl { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pf-mchips { display: flex; flex-wrap: wrap; gap: 4px; }
.pf-mc { appearance: none; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; color: var(--ink2); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; max-width: 100%; }
.pf-mc:hover { border-color: #94a3b8; color: var(--ink); }
.pf-mc[aria-pressed="true"] { background: #f0fdf4; border-color: #15803d; color: var(--ink); box-shadow: 0 0 0 1px #15803d; }
.pf-mc.pf-c-out[aria-pressed="true"] { background: #fef2f2; border-color: #b91c1c; box-shadow: 0 0 0 1px #b91c1c; }

/* 残す形 */
.pf-tpls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; margin-top: 10px; align-items: start; }
.pf-tpl { padding: 12px 14px; min-width: 0; }
.pf-tpl-wide { grid-column: 1 / -1; }
.pf-tplr { display: grid; gap: 10px; min-width: 0; }
.pf-ltbl { min-width: 1040px; }
.pf-ltbl td:first-child { min-width: 14em; }
.pf-sctbl { min-width: 820px; }
.pf-mmtbl { min-width: 640px; }

.pf-sel:focus-visible, .pf-lv:focus-visible, .pf-mc:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

@media (max-width: 1100px) {
  .pf-what, .pf-cat, .pf-mm, .pf-me, .pf-tpls { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pf-qrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pf-clab { min-width: 0; width: 100%; }
  .pf-lvs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-tbl th, .pf-tbl td { padding: 5px 6px; }
}
