/* پنل مشتری نکستو — ظاهر ثابت برای همهٔ صرافی‌ها (فقط نام و لوگوی صراف عوض می‌شود). تم از گوشی/سیستم. */
@font-face { font-family: Vazirmatn; src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F3F4F1; --surface: #FFFFFF; --ink: #15201B; --ink-2: #3E4843; --muted: #5B6660; --faint: #8A938E;
  --line: #E3E6E1; --line-2: #EEF0EC; --field: #F8F9F7; --field-line: #D8DDD7;
  --brand: #10302A; --brand-2: #183D35; --brand-ink: #F3F4F1; --brand-soft: #B9C9C2; --logo-ink: #E9C46A;
  --buy: #0B6E4F; --buy-bg: #E3F2EB; --sell: #B3361F; --sell-bg: #FBE7E2;
  --gold: #8A6A1E; --gold-bg: #FBF3DF; --info: #2D4B8E; --info-bg: #EAEDF5; --off-bg: #F1F2EF;
  --ring: rgba(16, 48, 42, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1513; --surface: #172220; --ink: #E8ECE9; --ink-2: #C4CCC8; --muted: #9AA59F; --faint: #7E8A85;
    --line: #23302D; --line-2: #1E2A27; --field: #121B19; --field-line: #2B3A36;
    --brand: #1C2B27; --brand-2: #22342F; --brand-ink: #E8ECE9; --brand-soft: #9DB3AA; --logo-ink: #E9C46A;
    --buy: #8FE3BC; --buy-bg: #12362A; --sell: #FFB4A3; --sell-bg: #3A1D17;
    --gold: #E9C46A; --gold-bg: #2A2414; --info: #A9C1F5; --info-bg: #1C2540; --off-bg: #1E2926;
    --ring: rgba(233, 196, 106, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-family: Vazirmatn, Tahoma, sans-serif; font-size: 15px; line-height: 1.6; -webkit-tap-highlight-color: transparent; }
a { color: var(--buy); }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.t-buy { color: var(--buy); } .t-sell { color: var(--sell); } .t-gold { color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ستون اپ‌مانند: روی گوشی تمام‌عرض، روی دسکتاپ ستون وسط */
.p-app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.p-app.p-bare { padding-bottom: 24px; }
.p-top { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; }
.p-logo { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: var(--logo-ink); display: grid; place-items: center; font-weight: 800; font-size: 18px; overflow: hidden; flex: none; }
.p-logo img { width: 100%; height: 100%; object-fit: cover; }
.p-top-t { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.p-top-t b { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-top-t span { font-size: 12px; color: var(--muted); }
.p-h1 { font-size: 20px; font-weight: 800; margin: 0; flex: 1; }
.p-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); text-decoration: none; flex: none; cursor: pointer; padding: 0; }
.p-icon svg { width: 20px; height: 20px; }
.p-main { padding: 0 16px; display: flex; flex-direction: column; gap: 14px; }

.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; }
.p-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.p-card-h b { font-size: 14px; }
.p-label { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0 4px; }

/* کارت ماندهٔ کل */
.p-hero { background: var(--brand); color: var(--brand-ink); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.p-hero-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--brand-soft); }
.p-hero-v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-hero-v .num { font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.p-hero-tag { margin-inline-start: auto; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--brand-2); }
.p-hero-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.p-hero-chip { background: var(--brand-2); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-hero-chip span { font-size: 11px; color: var(--brand-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-hero-chip b { font-size: 14px; }
.p-hero .cr { color: #9FE0C2; } .p-hero .db { color: #FFB4A3; }
.p-ghost-dark { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--brand-ink); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.p-mask { font-size: 26px; letter-spacing: 4px; color: var(--brand-soft); }

/* نوار نرخ طلا */
.p-strip { display: flex; flex-direction: column; gap: 8px; }
.p-strip-h { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.p-pill-gold { color: var(--gold); background: var(--gold-bg); padding: 2px 8px; border-radius: 8px; font-size: 11px; }
.p-strip-r { display: flex; align-items: center; gap: 12px; }
.p-strip-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.p-strip-c > span { font-size: 12px; color: var(--muted); }
.p-strip-c > div { display: flex; gap: 5px; align-items: baseline; font-weight: 800; font-size: 15px; }
.p-vr { width: 1px; align-self: stretch; background: var(--line); }

/* دکمه‌های سریع */
.p-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.p-tile { text-align: center; line-height: 1.4; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 700; position: relative; }
.p-tile i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-style: normal; }
.p-tile i svg { width: 20px; height: 20px; }
.i-buy { background: var(--buy-bg); color: var(--buy); } .i-sell { background: var(--sell-bg); color: var(--sell); }
.i-gold { background: var(--gold-bg); color: var(--gold); } .i-info { background: var(--info-bg); color: var(--info); }
.p-dot { position: absolute; top: 8px; inset-inline-end: 10px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--sell); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }

/* اطلاعیه */
.p-note { background: var(--gold-bg); color: var(--ink); border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.9; }

/* تحویل‌ها */
.p-dlv { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--field); border-radius: 14px; }
.p-dlv + .p-dlv { margin-top: 8px; }
.p-cal { width: 52px; min-height: 54px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.p-cal span { font-size: 10px; color: var(--muted); }
.p-cal b { font-size: 15px; }
.p-dlv-l { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.p-dlv-l div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }

/* تابلو */
.p-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.p-chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field-line); background: var(--surface); font-size: 13px; white-space: nowrap; cursor: pointer; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.p-chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.p-cols { display: flex; justify-content: space-between; padding: 0 22px; font-size: 11px; color: var(--muted); }
.p-cols > span:last-child { display: flex; gap: 8px; }
.p-cols > span:last-child span { width: 108px; text-align: center; }
.p-row { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 10px 12px; display: flex; align-items: center; gap: 8px; }
.p-row-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.p-row-n b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-row-n span { font-size: 11px; color: var(--muted); }
.p-price { width: 108px; height: 50px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; flex: none; border: 0; }
.p-price b { font-size: 14px; }
.p-price small { font-size: 10px; font-weight: 700; }
.p-price.buy { background: var(--buy-bg); color: var(--buy); }
.p-price.sell { background: var(--sell-bg); color: var(--sell); }
.p-price.off { background: var(--off-bg); color: var(--faint); font-size: 12px; font-weight: 700; }
.p-price.static { cursor: default; }
.p-price.flash { animation: pflash 1.2s; }
@keyframes pflash { from { box-shadow: 0 0 0 3px var(--ring); } to { box-shadow: 0 0 0 0 transparent; } }

/* سفارش */
.p-lock { display: flex; align-items: center; gap: 16px; }
.p-lock-v { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.p-lock-v .num { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.p-ring { position: relative; width: 64px; height: 64px; flex: none; }
.p-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.p-ring circle { fill: none; stroke-width: 6; }
.p-ring .bg { stroke: var(--line-2); } .p-ring .fg { stroke: #C99A2E; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.p-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; }
.p-ring.expired .fg { stroke: var(--sell); }
.p-stepper { display: flex; gap: 8px; }
.p-stepper button { width: 52px; height: 56px; border-radius: 14px; border: 1px solid var(--field-line); background: var(--field); font-size: 22px; cursor: pointer; flex: none; }
.p-stepper input { flex: 1; min-width: 0; height: 56px; border-radius: 14px; border: 1.5px solid var(--brand); background: var(--surface); text-align: center; font-size: 22px; font-weight: 800; direction: ltr; }
.p-quick { display: flex; gap: 8px; }
.p-quick button { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--surface); cursor: pointer; font-size: 13px; }
.p-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.p-opt { min-height: 56px; border-radius: 14px; border: 1px solid var(--field-line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center; position: relative; }
.p-opt small { font-size: 11px; font-weight: 400; color: var(--muted); }
.p-opt input { position: absolute; opacity: 0; pointer-events: none; }
.p-opt:has(input:checked) { border: 1.5px solid var(--brand); background: var(--line-2); }
.p-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.p-total { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px; }
.p-total .num { font-size: 22px; font-weight: 800; }
.p-seg { display: inline-flex; background: var(--line); border-radius: 12px; padding: 3px; }
.p-seg a { height: 38px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.p-seg a.on-buy { background: var(--buy); color: #fff; } .p-seg a.on-sell { background: var(--sell); color: #fff; }
@media (prefers-color-scheme: dark) { .p-seg a.on-buy, .p-seg a.on-sell { color: #0E1513; } }

/* فرم‌ها */
.p-form { display: flex; flex-direction: column; gap: 12px; }
.p-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.p-field input, .p-field select, .p-field textarea { width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--field-line); background: var(--field); padding: 0 14px; font-size: 16px; font-weight: 500; color: var(--ink); outline: none; }
.p-field textarea { height: auto; min-height: 96px; padding: 12px 14px; }
.p-field input:focus, .p-field select:focus, .p-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.p-field small { font-weight: 400; color: var(--muted); font-size: 12px; }
.p-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p-eye { position: relative; display: block; }
.p-eye button { position: absolute; top: 3px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 12px; cursor: pointer; }
.p-eye button svg { width: 20px; height: 20px; }
/* چشم همیشه انتهای خط صفحه (رمز خودش ltr است، پس جهت فیزیکی) */
[dir="rtl"] .p-eye input { padding-left: 52px; } [dir="rtl"] .p-eye button { left: 4px; }
[dir="ltr"] .p-eye input { padding-right: 52px; } [dir="ltr"] .p-eye button { right: 4px; }
.p-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.9; color: var(--ink-2); cursor: pointer; }
.p-check input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--brand); }
.p-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.p-steps li { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted); }
.p-steps li::before { content: ''; height: 5px; border-radius: 999px; background: var(--field-line); }
.p-steps li.on { color: var(--brand); font-weight: 800; }
.p-steps li.on::before { background: var(--brand); }
@media (prefers-color-scheme: dark) { .p-steps li.on { color: var(--logo-ink); } .p-steps li.on::before { background: var(--logo-ink); } }

/* دکمه‌ها */
.p-btn { height: 52px; border-radius: 14px; border: 0; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; }
.p-btn.sm { height: 40px; border-radius: 12px; font-size: 13px; padding: 0 14px; }
.p-btn.wide { width: 100%; }
.p-btn.primary { background: var(--brand); color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { .p-btn.primary { background: var(--logo-ink); color: #15201B; } }
.p-btn.buy { background: var(--buy); color: #fff; } .p-btn.sell { background: var(--sell); color: #fff; }
@media (prefers-color-scheme: dark) { .p-btn.buy, .p-btn.sell { color: #0E1513; } }
.p-btn.line { background: var(--surface); border: 1.5px solid var(--brand); color: var(--brand); }
@media (prefers-color-scheme: dark) { .p-btn.line { border-color: var(--logo-ink); color: var(--logo-ink); } }
.p-btn.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.p-btn.danger { background: var(--surface); border: 1px solid var(--sell-bg); color: var(--sell); }
.p-btn:disabled { opacity: .45; cursor: not-allowed; }
.p-link { background: none; border: 0; padding: 4px; color: var(--buy); font-size: 13px; cursor: pointer; text-decoration: none; }
.p-btn:focus-visible, .p-link:focus-visible, .p-price:focus-visible, .p-tile:focus-visible, .p-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* برچسب و هشدار */
.p-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.b-amber { background: var(--gold-bg); color: var(--gold); } .b-blue { background: var(--info-bg); color: var(--info); }
.b-green { background: var(--buy-bg); color: var(--buy); } .b-red { background: var(--sell-bg); color: var(--sell); }
.b-gray { background: var(--off-bg); color: var(--muted); }
.p-alert { border-radius: 14px; padding: 10px 14px; font-size: 13px; line-height: 1.9; }
.p-alert.ok { background: var(--buy-bg); color: var(--buy); } .p-alert.err { background: var(--sell-bg); color: var(--sell); }
.p-alert.warn { background: var(--gold-bg); color: var(--gold); }

/* فهرست‌ها */
.p-li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.p-li:first-child { border-top: 0; }
.p-li-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.p-li-b > b, .p-li-b > span:first-child { font-size: 13px; font-weight: 700; }
.p-li-b small { font-size: 11px; color: var(--muted); }
.p-kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.p-kv:first-child { border-top: 0; }
.p-kv > span:first-child { color: var(--ink-2); }
.p-day { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 4px 0; }
.p-tx { display: flex; flex-direction: column; gap: 8px; }
.p-tx-h { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.8; }
.p-tx-h span:first-child { flex: 1; }
.p-tx-a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 15px; font-weight: 800; }
.p-tx-a small { font-size: 12px; font-weight: 400; color: var(--muted); }
.p-iban { display: flex; align-items: center; gap: 8px; background: var(--field); border-radius: 12px; padding: 10px 12px; }
.p-iban code { flex: 1; font-family: Vazirmatn, monospace; font-size: 15px; font-weight: 700; letter-spacing: .4px; overflow-wrap: anywhere; direction: ltr; text-align: start; }
.p-bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.p-bar i { display: block; height: 100%; background: #C99A2E; border-radius: 999px; }
.p-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.p-tab { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.p-tab svg { width: 20px; height: 20px; }
.p-tab.on { border: 1.5px solid var(--brand); color: var(--brand); font-weight: 800; }
@media (prefers-color-scheme: dark) { .p-tab.on { border-color: var(--logo-ink); color: var(--logo-ink); } }
[hidden] { display: none !important; }

/* منوی پایین */
.p-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; height: calc(76px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 6px calc(14px + env(safe-area-inset-bottom)); z-index: 40; }
.p-nav a { text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--faint); font-size: 11px; border-radius: 12px; }
.p-nav a svg { width: 22px; height: 22px; }
.p-nav a.on { color: var(--brand); font-weight: 800; }
@media (prefers-color-scheme: dark) { .p-nav a.on { color: var(--logo-ink); } }

/* ورود و ثبت‌نام */
.p-auth { display: flex; flex-direction: column; gap: 12px; min-height: calc(100vh - 60px); padding: 0 4px; }
.p-auth-brand { flex: 1; min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding-top: 32px; }
.p-auth-brand .p-logo { width: 84px; height: 84px; border-radius: 26px; font-size: 34px; }
.p-auth-brand b { font-size: 22px; font-weight: 800; }
.p-langs { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; padding: 18px 0 6px; font-size: 12px; }
.p-langs a { color: var(--faint); text-decoration: none; }
.p-langs a.on { color: var(--ink); font-weight: 800; }
.p-foot { text-align: center; font-size: 11px; color: var(--faint); padding: 14px 0; }

/* موارد باز (جدول کارت‌های واتساپ) */
.oi-details { margin-bottom: 8px; }
.oi-details summary { cursor: pointer; list-style: none; display: inline-flex; }
.oi-details summary::-webkit-details-marker { display: none; }
.nx-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--field); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.oi-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.oi-table th { color: var(--muted); font-weight: 700; padding: 5px 6px; border-bottom: 1.5px solid var(--line); text-align: start; }
.oi-table td { padding: 6px; border-bottom: 1px solid var(--line-2); }
.oi-num { direction: ltr; text-align: end; white-space: nowrap; font-weight: 700; }
.text-muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .p-price.flash { animation: none; } .p-ring .fg { transition: none; } }
.p-mini-select { height: 40px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--field); padding: 0 10px; font-size: 13px; max-width: 60vw; }
.p-btn svg { width: 18px; height: 18px; }
.p-ghost-dark svg { width: 16px; height: 16px; }
#p-qr svg { width: 100%; height: 100%; }

.p-file { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; border-radius: 14px; border: 1.5px dashed var(--field-line); background: var(--field); padding: 5px 6px; }
.p-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.p-file:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.p-file-n { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.p-doc h2 { font-size: 15px; margin: 0 0 8px; }
.p-doc p { margin: 6px 0; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.p-doc pre { direction: ltr; text-align: left; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.7; overflow-x: auto; white-space: pre; margin: 8px 0; }
.p-doc code { direction: ltr; unicode-bidi: isolate; font-size: 12px; background: var(--field); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.p-doc .p-kv { font-size: 12px; align-items: flex-start; }
