@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --surface-2: #161618;
  --surface-3: #1c1c1f;
  --surface-4: #24242a;
  --border: #1f1f23;
  --border-strong: #2a2a30;
  --border-hover: #3a3a42;
  --text: #ececef;
  --text-2: #a1a1aa;
  --muted: #71717a;

  --up: #2ebd85;
  --up-hover: #29a877;
  --up-soft: rgba(46, 189, 133, 0.1);
  --down: #f6465d;
  --down-hover: #e03e54;
  --down-soft: rgba(246, 70, 93, 0.1);
  --accent: #7c5cfc;
  --accent-hover: #6e4ef0;
  --accent-text: #a995ff;
  --accent-soft: rgba(124, 92, 252, 0.12);
  --line-focus: rgba(255, 255, 255, 0.24);
  --line-sel: rgba(255, 255, 255, 0.3);
  --sel-bg: linear-gradient(180deg, #232328 0%, #1a1a1e 100%);
  --warn: #e9a23b;

  --featured: linear-gradient(150deg, #5d47d6 0%, #3d2d99 58%, #2a2070 100%);

  --r-sm: 8px;
  --r: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --pill: 999px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: var(--font);
  --pop: 0 16px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #c3b6ff; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
strong, b { font-weight: 600; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }
[hidden] { display: none !important; }
::selection { background: rgba(124, 92, 252, 0.35); }
* { scrollbar-width: thin; scrollbar-color: #2a2a30 transparent; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .35); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.up-text { color: var(--up); }
.down-text { color: var(--down); }
.right { text-align: right; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: var(--pill);
  border: 1px solid transparent; font-weight: 600; font-size: 13.5px;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s; text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-up { background: var(--up); color: #fff !important; }
.btn-up:hover { background: var(--up-hover); }
.btn-down { background: var(--down); color: #fff !important; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text) !important; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-hover); }
.btn-lg { height: 46px; font-size: 14.5px; padding: 0 24px; }
.btn-block { width: 100%; }
.btn-sm { height: 30px; padding: 0 13px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2);
  transition: .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-hover); }
.icon-btn svg, .side-item svg, .trade-btn svg, .seg svg, .chev, .dir, .chip-ico svg, .pill-nav svg, .ico {
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.ico { --ia: currentColor; }
.side-item.active .ico, .side-item:hover .ico, .pill-nav button.active .ico, .pill-nav button:hover .ico,
.cat-tabs button.active .ico, .seg button.active .ico, .tool-btn .ico, .icon-btn:hover .ico,
.chip-ico .ico, .pf-ico .ico, .es-ico .ico, .search-wrap:focus-within .ico { --ia: var(--accent-text); }
.kpi.featured .chip-ico .ico, .pf-out .pf-ico .ico, .trade-btn .ico, .tx-ico .ico { --ia: currentColor; }
.icon-btn svg { width: 17px; height: 17px; }

.chip-ico {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-2);
}
.chip-ico svg { width: 15px; height: 15px; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 12px; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea, .search {
  height: 44px; padding: 0 14px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r);
  outline: none; transition: border-color .15s; font-weight: 500;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field select option { background: var(--surface-2); }
.field input::placeholder, .search::placeholder { color: var(--muted); }
.field input:hover, .field select:hover, .search:hover { border-color: var(--border-hover); }
.field input:focus, .field select:focus, .search:focus { border-color: var(--line-sel); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); }
.check input { margin-top: 3px; accent-color: var(--accent); }

.alert { padding: 11px 14px; border-radius: var(--r); font-size: 13px; margin: 14px 0; }
.alert-err { background: var(--down-soft); color: #ff8a99; border: 1px solid rgba(246,70,93,.22); }
.alert-ok { background: var(--up-soft); color: #6fd8ad; border: 1px solid rgba(46,189,133,.22); }
.note { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 11px 14px; border-radius: var(--r); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: var(--pill); text-transform: capitalize; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-pending { background: rgba(233,162,59,.1); color: var(--warn); }
.pill-approved, .pill-win, .pill-active { background: var(--up-soft); color: var(--up); }
.pill-rejected, .pill-loss, .pill-blocked { background: var(--down-soft); color: var(--down); }
.pill-open, .pill-draw, .pill-void { background: var(--accent-soft); color: var(--accent-text); }
.pill-demo { background: rgba(233,162,59,.1); color: var(--warn); }
.pill-real { background: var(--up-soft); color: var(--up); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 700; font-size: 17px; letter-spacing: -.02em; text-decoration: none !important; }
.brand-mark { flex-shrink: 0; }

.card, .glass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }

.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 100; width: min(340px, calc(100vw - 32px)); }
.toast {
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 12px 14px 12px 16px; font-size: 13px; box-shadow: var(--pop);
  transform: translateY(8px); opacity: 0; transition: .2s ease; position: relative; overflow: hidden;
}
.toast::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.toast.show { transform: none; opacity: 1; }
.toast.win::before { background: var(--up); }
.toast.loss::before, .toast.err::before { background: var(--down); }
.toast-sub { color: var(--text-2); font-size: 12px; }
.toast-main { font-size: 16px; font-weight: 600; margin-top: 2px; }

.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 400px; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
.auth-brand { margin-bottom: 28px; }
.auth-title { font-size: 22px; margin: 0 0 6px; letter-spacing: -.025em; font-weight: 600; }
.auth-card .form { margin-top: 22px; }
.auth-alt { margin-top: 20px; text-align: center; font-size: 13px; }
.auth-perk { display: inline-flex; align-items: center; gap: 7px; height: 30px; margin: 4px 0 6px; padding: 0 12px 0 9px; border-radius: var(--pill); border: 1px solid rgba(46, 189, 133, .25); background: var(--up-soft); color: #6fd8ad; font-size: 12.5px; font-weight: 500; }
.auth-perk .ico { stroke-width: 2.2; --ia: currentColor; }
.quick-demo { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }
.quick-btns { display: flex; gap: 6px; }

.terminal { overflow: hidden; height: 100vh; height: 100dvh; }
.app {
  display: grid; height: 100%;
  grid-template-columns: 72px minmax(0, 1fr) 288px;
  grid-template-rows: 64px minmax(0, 1fr);
  grid-template-areas: "top top top" "side chart panel";
  position: relative;
}

.topbar { grid-area: top; display: flex; align-items: center; gap: 12px; padding: 0 16px; min-width: 0; border-bottom: 1px solid var(--border); background: var(--bg); }
.topbar .brand { margin-right: 4px; flex-shrink: 0; }
.asset-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 3px; border-radius: var(--pill); border: 1px solid var(--border); }
.asset-tabs:empty { display: none; }
.asset-tabs::-webkit-scrollbar { display: none; }
.asset-tab {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px;
  border-radius: var(--pill); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; flex-shrink: 0; user-select: none; color: var(--text-2); transition: .15s;
}
.asset-tab:hover { color: var(--text); }
.asset-tab.active { color: var(--text); background: var(--surface-3); border-color: var(--border-strong); }
.tab-sym { font-weight: 600; font-size: 13px; }
.tab-pay { font-size: 11.5px; color: var(--up); font-weight: 600; }
.tab-x { width: 22px; height: 22px; border: 0; background: none; color: var(--muted); border-radius: 50%; font-size: 15px; line-height: 1; }
.tab-x:hover { background: var(--surface-4); color: var(--text); }
.asset-tab:not(:has(.tab-x)) { padding-right: 14px; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.account-switch { position: relative; }
.account-btn {
  display: grid; grid-template-columns: auto 14px; column-gap: 12px; text-align: left; align-items: center;
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--pill);
  padding: 3px 14px 4px 18px; height: 44px; transition: .15s;
}
.account-btn:hover { border-color: var(--border-hover); background: var(--surface); }
.account-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--warn); font-weight: 600; display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.account-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.is-real .account-label { color: var(--up); }
.account-balance { grid-row: 2; font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 1.3; }
.chev { grid-row: 1 / span 2; grid-column: 2; width: 14px; height: 14px; color: var(--muted); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; z-index: 30; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 6px; box-shadow: var(--pop); }
.acct-option { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r); background: none; border: 0; font-weight: 500; }
.acct-option:hover { background: var(--surface-3); }
.acct-option.active { background: var(--surface-3); }
.acct-option strong { font-weight: 600; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 10px; }
.dot-real { background: var(--up); }
.dot-demo { background: var(--warn); }
.dropdown-sep { height: 1px; background: var(--border-strong); margin: 6px 4px; }
.dropdown-link { width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: var(--r); color: var(--text-2); font-size: 13px; }
.dropdown-link:hover { background: var(--surface-3); color: var(--text); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer;
}
.avatar.lg { width: 52px; height: 52px; font-size: 17px; cursor: default; }

.sidenav { grid-area: side; display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 4px; z-index: 20; border-right: 1px solid var(--border); background: var(--bg); }
.side-item {
  width: 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0;
  border-radius: var(--r-md); border: 0; background: none; color: var(--muted);
  font-size: 10.5px; font-weight: 500; text-decoration: none !important; transition: .15s;
}
.side-item svg { width: 20px; height: 20px; }
.side-item:hover { color: var(--text); background: var(--surface); }
.side-item.active { color: var(--text); background: var(--surface-2); }

.drawer {
  position: absolute; left: 72px; top: 64px; bottom: 0; width: 370px; z-index: 15;
  background: var(--surface); border-right: 1px solid var(--border-strong);
  display: flex; flex-direction: column; transform: translateX(-12px); opacity: 0; transition: .2s ease;
  box-shadow: 24px 0 48px rgba(0,0,0,.4);
}
.drawer.open { transform: none; opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.drawer-body { padding: 18px 20px 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 24px 0 10px; font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 2px; }
.stat span { font-size: 11.5px; color: var(--muted); }
.stat strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.stat small { font-weight: 500; }
.acct-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; color: var(--warn); }
.acct-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.acct-pill.real { color: var(--up); }

.hist-row { padding: 12px 0; border-bottom: 1px solid var(--border); display: grid; gap: 3px; }
.hist-main, .hist-sub { display: flex; justify-content: space-between; gap: 10px; }
.hist-sub { font-size: 12px; }
#histMore { margin-top: 14px; }

.wallet-bal { display: grid; gap: 2px; margin-bottom: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--featured); }
.wallet-bal .muted { color: rgba(255,255,255,.7); }
.wallet-bal strong { font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: #fff; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.method { position: relative; }
.method input { position: absolute; opacity: 0; }
.method span { display: grid; place-items: center; height: 42px; border: 1px solid var(--border-strong); border-radius: var(--r); font-size: 12.5px; font-weight: 500; cursor: pointer; text-align: center; padding: 0 6px; transition: .15s; color: var(--text-2); }
.method span:hover { border-color: var(--border-hover); color: var(--text); }
.method input:checked + span { border-color: var(--line-sel); background: var(--surface-3); color: var(--text); }
.method input:focus-visible + span { outline: 2px solid var(--line-sel); }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: -6px; }
.chip { height: 32px; padding: 0 4px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: transparent; font-size: 12px; font-weight: 500; color: var(--text-2); }
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.tx-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tx-row strong { font-weight: 500; }
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.logout { margin-top: 24px; color: var(--down) !important; }
.help ol { padding-left: 18px; color: var(--text-2); margin: 0; display: grid; gap: 8px; }
.kbd-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
kbd { font-family: var(--font); font-weight: 500; font-size: 11px; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 6px; color: var(--text); }

.chart-area { grid-area: chart; position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.chart-toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; position: relative; z-index: 2; }
.chart-asset { display: flex; align-items: baseline; gap: 12px; margin-right: auto; min-width: 0; }
.chart-symbol { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.chart-price { font-size: 15px; font-weight: 500; color: var(--text-2); padding: 1px 6px; border-radius: 6px; transition: color .3s; }
.chart-price.tick-up { color: var(--up); }
.chart-price.tick-down { color: var(--down); }
.chart-tools { display: flex; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--pill); padding: 3px; gap: 1px; flex-shrink: 0; }
.seg button { border: 0; background: none; height: 28px; min-width: 34px; padding: 0 10px; border-radius: var(--pill); color: var(--muted); font-size: 12px; font-weight: 500; display: grid; place-items: center; transition: .15s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--surface-3); color: var(--text); }
.seg svg { width: 16px; height: 16px; }
.seg-wide { display: flex; margin-bottom: 16px; }
.seg-wide button { flex: 1; height: 34px; font-size: 13px; }
.chart { flex: 1; min-height: 0; position: relative; }
.chart-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.chart-area::after { content: ""; position: absolute; inset: 56px 70px 30px 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.chart-area.hint-up::after { opacity: 1; background: linear-gradient(to bottom, rgba(46,189,133,.07), transparent 50%); }
.chart-area.hint-down::after { opacity: 1; background: linear-gradient(to top, rgba(246,70,93,.07), transparent 50%); }

.trade-panel { grid-area: panel; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; border-left: 1px solid var(--border); background: var(--bg); }
.tp-row { display: grid; gap: 12px; }
.ctl { position: relative; }
.ctl-label { font-size: 12px; color: var(--muted); margin: 0 0 6px 2px; font-weight: 500; }
.ctl-box { display: grid; grid-template-columns: 40px 1fr 40px; height: 48px; padding: 3px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--pill); transition: border-color .15s; }
.ctl-box:hover { border-color: var(--border-hover); }
.ctl-box:focus-within { border-color: var(--line-sel); }
.ctl-step { border: 0; background: var(--surface-3); color: var(--text-2); font-size: 17px; border-radius: 50%; transition: .15s; }
.ctl-step:hover { background: var(--surface-4); color: var(--text); }
.ctl-value { border: 0; background: none; text-align: center; font-size: 17px; font-weight: 600; width: 100%; outline: none; min-width: 0; }
.presets { position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 6px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--pop); }
.presets button { height: 34px; border: 0; border-radius: var(--r-sm); background: transparent; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.presets button:hover { background: var(--surface-4); color: var(--text); }
.payout-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 4px; color: var(--text-2); }
.payout-row strong { color: var(--up); font-weight: 600; }
.payout-amount { font-size: 13px; font-weight: 500; }
.tp-actions { display: grid; gap: 8px; }
.trade-btn {
  height: 60px; border: 0; border-radius: var(--r-md); color: #fff !important; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .06s; text-decoration: none !important;
}
.trade-btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.trade-btn.up { background: var(--up); }
.trade-btn.up:hover { background: var(--up-hover); }
.trade-btn.down { background: var(--down); }
.trade-btn.down:hover { background: var(--down-hover); }
.trade-btn:active { transform: scale(.99); }
.trade-btn.busy { opacity: .7; pointer-events: none; }
.trade-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.tp-trades { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--border); margin: 4px -16px -16px; }
.tabs-mini { display: flex; gap: 2px; padding: 10px 12px 4px; }
.tabs-mini button { border: 0; background: none; height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 500; color: var(--muted); border-radius: var(--pill); }
.tabs-mini button:hover { color: var(--text); }
.tabs-mini button.active { color: var(--text); background: var(--surface-2); }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: var(--pill); background: var(--surface-4); color: var(--text-2); font-size: 10.5px; }
.trade-list { overflow-y: auto; padding: 6px 12px 12px; flex: 1; overscroll-behavior: contain; }
.trade-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 6px; display: grid; gap: 7px; }
.trade-item.is-win { box-shadow: inset 2px 0 0 var(--up); }
.trade-item.is-loss { box-shadow: inset 2px 0 0 var(--down); }
.ti-top, .ti-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; }
.ti-sym { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.ti-amt { font-weight: 500; }
.dir { width: 15px; height: 15px; stroke-width: 2.2; }
.dir.up { color: var(--up); }
.dir.down { color: var(--down); }
.ti-bar { height: 3px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.ti-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .25s linear; }
.empty { text-align: center; color: var(--text-2); padding: 28px 12px; font-size: 13px; line-height: 1.7; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: grid; place-items: start center; padding: 72px 16px 16px; }
.modal-card { width: 100%; max-width: 580px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: var(--pop); overflow: hidden; }
.modal-head { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); align-items: center; }
.modal-head .search { border-radius: var(--pill); height: 42px; }
.search-wrap { position: relative; flex: 1; min-width: 0; display: block; }
.search-wrap .ico { position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap .search { padding-left: 42px; }
.search-wrap:focus-within .ico { color: var(--text-2); }
.cat-tabs { display: flex; gap: 4px; padding: 12px 14px; overflow-x: auto; scrollbar-width: none; }
.cat-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: none; height: 30px; padding: 0 13px 0 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.cat-tabs button:hover { color: var(--text); }
.cat-tabs .ico { width: 14px; height: 14px; color: var(--muted); }
.cat-tabs button.active .ico, .cat-tabs button:hover .ico { color: currentColor; }
.cat-tabs button.active { background: var(--surface-3); border-color: var(--border-hover); color: var(--text); }
.asset-table-head, .asset-row { display: grid; grid-template-columns: 1fr 110px 72px 62px; gap: 8px; align-items: center; }
.asset-table-head { font-size: 11px; color: var(--muted); font-weight: 500; margin: 0 14px; padding: 9px 12px; border-radius: var(--pill); background: var(--surface-2); }
.asset-table-head span:not(:first-child), .asset-row > span:not(:first-child) { text-align: right; }
.asset-list { max-height: min(60vh, 520px); overflow-y: auto; padding: 6px 14px 12px; }
.asset-row { width: 100%; border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: var(--r); }
.asset-row:hover { background: var(--surface-2); }
.asset-row.active { background: var(--surface-3); }
.asset-row strong { font-weight: 600; }
.asset-row small { display: block; color: var(--muted); font-size: 11.5px; }
.pay-badge { color: var(--up); font-weight: 600; font-size: 13px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(10,10,11,.9); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.nav-links { display: flex; gap: 2px; padding: 3px; border-radius: var(--pill); border: 1px solid var(--border); margin-left: 12px; }
.nav-links a { color: var(--text-2); font-size: 13.5px; font-weight: 500; padding: 7px 15px; border-radius: var(--pill); }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { margin-left: auto; display: flex; gap: 8px; }

.ticker { border-bottom: 1px solid var(--border); overflow: hidden; height: 38px; display: flex; align-items: center; background: var(--bg); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; }
.tick { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; font-size: 12.5px; white-space: nowrap; border-right: 1px solid var(--border); }
.tick b { font-weight: 600; }
.tick .tp { color: var(--text-2); }
@keyframes ticker { to { transform: translateX(-50%); } }

.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.04em; margin: 0 0 20px; font-weight: 600; max-width: 560px; }
.hero p.lead { font-size: 16.5px; color: var(--text-2); max-width: 470px; margin: 0 0 30px; line-height: 1.65; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.text-link { color: var(--text) !important; font-weight: 500; font-size: 14.5px; }
.text-link span { display: inline-block; transition: transform .15s; }
.text-link:hover span { transform: translateX(3px); }
.hero-facts { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 14px; height: 14px; flex-shrink: 0; background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ebd85' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

.preview { border-radius: 20px; border: 1px solid var(--border-strong); background: var(--surface); overflow: hidden; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.pv-asset { display: flex; align-items: baseline; gap: 10px; }
.preview-head .sym { font-weight: 600; font-size: 14.5px; }
.preview-head .px { font-weight: 500; color: var(--text-2); font-size: 14px; }
.preview-head .pay { font-size: 12.5px; color: var(--up); font-weight: 600; }
.preview-chart { height: 300px; }
.preview-foot { padding: 14px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.pv-ticket { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r); }
.pv-ticket div { display: grid; gap: 1px; padding: 9px 12px; }
.pv-ticket div + div { border-left: 1px solid var(--border); }
.pv-ticket span { font-size: 11.5px; color: var(--muted); }
.pv-ticket b { font-size: 14px; font-weight: 600; }
.pv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-actions .trade-btn { height: 48px; font-size: 14.5px; border-radius: var(--r); }

.section { padding: 88px 0; border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section h2 { font-size: 32px; letter-spacing: -.035em; margin: 0; line-height: 1.15; font-weight: 600; }
.section .sub { color: var(--text-2); margin: 8px 0 0; max-width: 540px; font-size: 15px; }

.table-shell { border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); padding: 6px; overflow-x: auto; }
.market-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.market-table th, .market-table td { padding: 14px 16px; text-align: left; white-space: nowrap; }
.market-table td { border-bottom: 1px solid var(--border); }
.market-table th { font-size: 12px; color: var(--muted); font-weight: 500; background: var(--surface-2); }
.market-table th:first-child { border-radius: var(--r) 0 0 var(--r); }
.market-table th:last-child { border-radius: 0 var(--r) var(--r) 0; }
.market-table tr:last-child td { border-bottom: 0; }
.market-table tbody tr:hover td { background: rgba(255,255,255,.012); }
.market-table td.num, .market-table th.num { text-align: right; }
.market-table td.num { font-weight: 500; }
.market-table strong { font-weight: 600; }
.market-table .name { color: var(--muted); font-size: 12.5px; margin-left: 10px; }
.mt-ico { display: inline-flex; vertical-align: middle; margin-right: 12px; }
.pv-asset { align-items: center; }
.pv-asset .mt-ico { margin-right: 0; }
.market-table .cat { font-size: 12.5px; text-transform: capitalize; color: var(--text-2); }
.market-table .pay-tag { color: var(--up); font-weight: 600; }
.show-all { display: none; width: 100%; height: 44px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.show-all:hover { color: var(--text); }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.how-step { padding: 26px; }
.how-step + .how-step { border-left: 1px solid var(--border); }
.how-ui { display: flex; align-items: center; gap: 8px; height: 44px; margin-bottom: 22px; }
.ui-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--pill); font-size: 13px; font-weight: 600; background: var(--surface-2); }
.ui-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: var(--r); font-size: 13.5px; font-weight: 600; color: #fff; }
.ui-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ui-btn.up { background: var(--up); }
.ui-btn.down { background: var(--down); }
.ui-result { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.ui-note { font-size: 12.5px; color: var(--muted); }
.how-step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.how-step p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }

.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.spec { border-top: 1px solid var(--border-strong); padding-top: 18px; }
.spec h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; }
.spec p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }


.cta-band { padding: 72px 0; border-bottom: 1px solid var(--border); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-row h2 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.03em; font-weight: 600; }
.cta-row p { color: var(--text-2); margin: 0; font-size: 15px; }

.check a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.legal-links { display: grid; gap: 2px; margin-bottom: 18px; }
.legal-links a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 13.5px; }
.legal-links a span { flex: 1; }
.legal-links a:hover { color: var(--text); }
.legal-links a:hover .ico { --ia: var(--accent-text); }

