/* ==========================================================================
   Dashboard "graphite" skin (2026-10-19).
   Loaded LAST on every dashboard page. It only re-skins the existing markup
   (snav-, phead-, wsum-, wstat-, wcv-, modal tokens); no HTML/JS changes, so
   every flow (wallet connect/create/OTP, IP allowlist, key rotate, period
   picker, pagination) keeps working. To roll back: remove the <link> in
   base.html. Palette: neutral graphite (no blue tint), Onest type, 22px cards,
   pill buttons, colour only where it means something (Stars amber, Premium
   violet, statuses).
   ========================================================================== */

html body.dev-console {
  --g-bg: #0e0e10;
  --g-side: #0b0b0c;
  --g-card: #161618;
  --g-hero: #141416;
  --g-soft: #1c1c1f;
  --g-hi: #26262a;
  --g-ln: #252528;
  --g-ln2: #323236;
  --g-ink: #f2f2f3;
  --g-mut: #a8a8b0;
  --g-fnt: #76767e;
  --g-amber: #f2b01e;
  --g-violet: #8b6cf6;
  --g-green: #22c55e;
  --g-red: #ef4444;
  --g-r: 22px;
  --g-sh: 0 0 0 1px rgba(255, 255, 255, 0.045) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --g-font: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* modal.css tokens */
  --m-bg: #161618;
  --m-bg-2: #1c1c1f;
  --m-border: #252528;
  --m-border-soft: #323236;
  --m-text: #f2f2f3;
  --m-soft: #d4d4d8;
  --m-muted: #a8a8b0;
  --m-faint: #76767e;
  --m-ton: #52525b;
  --m-ton-2: #52525b;
  --m-ton-dim: #3f3f46;
  --m-line: #252528;

  background: var(--g-bg) !important;
  font-family: var(--g-font);
}
html body.dev-console .workspace-main,
html body.dev-console .dev-main,
html body.dev-console .workspace-shell,
html body.dev-console .dev-shell { background: var(--g-bg) !important; }

/* ───────────────────────── Sidebar ───────────────────────── */
html body.dev-console .workspace-sidebar,
html body.dev-console .workspace-sidebar-column {
  background: var(--g-side) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}
