/* ===== اوکرو لایت — فقط فاکتورِ فروش. طرحِ «کارتی»: نوارِ سفیدِ بالا، کارت‌ها، نوارِ پایین و دکمه‌ی شناور ===== */
@font-face { font-family: 'Vazirmatn'; src: url('/static/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/static/fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/static/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/static/fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --brand: #2B3EAC;
  --page: #F4F5F7; --surface: #ffffff; --text: #111827; --muted: #6B7280; --line: #E5E7EB; --field: #F4F5F7;
  --ok: #059669; --ok-soft: #ECFDF5; --due: #DC2626; --due-soft: #FEF2F2;
  --brand-ink: var(--brand);
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page: #1a1e2c; --surface: #212739; --text: #ececec; --muted: #aab0c6; --line: #363d59; --field: #1a1e2c;
  --ok: #34d399; --ok-soft: #16302a; --due: #f87171; --due-soft: #3a1f1f; --brand-ink: color-mix(in srgb, var(--brand) 40%, #fff); color-scheme: dark; } }
:root[data-theme="dark"] {
  --page: #1a1e2c; --surface: #212739; --text: #ececec; --muted: #aab0c6; --line: #363d59; --field: #1a1e2c;
  --ok: #34d399; --ok-soft: #16302a; --due: #f87171; --due-soft: #3a1f1f; --brand-ink: color-mix(in srgb, var(--brand) 40%, #fff); color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--page); color: var(--text); font-family: var(--font); font-size: 14px; direction: rtl; -webkit-text-size-adjust: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.app { max-width: 560px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; position: relative; }
.boot { flex: 1; display: grid; place-items: center; min-height: 100vh; }
.num { font-variant-numeric: tabular-nums; }

/* سربرگِ رنگی */
.hero { background: var(--brand); color: #fff; padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 52px; display: flex; flex-direction: column; gap: 4px; }
.hero .r { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hero .biz { font-size: 13px; opacity: .85; font-weight: 700; }
.hero .chip { font-size: 12px; background: rgba(255,255,255,.18); border-radius: 99px; padding: 4px 11px; white-space: nowrap; }
.hero small { font-size: 12.5px; opacity: .8; margin-top: 10px; }
.hero b { font-size: 27px; font-weight: 800; }
.hero b small { font-size: 13px; opacity: .8; font-weight: 500; margin: 0; }
.bar { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; }
.bar .t { flex: 1; min-width: 0; }
.bar .t b { display: block; font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .t small { font-size: 11.5px; color: var(--muted); }
.bar .logo { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.bar .ib { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--text); display: grid; place-items: center; flex: none; }
.ib svg, .nav svg { width: 20px; height: 20px; }

.body { flex: 1; padding: 12px 12px calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.login .hero + .body { margin-top: -38px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.sum2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum2 .card { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.sum2 span { font-size: 12px; color: var(--muted); }
.sum2 b { font-size: 20px; font-weight: 800; }
.sum2 b small { font-size: 12px; font-weight: 500; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.pad { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.search { height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }
.day { font-size: 12px; color: var(--muted); padding: 4px 6px 0; }
.rows > * { display: flex; align-items: center; gap: 10px; padding: 12px; width: 100%; border: 0; background: none; text-align: right; }
.rows > * + * { border-top: 1px solid var(--line); }
.av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; }
.m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m small { font-size: 12px; color: var(--muted); }
.v { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.v b { font-size: 14px; }
.pill { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 9px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.due { background: var(--due-soft); color: var(--due); }
.pill.un { background: var(--field); color: var(--muted); }
.sorts { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.sorts button { height: 30px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; padding: 0 12px; }
.sorts button.on { border-color: var(--brand-ink); color: var(--brand-ink); font-weight: 800; }
.tools { display: flex; gap: 8px; justify-content: center; }
.tb { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--brand-ink); display: grid; place-items: center; }
.tb svg { width: 20px; height: 20px; }
.btn svg { width: 19px; height: 19px; vertical-align: -4px; margin-inline-end: 6px; }
.tb.danger { color: var(--due); }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; font-size: 13.5px; line-height: 1.9; }

/* نوارِ پایین با دکمه‌ی + وسط (کارِ همون صفحه) */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.nav .in { max-width: 560px; margin: 0 auto; height: 62px; display: grid; grid-template-columns: repeat(5, 1fr); }
.nav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--muted); }
.nav button.on { color: var(--brand-ink); font-weight: 800; }
.nav .plus { position: relative; }
.nav .plus i { position: absolute; top: -22px; width: 58px; height: 58px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; border: 5px solid var(--page); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.nav .plus svg { width: 24px; height: 24px; }

/* لودینگِ چهار مربع (همون لودینگِ به‌روزرسانیِ اوکرو، تک‌رنگ به رنگِ متنِ دکمه) */
.ld { display: inline-grid; grid-template-columns: repeat(2, 9px); gap: 3px; perspective: 120px; vertical-align: middle; }
.ld i { width: 9px; height: 9px; border-radius: 3px; background: currentColor; display: block; animation: ldFlip 2.2s cubic-bezier(.5,0,.3,1) infinite; }
.ld i:nth-child(2) { animation-delay: .2s; opacity: .85; } .ld i:nth-child(3) { animation-delay: .6s; opacity: .7; } .ld i:nth-child(4) { animation-delay: .4s; opacity: .55; }
@keyframes ldFlip { 0%, 30%, 100% { transform: rotateY(0); } 15% { transform: rotateY(180deg); } }
.btn[aria-busy], .btn2[aria-busy] { opacity: 1 !important; }

/* فرم‌ها */
.lbl { font-size: 12.5px; color: var(--muted); }
.inp { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); padding: 0 12px; font-size: 15px; outline: none; }
.inp:focus { border-color: var(--brand); }
.inp.ltr { direction: ltr; text-align: left; }
.btn { height: 52px; border-radius: 14px; border: 0; background: var(--brand); color: #fff; font-size: 15.5px; font-weight: 800; width: 100%; }
.btn:disabled { opacity: .55; }
.btn2.danger { color: var(--due); }
.btn2 { height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 700; width: 100%; }
.link { border: 0; background: none; color: var(--brand-ink); font-weight: 700; font-size: 13.5px; padding: 6px 2px; align-self: flex-start; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--field); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { height: 40px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-size: 13.5px; }
.seg button.on { background: var(--surface); color: var(--text); font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.mini { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--field); border-radius: 9px; padding: 2px; gap: 2px; flex: none; }
.mini button { border: 0; background: none; border-radius: 7px; height: 34px; min-width: 44px; font-size: 12.5px; color: var(--muted); }
.mini button.on { background: var(--surface); color: var(--text); font-weight: 800; }
.row2 { display: flex; align-items: center; gap: 8px; }
.row2 .lbl { flex: 1; }
.row2 .inp { width: 140px; height: 42px; }

/* اقلامِ فاکتور */
.ih { display: flex; align-items: center; gap: 8px; }
.chipb { height: 34px; border-radius: 99px; border: 1px solid var(--line); background: var(--field); color: var(--brand-ink); font-weight: 700; font-size: 12.5px; padding: 0 12px; }
.plus1 { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.plus1 svg { width: 18px; height: 18px; }
.its { display: flex; flex-direction: column; gap: 8px; }
.it { display: grid; grid-template-columns: minmax(0, 1fr) 56px 108px 30px; grid-template-areas: "nm q pr x"; gap: 6px; align-items: center; }
.it .nm { grid-area: nm; } .it .q { grid-area: q; text-align: center; } .it .pr { grid-area: pr; } .it .x { grid-area: x; }
.itw { display: flex; flex-direction: column; gap: 6px; }
.it .inp { height: 44px; font-size: 14px; padding: 0 9px; }
.it .x { border: 0; background: none; color: var(--muted); font-size: 22px; height: 44px; }
.picks label { cursor: pointer; }
.picks input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.tot { display: flex; justify-content: space-between; align-items: baseline; }
.tot b { font-size: 20px; font-weight: 800; }
.tot span { color: var(--muted); }
.sug { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sug button { border: 0; background: var(--surface); text-align: right; padding: 11px 12px; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.sug button + button { border-top: 1px solid var(--line); }
.sug small { color: var(--muted); }

/* برگه‌ی پایین (انتخابِ محصول، فرمِ کوچیک) */
.sheet-bg { position: fixed; inset: 0; background: rgba(10,12,20,.45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 82vh; border-radius: 22px 22px 0 0; padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.sheet h3 { margin: 0; font-size: 16px; }

/* نمایشِ فاکتور */
.doc { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.doc .h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc td:last-child { text-align: left; white-space: nowrap; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acts .wide { grid-column: 1 / -1; }

/* تنظیمات */
.colors { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.colors button { aspect-ratio: 1; border-radius: 12px; border: 3px solid transparent; }
.colors button.on { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--surface); }
.up { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.up b { font-size: 15px; }
.up p { margin: 0; font-size: 13px; line-height: 2; color: var(--muted); }
.up a.btn { color: #fff; }
.up ul { margin: 0; padding: 0 18px 0 0; font-size: 13.5px; line-height: 2; }
.sec { font-size: 12.5px; font-weight: 800; color: var(--muted); padding: 6px 6px 0; }

/* ورود */
.login { flex: 1; display: flex; flex-direction: column; }
.login .hero { padding-bottom: 64px; align-items: flex-start; }
.login .hero b { font-size: 26px; margin-top: 8px; }
.login .hero p { margin: 4px 0 0; font-size: 13.5px; opacity: .85; line-height: 1.9; }
.login .body { padding-bottom: 24px; }
.otp { letter-spacing: 8px; text-align: center; direction: ltr; font-size: 22px; font-weight: 800; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(10px); background: #111827; color: #fff; font-size: 13.5px; border-radius: 12px; padding: 10px 16px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 40; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.err { color: var(--due); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .ld i { animation-duration: 4s; } .toast { transition: none; } }

/* حسِ اپ: بدونِ انتخابِ متن و کشیدنِ صفحه، با بازخوردِ لمس */
html, body { overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
input, textarea { -webkit-user-select: text; user-select: text; }
button { transition: transform .08s ease, opacity .08s ease; }
button:active:not(:disabled) { transform: scale(.97); }
.rows > button:active, .nav button:active { transform: none; background: var(--field); }
img { -webkit-user-drag: none; }
.ld.big { grid-template-columns: repeat(2, 13px); gap: 4px; color: var(--brand-ink); }
.ld.big i { width: 13px; height: 13px; border-radius: 4px; }

/* ورود (طرحِ الف) */
.lhead { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: calc(48px + env(safe-area-inset-top, 0px)) 20px 18px; text-align: center; }
.lhead img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 24px rgba(20,30,60,.12); margin-bottom: 8px; }
.lhead b { font-size: 21px; font-weight: 800; }
.lhead p { margin: 0; font-size: 13.5px; color: var(--muted); }
.login .body { padding-bottom: 24px; }

/* دسته‌بندی‌ها */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chips button { flex: none; height: 36px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; padding: 0 13px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.chips button svg { width: 16px; height: 16px; color: var(--brand-ink); }
.chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.chips button.on svg { color: #fff; }
.chips .add { border-style: dashed; color: var(--brand-ink); font-weight: 700; }
.icgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.icgrid button { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--text); display: grid; place-items: center; }
.icgrid button svg { width: 22px; height: 22px; }
.icgrid button.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.inp.ta { height: auto; padding: 10px 12px; resize: none; line-height: 1.8; font: inherit; font-size: 15px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.tick { color: var(--brand-ink); display: grid; place-items: center; }
.tick svg { width: 20px; height: 20px; }

.more { display: grid; place-items: center; padding: 18px 0 8px; color: var(--brand-ink); }

/* اسمِ بلندِ کالا: یک‌ردیفه، وقتی روش نیستی آروم حرکت می‌کنه (مثلِ اوکرو) */
.nmw { grid-area: nm; position: relative; min-width: 0; display: block; }
.nmw .inp { width: 100%; }
.nmw .mq { display: none; position: absolute; inset: 1px 10px; overflow: hidden; pointer-events: none; align-items: center; white-space: nowrap; font-size: 14px; }
.nmw.long:not(:focus-within) .mq { display: flex; }
.nmw.long:not(:focus-within) .inp { color: transparent; }
.nmw .mqt { display: inline-flex; gap: 36px; white-space: nowrap; will-change: transform; }
.nmw .mqt b { font-weight: inherit; }
.nmw .mqt.rtl { animation: mqRtl var(--mqt, 8s) linear 0.8s infinite; }
.nmw .mqt.ltr { animation: mqLtr var(--mqt, 8s) linear 0.8s infinite; }
@keyframes mqRtl { from { transform: translateX(0); } to { transform: translateX(var(--mqd, 0px)); } }
@keyframes mqLtr { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--mqd, 0px))); } }
@media (prefers-reduced-motion: reduce) { .nmw .mqt { animation: none !important; } }

/* سوییچِ تیک‌دار (مثلِ اپ) */
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: right .15s; }
.switch:checked { background: var(--brand); }
.switch:checked::after { right: 21px; }
.switch:disabled { opacity: .45; }
.sw-row { display: flex; align-items: center; gap: 12px; padding-top: 4px; cursor: pointer; }
.sw-row .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sw-row .tx b { font-size: 14px; }
.sw-row .tx small { font-size: 12px; color: var(--muted); line-height: 1.7; }
.dnotes { white-space: pre-line; font-size: 13px; color: var(--muted); line-height: 1.9; border-top: 1px dashed var(--line); padding-top: 8px; }

/* دسته‌ها: ردیفِ دوم برای زیرشاخه‌ها */
.chips.sub { margin-top: -4px; }
.chips.sub button { height: 32px; font-size: 12.5px; background: var(--field); }
.chips.sub button.on { background: var(--brand); }
.chips .caret svg { width: 13px; height: 13px; margin-inline-start: -2px; opacity: .7; }
#pkCats { display: flex; flex-direction: column; gap: 8px; }
#pkCats .chips { margin: 0; padding: 0; }

/* فرمِ کامل (محصول/مشتریِ جدید) */
.body.form { gap: 12px; padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
.fcard { padding: 4px 14px; display: flex; flex-direction: column; }
.fld { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border: 0; background: none; width: 100%; text-align: right; }
.fcard .fld + .fld { border-top: 1px solid var(--line); }
.fld > span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.fld .inp { background: transparent; border: 0; height: 34px; padding: 0; font-size: 16px; border-radius: 0; }
.fld .inp:focus { border: 0; outline: 0; }
.fld .inp.ta { padding: 0; min-height: 60px; }
.fld.pick { flex-direction: row; align-items: center; }
.fld.pick > span { flex: none; width: 90px; }
.fld.pick b { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.fld.pick b svg { width: 18px; height: 18px; color: var(--brand-ink); }
.fld.pick b i { font-style: normal; color: var(--muted); }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.savebar .btn { max-width: 528px; margin: 0 auto; display: block; }
.chev.fwd svg { transform: scaleX(-1); }

/* تنظیمات (طرحِ الف): عنوانِ بزرگ، گروه‌های سفید، آیکونِ مربعِ رنگی، مقدار و فلش */
.bigt { padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 4px; background: var(--page); }
.bigt b { font-size: 28px; font-weight: 800; }
.body.set { gap: 0; padding-top: 0; }
.set .hd, .sheet .hd { font-size: 12.5px; color: var(--muted); padding: 18px 8px 6px; }
.grp { background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.gr { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 14px; width: 100%; border: 0; background: none; text-align: right; color: var(--text); cursor: pointer; }
.gr + .gr { border-top: 1px solid var(--line); }
.gr:active { background: var(--field); transform: none !important; }
.gr.center { justify-content: center; }
.sq { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.sq svg { width: 17px; height: 17px; }
.sq.round { border-radius: 50%; font-weight: 800; font-size: 14px; }
.sq.okro { background: var(--field); border: 1px solid var(--line); grid-template-columns: repeat(2, 6px); gap: 2px; display: grid; place-content: center; }
.sq.okro i { width: 6px; height: 6px; border-radius: 2px; display: block; }
.sq.okro i:nth-child(1) { background: #6E9C24; } .sq.okro i:nth-child(2) { background: #D9783A; } .sq.okro i:nth-child(3) { background: #2F86C9; } .sq.okro i:nth-child(4) { background: #C24C8C; }
.gr .lb { flex: 1; min-width: 0; font-size: 14.5px; display: flex; flex-direction: column; gap: 1px; }
.gr .lb small { font-size: 12px; color: var(--muted); }
.gr .vl { font-size: 13px; color: var(--muted); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr .dot { width: 20px; height: 20px; border-radius: 6px; display: block; }
.gr .chev svg { width: 16px; height: 16px; }
.tick { color: var(--brand-ink); display: grid; place-items: center; }
.tick svg { width: 20px; height: 20px; }
.sheet .grp { border: 0; background: var(--field); }
.plist { display: flex; flex-direction: column; background: var(--field); border-radius: 14px; overflow: hidden; }
.plist .it { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px; border: 0; background: none; text-align: right; width: 100%; }
.plist .it + .it { border-top: 1px solid var(--line); }
.plist .it.back { color: var(--brand-ink); }
.plist .it.back svg { width: 18px; height: 18px; }
.plist .ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--brand-ink); flex: none; }
.plist .ci svg { width: 19px; height: 19px; }
.plist .tx { flex: 1; display: flex; flex-direction: column; }
.plist .tx b { font-size: 14.5px; font-weight: 500; }
.plist .tx small { font-size: 12px; color: var(--muted); }
.btn2 svg { width: 18px; height: 18px; vertical-align: -4px; }
.chev { color: var(--muted); display: grid; place-items: center; flex: none; }
.chev svg { width: 16px; height: 16px; }

/* ورود و شروع (طرحِ الف) */
.inp.big { height: 52px; font-size: 18px; }
.login .fld .inp.big { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 52px; }
.bar.plain { background: transparent; border: 0; }
.otph { padding: 12px 22px 18px; display: flex; flex-direction: column; gap: 6px; }
.otph b { font-size: 22px; font-weight: 800; }
.otph p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.otph .num { color: var(--text); font-weight: 700; }
.inp.otp { height: 60px; font-size: 26px; letter-spacing: 12px; background: var(--surface); }
.otpr { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 0 4px; }
.otpr .link { padding: 0; align-self: center; }
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps i { height: 4px; flex: 1; border-radius: 99px; background: var(--line); display: block; }
.steps i.on { background: var(--brand); }
.sw.big { padding: 4px 6px 8px; gap: 12px; }
.sw.big button { width: 36px; height: 36px; }
.wel { background: var(--brand); color: #fff; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.wel b { font-size: 16px; font-weight: 800; }
.wel p { margin: 0; font-size: 13px; opacity: .85; line-height: 1.9; }
.wel button { align-self: flex-start; margin-top: 6px; height: 42px; border-radius: 12px; border: 0; background: #fff; color: var(--brand); padding: 0 16px; font-size: 13.5px; font-weight: 800; }
.gr .ck { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; flex: none; box-sizing: border-box; }
.gr.done .ck { border: 0; background: var(--ok-soft); color: var(--ok); }
.gr.done .ck svg { width: 16px; height: 16px; }
.gr.done .lb { color: var(--muted); text-decoration: line-through; }
.gr:disabled { cursor: default; opacity: 1; }
.sw { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sw::-webkit-scrollbar { display: none; }
.sw button { width: 26px; height: 26px; border-radius: 50%; border: 0; flex: none; }
.sw button.on { outline: 2px solid var(--text); outline-offset: 2px; }

/* کدِ ۴ رقمی: چهار خونه؛ یه فیلدِ نامرئی روشون تایپ رو می‌گیره */
.otpb { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; width: 100%; }
.otpb input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 16px; z-index: 1; }
.otpb i { height: 62px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 26px; font-weight: 800; }
.otpb:focus-within i.cur, .otpb:focus-within i:first-of-type:empty { border-color: var(--brand-ink); border-width: 2px; }

/* صفحه‌ی «نصب» (تو مرورگر) و راهنمای افزودن به صفحه‌ی اصلی */
.lhead img { box-shadow: 0 8px 24px rgba(20,30,60,.10); }
.gate .gcard { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.gate .g-lead { margin: 0 0 4px; font-size: 14px; line-height: 1.9; text-align: center; }
.gate .btn, .gate .btn2 { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.gate .g-qr { width: 180px; height: 180px; margin: 6px auto 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.gate .g-qr svg { display: block; width: 100%; height: 100%; }
.gate .g-url { text-align: center; font-weight: 700; font-size: 15px; }
.g-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: g; }
.g-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.8; background: var(--field); border-radius: 14px; padding: 10px 12px; }
.g-steps .g-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: #0A84FF; font-size: 12.5px; }
.g-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.9; }
