/* سامانهٔ گارانتی — استایلِ مشترک. موبایل‌محور، راست‌به‌چپ، بی‌منبعِ بیرونی. */
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f5f7f8; --card: #fff; --ink: #1c2529; --muted: #5f6b70; --line: #dde3e6;
  --brand: #0f766e; --brand-ink: #fff;
  --ok: #0f7a3c; --ok-bg: #e5f5ec; --warn: #8a5a00; --warn-bg: #fff4dc; --bad: #b3261e; --bad-bg: #fde8e6;
  --r: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111618; --card: #1a2124; --ink: #e8eef0; --muted: #9aa7ac; --line: #2c3539;
    --brand: #2bb3a6; --brand-ink: #062320;
    --ok: #6fd69a; --ok-bg: #12301f; --warn: #f0c46a; --warn-bg: #33280f; --bad: #ff8a80; --bad-bg: #3a1714;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.8 Vazirmatn, Tahoma, sans-serif; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.4; margin: .2em 0 .6em; }
h1 { font-size: 1.35rem; } h2 { font-size: 1.1rem; } h3 { font-size: 1rem; }
small, .muted, .hint { color: var(--muted); }
.hint { font-size: .9rem; }
code { background: var(--bg); padding: 0 .3em; border-radius: 4px; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
.wrap.wide { max-width: 1100px; }

/* ── فرم‌ها ── */
label { display: block; margin: 0 0 12px; font-weight: 500; }
label small { font-weight: 400; }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
label.check input { width: 22px; height: 22px; min-height: 0; margin: 0; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  font: 500 1rem Vazirmatn, Tahoma, sans-serif; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.small { min-height: 36px; padding: 4px 10px; font-size: .9rem; }
.btn:disabled { opacity: .55; cursor: default; }
.err { color: var(--bad); margin: -6px 0 10px; font-size: .92rem; }

/* ── لندینگ ── */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 12px; padding: 0 16px; }
.gallery img { flex: 0 0 100%; width: 100%; height: auto; max-height: 60vh; object-fit: contain; border-radius: var(--r); background: var(--card); scroll-snap-align: center; }
.gallery[data-count="1"] { overflow: hidden; }
.title { font-size: 1.4rem; margin-top: 8px; }
.subtitle { color: var(--ink); }
.subtitle ul { padding-inline-start: 1.2em; }
.status { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 16px 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; background: var(--bg); margin: 0 0 8px; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.bad { color: var(--bad); background: var(--bad-bg); }
.badge.small { font-size: .78rem; padding: 0 8px; margin: 0; }
.serial { font: 700 1.35rem/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; text-align: center; background: var(--bg); border-radius: 10px; padding: 10px; margin: 4px 0; word-break: break-all; }
.note { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 8px 0 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 700; }
.regform { margin-top: 12px; }
.regform .btn.primary { width: 100%; margin-top: 4px; }
.buttons { display: grid; gap: 8px; margin: 16px 0; }
.buttons .btn { width: 100%; }
.captcha { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.captcha img { border-radius: 8px; border: 1px solid var(--line); }
.foot { text-align: center; }
body.preview .wrap { padding-top: 8px; }

/* ── پنل ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 16px; }
.card.narrow { max-width: 420px; margin: 32px auto; }
.flash { border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; }
.flash p { margin: 0; }
.flash.ok { background: var(--ok-bg); color: var(--ok); } .flash.bad { background: var(--bad-bg); color: var(--bad); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > label { flex: 1 1 140px; }
.row.between { justify-content: space-between; }
form.inline { display: inline-block; margin-inline-end: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; }
.tile .n { font-size: 1.5rem; font-weight: 700; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 12px 4px; text-decoration: none; color: var(--ink); }
.plain { padding-inline-start: 1.2em; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px; }
.thumbs figure { margin: 0; background: var(--bg); border-radius: 10px; padding: 6px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.thumbs figcaption { justify-content: center; margin-top: 4px; }
.btnrow { border-bottom: 1px solid var(--line); padding: 8px 0; margin-bottom: 8px; }
.grid3 { display: grid; gap: 8px; grid-template-columns: 1fr; align-items: center; }
.grid3 input { margin: 0; }
.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
.previewbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.previewbox select { width: auto; margin: 0; }
.previewbox iframe { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) 400px; }
  .previewbox { position: sticky; top: 64px; align-self: start; }
  .grid3 { grid-template-columns: 1fr 1.6fr auto auto; }
}

/* ── فاز ۳: ورودِ سریال و نوشتنِ تگ ── */
[hidden] { display: none !important; }
.btn.wide { width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: start; }
.scanbox video, #t-video { width: 100%; max-height: 40vh; object-fit: cover; border-radius: 10px; background: #000; margin: 8px 0; }
#t-manual { flex: 1 1 160px; margin: 0; }
.tagstate { border: 2px dashed var(--line); border-radius: var(--r); padding: 16px; margin: 12px 0; text-align: center; }
.tagstate .big { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; }
.tagstate[data-phase="tap-read"], .tagstate[data-phase="tap-write"], .tagstate[data-phase="tap-verify"] { border-color: var(--brand); background: var(--ok-bg); }
.tagstate[data-phase="writing"], .tagstate[data-phase="confirming"], .tagstate[data-phase="looking"] { border-style: solid; }
.tagstate[data-phase="ask-overwrite"] { border-color: var(--bad); background: var(--bad-bg); }
.log { margin-top: 12px; }
.log li.ok { color: var(--ok); } .log li.bad { color: var(--bad); }

/* ── فاز ۴: فروش، ریتیلرها، فهرستِ سریال، اسکنر ── */
.camwrap { position: relative; margin: 8px 0; }
.camwrap video { display: block; width: 100%; max-height: 45vh; object-fit: cover; border-radius: 10px; background: #000; margin: 0; }
.camwrap .guide { position: absolute; inset: 30% 6%; border: 3px solid #22d3c5; border-radius: 8px; box-shadow: 0 0 0 999px rgba(0,0,0,.28); pointer-events: none; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.filters { display: grid; gap: 8px; grid-template-columns: 1fr; }
.filters input, .filters select { margin: 0; }
@media (min-width: 700px) { .filters { grid-template-columns: repeat(4, 1fr); } }
.tblwrap { overflow-x: auto; }
.tbl tr.off td { color: var(--muted); }
.st { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: .85rem; background: var(--bg); white-space: nowrap; }
.st-ready, .st-registered { color: var(--ok); background: var(--ok-bg); }
.st-sold, .st-in_claim { color: var(--warn); background: var(--warn-bg); }
.st-replaced, .st-archived { color: var(--bad); background: var(--bad-bg); }
.pager { justify-content: center; margin: 12px 0; }
.salelist { padding-inline-start: 1.4em; }
.salelist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.salelist li.bad { color: var(--bad); }
#s-retailer { min-height: 180px; }
#s-manual { flex: 1 1 160px; margin: 0; }
.pre { white-space: pre-line; }
.timeline { padding-inline-start: 1.2em; }
.timeline li { margin-bottom: 8px; }

/* ── فاز ۵: گارانتی، اصلاحات، تمدید، فروشِ فاکتوری، مدلِ سریال ── */
.attention { border-color: var(--warn); background: var(--warn-bg); }
.indent { margin: 0 0 12px; padding-inline-start: 28px; }
input.short, select.short { width: auto; min-width: 90px; display: inline-block; margin: 0; }
details { border-top: 1px solid var(--line); padding: 8px 0; }
details > summary { cursor: pointer; font-weight: 500; padding: 4px 0; }
details[open] > summary { margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; margin: 8px 0 12px; overflow-x: auto; }
.tab { flex: 1; min-height: 44px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 10px; font: 500 .95rem Vazirmatn, Tahoma, sans-serif; cursor: pointer; white-space: nowrap; padding: 0 10px; }
.tab.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.picklist { max-height: 45vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin: 8px 0; }
.picklist label.check { margin: 0; padding: 6px 4px; border-bottom: 1px solid var(--line); }
#s-psearch { flex: 1 1 160px; margin: 0; }
fieldset.sfmt { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 0; margin: 0 0 12px; }
fieldset.sfmt legend { font-weight: 700; padding: 0 6px; }
#sfmt-sample { flex: 1 1 200px; margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.ver { text-align: center; color: var(--muted); font-size: .75rem; margin-top: 32px; }

/* ── منوی پنل (۱۴۰۵/۰۷/۰۶): بزرگ‌تر، آیکون‌دار، اسکرولِ افقی با دکمه‌های قرصی ── */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); padding: 10px 0 0; }
.topbar .brand { display: flex; align-items: center; gap: 8px; padding: 0 16px 8px; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.topbar .brand img { border-radius: 8px; }
.mainnav { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { flex: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  background: var(--bg); color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap;
  border: 1px solid transparent; scroll-snap-align: start; transition: background .15s, color .15s; }
.mainnav a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mainnav a:hover { color: var(--ink); border-color: var(--line); }
.mainnav a.on { background: var(--brand); color: var(--brand-ink); }
.mainnav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (min-width: 1000px) { .mainnav { flex-wrap: wrap; overflow: visible; } }

/* ── میان‌برهای داشبورد ── */
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 16px; }
@media (min-width: 700px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick a { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 108px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .12s, border-color .12s; }
.quick a:hover { border-color: var(--brand); }
.quick a:active { transform: scale(.98); }
.quick svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.quick strong { font-size: 1.05rem; }
.quick small { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .quick a, .mainnav a { transition: none; } }

/* مهرِ اصالت فقط در طرحِ جدید (landing-modern.css) */
.seal, .lfoot { display: none; }
.phone { max-width: 400px; margin: 0 auto; }
.savebar { margin: 20px 0 0; }

/* عکسِ کالا (۰۷/۰۶): بی‌زمینه ⇒ بی‌قاب؛ زمینه‌دار ⇒ تا لبه، بی‌درز (عکس خودش گوشه‌گرد است) */
.gallery img.is-cutout { background: transparent; }
.gallery img.is-photo { object-fit: cover; }

/* نوارِ لوگو در طرحِ کلاسیک + پیش‌نمایشِ لوگو در پنل */
.brandbar { margin: -16px calc(50% - 50vw) 16px; padding: 12px 16px; text-align: center; background: var(--card); border-bottom: 1px solid var(--line); }
.brandbar img { display: inline-block; width: auto; height: auto; max-height: 44px; max-width: 60%; }
.logoprev { display: inline-block; padding: 14px 20px; margin: 0 0 10px; border-radius: 12px; background: #223462; }
.logoprev img { display: block; max-height: 48px; max-width: 240px; width: auto; height: auto; }
body { overflow-x: hidden; }

/* خواندن از عکسِ برگه */
.ocrbox { border-top: 1px solid var(--line); margin: 12px 0; padding-top: 12px; }
.ocrbox .picklist label.unsure span { color: var(--warn); }

/* ورودِ دستی در جعبهٔ اسکن */
.manualrow { margin-top: 8px; }
.manualrow input { flex: 1 1 180px; margin: 0; }

/* ── نوشتنِ تگ، حالتِ ساده (۱۴۰۵/۰۷/۰۷، خواستهٔ مالک: «یک آدمِ بسیار مبتدی هم بتواند») ──
 * سه گامِ درشت بالا، یک تصویرِ بزرگ برای کاری که همین حالا باید کرد، و بقیه پنهان.
 * همه‌چیز از #tagapp[data-phase] می‌آید (tags.js ⇒ setState)؛ off = پیش از «شروع». */
.tagwiz { padding: 18px 16px; }
.wsteps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; counter-reset: none; }
.wsteps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); position: relative; }
.wsteps li b { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); font-size: 1.05rem; transition: all .2s; }
.wsteps li:not(:last-child)::after { content: ""; position: absolute; top: 19px; inset-inline-start: calc(50% + 22px); inset-inline-end: calc(-50% + 22px); height: 2px; background: var(--line); }
/* گامِ جاری */
.tagwiz:is([data-phase=off],[data-phase=idle],[data-phase=looking]) .ws1 b,
.tagwiz:is([data-phase=tap-read],[data-phase=ask-overwrite],[data-phase=tap-write],[data-phase=writing]) .ws2 b,
.tagwiz:is([data-phase=tap-verify],[data-phase=confirming]) .ws3 b { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, transparent); }
.tagwiz:is([data-phase=off],[data-phase=idle],[data-phase=looking]) .ws1,
.tagwiz:is([data-phase=tap-read],[data-phase=ask-overwrite],[data-phase=tap-write],[data-phase=writing]) .ws2,
.tagwiz:is([data-phase=tap-verify],[data-phase=confirming]) .ws3 { color: var(--ink); font-weight: 700; }
/* گام‌های گذشته ⇒ تیک */
.tagwiz:is([data-phase=tap-read],[data-phase=ask-overwrite],[data-phase=tap-write],[data-phase=writing],[data-phase=tap-verify],[data-phase=confirming],[data-phase=done]) .ws1 b,
.tagwiz:is([data-phase=tap-verify],[data-phase=confirming],[data-phase=done]) .ws2 b,
.tagwiz[data-phase=done] .ws3 b { background: var(--ok-bg); border-color: var(--ok); color: transparent; }
.tagwiz:is([data-phase=tap-read],[data-phase=ask-overwrite],[data-phase=tap-write],[data-phase=writing],[data-phase=tap-verify],[data-phase=confirming],[data-phase=done]) .ws1 b::before,
.tagwiz:is([data-phase=tap-verify],[data-phase=confirming],[data-phase=done]) .ws2 b::before,
.tagwiz[data-phase=done] .ws3 b::before { content: "✓"; color: var(--ok); position: absolute; }

/* کالا و «شروع»: فقط وقتی لازم است */
.wprod { font-weight: 700; }
.wprod select { min-height: 52px; font-size: 1.05rem; }
.tagwiz:not([data-phase=off]):not([data-phase=idle]) .wprod { display: none; }
.wstart { min-height: 64px; font-size: 1.3rem; font-weight: 700; border-radius: 16px; margin-top: 6px; }
.wstart[hidden], .tagwiz:not([data-phase=off]) .wstart-hint { display: none; }
.wstart-hint { text-align: center; }

/* کارتِ مرحله */
.tagwiz .tagstate { border: 0; border-radius: 18px; padding: 18px 14px 16px; margin: 4px 0 14px; background: var(--bg); }
.tagwiz .tagstate .big { font-size: 1.35rem; line-height: 1.5; }
.tagwiz .tagstate .hint { font-size: 1rem; margin: 4px 0 0; }
.tagwiz .tagstate .serial { margin-top: 10px; background: var(--card); }
.tagwiz .tagstate:is([data-phase=tap-read],[data-phase=tap-write],[data-phase=tap-verify]) { background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--brand); }
.tagwiz .tagstate[data-phase=done] { background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--ok); }
.tagwiz .tagstate[data-phase=done] .big { color: var(--ok); }
.tagwiz .tagstate[data-phase=ask-overwrite] { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--bad); }