html body.dev-console .snav {
  --n-card: #161618;
  --n-card-2: #1c1c1f;
  --n-hover: rgba(255, 255, 255, 0.05);
  --n-border: rgba(255, 255, 255, 0.06);
  --n-border-soft: rgba(255, 255, 255, 0.09);
  --n-text: #f2f2f3;
  --n-soft: #cfcfd4;
  --n-muted: #9a9aa2;
  --n-faint: #85858d;
  --n-accent: #f4f4f5;
  --n-accent-soft: rgba(255, 255, 255, 0.08);
  --n-accent-line: rgba(255, 255, 255, 0.12);
  --n-accent-text: #e4e4e7;
  font-family: var(--g-font);
  padding: 18px 14px 14px;
  gap: 10px;
}
html body.dev-console .snav-head { border-bottom: 0; padding: 2px 4px 10px; }
html body.dev-console .snav-brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  color: var(--g-amber); background: rgba(255, 255, 255, 0.08); border: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
html body.dev-console .snav-brand-copy strong { font-size: 15px; line-height: 19px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
html body.dev-console .snav-brand-copy small { font-size: 12px; line-height: 15px; color: #9a9aa2; }
html body.dev-console .snav-section-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; color: #85858d; }
html body.dev-console .snav-count { border-radius: 99px; background: rgba(255, 255, 255, 0.07); border-color: transparent; color: #a8a8b0; }
html body.dev-console .snav-item {
  border-radius: 16px; padding: 9px 10px; border: 0; background: transparent;
  box-shadow: none; transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
html body.dev-console .snav-item:hover { background: rgba(255, 255, 255, 0.05); }
html body.dev-console .snav-item.active {
  background: rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}
html body.dev-console .snav-item.active::before,
html body.dev-console .snav-item.active::after { display: none !important; }
html body.dev-console .snav-tile { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; border: 0; }
html body.dev-console .snav-item-name { font-size: 14px; font-weight: 600; }
html body.dev-console .snav-item-sub { font-size: 11.5px; }
html body.dev-console .snav-badge { border-radius: 99px; border: 0; background: rgba(255, 255, 255, 0.07); color: #e4e4e7; }
html body.dev-console .snav-create {
  height: 44px; border-radius: 99px; border: 0;
  background: #f4f4f5; color: #111113; font-weight: 600; font-size: 14px;
  transition: transform 0.12s cubic-bezier(.22, 1, .36, 1), background-color 0.15s ease;
}
html body.dev-console .snav-create:hover { background: #e4e4e7; color: #111113; }
html body.dev-console .snav-create:active { transform: scale(0.97); }
html body.dev-console .snav-link { border-radius: 14px; border: 0; }
html body.dev-console .snav-link:hover { background: rgba(255, 255, 255, 0.05); }
html body.dev-console .snav-link-tile { border-radius: 9px; border: 0; background: rgba(255, 255, 255, 0.08) !important; color: #e4e4e7 !important; }
html body.dev-console .lang-switch--sidebar { border-radius: 99px; padding: 3px; background: rgba(255, 255, 255, 0.06); border: 0; }
html body.dev-console .lang-switch--sidebar .lang-switch-item { border-radius: 99px; color: #9a9aa2; }
html body.dev-console .lang-switch--sidebar .lang-switch-item.is-active { background: #f4f4f5 !important; color: #111113 !important; box-shadow: none; }
html body.dev-console .snav-user { border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset; }
html body.dev-console .snav-avatar { border-radius: 50%; background: #2a2a2e; }
html body.dev-console .snav-icon-btn { border-radius: 50%; border: 0; background: transparent; }
html body.dev-console .snav-icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* ───────────────────────── Page header ───────────────────────── */
html body.dev-console.dashboard-page .phead-bar,
html body.dev-console.dashboard-page .phead-card {
  --p-surface: #141416;
  --p-surface2: rgba(255, 255, 255, 0.07);
  --p-surface3: rgba(255, 255, 255, 0.12);
  --p-border: rgba(255, 255, 255, 0.06);
  --p-border2: rgba(255, 255, 255, 0.1);
  --p-accent: #f4f4f5;
  --p-accent-dim: #e4e4e7;
  --p-accent-muted: rgba(255, 255, 255, 0.08);
  --p-text: #f2f2f3;
  --p-text2: #a8a8b0;
  --p-text3: #5c5c64;
  font-family: var(--g-font);
}
html body.dev-console.dashboard-page .phead-bc-link,
html body.dev-console.dashboard-page .phead-bc-current { font-size: 14px; }
html body.dev-console.dashboard-page .phead-api-pill {
  height: 38px; display: inline-flex; align-items: center; padding: 0 14px;
  border-radius: 99px; border: 0; background: var(--g-card); box-shadow: var(--g-sh);
}
html body.dev-console.dashboard-page .phead-api-btn {
  height: 38px; padding: 0 16px; border-radius: 99px; border: 0;
  background: #f4f4f5; color: #111113; font-weight: 600;
}
html body.dev-console.dashboard-page .phead-api-btn:hover { background: #e4e4e7; }
html body.dev-console.dashboard-page .phead-menu { border-radius: 50%; border: 0; width: 40px; height: 40px; background: var(--g-card); box-shadow: var(--g-sh); }

/* project card + wallet summary read as ONE dark hero block */
html body.dev-console.dashboard-page .phead-card {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0; padding: 22px 24px;
  border: 0; border-radius: var(--g-r) var(--g-r) 0 0;
  background: var(--g-hero);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  gap: 16px;
}
html body.dev-console.dashboard-page .phead-card::after {
  content: ""; position: absolute; right: -140px; top: -180px; width: 560px; height: 440px; z-index: -1;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent);
  pointer-events: none;
}
html body.dev-console.dashboard-page .phead-avatar {
  width: 56px; height: 56px; border-radius: 17px; font-size: 22px;
  color: #6ee0b6; background: rgba(38, 161, 123, 0.2); border: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
html body.dev-console.dashboard-page .phead-title { font-size: 26px; font-weight: 600; letter-spacing: -0.035em; color: #fff; }
html body.dev-console.dashboard-page .phead-chip { border-radius: 99px; border: 0; background: rgba(255, 255, 255, 0.08); }
html body.dev-console.dashboard-page .phead-chip--ton { color: #8ccaff; background: rgba(48, 161, 245, 0.16); }
html body.dev-console.dashboard-page .phead-chip--usdt { color: #6ee0b6; background: rgba(38, 161, 123, 0.18); }
html body.dev-console.dashboard-page .phead-status { border-radius: 99px; border: 0; }
html body.dev-console.dashboard-page .phead-edit {
  height: 38px; padding: 0 16px; border-radius: 99px;
  border: 0; background: rgba(255, 255, 255, 0.08); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset; font-weight: 600;
}
html body.dev-console.dashboard-page .phead-edit:hover { background: rgba(255, 255, 255, 0.14); }

/* ───────────────────────── Wallet summary ───────────────────────── */
html body.dev-console.dashboard-page .wsum-card,
html body.dev-console.dashboard-page .wstat-grid,
html body.dev-console.dashboard-page .wcv-card {
  --s-card: #161618;
  --s-card-2: #1c1c1f;
  --s-border: #252528;
  --s-border-soft: #2c2c30;
  --s-line: #252528;
  --s-text: #f2f2f3;
  --s-soft: #d4d4d8;
  --s-muted: #a8a8b0;
  --s-faint: #76767e;
  --s-ton: #f4f4f5;
  --s-ton-2: #22c55e;
  font-family: var(--g-font);
}
html body.dev-console.dashboard-page .wsum-card {
  margin: 0 0 14px;
  border: 0; border-radius: 0 0 var(--g-r) var(--g-r);
  background: var(--g-hero);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
html body.dev-console.dashboard-page .wsum-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, 0.07);
}
html body.dev-console.dashboard-page .wsum-cell { padding: 20px 24px 22px; gap: 10px; }
html body.dev-console.dashboard-page .wsum-cell + .wsum-cell { border-left-color: rgba(255, 255, 255, 0.07); }
html body.dev-console.dashboard-page .wsum-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: #9a9aa2; }
html body.dev-console.dashboard-page .wsum-balance { border-radius: 0 0 0 var(--g-r); }
html body.dev-console.dashboard-page .wsum-balance-val { font-family: var(--g-font) !important; font-size: 36px; font-weight: 600; letter-spacing: -0.04em; }
html body.dev-console.dashboard-page .wsum-balance-unit { font-family: var(--g-font) !important; font-size: 14px; font-weight: 500; color: #9a9aa2; }
html body.dev-console.dashboard-page .wsum-balance-sec { color: #a8a8b0; }
html body.dev-console.dashboard-page .wsum-live { color: #a8a8b0; }
html body.dev-console.dashboard-page .wsum-live i { background: var(--g-green); animation-name: wsum-pulse-g; }
@keyframes wsum-pulse-g {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
html body.dev-console.dashboard-page .wsum-balance.is-refreshing { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18); }
html body.dev-console.dashboard-page .wsum-box {
  min-height: 52px; padding: 6px 6px 6px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
html body.dev-console.dashboard-page .wsum-icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #a8a8b0; }
html body.dev-console.dashboard-page .wsum-icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; }
html body.dev-console.dashboard-page .wsum-icon-btn.copied { background: rgba(34, 197, 94, 0.14); }

/* ───────────────────────── Stat cards ───────────────────────── */
html body.dev-console.dashboard-page .wstat-grid { gap: 14px; }
html body.dev-console.dashboard-page .wstat-card {
  padding: 20px; gap: 0; border: 0; border-radius: var(--g-r);
  background: var(--g-card); box-shadow: var(--g-sh);
}
html body.dev-console.dashboard-page .wstat-card:hover { border: 0; }
html body.dev-console.dashboard-page .wstat-top { gap: 10px; }
html body.dev-console.dashboard-page .wstat-ic { width: 34px; height: 34px; border-radius: 11px; }
html body.dev-console.dashboard-page .wstat-ic svg { width: 17px; height: 17px; }
html body.dev-console.dashboard-page .wstat-tone-blue .wstat-ic { color: #f2f2f3; background: #26262a; }
html body.dev-console.dashboard-page .wstat-tone-amber .wstat-ic { color: var(--g-amber); background: rgba(242, 176, 30, 0.13); }
html body.dev-console.dashboard-page .wstat-tone-violet .wstat-ic { color: #a993ff; background: rgba(124, 92, 240, 0.18); }
html body.dev-console.dashboard-page .wstat-tone-green .wstat-ic { color: #5fe08e; background: rgba(34, 197, 94, 0.14); }
html body.dev-console.dashboard-page .wstat-label { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--g-mut); }
html body.dev-console.dashboard-page .wstat-val {
  margin-top: 16px; font-family: var(--g-font); font-size: 32px; font-weight: 600; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; gap: 6px;
}
html body.dev-console.dashboard-page .wstat-suffix { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--g-fnt); }
html body.dev-console.dashboard-page .wstat-foot { margin-top: auto; padding-top: 14px; border-top-color: var(--g-ln); }
html body.dev-console.dashboard-page .wstat-card .wstat-foot { margin-top: 16px; }
html body.dev-console.dashboard-page .wstat-foot-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--g-fnt); margin-bottom: 9px; }
html body.dev-console.dashboard-page .wstat-foot-val strong { font-size: 14px; font-weight: 600; }
html body.dev-console.dashboard-page .wstat-ledger { grid-auto-flow: column; gap: 8px; }
html body.dev-console.dashboard-page .wstat-ledger-row,
html body.dev-console.dashboard-page .wstat-ledger-row + .wstat-ledger-row {
  padding: 9px 11px; border: 0; border-radius: 12px; background: var(--g-soft);
}
html body.dev-console.dashboard-page .wstat-ledger-row.primary { background: var(--g-hi); }
html body.dev-console.dashboard-page .wstat-ledger-row span { font-size: 11.5px; letter-spacing: 0.02em; color: var(--g-fnt); }
html body.dev-console.dashboard-page .wstat-ledger-row strong { font-size: 13.5px; font-weight: 500; color: var(--g-mut); }
html body.dev-console.dashboard-page .wstat-ledger-row.primary strong { color: var(--g-ink); }

/* ───────────────────────── Chart + donut ───────────────────────── */
html body.dev-console.dashboard-page .wcv-grid { gap: 14px; }
html body.dev-console.dashboard-page .wcv-card {
  border: 0 !important;
  border-radius: var(--g-r) !important;
  background: var(--g-card) !important;
  box-shadow: var(--g-sh) !important;
  padding: 20px 22px 22px !important;
}
html body.dev-console.dashboard-page .wcv-tag { border: 0; background: var(--g-soft); color: var(--g-mut); font-weight: 500; }
html body.dev-console.dashboard-page .wcv-head .wcv-tag:first-child { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--g-ink); background: transparent; padding-left: 0; }
html body.dev-console.dashboard-page .wcv-legend-item { font-size: 13px; color: var(--g-mut); }
html body.dev-console.dashboard-page .wcv-dot { border-radius: 50%; }
html body.dev-console.dashboard-page .wcv-dot--stars { background: var(--g-amber); }
html body.dev-console.dashboard-page .wcv-dot--premium { background: var(--g-violet); }
html body.dev-console.dashboard-page .wcv-sum { padding: 12px 14px; border-radius: 16px; border: 0; background: var(--g-soft); }
html body.dev-console.dashboard-page .wcv-sum span { font-size: 13px; color: var(--g-mut); }
html body.dev-console.dashboard-page .wcv-sum strong { font-family: var(--g-font) !important; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
html body.dev-console.dashboard-page .wcv-sum--stars { box-shadow: 0 0 0 1.5px rgba(242, 176, 30, 0.55) inset; }
html body.dev-console.dashboard-page .wcv-sum--stars strong { color: #f6c453; }
html body.dev-console.dashboard-page .wcv-sum--premium { box-shadow: 0 0 0 1.5px rgba(139, 108, 246, 0.5) inset; }
html body.dev-console.dashboard-page .wcv-sum--premium strong { color: #b9a6ff; }
html body.dev-console.dashboard-page .wcv-period-btn {
  height: 34px; padding: 0 12px 0 14px; border-radius: 99px; border: 0;
  background: var(--g-soft); color: var(--g-mut); font-family: var(--g-font) !important;
}
html body.dev-console.dashboard-page .wcv-period-btn:hover,
html body.dev-console.dashboard-page .wcv-period.open .wcv-period-btn { border: 0; color: var(--g-ink); }
html body.dev-console.dashboard-page .wcv-period-list {
  border-radius: 16px; border: 0; background: #1c1c1f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 24px 50px -18px rgba(0, 0, 0, 0.8);
}
html body.dev-console.dashboard-page .wcv-period-opt { border-radius: 11px; font-family: var(--g-font); }
html body.dev-console.dashboard-page .wcv-period-opt.active { background: var(--g-hi); }
html body.dev-console.dashboard-page .wcv-period-opt svg { color: var(--g-ink); }

/* ───────────────────────── Transactions ───────────────────────── */
html body.dev-console.dashboard-page .wcv-tx-head { padding: 22px 22px 16px; border-bottom: 0; }
html body.dev-console.dashboard-page .wcv-tx-title h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
html body.dev-console.dashboard-page .wcv-tx-title p { color: var(--g-fnt); }
html body.dev-console.dashboard-page .wcv-tx-btn {
  height: 34px; padding: 0 14px; border-radius: 99px; border: 0;
  background: transparent; color: var(--g-ink); box-shadow: 0 0 0 1px var(--g-ln2) inset; font-family: var(--g-font);
}
html body.dev-console.dashboard-page .wcv-tx-btn:hover { border: 0; background: var(--g-soft); color: #fff; }
html body.dev-console.dashboard-page .wcv-tx-table thead th { padding: 11px 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; background: var(--g-soft); color: var(--g-fnt); }
html body.dev-console.dashboard-page .wcv-tx-table thead th:first-child,
html body.dev-console.dashboard-page .wcv-tx-table tbody td:first-child { padding-left: 22px; }
html body.dev-console.dashboard-page .wcv-tx-table thead th:last-child,
html body.dev-console.dashboard-page .wcv-tx-table tbody td:last-child { padding-right: 22px; }
html body.dev-console.dashboard-page .wcv-tx-table tbody td { padding: 14px; font-size: 13.5px; border-top-color: var(--g-ln); vertical-align: middle; }
html body.dev-console.dashboard-page .wcv-tx-table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
html body.dev-console.dashboard-page .wcv-tx-user { font-weight: 500; }
html body.dev-console.dashboard-page .wcv-tx-kind,
html body.dev-console.dashboard-page .wcv-tx-pay,
html body.dev-console.dashboard-page .wcv-tx-status { height: 26px; align-items: center; padding: 0 11px; border: 0 !important; border-radius: 99px; font-weight: 600; }
html body.dev-console.dashboard-page .wcv-tx-kind--stars { color: var(--g-amber); background: rgba(242, 176, 30, 0.13); }
html body.dev-console.dashboard-page .wcv-tx-kind--premium { color: #b9a6ff; background: rgba(124, 92, 240, 0.18); }
html body.dev-console.dashboard-page .wcv-tx-pay--usdt { color: #6ee0b6; background: rgba(38, 161, 123, 0.16); }
html body.dev-console.dashboard-page .wcv-tx-pay--ton,
html body.dev-console.dashboard-page .wcv-tx-pay--gram { color: #8ccaff; background: rgba(48, 161, 245, 0.14); }
html body.dev-console.dashboard-page .wcv-tx-status--ok { background: rgba(34, 197, 94, 0.13); }
html body.dev-console.dashboard-page .wcv-tx-status--paid { color: var(--g-amber); background: rgba(242, 176, 30, 0.13); }
html body.dev-console.dashboard-page .wcv-tx-status--paid i { background: var(--g-amber); }
html body.dev-console.dashboard-page .wcv-tx-status--wait { color: #8ccaff; background: rgba(48, 161, 245, 0.13); }
html body.dev-console.dashboard-page .wcv-tx-status--wait i { background: #8ccaff; }
html body.dev-console.dashboard-page .wcv-tx-status--fail { background: rgba(239, 68, 68, 0.14); }
html body.dev-console.dashboard-page .wcv-tx-price,
html body.dev-console.dashboard-page .wcv-tx-fee,
html body.dev-console.dashboard-page .wcv-tx-id { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ───────────────────────── Modals ───────────────────────── */
html body.dev-console .modal-backdrop { background: rgba(0, 0, 0, 0.6) !important; }
html body.dev-console .modal-dialog { border-radius: 26px !important; font-family: var(--g-font); }
html body.dev-console .modal-dialog .pm-submit,
html body.dev-console .modal-dialog .submit-button { border-radius: 99px !important; background: #f4f4f5 !important; color: #111113 !important; border-color: #f4f4f5 !important; }
html body.dev-console .modal-dialog .pm-submit:hover,
html body.dev-console .modal-dialog .submit-button:hover { background: #e4e4e7 !important; }
html body.dev-console .modal-dialog .pm-submit:disabled,
html body.dev-console .modal-dialog .submit-button:disabled { opacity: 0.5 !important; }
/* blue accent tiles inside modals → neutral graphite */
html body.dev-console .modal-dialog .pm-icon:not(.pm-icon--warn) { color: #e4e4e7 !important; background: rgba(255, 255, 255, 0.08) !important; border-color: rgba(255, 255, 255, 0.1) !important; }
html body.dev-console .modal-dialog .wallet-modal-step,
html body.dev-console .modal-dialog .wallet-modal-kicker .wallet-modal-step { color: #e4e4e7 !important; background: rgba(255, 255, 255, 0.08) !important; border-color: rgba(255, 255, 255, 0.12) !important; }
html body.dev-console .modal-dialog .pm-seg .project-payment-choice.active,
html body.dev-console .modal-dialog .project-payment-choice.active { background: rgba(255, 255, 255, 0.1) !important; border-color: rgba(255, 255, 255, 0.28) !important; color: #fff !important; box-shadow: none !important; }
html body.dev-console .modal-dialog .pm-form .wallet-option-card.active { background: rgba(255, 255, 255, 0.07) !important; border-color: rgba(255, 255, 255, 0.24) !important; }
html body.dev-console .modal-dialog .pm-form .wallet-option-card.active .wallet-option-marker { border-color: #f4f4f5 !important; box-shadow: inset 0 0 0 3.5px #f4f4f5 !important; }
html body.dev-console .modal-dialog input:focus,
html body.dev-console .modal-dialog textarea:focus,
html body.dev-console .modal-dialog .pm-input:focus { border-color: #71717a !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important; }
html body.dev-console .modal-close:hover,
html body.dev-console .modal-back:hover { border-color: #52525b !important; background: rgba(255, 255, 255, 0.08) !important; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 820px) {
  html body.dev-console.dashboard-page .wsum-cell + .wsum-cell { border-top-color: rgba(255, 255, 255, 0.07); }
  html body.dev-console.dashboard-page .wsum-balance { border-radius: 0; }
}
@media (max-width: 640px) {
  html body.dev-console.dashboard-page .phead-card { padding: 18px; }
  html body.dev-console.dashboard-page .phead-avatar { width: 48px; height: 48px; border-radius: 15px; font-size: 19px; }
  html body.dev-console.dashboard-page .phead-title { font-size: 21px; }
  html body.dev-console.dashboard-page .wsum-cell { padding: 16px 18px 18px; }
  html body.dev-console.dashboard-page .wsum-balance-val { font-size: 30px; }
  html body.dev-console.dashboard-page .wstat-card { padding: 16px; }
  html body.dev-console.dashboard-page .wstat-val { font-size: 22px; margin-top: 12px; }
  html body.dev-console.dashboard-page .wstat-suffix { display: none; }
  html body.dev-console.dashboard-page .phead-edit { width: 38px; height: 38px; padding: 0; justify-content: center; }
  html body.dev-console.dashboard-page .wcv-card { padding: 16px !important; }
}

/* ───────────────────────── Fixes after first render ───────────────────────── */
/* sidebar tiles + badges keep their asset colours (Gram blue / USDT green) */
html body.dev-console .snav-tile--ton,
html body.dev-console .snav-badge--ton { color: #8ccaff; background: rgba(48, 161, 245, 0.16); border-color: transparent; }
html body.dev-console .snav-tile--usdt,
html body.dev-console .snav-badge--usdt { color: #6ee0b6; background: rgba(38, 161, 123, 0.18); border-color: transparent; }
html body.dev-console .snav-tile--off,
html body.dev-console .snav-badge--off { color: #85858d; background: rgba(255, 255, 255, 0.06); border-color: transparent; }
html body.dev-console .snav-badge { font-size: 10.5px; padding: 0 8px; }

/* "Muvaffaqiyatli" reads as success */
html body.dev-console.dashboard-page .wstat-tone-blue .wstat-foot-val strong { color: #4ade80; }

/* transactions card: the table runs edge to edge */
html body.dev-console.dashboard-page .wcv-card.wcv-tx { padding: 0 !important; overflow: hidden; }

/* chart: drop the old inner box/grid, keep only the SVG */
html body.dev-console.dashboard-page .wcv-card .snapshot-line-chart {
  padding: 4px 0 0; background: none !important; border: 0 !important; border-radius: 0; overflow: visible;
}
html body.dev-console.dashboard-page .wcv-card .snapshot-line-chart::before { display: none; }
html body.dev-console.dashboard-page .snapshot-grid-line,
html body.dev-console.dashboard-page .snapshot-axis { stroke: #232326 !important; }
html body.dev-console.dashboard-page .snapshot-y-label,
html body.dev-console.dashboard-page .snapshot-x-label { fill: #76767e !important; font-family: var(--g-font) !important; }
html body.dev-console.dashboard-page .snapshot-line { filter: none !important; stroke-width: 2.5 !important; }
html body.dev-console.dashboard-page .snapshot-line.stars { stroke: var(--g-amber) !important; fill: none !important; }
html body.dev-console.dashboard-page .snapshot-line.premium { stroke: var(--g-violet) !important; fill: none !important; }
html body.dev-console.dashboard-page .snapshot-node.stars { stroke: var(--g-amber) !important; fill: var(--g-card) !important; stroke-width: 2 !important; }
html body.dev-console.dashboard-page .snapshot-node.premium { stroke: var(--g-violet) !important; fill: var(--g-card) !important; stroke-width: 2 !important; }

/* donut: no inner box, readable centre value, soft legend cards */
html body.dev-console.dashboard-page .wcv-card .donut-layout.dev-ton-rating-layout.dev-ton-split-board { background: none !important; border: 0 !important; }
html body.dev-console.dashboard-page .dev-ton-donut-center strong { font-family: var(--g-font) !important; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; max-width: none; }
html body.dev-console.dashboard-page .dev-ton-donut-center span { font-size: 11px; color: var(--g-fnt); letter-spacing: 0.04em; }
html body.dev-console.dashboard-page .dev-ton-donut-legend-card { border: 0 !important; border-radius: 16px; background: var(--g-soft) !important; }
html body.dev-console.dashboard-page .dev-ton-donut-legend-card strong { font-weight: 600; }
html body.dev-console.dashboard-page .dev-ton-donut-dot { width: 10px; height: 10px; }
html body.dev-console.dashboard-page .dev-ton-donut-dot.tone-amber { background: var(--g-amber); }
html body.dev-console.dashboard-page .dev-ton-donut-dot.tone-violet { background: var(--g-violet); }
html body.dev-console.dashboard-page .dev-ton-donut-segment.tone-amber { fill: var(--g-amber); }
html body.dev-console.dashboard-page .dev-ton-donut-segment.tone-violet { fill: var(--g-violet); }

/* wallet-connect seed modal: neutral word chips + 12/24 switch */
html body.dev-console .modal-shell[data-modal="wallet-connect"] .seed-count-opt[aria-checked="true"] { background: #f4f4f5 !important; color: #111113 !important; border-color: #f4f4f5 !important; }
html body.dev-console .modal-dialog .recovery-field,
html body.dev-console .wallet-connect-form .recovery-field { background: #1c1c1f !important; border-color: #2c2c30 !important; }
html body.dev-console .modal-dialog .recovery-field:focus-within,
html body.dev-console .wallet-connect-form .recovery-field:focus-within { border-color: #71717a !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07) !important; }
html body.dev-console .modal-dialog .recovery-index { color: #76767e !important; }

/* project without a wallet: the header card stands alone, so round all corners */
html body.dev-console.dashboard-page .dev-main-stack:not(:has(.wsum-card)) .phead-card { border-radius: var(--g-r); margin-bottom: 14px; }

/* "TON hamyonini ulang" step card */
html body.dev-console.dashboard-page .dev-empty-wallet {
  border: 0 !important; border-radius: var(--g-r) !important; background: var(--g-card) !important; box-shadow: var(--g-sh) !important;
}
html body.dev-console.dashboard-page .dev-empty-wallet-title { font-family: var(--g-font) !important; letter-spacing: -0.035em; }
html body.dev-console.dashboard-page .dev-empty-wallet-step,
html body.dev-console.dashboard-page .dev-file-tag { border-radius: 99px !important; color: #e4e4e7 !important; background: rgba(255, 255, 255, 0.08) !important; border-color: transparent !important; }
html body.dev-console.dashboard-page .dev-empty-perk { border-radius: 99px !important; background: var(--g-soft) !important; border-color: transparent !important; }
html body.dev-console.dashboard-page .dev-empty-perk-icon,
html body.dev-console.dashboard-page .dev-empty-wallet-perk-icon { color: #e4e4e7 !important; background: transparent !important; }
html body.dev-console.dashboard-page .dev-empty-wallet-btn { border-radius: 18px !important; }
html body.dev-console.dashboard-page .dev-empty-wallet:not(.dev-pending-wallet) .dev-empty-wallet-btn-primary.hero-action-button,
html body.dev-console.dashboard-page .dev-empty-wallet-btn-primary.hero-action-button { background: #f4f4f5 !important; background-image: none !important; border-color: #f4f4f5 !important; color: #111113 !important; box-shadow: none !important; }
html body.dev-console.dashboard-page .dev-empty-wallet-btn-primary .dev-empty-btn-label { color: #111113 !important; }
html body.dev-console.dashboard-page .dev-empty-wallet-btn-primary .dev-empty-btn-sub { color: #5f5f68 !important; }
html body.dev-console.dashboard-page .dev-empty-wallet-btn-primary.hero-action-button:hover { background: #e4e4e7 !important; }
html body.dev-console.dashboard-page .dev-empty-wallet-btn-secondary { background: var(--g-soft) !important; border-color: var(--g-ln2) !important; }

/* ───────────────────────── Scrollbars ─────────────────────────
   The gutter is always reserved, so locking scroll (welcome overlay, modals) never makes the page
   jump sideways. Look: a thin graphite pill on a transparent track, a little brighter on hover.
   Chrome/Edge/Safari use ::-webkit-scrollbar (rounded pill); Firefox gets the standard properties
   (setting them in Chrome would disable the custom pill there). */
html:has(> body.dev-console) { scrollbar-gutter: stable; background: #0e0e10; }
@supports (-moz-appearance: none) {
  html:has(> body.dev-console),
  html body.dev-console * { scrollbar-width: thin; scrollbar-color: #3a3a40 transparent; }
}
html:has(> body.dev-console)::-webkit-scrollbar,
html body.dev-console ::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
html:has(> body.dev-console)::-webkit-scrollbar-track,
html body.dev-console ::-webkit-scrollbar-track { background: transparent; }
html:has(> body.dev-console)::-webkit-scrollbar-thumb,
html body.dev-console ::-webkit-scrollbar-thumb {
  min-height: 48px; border-radius: 99px; border: 3px solid transparent; background-clip: padding-box;
  background-color: #2e2e33;
}
html:has(> body.dev-console)::-webkit-scrollbar-thumb:hover,
html body.dev-console ::-webkit-scrollbar-thumb:hover { background-color: #48484f; }
html:has(> body.dev-console)::-webkit-scrollbar-thumb:active,
html body.dev-console ::-webkit-scrollbar-thumb:active { background-color: #5b5b63; }
html:has(> body.dev-console)::-webkit-scrollbar-corner,
html body.dev-console ::-webkit-scrollbar-corner { background: transparent; }
/* inner areas (transactions table, project list, modals) use a slimmer pill */
html body.dev-console .wcv-tx-wrap::-webkit-scrollbar,
html body.dev-console .snav-list::-webkit-scrollbar,
html body.dev-console .modal-dialog ::-webkit-scrollbar,
html body.dev-console .modal-dialog::-webkit-scrollbar { width: 10px; height: 10px; }
html body.dev-console .wcv-tx-wrap::-webkit-scrollbar-thumb { border-width: 3px; background-color: #2a2a2e; }

/* ───────────────────────── Getting started (empty dashboard) ───────────────────────── */
html body.dev-console.dashboard-page .pempty-stage.gs-stage {
  min-height: calc(100vh - 80px); display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px 0 40px;
}
html body.dev-console.dashboard-page .pempty-card.gs-card {
  width: min(640px, 100%); padding: 30px 32px 24px; text-align: left; gap: 0; display: block;
  background: radial-gradient(440px 300px at 6% -12%, rgba(242, 176, 30, 0.08), transparent 70%), var(--g-card);
  border: 0; border-radius: 26px; box-shadow: var(--g-sh); overflow: hidden; isolation: isolate;
  animation: gs-in .6s cubic-bezier(.22, 1, .36, 1) both;
}
/* cursor light (dashboard.js sets --mx/--my + .is-lit): neutral glow inside, warm gold on the rim */
html body.dev-console.dashboard-page .pempty-card.gs-card::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.04), transparent 65%); }
html body.dev-console.dashboard-page .pempty-card.gs-card::after { background: radial-gradient(240px circle at var(--mx) var(--my), rgba(242, 176, 30, 0.5), transparent 70%); }
@keyframes gs-in { from { opacity: 0; transform: translateY(10px); } }
.gs-head { display: flex; align-items: center; gap: 18px; }
.gs-gem { position: relative; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: #1c1c1f; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 14px 30px -14px rgba(242, 176, 30, 0.35); transition: opacity .25s ease; }
.gs-gem svg { width: 38px; height: 38px; filter: drop-shadow(0 4px 10px rgba(242, 176, 30, 0.35)); }
.gs-gem::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 2px rgba(242, 176, 30, 0.8); opacity: 0; }
html.wb2-new .gs-gem { opacity: 0; }
html.wb2-on.wb2-new .workspace-shell { scale: 1; }
.gs-gem.gs-landed { transition: none; animation: gs-pop .6s cubic-bezier(.34, 1.56, .64, 1); }
.gs-gem.gs-landed::after { animation: gs-ring .9s ease-out; }
@keyframes gs-pop { 0% { transform: scale(.82); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes gs-ring { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.gs-head-copy { min-width: 0; }
.gs-kicker { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: rgba(242, 176, 30, 0.12); color: #f6c453; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.gs-title { margin: 10px 0 0; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -0.035em; color: #fff; }
.gs-lead { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: #a8a8b0; }
.gs-steps { list-style: none; padding: 0; margin: 24px 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.gs-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #1c1c1f; min-width: 0; }
.gs-steps li i { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 600; color: #a8a8b0; background: #26262a; }
.gs-steps li span { min-width: 0; }
.gs-steps li b { display: block; font-size: 13.5px; font-weight: 600; color: #e4e4e7; }
.gs-steps li small { display: block; font-size: 12px; color: #76767e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-steps li.is-on { background: #232326; box-shadow: 0 0 0 1px rgba(242, 176, 30, 0.35) inset; }
.gs-steps li.is-on i { background: #f2b01e; color: #111; }
.gs-steps li.is-on b { color: #fff; }
.gs-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #a8a8b0; }
html body.dev-console.dashboard-page .gs-card .pempty-input-row {
  display: flex; align-items: center; gap: 6px; height: 58px; padding: 6px 6px 6px 18px; border-radius: 99px;
  background: #0e0e10; border: 0; box-shadow: 0 0 0 1px #2c2c30 inset; transition: box-shadow .2s ease;
}
html body.dev-console.dashboard-page .gs-card .pempty-input-row:focus-within { box-shadow: 0 0 0 1px #71717a inset, 0 0 0 4px rgba(255, 255, 255, 0.06); }
html body.dev-console.dashboard-page .gs-card .pempty-input-row.gs-pulse { animation: gs-pulse 1.1s ease-out; }
@keyframes gs-pulse { 0% { box-shadow: 0 0 0 1px #f2b01e inset, 0 0 0 0 rgba(242, 176, 30, 0.55); } 100% { box-shadow: 0 0 0 1px #71717a inset, 0 0 0 14px rgba(242, 176, 30, 0); } }
html body.dev-console.dashboard-page .gs-card .pempty-input {
  flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0;
  font-family: var(--g-font); font-size: 15.5px; color: #f2f2f3; padding: 0; text-align: left;
}
html body.dev-console.dashboard-page .gs-card .pempty-input::placeholder { color: #5f5f68; }
html body.dev-console.dashboard-page .gs-card .pempty-submit {
  height: 46px; padding: 0 20px; border-radius: 99px; border: 0; gap: 8px;
  background: #f4f4f5; color: #111113; font-family: var(--g-font); font-weight: 600; font-size: 14.5px;
  transition: background-color .15s ease, opacity .15s ease, transform .12s cubic-bezier(.22, 1, .36, 1);
}
html body.dev-console.dashboard-page .gs-card .pempty-submit:hover:not(:disabled) { background: #e4e4e7; }
html body.dev-console.dashboard-page .gs-card .pempty-submit:active:not(:disabled) { transform: scale(0.97); }
html body.dev-console.dashboard-page .gs-card .pempty-submit:disabled { opacity: 0.35; background: #f4f4f5; color: #111113; cursor: not-allowed; }
html body.dev-console.dashboard-page .gs-card .pempty-submit.is-loading { opacity: 0.85; }
html body.dev-console.dashboard-page .gs-card .pempty-spin { border-color: rgba(17, 17, 19, 0.25); border-top-color: #111113; }
.gs-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
html body.dev-console.dashboard-page .gs-card .pempty-hint { margin: 0; font-size: 12.5px; color: #76767e; text-align: left; }
.gs-how { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 99px;
  background: #1c1c1f; color: #e4e4e7; font: 600 13px var(--g-font); box-shadow: 0 0 0 1px #2c2c30 inset; cursor: pointer; transition: background-color .15s ease; }
.gs-how:hover { background: #26262a; }
.gs-tiles { width: min(640px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gs-tile { padding: 16px; border-radius: 20px; background: var(--g-card); box-shadow: var(--g-sh); animation: gs-in .6s cubic-bezier(.22, 1, .36, 1) both; }
.gs-tile:nth-child(2) { animation-delay: .06s; } .gs-tile:nth-child(3) { animation-delay: .12s; }
.gs-ti { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; }
.gs-ti svg { width: 17px; height: 17px; }
.gs-ti--key { background: #26262a; color: #e4e4e7; }
.gs-ti--coin { background: rgba(38, 161, 123, 0.18); color: #6ee0b6; }
.gs-ti--bolt { background: rgba(242, 176, 30, 0.13); color: #f6c453; }
.gs-tile b { display: block; font-size: 14px; font-weight: 600; color: #f2f2f3; }
.gs-tile small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: #76767e; }
@media (max-width: 640px) {
  html body.dev-console.dashboard-page .pempty-stage.gs-stage { min-height: 0; padding: 56px 0 24px; align-content: start; }
  html body.dev-console.dashboard-page .pempty-card.gs-card { padding: 22px 18px 18px; border-radius: 22px; }
  .gs-head { align-items: flex-start; gap: 14px; }
  .gs-gem { flex-basis: 52px; width: 52px; height: 52px; border-radius: 16px; }
  .gs-gem svg { width: 30px; height: 30px; }
  .gs-title { font-size: 21px; }
  .gs-steps { gap: 6px; margin: 18px 0; }
  .gs-steps li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; border-radius: 14px; }
  .gs-steps li i { flex-basis: 24px; width: 24px; height: 24px; font-size: 12px; }
  .gs-steps li b { font-size: 13px; }
  .gs-steps li small { display: none; }
  .gs-foot { flex-direction: column; align-items: stretch; }
  .gs-how { justify-content: center; }
  html body.dev-console.dashboard-page .gs-card .pempty-input-row { flex-direction: row; align-items: center; height: 54px; padding-left: 16px; }
  html body.dev-console.dashboard-page .gs-card .pempty-input { font-size: 16px; }
  html body.dev-console.dashboard-page .gs-card .pempty-submit { height: 42px; padding: 0 16px; }
  .gs-tiles { grid-template-columns: minmax(0, 1fr); }
  .gs-tile { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px; }
  .gs-tile .gs-ti { grid-row: span 2; margin: 0; }
}

/* ───────────────────────── "Qanday ishlaydi?" tour cards ───────────────────────── */
.tour { position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center; padding: 16px; font-family: var(--g-font); }
.tour[hidden] { display: none; }
.tour-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.tour.on .tour-scrim { opacity: 1; }
.tour-sheet { position: relative; width: min(440px, 100%); border-radius: 28px; background: #161618; color: #f2f2f3; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 40px 90px -20px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .25s ease, transform .4s cubic-bezier(.22, 1, .36, 1); }
.tour.on .tour-sheet { opacity: 1; transform: none; }
.tour-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.tour-count { font-size: 12.5px; color: #76767e; font-variant-numeric: tabular-nums; }
.tour-count b { color: #e4e4e7; font-weight: 600; }
.tour-skip { height: 30px; padding: 0 12px; border-radius: 99px; background: transparent; border: 0; color: #a8a8b0; font: 500 13px var(--g-font); cursor: pointer; }
.tour-skip:hover { background: #1f1f22; color: #fff; }
.tour-view { overflow: hidden; touch-action: pan-y; cursor: grab; }
.tour-view:active { cursor: grabbing; }
.tour-track { display: flex; transition: transform .45s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.tour-slide { flex: 0 0 100%; padding: 14px 22px 4px; user-select: none; -webkit-user-select: none; }
.tour-slide h3 { margin: 18px 0 0; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; }
.tour-slide p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: #a8a8b0; min-height: 66px; }
.tour-art { position: relative; height: 200px; border-radius: 20px; background: radial-gradient(80% 80% at 50% 0%, #222225, #18181b); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset; overflow: hidden; display: grid; place-items: center; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 18px; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: #3a3a40; cursor: pointer; transition: width .3s cubic-bezier(.22, 1, .36, 1), background-color .3s; }
.tour-dots button[aria-selected="true"] { width: 22px; background: #f2b01e; }
.tour-nav { display: flex; gap: 8px; }
.tour-back { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #1f1f22; color: #e4e4e7; cursor: pointer; transition: opacity .2s; }
.tour-back svg { width: 18px; height: 18px; }
.tour-back:disabled { opacity: .3; cursor: default; }
.tour-next { height: 44px; min-width: 112px; padding: 0 20px; border-radius: 99px; border: 0; background: #f4f4f5; color: #111113; font: 600 14.5px var(--g-font); cursor: pointer; transition: background-color .15s, transform .12s cubic-bezier(.22, 1, .36, 1); }
.tour-next:hover { background: #e4e4e7; }
.tour-next:active { transform: scale(.97); }
.tour-next.is-start { background: #f2b01e; color: #111; }
/* illustration 1: projects */
.art-proj { align-content: center; gap: 8px; padding: 0 26px; place-items: stretch; }
.ap-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #1f1f22; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset; opacity: 0; transform: translateY(10px); }
.ap-row span { min-width: 0; flex: 1; }
.ap-row b { display: block; font-size: 13.5px; font-weight: 600; }
.ap-row small { display: block; font: 400 11.5px "JetBrains Mono", ui-monospace, monospace; color: #76767e; }
.ap-t { flex: 0 0 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 13px; }
.ap-t.usdt { background: rgba(38, 161, 123, 0.2); color: #6ee0b6; } .ap-t.gram { background: rgba(48, 161, 245, 0.18); color: #8ccaff; } .ap-t.plus { background: #f4f4f5; color: #111; }
.ap-chip { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.ap-chip.usdt { background: rgba(38, 161, 123, 0.18); color: #6ee0b6; } .ap-chip.gram { background: rgba(48, 161, 245, 0.16); color: #8ccaff; }
.ap-c { box-shadow: 0 0 0 1px rgba(242, 176, 30, 0.35) inset; }
.is-on .ap-row { animation: tr-up .55s cubic-bezier(.22, 1, .36, 1) forwards; }
.is-on .ap-b { animation-delay: .1s; } .is-on .ap-c { animation-delay: .2s; }
/* illustration 2: seed + lock */
.as-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: min(320px, 86%); }
.as-grid i { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px; border-radius: 9px; background: #1f1f22; font: 400 10.5px "JetBrains Mono", ui-monospace, monospace; font-style: normal; color: #5f5f68; opacity: 0; transform: scale(.8); }
.as-grid i b { color: #76767e; font-weight: 500; }
.as-grid i span { color: #a8a8b0; letter-spacing: .05em; }
.is-on .as-grid i { animation: tr-pop .4s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(var(--i) * 40ms); }
.as-lock { position: absolute; right: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 99px; background: rgba(34, 197, 94, 0.14); color: #4ade80; font-size: 12px; font-weight: 600; opacity: 0; }
.as-lock svg { width: 13px; height: 13px; }
.is-on .as-lock { animation: tr-up .5s cubic-bezier(.22, 1, .36, 1) .6s forwards; }
/* illustration 3: API call */
.art-api { align-content: center; gap: 10px; padding: 0 22px; place-items: stretch; }
.aa-code { margin: 0; padding: 14px; border-radius: 14px; background: #0e0e10; font: 400 12px/1.75 "JetBrains Mono", ui-monospace, monospace; color: #c9c9d1; white-space: pre-wrap; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  clip-path: inset(0 100% 0 0); }
.aa-code .k { color: #7aa2f7; } .aa-code .s { color: #9ece6a; }
.is-on .aa-code { animation: tr-type 1s steps(26) .15s forwards; }
.aa-res { display: flex; align-items: center; justify-content: space-between; opacity: 0; }
.aa-ok { font: 600 12.5px "JetBrains Mono", ui-monospace, monospace; color: #4ade80; padding: 4px 10px; border-radius: 99px; background: rgba(34, 197, 94, 0.12); }
.aa-t { display: inline-flex; align-items: center; gap: 5px; font: 600 12.5px "JetBrains Mono", ui-monospace, monospace; color: #f6c453; }
.aa-t svg { width: 13px; height: 13px; }
.is-on .aa-res { animation: tr-up .5s cubic-bezier(.22, 1, .36, 1) 1.2s forwards; }
/* illustration 4: stats + gold */
.at-bars { display: flex; align-items: flex-end; gap: 7px; width: min(300px, 80%); height: 112px; }
.at-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: #2a2a2e; transform-origin: bottom; transform: scaleY(.08); }
.at-bars i:nth-child(n+6) { background: #8b6cf6; } .at-bars i:last-child { background: #f2b01e; }
.is-on .at-bars i { animation: tr-grow .7s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: calc(var(--i) * 55ms); }
.at-gold { position: absolute; right: 16px; top: 14px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 99px; background: rgba(242, 176, 30, 0.14); color: #f6c453; font-size: 12px; font-weight: 600; opacity: 0; }
.at-gold svg { width: 13px; height: 13px; }
.is-on .at-gold { animation: tr-pop .5s cubic-bezier(.34, 1.56, .64, 1) .8s forwards; }
@keyframes tr-up { to { opacity: 1; transform: none; } }
@keyframes tr-pop { to { opacity: 1; transform: none; } }
@keyframes tr-type { to { clip-path: inset(0 0 0 0); } }
@keyframes tr-grow { to { transform: scaleY(1); } }
@media (max-width: 640px) {
  .tour { place-items: end center; padding: 0; }
  .tour-sheet { width: 100%; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce) {
  .tour-track, .tour-sheet, .gs-card, .gs-tile { transition: none !important; animation: none !important; }
  .tour-slide * { animation-duration: .01ms !important; animation-delay: 0s !important; }
}

/* ───────────────────────── Phone: profile card + one-line page header ───────────────────────── */
html body.dev-console .snav-avatar img { border-radius: 50%; }
@media (max-width: 640px) {
  /* account card: big touch targets — avatar + full email on top, two labelled pill buttons below */
  html body.dev-console .snav-user {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px;
    margin-top: 6px; padding: 12px; border-radius: 22px;
  }
  html body.dev-console .snav-avatar { width: 44px; height: 44px; font-size: 16px; }
  html body.dev-console .snav-crown { width: 18px; height: 18px; right: -3px; bottom: -3px; }
  html body.dev-console .snav-user-copy { gap: 1px; }
  html body.dev-console .snav-user-name { font-size: 16px; line-height: 21px; }
  html body.dev-console .snav-user-meta { font-size: 13px; line-height: 18px; }
  html body.dev-console .snav-user-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  html body.dev-console .snav-icon-btn {
    width: auto; height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 99px; background: rgba(255, 255, 255, 0.07); color: #e4e4e7;
    font: 600 14.5px var(--g-font); text-decoration: none; -webkit-tap-highlight-color: transparent;
    transition: transform .12s cubic-bezier(.22, 1, .36, 1), background-color .15s ease;
  }
  html body.dev-console .snav-icon-btn svg { width: 18px; height: 18px; flex: none; }
  html body.dev-console .snav-icon-label { display: inline; white-space: nowrap; }
  html body.dev-console .snav-icon-btn:active { transform: scale(.97); background: rgba(255, 255, 255, 0.12); }
  html body.dev-console .snav-icon-btn.active { background: #f4f4f5; color: #111113; }
  html body.dev-console .snav-icon-btn--exit { color: #f87171; background: rgba(239, 68, 68, 0.1); }
  html body.dev-console .snav-icon-btn--exit:active { background: rgba(239, 68, 68, 0.18); }

  /* page header stays one row: menu · project name … /api/v1 · API qo'llanma ("Dashboard ›" lives in the menu) */
  html body.dev-console.dashboard-page .phead-bar { flex-wrap: nowrap; gap: 8px; }
  html body.dev-console.dashboard-page .phead-bc { flex: 1 1 auto; min-width: 0; gap: 10px; }
  html body.dev-console.dashboard-page .phead-bc-link,
  html body.dev-console.dashboard-page .phead-bc-sep { display: none; }
  html body.dev-console.dashboard-page .phead-bc-current { max-width: none; min-width: 0; font-size: 15px; }
  html body.dev-console.dashboard-page .phead-bar-right { flex: none; gap: 6px; }
  html body.dev-console.dashboard-page .phead-api-pill { display: inline-flex; height: 40px; padding: 0 12px; font-size: 12px; }
  html body.dev-console.dashboard-page .phead-api-btn { height: 40px; padding: 0 14px; gap: 7px; font-size: 14px; white-space: nowrap; }
}
/* narrow phones: drop the informational /api/v1 chip so the project name keeps room (RU label "API-документация" is longer) */
@media (max-width: 359px) {
  html body.dev-console.dashboard-page .phead-api-pill { display: none; }
}
@media (max-width: 419px) {
  html[lang="ru"] body.dev-console.dashboard-page .phead-api-pill { display: none; }
}
