/* ═══════════════════════════════════════════════════════════════════
   ☎️ سفارشِ تلفنی + به حسابداری + پرونده‌ی مشتری — نقره‌ی خام (۳ اکتبر ۲۰۲۶).
   برگردانِ ماکتِ تأییدشده (silvertrade-redesign/mock-phone/phone.css) به توکن‌های سامانه.
   فقط توکن (--gta-*، --gps-*) ⇒ شب خودکار. سراسری (نه razor.css) چون سه صفحه و GpPhoneHub از آن می‌خوانند.
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --gpo-sell-line: color-mix(in srgb, var(--gta-s-green) 45%, transparent);
    --gpo-buy-line: color-mix(in srgb, var(--gta-s-blue) 45%, transparent);
    --gpo-gold-soft: color-mix(in srgb, var(--gta-gold) 16%, var(--gta-card));
    --gpo-warn-soft: color-mix(in srgb, var(--gta-s-orange) 16%, var(--gta-card));
}

/* لایه‌ی محتوای صفحه (z-index:1) پنجره را زیرِ نوارِ بالا/پایین گیر ندازد — همان رفعِ gps-sheet */
.mud-main-content > *:has(.gpo-dlg, .gpo-pnl) { z-index: auto; }

/* ── دکمه‌ی کپسولیِ سرِ صفحه + «به حسابداری [n]» ── */
.gpo-open { height: 48px; border: 0; border-radius: var(--gta-r-pill); padding: 0 20px 0 18px; background: var(--gta-accent); color: var(--gta-on-accent, #fff);
    font: inherit; font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--gta-shadow-card); cursor: pointer;
    white-space: nowrap; transition: transform .15s var(--gta-ease-spring); flex: none; }
.gpo-open .mud-icon-root { font-size: 18px; }
.gpo-open:active { transform: scale(.96); }
.gpo-open:focus-visible, .gpo-accbulk:focus-visible { outline: 0; box-shadow: var(--gta-focus); }
.gpo-open kbd { font: inherit; font-size: 11px; font-weight: 500; opacity: .7; background: color-mix(in srgb, #fff 18%, transparent); border-radius: var(--gta-r-pill); padding: 0 7px; }
.gpo-accbulk { height: 48px; border: 0; border-radius: var(--gta-r-pill); padding: 0 16px; background: var(--gta-card); box-shadow: var(--gta-shadow-card); font: inherit;
    font-size: 14px; font-weight: 600; color: var(--gta-gold-ink); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; flex: none; }
.gpo-accbulk .mud-icon-root { font-size: 17px; }
.gpo-accbulk .gpo-n { min-width: 22px; height: 22px; border-radius: var(--gta-r-pill); background: var(--gta-gold); color: #fff; font-size: 12px; display: grid; place-items: center;
    padding: 0 6px; font-variant-numeric: tabular-nums; }
.gpo-accbulk:disabled { opacity: .5; cursor: default; }

/* ── کپسولِ حسابداری روی ردیفِ معامله ── */
.gpo-accb { height: 28px; border: 0; border-radius: var(--gta-r-pill); padding: 0 11px 0 10px; font: inherit; font-size: 12.5px; font-weight: 600; display: inline-flex;
    align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; flex: none;
    background: color-mix(in srgb, var(--gta-gold) 16%, transparent); color: var(--gta-gold-ink); transition: transform .15s var(--gta-ease-spring); }
.gpo-accb .mud-icon-root { font-size: 15px; }
.gpo-accb:hover { background: color-mix(in srgb, var(--gta-gold) 26%, transparent); }
.gpo-accb:active { transform: scale(.94); }
.gpo-accb:disabled { opacity: .5; cursor: default; }
.gpo-accb:focus-visible { outline: 0; box-shadow: var(--gta-focus); }
.gpo-accs { height: 28px; border-radius: var(--gta-r-pill); padding: 0 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    font-variant-numeric: tabular-nums; flex: none; }
.gpo-accs .mud-icon-root { font-size: 14px; }
.gpo-accs.is-q { color: var(--gta-text-2); background: var(--gps-seg); }
.gpo-accs.is-reg { color: color-mix(in srgb, var(--gta-s-green) 60%, var(--gta-text)); background: color-mix(in srgb, var(--gta-s-green) 12%, transparent); }
.gpo-accs.is-ret { color: var(--gta-s-red); background: color-mix(in srgb, var(--gta-s-red) 12%, transparent); cursor: help; }
.gpo-accm { display: block; font-size: 11px; margin-top: 2px; white-space: nowrap; }
.gpo-accm.is-q { color: var(--gta-text-2); } .gpo-accm.is-reg { color: color-mix(in srgb, var(--gta-s-green) 60%, var(--gta-text)); }
.gpo-accm.is-no { color: var(--gta-gold-ink); } .gpo-accm.is-ret { color: var(--gta-s-red); }

/* ── پرده ── */
.gpo-scrim { position: fixed; inset: 0; z-index: 2062; background: color-mix(in srgb, black 30%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    animation: gpo-fade .25s var(--gta-ease); }
.gpo-scrim.is-pnl { z-index: 2066; }
@keyframes gpo-fade { from { opacity: 0; } }

/* ── پنجره‌ی سفارش ── */
.gpo-dlg { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
    display: flex; flex-direction: column; background: var(--gta-card); color: var(--gta-text); border-radius: 28px; box-shadow: var(--gta-shadow-float); z-index: 2064;
    animation: gpo-in .38s var(--gta-ease); }
@keyframes gpo-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.gpo-grab { display: none; }
.gpo-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.gpo-head h3 { font-size: 18px; font-weight: 700; margin: 0; flex: 1; min-width: 0; }
.gpo-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--gta-card-2); color: var(--gta-text-2); display: grid; place-items: center; cursor: pointer;
    flex: none; padding: 0; }
.gpo-x .mud-icon-root { font-size: 19px; }
.gpo-x:focus-visible { outline: 0; box-shadow: var(--gta-focus); }
.gpo-dots { display: flex; gap: 7px; margin-inline-end: 6px; }
.gpo-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--gta-sep); transition: all .3s var(--gta-ease-spring); }
.gpo-dots span.is-done { background: var(--gta-accent); }
.gpo-dots span.is-now { background: var(--gta-gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gta-gold) 22%, transparent); width: 22px; border-radius: var(--gta-r-pill); }
.gpo-crumbs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 18px 2px; }
.gpo-crumb { height: 30px; border: 0; border-radius: var(--gta-r-pill); background: var(--gta-card-2); color: var(--gta-text); font: inherit; font-size: 13px; display: inline-flex;
    align-items: center; gap: 6px; padding: 0 12px 0 10px; cursor: pointer; max-width: 100%; min-width: 0; }