/* تصویرِ مرحله: فقط یکی دیده می‌شود */
.wvis { height: 96px; margin: 0 auto 8px; display: grid; place-items: center; }
.wvis svg { display: none; width: 140px; height: 96px; fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tagstate:is([data-phase=idle],[data-phase=looking]) .v-scan,
.tagstate:is([data-phase=tap-read],[data-phase=tap-write],[data-phase=tap-verify]) .v-tap,
.tagstate:is([data-phase=writing],[data-phase=confirming]) .v-busy,
.tagstate[data-phase=done] .v-done,
.tagstate[data-phase=ask-overwrite] .v-warn { display: block; }
.v-scan .laser { stroke: var(--bad); stroke-width: 2.5; animation: w-laser 1.6s ease-in-out infinite alternate; }
.v-tap .tag { fill: color-mix(in srgb, var(--brand) 25%, transparent); }
.v-tap .wave { opacity: 0; animation: w-wave 1.4s ease-out infinite; }
.v-tap .w2 { animation-delay: .35s; }
.v-busy .ring { stroke-dasharray: 110 60; transform-origin: 60px 40px; animation: w-spin 1s linear infinite; }
.v-done { stroke: var(--ok) !important; }
.v-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: w-draw .45s .1s ease-out forwards; }
.v-warn { stroke: var(--bad) !important; }
@keyframes w-laser { from { transform: translateY(-16px); } to { transform: translateY(16px); } }
@keyframes w-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes w-spin { to { transform: rotate(360deg); } }
@keyframes w-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .wvis * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; } }

