/* pqccert.html — same light theme as sovereignty.html / test.html */
:root { --accent:#2563eb; --accent-d:#1d4ed8; --navy:#1e40af; --line:#ddd;
        --ok:#16a34a; --bad:#dc2626; --warn:#d97706; --muted:#777; }
*, *::before, *::after { box-sizing: border-box; }
body { margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
       color:#111; background:#ffffff; line-height:1.5; }
header { background:#f5f5f7; border-bottom:1px solid var(--line); padding:1.4rem 1rem; }
header .wrap { max-width:860px; margin:0 auto; }
.navrow { display:flex; justify-content:space-between; align-items:center; margin-bottom:.6rem; }
.navrow a { color:var(--accent); text-decoration:none; }
#btn-lang { padding:.25rem .6rem; font-size:.85rem; background:#fff; color:#333; border:1px solid var(--line); }
#btn-lang:hover { background:#eee; }
header h1 { margin:0 0 .2rem; font-size:1.5rem; }
header p { margin:0; color:#555; font-size:.95rem; }
main { max-width:860px; margin:0 auto; padding:1rem; }
form { display:flex; gap:.5rem; margin:1rem 0 1.2rem; flex-wrap:wrap; }
input[type=text] { flex:1 1 240px; padding:.7rem .8rem; font-size:1rem; border:1px solid #ccc;
                   background:#f0f0f2; color:#111; border-radius:.5rem; outline:none; }
input[type=text]:focus { border-color:#888; }
button { padding:.7rem 1.3rem; font-size:1rem; border:1px solid var(--accent-d); border-radius:.5rem;
         background:var(--accent); color:#fff; cursor:pointer; font-weight:500; }
button:hover { background:var(--accent-d); }
button:disabled { opacity:.5; cursor:default; }
a { color:var(--accent); }
.muted { color:var(--muted); }
.small { font-size:.85rem; }
.mono { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.88em; word-break:break-all; }
.msg { padding:.7rem .9rem; border-radius:.5rem; background:#f8f8fa; border:1px solid var(--line); margin-bottom:1rem; }
.msg.err { border-color:#fecaca; background:#fef2f2; color:#991b1b; }

.verdict { display:flex; align-items:center; gap:.8rem; padding:.9rem 1.1rem; border-radius:.6rem;
           border:1px solid var(--line); background:#f8f8fa; margin-bottom:.8rem; }
.verdict .big { font-size:1.15rem; font-weight:600; }
.verdict.green { border-color:#bbf7d0; background:#f0fdf4; }
.verdict.orange { border-color:#fed7aa; background:#fff7ed; }
.verdict.red { border-color:#fecaca; background:#fef2f2; }
.dot { display:inline-block; width:.8rem; height:.8rem; border-radius:50%; background:#bbb; flex:none; }
.dot.green { background:var(--ok); } .dot.orange { background:var(--warn); } .dot.red { background:var(--bad); }
.dot.grey { background:#bbb; }

.share-link { font-size:.85rem; margin:.2rem 0 1rem; display:flex; gap:.4rem; align-items:center; flex-wrap:wrap; }
.share-link .copy { padding:.15rem .6rem; font-size:.8rem; }
.when { font-size:.85rem; color:var(--muted); margin:-.4rem 0 .8rem; }

.host { background:#f8f8fa; border:1px solid var(--line); border-radius:.6rem; margin-bottom:.9rem; overflow:hidden; }
.host-head { display:flex; align-items:center; gap:.6rem; padding:.7rem 1rem; border-bottom:1px solid var(--line); background:#f3f4f6; }
.host-head .name { font-weight:600; font-size:1.05rem; word-break:break-all; flex:1; }
.host-head .addr { font-size:.8rem; color:var(--muted); }
.sect { padding:.6rem 1rem .7rem; }
.sect + .sect { border-top:1px solid #e5e7eb; }
.sect h3 { margin:0 0 .35rem; font-size:.95rem; color:var(--navy); display:flex; align-items:center; gap:.45rem; }
.kv { display:grid; grid-template-columns:minmax(8rem, 13rem) 1fr; gap:.15rem .8rem; font-size:.92rem; }
.kv .k { color:var(--muted); }
.kv .v { word-break:break-word; }
.note { font-size:.86rem; margin:.35rem 0 0; padding:.35rem .55rem; border-radius:.35rem; }
.note.warn { background:#fff7ed; color:#9a3412; border:1px solid #fed7aa; }
.note.bad { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.note.ok { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.chain { margin:.1rem 0 0; padding-left:1.1rem; }
.chain li { font-size:.9rem; }
table { width:100%; border-collapse:collapse; font-size:.87rem; }
th, td { text-align:left; padding:.3rem .4rem; border-bottom:1px solid #e5e7eb; vertical-align:top; }
th { color:var(--muted); font-weight:500; }
td.ok { color:var(--ok); } td.bad { color:var(--bad); }
.tbl-wrap { overflow-x:auto; }

.hist { margin-top:1.6rem; }
.hist h2, .recent h2 { font-size:1.1rem; color:var(--navy); margin:0 0 .3rem; }
.hist p, .recent p { margin:0 0 .5rem; font-size:.85rem; color:var(--muted); }
.hcell { white-space:nowrap; }
.hhost { display:block; font-size:.82rem; }
.recent { margin-top:1.6rem; }
.pill { display:inline-block; background:#eef2ff; color:#3730a3; border:1px solid #c7d2fe; border-radius:.4rem;
        padding:0 .4rem; font-size:.76rem; font-weight:600; white-space:nowrap; }
.pill.warn { background:#fff7ed; color:#9a3412; border-color:#fed7aa; }
.pill.bad { background:#fef2f2; color:#991b1b; border-color:#fecaca; }
.pill.ok { background:#f0fdf4; color:#166534; border-color:#bbf7d0; }
.opts { flex:1 1 100%; display:flex; gap:.4rem 1.2rem; flex-wrap:wrap; font-size:.9rem; color:#333; }
.opts label { display:flex; gap:.35rem; align-items:center; cursor:pointer; }
.opts input:disabled + span { color:var(--muted); }
.linked { margin-top:1.2rem; }
.linked h2 { font-size:1.1rem; color:var(--navy); margin:0 0 .3rem; }
.linked > p { margin:0 0 .6rem; font-size:.88rem; color:#444; }
details.host > summary { list-style:none; cursor:pointer; }
details.host > summary::-webkit-details-marker { display:none; }
details.host > summary .host-head::after { content:"▸"; color:var(--muted); }
details.host[open] > summary .host-head::after { content:"▾"; }
.about { margin-top:2rem; font-size:.92rem; color:#333; }
.about h2 { font-size:1.05rem; color:var(--navy); }
.spinner { display:inline-block; width:1rem; height:1rem; border:2px solid #cbd5e1; border-top-color:var(--accent);
           border-radius:50%; animation:spin 1s linear infinite; vertical-align:-3px; margin-right:.4rem; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (max-width:600px) {
  .kv { grid-template-columns:1fr; }
  .kv .k { margin-top:.25rem; }
  .hide-sm { display:none; }
}