.gpo-crumb span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.gpo-crumb .mud-icon-root { color: var(--gta-text-3); font-size: 16px; flex: none; }
.gpo-body { padding: 10px 18px 4px; overflow: auto; min-height: 0; overscroll-behavior: contain; }
.gpo-q, .gpo-field { display: flex; align-items: center; gap: 8px; height: 48px; border-radius: var(--gta-r-pill); background: var(--gta-card-2); padding: 0 16px; color: var(--gta-text-3); }
.gpo-q input, .gpo-field input { flex: 1; border: 0; background: none; font: inherit; font-size: 15.5px; color: var(--gta-text); outline: 0; min-width: 0; }
.gpo-q:focus-within, .gpo-field:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gta-accent) 45%, transparent); }
.gpo-q .mud-icon-root, .gpo-field .mud-icon-root { font-size: 19px; }
.gpo-field + .gpo-field { margin-top: 8px; }
.gpo-ltr { direction: ltr; text-align: right; }
.gpo-lbl { font-size: 12px; color: var(--gta-text-3); margin: 14px 6px 4px; }
.gpo-list { display: flex; flex-direction: column; }
.gpo-c { display: flex; align-items: center; gap: 10px; min-height: 50px; border: 0; background: none; border-radius: 14px; padding: 0 10px; font: inherit; font-size: 14.5px;
    text-align: start; cursor: pointer; color: var(--gta-text); flex: none; }
