/* 脆弱性への対応。style.css・flow.css・fm.css の上に重ねる（接頭辞 vl-。3 日は赤、14 日は琥珀、60 日は黄、次の更新は緑、対象外は灰色） */
.vl-lead { margin: 0 0 10px; font-size: 13px; color: var(--ink2); max-width: 64em; }
.vl-lead a, .vl-notes a { color: #1d4ed8; }
.vl-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.vl-score { margin: 10px 0 0; font-size: 13.5px; color: var(--ink2); }
.vl-score b { font-family: var(--latin); }
.vl-how { margin: 8px 0 0; font-size: 12.5px; color: var(--ink2); }
.vl-judge { margin: 8px 0 0; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 7px 10px; }
.vl-judge.ok { background: #f0fdf4; color: #14532d; }
.vl-judge.ng { background: #fef2f2; color: #7f1d1d; }
.vl-judge.mid { background: #fffbeb; color: #78350f; }

/* 期限と深刻度の印 */
.vl-due-tag, .vl-sev, .vl-pub { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.6; border-radius: 6px; padding: 0 7px; white-space: nowrap; background: var(--line2); color: var(--ink2); }
.vl-due-tag.red, .vl-sev.crit { background: #fee2e2; color: #991b1b; }
.vl-due-tag.amber, .vl-sev.high { background: #ffedd5; color: #9a3412; }
.vl-due-tag.yellow, .vl-sev.mid { background: #fef9c3; color: #854d0e; }
.vl-due-tag.green { background: #dcfce7; color: #166534; }
.vl-sev.low { background: #e0f2fe; color: #075985; }
.vl-due-tag.gray, .vl-sev.none { background: #e2e8f0; color: #334155; }
.vl-pub.y { background: #ffedd5; color: #9a3412; }
.vl-pub.n { background: #e2e8f0; color: #334155; }

/* 区切りのボタン（値を選ぶ） */
.vl-seg, .vl-seg2 { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); max-width: 100%; }
.vl-seg button, .vl-seg2 button { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; border: 0; border-right: 1px solid var(--line); background: var(--paper); color: var(--ink2); padding: 5px 10px; cursor: pointer; }
.vl-seg button:last-child, .vl-seg2 button:last-child { border-right: 0; }
.vl-seg button:hover, .vl-seg2 button:hover { background: var(--any-bg); color: var(--ink); }
.vl-seg button[aria-pressed="true"], .vl-seg2 button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.vl-seg2 { margin-bottom: 10px; }
.vl-seg2 button { font-size: 13px; padding: 7px 12px; }

/* 情報源 */
.vl-feed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px; align-items: start; }
.vl-srcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.vl-src { appearance: none; font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 10px; color: var(--ink); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vl-src b { font-size: 13.5px; }
.vl-src small { font-size: 11.5px; color: var(--muted); }
.vl-src:hover { border-color: #94a3b8; }
.vl-src[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.vl-src[aria-pressed="true"] small { color: #cbd5e1; }
.vl-info { padding: 12px 14px; min-width: 0; }
.vl-info h3 { margin: 0 0 6px; font-size: 16px; }
.vl-dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; font-size: 13px; }
.vl-dl dt { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.vl-dl dd { margin: 0; color: var(--ink2); overflow-wrap: anywhere; }

/* CVSS の計算機 */
.vl-presets { margin-bottom: 8px; }
.vl-presets .vl-preset { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.35; border-radius: 12px; padding: 6px 12px; text-align: left; }
.vl-presets .vl-preset small { font-size: 11px; font-weight: 500; opacity: .8; }
.vl-story { margin: 0 0 10px; font-size: 13px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 11px; max-width: 64em; }
.vl-calc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 10px; }
.vl-metrics, .vl-out { padding: 12px 14px; min-width: 0; }
.vl-metrics h4, .vl-out h4, .vl-dueout h4, .vl-rank h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.vl-metrics h4 + div { margin-bottom: 12px; }
.vl-metrics > div:last-child { margin-bottom: 0; }
.vl-m { display: grid; grid-template-columns: 11.5em minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--line2); }
.vl-mn { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.vl-mn code { white-space: nowrap; flex: none; }
.vl-mn code, .vl-vec code, .vl-small, .vl-ah code, .vl-inv code, .vl-cols code, .vl-rank code { font: 600 11.5px var(--latin); background: var(--line2); border-radius: 5px; padding: 0 5px; overflow-wrap: anywhere; }
.vl-sboxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vl-sbox { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vl-sbox.off { opacity: .55; }
.vl-sbox > span { font-size: 12px; font-weight: 700; color: var(--muted); }
.vl-sbox small { font-size: 11px; color: var(--muted); }
.vl-num { font: 700 26px/1.15 var(--latin); color: var(--ink); }
.vl-num.crit { color: #b91c1c; }
.vl-num.high { color: #c2410c; }
.vl-num.mid { color: #a16207; }
.vl-num.low { color: #0369a1; }
.vl-sbox .vl-sev { align-self: flex-start; }
.vl-vec { margin: 10px 0 0; }

/* 期限の決め方 */
.vl-due { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.vl-qs, .vl-dueout { padding: 12px 14px; min-width: 0; }
.vl-q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 7px 0; border-bottom: 1px dashed var(--line2); }
.vl-q:last-child { border-bottom: 0; }
.vl-q p { margin: 0; flex: 1 1 18em; min-width: 0; }
.vl-q b { display: block; font-size: 13.5px; }
.vl-q small { display: block; font-size: 11.5px; color: var(--muted); }
.vl-big { margin: 0 0 6px; font: 700 24px/1.25 var(--sans); color: var(--ink); }
.vl-big.red { color: #b91c1c; }
.vl-big.amber { color: #c2410c; }
.vl-big.yellow { color: #a16207; }
.vl-big.green { color: #15803d; }
.vl-dueout p { margin: 0 0 6px; font-size: 13px; color: var(--ink2); }
.vl-rowno { color: var(--muted) !important; font-size: 12px !important; }
.vl-table { margin-top: 10px; }
.vl-table summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #1d4ed8; padding: 4px 0; }
.vl-bod { min-width: 520px; }
.vl-bod td.n { font-family: var(--latin); color: var(--muted); }
.fm-table.vl-bod tr.on td { background: #fef9c3; }
.vl-notes { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 3px; font-size: 12.5px; color: var(--ink2); max-width: 64em; }

/* 練習: どれを先に直すか */
.vl-inv { min-width: 720px; }
.vl-inv th[scope="rowgroup"] { font-size: 13px; white-space: nowrap; }
.vl-inv th small, .vl-inv td small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); white-space: normal; }
.vl-inv td.t { font-family: var(--latin); white-space: nowrap; }
.vl-rank { padding: 12px 14px; margin-bottom: 10px; }
.vl-ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vl-ranks ol { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; font-size: 13px; }
.vl-advs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vl-adv { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vl-adv.done { border-color: #cbd5e1; }
.vl-ah { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.vl-ah b { font: 600 13px var(--latin); }
.vl-at { margin: 0; font-size: 14px; font-weight: 700; }
.vl-adl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; font-size: 12.5px; }
.vl-adl dt { color: var(--muted); font-weight: 700; white-space: nowrap; }
.vl-adl dd { margin: 0; color: var(--ink2); overflow-wrap: anywhere; }
.vl-mbtn { align-self: flex-start; }
.vl-hits { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; }
.vl-hits ul { margin: 0; padding-left: 1.1em; display: grid; gap: 3px; }
.vl-hit { font-weight: 700; color: #9a3412; }
.vl-miss { font-weight: 700; color: #166534; }
.vl-choices { display: flex; flex-wrap: wrap; gap: 5px; }
.vl-choices .pill { font-size: 12px; padding: 4px 10px; }

/* 届け出の流れ */
.vl-flow { list-style: none; counter-reset: vlf; margin: 0; padding: 0; display: grid; gap: 6px; }
.vl-flow li { counter-increment: vlf; display: grid; grid-template-columns: 26px 12em minmax(0, 1fr); gap: 6px 10px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.vl-flow li::before { content: counter(vlf); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11.5px var(--latin); background: #0f172a; color: #fff; }
.vl-flow b { font-size: 13px; }
.vl-flow span { color: var(--ink2); }
#vlFlowSrc { margin-bottom: 10px; }

/* 台帳と、記録の練習 */
.vl-cols { min-width: 620px; }
.vl-rows { min-width: 760px; }
.vl-rows td.t { font-family: var(--latin); font-size: 12px; white-space: nowrap; }
.vl-rec { padding: 12px 14px; }
.vl-case { margin: 0 0 10px; font-size: 13.5px; color: var(--ink2); background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 8px 12px; }
.vl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.vl-f { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--ink2); min-width: 0; }
.vl-f select { font: inherit; font-size: 13px; font-weight: 500; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--paper); color: var(--ink); min-width: 0; max-width: 100%; }
.vl-reclist { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 13px; }
.vl-reclist li.ok { color: #14532d; }
.vl-reclist li.ng { color: #7f1d1d; }

.vl-src:focus-visible, .vl-seg button:focus-visible, .vl-seg2 button:focus-visible, .vl-f select:focus-visible, .vl-table summary:focus-visible, .vl-lead a:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (max-width: 1100px) {
  .vl-calc, .vl-due, .vl-feed { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .vl-advs, .vl-fields, .vl-ranks, .vl-srcs { grid-template-columns: minmax(0, 1fr); }
  .vl-m { grid-template-columns: minmax(0, 1fr); }
  .vl-sboxes { grid-template-columns: minmax(0, 1fr); }
  .vl-flow li { grid-template-columns: 26px minmax(0, 1fr); }
  .vl-flow li span { grid-column: 2; }
  .vl-seg2 { display: flex; flex-direction: column; width: 100%; }
  .vl-seg2 button { border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .vl-seg2 button:last-child { border-bottom: 0; }
  .vl-num { font-size: 22px; }
}
