/* ═══════════════════════════════════════════════════════════════════════
   📱 داشبورد اصلیِ نقره روی گوشی، iOS 27 (۲۴ نوامبر ۲۰۲۶، ماکتِ «آرام‌تر» p8 که علیرضا گفت «آره، بساز»)
   ═══════════════════════════════════════════════════════════════════════
   فقط زیرِ ۶۴۱px و فقط وقتی .gp-dash روی صفحه است. دسکتاپ و تبلت دست نمی‌خورند.
   سلکتورها «html:root body …» با !important چون gta-taste.css بعد از CSSِ اسکوپ‌دارِ صفحه می‌آید و هم‌وزن می‌بَرد.
   ماکت: Desktop\claude\mockups\silver-dash-apple\phone\p8 (باز) و p7 (بسته). */

/* تکه‌های فقط-گوشی بالای ۶۴۰ پنهان */
@media (min-width: 641px) {
  html:root body .gp-dash .gp-mopen, html:root body .gp-dash .gp-mcap, html:root body .gp-dash .gp-gst, html:root body .gp-mi-ph { display: none !important; }
}
/* تبلت (۶۴۱ تا ۱۱۹۹): «تراز (خرید − فروش)» و زیرخطِ «کسری، خرید − فروش» فرمول را دوبار می‌گفتند ⇒ پرانتزِ عنوان پنهان */
@media (min-width: 641px) and (max-width: 1199px) {
  html:root body .gp-dash .gp-lt:has(.gp-balsub) .gp-balph { display: none !important; }
}

