/* 品質とテストの見方。style.css・flow.css・br.css の上に重ねる（接頭辞 ql-） */
.ql-box { padding: 12px 14px; min-width: 0; }
.ql-h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.ql-sub { margin: 10px 0 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ql-tnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.ql-num { font-family: var(--latin); font-weight: 600; white-space: nowrap; text-align: right; }
.ql-case th { width: 6em; font-weight: 700; color: var(--ink2); }
.ql-levels { min-width: 820px; }
.ql-levels tbody th { font-weight: 700; }

/* 練習 */
.ql-ctl { padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 10px; }
.ql-what { margin: 0; font-size: 13px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 11px; }
.ql-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.ql-fig { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.ql-fig figcaption { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.ql-fig svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.ql-grid { stroke: #e2e8f0; stroke-width: 1; }
.ql-ax { font: 600 10px var(--latin); fill: #64748b; }
.ql-legend { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink2); }
.ql-legend li { display: flex; align-items: center; gap: 6px; }
.ql-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.ql-legend i.ql-dash { background-image: linear-gradient(90deg, transparent 50%, var(--paper) 50%) !important; background-size: 6px 3px; }
.ql-nums { min-width: 640px; font-size: 12.5px; }
.ql-nums tbody th { font-weight: 700; color: var(--ink2); }
.ql-judge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; margin-top: 10px; align-items: start; }
.ql-decs { display: grid; gap: 6px; margin-bottom: 10px; }
.ql-dec { appearance: none; font: inherit; font-size: 13px; font-weight: 700; text-align: left; border: 1px solid var(--line); background: var(--paper); color: var(--ink2); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.ql-dec:hover { border-color: #94a3b8; color: var(--ink); }
.ql-dec[aria-pressed="true"].ql-d-go { background: #15803d; border-color: #15803d; color: #fff; }
.ql-dec[aria-pressed="true"].ql-d-cond { background: #b45309; border-color: #b45309; color: #fff; }
.ql-dec[aria-pressed="true"].ql-d-stop { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.ql-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ql-out { font-size: 13px; color: var(--ink2); }
.ql-out p { margin: 0 0 6px; }
.ql-note { color: var(--ink2); }
.ql-verdict { border-radius: 8px; padding: 7px 10px; }
.ql-verdict.ql-ok { background: #f0fdf4; color: #14532d; }
.ql-verdict.ql-mid { background: #fffbeb; color: #78350f; }
.ql-rules { margin: 6px 0 8px; font-size: 12.5px; }
.ql-rules th { font-weight: 500; color: var(--ink2); }
.ql-yes, .ql-no { white-space: nowrap; font-weight: 700; }
.ql-yes { color: #166534; }
.ql-no { color: #b91c1c; }
.ql-cond { margin: 0 0 6px; padding-left: 1.2em; display: grid; gap: 3px; }

/* 残す形 */
.ql-tpls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.ql-tpl { padding: 12px 14px; min-width: 0; }
.ql-tplh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ql-tplh .ql-h4 { margin: 0; }
.ql-ttbl { min-width: 640px; font-size: 12.5px; }
.ql-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; }

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

@media (max-width: 1100px) {
  .ql-judge { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ql-charts { grid-template-columns: minmax(0, 1fr); }
}