.gpo-c:hover { background: color-mix(in srgb, var(--gta-accent) 5%, transparent); }
.gpo-c.is-on { background: var(--gta-accent-soft); }
.gpo-lt { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.gpo-lt small { font-size: 12px; color: var(--gta-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpo-c.is-add .gpo-lt { color: var(--gta-accent-ink); }
.gpo-av { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.gpo-av.is-plus { background: var(--gta-card-2); color: var(--gta-accent-ink); font-size: 18px; }
.gpo-mob { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; text-align: right; }
.gpo-sk { display: block; height: 44px; border-radius: var(--gta-r-ctl); margin: 6px 0; }
.gpo-sk.is-big { height: 64px; }
.gpo-txt { border: 0; background: none; font: inherit; font-size: 13px; color: var(--gta-text-2); cursor: pointer; padding: 10px 4px 0; }
.gpo-txt:hover { color: var(--gta-text); }
.gpo-txt.is-acc { display: block; width: 100%; color: var(--gta-accent-ink); font-size: 13.5px; padding-top: 14px; }
.gpo-txt.is-red { display: block; width: 100%; color: var(--gta-s-red); padding-top: 8px; }
.gpo-txt:disabled { opacity: .5; cursor: default; }

/* قدمِ ۲ */
.gpo-side { display: grid; grid-template-columns: 1fr 1fr; background: var(--gta-card-2); border-radius: var(--gta-r-pill); padding: 4px; gap: 4px; }
.gpo-side button { height: 42px; border: 0; border-radius: var(--gta-r-pill); background: none; font: inherit; font-size: 14.5px; color: var(--gta-text-2); cursor: pointer;
    transition: background .25s var(--gta-ease); }
.gpo-side button.is-on { font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.gpo-side button.is-on.is-s { background: var(--gps-sell-bg); color: var(--gps-sell-ink); }
.gpo-side button.is-on.is-b { background: var(--gps-buy-bg); color: var(--gps-buy-ink); }
.gpo-side button:focus-visible, .gpo-it:focus-visible, .gpo-c:focus-visible, .gpo-crumb:focus-visible { outline: 0; box-shadow: var(--gta-focus); }
.gpo-items { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 4px; min-width: 0; }
.gpo-ig { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.gpo-ign { width: 48px; font-size: 12px; color: var(--gta-gold-ink); flex: none; }
.gpo-it { height: 46px; border: 0; border-radius: 14px; background: var(--gta-card-2); font: inherit; padding: 0 12px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; cursor: pointer; line-height: 1.25; min-width: 74px; color: var(--gta-text); }
.gpo-it b { font-size: 13px; font-weight: 500; white-space: nowrap; }
.gpo-it .gpo-num { font-size: 11.5px; color: var(--gta-text-3); }
.gpo-it.is-on.is-s { background: var(--gps-sell-bg); color: var(--gps-sell-ink); box-shadow: 0 0 0 1.5px var(--gpo-sell-line); }
.gpo-it.is-on.is-b { background: var(--gps-buy-bg); color: var(--gps-buy-ink); box-shadow: 0 0 0 1.5px var(--gpo-buy-line); }
.gpo-it.is-on .gpo-num { color: inherit; opacity: .75; }
.gpo-it.is-closed:not(.is-on) b { color: var(--gta-text-3); }
.gpo-it:disabled { opacity: .4; cursor: default; }
.gpo-num { font-variant-numeric: tabular-nums; }
.gpo-amt { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "in tot" "x tot"; align-items: center; gap: 4px 16px; margin-top: 14px; padding: 14px 16px;
    border-radius: 22px; background: var(--gta-card-2); }
.gpo-in { grid-area: in; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.gpo-in input { width: auto; field-sizing: content; min-width: 56px; max-width: 220px; border: 0; background: none; font: inherit; font-size: 34px; font-weight: 300;
    color: var(--gta-text); outline: 0; font-variant-numeric: tabular-nums; padding: 0; }
.gpo-in input::placeholder { color: var(--gta-text-3); }
.gpo-in span { font-size: 14px; color: var(--gta-text-2); }
.gpo-x2 { grid-area: x; font-size: 12.5px; color: var(--gta-text-3); display: flex; align-items: center; gap: 4px; white-space: nowrap; flex-wrap: wrap; }
.gpo-price { border: 0; background: var(--gta-card); border-radius: var(--gta-r-pill); font: inherit; font-size: 12.5px; padding: 2px 9px; color: var(--gta-text); cursor: pointer;
    font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1px var(--gta-sep); }
.gpo-price.is-deal { background: var(--gpo-gold-soft); color: var(--gta-gold-ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gta-gold) 40%, transparent); }
.gpo-price:focus-visible { outline: 0; box-shadow: var(--gta-focus); }
.gpo-pin { width: 130px; max-width: 100%; height: 26px; border: 0; border-radius: var(--gta-r-pill); background: var(--gta-card); color: var(--gta-text); font: inherit; font-size: 13px; padding: 0 10px;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--gta-gold) 55%, transparent); outline: 0; direction: ltr; text-align: center; }
.gpo-x2 .gpo-txt { padding: 0 4px; font-size: 12px; color: var(--gta-gold-ink); }
.gpo-tot { grid-area: tot; text-align: end; display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.gpo-tot b { font-size: 22px; font-weight: 600; white-space: nowrap; }
.gpo-tot span { font-size: 12px; color: var(--gta-text-3); }

/* قدمِ ۳ */
.gpo-sum { border-radius: 22px; padding: 16px 18px; margin-top: 4px; }
.gpo-sum.is-s { background: var(--gps-sell-bg); color: var(--gps-sell-ink); }
.gpo-sum.is-b { background: var(--gps-buy-bg); color: var(--gps-buy-ink); }
.gpo-s1 { font-size: 13.5px; opacity: .8; }
.gpo-s2 { font-size: 17px; margin-top: 2px; }
.gpo-s2 b { font-weight: 600; }
.gpo-s3 { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.gpo-s3 b { font-size: 30px; font-weight: 600; white-space: nowrap; }
.gpo-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.gpo-chips.is-center { justify-content: center; margin-top: 12px; }
.gpo-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--gta-r-pill); font-size: 12px; font-weight: 600; white-space: nowrap;
    border: 0; font-family: inherit; flex: none; }
.gpo-chip .mud-icon-root { font-size: 14px; }
.gpo-chip.is-mute { background: color-mix(in srgb, var(--gta-card) 70%, transparent); color: var(--gta-text-2); font-weight: 500; }
.gpo-chip.is-warn { background: var(--gpo-warn-soft); color: var(--gta-warn); }
.gpo-chip.is-gold { background: var(--gpo-gold-soft); color: var(--gta-gold-ink); }
.gpo-chip.is-ok { background: color-mix(in srgb, var(--gta-s-green) 15%, transparent); color: color-mix(in srgb, var(--gta-s-green) 60%, var(--gta-text)); }
.gpo-chip.is-bad { background: color-mix(in srgb, var(--gta-s-red) 14%, transparent); color: var(--gta-s-red); }
.gpo-chip.is-btn { cursor: pointer; background: var(--gps-seg); }
.gpo-note { margin-top: 12px; height: 46px; }
.gpo-note input { font-size: 14px; }
.gpo-sw { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 6px; font-size: 14px; cursor: pointer; }
.gpo-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gpo-sw i { width: 51px; height: 31px; border-radius: var(--gta-r-pill); background: var(--gta-sep); position: relative; transition: background .3s; flex: none; }
.gpo-sw i::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    transition: transform .3s var(--gta-ease-spring); }
.gpo-sw input:checked + i { background: var(--gta-s-green); }
.gpo-sw input:checked + i::after { transform: translateX(-20px); }
.gpo-sw input:focus-visible + i { box-shadow: var(--gta-focus); }

.gpo-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px 18px; flex-wrap: wrap; }
.gpo-go { flex: 1; height: 50px; border: 0; border-radius: var(--gta-r-pill); background: var(--gta-accent); color: var(--gta-on-accent, #fff); font: inherit; font-size: 16px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: transform .15s var(--gta-ease-spring), opacity .2s; text-decoration: none; }
.gpo-go .mud-icon-root { font-size: 19px; }
.gpo-go:active { transform: scale(.97); }
.gpo-go:disabled { opacity: .35; cursor: default; }
.gpo-go:focus-visible { outline: 0; box-shadow: var(--gta-focus); }
.gpo-go kbd { font: inherit; font-size: 11px; font-weight: 500; opacity: .7; background: color-mix(in srgb, #fff 18%, transparent); border-radius: var(--gta-r-pill); padding: 1px 8px; }
.gpo-go.is-gold { background: var(--gta-gold); color: #fff; }
.gpo-go.is-ghost { flex: none; padding: 0 22px; background: var(--gta-card-2); color: var(--gta-text); }
.gpo-go.is-sent { background: color-mix(in srgb, var(--gta-s-green) 14%, var(--gta-card)); color: color-mix(in srgb, var(--gta-s-green) 60%, var(--gta-text)); cursor: default; }

.gpo-done { text-align: center; padding: 18px 0 14px; }
.gpo-okc { width: 84px; height: 84px; border-radius: 50%; background: color-mix(in srgb, var(--gta-s-green) 16%, transparent); color: var(--gta-s-green); display: inline-grid;
    place-items: center; animation: gpo-pop .5s var(--gta-ease-spring); }
.gpo-tick { stroke-dasharray: 40; stroke-dashoffset: 40; animation: gpo-draw .45s .15s var(--gta-ease) forwards; }
@keyframes gpo-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes gpo-draw { to { stroke-dashoffset: 0; } }
.gpo-done h4 { font-size: 20px; margin: 14px 0 4px; font-weight: 700; }
.gpo-dsub { color: var(--gta-text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.gpo-dsub b { color: var(--gta-text); font-weight: 600; }
.gpo-dacts { display: flex; gap: 8px; margin-top: 22px; }

/* ── کشوی کناری: پرونده‌ی مشتری / حسابِ پرگار ── */
.gpo-pnl { position: fixed; top: 16px; bottom: 16px; inset-inline-start: 16px; width: 400px; max-width: calc(100vw - 32px); background: var(--gta-card); color: var(--gta-text);
    border-radius: 28px; box-shadow: var(--gta-shadow-float); z-index: 2068; padding: 16px 16px 18px; overflow: auto; overscroll-behavior: contain;
    animation: gpo-slide .4s var(--gta-ease); }
@keyframes gpo-slide { from { transform: translateX(calc(100% + 24px)); } }
.gpo-ph { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.gpo-ph h3 { flex: 1; font-size: 18px; margin: 0; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpo-psub { color: var(--gta-text-3); font-size: 13px; margin: 2px 0 12px; }
.gpo-grp { background: var(--gta-card-2); border-radius: var(--gta-r-card); padding: 2px 14px; margin-bottom: 10px; }
.gpo-pnl .gpo-q { margin-top: 2px; background: var(--gta-card-2); }
.gpo-pg { display: flex; align-items: center; gap: 10px; min-height: 56px; width: 100%; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: start;
    cursor: pointer; position: relative; }
.gpo-pg + .gpo-pg::before { content: ''; position: absolute; top: 0; inset-inline: 40px 0; border-top: .5px solid var(--gta-sep); }
.gpo-pg .gpo-lt { font-size: 14px; }
.gpo-pg.is-best .gpo-lt { font-weight: 600; }
.gpo-pg:focus-visible { outline: 0; box-shadow: var(--gta-focus); border-radius: var(--gta-r-ctl); }
.gpo-pg:disabled { opacity: .6; }
.gpo-code { direction: ltr; unicode-bidi: isolate; display: inline-block; background: var(--gta-card); border-radius: var(--gta-radius-sm); padding: 0 6px; margin-inline-end: 4px;
    font-variant-numeric: tabular-nums; font-size: 12px; color: var(--gta-text-2); }
.gpo-none { padding: 14px 0; color: var(--gta-text-3); font-size: 13.5px; text-align: center; }
.gpo-fh { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.gpo-fav { width: 52px; height: 52px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 21px; font-weight: 600; flex: none; }
.gpo-fn { flex: 1; min-width: 0; }
.gpo-fn h3 { margin: 0 0 3px; font-size: 19px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpo-fn .gpo-chips { margin-top: 0; }
.gpo-fn .gpo-chip.is-mute { background: var(--gps-seg); }
.gpo-more { position: relative; flex: none; }
.gpo-menu { position: absolute; top: 40px; inset-inline-end: 0; z-index: 3; min-width: 210px; padding: 6px; border-radius: var(--gta-r-menu, 16px); background: var(--gta-card);
    box-shadow: var(--gta-shadow-float); display: flex; flex-direction: column; }
.gpo-menu a, .gpo-menu button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 0; background: none; border-radius: var(--gta-r-ctl);
    font: inherit; font-size: 14px; color: var(--gta-text); text-decoration: none; cursor: pointer; text-align: start; }
.gpo-menu a:hover, .gpo-menu button:hover { background: var(--gps-seg); }
.gpo-menu .mud-icon-root { font-size: 18px; color: var(--gta-text-2); }
.gpo-menu .is-red, .gpo-menu .is-red .mud-icon-root { color: var(--gta-s-red); }
.gpo-big { width: 100%; height: 50px; border: 0; border-radius: var(--gta-r-pill); background: var(--gta-accent); color: var(--gta-on-accent, #fff); font: inherit; font-size: 15px;
    font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; cursor: pointer; }
.gpo-big .mud-icon-root { font-size: 19px; }
.gpo-big:disabled { opacity: .4; cursor: default; }
.gpo-big:focus-visible { outline: 0; box-shadow: var(--gta-focus); }
.gpo-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; position: relative; font-size: 14px; width: 100%; }
.gpo-kv + .gpo-kv::before { content: ''; position: absolute; top: 0; inset-inline: 0; border-top: .5px solid var(--gta-sep); }
.gpo-kv > span:first-child { color: var(--gta-text-2); flex: none; }
.gpo-kv b { font-weight: 600; text-align: left; white-space: nowrap; }
.gpo-kv.is-copy { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: copy; }
.gpo-kv.is-copy:hover b { color: var(--gta-accent-ink); }
.gpo-kvb { border: 0; background: none; padding: 0; font: inherit; color: var(--gta-text); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    min-width: 0; text-align: start; }
.gpo-kvb span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gpo-fsec { display: flex; justify-content: space-between; font-size: 13px; color: var(--gta-text-2); margin: 6px 6px 6px; }
.gpo-ftr { display: flex; align-items: center; gap: 10px; min-height: 54px; position: relative; }
.gpo-ftr + .gpo-ftr::before { content: ''; position: absolute; top: 0; inset-inline: 0; border-top: .5px solid var(--gta-sep); }
.gpo-b1 { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.gpo-b1 b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpo-b1 small, .gpo-ftr small { font-size: 12px; color: var(--gta-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpo-t1 { text-align: end; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.4; flex: none; }
.gpo-t1 b { font-size: 13.5px; font-weight: 600; }
.gpo-t1 .gps-stt { font-size: 11px; }

/* ── دکمه‌ی گردِ شناور (فقط گوشی) ── */
.gpo-fab { display: none; }

/* ── گوشی ── */
@media (max-width: 640px) {
    .gpo-dlg { top: auto; bottom: 0; left: 0; right: 0; width: 100%; transform: none; max-height: 94vh; max-height: 94dvh; border-radius: 38px 38px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px); animation: gpo-up .42s var(--gta-ease); }
    @keyframes gpo-up { from { transform: translateY(100%); } }
    .gpo-grab { display: block; width: 38px; height: 5px; border-radius: 9px; background: var(--gta-sep); margin: 8px auto 0; flex: none; }
    .gpo-head { padding-top: 8px; }
    .gpo-go kbd, .gpo-open kbd { display: none; }
    .gpo-in input { font-size: 30px; }
    .gpo-tot b { font-size: 19px; }
    .gpo-ig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gpo-ign { grid-column: 1 / -1; width: auto; margin-top: 4px; }
    .gpo-it { min-width: 0; }
    .gpo-it b { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .gpo-amt { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
    .gpo-fab { display: grid; place-items: center; position: fixed; bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); inset-inline-start: 18px; width: 58px; height: 58px;
        border-radius: 50%; border: 0; z-index: 60; color: var(--gta-on-accent, #fff); cursor: pointer;
        background: var(--gta-accent); box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--gta-accent) 60%, transparent); }
    .gpo-fab .mud-icon-root { font-size: 26px; }
    .gpo-pnl { top: auto; bottom: 0; inset-inline: 0; width: auto; max-width: none; max-height: 90vh; max-height: 90dvh; border-radius: 38px 38px 0 0;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); animation: gpo-up .42s var(--gta-ease); }
    .gpo-pnl .gpo-grab { margin: -6px auto 10px; }
    .gpo-open { display: none; }
    .gpo-accbulk { height: 40px; font-size: 13px; }
    .gpo-dacts { flex-direction: column-reverse; }
    .gpo-dacts .gpo-go { flex: none; width: 100%; min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
    .gpo-dlg, .gpo-pnl, .gpo-scrim, .gpo-okc, .gpo-tick { animation: none; }
    .gpo-tick { stroke-dashoffset: 0; }
}

/* تهِ فایل قاعده‌ی ساده: شب = سبزِ روشنِ برند + متنِ تیره (سفید روی سبزِ روشن زیرِ AA است) */
html.gta-dark .gpo-open, html.gta-dark .gpo-go:not(.is-gold):not(.is-ghost):not(.is-sent), html.gta-dark .gpo-big, html.gta-dark .gpo-fab { color: var(--gta-canvas); }
html.gta-dark .gpo-scrim { background: color-mix(in srgb, black 55%, transparent); }
html.gta-dark .gpo-dlg, html.gta-dark .gpo-pnl { background: var(--gta-card); box-shadow: 0 0 0 .5px var(--gta-sep), var(--gta-shadow-float); }