@media (max-width: 640px) {
  html:root body:has(.gp-dash) { --gpm-bg: #f2f2f7; --gpm-card: #fff; --gpm-l: #000; --gpm-l2: rgba(60, 60, 67, .6); --gpm-l3: rgba(60, 60, 67, .3); --gpm-hl: rgba(60, 60, 67, .18);
    --gpm-sell: #1f8a3b; --gpm-buy: #c76a00; --gpm-brand: #387a4c; --gpm-red: #ff3b30; --gpm-seg: rgba(118, 118, 128, .12); --gpm-thumb: #fff; } /* brand-check-ignore: رنگ‌های سیستمیِ iOS و سبز/نارنجیِ فروش/خرید از ماکتِ تأییدشده */
  html.gta-dark:root body:has(.gp-dash) { --gpm-bg: #2c2c2e; --gpm-card: #3a3a3c; --gpm-l: #fff; --gpm-l2: rgba(235, 235, 245, .6); --gpm-l3: rgba(235, 235, 245, .3); --gpm-hl: rgba(84, 84, 88, .6);
    --gpm-sell: #30d158; --gpm-buy: #ff9230; --gpm-brand: #4f9a66; --gpm-red: #ff453a; --gpm-seg: rgba(118, 118, 128, .24); --gpm-thumb: #636366; } /* brand-check-ignore: رنگ‌های سیستمیِ iOS در شب */
  html:root body:has(.gp-dash) .mud-main-content, html:root body:has(.gp-dash) .mud-layout { background: var(--gpm-bg) !important; }
  html:root body .gp-dash { display: flex !important; flex-direction: column; gap: 0 !important; padding: 0 4px 120px !important; margin: 0 !important; }
  html:root body .gp-dash > * { margin: 0 !important; }

  /* نوارِ بخش: جستجو و «⋯» صفحه به‌جای «همه»، دایره‌ی خاکستریِ تخت */
  html:root body .gta-stitle .gta-ss-tool { background: var(--gpm-seg) !important; box-shadow: none !important; color: var(--gpm-l) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:root body .gta-stitle .gta-ss-tool svg { width: 20px; height: 20px; stroke-width: 2; }
  html:root body .gta-stitle .gta-ss-tool circle[r="1.2"] { fill: currentColor; }

  /* سرِ صفحه: قرصِ بازار و نوارِ ابزار رفتند داخلِ «⋯» */
  html:root body .gp-dash .gp-head { display: block !important; padding: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
  html:root body .gp-dash .gp-head > .gp-mk, html:root body .gp-dash .gp-head > .gp-head-act { display: none !important; }

  /* بازارِ باز: یک خطِ کوچکِ خاکستری با نقطه‌ی سبز */
  html:root body .gp-dash .gp-mopen { display: flex; align-items: center; gap: 8px; height: 32px; margin: 10px 16px 0 !important; font-size: 14px; color: var(--gpm-l2); }
  html:root body .gp-dash .gp-mopen i { width: 8px; height: 8px; border-radius: 50%; background: #34c759; flex: none; } /* brand-check-ignore: سبزِ سیستمیِ iOS برای «باز» */

  /* کارتِ بازکردنِ بازار: وضعیت در خطِ اول، برچسب | عدد، دکمه‌ی پهن */
  html:root body .gp-dash .gp-gate { display: grid !important; grid-template-columns: 1fr 160px; grid-template-areas: "st st" "lb in" "go go" !important; align-items: center; column-gap: 12px;
    margin-top: 12px !important; padding: 4px 16px 16px !important; background: var(--gpm-card) !important; border-radius: 12px !important; border: 0 !important; box-shadow: none !important; }
  html:root body .gp-dash .gp-gst { grid-area: st; display: flex; align-items: center; gap: 8px; height: 34px; font-size: 14px; color: var(--gpm-l2); }
  html:root body .gp-dash .gp-gst i { width: 8px; height: 8px; border-radius: 50%; background: var(--gpm-red); flex: none; }
  html:root body .gp-dash .gp-gst b { font-weight: 500; color: var(--gpm-l); }
  html:root body .gp-dash .gp-gate-t { display: contents !important; }
  html:root body .gp-dash .gp-gate-t b { grid-area: lb; font-size: 17px; font-weight: 400; color: var(--gpm-l); height: 52px; display: flex; align-items: center; }
  html:root body .gp-dash .gp-gate-t small { display: none !important; }
  html:root body .gp-dash .gp-gate-in { grid-area: in; width: 100% !important; height: 36px !important; border-radius: 10px !important; border: 0 !important; background: var(--gpm-bg) !important;
    font-size: 17px !important; padding: 0 12px !important; color: var(--gpm-l) !important; box-shadow: none !important; text-align: left; -moz-appearance: textfield; appearance: textfield; }
  html:root body .gp-dash .gp-gate-in::placeholder { color: var(--gpm-l3) !important; opacity: 1; }
  html:root body .gp-dash .gp-gate-in::-webkit-inner-spin-button { -webkit-appearance: none; }
  html:root body .gp-dash .gp-gate-go { grid-area: go; width: 100% !important; height: 50px !important; border-radius: 25px !important; border: 0 !important; margin-top: 4px;
    background: var(--gpm-brand) !important; color: #fff !important; font-size: 17px !important; font-weight: 600 !important; box-shadow: none !important; } /* weight-ok: تنها دکمه‌ی اصلیِ صفحه */

  /* «منتظر تو» = یک گروهِ سفید، عدد خاکستری آخرِ ردیف */
  html:root body .gp-dash .gp-mcap { font-size: 13px; line-height: 18px; color: var(--gpm-l2); padding: 0 16px; margin: 20px 0 7px !important; }
  html:root body .gp-dash .gp-mwait { background: var(--gpm-card); border-radius: 12px; overflow: hidden; }
  html:root body .gp-dash .gp-mwait:not(:has(.gp-malert)) { display: none; }
  html:root body .gp-dash .gp-mwait .gp-malert { display: flex !important; align-items: center; gap: 12px; width: 100% !important; height: 52px !important; min-height: 0 !important; padding: 0 16px !important;
    background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; position: relative; color: var(--gpm-l) !important; }
  html:root body .gp-dash .gp-mwait .gp-malert + .gp-malert::before { content: ""; position: absolute; top: 0; right: 58px; left: 0; height: .5px; background: var(--gpm-hl); }
  html:root body .gp-dash .gp-mwait .gp-sq { width: 30px !important; height: 30px !important; border-radius: 8px !important; flex: none; }
  html:root body .gp-dash .gp-mwait .gp-malert-t { flex: 1; display: flex !important; justify-content: space-between; align-items: center; font-size: 17px !important; font-weight: 400 !important; color: var(--gpm-l) !important; }
  html:root body .gp-dash .gp-mwait .gp-malert-t small { font-size: 13px; color: var(--gpm-l2); }
  html:root body .gp-dash .gp-mwait .gp-malert-t b { font-size: 17px; font-weight: 400; color: var(--gpm-l2); }
  html:root body .gp-dash .gp-mwait .gp-chev { width: 16px !important; height: 16px !important; color: var(--gpm-l3) !important; flex: none; }

  /* «قیمت‌ها | معاملات» = segmentedِ iOS، بی‌شمارش */
  html:root body .gp-dash .gp-mseg { height: 32px !important; padding: 2px !important; border-radius: 16px !important; background: var(--gpm-seg) !important; margin-top: 24px !important; border: 0 !important; box-shadow: none !important; }
  html:root body .gp-dash .gp-mseg > button { height: 28px !important; border-radius: 14px !important; font-size: 14px !important; color: var(--gpm-l) !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
  html:root body .gp-dash .gp-mseg > button.is-on { background: var(--gpm-thumb) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12) !important; font-weight: 600 !important; } /* weight-ok: بخشِ انتخاب‌شده */
  html:root body .gp-dash .gp-mseg > button span { display: none !important; }

  /* فهرستِ قیمت: زمینه‌ی خاکستری، هر گروه کارتِ سفیدِ خودش */
  html:root body .gp-dash .gp-board, html:root body .gp-dash .gp-pricing { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; }
  /* «تازه نشده»: یک خطِ آرام؛ بازارِ بسته ⇒ تکراری، پنهان */
  html:root body .gp-dash.gp-dash-closed .gp-stalebar { display: none !important; }
  html:root body .gp-dash .gp-stalebar { display: flex !important; align-items: center; gap: 8px; min-height: 36px; margin: 8px 0 0 !important; padding: 0 16px !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  html:root body .gp-dash .gp-stalebar .gp-dot { width: 6px !important; height: 6px !important; background: var(--gpm-l2) !important; box-shadow: none !important; opacity: .6; flex: none; }
  html:root body .gp-dash .gp-stalebar-t { flex: 1; font-size: 13px !important; line-height: 18px; color: var(--gpm-l2) !important; }
  html:root body .gp-dash .gp-stalebar-btn { background: none !important; padding: 0 !important; height: 36px !important; font-size: 15px !important; font-weight: 400 !important; color: var(--gpm-brand) !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
  /* سرستون: فقط «فروش | خرید» کم‌رنگ؛ جستجو بالا رفت، فیلتر داخلِ «⋯» (جز وقتی غیرفعال‌ها دیده می‌شوند = راهِ برگشت) */
  html:root body .gp-dash .gp-mcolh { display: grid !important; grid-template-columns: minmax(0, 1fr) 80px 80px; column-gap: 8px; align-items: center; height: 28px; margin-top: 4px !important; padding: 0 16px !important;
    background: var(--gpm-bg) !important; border: 0 !important; }
  html:root body .gp-dash .gp-mcolh-r { display: flex !important; gap: 8px; align-items: center; }
  html:root body .gp-dash .gp-mfil { display: none !important; }
  html:root body .gp-dash .gp-mfil.is-inact { display: inline-flex !important; align-items: center; white-space: nowrap; height: 28px !important; border-radius: 14px !important; background: var(--gpm-seg) !important; color: var(--gpm-l2) !important; font-size: 13px !important; border: 0 !important; padding: 0 12px !important; }
  html:root body:has(.gta-ss-tool) .gp-dash .gp-msrch { display: none !important; }
  html:root body .gp-dash .gp-msrch { width: 28px !important; height: 28px !important; border-radius: 50% !important; background: var(--gpm-seg) !important; border: 0 !important; color: var(--gpm-l2) !important; }
  html:root body .gp-dash .gp-mcolh .s, html:root body .gp-dash .gp-mcolh .b { font-size: 13px !important; font-weight: 400 !important; color: var(--gpm-l2) !important; text-align: left !important; padding-left: 0 !important; }
  html:root body .gp-dash .gp-mlist { padding: 0 !important; background: none !important; }
  /* سرگروه مثلِ iOS: متنِ خاکستریِ کوچک، بی‌نقطه‌ی رنگی */
  html:root body .gp-dash .gp-mgrp { display: flex !important; align-items: center; height: 28px; margin: 22px 0 6px !important; padding: 0 16px !important; background: none !important; border: 0 !important; border-radius: 0 !important;
    font-size: 13px !important; font-weight: 400 !important; color: var(--gpm-l2) !important; }
  html:root body .gp-dash .gp-mgrp:first-child { margin-top: 6px !important; }
  html:root body .gp-dash .gp-mgrp .gp-gq { display: none !important; }
  /* ردیف‌ها: نام ۱۵، عدد ۱۴، فروش سبز / خرید نارنجی، خطِ نازکِ iOS */
  html:root body .gp-dash .gp-mrow { display: grid !important; grid-template-columns: minmax(0, 1fr) 80px 80px; column-gap: 8px; align-items: center; height: 52px !important; padding: 0 16px !important; margin: 0 !important;
    background: var(--gpm-card) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; position: relative; }
  html:root body .gp-dash .gp-mgrp + .gp-mrow { border-radius: 12px 12px 0 0 !important; }
  html:root body .gp-dash .gp-mrow:has(+ .gp-mgrp), html:root body .gp-dash .gp-mrow:has(+ .gp-mfoot), html:root body .gp-dash .gp-mrow:last-child { border-radius: 0 0 12px 12px !important; }
  html:root body .gp-dash .gp-mgrp + .gp-mrow:has(+ .gp-mgrp), html:root body .gp-dash .gp-mgrp + .gp-mrow:has(+ .gp-mfoot) { border-radius: 12px !important; }
  html:root body .gp-dash .gp-mrow + .gp-mrow::before { content: ""; position: absolute; top: 0; right: 16px; left: 0; height: .5px; border: 0 !important; background: var(--gpm-hl); }
  html:root body .gp-dash .gp-mnm { height: 52px !important; padding: 0 !important; background: none !important; border: 0 !important; text-align: right !important; min-width: 0; }
  html:root body .gp-dash .gp-mnm b { font-size: 15px !important; font-weight: 400 !important; color: var(--gpm-l) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex !important; align-items: center; gap: 6px; }
  html:root body .gp-dash .gp-mnm .gp-dot { width: 6px !important; height: 6px !important; order: -1; flex: none; margin: 0 !important; }
  html:root body .gp-dash.gp-dash-closed .gp-mnm .gp-dot { display: none !important; }
  html:root body .gp-dash .gp-mrow .gp-pp { height: 52px !important; width: auto !important; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    font-size: 14px !important; text-align: left !important; justify-content: flex-start !important; font-variant-numeric: tabular-nums; }
  html:root body .gp-dash .gp-mrow .gp-pp, html:root body .gp-dash .gp-mrow .gp-pp * { text-decoration: none !important; }
  html:root body .gp-dash .gp-mrow .gp-pp.s { color: var(--gpm-sell) !important; }
  html:root body .gp-dash .gp-mrow .gp-pp.b { color: var(--gpm-buy) !important; }
  html:root body .gp-dash .gp-mrow .gp-pp.off { color: var(--gpm-l2) !important; }
  html:root body .gp-dash .gp-mrow .gp-pp::before, html:root body .gp-dash .gp-mrow .gp-pp::after { display: none !important; } /* واحد در پانویس: «تومان، اونس به دلار» */
  /* «هر گرم» زیرِ ساچمه (۲۸ نوامبر ۲۰۲۶): ردیفِ بچه، ۴۴، بی خطِ بالا؛ برچسبِ «مثقال» کنارِ ساچمه */
  html:root body .gp-dash .gp-mrow.gp-msub, html:root body .gp-dash .gp-mrow.gp-msub .gp-mnm, html:root body .gp-dash .gp-mrow.gp-msub .gp-pp { height: 44px !important; }
  html:root body .gp-dash .gp-mrow.gp-msub::before { display: none !important; }
  html:root body .gp-dash .gp-mrow.gp-msub .gp-mnm b { font-size: 14px !important; color: var(--gpm-l2) !important; padding-inline-start: 12px; }
  html:root body .gp-dash .gp-mrow.gp-msub .gp-pp { font-size: 13px !important; font-weight: 400 !important; opacity: .92; } /* یک پله ریزتر از عددِ مثقالی (۱۴) تا بچه دیده شود */
  html:root body .gp-dash .gp-mnm .gp-mtag { flex: none; font-size: 12px; font-weight: 400; color: var(--gpm-l2); }
  html:root body .gp-dash .gp-mfoot { font-size: 13px !important; color: var(--gpm-l2) !important; padding: 8px 16px 0 !important; text-align: right; }
}
