/* Cloudbric php2shell check — tool-first layout. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/latin/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/latin/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/latin/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/latin/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --text: #191919;
  --text-2: #525b68;
  --line: #e2e6ec;
  --line-strong: #c9d0da;
  --field-border: #878f9a;
  --soft: #f2f4f7;
  --brand: #0a6ae0; /* cloudbric.com #0C73EF darkened slightly for 4.5:1 text contrast */
  --brand-hover: #1359b6;
  --brand-ink: #ffffff;
  --brand-tint: #e8f1fd;
  --focus: #0a6ae0;
  --code-bg: #f6f8fa;
  --code-text: #1f2328;
  --code-comment: #6a737d;
  --red: #c62828;
  --red-bg: #fdecea;
  --orange: #a54a06;
  --orange-bg: #fff6e6;
  --green: #1b7a3d;
  --green-bg: #e7f4ec;
  --blue-bg: #edf3ff;
  --gray: #4a5058;
  --gray-bg: #eceef1;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-head: var(--font);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root:lang(en) { --font-head: 'Montserrat', var(--font); }
:root:lang(ja) { --font: 'Pretendard JP Variable', 'Pretendard JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic UI', Meiryo, sans-serif; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121417;
    --bg-alt: #171a1f;
    --surface: #1b1f25;
    --text: #e8eaed;
    --text-2: #a7aeb8;
    --line: #2b3038;
    --line-strong: #3b424c;
    --field-border: #6b737d;
    --soft: #20252c;
    --brand: #4c9bff;
    --brand-hover: #79b4ff;
    --brand-ink: #0b1220;
    --brand-tint: #16253d;
    --focus: #79b4ff;
    --code-bg: #161a20;
    --code-text: #e2e8f0;
    --code-comment: #8b98ab;
    --red: #ff8a80;
    --red-bg: #33191a;
    --orange: #ffb868;
    --orange-bg: #2f2414;
    --green: #7fd69c;
    --green-bg: #17301f;
    --blue-bg: #15213a;
    --gray: #c3c8cf;
    --gray-bg: #2a2e34;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
:root:lang(ja) body { word-break: normal; line-break: strict; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.86em; }
:not(pre) > code { padding: 0.08em 0.36em; background: var(--soft); border: 1px solid var(--line); border-radius: 3px; overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0; }
p { margin: 0 0 0.8rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }
svg { width: 1em; height: 1em; flex: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 16px; }
.small { font-size: 14.5px; }
.muted { color: var(--text-2); }

/* ---------- header (sticky, always shows the menu) ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; flex: none; }
.logo { display: block; width: 124px; height: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.mainnav { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; }
.mainnav a { padding: 6px 12px; border-radius: 4px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.mainnav a:hover { background: var(--soft); color: var(--text); }
.mainnav a.active { color: var(--brand); }
.head-right { display: flex; align-items: center; gap: 14px; flex: none; }
.langs { display: inline-flex; gap: 2px; }
.langs a { color: var(--text-2); text-decoration: none; padding: 3px 7px; border-radius: 3px; font-family: var(--mono); font-size: 12.5px; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--text); background: var(--soft); font-weight: 500; }

/* ---------- buttons and fields ---------- */
button { font: inherit; }
.btn, .field button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.btn:hover, .field button:hover { background: var(--brand-hover); color: var(--brand-ink); }
.field button[disabled] { opacity: 0.7; cursor: progress; }
.btn .ext { font-family: var(--mono); font-weight: 500; font-size: 13px; opacity: 0.85; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-line { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-line:hover { background: var(--brand-tint); color: var(--brand); }
.btn-quiet { background: transparent; color: var(--text); border: 1px solid var(--line-strong); height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; }
.btn-quiet:hover { background: var(--soft); color: var(--text); }
.btn-white { background: #fff; color: #0a3d82; }
.btn-white:hover { background: #e8f1fd; color: #0a3d82; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.field-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field { display: flex; gap: 8px; }
.field input {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  border: 1px solid var(--field-border); border-radius: 6px;
}
.field input::placeholder { color: var(--text-2); opacity: 0.85; }
.field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 15px; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); flex: none; }
.form-msg { margin: 10px 0 0; font-size: 14.5px; color: var(--red); }

/* ---------- intro ---------- */
.intro { border-bottom: 1px solid var(--line); background: linear-gradient(var(--bg-alt), var(--bg)); }
.intro-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 64px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 16px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.intro h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.intro h1 span { display: block; }
.intro h1 .h1-b { color: var(--text-2); font-weight: 700; font-size: 0.82em; margin-top: 4px; }
.intro h1 em { font-style: normal; color: var(--brand); }
.intro-lead { font-size: 17px; color: var(--text); max-width: 560px; margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 14px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.stats > div { padding: 18px 24px 18px 0; margin-right: 24px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; margin-right: 0; }
.stats dt { font-size: 14px; color: var(--text-2); }
.stats dd { margin: 4px 0 0; font-weight: 800; font-size: 20px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.stats .stat-sub { display: block; font-size: 15px; font-weight: 700; margin-top: 0; }
html:lang(ja) .stats .stat-sub { text-indent: -0.5em; }
.stats > div:first-child dd { color: var(--red); }
.asof { font-size: 13px; color: var(--text-2); margin: 0; }
.tool { background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--brand); border-radius: 6px; padding: 26px 26px 20px; box-shadow: var(--shadow); }
.tool h2 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.tool h2:focus { outline: none; }
.tool-lead { font-size: 14.5px; color: var(--text-2); margin-bottom: 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 14px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.trust li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.trust svg { color: var(--green); font-size: 15px; }
.notice { font-size: 12.5px; color: var(--text-2); margin: 6px 0 0; }

/* ---------- content blocks ---------- */
.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
.block-alt { background: var(--bg-alt); }
.block-head { max-width: 720px; margin-bottom: 28px; }
.block h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 10px; }
.block-head p { color: var(--text-2); font-size: 16.5px; margin: 0; }
.block h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }

/* affected / fixed versions (emphasized table) */
#versions .block-head { max-width: none; }
.ver-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line-strong); border-top: 4px solid var(--red); border-radius: 6px; box-shadow: var(--shadow); }
.ver-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ver-table th, .ver-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ver-table thead th { background: var(--soft); font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.ver-table tbody th { font-weight: 800; white-space: nowrap; }
.ver-table tbody tr:last-child th, .ver-table tbody tr:last-child td { border-bottom: 0; }
.ver-bad { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.ver-ok { display: inline-block; padding: 3px 10px; border-radius: 4px; background: var(--green-bg); color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ver-none { display: inline-block; padding: 3px 10px; border-radius: 4px; background: var(--red); color: #fff; font-weight: 700; }
.ver-eol th, .ver-eol td { background: var(--red-bg); }
.ver-notes { margin: 16px 0 0; font-size: 15px; color: var(--text-2); }
.ver-backport { margin-top: 18px; }
.ver-backport-title { font-weight: 800; margin-bottom: 6px; }
.ver-backport ul { margin: 0; padding-left: 1.1rem; }

/* guide tabs */
.gtabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--surface); margin-bottom: 28px; }
.gtabs [role="tab"] { flex: 1 1 0; min-width: 120px; padding: 12px 14px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text-2); font-weight: 700; font-size: 15px; cursor: pointer; }
.gtabs [role="tab"]:last-child { border-right: 0; }
.gtabs [role="tab"]:hover { color: var(--text); background: var(--soft); }
.gtabs [role="tab"][aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
.gpanel > p:first-child { font-size: 16.5px; }
.env-pick { border: 0; padding: 0; margin: 18px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.env-pick legend { float: left; font-size: 14px; font-weight: 700; margin-right: 6px; padding: 0; }
.env-pick label { cursor: pointer; }
.env-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.env-pick span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; background: var(--surface); }
.env-pick input:checked + span { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); font-weight: 700; }
.env-pick input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.env-block h3:first-child { margin-top: 8px; }
.script-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 20px 22px; margin: 18px 0 8px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 4px; }
.script-box > div { flex: 1 1 420px; }
.script-box h3 { margin: 0 0 6px; }
.script-box p { margin: 0; font-size: 15px; color: var(--text-2); }
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-bottom: 24px; }
.code-grid > div:first-child { display: flex; flex-direction: column; }
.code-grid > div:first-child .code { flex: 1; display: flex; margin-top: 0; margin-bottom: 0; }
.code-grid > div:first-child .code pre { flex: 1; }
.code-grid > div:last-child .code:last-child { margin-bottom: 0; }
.notes li { font-size: 15px; }
.done { margin-top: 28px; padding: 16px 20px; border: 1px dashed var(--line-strong); border-radius: 6px; background: var(--surface); }
.done-title { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.done ul { list-style: none; padding: 0; margin: 0 0 6px; }
.done li { margin: 0; }
.done label { display: flex; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 15px; }
.done input { width: 17px; height: 17px; margin: 4px 0 0; accent-color: var(--brand); flex: none; }
.done input:checked + span { color: var(--text-2); text-decoration: line-through; }
.done-note { font-size: 12.5px; color: var(--text-2); margin: 0; }

/* notes (left rule, no icons) */
.note { padding: 12px 16px; margin: 14px 0 18px; border-left: 4px solid; border-radius: 0 4px 4px 0; font-size: 15px; }
.note p:last-child { margin-bottom: 0; }
.note-danger { border-color: var(--red); background: var(--red-bg); }
.note-warn { border-color: var(--orange); background: var(--orange-bg); }
.note-info { border-color: var(--brand); background: var(--blue-bg); }

/* code (light) */
.code { position: relative; margin: 8px 0 16px; }
.code pre { margin: 0; padding: 14px 80px 14px 16px; background: var(--code-bg); color: var(--code-text); border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; }
.code pre code { font-size: inherit; background: none; border: 0; padding: 0; }
.code .c { color: var(--code-comment); }
.copy { position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 10px; background: var(--surface); color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 4px; font-size: 12.5px; cursor: pointer; }
.copy:hover { color: var(--text); }

/* summary */
.summary-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }
.cves { margin: 18px 0 0; }
.cves > div { padding: 16px 0; border-top: 1px solid var(--line); }
.cves dt { font-weight: 700; margin-bottom: 4px; }
.cves dt code { margin-right: 6px; color: var(--red); }
.cves dd { margin: 0; color: var(--text-2); font-size: 15px; }
.scope { padding: 20px 22px; background: var(--bg-alt); border-radius: 6px; }
.scope h3 { margin-top: 0; }
.scope li { font-size: 15px; }

