:root{
  --red:#E60023; --red-hover:#C1001D; --red-dark:#B8001C; --red-soft:#FFEEF1;
  --ink:#1A1714; --muted:#5C554D; --bg:#FFFFFF; --bg2:#F6F3EF; --border:#E7E0D6;
  --teal:#0E7C66; --teal-soft:#E6F4F0; --amber:#B97A0C; --amber-soft:#FDF3E0;
}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;font-family:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);line-height:1.55}
a{color:var(--red)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.site-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg);z-index:10}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none}
.wordmark{font-weight:800;font-size:22px;letter-spacing:-.5px}
.wm-go{color:var(--ink)}
.wm-save{color:var(--red)}
.lang{position:relative}
.lang-btn{display:flex;align-items:center;gap:6px;background:var(--bg2);border:1px solid var(--border);border-radius:999px;padding:8px 12px;min-height:44px;cursor:pointer;font:inherit;font-weight:600}
.lang-menu{position:absolute;right:0;top:52px;list-style:none;margin:0;padding:8px;background:var(--bg);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12);min-width:230px;z-index:20}
.lang-menu li a,.lang-menu li button{display:block;width:100%;text-align:left;padding:10px 12px;border:0;background:none;font:inherit;color:var(--ink);text-decoration:none;border-radius:8px;cursor:pointer}
.lang-menu li a:hover,.lang-menu li button:hover{background:var(--bg2)}
main{max-width:1080px;margin:0 auto;padding:16px}
.hero{display:grid;gap:20px}
.hero-copy h1{font-size:30px;line-height:1.2;margin:8px 0}
.intro{color:var(--muted);font-size:17px;margin:0 0 16px}
.toolbox{background:var(--bg2);border:1px solid var(--border);border-radius:16px;padding:16px}
.tool-row{display:flex;gap:8px;flex-wrap:wrap}
.tool-row input{flex:1;min-width:0;flex-basis:220px;font:inherit;font-size:16px;padding:14px 12px;border:1px solid var(--border);border-radius:12px;background:var(--bg)}
.btn-primary{display:block;width:100%;min-height:56px;margin-top:10px;border:0;border-radius:12px;background:var(--red);color:#fff;font:inherit;font-weight:700;font-size:17px;cursor:pointer}
.btn-primary:hover{background:var(--red-hover)}
.btn-secondary{min-height:48px;padding:0 14px;border:1px solid var(--border);border-radius:12px;background:var(--bg);font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.tool-note{color:var(--muted);font-size:14px;margin:12px 0 0}
.error{color:var(--red-dark);background:var(--red-soft);border:1px solid var(--border);border-radius:12px;padding:12px;margin-top:12px}
.preview{border:1px solid var(--border);border-radius:16px;padding:16px;background:var(--bg)}
.preview h2{margin:0 0 12px;font-size:20px}
.preview-empty{border:1px dashed var(--border);border-radius:16px;padding:24px 16px;color:var(--muted);text-align:center}
.pv-thumb{width:100%;border-radius:12px;display:block}
.pv-title{font-weight:600;margin:12px 0}
.q-list{list-style:none;margin:0;padding:0}
.q-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--border);flex-wrap:wrap}
.q-row>div{min-width:0;overflow-wrap:anywhere}
img{max-width:100%}
.fmt{font-size:12px;font-weight:700;background:var(--bg2);border-radius:6px;padding:2px 6px}
.badge{font-size:12px;font-weight:600;background:var(--bg2);border-radius:999px;padding:2px 8px}
.badge-teal{background:var(--teal-soft);color:var(--teal)}
.dl-btn{display:inline-block;background:var(--red);color:#fff;text-decoration:none;font-weight:700;padding:12px 18px;border-radius:12px;min-height:44px;text-align:center;white-space:nowrap}
.dl-btn:hover{background:var(--red-hover)}
.dl-link{font-weight:600;white-space:nowrap}
.pv-note{color:var(--muted);font-size:13px}
section h2{font-size:22px;margin:28px 0 10px}
.steps{padding-left:20px}
.specs{width:100%;border-collapse:collapse;table-layout:fixed}
.specs th,.specs td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--border);vertical-align:top;overflow-wrap:anywhere}
.specs th{width:110px}
details{border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin-bottom:10px}
details summary{font-weight:600;cursor:pointer}
.pv-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.pv-tile{margin:0;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.pv-tile img{width:100%;display:block}
.pv-tile-foot{padding:10px;display:flex;flex-direction:column;gap:8px}
.pv-count{font-weight:700;margin:0 0 12px}
.alt-group{margin-top:16px}
.alt-group h3{font-size:17px;margin:0 0 8px}
footer{border-top:1px solid var(--border);margin-top:32px;padding:20px 16px;text-align:center;color:var(--muted)}
footer nav{margin:8px 0}
@media(min-width:860px){
  .hero{grid-template-columns:1.1fr .9fr;align-items:start}
  .hero-copy h1{font-size:38px}
  .cards{grid-template-columns:repeat(3,1fr)}
  main{padding:24px}
}
@media(prefers-color-scheme:dark){
  :root{--ink:#FFFFFF;--muted:#C9C2B8;--bg:#131110;--bg2:#1E1B19;--border:#3A342F}
  .wm-go{color:#fff}
  .wm-save{color:#FF4D6D}
  .btn-primary,.dl-btn{background:#FF4D6D}
  .btn-primary:hover,.dl-btn:hover{background:#E60023}
  a{color:#FF4D6D}
}
