/* ZVEPOW battery passport: ZVEPOW blue from the logo, light and clear, works on phone and computer. */
@font-face { font-family: Inter; src: url(../vendor/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --brand: #0061c0; --brand-d: #00468c; --brand-l: #e8f1fb; --red: #c1272d; --green: #0e7151; --green-l: #e4f5ee; --amber: #8a5a00; --amber-l: #fff4dc;
  --bg: #f3f5f9; --card: #fff; --line: #e1e6ef; --line2: #cfd7e4; --ink: #0f1b2d; --ink2: #3e4b60; --muted: #566277; --none: #626b80; /* both pass 4.5:1 on white and on --bg */
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
/* one standard letter spacing everywhere: the font's own spacing, no extra tracking on any text */
body { font: 15px/1.55 Inter, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; letter-spacing: 0; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.ic { width: 18px; height: 18px; flex: none; }
.mono { font-family: Inter, ui-monospace, monospace; font-feature-settings: "zero" 1; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; width: 100%; }
main { flex: 1; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(0,97,192,.45); outline-offset: 2px; }

/* top bar */
.top { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--brand) 0 86%, var(--red) 86% 100%); }
.top .wrap { display: flex; align-items: center; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); min-height: 44px; }
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; display: block; }
.brand .bn { padding-left: 14px; border-left: 1px solid var(--line2); font-weight: 600; font-size: 15px; color: var(--ink2); white-space: nowrap; }
.langs { margin-left: auto; position: relative; }
.langs summary { list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.lbtn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; font-size: 14px; color: var(--ink2); cursor: pointer; user-select: none; }
.lbtn svg.ic { width: 16px; height: 16px; color: var(--muted); }
.lmenu { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,27,45,.12); padding: 6px; min-width: 170px; }
.lmenu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.lmenu a:hover { background: var(--bg); text-decoration: none; }
.lmenu a.on { background: var(--brand-l); color: var(--brand); font-weight: 600; }

/* buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 11px; border: 1px solid var(--line2); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: #b5c1d3; background: #fafbfd; }
.btn.p { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.p:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn.s { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; gap: 6px; }
.btn svg.ic { width: 17px; height: 17px; }
.btn.s svg.ic { width: 15px; height: 15px; }
.sbox label { display: block; font-weight: 600; font-size: 14px; color: var(--ink2); margin-bottom: 8px; }
.sbox .row { display: flex; gap: 10px; }
.sbox .in { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; min-width: 0; }
.sbox .in:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,97,192,.12); }
.sbox .in svg { color: var(--muted); }
.sbox input { flex: 1; align-self: stretch; border: 0; outline: 0; font: 500 16px Inter, monospace; color: var(--ink); min-width: 0; background: transparent; text-transform: uppercase; }
.sbox input::placeholder { text-transform: none; color: #9aa4b6; }
.sbox .btn { height: 52px; }
.sfoot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin: 0; flex: 1; min-width: 220px; }
.hint svg { color: var(--brand); width: 17px; height: 17px; }

/* home */
.hero { background: radial-gradient(900px 380px at 85% 0%, rgba(0,97,192,.12), transparent 70%), linear-gradient(180deg, #fff, var(--bg)); padding: 56px 0 48px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.kick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-l); border-radius: 20px; padding: 4px 12px; }
.kick svg { width: 15px; height: 15px; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 16px 0 12px; }
.hero p.lead { font-size: 17px; color: var(--ink2); margin: 0 0 28px; max-width: 560px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(15,27,45,.04), 0 10px 30px rgba(15,27,45,.05); }
.hero .sbox { padding: 22px; }
.show { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }
.show::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(0,97,192,.14), rgba(0,97,192,0) 70%); }
.show .bat { position: relative; height: 400px; width: auto; filter: drop-shadow(0 24px 40px rgba(15,27,45,.18)); }
.show .tag { position: absolute; left: 0; bottom: 34px; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 18px 14px 14px; width: 300px; border-radius: 16px; }
.show .tag svg.tq { width: 84px; height: 84px; display: block; border-radius: 6px; }
.show .tag small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.show .tag b { display: block; font: 600 15px Inter, monospace; margin: 2px 0 6px; }
.show .tag span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); }
.show .tag span svg { width: 15px; height: 15px; color: var(--brand); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 8px 24px 56px; }
.tile { padding: 22px; }
.tile .ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); margin-bottom: 14px; }
.tile h2 { margin: 0 0 6px; font-size: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* read out, not shown */
.tile p { margin: 0; color: var(--ink2); font-size: 14px; }

/* camera scan */
dialog.scan { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100vw - 24px)); box-shadow: 0 30px 80px rgba(15,27,45,.35); }
dialog.scan::backdrop { background: rgba(10,20,35,.6); }
.scan-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.scan-h .x { border: 0; background: var(--bg); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: var(--ink2); }
.scan-v { position: relative; background: #0b1422; aspect-ratio: 1 / 1; }
.scan-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-v .frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.scan-m { margin: 0; padding: 12px 16px; font-size: 14px; color: var(--ink2); min-height: 44px; }

/* passport */
.draftbar { background: var(--amber-l); color: var(--amber); border-bottom: 1px solid #f2dca8; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; }
.band { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-d) 100%); height: 150px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -60px; top: -80px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.06); }
.sum { margin-top: -104px; position: relative; padding: 24px; display: grid; grid-template-columns: 168px minmax(0, 1fr) 236px; gap: 26px; align-items: stretch; }
.ph { border-radius: 14px; background: linear-gradient(160deg, #f4f7fb, #e9eef6); border: 1px dashed var(--line2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--none); font-size: 13px; min-height: 168px; text-align: center; padding: 10px; }
.ph svg.ic { width: 40px; height: 40px; color: #b3bdcd; stroke-width: 1.5; }
.ph.has { border: 1px solid var(--line); background: #fff; padding: 8px; }
.ph.has img { width: 100%; height: 100%; max-height: 220px; object-fit: contain; display: block; }
.id small { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.id small svg { width: 15px; height: 15px; color: var(--brand); }
.id h1 { font-size: 30px; line-height: 1.2; font-weight: 700; margin: 6px 0 14px; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.kv span { display: block; font-size: 12.5px; color: var(--muted); }
.kv b { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; word-break: break-word; }
.kv b.no { color: var(--none); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.fact { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; }
.fact svg { grid-row: span 2; width: 20px; height: 20px; color: var(--brand); }
.fact span { font-size: 12px; color: var(--muted); }
.fact b { font-size: 15px; word-break: break-word; }
.qrbox { border-left: 1px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.qrbox .q { width: 140px; height: 140px; }
.qrbox .q svg { width: 100%; height: 100%; display: block; }
.qrbox p { margin: 0; font-size: 13px; color: var(--ink2); }
.qrbox .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; padding: 24px 0 56px; align-items: start; }
.toc { position: sticky; top: 16px; padding: 10px; }
.toc h2 { margin: 6px 10px 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink2); font-size: 14px; }
.toc a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.toc a svg { width: 17px; height: 17px; color: var(--brand); }
.toc a em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--none); }
.secs { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sec { padding: 6px 22px 10px; scroll-margin-top: 16px; }
.sec h2 { display: flex; align-items: center; gap: 12px; font-size: 18px; margin: 14px 0 8px; }
.sec h2 .n { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; flex: none; }
.sec h2 .n svg { width: 17px; height: 17px; }
.sec h2 em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--muted); background: var(--bg); border-radius: 20px; padding: 2px 10px; white-space: nowrap; }
.rows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
.r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.r .k { color: var(--ink2); font-size: 14px; }
.r .v { font-size: 14.5px; font-weight: 600; word-break: break-word; }
.r .v.txt { white-space: pre-line; font-weight: 500; }
.r .v.no { color: var(--none); font-weight: 400; }
.doc { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 2px 0; }
.doc + .doc { margin-top: 6px; }
.doc svg { width: 16px; height: 16px; }
.doc span { word-break: break-word; }
.doc em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
/* narrow value column (phones): the PDF / website tag goes under the link text, so words never break in the middle */
@media (max-width: 600px) {
  .doc { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; row-gap: 3px; align-items: start; }
  .doc svg { margin-top: 2px; }
  .doc span { word-break: normal; overflow-wrap: anywhere; }
  .doc em { grid-column: 2; justify-self: start; }
}
.rnote { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: 13px; }
.rnote svg { width: 15px; height: 15px; margin-top: 2px; color: var(--brand); }
.upd { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

/* not found */
.nf { max-width: 640px; margin: 56px auto 72px; padding: 40px 36px; text-align: center; width: calc(100% - 32px); }
.nf .big { width: 76px; height: 76px; border-radius: 22px; background: #fdeeee; color: var(--red); display: grid; place-items: center; margin: 0 auto 18px; }
.nf .big svg { width: 36px; height: 36px; }
.nf h1 { font-size: 28px; margin: 0 0 10px; }
.nf p { color: var(--ink2); margin: 0 0 26px; }
.nf code { font: 600 15px Inter, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 2px 8px; color: var(--ink); overflow-wrap: anywhere; }
.nf .sbox { text-align: left; }
.nf .back { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 44px; padding: 0 10px; font-weight: 600; font-size: 14px; }

.foot { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; padding: 18px 0; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 20px; }
  .show { height: 300px; }
  .show .bat { height: 290px; }
  .show .tag { left: 50%; margin-left: -250px; bottom: 20px; }
  .sum { grid-template-columns: 132px minmax(0, 1fr); }
  .qrbox { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; flex-direction: row; text-align: left; flex-wrap: wrap; justify-content: flex-start; }
  .qrbox .acts { justify-content: flex-start; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 8px; scrollbar-width: none; }
  .toc h2 { display: none; }
  .toc a { flex: none; background: var(--bg); }
  .toc a em { display: none; }
  .rows { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 60px; }
  .brand img { height: 22px; }
  .brand .bn { font-size: 14px; padding-left: 10px; }
  .lbtn { padding: 0 10px; }
  .lbtn .lname { display: none; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 15.5px; margin-bottom: 20px; }
  .hero .sbox { padding: 16px; }
  .sbox .row { flex-direction: column; }
  .sbox .in { flex: none; }
  .sfoot { flex-direction: column; align-items: stretch; }
  .sfoot .scanbtn { height: 44px; }
  .show { height: 250px; }
  .show::before { width: 240px; height: 240px; }
  .show .bat { height: 230px; margin-left: 120px; }
  .show .tag { left: 0; margin-left: 0; bottom: 18px; width: 256px; grid-template-columns: 64px minmax(0, 1fr); padding: 10px 12px 10px 10px; gap: 10px; }
  .show .tag svg.tq { width: 64px; height: 64px; }
  .show .tag b { font-size: 13px; }
  .tiles { padding: 4px 16px 40px; gap: 12px; }
  .band { height: 120px; }
  .sum { margin-top: -88px; padding: 18px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ph { min-height: 0; height: 92px; flex-direction: row; font-size: 13px; }
  .ph.has { height: 200px; }
  .ph svg.ic { width: 28px; height: 28px; }
  .id h1 { font-size: 22px; margin-bottom: 10px; }
  .kv { grid-template-columns: 1fr 1fr; }
  .qrbox .q { width: 112px; height: 112px; }
  .qrbox > div { flex: 1; min-width: 150px; }
  .sec { padding: 4px 16px 8px; }
  .sec h2 { font-size: 16.5px; }
  .r { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 11px 0; }
  .r .k { font-size: 13.5px; }
  .r .v { font-size: 14px; }
  .nf { margin: 28px auto 48px; padding: 28px 20px; }
  .nf h1 { font-size: 23px; }
}
@media print {
  .top, .foot, .toc, .qrbox .acts, .draftbar { display: none !important; }
  body { background: #fff; }
  .band { display: none; }
  .sum { margin-top: 0; box-shadow: none; }
  .card { box-shadow: none; break-inside: avoid; }
  .layout { grid-template-columns: 1fr; padding-top: 12px; }
}