/* WAF band */
.waf-band { background: #0a5bc4; color: #fff; }
.waf-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 44px; padding-bottom: 44px; }
.waf-in > div { flex: 1 1 520px; }
.waf-band h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; color: #fff; }
.waf-band p { margin-bottom: 4px; color: #eaf2ff; }
.waf-note { font-size: 14px; color: #cfe0fb !important; }

/* faq and refs */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-grid h2 { margin-bottom: 18px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 15px 32px 15px 0; position: relative; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--text-2); font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { padding-bottom: 8px; }
.refs-box { padding: 20px 22px; border: 1px solid var(--line); border-radius: 6px; }
.refs-box h3 { margin-top: 0; }
.refs { list-style: none; padding: 0; margin: 0; }
.refs li { margin: 0 0 8px; font-size: 14.5px; }
.refs a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.refs a:hover { text-decoration: underline; }
.refs svg { font-size: 12px; opacity: 0.7; }

/* footer */
.foot { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 13.5px; color: var(--text-2); }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }

/* badges (result) */
.badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 13.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.badge-lg { font-size: 16px; padding: 5px 12px; }
.b-vulnerable { color: var(--red); background: var(--red-bg); }
.b-eol { color: var(--orange); background: var(--orange-bg); }
.b-patched { color: var(--green); background: var(--green-bg); }
.b-review, .b-unknown, .b-unreachable, .b-redirect, .b-blocked { color: var(--gray); background: var(--gray-bg); }
.table-wrap { overflow-x: auto; margin: 8px 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; color: var(--text-2); font-weight: 700; }

/* ---------- result ---------- */
.result { padding-top: 48px; padding-bottom: 64px; scroll-margin-top: 16px; }
.result.container { max-width: 1200px; }
.result h2:focus { outline: none; }
#result-body { background: var(--surface); border-radius: 6px; padding: 26px 28px; box-shadow: var(--shadow); }
.verdict-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.verdict-head .host { font-family: var(--mono); font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.statement { font-size: 18px; line-height: 1.6; margin-bottom: 18px; }
.distro { font-size: 14.5px; color: var(--text-2); }
.dev-note { font-size: 14.5px; color: var(--orange); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 22px; font-size: 14.5px; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; min-width: 0; }
.facts code { font-size: 13px; }
.facts .ev { display: inline-block; max-width: 100%; }
.facts .ev + .ev { margin-top: 2px; }
.evidence-note { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.copy-link-row { display: flex; justify-content: flex-end; margin: 18px 0 0; }
.copy-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--text-2); cursor: pointer; font-size: 14px; }
.copy-link::before { content: '⧉'; color: var(--brand); font-size: 16px; line-height: 1; }
.copy-link:hover { color: var(--brand); }
.todo { margin: 0 0 8px; }
.todo h3 { margin: 0 0 8px; font-size: 17px; }
.recheck { margin: 4px 0 18px; }
.recheck .url { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.verify { margin-top: 20px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.verify h3 { margin: 0 0 8px; font-size: 18px; }
.verify h4 { margin: 24px 0 8px; font-size: 15.5px; }
.tabs { display: flex; gap: 4px; margin: 18px 0 16px; border-bottom: 1px solid var(--line-strong); }
.tabs [role="tab"] {
  background: none; border: 0; padding: 8px 14px; margin-bottom: -1px; cursor: pointer;
  color: var(--text-2); font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--brand); }
.panel .btn { margin-bottom: 14px; }
.run-notes { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.run-notes li + li { margin-top: 6px; }
.run-notes ul { margin: 6px 0 0; padding-left: 20px; }
.hint { font-size: 14.5px; color: var(--text-2); }
.sha { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.sha code { font-size: 11.5px; background: none; border: 0; padding: 0; overflow-wrap: anywhere; }
.legend { margin: 0 0 10px; display: grid; gap: 8px; }
.legend > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; }
.legend dt { margin: 0; }
.legend dt .badge { box-sizing: border-box; width: 120px; text-align: center; }
.legend dd { margin: 0; font-size: 14.5px; }
.paste { margin-top: 8px; }
.paste textarea {
  width: 100%; padding: 12px 14px; margin: 4px 0 10px; resize: vertical;
  font-family: var(--mono); font-size: 13px; color: var(--text); background: var(--surface);
  border: 1px solid var(--field-border); border-radius: 8px;
}
.paste textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.paste-actions { display: flex; justify-content: flex-end; }
.paste-actions .btn { min-width: 96px; }
.paste-out { margin-top: 14px; }
.paste-out:empty { display: none; }
.paste-out table { margin-top: 8px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 20px; padding: 22px 28px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.contact p { margin: 0; flex: 1 1 320px; }
.contact.urgent { border-color: var(--red-line); background: var(--red-bg); }
.contact.urgent p { font-weight: 600; }
.again { display: flex; justify-content: center; margin: 18px auto 0; }
.again .btn { min-width: 180px; }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: 15px; }
.link:hover { color: var(--brand-hover); }

/* phpinfo option (check form) */
.opt { margin-top: 10px; padding: 10px 12px; background: var(--soft); border-radius: 6px; }
.opt .agree { margin-top: 0; }
.opt-hint { margin: 4px 0 0 28px; font-size: 13.5px; color: var(--text-2); }
details.opt-more { border: 0; margin: 4px 0 0 28px; }
details.opt-more summary { padding: 2px 0; font-size: 13.5px; font-weight: 600; color: var(--brand); }
details.opt-more summary::after { content: none; }
details.opt-more ul { margin: 6px 0 2px; padding-left: 1.1rem; font-size: 13.5px; color: var(--text-2); }
details.opt-more li + li { margin-top: 2px; }

/* phpinfo result */
.pi { margin: 0 0 20px; padding: 14px 16px; border-left: 4px solid; border-radius: 0 4px 4px 0; font-size: 15px; }
.pi p:last-child { margin-bottom: 0; }
.pi-none { border-color: var(--line-strong); background: var(--soft); }
.pi-found { border-color: var(--red); background: var(--red-bg); }
.pi-title, .pi-fix-title { font-weight: 700; margin-bottom: 4px; }
.pi-fix-title { margin-top: 14px; }
.pi-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 10px 0 0; font-size: 14.5px; }
.pi-facts dt { color: var(--text-2); }
.pi-facts dd { margin: 0; }
.pi-warn { color: var(--red); font-weight: 700; }
.pi ol { margin: 4px 0 8px; }
.pi .code pre { background: var(--surface); }

/* Utility classes (no inline styles: CSP style-src 'self') */
.offscreen { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
.root-wrap { padding: 64px 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .head-in { flex-wrap: wrap; gap: 0 16px; padding-top: 8px; }
  .head-right { margin-left: auto; }
  .mainnav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 4px -12px 0; padding: 0 0 6px; scrollbar-width: none; }
  .mainnav::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 112px; }
  .intro-in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 44px; }
  .summary-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .code-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .waf-in { padding-top: 32px; padding-bottom: 32px; }
  .logo { width: 108px; }
  .head-right { gap: 8px; }
  .intro h1 { font-size: 29px; }
  .intro-lead { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; margin-right: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .stats > div:last-child { border-bottom: 0; }
  .stats dd { white-space: normal; }
  .tool { padding: 20px 16px 16px; }
  .field { flex-direction: column; }
  .field button { width: 100%; }
  .block { padding: 52px 0; }
  .block h2 { font-size: 24px; }
  .ver-table th, .ver-table td { padding: 12px 12px; font-size: 14.5px; }
  .gtabs [role="tab"] { min-width: 50%; border-bottom: 1px solid var(--line); }
  .script-box .btn, .waf-in .btn, .contact .btn { width: 100%; }
  #result-body, .verify, .contact { padding: 20px 16px; }
  .statement { font-size: 17px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { margin-top: 8px; }
  .legend > div { grid-template-columns: 1fr; gap: 4px; }
  .code { display: flex; flex-direction: column-reverse; }
  .code pre { padding-right: 16px; }
  .copy { position: static; align-self: flex-end; margin-bottom: 6px; }
}
