/* 待機を減らす。style.css・flow.css・br.css の上に重ねる（接頭辞 bn-） */
.bn-h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.bn-mt { margin-top: 10px; }
.bn-tips { margin-top: 12px; }
.bn-box { padding: 12px 14px; min-width: 0; }
.bn-tbl { font-size: 12.5px; }
.bn-tbl th, .bn-tbl td { padding: 6px 8px; }
.bn-tbl tbody th { font-weight: 700; color: var(--ink); }
.bn-tnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.bn-ptbl { min-width: 760px; }
.bn-ptbl tbody th { min-width: 10em; }
.bn-ptbl td:nth-child(2) { min-width: 16em; }
.bn-stbl tbody th, .bn-wtbl tbody th { white-space: nowrap; }
.bn-wtbl { min-width: 640px; }
.bn-atbl { min-width: 520px; }
.bn-atbl td:nth-child(2) { font-family: var(--latin); font-weight: 600; white-space: nowrap; }
.bn-ltbl { min-width: 1040px; }

/* 操作の枠 */
.bn-ctl { padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 10px; }
.bn-crow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bn-lab { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 5em; }
.bn-exwhat { margin: 0; font-size: 13px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 11px; }

/* 逆算の道具 */
.bn-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; align-items: start; }
.bn-form { padding: 12px 14px; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.bn-inp { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bn-inp span { font-size: 12px; font-weight: 700; color: var(--ink2); line-height: 1.4; }
.bn-inp input { font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink); background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 9px; padding: 5px 8px; min-width: 0; width: 100%; box-sizing: border-box; }
.bn-inp input:focus-visible { outline: 3px solid #2563eb; outline-offset: 1px; }
.bn-form .bn-inp:first-child { grid-column: 1 / -1; }
.bn-fnote { margin: 0; font-size: 12px; color: var(--muted); grid-column: 1 / -1; }
.bn-out { padding: 12px 14px; min-width: 0; }
.bn-verdict { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; border-radius: 8px; padding: 8px 11px; }
.bn-verdict.bn-ok { background: #f0fdf4; color: #14532d; }
.bn-verdict.bn-soon { background: #fffbeb; color: #78350f; }
.bn-verdict.bn-late { background: #fff7ed; color: #7c2d12; }
.bn-verdict.bn-ng { background: #fef2f2; color: #7f1d1d; }
.bn-kv { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.bn-kv div { background: var(--line2); border-radius: 8px; padding: 6px 9px; min-width: 0; }
.bn-kv dt { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.bn-kv dd { margin: 2px 0 0; font: 600 13px var(--latin); color: var(--ink); overflow-wrap: anywhere; }
.bn-money { margin: 10px 0 6px; font-size: 13px; color: var(--ink2); }

/* 逆算した手順 */
.bn-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bn-step { display: grid; grid-template-columns: 11.5em minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--paper); }
.bn-step.bn-end { background: var(--line2); }
.bn-sdate { font: 600 12.5px var(--latin); color: var(--ink2); white-space: nowrap; }
.bn-sbody { min-width: 0; }
.bn-sbody b { display: block; font-size: 13px; }
.bn-sbody small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.bn-sstate { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.bn-sstate.bn-past { background: #fef2f2; color: #991b1b; }
.bn-sstate.bn-today { background: #fffbeb; color: #92400e; }
.bn-sstate.bn-future { background: #f0fdf4; color: #166534; }

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

@media (max-width: 1100px) {
  .bn-tool { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .bn-form, .bn-kv { grid-template-columns: minmax(0, 1fr); }
  .bn-step { grid-template-columns: minmax(0, 1fr) auto; }
  .bn-sbody { grid-column: 1 / -1; grid-row: 2; }
}