/* جعبهٔ اسکن فقط در گامِ ۱؛ دکمهٔ دوربین درشت و اصلی */
.tagwiz:not([data-phase=idle]) .wscan { display: none; }
.tagwiz .wscan [data-scan-toggle] { flex: 1 1 100%; min-height: 58px; font-size: 1.15rem; font-weight: 700; border-radius: 14px; background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.tagwiz .wscan .hint { font-size: .85rem; }
.wreset { margin-top: 10px; color: var(--muted); }
.wmore { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.wmore summary { cursor: pointer; padding: 6px 0; }
.wmore .log { margin: 8px 0 0; }

/* لینکِ روی تگ: ریز و حداکثر دو سطر (۰۷/۰۷) */
.wurl { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: break-all;
  font: .78rem/1.45 ui-monospace, Menlo, Consolas, monospace; opacity: .85; margin-top: 2px; }

/* وقتی دوربین روشن است بالای صفحه جمع می‌شود تا تصویرِ دوربین در صفحه جا شود (۰۷/۰۷، عکسِ مالک) */
h1:has(+ .tagwiz .camwrap:not([hidden])) { display: none; }
.tagwiz:has(.camwrap:not([hidden])) { padding-top: 10px; }
.tagwiz:has(.camwrap:not([hidden])) .wsteps { margin-bottom: 8px; }
.tagwiz:has(.camwrap:not([hidden])) .wsteps li { font-size: .72rem; gap: 2px; }
.tagwiz:has(.camwrap:not([hidden])) .wsteps li b { width: 26px; height: 26px; font-size: .85rem; }
.tagwiz:has(.camwrap:not([hidden])) .wsteps li:not(:last-child)::after { top: 13px; inset-inline-start: calc(50% + 16px); inset-inline-end: calc(-50% + 16px); }
.tagwiz:has(.camwrap:not([hidden])) .wsteps li b { box-shadow: none !important; }
.tagwiz:has(.camwrap:not([hidden])) .wprod { font-size: .85rem; margin-bottom: 6px; }
.tagwiz:has(.camwrap:not([hidden])) .wprod select { min-height: 40px; font-size: .95rem; padding-block: 6px; }
.tagwiz:has(.camwrap:not([hidden])) .tagstate { padding: 8px 12px; margin-bottom: 6px; }
.tagwiz:has(.camwrap:not([hidden])) .wvis { display: none; }
.tagwiz:has(.camwrap:not([hidden])) .tagstate .big { font-size: 1.05rem; margin: 0; }
.tagwiz:has(.camwrap:not([hidden])) .tagstate .hint { display: none; }
.tagwiz:has(.camwrap:not([hidden])) .camwrap { margin-top: 4px; }
