:root {
  --bg: #F3F4F7; --card: #FFFFFF; --line: #E3E5EC; --line2: #ECEEF3; --ink: #171A2B; --ink2: #4B5167; --ink3: #6B7186;
  --nav: #1E1B4B; --nav-ink: #D7D8F0; --accent: #312E81; --accent-d: #262369; --accent-bg: #EEF0FB;
  --gold: #F2A93B; --gold-bg: #FEF4E2; --ok: #1F8A5B; --ok-bg: #E6F4EC;
  --warn-bg: #FEF4E2; --warn: #7A4B00; --bad-bg: #FBEDEA; --bad: #B4321F; --info-bg: #EEF0F6;
  --r: 16px; --font: 'Hanken', system-ui, sans-serif; --display: 'Brico', 'Hanken', system-ui, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@font-face { font-family: Hanken; font-weight: 400; font-display: swap; src: url(/fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Hanken; font-weight: 500; font-display: swap; src: url(/fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Hanken; font-weight: 600; font-display: swap; src: url(/fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Hanken; font-weight: 700; font-display: swap; src: url(/fonts/hanken-grotesk-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Brico; font-weight: 600; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Brico; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2'); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); } a:hover { color: var(--accent-d); }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 40px; color: var(--ink2); }

/* Shell */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.nav { flex: 1 1 232px; max-width: 248px; background: var(--nav); padding: 18px 12px; display: flex; flex-direction: column; gap: 1px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.nav .brand { color: #fff; font-family: var(--display); font-weight: 700; font-size: 20px; padding: 2px 10px 14px; display: flex; align-items: center; gap: 10px; }
.nav .brand i { width: 28px; height: 28px; border-radius: 8px; background: var(--gold); display: grid; place-items: center; color: var(--nav); font-style: normal; font-size: 13px; }
.nav .grp { color: #8E90B8; font-size: 12px; padding: 14px 10px 5px; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 9px; color: var(--nav-ink); text-decoration: none; font-size: 14px; min-height: 38px; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.nav a.soon { color: #9395BC; }
.nav a .tag { font-size: 10.5px; border: 1px solid #3B3875; border-radius: 99px; padding: 0 7px; color: #9395BC; }
.nav a .cnt { background: var(--gold); color: var(--nav); border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 7px; }
.nav .me { margin-top: auto; padding: 14px 10px 4px; color: #8E90B8; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.nav .me button { background: none; border: 1px solid #3B3875; color: var(--nav-ink); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.main { flex: 999 1 560px; min-width: 0; padding: 26px 32px 60px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 700px) {
  .nav { max-width: none; height: auto; position: static; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .nav .grp, .nav .brand, .nav a.soon { display: none; } .nav .me { margin: 0; }
  .main { padding: 16px; }
}

/* Common */
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; }
h1 { font-size: 28px; margin: 0; } h2 { font-size: 19px; margin: 0 0 12px; } h3 { font-size: 16px; margin: 0 0 8px; }
.sub { color: var(--ink2); font-size: 14px; margin-top: 4px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 800px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.btn { white-space: nowrap; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--ink3); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--nav); font-weight: 700; }
.btn.big { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn.pri:hover { background: var(--accent-d); }
.btn.danger { color: var(--bad); border-color: #E7B4AE; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--ink2); }
label.f .hint { font-weight: 400; color: var(--ink3); font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; min-height: 42px; width: 100%; color: var(--ink); font-size: 14.5px; }
textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--info-bg); color: #26313D; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); }
.banner { padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.banner.warn { background: var(--warn-bg); color: var(--warn); } .banner.bad { background: var(--bad-bg); color: var(--bad); } .banner.ok { background: var(--ok-bg); color: #155E3E; } .banner.info { background: var(--info-bg); color: #26313D; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); font-weight: 500; padding: 8px 10px; }
table.t td { padding: 10px; border-top: 1px solid var(--line2); vertical-align: top; }
.tw { overflow-x: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink3); font-size: 13px; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink2); }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; display: none; z-index: 50; max-width: 90vw; }
#toast.show { display: block; } #toast.bad { background: var(--bad); }

/* Auth */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth .card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }

/* Page builder */
.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.steps a { padding: 8px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13px; text-decoration: none; color: var(--ink); }
.steps a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.steps a.done { border-color: var(--ok); }
.niches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.niche { border: 2px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: #fff; text-align: left; }
.niche.on { border-color: var(--accent); background: var(--accent-bg); }
.niche b { display: block; margin-bottom: 4px; } .niche span { font-size: 12px; color: var(--ink2); }
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.split > .l { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.split > .r { flex: 2 1 340px; min-width: 0; position: sticky; top: 12px; }
.blk { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.blk.flag { border-color: #E7B4AE; }
.blk .bh { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line2); }
.blk .bh .k { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
.blk .bb { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.flags { display: flex; flex-direction: column; gap: 8px; }
.flagrow { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--bad-bg); font-size: 14px; }
.flagrow.done { background: #F1F4F7; color: var(--ink3); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { width: 104px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; font-size: 12px; }
.thumb img { width: 104px; height: 104px; object-fit: cover; display: block; }
.thumb .tb { display: flex; justify-content: space-between; padding: 4px; }
.thumb button { border: none; background: none; cursor: pointer; padding: 2px 6px; min-height: 28px; }
.drop { border: 2px dashed #B8C4CF; border-radius: 10px; padding: 18px; text-align: center; color: var(--ink2); background: #FAFBFC; }
.pv-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.pv-frame { margin: 0 auto; border: 8px solid var(--ink); border-radius: 26px; overflow: auto; background: #fff; max-height: 78vh; }
.pv-frame.phone { width: 360px; max-width: 100%; } .pv-frame.desk { width: 100%; border-width: 6px; border-radius: 12px; }
@media (max-width: 700px) { .nav a.soon { display: none; } }
.thumb { position: relative; }

/* Design editor (v0.4) */
.dpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.span2 { grid-column: 1 / -1; }
details.dpart > summary { list-style: none; cursor: pointer; }
details.dpart > summary::-webkit-details-marker { display: none; }
details.dpart > summary .k::before { content: "▸ "; } details.dpart[open] > summary .k::before { content: "▾ "; }
details.dpart.off { opacity: .65; }
.dlist { display: flex; flex-direction: column; gap: 8px; }
.ditem { border: 1px solid var(--line2); border-radius: 8px; padding: 10px; background: #FAFBFC; display: flex; flex-direction: column; gap: 8px; }
.dih { display: flex; justify-content: space-between; align-items: center; }
.ipick { display: flex; flex-wrap: wrap; gap: 6px; }
.ipick button { position: relative; width: 58px; height: 58px; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.ipick button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ipick button i { position: absolute; right: 2px; bottom: 2px; background: rgba(0,0,0,.6); color: #fff; font-style: normal; font-size: 11px; border-radius: 6px; padding: 0 5px; }
.ipick button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
.ipick button.on i { background: var(--accent); }
.ipick button.none { width: auto; padding: 0 10px; font-size: 12px; color: var(--ink2); }
.vers { position: relative; } .vers > summary { list-style: none; } .vers > summary::-webkit-details-marker { display: none; }
.vlist { position: absolute; right: 0; top: 46px; z-index: 5; width: 320px; max-height: 360px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 8px; }
.vrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line2); font-size: 13px; }
.vrow:last-child { border: 0; }
.pv-frame iframe.dpv { display: block; border: 0; width: 100%; height: 76vh; background: #fff; }
.pv-frame.desk iframe.dpv { width: 1280px; height: 1100px; transform: scale(var(--pvs, .5)); transform-origin: 0 0; }
.pv-frame.desk { overflow: hidden; height: calc(1100px * var(--pvs, .5)); }

/* Product Hunting (v0.5) */
.hcard { padding: 14px; }
.hrow { display: flex; gap: 14px; align-items: flex-start; }
.hrow > img, .hrow > .noimg { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; flex: none; background: #F1F4F7; }
.hrow > .noimg { display: grid; place-items: center; color: var(--ink3); font-size: 12px; }
.hmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hmain select { width: auto; min-height: 32px; padding: 4px 8px; font-size: 13px; }
.hdet { border-top: 1px solid var(--line2); margin-top: 12px; padding-top: 12px; font-size: 14px; }
.hdet ul { margin: 2px 0 0; padding-left: 18px; }
.rev { border: 1px solid var(--line2); border-radius: 8px; padding: 10px; background: #FAFBFC; }
.rev p { margin: 6px 0; }
.score { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.score.hi { background: var(--accent-bg); color: var(--accent-d); } .score.mid { background: var(--warn-bg); color: var(--warn); } .score.lo { background: var(--bad-bg); color: var(--bad); }
@media (max-width: 600px) { .hrow { flex-direction: column; } }
.soonc ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.9; }

/* Create wizard (v0.6) — matches the approved mockup */
.wz-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.wz { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
@media (max-width: 1180px) { .wz { grid-template-columns: minmax(0, 1fr) 280px; } .wz-rail { grid-column: 1 / -1; flex-direction: row !important; overflow-x: auto; position: static !important; } }
@media (max-width: 860px) { .wz { grid-template-columns: minmax(0, 1fr); } .wz-ticket { position: static !important; } }
.wz-rail { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 4px; }
.wz-st { display: flex; gap: 12px; padding: 10px; border-radius: 12px; border: 0; background: none; text-align: left; cursor: default; min-width: 170px; }
.wz-st[data-go] { cursor: pointer; }
.wz-st .n { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--ink3); flex: none; background: #fff; }
.wz-st b { display: block; font-size: 14px; } .wz-st span { font-size: 12.5px; color: var(--ink3); }
.wz-st.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.wz-st.on { background: #fff; box-shadow: 0 1px 0 var(--line); } .wz-st.on .n { border-color: var(--accent); color: var(--accent); }
.wz-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wz-p { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.wz-p h2 { font-size: 19px; margin: 0 0 4px; } .wz-p .hint { color: var(--ink2); font-size: 14px; margin: 0 0 14px; }
.wz-p .lbl { font-weight: 600; font-size: 14px; margin: 14px 0 8px; display: block; color: var(--ink); }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 500; color: var(--ink2); cursor: pointer; min-height: 36px; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(23,26,43,.12); }
.wz-field { display: flex; gap: 10px; margin-top: 14px; } .wz-field input { flex: 1; }
.wz-src { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; color: var(--ink2); }
.wz-src i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-top: 7px; flex: none; }
.wz-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 360px; overflow: auto; }
.wz-item { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; cursor: pointer; text-align: left; }
.wz-item img, .wz-item .noimg { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--bg); flex: none; }
.wz-item.on { border-color: var(--accent); background: var(--accent-bg); }
.wz-item span { display: block; font-size: 12.5px; color: var(--ink3); }
.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.ph { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 2px solid var(--accent); background: var(--bg); padding: 0; cursor: grab; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ph .x { position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ph.off { border-color: var(--line); } .ph.off img { opacity: .3; filter: grayscale(1); } .ph.off .x { background: var(--bad); color: #fff; }
.ph .mainb { position: absolute; left: 5px; bottom: 5px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; }
.ph.drag { opacity: .4; }
.ph.add { border: 2px dashed #C9CCD8; display: grid; place-items: center; color: var(--ink3); font-size: 26px; cursor: pointer; background: #fff; }
.wz-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 700px) { .wz-2 { grid-template-columns: 1fr; } }
.shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.shots span { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--accent-bg); color: var(--accent); }
.shots span.dim { background: var(--bg); color: #9AA0B3; }
.wz-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aud button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 14px; font-weight: 600; cursor: pointer; }
.aud button.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
.angles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 700px) { .angles { grid-template-columns: 1fr; } }
.ang { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; background: #fff; text-align: left; cursor: pointer; }
.ang .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--gold-bg); display: grid; place-items: center; flex: none; }
.ang .ic svg { width: 20px; height: 20px; stroke: #B26F06; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ang b { display: block; font-size: 15px; } .ang span { font-size: 13.5px; color: var(--ink2); }
.ang.on { border-color: var(--accent); background: var(--accent-bg); } .ang.on .ic { background: var(--accent); } .ang.on .ic svg { stroke: #fff; }
.designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } @media (max-width: 760px) { .designs { grid-template-columns: 1fr; } }
.dz { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; text-align: left; padding: 0; cursor: pointer; display: flex; flex-direction: column; }
.dz .shot { height: 280px; overflow: hidden; background: var(--bg); display: flex; justify-content: center; padding: 14px 14px 0; }
.dz .shot img { width: 170px; height: auto; align-self: flex-start; border-radius: 12px 12px 0 0; box-shadow: 0 6px 22px rgba(23,26,43,.18); }
.dz .meta { padding: 12px 14px 14px; } .dz .meta b { font-family: var(--display); font-size: 16px; }
.dz .meta p { margin: 4px 0 8px; font-size: 13px; color: var(--ink2); }
.dz.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; } .tags span { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--bg); color: var(--ink2); }
.rec { display: inline-block; background: var(--gold); color: var(--nav); font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.brandbox { display: flex; gap: 14px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 14px; }
.sw { display: flex; gap: 6px; } .sw i { width: 22px; height: 22px; border-radius: 6px; display: block; border: 1px solid var(--line); }
.tgl { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: #C9CCD8; position: relative; flex: none; cursor: pointer; margin: 0; }
.tgl::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.tgl:checked { background: var(--ok); } .tgl:checked::after { left: 21px; }
.titleopt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } @media (max-width: 700px) { .titleopt { grid-template-columns: 1fr; } }
.titleopt button { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; background: #fff; text-align: left; cursor: pointer; color: var(--ink2); }
.titleopt button b { display: block; font-size: 14.5px; margin-bottom: 2px; color: var(--ink); }
.titleopt button.on { border-color: var(--accent); background: var(--accent-bg); }
.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } @media (max-width: 700px) { .money { grid-template-columns: 1fr; } }
.margin { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 12px; padding: 12px 16px; background: var(--ok-bg); border-radius: 12px; color: #155E3E; font-size: 14px; }
.margin b { font-family: var(--display); font-size: 20px; display: block; } .margin.bad { background: var(--bad-bg); color: var(--bad); }
.vtable input { min-height: 34px; padding: 4px 8px; font-size: 13.5px; }
.vtable td { padding: 6px 8px; vertical-align: middle; } .vtable tr.off td { opacity: .45; }
.cpills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cpill { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding: 3px 4px 3px 10px; font-size: 13px; background: #fff; }
.cpill img, .cpill .noimg { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.cpill button { border: 0; background: none; cursor: pointer; min-height: 26px; padding: 0 6px; }
.stores { display: flex; flex-direction: column; gap: 8px; }
.sto { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.sto.on { border-color: var(--accent); }
.sto .sh { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sto .sh input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.sto .d { flex: 1; min-width: 0; } .sto .d span { display: block; font-size: 12.5px; color: var(--ink3); }
.sto .sx { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sto .sx .cols { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--gold-bg); color: #9A5B00; }
.wz-ticket { position: sticky; top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.wz-ticket .hero { height: 210px; position: relative; background: var(--bg); display: grid; place-items: center; color: var(--ink3); font-size: 13px; }
.wz-ticket .hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.wz-ticket .hero span { position: absolute; left: 12px; bottom: 12px; background: rgba(23,26,43,.78); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 99px; }
.wz-ticket .body { padding: 16px 18px; } .wz-ticket h3 { font-size: 17px; line-height: 1.3; margin: 0; }
.wz-ticket .price { display: flex; gap: 8px; align-items: baseline; margin: 6px 0 12px; }
.wz-ticket .price b { font-family: var(--display); font-size: 22px; } .wz-ticket .price s { color: var(--ink3); }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 7px 10px; font-size: 13.5px; border-top: 1px dashed var(--line); padding-top: 12px; margin: 0; }
.kv dt { color: var(--ink3); } .kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; } .kv dd.nil { color: #A7ACBD; font-weight: 400; }
.vtable td:first-child { white-space: nowrap; }
.wz-ticket .tip { margin: 0 18px 18px; background: var(--gold-bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #7A4B00; }
details.more > summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+ "; color: var(--accent); } details.more[open] > summary::before { content: "− "; }

/* Reviews (v0.7) */
.rvc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.rvc.hidden { opacity: .6; } .rvc.draft { border-color: #F2D49B; }
.rvh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.rvs { color: #B26F06; letter-spacing: 1px; }
.rvb { display: flex; gap: 12px; margin-top: 8px; align-items: flex-start; }
.rvp { display: flex; gap: 6px; flex: none; } .rvp img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.rvp.off img { opacity: .35; filter: grayscale(1); }
.rvt { font-size: 14.5px; line-height: 1.5; margin-bottom: 4px; }
.rvo { background: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; margin: 4px 0; white-space: pre-wrap; }
.lnk { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 13px; text-decoration: underline; }
.rvf { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; background: #FAFBFD; }
@media (max-width: 700px) { .rvb { flex-direction: column; } }

/* Meta Ads (v0.8) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-size: 14px; color: var(--ink2); border-bottom: 2px solid transparent; margin-bottom: -1px; min-height: 42px; }
.tabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.tabs button:focus-visible { outline: 2px solid var(--accent); }
.kpis h2 { margin: 4px 0 0; font-size: 24px; }
.kpis h2 .muted { font-family: var(--font); font-weight: 400; }
.pplist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 340px; overflow-y: auto; }
.ppi { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.ppi:hover { border-color: var(--accent); background: var(--accent-bg); }
.hook { border: 1px dashed var(--accent); background: var(--accent-bg); color: var(--accent); border-radius: 99px; padding: 5px 12px; font-size: 13px; cursor: pointer; text-align: left; }
.hook:hover { background: #E2E5F8; }
#lf .card { display: flex; flex-direction: column; gap: 10px; }
.thumb.pick { cursor: pointer; border-width: 2px; }
.thumb.pick.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
.thumb.pick .tb { align-items: center; gap: 4px; justify-content: flex-start; }
.sticky-col { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 8px; }
ul.plain { margin: 0; padding-left: 18px; line-height: 1.8; color: var(--ink2); font-size: 14px; }
.adtxt { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin-bottom: 12px; }
.adpv { width: 100%; max-width: 360px; height: 560px; border: 1px solid var(--line); border-radius: 10px; margin-top: 12px; background: #fff; }
.chip .x { border: 0; background: none; cursor: pointer; padding: 0 0 0 4px; font-size: 14px; line-height: 1; color: inherit; }
details.howto { margin-top: 14px; font-size: 14px; } details.howto summary { cursor: pointer; color: var(--accent); font-weight: 600; }
details.howto ol { line-height: 1.8; padding-left: 20px; color: var(--ink2); }
.mdl { position: fixed; inset: 0; background: rgba(23, 26, 43, .45); display: grid; place-items: center; padding: 16px; z-index: 60; }
.mdlc { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 10px; }
.mdlc p { margin: 0; }
#adBody { display: flex; flex-direction: column; gap: 14px; }
tr[data-store] select { min-width: 150px; }