.admin { min-height: 100vh; }
.admin-top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; position: sticky; top: 0; z-index: 20; background: rgba(10,10,11,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.brand-circle { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); flex-shrink: 0; }
.pill-nav { display: flex; gap: 2px; padding: 3px; border-radius: var(--pill); border: 1px solid var(--border-strong); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.pill-nav::-webkit-scrollbar { display: none; }
.pill-nav button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px; white-space: nowrap; border: 1px solid transparent; background: none; border-radius: var(--pill); color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: .15s; }
.pill-nav button svg { width: 15px; height: 15px; }
.pill-nav button:hover { color: var(--text); }
.pill-nav button.active { color: var(--text); border-color: var(--border-hover); background: var(--surface-2); }
.pill-nav .badge { background: var(--warn); color: #1a1100; font-size: 10.5px; font-weight: 600; border-radius: var(--pill); padding: 0 6px; line-height: 17px; }
.admin-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-pill { display: flex; align-items: center; gap: 10px; height: 44px; padding: 3px 16px 3px 3px; border-radius: var(--pill); border: 1px solid var(--border-strong); }
.user-pill .avatar { width: 36px; height: 36px; cursor: default; font-size: 12px; }
.user-pill strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-pill small { display: block; font-size: 11px; color: var(--muted); }
.admin-main { padding: 24px 28px 56px; min-width: 0; max-width: 1480px; margin: 0 auto; }
.admin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 4px 0 20px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 24px; letter-spacing: -.03em; font-weight: 600; }
.admin-head .sub { color: var(--muted); font-size: 13px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi { padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.kpi-top { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--text); }
.kpi-label { font-size: 12px; color: var(--muted); margin-top: 18px; }
.kpi strong { display: block; font-size: 26px; font-weight: 600; margin-top: 2px; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi small { color: var(--text-2); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.kpi .trend { display: inline-flex; align-items: center; padding: 0 7px; border-radius: var(--pill); font-size: 11px; font-weight: 600; background: var(--surface-3); line-height: 18px; }
.kpi.featured { background: var(--featured); border-color: transparent; }
.kpi.featured .chip-ico { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.kpi.featured .kpi-label, .kpi.featured small { color: rgba(255,255,255,.72); }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-head .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.card-head .row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 4px 18px 18px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; }

.table-wrap { overflow-x: auto; padding: 0 8px 4px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th, .table td { padding: 12px 14px; text-align: left; white-space: nowrap; }
.table td { border-bottom: 1px solid var(--border); }
.table tbody tr:last-child td { border-bottom: 0; }
.table th { font-size: 12px; color: var(--muted); font-weight: 500; background: var(--surface-2); }
.table th:first-child { border-radius: var(--r) 0 0 var(--r); }
.table th:last-child { border-radius: 0 var(--r) var(--r) 0; }
.table td.num, .table th.num { text-align: right; }
.table td strong { font-weight: 500; }
.table tbody tr:hover td { background: rgba(255,255,255,.012); }
.table .sub { color: var(--muted); font-size: 12px; }
.table td.empty { text-align: center; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters select, .filters input { height: 34px; padding: 0 14px; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--pill); outline: none; font-size: 13px; max-width: 100%; }
.filters select option { background: var(--surface-2); }
.filters input:focus, .filters select:focus { border-color: var(--line-sel); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.inline-input { width: 72px; height: 32px; padding: 0 12px; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--pill); }
.switch { position: relative; display: inline-block; width: 36px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-4); border-radius: var(--pill); transition: .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(14px); }
.mini-list .row { display: grid; grid-template-columns: 1fr auto 90px; align-items: center; gap: 12px; padding: 12px 2px; font-size: 13px; border-bottom: 1px solid var(--border); }
.mini-list .row:last-child { border-bottom: 0; }
.mini-list .row span:last-child { text-align: right; font-weight: 500; }
.mini-list .row span:nth-child(2) { color: var(--muted); }

.dlg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 60; padding: 16px; }
.dlg-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px; padding: 22px; box-shadow: var(--pop); }
.dlg-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

.vchart { position: relative; }
.vchart svg { display: block; max-width: 100%; }
.vchart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.vchart .bubble { position: absolute; transform: translate(-50%, -100%); pointer-events: none; padding: 4px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-4); border: 1px solid var(--border-hover); }
.vchart .tipbox { position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: var(--r); padding: 9px 12px; font-size: 12px; white-space: nowrap; box-shadow: var(--pop); line-height: 1.7; }

.account-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 8px; }
.acct-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: var(--pill); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #f2a93b; color: #1d1200; }
.is-real .acct-badge { background: var(--up); color: #03140c; }
.account-btn .account-balance { font-size: 15px; font-weight: 600; }
.account-btn .chev { width: 16px; height: 16px; }
.deposit-sq { display: none; }

.tab-ico, .chart-ico { display: inline-flex; flex-shrink: 0; }
.aico { display: block; flex-shrink: 0; }
.asset-tab { padding-left: 8px; }

.chart-asset { background: none; border: 0; padding: 4px 8px 4px 2px; border-radius: var(--r); display: flex; align-items: center; gap: 10px; color: var(--text); text-align: left; }
.chart-asset:hover { background: var(--surface); }
.chart-pay { color: var(--up); font-weight: 600; font-size: 14px; }
.chart-pay::before { content: "•"; color: var(--muted); margin-right: 6px; }
.chart-price { margin-left: 4px; }
.chart-quick { position: relative; display: none; }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border: 1px solid var(--border-strong); border-radius: var(--pill); background: transparent; font-size: 13px; font-weight: 600; }
.tool-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.chart-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 236px; padding: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--pop); }
.cm-label { font-size: 11.5px; color: var(--muted); margin: 0 0 8px; }
.cm-types, .cm-tfs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cm-types { margin-bottom: 14px; }
.chart-menu button { height: 34px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: transparent; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.chart-menu button.active { background: var(--surface-4); border-color: var(--border-hover); color: var(--text); }

.ctl-box { grid-template-columns: 44px 1fr 44px; height: 60px; padding: 4px; border-radius: var(--r-md); background: var(--surface); }
.ctl-step { background: transparent; border-radius: var(--r); font-size: 22px; font-weight: 300; color: var(--text-2); }
.ctl-step:hover { background: var(--surface-3); }
.ctl-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; cursor: text; }
.ctl-mid .ctl-label { margin: 0; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.ctl-mid .ctl-value { height: auto; padding: 0; font-size: 17px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.ctl-mid .ctl-input { cursor: text; }

.tp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-top: -2px; }
.how-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--up); font-size: 12.5px; font-weight: 500; }
.how-link .q { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--up); color: #03140c; font-size: 10.5px; font-weight: 700; }
.tp-foot .payout-amount { font-size: 12.5px; }
.sheet-handle { display: none; }
.ar-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ti-sym .aico { margin-right: 2px; }
.ti-sym .dir { margin-left: 2px; }

