:root {
  --p: #14213D; --a: #2F80ED;
  --bg: #F4F5F7; --card: #fff; --ink: #16202F; --mut: #5A6679; --line: #DFE3EA;
  --r: 14px; --sh: 0 1px 2px rgba(16,24,40,.06), 0 2px 8px rgba(16,24,40,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--mut); }
.sm { font-size: 13px; }
.main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.main.in-tenant { padding-bottom: 96px; }

/* demo strip */
.demo-strip { background: #FFE58F; color: #4a3800; font-size: 12.5px; padding: 6px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; text-align: center; }
.demo-strip a, .linkish { color: #4a3800; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-size: 12.5px; }

/* shell header */
.shell-h { background: var(--p); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.brand small { display: block; font-size: 11.5px; opacity: .7; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: var(--a); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.shell-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.shell-nav a { color: #fff; text-decoration: none; padding: 7px 12px; border-radius: 999px; font-size: 14px; opacity: .82; }
.shell-nav a.on, .shell-nav a:hover { background: rgba(255,255,255,.14); opacity: 1; }

/* tenant header */
.t-h { background: var(--p); color: #fff; padding: 10px 16px 0; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.t-h-top { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.back-shell { font-size: 12.5px; text-decoration: none; opacity: .75; white-space: nowrap; }
.t-brand { display: flex; gap: 10px; align-items: center; text-decoration: none; min-width: 0; flex: 1; }
.t-brand > span { min-width: 0; }
.t-brand b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-brand small { display: block; font-size: 11.5px; opacity: .75; }
.t-logo { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--a); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .5px; }
.t-logo.sm { width: 26px; height: 26px; font-size: 9px; border-radius: 7px; }
.t-h-tools { display: flex; gap: 8px; align-items: center; }
.pill-btn { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.pill-btn.on { background: var(--a); border-color: var(--a); }
.basket-btn { position: relative; font-size: 22px; text-decoration: none; padding: 4px 6px; }
.bcount { position: absolute; top: -4px; right: -6px; background: var(--a); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; font-style: normal; }
.t-search { max-width: 1180px; margin: 10px auto 0; display: flex; background: #fff; border-radius: 12px; overflow: hidden; }
.t-search input { flex: 1; border: 0; padding: 12px 14px; font-size: 16px; outline: none; color: var(--ink); min-width: 0; }
.t-search button { border: 0; background: var(--a); color: #fff; width: 52px; font-size: 22px; cursor: pointer; }
.t-nav { max-width: 1180px; margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.t-nav::-webkit-scrollbar { display: none; }
.t-nav a { white-space: nowrap; text-decoration: none; font-size: 13.5px; padding: 6px 11px; border-radius: 999px; opacity: .88; }
.t-nav a:hover { background: rgba(255,255,255,.12); opacity: 1; }
.t-nav .owner-link { margin-left: auto; background: rgba(255,255,255,.1); }
.ccount:empty { display: none; }
.ccount { background: var(--a); border-radius: 999px; padding: 0 6px; font-size: 11px; }

/* bottom nav (phones) */
.bnav { display: none; }
@media (max-width: 760px) {
  .bnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .bnav a { text-decoration: none; text-align: center; font-size: 11.5px; padding: 7px 0 8px; color: var(--mut); position: relative; }
  .bnav a span { display: block; font-size: 20px; line-height: 1.2; }
  .bnav a.on { color: var(--p); font-weight: 700; }
  .bnav .bcount { top: 2px; right: calc(50% - 22px); }
  .t-h { position: static; }
  .back-shell { display: none; }
  .t-h-tools .pill-btn { padding: 5px 9px; font-size: 12px; }
  .t-brand small { display: none; }
  .t-brand b { font-size: 15px; }
  .t-logo { width: 34px; height: 34px; font-size: 12px; }
  .t-h-top { gap: 8px; }
  .demo-strip { font-size: 11px; padding: 5px 10px; gap: 8px; }
  .demo-strip a, .linkish { font-size: 11px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 15px; background: var(--card); }
.btn-a { background: var(--a); color: #fff; }
.btn-a:hover { filter: brightness(.95); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--p); }
.btn-wa { background: #25D366; color: #fff; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 12px 22px; }
.linkbtn { background: none; border: 0; color: var(--p); cursor: pointer; padding: 6px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 5px; align-items: center; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* home */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding: 18px 0 10px; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.5px; color: var(--p); }
.lead { font-size: 17.5px; color: #33404f; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.ticks { list-style: none; padding: 0; margin: 10px 0; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #16a34a; font-weight: 800; }
.hero-phone { display: flex; justify-content: center; }
.phone { width: 270px; border-radius: 34px; background: #111; padding: 12px; box-shadow: 0 30px 60px rgba(20,33,61,.25); }
.phone-in { background: var(--bg); border-radius: 24px; overflow: hidden; height: 500px; display: flex; flex-direction: column; }
.ph-h { color: #fff; padding: 16px 12px 10px; display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; }
.ph-s { margin: 8px 10px; background: #fff; border-radius: 9px; padding: 8px 10px; font-size: 12px; color: var(--mut); border: 1px solid var(--line); }
.ph-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px; flex: 1; }
.ph-g div { background: #fff; border-radius: 10px; overflow: hidden; font-size: 11px; font-weight: 600; }
.ph-g span { display: block; padding: 4px 7px 7px; }
.ph-b { margin: 10px; background: #E07B39; color: #fff; border-radius: 10px; padding: 10px; font-size: 12.5px; font-weight: 700; text-align: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-phone { display: none; } }

.sec { margin: 28px 0 6px; font-size: 21px; color: var(--p); }
.sec-sub { margin-bottom: 14px; }
.pg { font-size: 24px; color: var(--p); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tcard { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); text-decoration: none; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.tcard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,33,61,.12); }
.tcard-art { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--p); gap: 2px; padding: 2px; }
.tcard-art img { aspect-ratio: 1; }
.tcard-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tcard-body h3 { color: var(--p); font-size: 19px; margin: 4px 0 0; }
.tcard-body p { font-size: 14.5px; margin: 0; }
.tcard-plain { border-top: 4px solid var(--a); }
.go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--a); }
.tag { align-self: flex-start; display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 3px 8px; border-radius: 6px; background: #EEF1F6; color: var(--mut); }
.tag-real { background: #DCFCE7; color: #166534; }
.mini { display: flex; gap: 4px; margin-top: 6px; }
.mini img { width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); }

/* tenant home */
.t-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--sh); border-left: 6px solid var(--a); }
.t-hero.plain { grid-template-columns: 1fr; margin-bottom: 18px; }
.t-hero h1 { font-size: clamp(24px, 3.4vw, 34px); color: var(--p); }
.t-hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.t-hero-art img { border-radius: 12px; aspect-ratio: 1; }
@media (max-width: 760px) { .t-hero { grid-template-columns: 1fr; } .t-hero-art { grid-template-columns: repeat(4, 1fr); } }
.case { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--sh); border-left: 6px solid var(--a); }
.case h3 { color: var(--p); font-size: 21px; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.case-stats div { background: var(--bg); border-radius: 12px; padding: 14px; }
.case-stats b { display: block; font-size: 24px; color: var(--p); }
.case-stats span { font-size: 13px; color: var(--mut); }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.catcard { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 10px; text-decoration: none; box-shadow: var(--sh); border: 1px solid var(--line); }
.catcard img { width: 64px; height: 64px; border-radius: 10px; flex: none; }
.catcard b { display: block; color: var(--p); }
.catsec { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--sh); }
.catsec h2 a { text-decoration: none; color: var(--p); font-size: 18px; }

/* product grid */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.pcard { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; border: 1px solid var(--line); }
.pcard-img { position: relative; display: block; }
.pcard-img img { aspect-ratio: 1; width: 100%; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--p); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.pd-img .badge { position: static; display: inline-block; margin: 8px 6px 0 0; }
.pcard-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-n { font-weight: 700; text-decoration: none; color: var(--ink); line-height: 1.25; }
.pcard-p { margin-top: auto; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; padding-top: 4px; }
.price { font-weight: 800; font-size: 17px; color: var(--p); }
.price.big { font-size: 28px; }
.por { font-weight: 700; color: var(--a); font-size: 14px; }
.pcard-act { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.cmp { font-size: 12.5px; color: var(--mut); display: flex; gap: 5px; align-items: center; cursor: pointer; }

/* list */
.list-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.list-h select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 13px; min-height: 36px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--p); border-color: var(--p); color: #fff; }
.chip.on .muted { color: #cbd5e1; }
.chips.sub .chip { min-height: 32px; font-size: 13px; }
.facets { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.facets label { font-size: 12.5px; color: var(--mut); display: flex; flex-direction: column; gap: 3px; }
.facets select { padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; min-width: 140px; color: var(--ink); }
.sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); display: inline-block; flex: none; }
.empty { background: #fff; border-radius: 12px; padding: 30px; text-align: center; box-shadow: var(--sh); margin: 12px 0; }
.crumbs { font-size: 13.5px; color: var(--mut); margin-bottom: 10px; }
.crumbs a { color: var(--mut); }

/* product detail */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--sh); }
@media (max-width: 760px) { .pd { grid-template-columns: 1fr; padding: 14px; } }
.pd-img img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
.cct { margin-top: 8px; border-radius: 10px; padding: 14px; text-align: center; font-size: 13px; font-weight: 600; border: 1px solid var(--line); transition: background .3s; }
.pd-b h1 { font-size: 26px; color: var(--p); margin-top: 4px; }
.pd-price { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 10px 0 14px; padding: 12px; background: var(--bg); border-radius: 10px; }
.pd-price .lbl { width: 100%; }
.stock { font-size: 13px; color: #15803d; font-weight: 600; }
.stock.low { color: #b45309; }
.optgrp { margin: 12px 0; }
.lbl { display: block; font-size: 13.5px; color: var(--mut); margin-bottom: 6px; }
.lbl b { color: var(--ink); }
.qtyrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.qtyrow .lbl { width: 100%; margin: 0; }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { width: 44px; border: 0; background: var(--bg); font-size: 20px; cursor: pointer; }
.stepper input { width: 70px; border: 0; text-align: center; font-size: 16px; padding: 10px 0; -moz-appearance: textfield; }
.stepper.sm button { width: 34px; font-size: 17px; }
.stepper.sm input { width: 56px; padding: 6px 0; font-size: 14px; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-act { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-act .btn-a { flex: 1; min-width: 200px; }
.pd-act2 { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 18px; }
.h3 { font-size: 17px; color: var(--p); margin-top: 8px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--mut); font-weight: 500; width: 40%; }

/* basket */
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--sh); border: 1px solid var(--line); margin-bottom: 14px; }
.card h3 { color: var(--p); }
.blist { display: flex; flex-direction: column; gap: 8px; }
.bline { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: var(--sh); border: 1px solid var(--line); flex-wrap: wrap; }
.bimg { width: 64px; height: 64px; border-radius: 10px; flex: none; }
.bl-b { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.bl-b a { text-decoration: none; }
.x { border: 0; background: none; font-size: 24px; color: var(--mut); cursor: pointer; width: 36px; height: 36px; }
.btotal { display: flex; justify-content: space-between; padding: 14px; background: #fff; border-radius: 12px; margin-top: 10px; font-size: 17px; border: 1px solid var(--line); }
.form { display: flex; flex-direction: column; gap: 10px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--mut); }
.form input:not([type=checkbox]), .form select, .form textarea, .inline-form input { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; background: #fff; color: var(--ink); width: 100%; }
.form label:has(input[type=checkbox]) { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.inline-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 200px; width: auto; }

/* sent */
.sent { text-align: left; }
.sent .ok { width: 64px; height: 64px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 34px; display: grid; place-items: center; margin-bottom: 10px; }
.sent h1 { color: var(--p); }
.wa { background: #ECE5DD; border-radius: 14px; padding: 12px; }
.wa-h { font-size: 12px; color: #555; margin-bottom: 8px; font-weight: 700; }
.wa-bubble { background: #DCF8C6; border-radius: 10px 0 10px 10px; padding: 10px 12px; font-size: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.1); margin-left: 12%; }
.sent-act { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.wa-pre { white-space: pre-wrap; font-family: inherit; font-size: 14px; }

/* tools */
.tool .card { margin-bottom: 0; }
.plate-art svg { max-width: 420px; margin: 0 auto; display: block; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--sh); }
.card .kpi { box-shadow: none; background: var(--bg); }
.kpi span { display: block; font-size: 12.5px; color: var(--mut); }
.kpi b { font-size: 22px; color: var(--p); }
.bom { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.bom th, .bom td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.bom tr.rec td { background: #DCFCE7; font-weight: 700; }
.bom tr.tot td { font-weight: 800; border-top: 2px solid var(--ink); }
.lux-svg { width: 100%; max-width: 420px; display: block; margin: 0 auto 8px; }

/* compare, dealers */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmpt { border-collapse: collapse; background: #fff; border-radius: 12px; min-width: 560px; width: 100%; }
.cmpt th, .cmpt td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; font-size: 14px; }
.cmpt tr:first-child th { text-align: center; }
.cimg { width: 110px; margin: 0 auto 6px; border-radius: 10px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.dcard { display: flex; flex-direction: column; gap: 4px; }
.ok-card { border-left: 6px solid #16a34a; }
.bad-card { border-left: 6px solid #dc2626; }
.vimg { width: 120px; border-radius: 10px; margin: 8px 0; }

/* studio */
.room { margin: 18px 0; }
.room h2 { font-size: 18px; color: var(--p); }

/* owner */
.owner-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.owner-top .chip.on { background: var(--a); border-color: var(--a); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 12px 0 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; white-space: nowrap; color: var(--mut); border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.tabs a.on { color: var(--p); border-color: var(--a); }
.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.data th, .data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { background: var(--bg); font-size: 12.5px; color: var(--mut); text-transform: uppercase; letter-spacing: .3px; }
.data tr.click { cursor: pointer; }
.data tr.click:hover td { background: #F8FAFC; }
.data tr.tot td { font-weight: 800; }
.st { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.st-new { background: #FEF3C7; color: #92400E; }
.st-q { background: #DBEAFE; color: #1E40AF; }
.st-won { background: #DCFCE7; color: #166534; }
.st-lost { background: #F1F5F9; color: #64748B; }
.rate { width: 110px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; display: block; margin-top: 3px; }
.spark { display: flex; gap: 4px; align-items: flex-end; height: 150px; padding-top: 18px; }
.spark div { flex: 1; background: var(--a); border-radius: 4px 4px 0 0; position: relative; min-height: 4px; }
.spark span { position: absolute; top: -17px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--mut); }
.hbar { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr 40px; gap: 8px; align-items: center; font-size: 13.5px; margin: 6px 0; }
.hbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar div { background: var(--bg); border-radius: 4px; height: 10px; }
.hbar i { display: block; height: 100%; background: var(--a); border-radius: 4px; }
.hbar b { text-align: right; }
.steps { padding-left: 20px; }
.steps li { margin: 8px 0; }
.upl { display: inline-flex; margin: 8px 0; }
.upl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upl span { background: var(--a); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.check p { margin: 4px 0; color: #166534; }
.check p.warn { color: #92400E; }
.xl { border-collapse: collapse; font-size: 12.5px; font-family: Menlo, Consolas, monospace; min-width: 520px; }
.xl th, .xl td { border: 1px solid #d0d7de; padding: 4px 8px; white-space: nowrap; }
.xl th { background: #F3F4F6; font-weight: 600; color: #555; }
.xl tr:first-child th { background: #1E6F43; color: #fff; }

/* features & tour */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.fcard ul { list-style: none; padding: 0; margin: 0; }
.fcard li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.fcard li > span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #EEF1F6; color: var(--mut); }
.fcard li.live > span { background: #DCFCE7; color: #166534; }
.fcard small { display: block; color: var(--mut); }
.tour { list-style: none; padding: 0; }
.tour li { display: flex; gap: 14px; }
.tn { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* modal & toast */
.modal-back { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; padding: 22px; max-width: 520px; width: 100%; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 860px; }
.modal h2 { color: var(--p); padding-right: 30px; }
.modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: var(--bg); border-radius: 50%; width: 36px; height: 36px; font-size: 22px; cursor: pointer; }
.share { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; }
.share .qr svg { width: 180px; height: 180px; }
.share .btn { margin: 4px 6px 4px 0; }
@media (max-width: 520px) { .share { grid-template-columns: 1fr; justify-items: center; } }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 200; opacity: 0; transition: all .25s; font-size: 14px; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.foot { max-width: 1180px; margin: 0 auto; padding: 18px 16px 30px; font-size: 12.5px; color: var(--mut); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot { padding-bottom: 90px; } }

/* print */
#print { display: none; }
@media print {
  body.printing > *:not(#print) { display: none !important; }
  body.printing #print { display: block; }
  body { background: #fff; }
  @page { margin: 14mm; }
}
.ds { font-family: var(--font); color: #111; page-break-after: always; }
.ds:last-child { page-break-after: auto; }
.ds-h { display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid; padding-bottom: 10px; margin-bottom: 18px; }
.ds-logo { width: 54px; height: 54px; border-radius: 12px; color: #fff; display: grid; place-items: center; font-weight: 800; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ds h1 { font-size: 26px; margin: 0; }
.ds-id { color: #666; }
.ds-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin: 14px 0; }
.ds-img svg { width: 220px; height: 220px; border: 1px solid #ddd; border-radius: 10px; }
.ds table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0; }
.ds th, .ds td { border: 1px solid #ccc; padding: 6px 8px; text-align: left; vertical-align: top; }
.ds th { background: #f3f4f6; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ds .meta td { border: 0; padding: 0 0 10px; width: 50%; }
.ds-f { display: flex; gap: 14px; align-items: center; margin-top: 20px; border-top: 1px solid #ddd; padding-top: 12px; }
.ds-qr svg { width: 90px; height: 90px; }
.ds.cover { padding-top: 120px; text-align: center; }
.boqt .ti svg { width: 60px; height: 60px; }

@media (max-width: 420px) { .hide-sm { display: none; } }
