/* オープンソースの管理。style.css・flow.css・cm.css の上に重ねる（接頭辞 os-） */
.os-h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.os-lead { margin: 0 0 8px; font-size: 13px; color: var(--ink2); }
.os-nl { display: block; margin: 6px 0 0; }
.os-inl { display: inline; margin: 0 0 0 6px; padding: 0; }
.os-tips { margin-top: 12px; }
.os-mt { margin-top: 10px; }
.os-tnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.os-box { padding: 12px 14px; min-width: 0; }
.os-tbl { font-size: 12.5px; }
.os-tbl th, .os-tbl td { padding: 6px 8px; }
.os-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.os-sub { margin: 12px 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.os-small { margin: 0; font-size: 12.5px; color: var(--ink2); }
.os-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; align-items: start; }

/* 表 */
.os-ttbl { min-width: 760px; }
.os-ttbl td:first-child { font-weight: 700; color: var(--ink); min-width: 10em; }
.os-otbl { min-width: 860px; }
.os-otbl td:first-child { font-weight: 700; color: var(--ink); min-width: 11em; }
.os-gtbl { min-width: 860px; }
.os-gtbl td:first-child { font-weight: 700; color: var(--ink); min-width: 9em; }
.os-ptbl { min-width: 900px; }
.os-ptbl td:first-child { font: 600 12px var(--latin); color: var(--ink); min-width: 13em; }

/* 操作の枠 */
.os-ctl { padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 10px; }
.os-crow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.os-clab { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 3em; }
.os-scene { margin: 0; font-size: 13px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 11px; }
.os-scene b { color: var(--ink); margin-right: 4px; }
.os-qrow { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 6px 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line2); }
.os-qrow:last-child { border-bottom: 0; }
.os-qlab { font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.os-qp { text-align: left; font-weight: 500; }
.os-qp[aria-pressed="true"] { font-weight: 700; }

/* 判定 */
.os-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); }
.os-verdict b { font-size: 17px; }
.os-verdict span { font-size: 12.5px; color: var(--ink2); }
.os-verdict.os-v-free { background: #f0fdf4; border-color: #bbf7d0; } .os-verdict.os-v-free b { color: #14532d; }
.os-verdict.os-v-note { background: #f0fdf4; border-color: #bbf7d0; } .os-verdict.os-v-note b { color: #166534; }
.os-verdict.os-v-cond { background: #fffbeb; border-color: #fde68a; } .os-verdict.os-v-cond b { color: #92400e; }
.os-verdict.os-v-ask { background: #eff6ff; border-color: #bfdbfe; } .os-verdict.os-v-ask b { color: #1e3a8a; }
.os-verdict.os-v-src { background: #fff7ed; border-color: #fed7aa; } .os-verdict.os-v-src b { color: #9a3412; }
.os-verdict.os-v-stop { background: #fef2f2; border-color: #fecaca; } .os-verdict.os-v-stop b { color: #991b1b; }
.os-vb { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 7px; border: 1px solid var(--line); white-space: nowrap; margin-right: 4px; }
.os-vb.os-v-free, .os-vb.os-v-note { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.os-vb.os-v-cond { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.os-vb.os-v-ask { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.os-vb.os-v-src { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.os-vb.os-v-stop { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.os-vb.os-v-info { background: var(--line2); color: var(--ink2); }
.os-hits { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.os-hits li { font-size: 12.5px; color: var(--ink2); }
.os-who { margin: 0; padding-left: 1.2em; font-size: 12.5px; color: var(--ink2); display: grid; gap: 3px; }
.os-model { margin-top: 10px; background: var(--line2); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; color: var(--ink2); }
.os-model p { margin: 0 0 4px; }
.os-model p:last-child { margin-bottom: 0; }
.os-model b { color: var(--ink); margin-right: 6px; }
.os-chg { color: #78350f; }

/* 例の表 */
.os-ctbl { min-width: 680px; }
.os-srow { cursor: pointer; }
.os-srow:hover th, .os-srow:hover td { background: var(--line2); }
.os-tbl tr.os-on th, .os-tbl tr.os-on td { background: #f0fdf4; }
.os-ctbl tbody th { font-weight: 500; }
.os-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; }
.os-sel:hover { border-color: #94a3b8; background: var(--any-bg); }
.os-sel[aria-pressed="true"] { border-color: #15803d; background: #dcfce7; }

/* 残す形 */
.os-tpls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; align-items: start; }
.os-tpl { padding: 12px 14px; min-width: 0; }
.os-tplr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; align-items: start; }
.os-tplh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.os-tplh .os-h4 { margin: 0; }
.os-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: 420px; overflow-y: auto; }

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

@media (max-width: 1100px) {
  .os-two, .os-tplr { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .os-qrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .os-clab { min-width: 0; width: 100%; }
  .os-tbl th, .os-tbl td { padding: 5px 6px; }
}