@media (max-width: 1200px) {
  .app { grid-template-columns: 68px minmax(0, 1fr) 264px; }
  .drawer { left: 68px; }
  .side-item { width: 54px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .user-pill div { display: none; }
  .user-pill { padding-right: 3px; }
  .hero-grid { gap: 40px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hide-sm { display: none; }
  .terminal { overflow: auto; height: auto; }
  .app {
    height: auto; min-height: 100dvh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 58px auto auto;
    grid-template-areas: "top" "chart" "panel";
    padding-bottom: 64px;
  }
  .topbar { padding: 0 12px; gap: 8px; position: sticky; top: 0; z-index: 25; }
  .topbar .brand { margin-right: 0; }
  .asset-tabs { padding: 2px; }
  .asset-tab { height: 34px; padding-left: 12px; }
  .add-asset { width: 36px; height: 36px; }
  .deposit-btn { display: none; }
  .account-btn { height: 42px; padding: 2px 10px 3px 14px; column-gap: 8px; }
  .account-balance { font-size: 14px; }
  .avatar { width: 38px; height: 38px; }
  .chart-area { height: 48vh; height: 48svh; min-height: 300px; }
  .chart-toolbar { flex-wrap: wrap; padding: 10px 12px 2px; row-gap: 8px; }
  .chart-asset { flex: 1 1 100%; }
  .chart-tools { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .chart-tools::-webkit-scrollbar { display: none; }
  .sidenav {
    flex-direction: row; justify-content: space-around; position: fixed; bottom: 0; left: 0; right: 0; height: 64px;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--border); background: rgba(10,10,11,.96);
  }
  .side-item { flex: 1; width: auto; padding: 5px 0; }
  .trade-panel { border-left: 0; border-top: 1px solid var(--border); padding: 14px 12px; }
  .tp-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ctl-box { grid-template-columns: 36px 1fr 36px; height: 46px; }
  .ctl-value { font-size: 16px; }
  .tp-actions { grid-template-columns: 1fr 1fr; }
  .trade-btn { height: 54px; }
  .tp-trades { min-height: 200px; margin: 4px -12px -14px; }
  .drawer { position: fixed; left: 0; right: 0; top: 58px; bottom: 64px; width: auto; z-index: 30; border-right: 0; box-shadow: none; }
  .toasts { bottom: 76px; }
  .modal { padding-top: 24px; }

  .nav-links { display: none; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 48px 0; }
  .section h2 { font-size: 26px; }
  .market-table .hide-m, .market-table .name { display: none; }
  .market-table th, .market-table td { padding: 12px 10px; }
  .market-table tbody.is-collapsed tr:nth-child(n+7) { display: none; }
  .show-all { display: block; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how-step { padding: 22px 20px; }
  .how-step + .how-step { border-left: 0; border-top: 1px solid var(--border); }
  .how-ui { margin-bottom: 16px; }

  .auth-page { place-items: start center; padding: 0; }
  .auth-card { max-width: none; min-height: 100dvh; border: 0; border-radius: 0; background: var(--bg); padding: 28px 20px 32px; }

  .admin-top { padding: 10px 14px; flex-wrap: wrap; row-gap: 10px; }
  .pill-nav { order: 3; flex: 1 1 100%; }
  .admin-main { padding: 18px 14px 40px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .site-nav .btn { height: 36px; padding: 0 16px; }
  .nav-inner { height: 58px; }
  .hero h1 { font-size: 31px; }
  .hero p.lead { font-size: 15.5px; margin-bottom: 26px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-cta { gap: 18px; }
  .hero-facts { margin-top: 26px; display: grid; gap: 8px; }
  .preview { border-radius: 16px; }
  .preview-head { padding: 12px 14px; }
  .preview-chart { height: 220px; }
  .preview-foot { padding: 12px; }
  .pv-ticket div { padding: 8px 10px; }
  .pv-ticket b { font-size: 13.5px; }
  .specs { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cta-row .btn { width: 100%; }

  .asset-tab .tab-pay, .asset-tab .tab-x { display: none; }
  .asset-tab, .asset-tab:not(:has(.tab-x)) { padding: 0 12px; }
  .chart-tools { gap: 6px; }
  .seg { padding: 2px; }
  .seg button { min-width: 30px; padding: 0 8px; height: 28px; font-size: 11.5px; }
  .market-filter button { padding: 0 9px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 14px; }
  .kpi-top { font-size: 12.5px; gap: 8px; line-height: 1.25; }
  .kpi-top .chip-ico { width: 28px; height: 28px; }
  .kpi-label { margin-top: 12px; }
  .kpi strong { font-size: 19px; }
  .kpi small { font-size: 11.5px; }
  .asset-table-head, .asset-row { grid-template-columns: 1fr 96px 54px; }
  .asset-table-head span:nth-child(3), .asset-row > span:nth-child(3) { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .account-label { font-size: 9px; }
  .mini-list .row { grid-template-columns: 1fr auto 80px; }
}

@media (max-width: 380px) {
  .seg button { min-width: 28px; padding: 0 6px; }
  .account-btn { padding: 2px 8px 3px 12px; }
  .account-balance { font-size: 13px; }
  .avatar { display: none; }
}

@media (max-width: 900px) {
  .app { grid-template-rows: auto auto auto; }
  .topbar {
    display: grid; height: auto; padding: 10px 12px 8px; row-gap: 10px; column-gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand acct dep" "tabs tabs add";
    border-bottom: 0;
  }
  .topbar .brand { grid-area: brand; }
  .topbar .brand span { display: none; }
  .topbar-right { display: contents; }
  .account-switch { grid-area: acct; justify-self: center; }
  .account-btn { border: 0; height: 40px; padding: 0 6px; gap: 10px; }
  .account-btn:hover { background: transparent; }
  .account-btn .account-balance { font-size: 17px; }
  .dropdown { right: 50%; transform: translateX(50%); }
  .deposit-sq { grid-area: dep; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 13px; color: #fff; }
  .deposit-sq svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; --ia: #fff; }
  .topbar .avatar, .deposit-btn { display: none; }
  .asset-tabs { grid-area: tabs; border: 1px solid var(--border-strong); padding: 3px; gap: 2px; align-self: center; }
  .add-asset { grid-area: add; width: 42px; height: 42px; }
  .asset-tab { height: 34px; padding: 0 12px 0 6px; gap: 7px; color: var(--muted); }
  .asset-tab.active { color: var(--text); border-color: transparent; background: linear-gradient(180deg, #26262c, #1b1b1f);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .45); }
  .asset-tab .tab-sym { font-size: 13.5px; font-weight: 500; }

  .chart-area { margin: 0 8px; height: 50vh; height: 50svh; min-height: 300px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
  .chart-toolbar { flex-wrap: wrap; row-gap: 8px; padding: 10px 10px 6px 8px; }
  .chart-asset { flex: 1 1 100%; min-width: 0; padding-left: 4px; gap: 8px; }
  .chart-symbol { font-size: 15.5px; font-weight: 600; white-space: nowrap; }
  .chart-pay { font-size: 14px; }
  .chart-price { display: none; }
  .chart-tools { display: flex; flex: 1 1 auto; min-width: 0; width: auto; order: 2; overflow: visible; padding-left: 2px; }
  .chart-clock, #typeSeg { display: none; }
  #tfSeg { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 3px; height: 38px; }
  #tfSeg button { min-width: 0; height: 30px; padding: 0; font-size: 12.5px; }
  .chart-quick { display: block; flex-shrink: 0; order: 3; }
  #tfLabel { display: none; }
  .tool-btn { width: 38px; height: 38px; padding: 0; justify-content: center; border: 1px solid var(--border-strong); }
  .chart-menu > .cm-label ~ .cm-label, .cm-tfs { display: none; }
  .cm-types { margin-bottom: 0; }

  .trade-panel { margin-top: 10px; border: 1px solid var(--border); border-bottom: 0; border-radius: 22px 22px 0 0; background: var(--surface); padding: 8px 14px 14px; gap: 12px; }
  .sheet-handle { display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--border-hover); margin: 0 auto 4px; }
  .tp-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ctl-box { height: 60px; grid-template-columns: 40px 1fr 40px; background: var(--surface-2); border-color: var(--border-strong); }
  .ctl-mid .ctl-value { font-size: 17px; }
  .trade-btn { height: 56px; font-size: 16px; }
  .tp-trades { margin: 2px -14px -14px; }

  .sidenav { height: calc(66px + env(safe-area-inset-bottom)); padding: 6px 4px env(safe-area-inset-bottom); background: rgba(10,10,11,.97); }
  .side-item { gap: 5px; padding: 6px 0; font-size: 11.5px; color: var(--muted); background: none !important; border-radius: 0; }
  .side-item svg { width: 25px; height: 25px; stroke-width: 1.75; }
  .side-item.active { color: var(--text); }
  .drawer { top: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 40; }
  .app { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .account-btn .account-balance { font-size: 15px; }
  .asset-tab .tab-sym { font-size: 12.5px; }
}

.ar-name > span { min-width: 0; }
.asset-row strong, .asset-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .modal { place-items: end center; padding: 0; }
  .modal-card { max-width: none; height: 88dvh; border-radius: 22px 22px 0 0; border-bottom: 0; display: flex; flex-direction: column; }
  .asset-list { max-height: none; flex: 1; }
  .asset-row { padding: 11px 10px; }
}

.chart-wrap { flex: 1; min-height: 0; position: relative; z-index: 0; }
.chart-wrap .chart { position: absolute; inset: 0; }
.chart-chg { font-size: 12.5px; font-weight: 500; }
.chart-clock { font-size: 12px; color: var(--muted); margin-right: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.chart-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.ov-band { position: absolute; left: 0; top: 0; background: linear-gradient(90deg, rgba(124,92,252,0), rgba(124,92,252,.07)); }
.ov-line { position: absolute; left: 0; top: 0; width: 0; border-left: 1px dashed rgba(255,255,255,.28); }
.ov-line.sel { border-left: 1px solid rgba(169,149,255,.55); }
.ov-line.trade.win { border-left-color: rgba(46,189,133,.7); }
.ov-line.trade.loss { border-left-color: rgba(246,70,93,.7); }
.ov-tag {
  position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 11px; font-weight: 600; line-height: 1;
  padding: 6px 9px; border-radius: var(--pill); background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ov-tag.sel { background: #211b45; border-color: #3d3385; color: #d6ccff; }
.ov-tag.trade.win { background: #0f2a20; border-color: rgba(46,189,133,.45); color: #6fe0b2; }
.ov-tag.trade.loss { background: #2f1418; border-color: rgba(246,70,93,.45); color: #ff8e9c; }

.sent { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sent-bar { width: 4px; height: 120px; border-radius: 4px; background: var(--down); position: relative; overflow: hidden; }
.sent-bar i { position: absolute; left: 0; right: 0; top: 0; background: var(--up); transition: height .4s ease; }
.sent-up, .sent-down { font-size: 10.5px; font-weight: 600; }
.sent-up { color: var(--up); }
.sent-down { color: var(--down); }

.account-balance.bal-up { animation: balUp 1s ease; }
.account-balance.bal-down { animation: balDown 1s ease; }
@keyframes balUp { 0%, 40% { color: var(--up); } }
@keyframes balDown { 0%, 40% { color: var(--down); } }

.tcard {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px;
  padding: 10px 12px; margin-bottom: 6px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, background .3s;
}
.tcard.enter { animation: cardIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.tcard.open.win { border-color: rgba(46,189,133,.35); background: linear-gradient(90deg, rgba(46,189,133,.06), transparent 65%), var(--surface); }
.tcard.open.loss { border-color: rgba(246,70,93,.3); background: linear-gradient(90deg, rgba(246,70,93,.05), transparent 65%), var(--surface); }
.tc-ring { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.tc-ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.tc-ring circle { fill: none; stroke-width: 2.6; }
.rg-bg { stroke: var(--surface-4); }
.rg-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; }
.tcard.win .rg-fg { stroke: var(--up); }
.tcard.loss .rg-fg { stroke: var(--down); }
.tc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tc-ico { display: flex; }
.tc-main { min-width: 0; display: grid; gap: 2px; }
.tc-title { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.tc-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tc-side { display: grid; justify-items: end; gap: 2px; }
.tc-pnl { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tc-res { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tcard.win .tc-pnl { color: var(--up); }
.tcard.loss .tc-pnl { color: var(--down); }
.dchip { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0; }
.dchip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dchip.up { background: var(--up-soft); color: var(--up); }
.dchip.down { background: var(--down-soft); color: var(--down); }

.empty-state { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 30px 16px; font-size: 13px; color: var(--muted); }
.empty-state b { color: var(--text); font-weight: 600; font-size: 13.5px; }
.es-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); margin-bottom: 8px; color: var(--text-2); }
.es-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .25; transform-origin: left; animation: life var(--life, 4s) linear forwards; }
.toast.win::after { color: var(--up); opacity: .6; }
.toast.loss::after { color: var(--down); opacity: .6; }
@keyframes life { to { transform: scaleX(0); } }
.tt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.tt-ico { display: flex; }
.tt-body { display: grid; gap: 1px; min-width: 0; }
.tt-body b { font-size: 13.5px; font-weight: 600; }
.tt-body span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-amt { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

.hist-sum { padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 10px; }
.hs-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.hs-top .acct-pill { margin: 0; }
.hist-sum > strong { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin: 4px 0 12px; }
.wl-bar { height: 6px; border-radius: 6px; background: var(--down); overflow: hidden; }
.wl-bar i { display: block; height: 100%; background: var(--up); border-right: 2px solid var(--surface-2); }
.hs-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.hs-meta b { font-weight: 600; }

.method span { flex-direction: column; gap: 6px; height: 72px; display: flex; align-items: center; justify-content: center; }
.method svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.tx-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); }
.tx-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tx-ico.deposit, .tx-ico.referral { background: var(--up-soft); color: var(--up); }
.tx-ico.withdrawal { background: var(--accent-soft); color: var(--accent-text); }
.tx-main { min-width: 0; }
.tx-row .right { display: grid; justify-items: end; gap: 3px; }

@media (max-width: 900px) {
  .chart-wrap .chart { inset: 0; }
  .sent { left: 8px; }
  .sent-bar { height: 90px; }
  .tc-ring, .tc-ring svg { width: 38px; height: 38px; }
}
.chart-tools { align-items: center; }
.sent-up, .sent-down { background: rgba(10,10,11,.85); padding: 2px 5px; border-radius: 5px; }
.toast { cursor: pointer; }
@media (max-width: 900px) {
  .toasts { top: calc(10px + env(safe-area-inset-top)); bottom: auto; left: 10px; right: 10px; width: auto; z-index: 120; }
  .toast { transform: translateY(-10px); }
  .toast.show { transform: none; }
}

.wallet-bal { position: relative; overflow: hidden; padding: 20px; gap: 2px; min-height: 132px; }
.wallet-bal .wb-art { position: absolute; right: -14px; bottom: -18px; width: 168px; pointer-events: none; }
.wb-label { position: relative; font-size: 12.5px; color: rgba(255,255,255,.72); }
.wallet-bal strong { position: relative; font-size: 30px; }
.wb-meta { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wb-meta span { font-size: 11.5px; font-weight: 500; color: #fff; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14); border-radius: var(--pill); padding: 3px 10px; }

.wallet-form { gap: 14px; }
.methods { display: grid; gap: 8px; }
.mcard { position: relative; display: block; cursor: pointer; }
.mcard input { position: absolute; opacity: 0; pointer-events: none; }
.mcard-in { display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface-2); transition: border-color .15s, background .15s; }
.mcard:hover .mcard-in { border-color: var(--border-hover); }
.mcard input:checked + .mcard-in { border-color: var(--line-sel); background: var(--sel-bg); }
.mcard input:focus-visible + .mcard-in { outline: 2px solid var(--line-sel); outline-offset: 2px; }
.mlogo { width: 40px; height: 40px; display: block; }
.mc-text { display: grid; gap: 1px; min-width: 0; }
.mc-text b { font-size: 14px; font-weight: 600; }
.mc-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-hover); display: grid; place-items: center; color: transparent; transition: .15s; }
.mc-check svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mcard input:checked + .mcard-in .mc-check { background: #fff; border-color: #fff; color: #111; }

.field > span .avail { float: right; font-style: normal; color: var(--muted); font-weight: 400; }
.link-btn { background: none; border: 0; padding: 0 0 0 6px; color: var(--accent-text); font-size: 12px; font-weight: 600; }
.amount-in { position: relative; }
.amount-in i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; font-size: 16px; }
.amount-in input { padding-left: 32px; font-size: 17px; font-weight: 600; height: 50px; }

.paybox { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.pb-qr { width: 112px; height: 112px; border-radius: 10px; overflow: hidden; background: #fff; }
.qr { width: 100%; height: 100%; display: block; }
.pb-info { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.pb-label { font-size: 11.5px; color: var(--muted); }
.pb-addr { font-size: 14px; font-weight: 600; word-break: break-all; line-height: 1.35; }
.mono-addr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; font-weight: 500; }
.pb-sub { font-size: 11.5px; color: var(--muted); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: var(--pill); background: transparent; font-size: 12px; font-weight: 600; color: var(--text); }
.copy-btn:hover { border-color: var(--border-hover); background: var(--surface-3); }
.copy-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.net-badge { font-size: 11px; font-weight: 700; color: #26a17b; background: rgba(38,161,123,.12); border: 1px solid rgba(38,161,123,.35); border-radius: 6px; padding: 2px 8px; }
.warn-note { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--r); background: rgba(233,162,59,.08); border: 1px solid rgba(233,162,59,.25); font-size: 12px; color: #f1c27d; margin-top: 8px; }
.warn-note svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wf-note { margin: -4px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

.tx-amt { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.empty-art { width: 56px; height: 56px; margin-bottom: 6px; }

.wallet-done { display: grid; justify-items: center; text-align: center; padding: 18px 4px 4px; }
.ok-art { width: 120px; height: 120px; animation: pop .45s cubic-bezier(.2,.9,.3,1.3); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.wallet-done h3 { margin: 8px 0 2px; font-size: 19px; font-weight: 600; }
.wd-amt { margin: 0 0 6px; font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.wallet-done > .muted { margin: 0 0 18px; font-size: 13px; max-width: 280px; }
.wd-rows { width: 100%; border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 18px; text-align: left; }
.wd-rows div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 14px; font-size: 13px; }
.wd-rows div + div { border-top: 1px solid var(--border); }
.wd-rows span { color: var(--muted); flex-shrink: 0; }
.wd-rows b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#payBox:empty { display: none; }

.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; border: 1.5px solid var(--border-hover); border-radius: 5px; background: var(--surface-2); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.check input:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; border-color: var(--line-sel); }
.check { cursor: pointer; }

.acards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.acard { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 6px; align-content: start; }
.acard .acct-pill { margin: 0; }
.acard > strong { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.ac-rows { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--border); }
.ac-rows div { display: flex; justify-content: space-between; font-size: 12px; }
.ac-rows span { color: var(--muted); }
.ac-rows b { font-weight: 600; }
.profile-head .avatar.lg { background: var(--featured); border: 0; color: #fff; }

.sym-cell { display: inline-flex; align-items: center; gap: 10px; }

@media (max-width: 700px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table-wrap { padding: 0 10px 8px; }
  .table tbody tr { border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 14px; margin-bottom: 8px; background: var(--surface-2); }
  .table tbody tr:hover td { background: transparent; }
  .table td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); white-space: normal; text-align: right; }
  .table td.num { text-align: right; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; flex-shrink: 0; }
  .table td[data-label=""]::before { display: none; }
  .table td[data-label=""] { justify-content: flex-end; }
  .table tbody tr td:last-child { border-bottom: 0; }
  .table td.empty { display: block; text-align: center; }
  .table td.empty::before { display: none; }
  .table td div.sub { display: block; }
  .card-head .filters { width: 100%; }
  .card-head .filters input, .card-head .filters select { flex: 1; width: auto !important; }
}

@media (max-width: 560px) {
  .kpis { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .kpi:not(.featured) { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
  .kpi:not(.featured) .kpi-label, .kpi:not(.featured) small { display: none; }
  .kpi:not(.featured) strong { margin: 0; font-size: 17px; }
  .acards { grid-template-columns: 1fr; }
}

.pf-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 20px 18px; min-height: 120px; border-radius: var(--r-lg); background: var(--featured); margin-bottom: 10px; }
.pf-art { position: absolute; right: -6px; bottom: -4px; width: 220px; pointer-events: none; }
.pf-avatar { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 18px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.35); }
.pf-id { position: relative; display: grid; gap: 1px; min-width: 0; }
.pf-id strong { font-size: 17px; font-weight: 600; color: #fff; }
.pf-id span { font-size: 12.5px; color: rgba(255,255,255,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-id .pf-since { font-size: 11.5px; color: rgba(255,255,255,.6); }
.pf-list { display: grid; gap: 6px; margin-top: 14px; }
.pf-item { display: block; width: 100%; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); text-align: left; text-decoration: none !important; color: var(--text) !important; padding: 0; }
.pf-item summary, .pf-link { display: grid; grid-template-columns: 36px minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.pf-item summary::-webkit-details-marker { display: none; }
.pf-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.pf-ico svg, .pf-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pf-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.pf-item[open] .pf-chev { transform: rotate(90deg); }
.pf-item[open] { border-color: var(--border-strong); }
.pf-txt { display: grid; gap: 1px; min-width: 0; }
.pf-txt b { font-size: 13.5px; font-weight: 600; }
.pf-txt small { font-size: 12px; color: var(--muted); }
.pf-form { padding: 4px 14px 14px; gap: 12px; }
.pf-link:hover, .pf-item summary:hover { background: var(--surface-3); border-radius: var(--r-md); }
.pf-out .pf-ico { background: var(--down-soft); color: var(--down); }
.pf-out .pf-txt b { color: var(--down); }
.pf-art { width: 190px; right: -8px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); opacity: .9; }
.pf-id { max-width: calc(100% - 130px); }

.arows { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; }
.arow { padding: 14px 16px; display: grid; gap: 4px; }
.arow + .arow { border-top: 1px solid var(--border); }
.arow.current { background: linear-gradient(90deg, rgba(124,92,252,.07), transparent 70%); }
.arow-top { display: flex; align-items: center; justify-content: space-between; }
.arow-top .acct-pill { margin: 0; }
.arow-now { font-size: 11px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 2px 8px; border-radius: var(--pill); }
.arow > strong { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.arow-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.arow-meta span:first-child { font-weight: 600; }
.arow-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--border-hover); }

.tc-main > * { min-width: 0; }
.tc-side { min-width: 0; }
.tc-res { font-size: 11px; }

.ctl-step:focus { outline: none; }
.ctl-step:focus-visible { outline: none; background: var(--surface-3); box-shadow: inset 0 0 0 1.5px var(--line-sel); }
.ctl-step:active { background: var(--surface-4); transform: scale(.94); }
.ctl-step { transition: background .15s, transform .08s; }
.ctl-box:focus-within { border-color: var(--border-strong); }
.ctl-box:has(input:focus), .ctl-box:has(.ctl-value:focus-visible) { border-color: var(--line-sel); }

.tp-foot { flex-wrap: nowrap; }
.how-link, .tp-foot .payout-amount { white-space: nowrap; }
.how-link { gap: 6px; }
.tp-foot .payout-amount b { font-weight: 600; }

.pf-art { opacity: .55; }
.pf-id { max-width: none; flex: 1; }
.pf-id strong { font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-avatar { width: 48px; height: 48px; font-size: 16px; }

.swap { animation: swapIn .22s ease; }
@keyframes swapIn { from { opacity: 0; transform: translateY(4px); } }
.side-item, .tabs-mini button, .seg button, .pill-nav button, .asset-tab, .cat-tabs button { transition: background .2s, color .2s, border-color .2s; }
.drawer { transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.chart-wrap .chart { transition: opacity .2s ease; }
.tc-title { overflow: hidden; }
.tc-sym { overflow: hidden; text-overflow: ellipsis; }
.tcard { column-gap: 12px; }
.pf-art { width: 160px; opacity: .45; bottom: -10px; }

.admin-warn { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--r-lg); border: 1px solid rgba(233, 162, 59, .3); background: rgba(233, 162, 59, .08); color: var(--warn); --ia: var(--warn); }
.admin-warn > div { display: grid; gap: 3px; font-size: 13.5px; }
.admin-warn b { color: var(--text); font-weight: 600; }
.admin-warn span { color: var(--text-2); }
.admin-warn code { font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text); }

.legal-intro { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; }
.legal-intro > div { flex: 1; display: grid; gap: 4px; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.legal-intro b { color: var(--text); font-size: 14px; }
.legal-intro code, .le-ph code { font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text); }
.nowrap { white-space: nowrap; }
.ico.flip { transform: rotate(180deg); }
.le-bar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.le-bar .btn { display: inline-flex; align-items: center; gap: 6px; }
.le-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.le-form { padding: 18px; display: grid; gap: 14px; }
.le-body > span { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.le-help { font-style: normal; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.le-form textarea { min-height: 62vh; resize: vertical; padding: 14px; line-height: 1.65; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r); color: var(--text); outline: none; }
.le-form textarea:focus { border-color: var(--line-sel); }
.le-ph { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; min-height: 22px; }
.le-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.le-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.le-note { flex: 1; min-width: 200px; height: 40px; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--pill); color: var(--text); outline: none; }
.le-note:focus { border-color: var(--line-sel); }
.le-side { position: sticky; top: 16px; display: grid; gap: 10px; }
.le-side .seg-wide { margin: 0; }
.le-pane { padding: 22px 24px; max-height: calc(100vh - 140px); overflow: auto; }
.le-pane .prose { font-size: 14px; }
.le-pane .prose h2 { font-size: 24px; }
.le-rev { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.le-rev:last-child { border-bottom: 0; }
.le-rev > div { display: grid; gap: 3px; font-size: 13.5px; }
.le-rev small { color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) {
  .le-grid { grid-template-columns: 1fr; }
  .le-side { position: static; }
  .le-form textarea { min-height: 50vh; }
}

.btn-primary, .btn-up, .btn-down, .trade-btn.up, .trade-btn.down, .ui-btn.up, .ui-btn.down, .deposit-sq, .acct-badge {
  background: linear-gradient(180deg, var(--k1) 0%, var(--k2) 55%, var(--k3) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -2px 0 rgba(0, 0, 0, .17), 0 2px 5px rgba(0, 0, 0, .35);
  transition: transform .12s, box-shadow .12s, filter .15s;
}
.btn-primary { --k1: #9077ff; --k2: #7c5cfc; --k3: #6744ee; }
.btn-up, .trade-btn.up, .ui-btn.up, .deposit-sq { --k1: #3ccf95; --k2: #2ebd85; --k3: #27a874; }
.btn-down, .trade-btn.down, .ui-btn.down { --k1: #ff6377; --k2: #f6465d; --k3: #df3a51; }
.acct-badge { --k1: #f7b851; --k2: #f2a93b; --k3: #dc9327; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1.5px 0 rgba(0, 0, 0, .16), 0 1px 3px rgba(0, 0, 0, .35); }
.is-real .acct-badge { --k1: #3ccf95; --k2: #2ebd85; --k3: #27a874; }
.btn-primary:hover, .btn-up:hover, .btn-down:hover, .trade-btn.up:hover, .trade-btn.down:hover, .deposit-sq:hover { filter: brightness(1.06); }
.btn-primary:active, .btn-up:active, .btn-down:active, .trade-btn.up:active, .trade-btn.down:active, .deposit-sq:active {
  transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .17), 0 1px 2px rgba(0, 0, 0, .35);
}

.btn-ghost, .icon-btn, .account-btn, .ctl-step, .tool-btn, .seg button.active {
  background: linear-gradient(180deg, #1c1c21 0%, #151518 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .45);
  transition: transform .12s, box-shadow .12s, border-color .15s, color .15s;
}
.seg button.active { background: linear-gradient(180deg, #26262c 0%, #1b1b1f 100%); }
.btn-ghost:hover, .icon-btn:hover, .account-btn:hover, .ctl-step:hover, .tool-btn:hover { background: linear-gradient(180deg, #232329 0%, #19191d 100%); }
.btn-ghost:active, .icon-btn:active, .account-btn:active, .ctl-step:active, .tool-btn:active {
  transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 0 1px rgba(0, 0, 0, .45);
}
.ctl-box { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5), inset 0 -1px 0 rgba(255, 255, 255, .03); }

.dock-bg, .dock-orb { display: none; }
@media (max-width: 900px) {
  .sidenav {
    left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); z-index: 45;
    padding: 0 4px env(safe-area-inset-bottom); gap: 0; border: 0; background: none; overflow: visible; align-items: stretch;
  }
  .dock-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
  .dock-bg path { fill: #111113; stroke: var(--border-strong); stroke-width: 1; }
  .side-item { position: relative; z-index: 1; flex: 1; gap: 5px; padding: 9px 0 0; height: 64px; justify-content: flex-start;
    font-size: 10.5px; font-weight: 500; color: var(--muted); background: none !important; border-radius: 0; }
  .side-item svg { width: 22px; height: 22px; transition: transform .2s; }
  .sidenav .side-item .ico { --ia: currentColor; }
  .side-item.active { color: var(--text); }
  .side-item.active .ico { --ia: var(--accent-text); }
  .side-item::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
    background: var(--accent-text); opacity: 0; transform: scale(0); transition: opacity .2s, transform .25s; }
  .side-item.active::after { opacity: 1; transform: scale(1); }
  .side-item:active svg { transform: scale(.9); }

  .side-item[data-panel="history"] { order: 1; }
  .side-item[data-panel="wallet"] { order: 2; }
  .side-item[data-panel=""] { order: 3; flex: 0 0 86px; }
  .side-item[data-panel="profile"] { order: 4; }
  .side-item[data-panel="help"] { order: 5; }
  .sidenav a.side-item { display: none; }

  .side-item[data-panel=""] { padding: 0 0 9px; justify-content: flex-end; }
  .side-item[data-panel=""]::after { display: none; }
  .side-item[data-panel=""] > svg { display: none; }
  .dock-orb {
    display: grid; place-items: center; position: absolute; left: 50%; top: -28px; width: 52px; height: 52px; margin-left: -26px;
    border-radius: 16px; transform: rotate(45deg); color: #fff;
    background: linear-gradient(135deg, #9077ff 0%, #7c5cfc 50%, #6744ee 100%);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .28), inset -2px -2px 0 rgba(0, 0, 0, .18), 2px 3px 6px rgba(0, 0, 0, .45);
    transition: background .2s, color .2s, transform .15s;
  }
  .dock-orb svg { width: 25px; height: 25px; transform: rotate(-45deg); --ia: #fff; stroke-width: 2; }
  .side-item[data-panel=""]:active .dock-orb { transform: rotate(45deg) scale(.94); }
  .side-item[data-panel=""]:not(.active) .dock-orb {
    color: var(--accent-text); background: linear-gradient(135deg, #24242a 0%, #19191d 100%);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .08), inset -2px -2px 0 rgba(0, 0, 0, .3), 0 0 0 1px var(--border-hover), 2px 3px 6px rgba(0, 0, 0, .45);
  }
  .side-item[data-panel=""]:not(.active) .dock-orb svg { --ia: var(--accent-text); }

  .drawer { bottom: 0; }
  .drawer-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .app { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .app::after { content: ""; position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); width: 104px; height: 46px; margin-left: -52px;
    z-index: 41; pointer-events: none; background: linear-gradient(to bottom, rgba(10, 10, 11, .55), var(--bg) 60%); }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chat-faq { max-width: 760px; }
.cf-head { display: grid; justify-items: center; text-align: center; gap: 12px; margin-bottom: 28px; }
.cf-head h2 { margin: 0; }
.faq-lead { color: var(--text-2); font-size: 15px; line-height: 1.6; margin: 0; }
.cf-search { position: relative; display: block; width: 100%; max-width: 520px; margin-top: 8px; }
.cf-search .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.cf-search input { width: 100%; height: 52px; padding: 0 20px 0 48px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 15px; outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); transition: border-color .15s; }
.cf-search input:focus { border-color: var(--line-sel); }
.cf-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.cf-cats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cf-cats button { height: 32px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: none; color: var(--text-2); font-size: 13px; font-weight: 500; transition: color .15s, border-color .15s; }
.cf-cats button:hover { color: var(--text); }
.cf-cats button.active { color: var(--text); border-color: var(--border-hover); background: linear-gradient(180deg, #26262c, #1b1b1f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .45); }

.cf-thread { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--border); border-radius: 26px; background:
  radial-gradient(120% 60% at 50% 0%, rgba(124, 92, 252, .06), transparent 60%), var(--surface); }
.cf-day { display: flex; justify-content: center; }
.cf-day span { font-size: 12px; color: var(--muted); padding: 5px 12px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--border); }
.cf-pair { display: grid; gap: 10px; }
.cf-q { justify-self: end; max-width: 82%; text-align: left; padding: 12px 16px; border: 0; border-radius: 20px 20px 6px 20px; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.45;
  background: linear-gradient(180deg, #8a6ffd, #7c5cfc 55%, #6c4ef0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .15), 0 2px 5px rgba(0, 0, 0, .3);
  transition: transform .12s, filter .15s; }
.cf-q:hover { filter: brightness(1.06); }
.cf-q:active { transform: translateY(1px); }
.cf-pair:not(.open) .cf-q { color: var(--text); background: linear-gradient(180deg, #232329, #1b1b1f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .45); }
.cf-pair:not(.open) .cf-q::after { content: "Tap for the answer"; display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.cf-a { display: none; align-items: flex-end; gap: 10px; max-width: 88%; }
.cf-pair.open .cf-a, .cf-end, .cf-empty:not([hidden]) { display: flex; }
.cf-empty { align-items: flex-end; gap: 10px; }
.cf-avatar { flex-shrink: 0; width: 30px; height: 30px; }
.cf-avatar .brand-mark { display: block; }
.cf-bubble { padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text-2); font-size: 15px; line-height: 1.65; }
.cf-bubble p { margin: 0; }
.cf-bubble b { color: var(--text); font-weight: 600; }
.cf-bubble .btn { margin-top: 10px; gap: 6px; }
.cf-typing { display: none; gap: 4px; padding: 6px 2px; }
.cf-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: cfDot 1s infinite ease-in-out; }
.cf-typing i:nth-child(2) { animation-delay: .15s; }
.cf-typing i:nth-child(3) { animation-delay: .3s; }
.cf-pair.typing .cf-typing { display: flex; }
.cf-pair.typing .cf-bubble p { display: none; }
.cf-pair.open .cf-a { animation: cfIn .3s ease both; }
@keyframes cfDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes cfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.site-footer { padding: 48px 0 0; background: var(--bg); border-top: 1px solid var(--border); }
.ft-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
.ft-brand { display: grid; gap: 12px; align-content: start; }
.ft-brand p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; max-width: 320px; }
.ft-mail { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--text-2); font-size: 14px; }
.ft-mail:hover { color: var(--text); }
.ft-mail .ico { color: var(--muted); }
.ft-cols { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 28px; }
.ft-col summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: default; }
.ft-col summary::-webkit-details-marker { display: none; }
.ft-col summary .ico { display: none; }
.ft-col h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ft-links { display: grid; gap: 2px; }
.ft-links a { color: var(--text-2); font-size: 14px; padding: 5px 0; width: fit-content; }
.ft-links a:hover { color: var(--text); }

.ft-pay { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ft-pay-label { font-size: 12.5px; color: var(--muted); margin-right: 6px; }
.ft-pay-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 5px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text); }
.ft-pay-chip small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.pay-logo { width: 24px; height: 24px; border-radius: 7px; }

.ft-risk { display: grid; grid-template-columns: 250px 1px minmax(0, 1fr); grid-template-areas: "id rule text" "act rule text"; gap: 12px 26px; align-items: center; margin-top: 18px; padding: 22px 26px; border: 1px solid rgba(233,162,59,.16); border-radius: var(--r-lg); background: linear-gradient(110deg, rgba(233,162,59,.08), rgba(233,162,59,0) 40%), var(--surface); }
.ft-risk-id { grid-area: id; display: flex; align-items: center; gap: 16px; }
.ft-risk-rule { grid-area: rule; align-self: stretch; width: 1px; background: linear-gradient(180deg, rgba(233,162,59,0), rgba(233,162,59,.28), rgba(233,162,59,0)); }
.ft-risk-body { grid-area: text; }
.ft-risk-actions { grid-area: act; }
.ft-age { position: relative; flex: none; display: grid; place-items: center; width: 72px; height: 82px; }
.ft-age svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ft-age b { position: relative; margin-top: -6px; font-size: 20px; font-weight: 800; letter-spacing: -.04em; color: var(--warn); }
.ft-risk-body { min-width: 0; }
.ft-risk-head { display: grid; gap: 2px; }
.ft-risk-head strong { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ft-risk-head span { font-size: 12px; color: var(--warn); font-weight: 600; letter-spacing: .02em; }
.risk-text { max-width: 860px; font-size: 13px; line-height: 1.75; color: var(--text-2); }
.ft-risk:not(.expanded) .risk-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.risk-text p { margin: 0; }
.risk-text p + p { margin-top: 8px; }
.risk-text strong { color: var(--text-2); font-weight: 600; }
.risk-text p:first-child > strong:first-child { display: none; }
.ft-risk-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding-left: 88px; }
.ft-risk-actions a, .ft-risk-more { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0; border: 0; background: none; color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ft-risk-actions a:hover, .ft-risk-more:hover { color: var(--text); }
.ft-risk-more .ico { transition: transform .2s; }
.ft-risk.expanded .ft-risk-more .ico { transform: rotate(180deg); }
.ft-legalline { display: grid; gap: 3px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ft-legalline a { color: var(--text-2); }
.ft-legalline a:hover { color: var(--text); }
.ft-base { position: relative; margin-top: 8px; }
.ft-up { position: absolute; right: max(24px, calc((100% - 1180px) / 2 + 24px)); bottom: 28px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-2);
  background: linear-gradient(180deg, #1c1c21, #151518); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .45); }
.ft-up:hover { color: var(--text); }
.site-footer { overflow: hidden; }
.ft-wordmark { font-size: clamp(64px, 15vw, 200px); font-weight: 700; letter-spacing: -.055em; line-height: .78; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  margin: 4px 0 -.12em; color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 88%); -webkit-background-clip: text; background-clip: text; }
.ft-wordmark::after { content: ""; display: inline-block; width: .15em; height: .15em; margin-left: .05em; border-radius: 50%; vertical-align: .42em; background: linear-gradient(180deg, #9077ff, #6744ee); }

.legal { padding: 28px 0 72px; background: radial-gradient(70% 40% at 50% 0%, rgba(124, 92, 252, .07), transparent 70%); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--text); }
.crumbs .ico { color: var(--muted); }
.lg-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px 24px; padding: 2px 24px; }
.lg-pills::-webkit-scrollbar { display: none; }
.lg-pills a { flex-shrink: 0; height: 36px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: var(--pill); border: 1px solid var(--border-strong); color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color .15s, border-color .15s; }
.lg-pills a:hover { color: var(--text); border-color: var(--border-hover); }
.lg-pills a.active { color: #17151f; border-color: transparent; background: linear-gradient(180deg, #ffffff, #ecebe6); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .4); }

.paper { --ink: #1a1822; --ink-2: #4a4756; --ink-3: #8a8794; --rule: #e3e1da;
  position: relative; max-width: 860px; margin: 0 auto; padding: 44px 72px 36px; border-radius: 18px; color: var(--ink-2);
  background: linear-gradient(180deg, #fbfaf7, #f4f3ee);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.paper-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.paper-letterhead { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.paper-letterhead em { font-style: normal; font-weight: 500; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--rule); }
.paper-print { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--rule); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .08); }
.paper-print:hover { background: #f7f6f2; }
.paper-print .ico { --ia: #7c5cfc; }
.paper h1 { margin: 34px 0 10px; color: var(--ink); font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 650; }
.paper-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-3); padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--rule); }
.paper-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #c9c6bd; margin: 0 12px 2px -6px; vertical-align: middle; }
.paper-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-3); }

.prose { color: var(--text-2); font-size: 15.5px; line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose h2 { color: var(--text); font-size: 30px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 18px; }
.prose h3 { color: var(--text); font-size: 19px; line-height: 1.35; letter-spacing: -.01em; margin: 40px 0 12px; scroll-margin-top: 96px; }
.prose h4 { color: var(--text); font-size: 15.5px; margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 4px; display: grid; gap: 8px; list-style: none; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-text); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 28px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: var(--text); background: var(--surface-3); line-height: 1; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.prose blockquote { margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--text); border: 1px solid rgba(124, 92, 252, .25); }
.legal-table { overflow-x: auto; margin: 4px 0 20px; border: 1px solid var(--border); border-radius: 14px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table th { color: var(--text); font-weight: 600; background: var(--surface); font-size: 13px; }
.legal-table tr:last-child td { border-bottom: 0; }

.paper .prose { color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.paper .prose h3 { color: var(--ink); font-size: 19.5px; margin-top: 38px; }
.paper .prose h4, .paper .prose strong { color: var(--ink); }
.paper .prose a { color: #5b3fe0; }
.paper .prose ul li::before { background: #7c5cfc; }
.paper .prose ol li::before { color: var(--ink); background: #ebe9e2; }
.paper .prose hr { border-top-color: var(--rule); }
.paper .prose blockquote { background: #efebff; border-color: #ddd5ff; color: var(--ink); }
.paper .legal-table { border-color: var(--rule); background: #fff; }
.paper .legal-table th, .paper .legal-table td { border-bottom-color: var(--rule); }
.paper .legal-table th { color: var(--ink); background: #f3f1ec; }

.lg-after { max-width: 860px; margin: 18px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-after-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); color: var(--text); transition: border-color .15s, background .15s; }
.lg-after-card:hover { border-color: var(--border-hover); background: var(--surface-2); }
.lg-after-card > span:not(.chip-ico) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.lg-after-card small { color: var(--muted); font-size: 12px; }
.lg-after-card b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.lg-next .ico { color: var(--text-2); }

.lg-index-head { max-width: 640px; margin-bottom: 28px; }
.lg-index-head h1 { margin: 0 0 10px; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.lg-index-head p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.sheet { display: grid; gap: 12px; color: var(--text); }
.sheet-paper { position: relative; display: grid; align-content: start; gap: 10px; height: 250px; padding: 20px 20px 24px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #fbfaf7, #f1f0ea); color: #4a4756; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .05);
  transition: transform .25s cubic-bezier(.3, 1.2, .5, 1), box-shadow .25s; }
.sheet-paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(to bottom, rgba(241, 240, 234, 0), #f1f0ea); }
.sheet-lh { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #1a1822; padding-bottom: 10px; border-bottom: 1px solid #e3e1da; }
.sheet-paper b { color: #1a1822; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; margin-top: 4px; }
.sheet-text { font-size: 12.5px; line-height: 1.65; }
.sheet:hover .sheet-paper { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 26px 44px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.sheet-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; font-size: 12.5px; color: var(--muted); }
.sheet-meta .ico { color: var(--text-2); transition: transform .2s; }
.sheet:hover .sheet-meta .ico { transform: translateX(3px); color: var(--text); }

@media (max-width: 900px) {
  .cf-thread { padding: 16px 12px; border-radius: 22px; }
  .cf-q { max-width: 90%; font-size: 14.5px; }
  .cf-a { max-width: 96%; }
  .cf-bubble { font-size: 14.5px; }

  .ft-top { grid-template-columns: 1fr; gap: 24px; }
  .ft-cols { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border); }
  .ft-col { border-bottom: 1px solid var(--border); }
  .ft-col summary { cursor: pointer; padding: 14px 0; }
  .ft-col summary .ico { display: block; color: var(--muted); transition: transform .2s; }
  .ft-col[open] summary .ico { transform: rotate(180deg); }
  .ft-col h4 { margin: 0; font-size: 12.5px; color: var(--text-2); }
  .ft-links { padding: 0 0 12px; }
  .ft-pay { margin-top: 20px; border-top: 0; }
  .ft-pay-label { flex: 1 1 100%; }
  .ft-risk { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "text" "act"; gap: 12px; padding: 16px; }
  .ft-risk-rule { display: none; }
  .ft-risk-id { gap: 12px; }
  .ft-age { width: 54px; height: 62px; }
  .ft-age b { font-size: 16px; }
  .ft-risk-head { grid-template-columns: auto auto; justify-content: start; column-gap: 8px; }
  .ft-risk-head strong { grid-column: 1 / -1; margin-bottom: 0; }
  .ft-risk-head span + span::before { content: "· "; }
  .ft-risk-actions { padding-left: 0; }
  .ft-age { width: 56px; height: 64px; }
  .ft-age b { font-size: 15px; margin-top: -4px; }
  .ft-base { padding-top: 64px; }
  .ft-up { top: 12px; bottom: auto; right: 16px; }

  .legal { padding-top: 18px; }
  .lg-pills { margin: 0 -16px 18px; padding: 2px 16px; }
  .paper { padding: 22px 20px 22px; border-radius: 16px; }
  .paper-letterhead em { display: none; }
  .paper-print span { display: none; }
  .paper-print { width: 34px; padding: 0; justify-content: center; }
  .paper h1 { margin-top: 22px; }
  .paper-meta { padding-bottom: 18px; margin-bottom: 22px; gap: 4px 14px; }
  .paper-meta span + span::before { display: none; }
  .paper .prose { font-size: 15px; }
  .lg-after { grid-template-columns: 1fr; }
  .sheets { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sheet-paper { height: 200px; padding: 14px 14px 18px; }
  .sheet-paper b { font-size: 15px; }
  .sheet-text { font-size: 11.5px; }
}
@media (max-width: 480px) {
  .sheets { grid-template-columns: 1fr; }
}

@media print {
  .site-nav, .site-footer, .lg-pills, .lg-after, .crumbs, .paper-print { display: none !important; }
  body, .legal { background: #fff !important; }
  .paper { box-shadow: none; padding: 0; background: #fff; max-width: none; }
}

.tcard.open.win, .tcard.open.loss { border-color: var(--border); background: var(--surface); }
.tcard { padding: 11px 12px; }
.tc-ico { position: relative; }
.tc-badge { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-4); color: var(--text-2); box-shadow: 0 0 0 2px var(--surface); }
.tc-badge svg { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tcard.win .tc-badge { background: var(--up); color: #062016; }
.tcard.loss .tc-badge { background: var(--down); color: #fff; }
.tc-main { gap: 3px; }
.tc-time { margin-left: auto; padding-left: 8px; font-size: 11px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.tc-px { display: flex; align-items: center; gap: 4px; }
.tc-px i { font-style: normal; opacity: .6; }
.tc-side { gap: 3px; }
.tc-pnl { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--text-2); }
.tc-res { font-size: 11px; color: var(--muted); }

.tabs-mini { align-items: center; }
.tl-total { margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; padding-right: 2px; font-variant-numeric: tabular-nums; }
.tl-total small { font-size: 11.5px; color: var(--muted); }
.tl-total b { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tl-total.win b { color: var(--up); }
.tl-total.loss b { color: var(--down); }

.hist-sum > strong { font-size: 32px; font-variant-numeric: tabular-nums; }
.hist-sum.win > strong { color: var(--up); }
.hist-sum.loss > strong { color: var(--down); }
.hs-grid .stat strong { font-variant-numeric: tabular-nums; }
.hday { margin-bottom: 12px; }
.hday-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.hday-head em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; }
.hday-head b { font-variant-numeric: tabular-nums; font-weight: 600; }
.hday-head b.win { color: var(--up); }
.hday-head b.loss { color: var(--down); }
#histList .tcard { margin-bottom: 6px; }
.tp-trades .tcard { column-gap: 10px; padding-right: 10px; }
.tp-trades .tc-px { gap: 3px; font-size: 11px; }

.auth-card { --auth-bg: var(--surface); }
.auth-card .auth-brand { display: flex; width: fit-content; margin: 0 auto 22px; }
.auth-card .form { margin-top: 0; }
.auth-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; }
.auth-rail li { display: grid; gap: 7px; font-size: 11px; font-weight: 500; color: var(--muted); text-align: center; }
.auth-rail i { height: 3px; border-radius: 3px; background: var(--surface-4); }
.auth-rail li.done i, .auth-rail li.now i { background: var(--accent); }
.auth-rail li.done { color: var(--text-2); }
.auth-rail li.now { color: var(--text); font-weight: 600; }

.auth-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; }
.auth-head .auth-title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; text-wrap: balance; }
.auth-sub { margin: 0; max-width: 300px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); text-wrap: balance; }
.auth-hello { margin: 0 0 2px; font-size: 12.5px; color: var(--muted); }
.auth-name { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.emb { position: relative; width: 64px; height: 64px; margin-bottom: 18px; flex-shrink: 0; }
.emb-tile {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #cfc4ff; --ia: #fff;
  background: linear-gradient(180deg, #231e38 0%, #16131f 100%); border: 1px solid rgba(169, 149, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 8px 20px rgba(0, 0, 0, .35);
}
.emb-tile .ico { stroke-width: 1.6; }
.emb-initials { font-size: 21px; font-weight: 700; letter-spacing: .03em; color: #ebe6ff; }
.emb-badge {
  position: absolute; right: -8px; top: -8px; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #9077ff 0%, #7c5cfc 55%, #6744ee 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1.5px 0 rgba(0, 0, 0, .18), 0 2px 5px rgba(0, 0, 0, .4), 0 0 0 3px var(--auth-bg);
}
.emb-user .emb-tile { border-radius: 50%; }
.emb-user .emb-badge { top: auto; bottom: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(180deg, #3ccf95 0%, #2ebd85 55%, #27a874 100%); }
.emb-user .emb-badge svg { width: 14px; height: 14px; }

.num-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; margin-top: 12px; padding: 0 5px 0 12px; border-radius: var(--pill);
  background: var(--surface-2); border: 1px solid var(--border-strong); white-space: nowrap; font-size: 13px; }
.num-chip .ico { color: var(--muted); --ia: var(--accent-text); flex-shrink: 0; }
.num-chip b { font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.num-chip a { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--pill); background: var(--surface-4); color: var(--text) !important; font-size: 12px; font-weight: 600; text-decoration: none !important; }
.num-chip a:hover { background: var(--border-hover); }

.phone-field { display: flex; align-items: center; height: 48px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface-2); transition: border-color .15s, box-shadow .15s; }
.phone-field:focus-within { border-color: var(--line-sel); box-shadow: none; }
.phone-field em { font-style: normal; padding: 0 12px 0 14px; height: 24px; display: flex; align-items: center; border-right: 1px solid var(--border-strong); color: var(--text-2); font-weight: 600; font-size: 15px; }
.form .phone-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; box-shadow: none; padding: 0 14px; font-size: 16px; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.form .phone-field input:focus { outline: none; box-shadow: none; border: 0; }

.cb-group { display: grid; gap: 8px; width: 100%; max-width: 296px; margin: 0 auto; }
.cb-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.cb-label-row { display: flex; justify-content: space-between; align-items: center; }
.cb-label-row .link-btn { padding: 0; font-size: 12.5px; }
.codebox { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 296px; margin: 0 auto; cursor: text; }
.codebox input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; color: transparent; caret-color: transparent; z-index: 1; }
.cb-cell { display: grid; place-items: center; height: 60px; border-radius: 16px; border: 1px solid var(--border-strong); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--surface-2); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45); transition: border-color .15s, background .15s, box-shadow .15s; }
.cb-cell.active { border-color: var(--line-sel); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45), 0 0 0 3px var(--accent-soft); }
.cb-cell.filled { border-color: var(--border-hover); background: var(--surface-3); }
.codebox.masked .cb-cell.filled::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--text); }
.codebox.shake { animation: cbShake .35s ease; }
.codebox.shake .cb-cell { border-color: rgba(246, 70, 93, .55); }
@keyframes cbShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.auth-step-otp .form, .auth-step-mpin .form, .auth-step-set_mpin .form { gap: 18px; }
.auth-hint { margin: -4px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

.auth-resend { display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.auth-resend .link-btn { font-size: 13px; padding: 4px 4px; }
.auth-resend .link-btn:disabled { color: var(--muted); font-weight: 500; cursor: default; font-variant-numeric: tabular-nums; }
.auth-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; font-size: 12.5px; }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--text); }
.auth-alt { margin-top: 22px; }
@media (max-width: 900px) { .auth-card { --auth-bg: var(--bg); } }
@media (prefers-reduced-motion: reduce) { .codebox.shake { animation: none; } }

.drawer-head { gap: 10px; justify-content: flex-start; }
.drawer-head h2 { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dh-back { flex-shrink: 0; }
.dv { animation: dvUp .26s cubic-bezier(.2, .8, .2, 1); }
.dv-right { animation: dvRight .28s cubic-bezier(.2, .8, .2, 1); }
.dv-left { animation: dvLeft .28s cubic-bezier(.2, .8, .2, 1); }
.dv:not(.dv-up):not(.dv-right):not(.dv-left) { animation: none; }
.wtab.dv-right { animation: dvRight .26s cubic-bezier(.2, .8, .2, 1); }
.wtab.dv-left { animation: dvLeft .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes dvUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes dvRight { from { opacity: 0; transform: translateX(28px); } }
@keyframes dvLeft { from { opacity: 0; transform: translateX(-28px); } }
.dv-loading { display: flex; justify-content: center; gap: 6px; padding: 48px 0; }
.dv-loading i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-hover); animation: dots 1s infinite ease-in-out; }
.dv-loading i:nth-child(2) { animation-delay: .15s; }
.dv-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .3; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dv, .dv-right, .dv-left, .wtab { animation: none !important; } }
.center { text-align: center; }

.acct-tile, .mrow, .bank-card, .tk-row, .sup-card, .idtype span, .tk-cats span {
  background: linear-gradient(180deg, #19191d 0%, #141417 100%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .28);
  transition: transform .12s, box-shadow .12s, border-color .15s, background .15s;
}
.acct-tile:active, button.mrow:active, a.mrow:active, .bank-card.pick:active, .tk-row:active, .sup-link:active, .idtype:active span, .tk-cats label:active span {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .3);
}

.idcard { position: relative; overflow: hidden; padding: 16px; border-radius: var(--r-lg); color: #fff; margin-bottom: 10px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(144, 119, 255, .35), transparent 55%), linear-gradient(160deg, #2a2350 0%, #1a1631 55%, #131122 100%);
  border: 1px solid rgba(169, 149, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .35); }
.idcard::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 0 0 22px rgba(255, 255, 255, .025); pointer-events: none; }
.idc-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.idc-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-weight: 700; font-size: 15px; letter-spacing: .03em; }
.idc-who { display: grid; gap: 1px; min-width: 0; }
.idc-who b { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc-who span { font-size: 12.5px; color: rgba(255, 255, 255, .65); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.kyc-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--pill); font-size: 11px; font-weight: 600; white-space: nowrap;
  background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); }
.kyc-badge.ok { background: rgba(46, 189, 133, .18); color: #7ee2b8; }
.kyc-badge .ico { stroke-width: 2.6; --ia: currentColor; }
.idc-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .14); }
.idc-foot small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .5); margin-bottom: 2px; }
.idc-foot b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.idc-uid { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 8px; border: 0; background: none; padding: 0; color: #fff; text-align: left; cursor: pointer; }
.idc-uid small { grid-column: 1 / -1; }
.idc-uid b { letter-spacing: .08em; }
.idc-uid .ico { width: 14px; height: 14px; color: rgba(255, 255, 255, .55); margin-bottom: 2px; }
.idc-uid:hover .ico { color: #fff; }
.idc-since { text-align: right; }

.acct-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.acct-tile { display: grid; gap: 6px; padding: 12px 13px; border-radius: var(--r-md); text-align: left; color: var(--text); cursor: pointer; }
.acct-tile.current { border-color: var(--line-sel); background: var(--sel-bg); }
.at-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--text-2); }
.at-name { display: inline-flex; align-items: center; gap: 6px; }
.at-name i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.acct-tile.real .at-name i { background: var(--up); }
.at-top em { font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-text); visibility: hidden; }
.acct-tile.current .at-top em { visibility: visible; }
.acct-tile strong { font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.at-meta b { font-weight: 600; }

.mgroup { display: grid; gap: 6px; margin-bottom: 16px; }
.mg-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 4px; }
.mrow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: var(--r-md); text-align: left; color: var(--text) !important; text-decoration: none !important; cursor: pointer; }
.mrow:hover { border-color: var(--border-strong); }
.mr-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface-3); color: var(--text-2); --ia: var(--accent-text); }
.mr-ico .ico { width: 18px; height: 18px; }
.mr-txt { display: grid; gap: 1px; min-width: 0; }
.mr-txt b { font-size: 13.5px; font-weight: 600; }
.mr-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-end { display: inline-flex; align-items: center; gap: 8px; }
.mr-chev { width: 16px; height: 16px; color: var(--muted); }
.mr-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--pill); background: var(--surface-4); color: var(--text-2); white-space: nowrap; }
.mr-tag.ok { background: var(--up-soft); color: var(--up); }
.mr-tag.bad { background: var(--down-soft); color: #ff8a99; }
.mr-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.mr-out .mr-ico { color: #ff8a99; --ia: #ff8a99; background: var(--down-soft); }
.mr-out .mr-txt b { color: #ff8a99; }

.kyc-lead, .lead-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.kyc-lead .ico { flex-shrink: 0; color: var(--accent-text); --ia: var(--accent-text); }
.lead-note { display: block; }
.lead-note b { color: var(--text); }
.idtypes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.idtype { cursor: pointer; }
.idtype input, .tk-cats input { position: absolute; opacity: 0; pointer-events: none; }
.idtype span { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 12px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.idtype span .ico { color: var(--muted); --ia: var(--muted); }
.idtype input:checked + span { border-color: var(--line-sel); color: var(--text); background: var(--sel-bg); }
.idtype input:checked + span .ico { color: var(--accent-text); --ia: var(--accent-text); }
.idtype input:focus-visible + span { box-shadow: none; }
.cert { display: grid; justify-items: center; gap: 4px; padding: 22px 18px 16px; border-radius: var(--r-lg); text-align: center; margin-bottom: 12px;
  background: radial-gradient(100% 80% at 50% 0%, rgba(46, 189, 133, .14), transparent 70%), var(--surface-2); border: 1px solid rgba(46, 189, 133, .25); }
.cert-seal { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; margin-bottom: 6px; color: #062016; --ia: #062016;
  background: linear-gradient(180deg, #3ccf95 0%, #2ebd85 55%, #27a874 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 0 0 6px rgba(46, 189, 133, .1); }
.cert > b { font-size: 16px; }
.cert > small { font-size: 12px; color: var(--muted); }
.kv { width: 100%; display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--border); }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: 13px; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.bank-list { display: grid; gap: 8px; }
.bank-list:empty { display: none; }
.bank-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-md); }
.bank-card.pick { cursor: pointer; }
.bank-card input { position: absolute; opacity: 0; pointer-events: none; }
.bank-card.pick:has(input:checked) { border-color: var(--line-sel); background: var(--sel-bg); }
.bk-mono { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(160deg, hsl(var(--h), 55%, 46%) 0%, hsl(var(--h), 58%, 32%) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.bk-txt { display: grid; gap: 1px; min-width: 0; }
.bk-txt b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-txt small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.bk-radio { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-hover); color: transparent; }
.bk-radio .ico { width: 12px; height: 12px; stroke-width: 3; --ia: currentColor; }
.bank-card.pick:has(input:checked) .bk-radio { background: #fff; border-color: #fff; color: #111; }
.bk-del { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.bk-del:hover { background: var(--down-soft); color: var(--down); }
.bank-list + .btn, .bank-list + .empty-state + .btn { margin-top: 12px; }
.btn .ico { --ia: currentColor; }
.locked { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: var(--r-md); background: var(--surface); border: 1px dashed var(--border-strong); color: var(--text-2); }
.locked .ico { color: var(--muted); --ia: var(--muted); flex-shrink: 0; }
.locked b { flex: 1; min-width: 0; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.locked small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ifsc-out { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ifsc-out.ok { color: var(--up); }
.ifsc-out.bad { color: #ff8a99; }

.seg-slide { position: relative; }
.seg-slide button { position: relative; z-index: 1; display: inline-flex; gap: 7px; background: none !important; box-shadow: none !important; }
.seg-slide button .ico { --ia: currentColor; }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: var(--pill);
  background: linear-gradient(180deg, #26262c 0%, #1b1b1f 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .45);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.seg-slide.second .seg-thumb { transform: translateX(100%); }
.wtab { margin-bottom: 4px; }
.chip.active { border-color: var(--line-sel); color: var(--text); background: var(--surface-3); }
.pay-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.pay-note .ico { flex-shrink: 0; color: var(--up); --ia: var(--up); margin-top: 1px; }
.wd-manage { justify-self: start; margin-top: 8px; padding: 0; }
.checklist { border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-2); overflow: hidden; }
.ck-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.ck-head span { font-size: 12px; color: var(--muted); }
.ck-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; }
.ck-row + .ck-row { border-top: 1px solid var(--border); }
.ck-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--border-hover); }
.ck-row.done .ck-mark { border: 0; background: var(--up); color: #062016; }
.ck-row.done .ck-mark .ico { stroke-width: 3; --ia: currentColor; }
.ck-txt { display: grid; gap: 1px; min-width: 0; }
.ck-txt b { font-size: 13px; font-weight: 600; }
.ck-row.done .ck-txt b { color: var(--text-2); }
.ck-txt small { font-size: 12px; color: var(--muted); line-height: 1.45; }

.sup-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: var(--r-lg); margin-bottom: 14px; color: var(--text); text-align: left; }
.sup-link { grid-template-columns: auto minmax(0, 1fr) auto auto; cursor: pointer; }
.sup-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); --ia: var(--accent-text); }
.sup-txt { display: grid; gap: 1px; min-width: 0; }
.sup-txt b { font-size: 14px; font-weight: 600; }
.sup-txt small { font-size: 12px; color: var(--muted); }
.tk-list { display: grid; gap: 8px; }
.tk-row { position: relative; display: grid; gap: 4px; width: 100%; padding: 12px 14px; border-radius: var(--r-md); text-align: left; color: var(--text); cursor: pointer; }
.tk-row.unread::before { content: ""; position: absolute; left: 6px; top: 18px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.tk-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tk-top b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-last { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-meta { font-size: 11.5px; color: var(--muted); }
.tk-st { flex-shrink: 0; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: var(--pill); background: var(--surface-4); color: var(--text-2); white-space: nowrap; }
.tk-st.answered { background: var(--accent-soft); color: var(--accent-text); }
.tk-st.open { background: rgba(233, 162, 59, .12); color: var(--warn); }
.tk-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-cats label { cursor: pointer; }
.tk-cats span { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.tk-cats input:checked + span { border-color: var(--line-sel); color: var(--text); background: var(--sel-bg); }
.form textarea { width: 100%; resize: vertical; min-height: 110px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; line-height: 1.5; }
.form textarea:focus { outline: none; border-color: var(--line-sel); }
.th-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.th-head b { font-size: 15px; font-weight: 600; }
.thread { display: grid; gap: 10px; margin-bottom: 14px; }
.msg { display: grid; gap: 4px; max-width: 86%; }
.msg.user { justify-self: end; justify-items: end; }
.msg-b { padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.msg.user .msg-b { background: linear-gradient(180deg, #7f62fb 0%, #6a4ff0 100%); color: #fff; border-bottom-right-radius: 5px; }
.msg.staff .msg-b { background: var(--surface-3); border: 1px solid var(--border-strong); border-bottom-left-radius: 5px; }
.msg small { font-size: 11px; color: var(--muted); padding: 0 4px; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 8px; border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--surface-2); }
.composer textarea { flex: 1; min-height: 42px; max-height: 160px; resize: none; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; padding: 9px 8px; outline: none; }
.th-close { display: block; margin: 12px auto 0; font-size: 12.5px; }
.empty-state .btn { margin-top: 12px; }

.tp-foot { display: none; }
.tp-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 4px; margin-top: 10px; padding: 8px 6px 8px 12px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45), inset 0 -1px 0 rgba(255, 255, 255, .03); }
.tp-info > div { display: grid; gap: 1px; min-width: 0; }
.tp-info > div + div { padding-left: 10px; border-left: 1px solid var(--border); }
.tp-info small { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tp-info b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-help { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 0; color: var(--muted); --ia: var(--accent-text); cursor: pointer;
  background: linear-gradient(180deg, #1c1c21 0%, #151518 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .45); }
.tp-help:hover { color: var(--text); }
.tp-help:active { transform: translateY(1px); }

.tabs-mini { display: none; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 8px; }
.list-seg { flex: 0 0 auto; width: 190px; }
.list-seg button { flex: 1; justify-content: center; height: 30px; font-size: 12.5px; font-weight: 600; }
.list-seg .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); background: var(--surface-4); font-size: 10.5px; font-weight: 700; color: var(--text-2); }
.list-seg button.active .count { background: var(--accent); color: #fff; }
.seg.seg-slide { display: flex; }
.seg-slide button { flex: 1; align-items: center; justify-content: center; }
.tl-total { margin-left: 0; }

.trade-list { padding: 2px 12px 12px; }
.tcard { display: block; position: relative; overflow: hidden; padding: 11px 12px 12px; margin-bottom: 8px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #19191d 0%, #141417 100%) !important; border: 1px solid var(--border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .28);
  transition: transform .12s, box-shadow .12s, border-color .3s; }
.tcard:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .3); }
.tcard::before { display: none; }
.tc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.tc-row2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 6px; padding-left: 40px; }
.tc-ico { position: relative; display: flex; }
.tc-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tc-name b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdir { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 7px 0 4px; border-radius: var(--pill); font-size: 11px; font-weight: 700; flex-shrink: 0; }
.tdir .ico { width: 13px; height: 13px; stroke-width: 2.6; --ia: currentColor; }
.tdir em { font-style: normal; }
.tdir.up { background: var(--up-soft); color: var(--up); }
.tdir.down { background: var(--down-soft); color: var(--down); }
.tc-clock { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--pill); background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text-2); --ia: var(--accent-text); }
.tc-clock b { font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.tc-px { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.tc-px i { font-style: normal; opacity: .6; }
.tc-now { color: var(--text-2); }
.tc-pnl { font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-2); background: none !important; padding: 0 !important; height: auto !important; }
.tcard.win .tc-pnl { color: var(--up); }
.tcard.loss .tc-pnl { color: var(--down); }
.tc-res { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.tcard.win .tc-res, .tcard.loss .tc-res { opacity: 1; color: var(--muted); }
.tc-bar { position: absolute; left: 12px; right: 12px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--surface-4); overflow: hidden; }
.tc-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; transition: transform .25s linear, background .3s; }
.tcard.win .tc-bar i { background: var(--up); }
.tcard.loss .tc-bar i { background: var(--down); }
.tcard.open { padding-bottom: 16px; }
.tcard.open.win { border-color: rgba(46, 189, 133, .28) !important; }
.tcard.open.loss { border-color: rgba(246, 70, 93, .26) !important; }
.tc-badge { right: -4px; bottom: -4px; }
#histList .tcard { margin-bottom: 8px; }
.tp-trades .tcard { padding-right: 12px; }
.tp-trades .tc-pnl { font-size: 15px; height: auto; padding: 0; }
.tp-trades .tc-px { font-size: 11px; }
.list-head .tl-total { white-space: nowrap; }
@media (min-width: 901px) {
  .tp-trades .tc-row2 { padding-left: 0; }
  .list-seg { width: 150px; }
  .list-seg button { padding: 0 6px; gap: 5px; }
  .list-head { padding: 12px 12px 8px; gap: 6px; }
  .list-head .tl-total small { display: none; }
  .tp-trades .tdir { width: 20px; padding: 0; justify-content: center; }
  .tp-trades .tdir em { display: none; }
}

.row-link { cursor: pointer; }
.table tbody tr.row-link:hover td { background: var(--surface-2); }
.pill-muted { background: var(--surface-3); color: var(--muted); }
.pill-t-open { background: rgba(233, 162, 59, .1); color: var(--warn); }
.pill-t-answered { background: var(--accent-soft); color: var(--accent-text); }
.pill-t-closed { background: var(--surface-3); color: var(--muted); }
.warn-text { color: var(--warn); }
.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 380px; white-space: normal; }
.payto { display: block; font-size: 12.5px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.dash-ops { margin-bottom: 12px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.dash-ops .mini-list .row { grid-template-columns: minmax(0, 1fr) auto auto; }

.ud-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px; margin-bottom: 12px; }
.ud-avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 18px; }
.ud-id h2 { margin: 0 0 6px; font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ud-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); }
.ud-meta b { color: var(--text); letter-spacing: .04em; }
.ud-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis-5 .kpi strong { font-size: 21px; }
.ud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ud-wide { grid-column: 1 / -1; }
.kvs { display: grid; gap: 0; }
.kvs > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.kvs > div:last-child { border-bottom: 0; }
.kvs span { color: var(--muted); }
.kvs b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.tx-mini .row { grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.tk-grid .thread { margin-bottom: 16px; }
.tk-grid .msg { max-width: 78%; }

.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.set-list { display: grid; gap: 0; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.set-row:last-child { border-bottom: 0; }
.set-row > span:first-child { display: grid; gap: 2px; }
.set-row b { font-size: 13.5px; font-weight: 600; }
.set-row small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.set-in { display: flex; align-items: center; height: 38px; width: 150px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); }
.set-in:focus-within { border-color: var(--line-sel); }
.set-in i { font-style: normal; padding: 0 0 0 11px; color: var(--muted); font-size: 13px; }
.set-in input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); padding: 0 11px 0 6px; font: inherit; font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; outline: none; }
.set-row:has(input[name="support_hours"]) .set-in { width: 230px; }
.set-row:has(input[name="support_hours"]) .set-in input { text-align: left; padding-left: 11px; }
.set-save { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 14px; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%); }

@media (max-width: 1100px) {
  .kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ud-grid, .set-grid, .tk-grid, .dash-ops { grid-template-columns: minmax(0, 1fr); }
  .ud-head { grid-template-columns: auto minmax(0, 1fr); }
  .ud-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.sw-pills { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.sw-pills .pill { text-transform: none; }
@media (max-width: 560px) {
  .kpis-5 { grid-template-columns: minmax(0, 1fr); }
  .kpis-5 .kpi:not(.featured) .kpi-label { display: block; margin: 0; }
  .tk-grid .msg { max-width: 92%; }
  .tk-grid .dlg-actions { flex-wrap: wrap; }
  .tk-grid .dlg-actions .btn { flex: 1 1 auto; }
  .tk-grid .dlg-actions .btn-primary { flex-basis: 100%; order: -1; }
  .legal-intro { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; padding: 14px; }
  .legal-intro > .pill { grid-column: 2; justify-self: start; }
}
@media (max-width: 1500px) { .pill-nav button { padding: 0 11px; gap: 6px; font-size: 13px; } }

.hist-acct { margin-bottom: 12px; }
.hist-acct button { gap: 8px; }
.at-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.at-dot.real { background: var(--up); }
.at-dot.demo { background: var(--warn); }
.hcard { padding: 16px 16px 14px; }
.hc-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255, 255, 255, .65); }
.hc-pnl { position: relative; z-index: 1; display: block; margin: 6px 0 12px; font-size: 32px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; }
.hc-pnl.win { color: #7ee2b8; }
.hc-pnl.loss { color: #ff8a99; }
.hc-bar { position: relative; z-index: 1; height: 6px; border-radius: 6px; background: rgba(246, 70, 93, .55); overflow: hidden; }
.hc-bar.empty { background: rgba(255, 255, 255, .12); }
.hc-bar i { display: block; height: 100%; border-radius: 6px; background: #2ebd85; box-shadow: 2px 0 0 #1a1631; }
.hc-foot { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.hc-foot span:nth-child(2) { text-align: center; }
.hc-foot span:last-child { text-align: right; }
.htiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.htile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 11px 12px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #19191d 0%, #141417 100%); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .28); }
.ht-ico { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); --ia: var(--accent-text); }
.htile small { font-size: 11.5px; color: var(--muted); }
.htile b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hday-label { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 8px; }
.hday-label b { font-size: 12px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.hday-label b.win { color: var(--up); }
.hday-label b.loss { color: var(--down); }
.hday { margin-bottom: 14px; }

.wcard { margin-bottom: 12px; }
.wcard .hc-pnl { margin-bottom: 4px; }
.wallet-seg { margin-bottom: 16px; }
.wtab > .mg-label:first-child, .wallet-form > .mg-label:first-child { margin-top: 0; }
.amount-card { display: grid; gap: 6px; padding: 13px 14px 12px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #19191d 0%, #141417 100%); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .28); transition: border-color .15s; }
.amount-card:focus-within { border-color: var(--line-sel); }
.ac-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ac-top b { color: var(--text); font-weight: 600; }
.ac-top .link-btn { padding: 0 0 0 4px; font-size: 12px; }
.ac-in { display: flex; align-items: baseline; gap: 6px; }
.ac-in i { font-style: normal; font-size: 24px; font-weight: 600; color: var(--muted); }
.form .ac-in input { flex: 1; min-width: 0; height: auto; padding: 0; border: 0; background: none; box-shadow: none; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.form .ac-in input:focus { outline: none; box-shadow: none; border: 0; }
.ac-in input::placeholder { color: var(--surface-4); }
.amount-card small { font-size: 11.5px; color: var(--muted); }
.amt-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amt-tile { height: 40px; border-radius: 12px; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #19191d 0%, #141417 100%); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 5px rgba(0, 0, 0, .28); transition: transform .12s, border-color .15s, color .15s; }
.amt-tile:hover { color: var(--text); }
.amt-tile:active { transform: translateY(1px); }
.amt-tile.active { border-color: var(--line-sel); color: var(--text); background: var(--sel-bg); }
.checklist { background: linear-gradient(180deg, #19191d 0%, #141417 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .28); }
.hday-label .link-btn { padding: 0; font-size: 12px; text-transform: none; letter-spacing: 0; }
.wtx { margin-top: 22px; }
.txcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; margin-bottom: 8px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #19191d 0%, #141417 100%); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .28); }
.txcard .tx-ico { width: 38px; height: 38px; border-radius: 11px; }
.txc-main { display: grid; gap: 1px; min-width: 0; }
.txc-main b { font-size: 13.5px; font-weight: 600; }
.txc-main small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.txc-side { display: grid; justify-items: end; gap: 4px; }
.txc-amt { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.txc-amt.deposit, .txc-amt.referral { color: var(--up); }
.txcard.rejected .txc-amt { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.txc-note { grid-column: 1 / -1; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.45; background: var(--surface-3); color: var(--text-2); }
.txc-note.rejected { background: var(--down-soft); color: #ff8a99; }
.rej-reason { display: grid; gap: 3px; width: 100%; margin: 6px 0 4px; padding: 11px 13px; border-radius: var(--r-md); text-align: left;
  background: var(--down-soft); border: 1px solid rgba(246, 70, 93, .25); font-size: 13px; line-height: 1.5; color: #ffb3bd; }
.rej-reason b { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #ff8a99; }
.wallet-done .btn + .btn { margin-top: 8px; }
.wallet-form { grid-template-columns: minmax(0, 1fr); }
.form .ac-in input { width: 100%; }

.bcards { display: grid; gap: 10px; }
.bcards.scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 6px; scroll-padding: 0 20px; }
.bcards.scroll::-webkit-scrollbar { display: none; }
.bcards.scroll > .bcard { flex: 0 0 82%; scroll-snap-align: start; }
.bcard { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; min-height: 148px; padding: 14px 15px 13px; border-radius: 16px; overflow: hidden; color: #fff; text-align: left;
  background: radial-gradient(130% 120% at 100% 0%, hsla(var(--h), 70%, 62%, .45), transparent 55%), linear-gradient(150deg, hsl(var(--h), 42%, 30%) 0%, hsl(var(--h), 46%, 17%) 60%, hsl(var(--h), 40%, 11%) 100%);
  border: 1px solid hsla(var(--h), 60%, 70%, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .35); transition: transform .12s, box-shadow .15s, opacity .15s; }
.bcard::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 170px; height: 170px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 20px rgba(255, 255, 255, .03); pointer-events: none; }
.bcard.pick { cursor: pointer; }
.bcard.pick input { position: absolute; opacity: 0; pointer-events: none; }
.bcard.pick:active { transform: translateY(1px); }
.bcard.pick:has(input:checked) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 6px 16px rgba(0, 0, 0, .4); }
.bcards.scroll .bcard.pick:not(:has(input:checked)) { opacity: .6; }
.bc-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bc-top .bk-mono { width: 32px; height: 32px; border-radius: 10px; font-size: 11.5px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.bc-bank { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-chk { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); color: transparent; flex-shrink: 0; }
.bc-chk .ico { stroke-width: 3; --ia: currentColor; }
.bcard.pick:has(input:checked) .bc-chk { background: #fff; border-color: #fff; color: hsl(var(--h), 45%, 25%); }
.bc-del { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 0; background: rgba(0, 0, 0, .22); color: rgba(255, 255, 255, .8); cursor: pointer; flex-shrink: 0; }
.bc-del:hover { background: rgba(246, 70, 93, .85); color: #fff; }
.bc-num { position: relative; z-index: 1; align-self: center; font-size: 17px; font-weight: 600; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .92); }
.bc-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.bc-foot span { display: grid; gap: 1px; min-width: 0; }
.bc-foot span:last-child { text-align: right; }
.bc-foot small { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); }
.bc-foot b { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.bc-add { place-content: center; justify-items: center; gap: 4px; background: none; border: 1.5px dashed var(--border-hover); box-shadow: none; color: var(--text-2); cursor: pointer; font: inherit; }
.bc-add::after { display: none; }
.bc-add:hover { border-color: var(--line-sel); color: var(--text); }
.bc-add b { font-size: 13.5px; font-weight: 600; }
.bc-add small { font-size: 11.5px; color: var(--muted); }
.bc-plus { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 4px; background: var(--accent-soft); color: var(--accent-text); --ia: var(--accent-text); }
.bcard.preview { margin-bottom: 18px; transition: background .4s; }
.bcards.stack + .btn, .bcards.stack + .empty-state + .btn { margin-top: 12px; }

.gsteps { display: grid; gap: 8px; margin-bottom: 18px; }
.gstep { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 13px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #19191d 0%, #141417 100%); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .28); }
.gs-ico { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); --ia: var(--accent-text); }
.gs-ico i { position: absolute; right: -5px; top: -5px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 800; color: #fff;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.gs-txt { display: grid; gap: 2px; }
.gs-txt b { font-size: 13.5px; font-weight: 600; }
.gs-txt small { font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.kbd-card { margin-bottom: 18px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); }
.kbd-card > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 13px; font-size: 13px; color: var(--text-2); }
.kbd-card > div + div { border-top: 1px solid var(--border); }
.kbd-card em { font-style: normal; margin: 0 4px; color: var(--muted); }
.mrow-sm { padding: 9px 12px; }
.mrow-sm .mr-ico { width: 32px; height: 32px; border-radius: 10px; }
.risk-note { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 11px 13px; border-radius: var(--r-md); font-size: 12.5px; line-height: 1.5;
  background: rgba(233, 162, 59, .08); border: 1px solid rgba(233, 162, 59, .22); color: #e8c48a; }
.risk-note .ico { flex-shrink: 0; color: var(--warn); --ia: var(--warn); margin-top: 1px; }
@media (max-width: 900px) { .ghelp-keys { display: none; } }

#accountMenu:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 300px; padding: 10px; border-radius: var(--r-lg); background: var(--surface); }
#accountMenu .acct-option { display: grid; justify-items: start; gap: 6px; padding: 11px 12px; border-radius: var(--r-md); text-align: left; color: var(--text);
  background: linear-gradient(180deg, #19191d 0%, #141417 100%); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .28); transition: transform .12s, border-color .15s; }
#accountMenu .acct-option:active { transform: translateY(1px); }
#accountMenu .acct-option > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
#accountMenu .acct-option strong { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
#accountMenu .acct-option.active { border-color: var(--line-sel); background: var(--sel-bg); }
#accountMenu .dropdown-sep { display: none; }
#accountMenu .dropdown-link { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; height: 38px; border-radius: var(--pill); font-weight: 600; color: var(--text-2);
  background: linear-gradient(180deg, #1c1c21 0%, #151518 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .45); }
#accountMenu .dropdown-link:hover { color: var(--text); }
@media (max-width: 900px) { #accountMenu:not([hidden]) { width: min(320px, calc(100vw - 32px)); } }
.bc-dots { display: flex; justify-content: center; gap: 6px; margin-top: -6px; }
.bc-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--surface-4); cursor: pointer; transition: width .25s, background .25s; }
.bc-dots i.on { width: 18px; background: var(--accent); }
.mini-list .row .sw-pills .pill-active { color: var(--up); }
.mini-list .row .sw-pills .pill-blocked { color: var(--down); }

.pmethods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pmethod { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-md); cursor: pointer;
  background: linear-gradient(180deg, #19191d 0%, #141417 100%); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .28); transition: transform .12s, border-color .15s; }
.pmethod input { position: absolute; opacity: 0; pointer-events: none; }
.pmethod:has(input:checked) { border-color: rgba(46, 189, 133, .55); background: linear-gradient(180deg, #17221e 0%, #121915 100%); }
.pmethod:active:not(.soon) { transform: translateY(1px); }
.pm-logo { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.pm-txt { display: grid; gap: 1px; min-width: 0; }
.pm-txt b { font-size: 13.5px; font-weight: 700; }
.pm-txt small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-chk { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--up); color: #062016; opacity: 0; transform: scale(.6); transition: .2s; }
.pm-chk .ico { stroke-width: 3; --ia: currentColor; }
.pmethod:has(input:checked) .pm-chk { opacity: 1; transform: none; }
.pmethod.soon { cursor: not-allowed; }
.pmethod.soon .pm-logo, .pmethod.soon .pm-txt { opacity: .45; filter: grayscale(.6); }
.soon-tag { position: absolute; top: -8px; right: 8px; padding: 2px 8px; border-radius: var(--pill); font-size: 10px; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(180deg, #f7b851 0%, #f2a93b 55%, #dc9327 100%); color: #2a1a00; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 4px rgba(0, 0, 0, .35); }
.ac-pay { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--border-strong); font-size: 12.5px; color: var(--text-2); }
.ac-pay b { font-size: 18px; font-weight: 700; color: var(--up); font-variant-numeric: tabular-nums; }

.sys-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; align-items: start; }
.ck-list { display: grid; gap: 0; }
.ck-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ck-item:last-child { border-bottom: 0; }
.ck-item > span:last-child { display: grid; gap: 2px; }
.ck-item b { font-size: 13.5px; font-weight: 600; }
.ck-item small { font-size: 12.5px; color: var(--text-2); line-height: 1.45; overflow-wrap: anywhere; }
.ck-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 800; }
.ck-dot .ico { stroke-width: 3; --ia: currentColor; }
.ck-item.ok .ck-dot { background: var(--up-soft); color: var(--up); }
.ck-item.warn .ck-dot { background: rgba(233, 162, 59, .14); color: var(--warn); }
.ck-item.bad .ck-dot { background: var(--down-soft); color: var(--down); }
.ck-item.bad b { color: #ff8a99; }
.db-log { margin: 12px 0 0; padding: 12px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--border); font: 12px/1.6 ui-monospace, Menlo, monospace; color: var(--text-2); white-space: pre-wrap; }
.sys-form .card-head .btn { margin-left: auto; }
.sys-list { display: grid; gap: 0; }
.sys-list > p { margin: 0 0 6px; }
.sys-row { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sys-row:last-child { border-bottom: 0; }
.sys-lbl { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sys-lbl b { font-size: 13.5px; font-weight: 600; }
.sys-row > small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.src { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 8px; border-radius: var(--pill); background: var(--surface-3); }
.src.set { background: var(--accent-soft); color: var(--accent-text); }
.src .link-btn { padding: 0; font-size: 11px; }
.sys-in { margin-top: 4px; }
.sys-in input, .sys-in select { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13.5px; }
.sys-in input:focus, .sys-in select:focus { outline: none; border-color: var(--line-sel); }
.sys-row.inline { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.sys-row.inline .sys-lbl, .sys-row.inline > small { grid-column: 1; }
.sys-row.inline .sys-in { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
.copyable { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--border-strong); }
.copyable code { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; background: none; padding: 0; }
@media (max-width: 1100px) { .sys-top { grid-template-columns: 1fr; } }
.sys-top .pill { text-transform: none; }

.seg-3 .seg-thumb { width: calc(33.333% - 2px); transform: translateX(calc(var(--i, 0) * 100%)); }
.txcard { width: 100%; text-align: left; color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.txcard:hover { border-color: var(--border-hover); }
.txcard:active { transform: scale(.99); }
.w-hist { margin-top: 18px; border: 1px solid var(--border); background: var(--surface-2); }
.tx-seg { margin-bottom: 14px; }
.tx-list .hday:first-child .hday-label { margin-top: 0; }
.txd-head { display: grid; justify-items: center; gap: 8px; padding: 18px 0 16px; text-align: center; }
.txd-head .tx-ico { width: 48px; height: 48px; border-radius: 14px; }
.txd-head strong { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.txd-head.rejected strong { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.txd-rows { margin-top: 12px; }
.txd-rows div.wrap { display: grid; justify-content: stretch; gap: 4px; }
.txd-rows div.wrap b { white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; text-align: left; }
.txd-rows a, .cp-rows a, .wallet-done .wd-rows a { color: var(--accent-2, #a995ff); display: inline-flex; align-items: center; gap: 4px; }
.rej-reason.pending, .rej-reason.approved { background: var(--surface-2); border-color: var(--border-strong); color: var(--text-2); }
.rej-reason.pending b, .rej-reason.approved b { color: var(--muted); }
.ref-copy { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.ref-copy .link-btn { padding: 0; color: var(--muted); }
.ref-copy .link-btn:hover { color: var(--text); }
.ref-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; cursor: pointer; white-space: nowrap; }
.ref-chip .ico { color: var(--muted); }
.ref-chip:hover { border-color: var(--line-sel); }
.ref-chip:hover .ico { color: var(--text); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.net-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.net-chip { position: relative; cursor: pointer; }
.net-chip input { position: absolute; opacity: 0; pointer-events: none; }
.net-chip span { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface-2); transition: border-color .15s, background .15s; }
.net-chip b { font-size: 13.5px; font-weight: 700; }
.net-chip small { font-size: 11px; color: var(--muted); }
.net-chip input:checked + span { border-color: rgba(38, 161, 123, .7); background: linear-gradient(180deg, #14221d 0%, #101a16 100%); }
.net-chip input:focus-visible + span { outline: 2px solid var(--line-sel); outline-offset: 2px; }
.out-seg { margin-bottom: 12px; }
.addr-field { display: grid; gap: 6px; }
.addr-in { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px 0 0; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); }
.addr-in:focus-within { border-color: var(--line-sel); }
.addr-in input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 12px; color: var(--text); font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; outline: none; }
.addr-in .link-btn { padding: 0; font-size: 12.5px; }
.addr-hint { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.bc-add.solo { display: grid; width: 100%; min-height: 120px; border-radius: var(--r-lg); margin-bottom: 4px; }
.open-pay { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; margin-bottom: 12px; border-radius: var(--r-md);
  border: 1px solid rgba(38, 161, 123, .45); background: linear-gradient(180deg, #13201b 0%, #0f1814 100%); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.open-pay .pm-logo { width: 40px; height: 40px; }
.op-txt { display: grid; gap: 1px; min-width: 0; }
.op-txt b { font-size: 13.5px; font-weight: 600; }
.op-txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.op-go { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; color: #4fd1a5; }

.cp-head { display: grid; justify-items: center; gap: 8px; padding: 6px 0 16px; text-align: center; }
.cp-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.cp-amt { display: inline-flex; align-items: baseline; gap: 8px; border: 0; background: none; color: var(--text); cursor: pointer; padding: 0; font: inherit; }
.cp-amt b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cp-amt span { font-size: 16px; font-weight: 700; color: #4fd1a5; }
.cp-amt .ico { color: var(--muted); align-self: center; }
.cp-amt:hover .ico { color: var(--text); }
.cp-net { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 4px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.cp-net .pm-logo { width: 24px; height: 24px; }
.cp-net b { color: var(--text); font-weight: 600; }
.cp-timer { font-size: 12.5px; font-weight: 600; color: var(--warn); font-variant-numeric: tabular-nums; }
.cp-timer.bad { color: var(--down); }
.cp-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--border); background: linear-gradient(180deg, #19191d 0%, #141417 100%); }
.cp-qr { padding: 0; border-radius: 12px; overflow: hidden; background: #fff; line-height: 0; }
.cp-qr svg { width: 132px; height: 132px; display: block; }
.cp-addr { display: grid; gap: 8px; min-width: 0; }
.cp-addr small { font-size: 11.5px; color: var(--muted); }
.cp-addr code { font: 600 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); overflow-wrap: anywhere; word-break: break-all; }
.cp-addr .btn { justify-self: start; display: inline-flex; gap: 6px; }
.cp-rules { margin: 12px 0 16px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); }
.cp-rules > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; font-size: 13px; }
.cp-rules > div + div { border-top: 1px solid var(--border); }
.cp-rules span { color: var(--muted); }
.cp-rules b { color: var(--text); font-weight: 600; text-align: right; }
.cp-form { gap: 12px; }
.cp-form .field > span:first-child { font-size: 12.5px; }
.cp-form small { font-size: 11.5px; color: var(--muted); }
.cp-check { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; margin-bottom: 12px; border-radius: var(--r-lg); border: 1px solid rgba(233, 162, 59, .3); background: rgba(233, 162, 59, .06); }
.cp-check b { display: block; font-size: 14px; font-weight: 600; }
.cp-check small { font-size: 12px; color: var(--text-2); line-height: 1.45; }
.cp-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(233, 162, 59, .2); border-top-color: var(--warn); animation: cpSpin .9s linear infinite; }
@keyframes cpSpin { to { transform: rotate(360deg); } }
@media (max-width: 380px) { .cp-card { grid-template-columns: 1fr; justify-items: center; } .cp-addr { justify-items: center; text-align: center; } .cp-addr .btn { justify-self: center; } }

.th-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; font-size: 12px; color: var(--muted); }
.th-meta .th-date { margin-left: auto; }
.tk-meta .mono { color: var(--text-2); letter-spacing: .04em; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.msg.user .msg-files { justify-content: flex-end; }
.mf-img { display: block; width: 132px; height: 132px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface-3); }
.mf-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-video { width: 240px; max-width: 100%; border-radius: 14px; background: #000; border: 1px solid var(--border-strong); }
.mf-file { display: inline-flex; align-items: center; gap: 10px; max-width: 240px; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-3); color: var(--text) !important; text-decoration: none !important; }
.mf-file .ico { color: var(--down); --ia: var(--down); flex-shrink: 0; }
.mf-file span { display: grid; min-width: 0; }
.mf-file b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-file small { font-size: 11px; color: var(--muted); }
.composer { flex-direction: column; align-items: stretch; }
.cmp-row { display: flex; align-items: flex-end; gap: 6px; }
.cmp-row textarea { flex: 1; min-height: 42px; max-height: 160px; resize: none; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; padding: 9px 4px; outline: none; }
.att-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--text-2); cursor: pointer; flex-shrink: 0; }
.att-btn:hover { background: var(--surface-3); color: var(--text); }
.att-list { display: flex; flex-wrap: wrap; gap: 6px; }
.att-list[hidden] { display: none; }
.att-chip { display: grid; grid-template-columns: 32px minmax(0, 1fr) 22px; align-items: center; gap: 8px; max-width: 100%; padding: 5px 6px 5px 5px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-3); }
.att-chip img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.att-chip > .ico { justify-self: center; color: var(--text-2); }
.att-chip span { display: grid; min-width: 0; }
.att-chip b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.att-chip small { font-size: 10.5px; color: var(--muted); }
.att-chip button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.att-chip button:hover { background: var(--down-soft); color: var(--down); }
.att-field > span small { color: var(--muted); font-weight: 500; }
.att-drop { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px 10px 8px; border-radius: var(--r-md); border: 1.5px dashed var(--border-hover); cursor: pointer; }
.att-drop:hover { border-color: var(--line-sel); }
.att-drop > span { display: grid; gap: 1px; }
.att-drop b { font-size: 13px; font-weight: 600; }
.att-drop small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.att-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.att-pick { display: inline-flex; gap: 6px; cursor: pointer; }
.payto .addr { font-size: 11.5px; overflow-wrap: anywhere; }
.alert-info { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: rgba(124, 92, 252, .1); border: 1px solid rgba(124, 92, 252, .3); color: var(--text-2); }
.alert-info b { color: var(--text); }
.le-tpl { margin-bottom: 14px; font-size: 13px; line-height: 1.5; }

.sup-head { display: grid; gap: 12px; padding: 16px; margin-bottom: 14px; border-radius: var(--r-lg); border: 1px solid var(--border); background: linear-gradient(180deg, #19191d 0%, #141417 100%); }
.sup-head-txt { display: grid; gap: 2px; }
.sup-head-txt b { font-size: 15px; font-weight: 600; }
.sup-head-txt small { font-size: 12.5px; color: var(--muted); }
.sup-head .btn { display: inline-flex; justify-content: center; gap: 6px; }
.wait-state { display: grid; justify-items: center; gap: 6px; padding: 22px 12px 20px; text-align: center; }
.wait-state b { font-size: 16px; font-weight: 600; margin-top: 8px; }
.wait-state small { font-size: 12.5px; color: var(--muted); max-width: 280px; line-height: 1.45; }
.ws-ring { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--warn); animation: cpSpin .9s linear infinite; }
.cp-actions { display: grid; gap: 10px; width: 100%; margin-top: 16px; }
.cp-actions .btn + .btn, .wallet-done .cp-actions .btn + .btn { margin-top: 0; }
.wallet-done .cp-actions { margin-top: 4px; }

.adm { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 10px; padding: 18px 12px 14px; border-right: 1px solid var(--border); background: #08080a; z-index: 40; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 12px; color: var(--text) !important; text-decoration: none !important; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.adm-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: none; min-height: 0; }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-group { padding: 16px 12px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.adm-nav button { display: flex; align-items: center; gap: 11px; width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.adm-nav button > span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-nav button .ico { width: 17px; height: 17px; color: var(--muted); --ia: var(--muted); flex-shrink: 0; }
.adm-nav button:hover { background: var(--surface); color: var(--text); }
.adm-nav button.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.adm-nav button.active .ico { color: var(--text); --ia: var(--accent-text); }
.adm-nav .badge { background: var(--warn); color: #1a1100; font-size: 10.5px; font-weight: 700; border-radius: var(--pill); padding: 0 6px; line-height: 17px; }
.adm-nav .badge.bad { background: var(--down); color: #fff; }
.adm-me { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 10px 6px 0; border-top: 1px solid var(--border); }
.adm-me .avatar { width: 34px; height: 34px; font-size: 12px; cursor: default; }
.adm-me strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-me small { display: block; font-size: 11px; color: var(--muted); }
.adm-me .icon-btn { width: 32px; height: 32px; }
.adm-body { min-width: 0; }
.adm-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; background: rgba(5, 5, 7, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.adm-bar h1 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.adm-menu { display: none; }
.adm-scrim { display: none; }
.adm .admin-main { padding: 24px 28px 64px; max-width: 1480px; margin: 0; }

.sub-tabs { display: flex; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.sys-card { max-width: 820px; }
.sys-form .set-save { max-width: 820px; }

.h-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.h-tile { display: grid; gap: 3px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: linear-gradient(180deg, #17171b 0%, #121215 100%); min-width: 0; }
.h-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.h-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(161, 161, 170, .12); }
.h-tile.ok .h-dot { background: var(--up); box-shadow: 0 0 0 4px rgba(46, 189, 133, .14); }
.h-tile.warn .h-dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(233, 162, 59, .14); }
.h-tile.bad .h-dot { background: var(--down); box-shadow: 0 0 0 4px rgba(246, 70, 93, .16); }
.h-tile.bad { border-color: rgba(246, 70, 93, .35); }
.h-tile small { font-size: 12px; color: var(--muted); }
.h-tile b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-tile > span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.h-stack { display: grid; gap: 14px; }
.h-stack .btn-block { margin-top: 12px; }

.log-table .msg-cell { white-space: normal; max-width: 520px; overflow-wrap: anywhere; }
.log-table .msg-cell b { font-weight: 500; }
.log-detail td { background: var(--surface); }
.log-detail .kvs { max-width: 520px; margin-bottom: 10px; }
.log-detail .db-log { max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.log-detail .sub { margin: 8px 0 4px; }

@media (max-width: 1200px) {
  .h-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-102%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  .adm.nav-open .adm-side { transform: none; }
  .adm-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .55); }
  .adm.nav-open .adm-scrim { display: block; }
  .adm-menu { display: grid; }
  .adm-bar { height: 56px; padding: 0 14px; }
  .adm-bar h1 { font-size: 17px; }
  .adm .admin-main { padding: 16px 14px 48px; }
}
@media (max-width: 560px) {
  .h-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .h-tile { padding: 12px; }
  .h-tile b { font-size: 15px; }
}
.kpi-top + strong { margin-top: 16px; }

.inst-page { min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, rgba(124, 92, 252, .12), transparent 70%), var(--bg); }
.inst { width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }
.inst-head { display: grid; gap: 22px; margin-bottom: 18px; }
.inst-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.inst-brand b { font-weight: 600; letter-spacing: -.02em; }
.inst-brand em { font-style: normal; font-size: 12px; color: var(--muted); padding: 3px 9px; border: 1px solid var(--border-strong); border-radius: var(--pill); }
.inst-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.inst-rail li > a, .inst-rail li > i + span, .inst-rail li { min-width: 0; }
.inst-rail li, .inst-rail li > a { display: grid; justify-items: start; gap: 8px; color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 500; }
.inst-rail li::before { content: ""; display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--surface-3); }
.inst-rail li.done::before, .inst-rail li.now::before { background: var(--accent); }
.inst-rail i { display: none; }
.inst-rail li.now, .inst-rail li.now a { color: var(--text); }
.inst-rail li.done, .inst-rail li.done a { color: var(--text-2); }
.inst-rail li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.inst-card { padding: 28px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); }
.inst-card h1 { margin: 0 0 18px; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.inst-card h2 { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
.inst-card h2 .req { font-style: normal; font-size: 10.5px; color: var(--warn); border: 1px solid rgba(233, 162, 59, .35); padding: 1px 7px; border-radius: var(--pill); letter-spacing: .04em; }
.inst-form h2:first-of-type { margin-top: 4px; }
.inst-lead { margin: -8px 0 20px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.inst-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inst-grid.inst-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inst-wide { grid-column: 1 / -1; }
.inst-form.form { gap: 14px; }
.inst-inline { margin-top: -2px; }
.inst-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.inst-actions form { margin: 0; }
.inst-checks { display: grid; gap: 14px; }
.inst-group { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.inst-group h2 { margin: 0; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 11px; }
.inst-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13.5px; }
.inst-row + .inst-row { border-top: 1px solid var(--border); }
.inst-row b { font-weight: 500; }
.inst-row small { font-size: 12.5px; color: var(--muted); text-align: right; }
.inst-dot { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.inst-row.ok .inst-dot { background: rgba(46, 189, 133, .15); color: var(--up); }
.inst-row.warn .inst-dot { background: rgba(233, 162, 59, .15); color: var(--warn); }
.inst-row.bad .inst-dot { background: var(--down-soft); color: var(--down); }
.inst-row.bad small { color: #ff8a99; }
.inst-dot .ico { stroke-width: 3; --ia: currentColor; }
.inst-note { margin: 18px 0 8px; font-size: 13px; color: var(--text-2); }
.inst-code { margin: 6px 0 0; padding: 12px 14px; border-radius: var(--r-md); background: #0b0b0e; border: 1px solid var(--border); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; }
.inst-sum { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px 16px; }
.inst-sum b { text-align: right; overflow-wrap: anywhere; }
.inst-done { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.inst-done h1 { margin: 0; }
.inst-ok { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--up); color: #062016; }
.inst-ok .ico { stroke-width: 3; --ia: currentColor; }
.inst-log { margin: 0 0 6px; padding: 12px 16px 12px 32px; border-radius: var(--r-md); background: var(--surface-2); font-size: 13px; color: var(--text-2); line-height: 1.8; }
.inst-steps { display: grid; gap: 14px; }
.inst-steps b { display: block; font-size: 14px; font-weight: 600; }
.inst-steps small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) {
  .inst { padding: 22px 12px 48px; }
  .inst-card { padding: 20px 16px; border-radius: 18px; }
  .inst-grid, .inst-grid.inst-3 { grid-template-columns: minmax(0, 1fr); }
  .inst-rail { gap: 5px; }
  .inst-rail li span { font-size: 11px; }
  .inst-actions .btn { flex: 1 1 auto; }
}
.creative-blank { min-height: calc(100vh - 160px); }
@media (min-width: 901px) {
  .drawer { width: 50vw; }
  .drawer-head { padding: 16px 28px; }
  .drawer-body { padding: 22px 28px 28px; }
}

.set-in i.post { padding: 0 11px 0 0; }
.set-in:has(i.post) input { padding-right: 4px; }
.set-sel { width: 230px; padding: 0 4px; }
.set-sel select { width: 100%; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; outline: none; padding: 0 6px; }

.mt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.mt-tile { display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.mt-tile small { font-size: 12px; color: var(--muted); }
.mt-tile b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.mt-tile span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-tile.warn { border-color: rgba(233, 162, 59, .35); }
.mt-tile.warn b { color: var(--warn); }
.mt-tile.ok b { color: var(--up); }
.sub-tabs + .card, .mt-tiles + .sub-tabs { margin-top: 0; }
.sub-tabs { margin-bottom: 12px; }
.sub-tabs .badge { margin-left: 2px; min-width: 18px; padding: 0 6px; border-radius: var(--pill); background: var(--warn); color: #1a1100; font-size: 10.5px; font-weight: 700; line-height: 18px; }

.pill-processing { background: rgba(96, 165, 250, .12); color: #7cb4ff; }
.pill-muted { background: var(--surface-3); color: var(--muted); }
.tx-note { overflow-wrap: anywhere; }
.sys-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px; }

.rk-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--pill); border: 1px solid transparent; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.rk-pill.pass { background: var(--up-soft); color: var(--up); }
.rk-pill.fail { background: var(--down-soft); color: var(--down); }
.rk-pill:hover { border-color: currentColor; }
.rk-list { display: grid; gap: 2px; margin: 14px 0 10px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.rk-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; background: var(--surface-2); }
.rk-row.bad { background: rgba(246, 70, 93, .07); }
.rk-row b { display: block; font-size: 13px; font-weight: 600; }
.rk-row small { display: block; font-size: 12px; color: var(--text-2); margin-top: 1px; }
.rk-row i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 12px; margin-top: 1px; }
.rk-ok { background: var(--up-soft); color: var(--up); }
.rk-bad { background: var(--down-soft); color: var(--down); }
.rk-off { background: var(--surface-3); color: var(--muted); }
.rk-inline { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r); font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.rk-inline.pass { background: var(--up-soft); color: var(--up); }
.rk-inline.fail { background: var(--down-soft); color: var(--down); }
.pay-sum { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); }
.pay-sum b { font-size: 20px; font-weight: 600; }
.pay-sum span { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }

.rf-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rf-rule b { font-weight: 600; font-size: 14px; }
.rf-link { display: flex; align-items: center; gap: 8px; max-width: 360px; }
.rf-link code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-2); }
.row-off td { opacity: .55; }
.row-off td:last-child { opacity: 1; }
.pn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pn-preview { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface-3); border: 1px solid var(--border-strong); }
.pn-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); }
.pn-preview b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-preview small { display: block; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .mt-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .mt-tile { padding: 12px; }
  .mt-tile b { font-size: 18px; }
  .pn-row { grid-template-columns: minmax(0, 1fr); }
}

.app-banner { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 28px; gap: 12px; align-items: center; padding: 10px 8px 10px 12px; border-radius: 18px; border: 1px solid var(--border-strong); background: rgba(22, 22, 24, .97); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); animation: ab-in .35s cubic-bezier(.2, .8, .2, 1); }
.app-banner[hidden] { display: none; }
.app-banner img { border-radius: 11px; display: block; }
.ab-txt { min-width: 0; }
.ab-txt b { display: block; font-size: 13.5px; font-weight: 700; }
.ab-txt small { display: block; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.terminal .app-banner { bottom: calc(84px + env(safe-area-inset-bottom)); }
body:has(.drawer.open) .app-banner, body:has(.dlg) .app-banner { display: none; }
.tx-acts { display: grid; gap: 6px; justify-items: stretch; min-width: 112px; }
.tx-acts .btn { width: 100%; justify-content: center; }
@keyframes ab-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.app-guide { position: fixed; inset: 0; z-index: 130; display: grid; align-items: end; justify-items: center; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .62); }
.app-guide[hidden] { display: none; }
.ag-card { width: 100%; max-width: 400px; padding: 24px 20px 18px; border-radius: 24px; border: 1px solid var(--border-strong); background: var(--surface); text-align: center; animation: ab-in .3s cubic-bezier(.2, .8, .2, 1); }
.ag-card img { border-radius: 15px; margin-bottom: 12px; }
.ag-card h3 { margin: 0 0 16px; font-size: 18px; font-weight: 700; }
.ag-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; text-align: left; }
.ag-steps[hidden] { display: none; }
.ag-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 12px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2); }
.ag-steps li p { margin: 0; line-height: 1.5; }
.ag-steps li b { color: var(--text); font-weight: 600; }
.ag-steps li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-4); color: var(--text); font-size: 12px; font-weight: 700; }
.ag-share { display: inline-block; width: 15px; height: 18px; vertical-align: -3px; margin: 0 2px; border: 1.8px solid #4ea1ff; border-top: 0; border-radius: 0 0 3px 3px; position: relative; }
.ag-share::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1.8px; height: 13px; margin-left: -.9px; background: #4ea1ff; }
.ag-share::after { content: ""; position: absolute; left: 50%; top: -8px; width: 6px; height: 6px; margin-left: -4px; border-left: 1.8px solid #4ea1ff; border-top: 1.8px solid #4ea1ff; transform: rotate(45deg); }
@media (min-width: 900px) { .app-guide { align-items: center; } }

.ref-hero { position: relative; overflow: hidden; padding: 22px 18px 20px; border-radius: 20px; background: var(--featured); color: #fff; margin-bottom: 12px; }
.ref-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); }
.rh-art { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .16); margin-bottom: 14px; --ia: #fff; }
.ref-hero h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.ref-hero p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.ref-link-card { padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 12px; }
.ref-link-card > small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.rl-row { padding: 11px 12px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--border-strong); margin-bottom: 10px; }
.rl-row code { display: block; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.rl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rl-actions .btn:only-child { grid-column: 1 / -1; }
.rl-actions .btn { gap: 7px; }
.rl-code { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.rl-code b { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; cursor: pointer; margin-left: 4px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.ref-stats > div { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.ref-stats small { display: block; font-size: 11.5px; color: var(--muted); }
.ref-stats b { display: block; font-size: 17px; font-weight: 700; margin-top: 2px; }
.ref-friends { display: grid; gap: 6px; margin: 8px 0 14px; }
.rf-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.rf-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-4); font-size: 12px; font-weight: 700; }
.rf-row b { display: block; font-size: 13.5px; font-weight: 600; }
.rf-row small { display: block; font-size: 11.5px; color: var(--muted); }
.ref-steps { display: grid; gap: 6px; margin: 0 0 16px; }
.ref-steps div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); }
.ref-steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 700; }
.ref-terms { margin-top: 4px; }
.mr-switch { pointer-events: none; }
.auth-ref { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--up-soft); color: var(--up); font-size: 13px; font-weight: 600; margin-bottom: 14px; }

.pay-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pay-cell > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.info-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2); cursor: pointer; transition: .15s; }
.info-btn:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface-3); }
.st-cell { min-width: 150px; max-width: 240px; white-space: normal; }
.st-cell .tx-note { margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.dlg-card.dlg-wide { max-width: 520px; }
.kv-list { display: grid; margin: 14px 0 8px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.kv-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface-2); font-size: 13px; }
.kv-row + .kv-row { border-top: 1px solid var(--border); }
.kv-row > span { color: var(--muted); font-size: 12px; }
.kv-row b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.kv-row b small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.kv-row .addr { font-size: 12px; }
.kv-note { display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); font-size: 12.5px; margin-bottom: 4px; }
.kv-note b { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kv-note.rejected { background: var(--down-soft); }
.kv-note.rejected span { color: #ff8a99; }
@media (max-width: 560px) { .kv-row { grid-template-columns: minmax(0, 1fr) auto; } .kv-row > span { grid-column: 1 / -1; } }

.set-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.dash-grid, .ud-grid { align-items: start; }
.adm #view > :is(.card, section, form, .dash-grid, .ud-grid, .h-cols, .le-grid, .set-grid, .kpis, .h-grid) + :is(.card, section, form, .dash-grid, .ud-grid, .h-cols, .le-grid, .set-grid) { margin-top: 14px; }
.adm #view > .kpis + .kpis { margin-top: 0; }
.ref-date { margin-top: 5px; white-space: nowrap; }
.st-cell { min-width: 0; max-width: 220px; }
.dash-ops { align-items: stretch; }
.dash-ops > .card { display: flex; flex-direction: column; }
.dash-ops > .card > .card-body { flex: 1; }
.dash-ops .mini-list:has(> p:only-child) { display: grid; place-items: center; min-height: 120px; }
@media (max-width: 900px) { .ft-risk-head { column-gap: 6px; } }
.wd-rows .wd-total b { font-size: 15px; color: var(--up); }

.site-nav { padding-top: env(safe-area-inset-top); }
.adm-bar { height: calc(64px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
@media (max-width: 900px) { .adm-bar { height: calc(56px + env(safe-area-inset-top)); } }
.adm-side { padding-top: calc(18px + env(safe-area-inset-top)); }
.auth-page { padding-top: calc(32px + env(safe-area-inset-top)); padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  html:has(> body.auth-page) { overscroll-behavior: none; }
  .auth-page { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); overscroll-behavior: none; }
  .auth-page .auth-card { min-height: 0; }
  .auth-page::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--bg); z-index: 60; pointer-events: none; }
}
@media (max-width: 900px) {
  .topbar { padding-top: calc(10px + env(safe-area-inset-top)); }
  .drawer { padding-top: env(safe-area-inset-top); }
  .topbar .brand .brand-mark { width: 42px; height: 42px; }
  .sidenav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: env(safe-area-inset-bottom); background: #111113; z-index: 0; pointer-events: none; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
.fair .lg-index-head p { max-width: 760px; }
.fair-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 6px 0 18px; }
.fair-step { padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.fair-step b { display: block; margin: 12px 0 6px; font-size: 15px; }
.fair-step p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.fair-card { margin-bottom: 18px; }
.fair-hash { display: inline-block; max-width: 100%; font-size: 12px; word-break: break-all; color: var(--text-2); }
.fair-table td { vertical-align: top; }
.fair-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-top: 14px; }
.fair-form .btn { height: 44px; }
.fair-result { margin-top: 16px; display: grid; gap: 8px; }
.fair-sum { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.fair-sum.ok { background: var(--up-soft); color: #6fd8ad; }
.fair-sum.warn { background: rgba(233, 162, 59, .12); color: var(--warn); }
.fair-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); font-size: 13.5px; }
.fair-row.bad { border-color: rgba(240, 82, 101, .4); }
.fair-row.wait span { color: var(--text-2); }
.fair-algo code { font-size: 12.5px; }
.fair-algo ol { padding-left: 20px; }
.fair-algo li { margin-bottom: 10px; line-height: 1.6; }
.fair-anchors summary { cursor: pointer; font-weight: 600; margin-top: 6px; }
.fair-anchor-day { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; }
.fair-anchor-day b { flex: 0 0 100%; }
.fair-note { margin-top: 8px; font-size: 13px; }
@media (max-width: 900px) {
  .fair-steps { grid-template-columns: minmax(0, 1fr); }
  .fair-form { grid-template-columns: minmax(0, 1fr); }
  .fair-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.tc-fair { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 0 40px; padding-top: 7px; border-top: 1px dashed var(--border-strong); font-size: 11.5px; color: var(--muted); text-decoration: none !important; }
.tc-fair span, .tc-fair b { display: inline-flex; align-items: center; gap: 5px; }
.tc-fair span .ico { color: var(--up); --ia: var(--up); }
.tc-fair b { font-weight: 600; color: var(--accent-text); gap: 2px; }
.tc-fair b .ico { --ia: var(--accent-text); }
.tc-fair:hover b { text-decoration: underline; }
.fair-table { table-layout: fixed; width: 100%; }
.fair-table th:nth-child(1) { width: 120px; }
.fair-table th:nth-child(2) { width: 130px; }
.fair-table td:nth-child(3), .fair-table td:nth-child(4) { overflow-wrap: anywhere; }
@media (max-width: 900px) { .fair-table { table-layout: auto; min-width: 640px; } }

.h-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 12px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.h-banner b { display: block; font-size: 15px; font-weight: 600; }
.h-banner small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.h-banner-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.h-banner.ok .h-banner-ico { background: var(--up-soft); color: var(--up); --ia: var(--up); }
.h-banner.warn { border-color: rgba(233, 162, 59, .35); }
.h-banner.warn .h-banner-ico { background: rgba(233, 162, 59, .12); color: var(--warn); --ia: var(--warn); }
.h-banner.bad { border-color: rgba(246, 70, 93, .4); }
.h-banner.bad .h-banner-ico { background: rgba(246, 70, 93, .12); color: var(--down); --ia: var(--down); }
.h-issues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.h-issue { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.h-issue[data-link] { cursor: pointer; }
.h-issue[data-link]:hover { border-color: var(--border-strong); }
.h-issue b { display: block; font-size: 13px; font-weight: 600; }
.h-issue small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.h-issue.warn .h-dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(233, 162, 59, .14); }
.h-issue.bad .h-dot { background: var(--down); box-shadow: 0 0 0 4px rgba(246, 70, 93, .16); }
.h-sub { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 10px; }
.h-sub h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.h-sub .link-btn { display: inline-flex; align-items: center; gap: 2px; }
.h-tile[data-link], .h-tile[data-api] { cursor: pointer; transition: border-color .15s; }
.h-tile[data-link]:hover, .h-tile[data-api]:hover { border-color: var(--border-strong); }

.api-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.api-sum { font-size: 13px; color: var(--text-2); }
.api-sum b { font-weight: 600; }
.api-live { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 13px; color: var(--text-2); cursor: pointer; }
.api-live input { accent-color: var(--accent); width: 15px; height: 15px; }
.api-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.api-tile { display: grid; gap: 4px; min-width: 0; padding: 13px 14px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.api-tile:hover { border-color: var(--border-strong); }
.api-tile.active { border-color: var(--line-sel); background: var(--sel-bg); }
.api-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 4px; }
.api-head small { font-size: 12.5px; color: var(--text-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.api-head .chip-ico { width: 26px; height: 26px; }
.api-tile b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.api-tile b em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
.api-tile > span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.api-tile .api-fail { color: #ff8a99; }
.api-tile.ok .h-dot { background: var(--up); box-shadow: 0 0 0 4px rgba(46, 189, 133, .14); }
.api-tile.warn .h-dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(233, 162, 59, .14); }
.api-tile.bad .h-dot { background: var(--down); box-shadow: 0 0 0 4px rgba(246, 70, 93, .16); }
.api-tile.bad { border-color: rgba(246, 70, 93, .35); }
.api-pre-head { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.api-pre-head .btn { height: 26px; gap: 5px; }
.adm #view > .api-tiles + .card, .adm #view > .card + .card { margin-top: 14px; }

.apc-legend { display: inline-flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.apc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.apc-legend i { width: 10px; height: 10px; border-radius: 3px; }
.apc { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 160px auto; column-gap: 10px; row-gap: 6px; }
.apc-axis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin: -6px 0; }
.apc-plot { position: relative; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; border-bottom: 1px solid var(--border-strong); }
.apc-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--border); pointer-events: none; }
.apc-col { height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; }
.apc-col.hover { background: rgba(255, 255, 255, .03); }
.apc-bar { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; width: min(70%, 14px); height: 100%; }
.apc-bar i { display: block; min-height: 2px; }
.apc-bar i:first-child { border-radius: 4px 4px 0 0; }
.apc-ok { background: var(--up); }
.apc-fail { background: var(--down); }
.apc-tip { position: absolute; top: -8px; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: #1b1b1f; color: var(--text); font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 3; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.apc-x { grid-column: 2; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.apc-empty { padding: 36px 0; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 1200px) { .api-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h-issues { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .api-tiles { gap: 8px; }
  .api-tile { padding: 11px 12px; }
  .api-tile b { font-size: 16px; }
  .api-live { margin-left: 0; }
  .h-banner { grid-template-columns: auto minmax(0, 1fr); }
  .h-banner .btn { grid-column: 1 / -1; }
  .apc { grid-template-rows: 130px auto; }
}

.drawer-body:has(> .chat-dv) { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-dv { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ch { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ch-top { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.ch-av { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); --ia: var(--accent-text); flex-shrink: 0; }
.ch-dot, .sup-on { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 2.5px var(--surface); }
.ch-who { display: grid; gap: 1px; min-width: 0; }
.ch-who b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-who small { font-size: 12px; color: var(--muted); }
.ch-who small.typing { color: var(--accent-text); }
.ch-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px 12px;
  background: radial-gradient(120% 60% at 100% 0%, rgba(124, 92, 252, .06), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(46, 189, 133, .035), transparent 60%); }
.ch-more { display: flex; justify-content: center; padding: 4px 0 8px; }
.ch-day { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; margin: 10px 0 6px; pointer-events: none; }
.ch-day span { padding: 3px 10px; border-radius: var(--pill); background: rgba(28, 28, 31, .92); border: 1px solid var(--border); font-size: 11.5px; color: var(--text-2); backdrop-filter: blur(6px); }
.cm { display: flex; flex-direction: column; align-items: flex-start; margin-top: 2px; }
.cm.first { margin-top: 8px; }
.cm.me { align-items: flex-end; }
.cm-b { position: relative; max-width: min(82%, 420px); padding: 7px 10px 6px; border-radius: 16px; font-size: 14px; line-height: 1.42; overflow-wrap: anywhere; cursor: default; transition: box-shadow .2s; }
.cm.them .cm-b { background: var(--surface-3); border: 1px solid var(--border); color: var(--text); }
.cm.me .cm-b { background: linear-gradient(160deg, #8466ff 0%, #6c4cf2 100%); color: #fff; }
.cm.them.last .cm-b { border-bottom-left-radius: 5px; }
.cm.me.last .cm-b { border-bottom-right-radius: 5px; }
.cm.them:not(.first) .cm-b { border-top-left-radius: 6px; }
.cm.me:not(.first) .cm-b { border-top-right-radius: 6px; }
.cm.them:not(.last) .cm-b { border-bottom-left-radius: 6px; }
.cm.me:not(.last) .cm-b { border-bottom-right-radius: 6px; }
.cm.failed .cm-b { opacity: .7; }
.cm.flash .cm-b { box-shadow: 0 0 0 3px rgba(124, 92, 252, .55); }
.cm-by { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.cm.me .cm-by { color: rgba(255, 255, 255, .78); }
.cm-t { display: inline; }
.cm-t a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cm.them .cm-t a { color: var(--accent-text); }
.cm-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -2px 10px; font-size: 10.5px; line-height: 1; opacity: .72; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm.me .cm-meta { color: rgba(255, 255, 255, .85); opacity: 1; }
.cm-tk { display: inline-flex; --ia: currentColor; }
.cm-tk .ico { stroke-width: 2; }
.cm-tk.read { color: #8ff0ff; }
.cm-tk.fail { color: #ffb4bf; }
.cm-b .msg-files { margin: 2px -4px 4px; }
.cm-b .mf-img { width: 200px; height: auto; max-height: 260px; aspect-ratio: auto; border: 0; border-radius: 12px; }
.cm-b .mf-img img { height: auto; max-height: 260px; }
.cm-b .mf-video { width: 230px; border: 0; border-radius: 12px; }
.cm.me .mf-file { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }
.cm.me .mf-file small { color: rgba(255, 255, 255, .75); }
.cm-quote { display: grid; gap: 1px; width: 100%; margin: 1px 0 5px; padding: 5px 9px; border: 0; border-left: 3px solid var(--accent-text); border-radius: 8px; background: rgba(255, 255, 255, .06); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.cm.me .cm-quote { border-left-color: #fff; background: rgba(255, 255, 255, .14); }
.cm-quote b { font-size: 12px; font-weight: 600; }
.cm-quote span { font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-acts { display: none; gap: 6px; margin: 5px 2px 2px; }
.cm.act .cm-acts { display: flex; animation: cmActs .16s ease-out; }
.cm-acts button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 500; }
.cm-acts button:hover { border-color: var(--border-hover); }
@keyframes cmActs { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.cm-retry { margin-top: 4px; border: 0; background: none; padding: 0 2px; color: #ff8a99; font-size: 12px; font-weight: 600; }
.cm-sys { display: flex; justify-content: center; margin: 10px 0; }
.cm-sys span { max-width: 88%; padding: 6px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); text-align: center; }
.ch-typing { display: flex; margin-top: 8px; }
.ch-bub { display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 16px 16px 16px 5px; background: var(--surface-3); border: 1px solid var(--border); }
.ch-bub i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: chDot 1.2s infinite ease-in-out; }
.ch-bub i:nth-child(2) { animation-delay: .15s; }
.ch-bub i:nth-child(3) { animation-delay: .3s; }
@keyframes chDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.ch-hello { display: grid; justify-items: center; gap: 8px; margin: 28px auto 8px; max-width: 320px; text-align: center; }
.ch-hello-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--accent-soft); color: var(--accent-text); --ia: var(--accent-text); margin-bottom: 4px; }
.ch-hello b { font-size: 16px; font-weight: 600; }
.ch-hello > span { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.ch-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 8px; }
.ch-topics button { padding: 8px 12px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: 12.5px; font-weight: 500; }
.ch-topics button:hover { border-color: var(--accent); color: var(--accent-text); }
.ch-jump { position: absolute; right: 14px; bottom: 78px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.ch-jump b { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); background: var(--accent); color: #fff; font-size: 10.5px; display: grid; place-items: center; }
.ch-jump b:empty { display: none; }
.ch-cmp { padding: 8px 12px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.ch-cmp .att-list { margin-bottom: 8px; }
.ch-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.ch-row .att-btn { width: 40px; height: 40px; border-radius: 50%; }
.ch-row textarea { display: block; width: 100%; min-height: 40px; max-height: 132px; padding: 9px 15px; resize: none; border-radius: 20px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14.5px; line-height: 1.45; outline: none; overflow-y: auto; }
.ch-row textarea:focus { border-color: var(--accent); }
.ch-send { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; transition: transform .12s, opacity .15s; }
.ch-send .ico { --ia: #fff; stroke-width: 2; transform: translateX(-1px); }
.ch-send:disabled { opacity: .4; }
.ch-send:not(:disabled):active { transform: scale(.92); }
.ch-reply { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 8px; padding: 6px 8px 6px 10px; border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface-2); color: var(--accent-text); --ia: var(--accent-text); }
.ch-reply span { display: grid; min-width: 0; color: var(--text); }
.ch-reply b { font-size: 12px; color: var(--accent-text); }
.ch-reply small { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-reply button { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.si-badge { position: absolute; top: 4px; right: 8px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: var(--pill); background: var(--down); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.side-item { position: relative; }
.sup-ico { position: relative; }
.sup-old .sup-ico { background: var(--surface-3); color: var(--text-2); --ia: var(--text-2); }
@media (max-width: 900px) {
  .drawer-body:has(> .chat-dv) { padding: 0 0 calc(92px + env(safe-area-inset-bottom)); }
  .ch-top { padding: 10px 14px; }
  .ch-scroll { padding: 8px 10px 10px; }
  .cm-b { max-width: 86%; }
  .si-badge { top: 2px; right: calc(50% - 22px); }
}

.adm #view:has(> .lc) { animation: none; }
.lc { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - 64px - env(safe-area-inset-top) - 48px); min-height: 480px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.lc-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); background: #0f0f11; }
.lc-find { padding: 12px 12px 8px; }
.lc-find input { width: 100%; height: 38px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; outline: none; }
.lc-find input:focus { border-color: var(--accent); }
.lc-tabs { display: flex; gap: 4px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.lc-tabs::-webkit-scrollbar { display: none; }
.lc-tabs button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: var(--pill); border: 1px solid transparent; background: none; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.lc-tabs button.active { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }
.lc-tabs b { font-size: 10.5px; font-weight: 700; color: #fff; background: var(--accent); border-radius: var(--pill); padding: 0 5px; line-height: 16px; }
.lc-tabs b:empty { display: none; }
.lc-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; }
.lc-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: 14px; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.lc-item:hover { background: var(--surface-2); }
.lc-item.active { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); }
.lc-av { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, #2b2b33, #1d1d22); border: 1px solid var(--border-strong); color: var(--text-2); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.lc-av.lg { width: 60px; height: 60px; font-size: 18px; }
.lc-av i { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 2.5px #0f0f11; }
.lc-mid { display: grid; gap: 2px; min-width: 0; }
.lc-row1, .lc-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.lc-row1 b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-row1 small { flex-shrink: 0; font-size: 11px; color: var(--muted); }
.lc-item.unread .lc-row1 small { color: var(--accent-text); font-weight: 600; }
.lc-row2 > span { min-width: 0; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-item.unread .lc-row2 > span { color: var(--text); }
.lc-row2 .lc-typing { color: var(--accent-text); }
.lc-you { display: inline-flex; vertical-align: -2px; margin-right: 3px; color: var(--muted); font-style: normal; }
.lc-you.read { color: #8ff0ff; }
.lc-n { flex-shrink: 0; min-width: 19px; height: 19px; padding: 0 6px; border-radius: var(--pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.lc-solved { flex-shrink: 0; font-size: 10.5px; font-style: normal; color: var(--muted); }
.lc-uid { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lc-none { padding: 36px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.lc-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lc-blank { flex: 1; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.lc-blank b { color: var(--text); font-size: 15px; font-weight: 600; }
.lc-blank-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-text); --ia: var(--accent-text); margin-bottom: 4px; }
.lc-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.lc-head .lc-av { width: 38px; height: 38px; }
.lc-head .lc-av i { box-shadow: 0 0 0 2.5px var(--surface); }
.lc-back { display: none; }
.lc-who { flex: 1; display: grid; gap: 1px; min-width: 0; }
.lc-who b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-who small { font-size: 12px; color: var(--muted); }
.lc-who small.on { color: var(--up); }
.lc-who small.typing { color: var(--accent-text); }
.lc-head .btn { gap: 6px; }
.lc-body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 270px; }
.lc-thread { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lc-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 18px 12px;
  background: radial-gradient(120% 60% at 100% 0%, rgba(124, 92, 252, .05), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(46, 189, 133, .03), transparent 60%); }
.lc-scroll .cm-b { max-width: min(72%, 560px); }
.lc-cmp { position: relative; padding: 10px 14px 14px; border-top: 1px solid var(--border); }
.lc-cmp .att-list { margin-bottom: 8px; }
.lc-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: end; gap: 6px; }
.lc-row .icon-btn, .lc-row .att-btn { width: 40px; height: 40px; border-radius: 50%; }
.lc-row textarea { display: block; width: 100%; min-height: 40px; max-height: 160px; padding: 9px 15px; resize: none; border-radius: 20px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; line-height: 1.45; outline: none; }
.lc-row textarea:focus { border-color: var(--accent); }
.lc-quick { position: absolute; left: 14px; right: 14px; bottom: calc(100% - 4px); z-index: 4; max-height: 320px; overflow-y: auto; padding: 10px; border-radius: 16px; border: 1px solid var(--border-strong); background: #18181c; box-shadow: 0 18px 48px rgba(0, 0, 0, .55); }
.lc-q-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
.lc-q-head b { font-size: 13px; }
.lc-q { display: block; width: 100%; padding: 9px 11px; margin-top: 4px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); text-align: left; font: inherit; font-size: 13px; line-height: 1.45; cursor: pointer; }
.lc-q:hover { border-color: var(--accent); }
.lc-q-edit { display: grid; gap: 8px; }
.lc-q-edit small { font-size: 12px; color: var(--muted); }
.lc-q-edit textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; }
.lc-q-acts { display: flex; justify-content: flex-end; gap: 8px; }
.lc-info { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 18px 16px; border-left: 1px solid var(--border); background: #0f0f11; }
.lc-info-top { display: grid; justify-items: center; gap: 8px; margin-bottom: 6px; text-align: center; }
.lc-info-top b { font-size: 15px; font-weight: 600; }
.lc-info .kvs { margin-bottom: 6px; }
.lc .ch-jump { bottom: 84px; }
@media (max-width: 1400px) {
  .lc-body { grid-template-columns: minmax(0, 1fr); }
  .lc-info { position: absolute; top: 0; right: 0; bottom: 0; width: 290px; z-index: 5; transform: translateX(105%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 48px rgba(0, 0, 0, .45); }
  .lc-body.info-open .lc-info { transform: none; }
}
@media (max-width: 900px) {
  .adm .admin-main:has(.lc) { padding: 0; }
  .lc { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 56px - env(safe-area-inset-top)); border: 0; border-radius: 0; }
  .lc-main { display: none; }
  .lc.has-chat .lc-side { display: none; }
  .lc.has-chat .lc-main { display: flex; }
  .lc-back { display: grid; }
  .lc-scroll { padding: 8px 10px; }
  .lc-scroll .cm-b { max-width: 86%; }
  .lc-head { padding: 8px 10px; gap: 8px; }
  .lc-head .btn { padding: 0 10px; }
  .lc-cmp { padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
  .lc-info { width: min(300px, 88vw); }
}

