
:root{
  --bg:#f5f7fb; --surface:#fff; --surface-2:#f8fafc; --text:#172033; --muted:#758095;
  --line:#e5eaf1; --accent:#4d63ff; --accent-soft:#eef0ff; --good:#12a36d; --bad:#e24a5a;
  --sidebar:260px; --radius:14px; --gap:18px;
}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.5}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--surface);border-right:1px solid var(--line);padding:22px 16px;display:flex;flex-direction:column;z-index:40}
.brand{display:flex;align-items:center;gap:12px;padding:0 8px 22px}
.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#4356f6,#7a5cff);color:#fff;display:grid;place-items:center;font-weight:700;font-size:15px}
.brand-name{font-weight:700;font-size:20px;letter-spacing:-.3px}.brand-sub{font-size:12px;color:var(--muted);margin-top:1px}
.nav{display:flex;flex-direction:column;gap:4px}.nav-label{font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:#9aa4b5;font-weight:700;padding:18px 12px 7px}
.nav-item{padding:10px 12px;border-radius:10px;color:#526078;font-weight:600}.nav-item:hover{background:#f5f7fb;color:var(--text)}.nav-item.active{background:var(--accent-soft);color:var(--accent)}
.sidebar-user{margin-top:auto;border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;gap:10px;align-items:center}.avatar{width:36px;height:36px;border-radius:10px;background:#eef1f7;display:grid;place-items:center;font-weight:700}.sidebar-user-copy{display:flex;flex-direction:column;min-width:0}.sidebar-user-copy strong{font-size:14px}.sidebar-user-copy span{font-size:11px;color:var(--muted)}
.main{margin-left:var(--sidebar);min-height:100vh}
.topbar{height:82px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;position:sticky;top:0;z-index:20}
.topbar h1{font-size:22px;line-height:1.2;margin:0;letter-spacing:-.4px}.topbar-sub{font-size:12px;color:var(--muted);margin-top:3px}.top-actions{margin-left:auto}.status-pill{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px;color:#516078;font-size:13px}.status-pill i{width:8px;height:8px;background:var(--good);border-radius:50%}
/* v0.7.7.4.110 — "Счета аккаунта - <ник>" header on /u/<code>: a small
   dot + text showing whether ANY of the owner's accounts is currently
   live, same green/red language as .status-pill above. Rendered
   server-side at page load (app/user_pages.py: owner_is_online) and kept
   live afterwards by robots-dashboard.js on each ~10s poll, matching the
   individual robot cards' own live dots instead of going stale while
   they update.
   v0.7.7.4.112 — the .111 "closed"/weekend heuristic is removed for now
   (per request — will be revisited properly later, ideally once the
   Agent can report real broker-session status instead of a UTC-time
   guess). Back to a plain two-state green/red indicator. Font-size
   needed !important — .topbar-sub already has its own
   font-size:12px!important rule further down this file (line ~880),
   which silently overrode this block's plain font-size:14px despite
   coming earlier in the cascade: !important always wins over a normal
   declaration regardless of source order or equal specificity. */
.fx-account-status{display:flex;align-items:center;gap:6px}
/* v0.7.7.4.112 — a compound selector (both classes together, matching
   the actual markup class="topbar-sub fx-account-status") so this wins
   on SPECIFICITY (0,2,0) over the competing single-class
   .topbar-sub{font-size:12px!important} rule (0,1,0) further down this
   file — specificity is checked before source order among tied
   !important declarations, so this is correct regardless of where either
   rule sits in the file, unlike the plain .fx-account-status{font-
   size:14px!important} attempt in .111, which lost because the other
   rule happened to come later with equal (single-class) specificity. */
.topbar-sub.fx-account-status{font-size:14px!important}
.fx-account-status-dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.fx-account-status-dot.online{background:var(--good)}
.fx-account-status-dot.offline{background:var(--bad)}
/* v0.7.7.4.137 — third state: some but not all monitored accounts have
   fresh telemetry ("Данные обновляются · K/N" where K<N). Same yellow
   already used for the per-card dot/badge (#f5c542, home-dashboard.css)
   and the "idle today" badge — one yellow across the dashboard rather
   than a second one invented just for this. */
.fx-account-status-dot.partial{background:#f5c542}
.fx-account-status-text.online{color:var(--good)}
.fx-account-status-text.offline{color:var(--bad)}
.fx-account-status-text.partial{color:#8a5906}
/* Darker than the raw #f5c542 dot — that yellow is tuned for a filled
   badge background (home-dashboard.css's own comment notes #f5c542 needs
   DARK text on top of it for contrast), not for use as small text
   directly on the page's own light background, where it would be too
   low-contrast to read comfortably. */
.menu-btn{display:none;border:0;background:#f2f4f8;border-radius:9px;width:40px;height:40px;margin-right:12px}
.content{padding:26px 28px 40px;max-width:1500px;margin:0 auto}
.hero-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap);margin-bottom:28px}
.metric-card,.account-card,.info-card,.panel,.empty-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 4px 18px rgba(23,32,51,.035)}
.metric-card{padding:20px}.metric-card span{display:block;color:var(--muted);font-size:13px}.metric-card strong{display:block;font-size:26px;line-height:1.2;margin:8px 0 5px;letter-spacing:-.6px}.metric-card small{color:#98a2b3}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 16px}.section-head h2{font-size:20px;margin:0 0 4px}.section-head p{margin:0;color:var(--muted)}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#3c4960;font-weight:700;cursor:pointer}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.button:disabled{opacity:.55;cursor:not-allowed}
.accounts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap)}
.account-card{padding:20px}.account-head{display:flex;justify-content:space-between;gap:20px}.account-head h3{font-size:18px;margin:6px 0 2px}.account-head p{margin:0;color:var(--muted)}.live-row{display:flex;gap:7px;align-items:center;font-size:11px;font-weight:700;color:var(--good);letter-spacing:.06em}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--good)}.platform{background:#f2f4f8;border-radius:8px;height:30px;padding:5px 9px;font-weight:700;font-size:12px}
.balance-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0;padding:16px;background:var(--surface-2);border-radius:11px}.balance-row span{display:block;color:var(--muted);font-size:12px}.balance-row strong{display:block;font-size:18px;margin-top:3px}
.stats-list{display:grid;gap:10px}.stats-list>div{display:flex;justify-content:space-between;border-bottom:1px solid #f0f2f6;padding-bottom:9px}.stats-list span{color:var(--muted)}.positive{color:var(--good)!important}.negative{color:var(--bad)!important}.account-foot{display:flex;justify-content:space-between;gap:12px;color:#929bad;font-size:12px;margin-top:15px}
.panel{overflow:hidden}.panel-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 19px;border-bottom:1px solid var(--line)}.panel-row:last-child{border-bottom:0}.panel-row div{display:flex;flex-direction:column}.panel-row span{color:var(--muted);font-size:13px}.badge{padding:5px 9px!important;border-radius:999px;font-size:12px!important;font-weight:700}.badge.success{background:#eaf8f2;color:var(--good)!important}
.info-card{padding:22px;margin-top:18px}.info-card h2,.info-card h3{margin:4px 0 8px}.info-card p{color:var(--muted);margin:0 0 18px}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:700;color:var(--accent)}
.cards-2{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}.code-box{background:#101728;color:#dce4ff;border-radius:10px;padding:13px 15px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow:auto}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}label{display:flex;flex-direction:column;gap:6px;color:#59667b;font-weight:600}input{height:44px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#fff;color:var(--text);outline:0}input:focus{border-color:#a9b2ff;box-shadow:0 0 0 3px #f0f1ff}
.switch-row{display:flex;justify-content:space-between;align-items:center}.fake-switch{width:42px;height:24px;border-radius:999px;background:#d9deea;position:relative}.fake-switch:after{content:"";position:absolute;width:18px;height:18px;background:#fff;border-radius:50%;left:3px;top:3px;box-shadow:0 1px 3px #0002}
.role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.role-grid>div{background:var(--surface-2);border-radius:11px;padding:15px;display:flex;flex-direction:column;gap:5px}.role-grid span{color:var(--muted);font-size:13px}
.empty-card{padding:54px 22px;text-align:center}.empty-card h2{font-size:22px;margin:10px 0 6px}.empty-card p{max-width:620px;margin:0 auto;color:var(--muted)}.empty-icon{width:52px;height:52px;border-radius:14px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin:0 auto;font-size:24px;font-weight:700}
.overlay{display:none}

/* v0.7.7.4.164 — global "Служба поддержки" shortcut button, every page
   except the support section itself (see layout.html's own {% if %}).
   Per explicit correction: NOT a half-circle flush against the edge —
   a normal rounded pill with icon+"Помощь" label, floating with real
   margin from the corner, same treatment on desktop as it already had
   on mobile (which was already correct and untouched here). Only
   difference by width: the text label collapses on narrow screens,
   leaving just the round icon (still with margin from the edge, never
   flush against it).*/
/* v0.7.7.4.165 — per explicit correction: default state is a plain
   circle (icon only) EVERYWHERE, same as mobile always had — no pill/
   text/dark-hover-background by default. Expanding into a pill with
   the "Помощь" label is now what HOVER itself does (shape/width
   change, not a color-darken effect), and only on devices with real
   mouse hover (gated below) — touchscreens keep the plain circle,
   tapping just navigates like any link, no "stuck open" hover state to
   worry about. Right offset is set via a tiny inline script (see
   layout.html) that measures .content's own actual right edge at
   runtime, since .content is centered with max-width:1500px and can
   leave a variable-width gap on wide screens — a fixed right:24px from
   the viewport doesn't reliably line up with where the card grid
   itself visually ends. */
.fx-help-fab{
  position:fixed;right:24px;bottom:30px;z-index:500;
  width:52px;height:52px;padding:0;border-radius:50%;overflow:hidden;
  background:var(--accent);color:#fff;
  display:flex;align-items:center;justify-content:center;gap:8px;
  box-shadow:0 4px 16px rgba(20,30,55,.3);
  text-decoration:none;font-weight:700;font-size:14px;white-space:nowrap;
  transition:width .18s ease,border-radius .18s ease;
}
.fx-help-fab span{opacity:0;transition:opacity .12s ease;max-width:0}
.fx-help-fab svg{width:20px;height:20px;flex:0 0 20px}
@media(hover:hover) and (pointer:fine){
  .fx-help-fab:hover{width:132px;border-radius:26px;padding:0 20px 0 16px;justify-content:flex-start}
  .fx-help-fab:hover span{opacity:1;max-width:none}
}
@media(max-width:768px){
  .fx-help-fab{right:16px;bottom:16px}
}
@media(max-width:1050px){
  .hero-grid{grid-template-columns:repeat(2,1fr)}
  .accounts-grid{grid-template-columns:1fr}
}
/* Sidebar sizing/position/transform (drawer vs rail) is owned by
   sidebar-compact.css at the same 980/981 split used below and by the
   "Modern Header Polish" .menu-btn rules further down this file — kept in
   sync so nothing disagrees on when the drawer opens. */
@media(max-width:980px){
  .overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#17203366;z-index:30}.overlay.show{display:block}
  .topbar{padding:0 18px}.content{padding:20px 18px 34px}
}
@media(max-width:580px){
  body{font-size:15px}
  .top-actions{display:none}.topbar h1{display:none}.topbar .topbar-sub{display:none}
  .hero-grid,.cards-2,.form-grid,.role-grid{grid-template-columns:1fr}
  .content{padding:16px 14px 30px}.hero-grid{gap:12px;margin-bottom:22px}
  .metric-card,.account-card,.info-card{padding:17px}
  .section-head{align-items:flex-start;flex-direction:column}.section-head .button{width:100%}
  .balance-row{grid-template-columns:1fr 1fr;padding:13px}
  .account-foot{flex-direction:column;gap:3px}
}


/* FXPulse v0.3.0 Auth & Users */
.auth-body{min-height:100vh;background:linear-gradient(145deg,#f4f6fb 0%,#eef1ff 100%)}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.auth-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:0 24px 70px rgba(23,32,51,.10)}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.auth-brand>div:last-child{display:flex;flex-direction:column}.auth-brand strong{font-size:20px}.auth-brand span{font-size:12px;color:var(--muted)}
.auth-copy h1{font-size:24px;margin:0 0 7px}.auth-copy p{color:var(--muted);margin:0 0 22px}
.auth-form,.stack-form{display:grid;gap:15px}.auth-form label,.stack-form label{font-size:14px}
.full{width:100%}.auth-foot{text-align:center;color:#9aa4b5;font-size:12px;margin-top:22px}
.alert{padding:11px 13px;border-radius:10px;margin:0 0 16px;font-size:14px}.alert.error{background:#fff0f2;color:#b9384a;border:1px solid #ffd9df}
.narrow-card{max-width:650px;margin:0}
select{height:44px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#fff;color:var(--text)}
.logout-form{margin-left:auto}.logout-form button{border:0;background:#f2f4f8;border-radius:8px;width:40px;height:40px;cursor:pointer;color:#718096;font-size:16px}
.user-create-grid{display:grid;grid-template-columns:1.1fr 1.4fr .8fr 1.2fr auto;gap:12px;align-items:end}
.user-row{display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(310px,auto);gap:18px;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line)}.user-row:last-child{border-bottom:0}
.user-main{display:flex;align-items:center;gap:11px}.user-main>div:last-child{display:flex;flex-direction:column}.user-main span{font-size:13px;color:var(--muted)}
.avatar.small{width:34px;height:34px}.user-meta{display:flex;gap:8px;align-items:center}.role-chip{font-size:11px;font-weight:700;background:#eef0ff;color:var(--accent);border-radius:999px;padding:5px 8px}
.badge.danger{background:#fff0f2;color:var(--bad)!important}.user-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.reset-form{display:flex;gap:7px}.reset-form input{height:36px;min-width:185px}.small-btn{min-height:36px;height:36px;padding:0 11px;font-size:13px}.muted{color:var(--muted);font-size:13px}.admin-link{display:block;transition:.15s}.admin-link:hover{transform:translateY(-1px);box-shadow:0 8px 26px rgba(23,32,51,.07)}
@media(max-width:1150px){.user-create-grid{grid-template-columns:1fr 1fr}.user-create-grid .button{width:100%}.user-row{grid-template-columns:1fr auto}.user-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:650px){.auth-card{padding:22px;border-radius:15px}.user-create-grid{grid-template-columns:1fr}.user-row{grid-template-columns:1fr}.user-meta,.user-actions{justify-content:flex-start}.reset-form{width:100%;flex-direction:column}.reset-form input,.reset-form .button{width:100%}}

/* FXPulse v0.4.0 Trading Accounts */
.account-card-link{display:block;transition:transform .15s ease,box-shadow .15s ease}.account-card-link:hover{transform:translateY(-2px);box-shadow:0 12px 34px rgba(23,32,51,.08)}
.live-row.offline{color:#98a2b3}.live-row.offline .live-dot{background:#b5bdc9}.live-row.online{color:var(--good)}
.visibility-value{text-transform:capitalize}.empty-action{margin-top:20px}
.page-back{margin-bottom:14px}.page-back a{color:var(--muted);font-weight:600}.page-back a:hover{color:var(--accent)}
.form-shell{max-width:1060px}.account-form-card{margin-top:0}.form-title{display:flex;justify-content:space-between;gap:20px;margin-bottom:8px}.form-title h2{font-size:22px;margin:5px 0 5px}.form-title p{margin:0}
.account-form{display:grid;gap:22px}.form-section{padding-top:20px;border-top:1px solid var(--line)}.form-section:first-of-type{border-top:0;padding-top:5px}.form-section h3{font-size:16px;margin:0 0 14px}
.account-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.span-2{grid-column:span 2}
textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;color:var(--text);font:inherit;resize:vertical;outline:0}textarea:focus{border-color:#a9b2ff;box-shadow:0 0 0 3px #f0f1ff}
.visibility-selector{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.visibility-option{position:relative;cursor:pointer}.visibility-option input{position:absolute;opacity:0;pointer-events:none}.visibility-card{min-height:112px;display:flex;flex-direction:column;gap:7px;border:1px solid var(--line);border-radius:12px;padding:15px;background:#fff;transition:.15s}.visibility-card strong{font-size:15px}.visibility-card small{color:var(--muted);font-weight:400;line-height:1.45}.visibility-option input:checked + .visibility-card{border-color:#9da7ff;background:var(--accent-soft);box-shadow:0 0 0 2px #e6e9ff}.visibility-option input:checked + .visibility-card strong{color:var(--accent)}
.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:5px}
.account-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.account-detail-head h2,.account-detail-head h1{font-size:26px;margin:7px 0 3px;letter-spacing:-.5px}.account-detail-head p{margin:0;color:var(--muted)}.detail-actions{display:flex;gap:8px}
.account-metrics{margin-bottom:18px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-card{margin-top:0}.details-list{display:grid;gap:0;margin-top:14px}.details-list>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--line)}.details-list>div:last-child{border-bottom:0}.details-list span{color:var(--muted)}.details-list strong{text-align:right}
.public-url-row{display:flex;gap:8px}.public-url-row input{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.top-gap{margin-top:10px}.inline-form{display:inline-flex}
.danger-zone{display:flex;align-items:center;justify-content:space-between;gap:25px}.danger-zone h3{margin:0 0 4px}.danger-zone p{margin:0}.danger-button{border-color:#ffd0d6;color:var(--bad);background:#fff7f8}
.public-body{min-height:100vh;background:#f5f7fb}.public-shell{max-width:920px;margin:0 auto;padding:30px 18px 55px}.public-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.public-brand{padding:0}.public-badge{font-size:12px;color:var(--muted);border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 10px}
.public-account-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:0 18px 60px rgba(23,32,51,.06)}.public-platform{height:34px;padding:7px 11px}
.public-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.public-metrics>div{background:var(--surface-2);border-radius:12px;padding:16px}.public-metrics span{display:block;color:var(--muted);font-size:12px}.public-metrics strong{display:block;font-size:21px;margin:5px 0 1px}.public-metrics small{color:#99a2b1}
.public-info-grid{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 0}.public-info-grid>div{display:flex;justify-content:space-between;gap:15px;padding:10px 8px}.public-info-grid span{color:var(--muted)}
.public-footer{display:flex;justify-content:space-between;gap:20px;color:#9aa4b5;font-size:12px;margin-top:18px}.public-center{min-height:100vh;display:grid;place-items:center}.public-error-card{width:min(560px,100%)}.accounts-real-grid{align-items:stretch}
@media(max-width:900px){.detail-grid{grid-template-columns:1fr}.visibility-selector{grid-template-columns:1fr}.public-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.account-form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.form-actions{flex-direction:column-reverse}.form-actions .button{width:100%}.account-detail-head{flex-direction:column}.detail-actions,.detail-actions .button{width:100%}.public-url-row{flex-direction:column}.danger-zone{align-items:flex-start;flex-direction:column}.danger-zone form,.danger-zone .button{width:100%}.public-account-card{padding:18px}.public-header{align-items:flex-start;gap:12px}.public-badge{display:none}.public-metrics{grid-template-columns:1fr 1fr}.public-info-grid{grid-template-columns:1fr}.public-footer{flex-direction:column;gap:4px}}

/* FXPulse v0.5.0 Agent/API */
.install-card{max-width:1050px}.download-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.download-card{border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--surface-2);display:flex;flex-direction:column;gap:5px;transition:.15s}.download-card:hover{border-color:#aab3ff;background:var(--accent-soft);transform:translateY(-1px)}.download-card strong{font-size:17px}.download-card span{color:var(--accent);font-weight:700}.download-card small,.install-note{color:var(--muted)}.key-alert{background:#fff8e8;border:1px solid #ffe2a8;color:#7a5b13}.install-steps{display:grid;gap:12px;margin-top:20px}.install-steps>div{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start}.install-steps b{width:28px;height:28px;border-radius:8px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}.install-steps span{padding-top:3px;color:#56647a}
@media(max-width:650px){.download-grid{grid-template-columns:1fr}}
.telemetry-summary{margin-bottom:18px}.telemetry-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}.telemetry-grid>div{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;padding:14px}.telemetry-grid span{display:block;color:var(--muted);font-size:13px;margin-bottom:6px}.telemetry-grid strong{font-size:18px}@media(max-width:850px){.telemetry-grid{grid-template-columns:repeat(2,1fr)}}/* FXPulse v0.5.3 Analytics UI */
.analytics-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px}.analytics-toolbar h2{font-size:22px;margin:0 0 4px}.analytics-toolbar p{margin:0;color:var(--muted)}.analytics-controls{display:flex;align-items:flex-end;gap:12px}.compact-label{min-width:280px}.period-switch{display:flex;padding:3px;background:#edf0f5;border-radius:10px}.period-switch button{border:0;background:transparent;color:#69758a;font-weight:700;padding:8px 11px;border-radius:8px;cursor:pointer}.period-switch button.active{background:#fff;color:var(--accent);box-shadow:0 1px 5px #17203316}.analytics-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:18px}.analytics-metrics .metric-card strong{font-size:22px}.analytics-chart-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.chart-card{margin-top:0}.chart-title{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.chart-title h3{margin:4px 0 0}.chart-legend{display:flex;gap:12px;color:var(--muted);font-size:12px}.chart-legend span{display:flex;align-items:center;gap:5px}.legend-line{width:18px;height:3px;border-radius:3px;background:#4d63ff}.legend-line.equity{background:#7a5cff}.legend-line.drawdown{background:#e24a5a}.canvas-wrap{height:300px;position:relative;margin-top:14px}.canvas-wrap canvas{width:100%;height:100%}.chart-empty{position:absolute;inset:0;display:none;place-items:center;color:var(--muted);background:var(--surface-2);border-radius:10px}.trades-card{margin-top:18px}.analytics-table-head{align-items:center;margin-bottom:10px}.analytics-table-head h3{margin:3px 0 0}.table-counter{color:var(--muted);font-size:13px}.trade-table-wrap{overflow:auto}.trade-table{width:100%;border-collapse:collapse;white-space:nowrap}.trade-table th{text-align:left;color:#8b96a8;font-size:12px;font-weight:700;padding:11px 10px;border-bottom:1px solid var(--line)}.trade-table td{padding:12px 10px;border-bottom:1px solid #eef1f5;font-size:13px}.trade-table tbody tr:hover{background:#fafbfc}.table-empty{text-align:center;color:var(--muted);padding:34px 12px}
@media(max-width:1250px){.analytics-metrics{grid-template-columns:repeat(3,1fr)}.analytics-chart-grid{grid-template-columns:1fr}}@media(max-width:780px){.analytics-toolbar{align-items:stretch;flex-direction:column}.analytics-controls{align-items:stretch;flex-direction:column}.compact-label{min-width:0}.period-switch{width:100%}.period-switch button{flex:1}.analytics-metrics{grid-template-columns:repeat(2,1fr)}}
/* FXPulse v0.6.0 Public Accounts & Watchlists */
.catalog-shell{max-width:1180px}.catalog-intro{margin:24px 0 22px}.catalog-intro h1{font-size:30px;margin:5px 0 7px}.catalog-intro p{margin:0;color:var(--muted)}.public-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.public-mini-card{display:block;background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:0 7px 28px rgba(23,32,51,.045);transition:.15s}.public-mini-card:hover{transform:translateY(-2px);box-shadow:0 14px 40px rgba(23,32,51,.08)}.public-card-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.public-card-metrics>div{background:var(--surface-2);border-radius:10px;padding:10px}.public-card-metrics span{display:block;color:var(--muted);font-size:11px}.public-card-metrics strong{font-size:16px}.public-mini-card footer{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px;border-top:1px solid var(--line);padding-top:12px}.watchlist-layout{align-items:start}.watchlist-cards{display:grid;gap:12px}.watchlist-card{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:0}.watchlist-card h3{margin:3px 0}.watchlist-count{text-align:right}.watchlist-count strong{display:block;font-size:24px}.watchlist-count span{font-size:12px;color:var(--muted)}.watchlist-detail-grid{align-items:start}.watchlist-items{display:grid}.watchlist-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--line)}.watchlist-item:last-child{border-bottom:0}.watchlist-item a{display:flex;flex-direction:column}.watchlist-item span{color:var(--muted);font-size:13px}.watchlist-add{display:flex;gap:10px}.watchlist-add select{flex:1}
@media(max-width:1000px){.public-account-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.public-account-grid{grid-template-columns:1fr}.watchlist-layout,.watchlist-detail-grid{grid-template-columns:1fr}.watchlist-add{flex-direction:column}.watchlist-add .button{width:100%}}.billing-page{max-width:1500px}.subscription-strip{display:grid;grid-template-columns:repeat(4,1fr);padding:18px;border-radius:14px;background:linear-gradient(110deg,#ff6464,#f45b23);color:#fff;margin:18px 0 24px}.subscription-strip div{padding:0 16px}.subscription-strip small,.subscription-strip strong{display:block}.billing-grid{display:grid;grid-template-columns:2fr .8fr;gap:22px}.billing-card{background:#fff;border-radius:16px;padding:22px;box-shadow:0 8px 28px #16223a10}.plan-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.plan-option,.period-option{background:#fff;border:1px solid #dfe3eb;border-radius:11px;padding:12px;cursor:pointer}.plan-option b{font-size:25px;color:#6557ff}.plan-option span{display:block;color:#98a0b2}.selected{border:2px solid #6758ff!important;background:#f5f3ff!important}.order-box{background:#f7f8fa;border:1px solid #e0e4eb;border-radius:12px;padding:25px;text-align:center}.order-box>strong{display:block;font-size:32px;color:#6758ff;margin:24px}.pay-button{width:100%;border:0;border-radius:7px;padding:13px;background:#16a9e0;color:#fff;font-weight:700}.period-card{grid-column:1}.periods{display:flex;gap:10px;justify-content:center}.period-option{padding:14px 24px}@media(max-width:1000px){.billing-grid{grid-template-columns:1fr}.period-card{grid-column:auto}.plan-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){.subscription-strip{grid-template-columns:1fr 1fr}.plan-grid{grid-template-columns:repeat(2,1fr)}}

/* FXPulse v0.7.2 — Unified UI Core */
.fx-error-page{margin:0;min-height:100vh;background:var(--page,#f4f6fa);color:var(--text,#172033);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.fx-error-shell{width:min(920px,calc(100% - 36px));min-height:100vh;margin:0 auto;display:flex;flex-direction:column;justify-content:center;padding:28px 0;box-sizing:border-box}
.fx-error-brand{display:inline-flex;align-items:center;gap:11px;align-self:flex-start;color:inherit;text-decoration:none;margin-bottom:22px}
.fx-error-brand>span:last-child{display:flex;flex-direction:column;line-height:1.15}
.fx-error-brand strong{font-size:18px}.fx-error-brand small{font-size:12px;color:var(--muted,#8792a6);margin-top:3px}
.fx-error-card{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:center;gap:36px;background:#fff;border:1px solid var(--line,#e4e8ef);border-radius:20px;padding:46px;box-shadow:0 18px 60px rgba(28,39,60,.08)}
.fx-error-code{font-size:92px;line-height:1;font-weight:700;letter-spacing:-6px;color:var(--accent,#5864ff);text-align:center}
.fx-error-content h1{font-size:30px;line-height:1.2;margin:7px 0 10px}.fx-error-content p{font-size:15px;line-height:1.65;color:var(--muted,#7d889b);max-width:560px;margin:0}
.fx-error-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.fx-error-footer{text-align:center;color:var(--muted,#9aa3b2);font-size:12px;margin-top:18px}
.billing-notice{background:#fff7e8;border:1px solid #f1d39c;color:#8b5b0f;border-radius:12px;padding:13px 15px;margin:0 0 18px}
.billing-history{display:grid;gap:0}.billing-history>div{display:grid;grid-template-columns:1fr auto auto;gap:16px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line,#e4e8ef)}
@media(max-width:680px){.fx-error-shell{width:min(100% - 24px,920px)}.fx-error-card{grid-template-columns:1fr;gap:18px;padding:28px 22px;text-align:center}.fx-error-code{font-size:72px}.fx-error-content h1{font-size:25px}.fx-error-actions{justify-content:center}}


/* FXPulse 0.7.2.3 — Installation notification channels */
.installation-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;align-items:start}
.installation-main{min-width:0}.installation-notify{position:sticky;top:22px}
.notify-panel{background:#fff;border:1px solid var(--line,#e2e6ee);border-radius:16px;padding:20px;box-shadow:0 8px 28px rgba(22,34,58,.045)}
.notify-panel-head{margin-bottom:16px}.notify-panel-head h2{margin:0 0 6px;font-size:19px}.notify-panel-head p{margin:0;color:var(--muted,#7f8aa1);font-size:14px;line-height:1.5}
.notify-channels{display:grid;gap:12px}.notify-channel{border:1px solid var(--line,#e1e5ed);border-radius:13px;padding:14px;background:#fff}
.notify-channel-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.notify-channel-name{display:flex;align-items:center;gap:10px;min-width:0}
.notify-channel-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--surface-2,#f3f5f9);font-size:14px;font-weight:700;color:var(--accent,#5864ff);flex:0 0 38px}
.notify-channel-title{display:flex;flex-direction:column}.notify-channel-title strong{font-size:15px}.notify-channel-title small{font-size:12px;color:var(--muted,#8b95a8);margin-top:2px}
.notify-status{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;padding:5px 8px;border-radius:999px;white-space:nowrap}.notify-status.off{background:#fff0f3;color:#db355b}.notify-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.notify-channel .button{width:100%;justify-content:center}.notify-panel-foot{margin-top:14px;padding-top:14px;border-top:1px solid var(--line,#e4e8ef);color:var(--muted,#8a94a7);font-size:12px;line-height:1.5}
@media(max-width:1180px){.installation-layout{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:900px){.installation-layout{grid-template-columns:1fr}.installation-notify{position:static}.notify-channels{grid-template-columns:repeat(3,minmax(0,1fr))}.notify-channel-top{align-items:flex-start;flex-direction:column}}
@media(max-width:680px){.notify-channels{grid-template-columns:1fr}.notify-channel-top{flex-direction:row;align-items:center}}


/* FXPulse 0.7.2.5 — MetaTrader Agent File Manager */
.agent-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.agent-source-card,.agent-binary-card{min-width:0}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.card-head h2{margin:4px 0 0;font-size:18px}.file-state,.file-meta{font-size:12px;color:var(--muted,#8792a6)}.code-editor{width:100%;min-height:420px;resize:vertical;border:1px solid var(--line,#dfe4ec);border-radius:12px;background:#f7f9fc;color:#1f2937;padding:15px;font:13px/1.55 "SFMono-Regular",Consolas,monospace;tab-size:4;box-sizing:border-box}.code-editor:focus{outline:2px solid rgba(88,100,255,.18);border-color:var(--accent,#5864ff)}.form-actions{display:flex;justify-content:flex-end;margin-top:12px}.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:700}.status-pill.success{background:#e9f8f1;color:#148b60}.status-pill.muted{background:#f1f3f7;color:#7c8799}.upload-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:14px}.upload-row input[type=file]{width:100%;border:1px solid var(--line,#dfe4ec);border-radius:10px;padding:9px;background:#fff;box-sizing:border-box}@media(max-width:1050px){.agent-admin-grid{grid-template-columns:1fr}}@media(max-width:680px){.upload-row{grid-template-columns:1fr}.upload-row .button{width:100%}.code-editor{min-height:320px}}


/* FXPulse 0.7.2.6 — MQ source upload */
.agent-source-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.agent-source-upload{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.agent-source-upload input[type=file]{max-width:280px;border:1px solid var(--line,#dfe4ec);border-radius:9px;padding:7px;background:#fff;font-size:12px}
.agent-source-help{font-size:12px;color:var(--muted,#8792a6)}
@media(max-width:680px){.agent-source-upload{width:100%}.agent-source-upload input[type=file]{max-width:none;width:100%}.agent-source-upload .button{width:100%}}


/* FXPulse 0.7.3 — Header / USD-RUB / Theme / Global Hover */
:root{
  --topbar-bg:rgba(255,255,255,.94);
  --shadow-soft:0 8px 28px rgba(23,32,51,.07);
  --hover-bg:#eef1f7;
  --hover-line:#cfd6e4;
  --rate-bg:#f7f9fc;
  --rate-text:#182238;
  --role-bg:#fff3cb;
  --role-text:#946200;
}

html[data-theme="dark"]{
  --bg:#0d1119;
  --surface:#141a24;
  --surface-2:#1a2230;
  --text:#eef3fb;
  --muted:#8e9bb0;
  --line:#273142;
  --accent:#7080ff;
  --accent-soft:#202a50;
  --good:#36ca8b;
  --bad:#ff6678;
  --topbar-bg:rgba(15,20,29,.94);
  --shadow-soft:0 8px 28px rgba(0,0,0,.28);
  --hover-bg:#202938;
  --hover-line:#3a465b;
  --rate-bg:#1a2230;
  --rate-text:#f3f6fb;
  --role-bg:#493b12;
  --role-text:#ffd875;
  color-scheme:dark;
}

html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .empty-card,
html[data-theme="dark"] .notify-panel,
html[data-theme="dark"] .notify-channel,
html[data-theme="dark"] .billing-card,
html[data-theme="dark"] .public-mini-card,
html[data-theme="dark"] .fx-error-card{
  background:var(--surface);
  color:var(--text);
  border-color:var(--line);
}
html[data-theme="dark"] .balance-row,
html[data-theme="dark"] .platform,
html[data-theme="dark"] .order-box,
html[data-theme="dark"] .plan-option,
html[data-theme="dark"] .period-option,
html[data-theme="dark"] .button:not(.primary),
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  background:var(--surface-2);
  color:var(--text);
  border-color:var(--line);
}
html[data-theme="dark"] .subscription-strip{box-shadow:var(--shadow-soft)}
html[data-theme="dark"] .nav-item{color:#aab6c9}
html[data-theme="dark"] .nav-item:hover{background:var(--hover-bg);color:var(--text)}
html[data-theme="dark"] .status-pill{background:var(--surface-2);border-color:var(--line);color:#bec8d7}
html[data-theme="dark"] .sidebar-user{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .avatar{background:var(--surface-2);color:var(--text)}
html[data-theme="dark"] .stats-list>div,
html[data-theme="dark"] .panel-row,
html[data-theme="dark"] .public-mini-card footer{border-color:var(--line)}

.topbar{
  background:var(--topbar-bg);
  gap:14px;
}
.topbar-title{min-width:0}
.top-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  min-width:0;
}
.fx-rate{
  height:40px;
  display:inline-flex;
  align-items:baseline;
  gap:5px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--rate-bg);
  color:var(--rate-text);
  white-space:nowrap;
  transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.fx-rate:hover{border-color:var(--hover-line);box-shadow:var(--shadow-soft);transform:translateY(-1px)}
.fx-rate-label{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.035em}
.fx-rate strong{font-size:15px;letter-spacing:-.2px}
.fx-rate small{font-size:11px;color:var(--muted)}
.fx-rate.loading strong{opacity:.55}
.fx-rate.error strong{color:var(--bad)}
.fx-rate.stale::after{content:"•";color:#e3a62d;margin-left:1px}

.role-pill{
  display:inline-flex;
  align-items:center;
  height:40px;
  padding:0 13px;
  border-radius:999px;
  background:var(--role-bg);
  color:var(--role-text);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.fx-icon-button{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:inline-grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
  color:var(--text);
  padding:0;
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease;
}
.fx-icon-button svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.fx-icon-button:hover{
  background:var(--hover-bg);
  border-color:var(--hover-line);
  box-shadow:var(--shadow-soft);
  transform:translateY(-1px);
  color:var(--accent);
}
.fx-icon-button:active{transform:translateY(0) scale(.97)}
.fx-icon-button:focus-visible,
.button:focus-visible,
button:focus-visible{
  outline:3px solid color-mix(in srgb,var(--accent) 25%,transparent);
  outline-offset:2px;
}
.logout-form{margin:0}
.topbar-logout{display:flex}
.sidebar-user .logout-form{display:none}

.theme-toggle .icon-sun{display:none}
html[data-theme="dark"] .theme-toggle .icon-moon{display:none}
html[data-theme="dark"] .theme-toggle .icon-sun{display:block}

/* v0.7.7.4.140 — notification bell (ideas-only for now, generic
   structure — see app/models/notification.py). Global (app.css, loaded
   by layout.html on every page) rather than page-specific, since the
   bell itself lives in the shared topbar. Panel reuses the exact same
   floating-panel visual language already established for
   .ideas-sort-panel (static/css/ideas.css) — white surface, 14px
   radius, two-layer shadow, 6px inner padding — documented as the
   site's standard dropdown-panel pattern in DESIGN.md, not a new style
   invented for this feature. */
.fx-notif{position:relative}
.fx-notif-bell{position:relative}
.fx-notif-badge{
  position:absolute;top:-4px;right:-4px;
  min-width:18px;height:18px;padding:0 4px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#ef4444;color:#fff;
  border-radius:999px;border:2px solid var(--surface);
  font-size:10px;font-weight:700;line-height:1;
  pointer-events:none;
}
/* v0.7.7.4.149 — CRITICAL FIX, same bug class as .fx-notif-panel[hidden]
   below (found and fixed in .148): `display:inline-flex` here has the
   SAME CSS specificity as the browser's `[hidden]{display:none}`, and
   an author rule wins any specificity tie against a user-agent default
   — so this badge was ALWAYS visible (a real "0" rendered on screen,
   red circle and all) regardless of the `hidden` attribute, exactly
   the same mechanism as the panel bug. I fixed the panel occurrence in
   .148 but didn't audit for OTHER elements using `hidden` with the same
   pattern — this is the second (and, per a full audit of every
   `hidden`-attributed element in this feature, the only remaining) one.
   Confirmed directly against the real deployed layout.html: rendering
   it with count=0 correctly produced the `hidden` attribute, but
   without this override the badge stayed display:inline-flex regardless
   — this is almost certainly why "Отметить все" looked like it was
   doing nothing: the backend WAS marking everything read (badge
   correctly told to hide via JS), but this override kept a red "0"
   circle visibly sitting on the bell the whole time regardless. */
.fx-notif-badge[hidden]{display:none}
.fx-notif-panel{
  position:absolute;top:calc(100% + 10px);right:0;
  width:388px;max-width:calc(100vw - 32px);
  background:#fff;border-radius:14px;
  box-shadow:0 16px 40px rgba(20,30,55,.16),0 2px 8px rgba(20,30,55,.08);
  border:1px solid rgba(20,30,55,.06);
  z-index:90;
  opacity:0;transform:translateY(-6px) scale(.98);transform-origin:top right;
  transition:opacity .16s ease,transform .16s ease;
  display:flex;flex-direction:column;
}
/* v0.7.7.4.148 — CRITICAL FIX, present since .140: this rule's own
   `display:flex` has the SAME CSS specificity as the browser's built-in
   `[hidden]{display:none}` rule (both are a single simple selector —
   attribute selectors and class selectors carry equal specificity), and
   an author stylesheet rule wins any specificity tie against a
   user-agent default. That means the panel was ALWAYS rendered
   (display:flex, real layout box, real pointer-event target) even while
   the `hidden` HTML attribute was present and JS's own `panel.hidden`
   check correctly reported true — the DOM property was right, the
   VISUAL result was wrong. Confirmed directly: computed style showed
   `display: flex` with a real, non-zero bounding box while
   `hasAttribute('hidden')` was true. On every page across the whole
   site, an invisible-but-interactive 360-388px box has been silently
   sitting just below the bell, intercepting clicks meant for whatever
   page content happened to be underneath it — this is what caused the
   "can't click the bell" timeout while testing narrower viewports
   (the panel's own fixed-position mobile layout was overlapping the
   bell itself). This selector re-asserts none with the SAME
   specificity as the base rule (a single class selector) but LATER in
   source order, which is how CSS resolves same-specificity conflicts —
   the last one written wins. */
.fx-notif-panel[hidden]{display:none}
.fx-notif-panel.open{opacity:1;transform:translateY(0) scale(1)}
.fx-notif-close{
  position:absolute;top:10px;right:10px;
  width:26px;height:26px;border:0;border-radius:8px;background:#f2f4f8;color:#5b6472;
  display:grid;place-items:center;cursor:pointer;padding:0;
  transition:background .15s ease;
  z-index:1;
}
.fx-notif-close svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.fx-notif-close:hover{background:#e6e9f0}
.fx-notif-panel-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 58px 10px 16px;
}
.fx-notif-panel-head span{font-size:15px;font-weight:700;color:var(--text)}
.fx-notif-mark-all{
  border:0;background:none;padding:0;font-size:12px;font-weight:600;
  color:var(--accent);cursor:pointer;white-space:nowrap;
  display:inline-flex;align-items:center;gap:4px;
}
/* v0.7.7.4.152 — same [hidden] specificity issue as .fx-notif-panel and
   .fx-notif-badge (found and fixed in .148/.149): this button now sets
   its own `display:inline-flex` (needed to align the new checkmark icon
   with the text) — an author `display` rule always wins a specificity
   tie against the browser's `[hidden]{display:none}`, so without this
   override the button would stay visibly showing regardless of the
   `hidden` attribute, the exact same bug class all over again. Adding
   this proactively this time instead of discovering it broken later. */
.fx-notif-mark-all[hidden]{display:none}
.fx-notif-mark-all svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.fx-notif-mark-all:hover{text-decoration:underline}
.fx-notif-mark-all:disabled{color:var(--muted);cursor:default;text-decoration:none}
.fx-notif-list{max-height:360px;overflow-y:auto;padding:2px 6px}
.fx-notif-item{
  display:flex;align-items:flex-start;gap:10px;
  width:100%;padding:10px 10px;border:0;background:none;border-radius:10px;
  text-decoration:none;text-align:left;cursor:pointer;
  position:relative;
}
.fx-notif-item:hover{background:#f7f8fb}
.fx-notif-item-icon{
  flex:0 0 32px;width:32px;height:32px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  background:var(--accent-soft);color:var(--accent);
}
.fx-notif-item-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fx-notif-item-body{flex:1 1 auto;min-width:0}
.fx-notif-item-title{display:block;font-size:13px;font-weight:700;color:var(--text);margin:0 0 2px}
.fx-notif-item-text{display:block;font-size:12.5px;line-height:1.4;color:#596273;margin:0}
.fx-notif-item-time{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.fx-notif-item-dot{
  flex:0 0 7px;width:7px;height:7px;border-radius:50%;
  background:var(--accent);margin-top:6px;
}
.fx-notif-empty{
  padding:36px 20px 32px;text-align:center;color:var(--muted);font-size:13px;
  display:flex;flex-direction:column;align-items:center;gap:10px;
}
.fx-notif-empty svg{
  width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;opacity:.55;
}
.fx-notif-goto{
  display:block;margin:6px 8px 8px;padding:11px;border-radius:10px;
  background:var(--accent-soft);color:var(--accent);
  font-size:13px;font-weight:700;text-align:center;text-decoration:none;
}
/* v0.7.7.4.153 — same [hidden]/CSS-specificity bug class found and
   fixed three times already (.fx-notif-panel in .148, .fx-notif-badge
   in .149, .fx-notif-mark-all in .152): this link now needs to be
   conditionally hidden too (empty popover), and its own
   `display:block` would silently ignore the `hidden` attribute without
   this override, exactly like the others. Added proactively this time. */
.fx-notif-goto[hidden]{display:none}
.fx-notif-goto:hover{background:color-mix(in srgb,var(--accent) 16%,var(--accent-soft))}
.fx-notif-empty-hint{margin:0;font-size:12px;line-height:1.4;color:var(--muted);max-width:260px;text-align:center}
@media(max-width:580px){
  .fx-notif-panel{position:fixed;top:64px;right:12px;left:12px;width:auto;max-width:none}
  /* v0.7.7.4.148 — narrower mobile width (viewport-24px) doesn't leave
     enough room for title + "Отметить все как прочитанные" + the close
     button all on one line (confirmed by measuring the actual overlap
     in a real render, not guessed) — wrapping mark-all onto its own
     full-width row sidesteps the fitting problem entirely instead of
     chasing exact pixel budgets at every possible mobile width. */
  .fx-notif-panel-head{flex-wrap:wrap}
  .fx-notif-mark-all{flex:1 0 100%;text-align:right}
}

/* Hover is mandatory for every interactive button in the unified UI. */
button,
.button,
.plan-option,
.period-option,
.pay-button{
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease,color .16s ease,opacity .16s ease;
}
button:not(:disabled):hover,
.button:not(:disabled):hover{
  transform:translateY(-1px);
}
.button:not(.primary):not(:disabled):hover{
  background:var(--hover-bg);
  border-color:var(--hover-line);
  color:var(--accent);
  box-shadow:var(--shadow-soft);
}
.button.primary:not(:disabled):hover{
  filter:brightness(1.06);
  box-shadow:0 9px 22px color-mix(in srgb,var(--accent) 26%,transparent);
}
.pay-button:hover{filter:brightness(1.05);box-shadow:var(--shadow-soft);transform:translateY(-1px)}
.plan-option:hover,.period-option:hover{border-color:var(--accent);transform:translateY(-1px);box-shadow:var(--shadow-soft)}

@media(max-width:1100px){
  .status-pill .status-text{display:none}
  .status-pill{width:40px;height:40px;padding:0;justify-content:center}
  .role-pill{display:none}
}
@media(max-width:780px){
  .topbar{padding:0 14px;height:72px}
  .topbar h1{font-size:19px}
  .topbar-sub{font-size:11px}
  .fx-rate{padding:0 9px}
  .fx-rate-label{display:none}
  .content{padding:20px 14px 32px}
}
@media(max-width:560px){
  .fx-rate{height:38px}
  .fx-rate strong{font-size:13px}
  .status-pill{display:none}
  .fx-icon-button{width:38px;height:38px;flex-basis:38px}
  .top-actions{gap:6px}
}


/* FXPulse 0.7.3.1 — Header UI polish */
.topbar{
  min-height:74px;
  padding:0 22px;
  border-bottom:1px solid var(--line);
}
.top-actions{
  gap:8px;
  align-items:center;
}

.fx-rate{
  height:38px;
  min-width:132px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--rate-bg);
  box-shadow:none;
  transform:none;
  cursor:default;
  user-select:none;
}
.fx-rate:hover{
  border-color:var(--line);
  background:var(--rate-bg);
  box-shadow:none;
  transform:none;
}
.fx-rate-label{
  font-size:10px;
  font-weight:700;
  letter-spacing:.045em;
  color:var(--muted);
}
.fx-rate strong{
  font-size:14px;
  font-weight:700;
  line-height:1;
}
.fx-rate small{
  font-size:11px;
  line-height:1;
}
.fx-rate.loading,
.fx-rate.error,
.fx-rate.stale{
  cursor:default;
}
.fx-rate.stale::after{display:none}

.fx-icon-button{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:10px;
  box-shadow:none;
}
.fx-icon-button svg{
  width:18px;
  height:18px;
}
.fx-icon-button:hover{
  background:var(--hover-bg);
  border-color:var(--hover-line);
  color:var(--accent);
  box-shadow:none;
  transform:none;
}
.fx-icon-button:active{
  transform:scale(.96);
}
.logout-button:hover{
  color:#e24b5b;
  background:color-mix(in srgb,#e24b5b 8%,var(--surface));
  border-color:color-mix(in srgb,#e24b5b 28%,var(--line));
}

/* Remove obsolete topbar status/role artifacts if cached templates/CSS exist. */
.status-pill,
.role-pill{
  display:none !important;
}

/* Hover only on truly interactive elements. */
.fx-rate,
.metric-card,
.account-card,
.info-card,
.panel,
.empty-card,
.notify-panel,
.subscription-strip{
  transition:none;
}
.fx-rate:hover,
.metric-card:hover,
.account-card:hover,
.info-card:hover,
.panel:hover,
.empty-card:hover,
.notify-panel:hover,
.subscription-strip:hover{
  transform:none;
  box-shadow:inherit;
}

/* Keep hover on clickable controls only. */
button:not(:disabled),
.button:not(:disabled),
.nav-item,
.plan-option,
.period-option,
.pay-button,
a[href]{
  transition:background .15s ease,border-color .15s ease,color .15s ease,opacity .15s ease,transform .15s ease;
}
button:not(:disabled):hover,
.button:not(:disabled):hover{
  transform:none;
}

@media(max-width:780px){
  .topbar{
    min-height:68px;
    height:auto;
    padding:0 14px;
  }
  .top-actions{gap:6px}
  .fx-rate{
    min-width:104px;
    height:36px;
    padding:0 9px;
  }
  .fx-icon-button{
    width:36px;
    height:36px;
    flex-basis:36px;
  }
}

@media(max-width:560px){
  .topbar-title h1{font-size:18px}
  .topbar-sub{font-size:10px}
  .fx-rate{
    min-width:92px;
  }
  .fx-rate-label{display:none}
}


/* FXPulse 0.7.3.2 — Modern Header Polish */
:root{
  --header-control-h:40px;
  --header-radius:12px;
}

.topbar{
  min-height:76px;
  height:76px;
  padding:0 18px 0 24px;
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--line);
}

.menu-btn{
  display:none !important;
}

.topbar-title{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}
.topbar-title h1{
  margin:0;
  line-height:1.05;
}
.topbar-sub{
  margin-top:5px;
}

.top-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}

/* Informer, not a button */
.fx-rate{
  min-width:144px;
  height:var(--header-control-h);
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:var(--header-radius);
  background:var(--rate-bg);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:none;
  cursor:default;
  user-select:none;
  transform:none !important;
}
.fx-rate:hover{
  background:var(--rate-bg);
  border-color:var(--line);
  box-shadow:none;
  transform:none !important;
}
.fx-rate-label{
  margin:0;
  font-size:10px;
  line-height:1;
  font-weight:700;
  letter-spacing:.055em;
  color:var(--muted);
}
.fx-rate-value{
  display:inline-flex;
  align-items:baseline;
  justify-content:center;
  gap:3px;
  line-height:1;
  white-space:nowrap;
}
.fx-rate strong,
.fx-rate-currency{
  font-size:14px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.15px;
  color:var(--rate-text);
}
.fx-rate-currency{
  margin-left:1px;
}

/* Interactive controls use same square and visual weight */
.fx-icon-button{
  width:var(--header-control-h);
  height:var(--header-control-h);
  min-width:var(--header-control-h);
  flex:0 0 var(--header-control-h);
  padding:0;
  border:1px solid var(--line);
  border-radius:var(--header-radius);
  background:var(--surface);
  color:var(--text);
  display:inline-grid;
  place-items:center;
}
.fx-icon-button svg{
  width:19px;
  height:19px;
  display:block;
  stroke-width:1.85;
}
.fx-icon-button:hover{
  background:var(--hover-bg);
  border-color:var(--hover-line);
  color:var(--accent);
  box-shadow:none;
  transform:none;
}
.logout-button:hover{
  background:color-mix(in srgb,#e55261 8%,var(--surface));
  border-color:color-mix(in srgb,#e55261 30%,var(--line));
  color:#e55261;
}
.logout-button svg{
  transform:translateX(1px);
}

/* Header alignment cleanup */
.topbar-logout,
.logout-form{
  height:var(--header-control-h);
  display:flex;
  align-items:center;
  margin:0;
}
.theme-toggle{
  height:var(--header-control-h);
}

/* Desktop: no hamburger. It only exists where sidebar becomes drawer. */
@media(min-width:981px){
  .menu-btn{display:none !important}
}

/* Tablet/mobile: show hamburger only when sidebar is drawer */
@media(max-width:980px){
  .menu-btn{
    display:inline-grid !important;
    width:var(--header-control-h);
    height:var(--header-control-h);
    flex:0 0 var(--header-control-h);
  }
  .topbar{
    padding-left:14px;
    gap:10px;
  }
}

@media(max-width:680px){
  :root{--header-control-h:38px}
  .topbar{
    min-height:68px;
    height:68px;
    padding-right:10px;
  }
  .top-actions{gap:7px}
  .fx-rate{
    min-width:104px;
    padding:0 10px;
    gap:6px;
  }
  .fx-rate-label{display:none}
  .fx-rate strong,
  .fx-rate-currency{font-size:13px}
}

@media(max-width:420px){
  .topbar-title h1{font-size:17px}
  .topbar-sub{display:none}
  .fx-rate{min-width:96px}
}


/* ========================================================================
   FXPulse 0.7.3.3 — Modern UI Refresh
   ======================================================================== */

:root{
  --page-bg:#f3f6fb;
  --card-bg:#ffffff;
  --card-bg-soft:#f8fafc;
  --card-border:#e6eaf1;
  --sidebar-bg:#0b0f17;
  --sidebar-panel:#111722;
  --sidebar-text:#c8d0dc;
  --sidebar-muted:#6f7b8e;
  --sidebar-active:#1a2332;
  --sidebar-active-text:#ffffff;
  --sidebar-hover:#151d29;
  --shadow-card:0 8px 28px rgba(18,31,53,.055);
  --shadow-card-hover:0 12px 30px rgba(18,31,53,.09);
  --radius-card:16px;
  --radius-control:12px;
  --text:#111827;
  --muted:#718096;
  --accent:#5b6cff;
}

body{
  background:var(--page-bg);
  color:var(--text);
  font-size:15px;
  line-height:1.55;
}

/* ---------- Sidebar ---------- */

.sidebar{
  background:var(--sidebar-bg) !important;
  border-right:1px solid rgba(255,255,255,.06) !important;
  color:var(--sidebar-text);
}

.sidebar .brand{
  border-bottom:1px solid rgba(255,255,255,.06);
  padding-top:18px;
  padding-bottom:18px;
}

.sidebar .brand-name{
  color:#fff !important;
  font-size:20px;
  font-weight:700;
  letter-spacing:-.35px;
}

.sidebar .brand-sub{
  color:#7f8ba0 !important;
  font-size:12px;
  margin-top:2px;
}

.sidebar .brand-mark{
  box-shadow:0 8px 24px rgba(91,108,255,.28);
}

.nav{
  padding:14px 12px 12px;
}

.nav-label{
  color:#677387 !important;
  font-size:11px !important;
  font-weight:700 !important;
  letter-spacing:.09em !important;
  text-transform:uppercase;
  margin:18px 10px 8px !important;
}

.nav-item{
  color:var(--sidebar-text) !important;
  min-height:44px;
  display:flex;
  align-items:center;
  padding:0 13px !important;
  margin:3px 0;
  border-radius:11px !important;
  font-size:15px !important;
  font-weight:600;
  background:transparent !important;
  position:relative;
}

.nav-item:hover{
  color:#fff !important;
  background:var(--sidebar-hover) !important;
}

.nav-item.active{
  color:var(--sidebar-active-text) !important;
  background:var(--sidebar-active) !important;
  box-shadow:inset 3px 0 0 var(--accent);
}

.nav-item.active:hover{
  background:#202a3a !important;
}

.sidebar-user{
  margin:10px 12px 14px !important;
  background:var(--sidebar-panel) !important;
  border:1px solid rgba(255,255,255,.07) !important;
  border-radius:13px !important;
  color:#fff;
  min-height:58px;
  padding:10px 12px !important;
}

.sidebar-user strong{
  color:#fff !important;
  font-size:13px;
}

.sidebar-user span{
  color:#7f8ba0 !important;
  font-size:11px;
}

.sidebar .avatar{
  background:#202838 !important;
  color:#fff !important;
}

/* ---------- Main / Topbar ---------- */

.main{
  background:var(--page-bg);
}

.topbar{
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--card-border);
}

.topbar-title h1{
  font-size:23px;
  font-weight:700;
  letter-spacing:-.4px;
}

.topbar-sub{
  font-size:12px !important;
  color:#8390a4;
}

.content{
  max-width:1500px;
  width:100%;
  margin:0 auto;
  padding:34px 28px 54px;
}

/* ---------- Typography ---------- */

.section-head h2,
.content h2{
  font-size:23px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:-.35px;
}

.content h3{
  font-size:18px;
  font-weight:700;
  letter-spacing:-.2px;
}

.muted,
.account-sub,
.section-sub,
.panel-sub,
.help-text,
small{
  font-size:14px !important;
  line-height:1.5;
}

.metric-label,
.stats-label,
.card-label,
.panel-label{
  font-size:13px !important;
  font-weight:600;
  color:#7a879a !important;
}

/* ---------- Cards ---------- */

.metric-card,
.account-card,
.info-card,
.panel,
.empty-card,
.notify-panel,
.notify-channel,
.billing-card,
.public-mini-card,
.subscription-strip,
.fx-error-card{
  background:var(--card-bg) !important;
  border:1px solid var(--card-border) !important;
  border-radius:var(--radius-card) !important;
  box-shadow:var(--shadow-card);
}

.metric-card,
.info-card,
.panel,
.account-card{
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.metric-card{
  padding:22px 20px !important;
}

.metric-card strong,
.metric-value{
  font-size:26px !important;
  letter-spacing:-.55px;
  font-weight:700;
}

.metric-card .metric-sub,
.metric-card small{
  font-size:12.5px !important;
  color:#8a97aa !important;
}

.panel{
  padding:22px !important;
}

.panel-header,
.card-header{
  border-bottom-color:var(--card-border) !important;
}

.balance-row,
.platform,
.order-box{
  background:var(--card-bg-soft) !important;
  border:1px solid var(--card-border) !important;
  border-radius:12px !important;
}

/* ---------- Tables ---------- */

table{
  font-size:14px !important;
}

th{
  font-size:12px !important;
  font-weight:700 !important;
  color:#718096 !important;
  letter-spacing:.02em;
  padding-top:13px !important;
  padding-bottom:13px !important;
}

td{
  font-size:14px !important;
  padding-top:13px !important;
  padding-bottom:13px !important;
}

tbody tr{
  transition:background .14s ease;
}

tbody tr:hover{
  background:#f7f9fc;
}

/* ---------- Controls ---------- */

button,
.button,
input,
select,
textarea{
  font-size:14px !important;
}

input,
select,
textarea{
  min-height:42px;
  border-radius:11px !important;
  border:1px solid #dfe5ee !important;
  background:#fff !important;
  color:#182033 !important;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#7f8cff !important;
  box-shadow:0 0 0 3px rgba(91,108,255,.12) !important;
  outline:none !important;
}

.button,
button{
  border-radius:11px !important;
  font-weight:500 !important;
}

.button.primary{
  box-shadow:0 8px 18px rgba(91,108,255,.18);
}

.button.primary:hover{
  box-shadow:0 10px 22px rgba(91,108,255,.24);
}

/* ---------- Pills / filters ---------- */

.period-option,
.plan-option{
  min-height:40px;
  border-radius:10px !important;
  font-size:14px !important;
  font-weight:700 !important;
  background:#f3f5f9 !important;
  border:1px solid transparent !important;
}

.period-option:hover,
.plan-option:hover{
  background:#eceffd !important;
}

.period-option.active,
.plan-option.active{
  background:#fff !important;
  color:var(--accent) !important;
  border-color:#d9defc !important;
  box-shadow:0 3px 10px rgba(91,108,255,.10);
}

/* ---------- Analytics ---------- */

.analytics-toolbar,
.toolbar,
.filters-row{
  gap:12px !important;
}

.chart-wrap,
.chart-card{
  background:#fff;
  border-radius:var(--radius-card);
}

.chart-card canvas{
  min-height:250px;
}

.analytics-grid{
  gap:18px !important;
}

/* ---------- Links ---------- */

a{
  text-decoration:none;
}

.content a:not(.button):hover{
  color:var(--accent);
}

/* ---------- Scrollbar ---------- */

*{
  scrollbar-width:thin;
  scrollbar-color:#cbd3df transparent;
}

.sidebar{
  scrollbar-color:#384354 transparent;
}

/* ---------- Dark theme ---------- */

html[data-theme="dark"]{
  --page-bg:#0a0e15;
  --card-bg:#111722;
  --card-bg-soft:#151d29;
  --card-border:#222c3a;
  --text:#eef3fb;
  --muted:#8f9bae;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .main{
  background:var(--page-bg) !important;
  color:var(--text) !important;
}

html[data-theme="dark"] .topbar{
  background:rgba(13,18,27,.92) !important;
  border-bottom-color:var(--card-border) !important;
}

html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .empty-card,
html[data-theme="dark"] .notify-panel,
html[data-theme="dark"] .notify-channel,
html[data-theme="dark"] .billing-card,
html[data-theme="dark"] .public-mini-card,
html[data-theme="dark"] .subscription-strip{
  background:var(--card-bg) !important;
  border-color:var(--card-border) !important;
}

html[data-theme="dark"] .balance-row,
html[data-theme="dark"] .platform,
html[data-theme="dark"] .order-box,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  background:var(--card-bg-soft) !important;
  border-color:var(--card-border) !important;
  color:var(--text) !important;
}

html[data-theme="dark"] tbody tr:hover{
  background:#141c28;
}

html[data-theme="dark"] .period-option,
html[data-theme="dark"] .plan-option{
  background:#151d29 !important;
  color:#b7c1d1 !important;
}

html[data-theme="dark"] .period-option.active,
html[data-theme="dark"] .plan-option.active{
  background:#202a3b !important;
  color:#8995ff !important;
  border-color:#33405a !important;
}

/* ---------- Responsive ---------- */

@media(max-width:1200px){
  .content{
    padding:28px 22px 46px;
  }
}

@media(max-width:980px){
  .content{
    padding:24px 18px 40px;
  }
}

@media(max-width:680px){
  body{font-size:14px}
  .content{
    padding:20px 12px 34px;
  }
  .metric-card{
    padding:18px 16px !important;
  }
  .metric-card strong,
  .metric-value{
    font-size:23px !important;
  }
  .section-head h2,
  .content h2{
    font-size:20px;
  }
}


/* ========================================================================
   FXPulse 0.7.4 — Analytics Engine UI
   ======================================================================== */
.analytics-toolbar-v074{
  align-items:flex-end;
  margin-bottom:18px;
}
.analytics-title-row{
  display:flex;
  align-items:center;
  gap:12px;
}
.live-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  background:#eaf9f2;
  color:#0c8e5a;
  font-size:12px;
  font-weight:700;
}
.live-pill i{
  width:7px;height:7px;border-radius:50%;background:#19b978;
  box-shadow:0 0 0 4px rgba(25,185,120,.10);
}
.live-pill.offline{
  background:#fff1f2;
  color:#d64b5c;
}
.live-pill.offline i{
  background:#e65363;
  box-shadow:0 0 0 4px rgba(230,83,99,.10);
}

.analytics-live-strip{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  background:var(--card-bg,#fff);
  border:1px solid var(--card-border,#e6eaf1);
  border-radius:16px;
  box-shadow:var(--shadow-card,0 8px 28px rgba(18,31,53,.055));
  margin-bottom:24px;
  overflow:hidden;
}
.live-metric{
  min-height:96px;
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-right:1px solid var(--card-border,#e6eaf1);
}
.live-metric:last-child{border-right:0}
.live-metric span{
  color:#7d899c;
  font-size:12.5px;
  font-weight:650;
  margin-bottom:5px;
}
.live-metric strong{
  color:var(--text,#111827);
  font-size:22px;
  line-height:1.15;
  font-weight:700;
  letter-spacing:-.35px;
}
.live-metric small{
  margin-top:4px;
  color:#8a96a8;
}
.analytics-section-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin:2px 0 12px;
}
.analytics-section-heading h3{margin:4px 0 0}
.analytics-auto-refresh{
  font-size:12px;
  color:#8793a5;
  white-space:nowrap;
}
.analytics-metrics-v074{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
  margin-bottom:18px;
}
.analytics-detail-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:18px;
}
.analytics-detail-card{padding:20px !important}
.detail-list{margin-top:12px}
.detail-list>div{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  min-height:42px;
  border-bottom:1px solid var(--card-border,#e6eaf1);
}
.detail-list>div:last-child{border-bottom:0}
.detail-list span{
  color:#748196;
  font-size:13px;
}
.detail-list strong{
  font-size:14px;
  color:var(--text,#111827);
  text-align:right;
}
.chart-source{
  display:block;
  margin-top:4px;
  color:#8895a8;
  font-size:11.5px !important;
  font-weight:500;
}
.trade-table-v074{
  min-width:1180px;
}
.trade-table-v074 td,
.trade-table-v074 th{
  white-space:nowrap;
}
.positive{color:#0aa46d !important}
.negative{color:#eb4b5f !important}

html[data-theme="dark"] .live-pill{
  background:rgba(25,185,120,.12);
}
html[data-theme="dark"] .live-pill.offline{
  background:rgba(230,83,99,.12);
}
html[data-theme="dark"] .analytics-live-strip{
  background:var(--card-bg);
  border-color:var(--card-border);
}
html[data-theme="dark"] .live-metric{
  border-color:var(--card-border);
}
html[data-theme="dark"] .live-metric strong,
html[data-theme="dark"] .detail-list strong{
  color:var(--text);
}
html[data-theme="dark"] .detail-list>div{
  border-color:var(--card-border);
}

@media(max-width:1180px){
  .analytics-live-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .live-metric:nth-child(3){border-right:0}
  .live-metric:nth-child(-n+3){border-bottom:1px solid var(--card-border,#e6eaf1)}
  .analytics-metrics-v074{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .analytics-detail-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .analytics-toolbar-v074{align-items:stretch}
  .analytics-title-row{align-items:flex-start;flex-direction:column;gap:8px}
  .analytics-live-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .live-metric{border-bottom:1px solid var(--card-border,#e6eaf1)}
  .live-metric:nth-child(odd){border-right:1px solid var(--card-border,#e6eaf1)}
  .live-metric:nth-child(even){border-right:0}
  .live-metric:last-child{grid-column:1/-1;border-bottom:0}
  .analytics-section-heading{align-items:flex-start;flex-direction:column;gap:4px}
}
@media(max-width:520px){
  .analytics-live-strip{grid-template-columns:1fr}
  .live-metric,.live-metric:nth-child(odd){border-right:0}
  .live-metric:last-child{grid-column:auto}
  .analytics-metrics-v074{grid-template-columns:1fr !important}
}


/* ========================================================================
   FXPulse 0.7.4.3 — Top refresh line + clean live strip
   ======================================================================== */

.analytics-refresh-track{
  position:fixed;
  top:76px;
  z-index:12;
  height:3px;
  margin:0;
  left:var(--sidebar-w,230px);
  right:0;
  overflow:hidden;
  background:transparent;
  pointer-events:none;
}

.analytics-refresh-progress{
  width:100%;
  height:100%;
  transform:translateX(-100%);
  opacity:.50;
  background:
    linear-gradient(
      90deg,
      #6b5cff 0%,
      #39a0ff 20%,
      #22d3a7 40%,
      #d4e73e 60%,
      #ff9f43 80%,
      #ff4f8b 100%
    );
  background-size:200% 100%;
  box-shadow:0 0 8px rgba(83,108,255,.22);
}

.analytics-refresh-progress.running{
  animation:
    fxpulse-refresh-sweep 5s linear forwards,
    fxpulse-chameleon 2.2s linear infinite;
}

@keyframes fxpulse-refresh-sweep{
  from{transform:translateX(-100%)}
  to{transform:translateX(0)}
}

@keyframes fxpulse-chameleon{
  from{background-position:0% 50%}
  to{background-position:200% 50%}
}

/* Five live metrics on desktop: Balance / Equity / Profit / Margin / DD */
.analytics-live-strip{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}
.live-metric{
  min-width:0;
}
.live-metric strong{
  white-space:nowrap;
}

/* Text auto-refresh indicator has been replaced by visual progress timer. */
.analytics-auto-refresh{
  display:none !important;
}

@media(max-width:1320px){
  .analytics-live-strip{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  .live-metric:nth-child(3n){
    border-right:0;
  }
  .live-metric:nth-child(-n+3){
    border-bottom:1px solid var(--card-border,#e6eaf1);
  }
}

@media(max-width:980px){
  .analytics-refresh-track{
    top:68px;
    margin:-24px -18px 22px;
  }
}

@media(max-width:760px){
  .analytics-live-strip{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .live-metric:nth-child(3n){
    border-right:1px solid var(--card-border,#e6eaf1);
  }
  .live-metric:nth-child(even){
    border-right:0;
  }
  .analytics-refresh-track{
    margin:-20px -12px 20px;
  }
}

@media(max-width:520px){
  .analytics-live-strip{
    grid-template-columns:1fr !important;
  }
  .live-metric,
  .live-metric:nth-child(3n),
  .live-metric:nth-child(even){
    border-right:0;
  }
}

/* 0.7.4.3: refresh timer lives directly below the global header. */
@media(max-width:980px){
  .analytics-refresh-track{left:0;right:0;top:68px;margin:0;}
}

/* FXPulse 0.7.4.6 — Profit Period Cards */
.profit-period-cards .metric-card{min-height:118px}
.period-profit-line{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:8px;color:var(--text,#111827)}
.period-profit-line strong{font-size:23px!important;line-height:1.1;color:inherit!important}
.period-profit-line b{font-size:18px;line-height:1.1;font-weight:500;color:inherit}
.period-profit-line.positive{color:#09a85a}
.period-profit-line.negative{color:#ef4057}
.analytics-secondary-heading{margin-top:4px}
html[data-theme="dark"] .period-profit-line{color:var(--text,#f5f7fb)}
html[data-theme="dark"] .period-profit-line.positive{color:#35d788}
html[data-theme="dark"] .period-profit-line.negative{color:#ff6678}

/* FXPulse 0.7.7.4.2 — header follows dashboard grid
   IMPORTANT: only the topbar is changed.
   Dashboard/content/card grid stays exactly as in 0.7.7.4.1. */
@media (min-width:1181px){
  .topbar{
    padding-left:40px !important;
    padding-right:40px !important;
  }
}

/* v0.7.7.4.11 symbol tile volume colors */
.symbol-tile .buy-lot,.symbol-tile .sell-lot{color:#111827!important;}

.symbol-tile .lots span{color:#111!important;}

/* FXPulse 0.7.7.4.26 symbol result colors */
.symbol-profit-gradient{
 background:linear-gradient(135deg,#169bff,#38d996)!important;
}
.symbol-profit-green{
 background:#38d996!important;
}
.symbol-profit-yellow{
 background:#ffd429!important;
}
.symbol-profit-red{
 background:#ff4b55!important;
}

/* FXPulse 0.7.7.4.28 */
.symbol-profit-gradient{
    background:linear-gradient(
        180deg,
        #159cff 0%,
        #159cff 18%,
        #1fb7e8 48%,
        #38d996 100%
    )!important;
    box-shadow:none!important;
}

/* FXPulse 0.7.7.4.29 gradient position fix */
.symbol-profit-gradient{
    background:linear-gradient(
        180deg,
        #38d996 0%,
        #38d996 35%,
        #1fb7e8 65%,
        #159cff 100%
    )!important;
}

/* FXPulse v0.7.7.4.48 — landing page (/) + user public code pages */
.landing-shell{max-width:1100px;margin:0 auto;padding:30px 18px 60px}
.landing-header{margin-bottom:0}
.landing-hero{max-width:640px;margin:110px auto;text-align:center}
.landing-hero .eyebrow{display:block;margin-bottom:10px}
.landing-hero h1{font-size:40px;margin:0 0 16px;letter-spacing:-.8px}
.landing-hero p{color:var(--muted);font-size:16px;line-height:1.6;margin:0 0 28px}
.landing-cta{padding:0 26px;min-height:50px;font-size:15px}
@media(max-width:650px){
  .landing-hero{margin:60px auto}
  .landing-hero h1{font-size:30px}
  .landing-header{flex-direction:column;gap:14px;align-items:flex-start}
}

/* useredit page */
.useredit-link-card{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.useredit-link-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.useredit-link-row code{background:#101728;color:#dce4ff;border-radius:8px;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}
.useredit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start;margin-top:20px}
.useredit-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.useredit-card-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.useredit-card-head input[type=text]{flex:1;height:38px}
.useredit-toggle-row{cursor:pointer;user-select:none;display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-top:1px solid var(--line);font-weight:700;font-size:13px;color:#3c4960;list-style:none}
.useredit-toggle-row::-webkit-details-marker{display:none}
.useredit-toggle-row:first-child{border-top:0}
.useredit-toggle-row .chevron{width:18px;height:18px;flex:0 0 18px;color:#8b96a8;transition:transform .15s ease}
.useredit-toggle-row .chevron svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
details[open]>.useredit-toggle-row .chevron{transform:rotate(180deg)}
.useredit-section{padding:4px 0 12px;display:grid;gap:10px}
.useredit-notify-group-label{font-size:12px;font-weight:700;letter-spacing:.02em;color:var(--muted);margin:2px 0 0}
.useredit-notify-group-label-symbols{border-top:1px solid var(--border);padding-top:14px;margin-top:4px}
.useredit-check-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.useredit-check-row label{flex-direction:row;align-items:center;gap:8px;font-weight:600;color:var(--text)}
.useredit-threshold-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-left:26px}
.useredit-threshold-row label{flex-direction:row;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.useredit-threshold-row input{width:90px;height:36px}
.useredit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.useredit-danger{margin-top:8px}
@media(max-width:1180px){.useredit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.useredit-grid{grid-template-columns:1fr}.useredit-link-card{flex-direction:column;align-items:flex-start}}

/* public /u/<code> page — reuses the home-dashboard robot-card look but
   without any sidebar chrome or live JS polling. */
.user-public-shell{max-width:1400px;margin:0 auto;padding:30px 18px 60px}
.user-public-head{margin:26px 0 22px}
.user-public-head h1{font-size:28px;margin:6px 0 4px}

/* FXPulse v0.7.7.4.52 — click-to-copy public link + toast */
.copyable-code{cursor:pointer;transition:background .12s ease,transform .1s ease}
.copyable-code:hover{background:#1a2338}
.copyable-code:active{transform:scale(.98)}

/* FXPulse v0.7.7.4.77 — global toast (window.fxToast), moved out of
   user_edit.html into layout.html so every page can call it; adds the
   error (red) variant used for save-failure feedback. */
.fx-toast{
  position:fixed;top:22px;right:22px;z-index:2000;
  display:flex;align-items:center;gap:9px;
  background:#12a36d;color:#fff;
  padding:12px 16px;border-radius:12px;
  font-size:14px;font-weight:600;
  box-shadow:0 10px 30px rgba(18,31,53,.18);
  transform:translateX(calc(100% + 32px));
  transition:transform .22s ease;
  pointer-events:none;
}
.fx-toast.show{transform:translateX(0)}
.fx-toast svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.fx-toast .fx-toast-icon-success,.fx-toast .fx-toast-icon-error{display:none}
.fx-toast.fx-toast-success{background:#12a36d}
.fx-toast.fx-toast-success .fx-toast-icon-success{display:block}
.fx-toast.fx-toast-error{background:#e15361}
.fx-toast.fx-toast-error .fx-toast-icon-error{display:block}
@media(max-width:650px){
  .fx-toast{left:16px;right:16px;top:16px;transform:translateY(-150%)}
  .fx-toast.show{transform:translateY(0)}
}

/* FXPulse v0.7.7.4.62 — site branding settings + logo everywhere */
.fx-branding-row{display:flex;align-items:center;gap:18px;margin-bottom:16px}
.fx-branding-logo-preview{width:64px;height:64px;flex:0 0 64px;border-radius:14px;background:#4b5cf0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#fff;font-weight:700;font-size:18px}
.fx-branding-logo-preview img{width:100%;height:100%;object-fit:contain;background:#fff}
.fx-branding-logo-actions{display:flex;flex-direction:column;gap:4px}
.fx-branding-form label{display:block;margin-bottom:14px;font-size:13px;color:var(--muted);font-weight:600}
.fx-branding-form input[type=text]{margin-top:6px;width:100%;max-width:360px}
.brand-mark-img{background:#fff;padding:0;overflow:hidden}
.brand-mark-img img{width:100%;height:100%;object-fit:contain}

/* FXPulse v0.7.7.4.65 — agent .mq4/.mq5 structured field editor */
.agent-fields-form{margin:14px 0 18px;padding:16px;background:#f7f9fc;border-radius:12px;border:1px solid var(--line)}
.agent-fields-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.agent-field{display:flex;flex-direction:column;gap:5px;font-size:13px}
.agent-field-label{font-weight:700;color:var(--text)}
.agent-field input,.agent-field select{height:36px;padding:0 10px;border-radius:8px;border:1px solid var(--line);font-size:13px}
.agent-field-help{color:#8a94ab;font-weight:400;line-height:1.4}

/* FXPulse v0.7.7.4.67 — code editor line-number gutter (display only, not
   part of the textarea's own value, so copying the code never includes
   the numbers). */
.code-editor-wrap{display:flex;align-items:stretch;height:460px;resize:vertical;border:1px solid var(--line,#dfe4ec);border-radius:12px;overflow:hidden;background:#f7f9fc}
.code-editor-wrap .code-editor{border:0;border-radius:0;flex:1 1 auto;height:100%;min-height:0;resize:none}
.code-editor-gutter{flex:0 0 auto;min-width:42px;height:100%;padding:15px 8px 15px 0;text-align:right;font:13px/1.55 "SFMono-Regular",Consolas,monospace;color:#98a2b3;background:#eef1f5;user-select:none;overflow:hidden;box-sizing:border-box;white-space:pre}
@media(max-width:680px){.code-editor-wrap{height:340px}}

/* FXPulse v0.7.7.4.69 — favicon field, robots.txt/sitemap.xml editors */
.fx-favicon-preview{width:64px;height:64px;flex:0 0 64px;border-radius:14px;background:#fff;border:1px solid var(--line,#dfe4ec);display:flex;align-items:center;justify-content:center;overflow:hidden;color:#98a2b3;font-weight:700}
.fx-favicon-preview img{width:70%;height:70%;object-fit:contain}
.fx-seo-textarea{width:100%;min-height:180px;resize:vertical;border:1px solid var(--line,#dfe4ec);border-radius:12px;background:#f7f9fc;color:#1f2937;padding:12px;font:13px/1.5 "SFMono-Regular",Consolas,monospace;box-sizing:border-box}
.fx-seo-textarea:focus{outline:2px solid rgba(88,100,255,.18);border-color:var(--accent,#5864ff)}

/* FXPulse v0.7.7.4.70 — configurable dashboard color thresholds */
.fx-colors-card h4{margin:16px 0 8px;font-size:13px;color:var(--muted)}
.fx-colors-card h4:first-of-type{margin-top:0}
.fx-colors-grid{display:flex;flex-wrap:wrap;gap:10px 22px}
.fx-colors-grid label{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:13px;color:var(--text);font-weight:600;white-space:nowrap}
.fx-colors-grid label.fx-colors-implicit{color:var(--muted);font-weight:400}
.fx-colors-grid input[type=text]{width:56px;height:30px;padding:0 6px;border-radius:8px;border:1px solid var(--line);font-size:13px;text-align:center}
.fx-color-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto}
.fx-color-dot-cyan{background:linear-gradient(135deg,#22d3c8,#3b82f6)}
.fx-color-dot-green{background:#39ca86}
.fx-color-dot-yellow{background:#f5c542}
.fx-color-dot-red{background:#ef5350}
.fx-color-dot-burgundy{background:#8f263d}

/* v0.7.377 — editable dashboard palette */
.fx-color-picker{width:28px!important;height:28px!important;min-width:28px;padding:2px!important;border:1px solid var(--line)!important;border-radius:7px!important;background:transparent!important;cursor:pointer;box-sizing:border-box}
.fx-color-picker::-webkit-color-swatch-wrapper{padding:0}
.fx-color-picker::-webkit-color-swatch{border:0;border-radius:4px}
.fx-color-picker::-moz-color-swatch{border:0;border-radius:4px}

/* FXPulse v0.7.7.4.72 — Личные данные: профиль, аватар, безопасность */
.pc-page{display:grid;gap:18px;max-width:1450px;margin:0 auto}
.pc-tabs{display:flex;gap:8px;overflow:auto;padding:4px;border:1px solid var(--line);border-radius:15px;background:#fff;width:max-content;max-width:100%;box-shadow:0 8px 24px rgba(31,42,68,.04)}
.pc-tab-btn{border:0;background:transparent;color:#65728a;padding:10px 17px;min-height:42px;border-radius:11px;font-weight:700;cursor:pointer;white-space:nowrap}
.pc-tab-btn:not(.active):hover{background:#f5f6fa;color:#344159}
.pc-tab-btn.active{background:var(--accent);color:#fff;box-shadow:0 8px 20px rgba(77,99,255,.18)}
.pc-panel{display:none}.pc-panel.active{display:block}
.pc-kicker{display:block;color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.1em;margin-bottom:7px}
.pc-muted{color:#7f8aa0;line-height:1.5}
.pc-single-card{max-width:760px}
.profile-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:20px;align-items:stretch}
.profile-grid>.info-card{min-height:100%}
.pc-summary-card{position:relative;padding:26px;overflow:hidden;display:grid;align-content:start;text-align:center;border:1px solid var(--line);background:radial-gradient(circle at 85% 10%,rgba(77,99,255,.10),transparent 33%),linear-gradient(145deg,#fff 0%,#fbfaff 100%)}
.pc-summary-card:before{content:"";position:absolute;width:180px;height:180px;right:-75px;bottom:-85px;border-radius:50%;background:rgba(77,99,255,.07)}
.pc-summary-topline{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:14px}
.pc-status-pill{display:inline-flex;align-items:center;min-height:28px;padding:0 11px;border-radius:999px;font-size:11px;font-weight:900}
.pc-status-pill.active{color:#11855f;background:#e8f8f1}
.pc-status-pill.disabled{color:#c84152;background:#fff0f2}
.pc-summary-avatar{position:relative;z-index:1;width:126px;height:126px;margin:22px auto 16px;border-radius:36px;overflow:hidden;background:#f0edff;border:5px solid rgba(255,255,255,.95);box-shadow:0 16px 34px rgba(43,51,77,.16)}
.pc-summary-avatar img,.pc-summary-avatar svg{width:100%;height:100%;object-fit:cover;transform-origin:center}
.pc-summary-card h2,.pc-summary-card>p,.pc-account-facts{position:relative;z-index:1}
.pc-summary-card h2{margin:0}.pc-summary-card>p{margin:6px 0 18px;color:#7f8aa0}
.pc-account-facts{display:grid;gap:0;margin:0;padding:8px 15px;border:1px solid #e7eaf1;border-radius:16px;background:rgba(255,255,255,.78)}
.pc-account-facts div{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid #edf0f5}
.pc-account-facts div:last-child{border-bottom:0}
.pc-account-facts dt{color:#8792a7}
.pc-account-facts dd{margin:0;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-avatar-card{padding:24px}
.pc-section-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:22px}
.pc-section-head h2{margin:0}.pc-section-head p{margin:7px 0 0}
.pc-avatar-workspace{display:grid;grid-template-columns:320px minmax(0,1fr);gap:28px}
.pc-avatar-preview-wrap{display:grid;justify-items:center;align-content:start;gap:16px}
.pc-avatar-preview{width:250px;height:250px;border-radius:50%;overflow:hidden;background:#f1efff;border:8px solid #fff;box-shadow:0 14px 38px rgba(37,46,74,.14)}
.pc-avatar-preview img,.pc-avatar-preview svg{width:100%;height:100%;object-fit:cover;transform-origin:center;transition:transform .12s ease}
.pc-upload-button{position:relative;overflow:hidden;cursor:pointer}
.pc-upload-button input{position:absolute;inset:0;opacity:0;cursor:pointer}
.pc-avatar-controls{display:grid;align-content:start;gap:18px}
.pc-avatar-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.pc-avatar-preset{position:relative;display:grid;justify-items:center;gap:8px;padding:12px;border:1px solid #e3e8f0;border-radius:16px;background:#fbfcff;cursor:pointer;transition:.18s}
.pc-avatar-preset:hover{border-color:#8ea0ff}
.pc-avatar-preset:has(input:checked){border-color:var(--accent);background:var(--accent-soft);box-shadow:0 8px 22px rgba(77,99,255,.10)}
.pc-avatar-preset input{position:absolute;opacity:0}
.pc-avatar-preset svg{width:74px;height:74px;border-radius:20px}
.pc-avatar-preset span{font-size:13px;font-weight:700;color:#364158}
.pc-range-row{display:grid;grid-template-columns:150px 1fr 55px;align-items:center;gap:12px;padding:14px 16px;border:1px solid #e6eaf1;border-radius:14px}
.pc-range-row span{font-weight:700;color:#364158}.pc-range-row output{text-align:right;color:var(--accent);font-weight:700}
.pc-range-row input[type=range]{accent-color:var(--accent)}
.pc-avatar-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.password-control{display:flex;align-items:center;gap:8px}
.password-control input{flex:1 1 auto;min-width:0;width:auto}
.password-toggle{flex:0 0 auto;width:100px;min-height:44px;text-align:center;padding:0 12px;border:1px solid var(--line);border-radius:9px;color:var(--accent);background:var(--accent-soft);font-weight:700;cursor:pointer}
#avatarDeleteForm{display:none}
@media(max-width:1050px){.profile-grid{grid-template-columns:1fr}}
@media(max-width:1100px){.pc-avatar-workspace{grid-template-columns:1fr}.pc-avatar-presets{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.pc-tabs{width:100%}.pc-summary-card{padding:20px}.pc-summary-card .pc-account-facts div{grid-template-columns:80px minmax(0,1fr)}.pc-avatar-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.pc-range-row{grid-template-columns:1fr}.pc-avatar-preview{width:210px;height:210px}}


/* FXPulse 0.7.7.4.182 — dark theme: logout control matches header controls */
html[data-theme="dark"] .topbar .logout-form .logout-button{
  background:var(--surface) !important;
  border:1px solid var(--line) !important;
  color:var(--text) !important;
  box-shadow:none !important;
}
html[data-theme="dark"] .topbar .logout-form .logout-button:hover{
  background:color-mix(in srgb,#e55261 8%,var(--surface)) !important;
  border-color:color-mix(in srgb,#e55261 30%,var(--line)) !important;
  color:#e55261 !important;
}

/* v0.7.7.4.183 — polish the owner telemetry status in the topbar.
   Keep the dot as the semantic state signal, but place dot + text in a
   restrained pill so the line no longer looks like loose yellow text on
   either the light or dark header. Mobile keeps hiding this block via the
   existing <=580px rule. */
.topbar-sub.fx-account-status{
  width:max-content;
  max-width:100%;
  min-height:24px;
  margin-top:6px;
  padding:3px 9px;
  gap:7px;
  border:1px solid #e4e9f1;
  border-radius:999px;
  background:#f7f9fc;
  box-shadow:0 1px 2px rgba(16,24,40,.035);
  font-size:12px!important;
  line-height:1.25;
}
.topbar-sub.fx-account-status .fx-account-status-dot{
  width:7px;
  height:7px;
  box-shadow:0 0 0 3px rgba(117,128,149,.08);
}
.topbar-sub.fx-account-status .fx-account-status-text{
  font-weight:600;
  letter-spacing:.005em;
}
.topbar-sub.fx-account-status .fx-account-status-text.partial{color:#9a6700}
.topbar-sub.fx-account-status .fx-account-status-text.online{color:#087a55}
.topbar-sub.fx-account-status .fx-account-status-text.offline{color:#c43245}
.topbar-sub.fx-account-status .fx-account-status-dot.partial{
  background:#e7a900;
  box-shadow:0 0 0 3px rgba(231,169,0,.12);
}
.topbar-sub.fx-account-status .fx-account-status-dot.online{
  background:#12a36d;
  box-shadow:0 0 0 3px rgba(18,163,109,.11);
}
.topbar-sub.fx-account-status .fx-account-status-dot.offline{
  background:#e24a5a;
  box-shadow:0 0 0 3px rgba(226,74,90,.11);
}

html[data-theme="dark"] .topbar-sub.fx-account-status{
  border-color:#273244;
  background:#111925;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 1px 2px rgba(0,0,0,.16);
}
html[data-theme="dark"] .topbar-sub.fx-account-status .fx-account-status-text.partial{color:#e9b94f}
html[data-theme="dark"] .topbar-sub.fx-account-status .fx-account-status-text.online{color:#46d29d}
html[data-theme="dark"] .topbar-sub.fx-account-status .fx-account-status-text.offline{color:#ff6b78}

/* FXPulse v0.7.7.4.184 — mobile toast regression guard.
   v0.7.7.4.183 was built from a CSS base where the old translateY(-150%)
   rule returned. Keep this override at the END of app.css so a dismissed
   success/error toast cannot leave a colored strip at the top on phones. */
@media(max-width:650px){
  .fx-toast:not(.show){
    transform:translateY(calc(-100% - 32px)) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }
  .fx-toast.show{
    transform:translateY(0) !important;
    opacity:1 !important;
    visibility:visible !important;
  }
}

/* FXPulse v0.7.7.4.194 — mobile native pull-to-refresh restore.
   Keep the 100dvh shell fix from .185 (prevents the old blank area below
   content), but do NOT suppress document overscroll: Chrome/Android needs
   the root viewport overscroll gesture for native pull-to-refresh. */
@media(max-width:720px){
  html,
  body{
    overscroll-behavior-y:auto;
  }
  .app-shell,
  .main{
    min-height:100dvh;
  }
}

/* FXPulse 0.7.7.4.196 — notification popover dark theme */
html[data-theme="dark"] .fx-notif-panel{
  background:#111a26;
  border-color:#26364a;
  box-shadow:0 18px 48px rgba(0,0,0,.48),0 2px 10px rgba(0,0,0,.30);
}
html[data-theme="dark"] .fx-notif-close{
  background:#182434;
  color:#aebdd0;
}
html[data-theme="dark"] .fx-notif-close:hover{background:#223247;color:#fff}
html[data-theme="dark"] .fx-notif-panel-head span,
html[data-theme="dark"] .fx-notif-item-title{color:#f4f7fb}
html[data-theme="dark"] .fx-notif-item-text{color:#a8b7ca}
html[data-theme="dark"] .fx-notif-item-time,
html[data-theme="dark"] .fx-notif-empty,
html[data-theme="dark"] .fx-notif-empty-hint{color:#8092aa}
html[data-theme="dark"] .fx-notif-empty svg{color:#8fa2ba}
html[data-theme="dark"] .fx-notif-item:hover{background:#172334}
html[data-theme="dark"] .fx-notif-item-icon{background:#1b2b43;color:#6f8cff}
html[data-theme="dark"] .fx-notif-goto{background:#1b2b43;color:#8fa5ff}
html[data-theme="dark"] .fx-notif-goto:hover{background:#243653}
html[data-theme="dark"] .fx-notif-badge{border-color:#111a26}

/* FXPulse 0.7.7.4.197 — global dark palette trial */
/* Dark page canvas */
html[data-theme="dark"]{
  --bg:#17212b !important;
  --page-bg:#17212b !important;
  --sidebar-bg:#17212b !important;
  --topbar-bg:#242f3d !important;

  /* Anything that is a white surface in the light theme becomes #242f3d. */
  --surface:#242f3d !important;
  --surface-2:#242f3d !important;
  --card-bg:#242f3d !important;
  --card-bg-soft:#242f3d !important;
  --panel-bg:#242f3d !important;

  --card-border:#344250 !important;
  --line:#344250 !important;
  --hover-bg:#2b3948 !important;
  --hover-line:#40536a !important;
  --rate-bg:#2b3948 !important;
}

/* Global page/background area that was near-black. */
html[data-theme="dark"] body,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .main,
html[data-theme="dark"] .content,
html[data-theme="dark"] main.content,
html[data-theme="dark"] .fx-dashboard,
html[data-theme="dark"] .robot-hub{
  background:#17212b !important;
}

/* Header on every page. */
html[data-theme="dark"] .topbar,
html[data-theme="dark"] header.topbar{
  background:#242f3d !important;
  border-bottom-color:#344250 !important;
}

/* Left navigation stays part of the page canvas. */
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .sidebar-modern{
  background:#17212b !important;
}

/* White cards/panels from the light theme -> #242f3d. */
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .empty-card,
html[data-theme="dark"] .notify-panel,
html[data-theme="dark"] .notify-channel,
html[data-theme="dark"] .billing-card,
html[data-theme="dark"] .public-mini-card,
html[data-theme="dark"] .subscription-strip,
html[data-theme="dark"] .robot-card,
html[data-theme="dark"] .dashboard-view-panel,
html[data-theme="dark"] .robot-menu-pop,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .dialog-card,
html[data-theme="dark"] .idea-moderation-modal,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .fx-notif-panel{
  background:#242f3d !important;
  border-color:#344250 !important;
}

/* Preserve the special no-data red header while its card body uses #242f3d. */
html[data-theme="dark"] .fx-dashboard .robot-card.no-data{
  background:#242f3d !important;
}
html[data-theme="dark"] .fx-dashboard .robot-card.no-data .r-head{
  background:#351c24 !important;
}

/* Controls which were white get the same #242f3d base; hover can be slightly lighter. */
html[data-theme="dark"] .balance-row,
html[data-theme="dark"] .platform,
html[data-theme="dark"] .order-box,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] button:not(.primary):not(.danger),
html[data-theme="dark"] .btn:not(.primary):not(.danger){
  background:#242f3d;
  border-color:#40536a;
}

html[data-theme="dark"] .fx-notif-close,
html[data-theme="dark"] .fx-notif-item:hover,
html[data-theme="dark"] .dashboard-view-panel a:hover,
html[data-theme="dark"] .robot-menu-pop a:hover{
  background:#2b3948 !important;
}

/* FXPulse 0.7.7.4.198 — keep refresh button green in dark theme */
html[data-theme="dark"] .fx-dashboard .robot-refresh-state,
html[data-theme="dark"] .fx-dashboard .robot-refresh-state.online{
  background:#25bf79 !important;
  border-color:#25bf79 !important;
  color:#fff !important;
  box-shadow:0 7px 16px rgba(37,191,121,.22) !important;
}
html[data-theme="dark"] .fx-dashboard .robot-refresh-state:hover,
html[data-theme="dark"] .fx-dashboard .robot-refresh-state.online:hover{
  background:#20ad6d !important;
  border-color:#20ad6d !important;
}

/* v0.7.7.4.211 — touch tooltips for phone/tablet.
   Desktop/laptop keeps the existing hover behaviour. On <=1024px the JS
   renders a single viewport-safe tooltip that is opened by tap. */
/* v0.7.589 — touch tooltip is viewport-anchored next to the tapped source.
   Fixed positioning matches getBoundingClientRect() coordinates and avoids
   header jumps when the dashboard uses its own scroll/re-render surfaces. */
.fx-touch-tooltip{
  position:fixed;
  z-index:10050;
  left:0;
  top:0;
  max-width:min(300px,calc(100vw - 24px));
  padding:8px 11px;
  border-radius:8px;
  background:#111827;
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 28px rgba(0,0,0,.28);
  font-size:12px;
  line-height:1.35;
  font-weight:600;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:left;
  pointer-events:none;
  opacity:0;
  transform:translateY(2px);
  transition:opacity .12s ease,transform .12s ease;
}
.fx-touch-tooltip.show{opacity:1;transform:translateY(0)}
html[data-theme="dark"] .fx-touch-tooltip{
  background:#111827;
  color:#f8fafc;
  border-color:#334155;
}


/* ========================================================================== */
/* v0.7.7.4.237 — notification section colors only                            */
/* ========================================================================== */

/* Support keeps the existing blue appearance. */
.fx-notif-item-icon--support{
  background:#eef3ff;
  color:#5870ff;
}

/* Ideas are green so the source section is recognizable at a glance. */
.fx-notif-item-icon--ideas{
  background:#eaf8f1;
  color:#00a878;
}

html[data-theme="dark"] .fx-notif-item-icon--support{
  background:#1b2b43;
  color:#6f8cff;
}

html[data-theme="dark"] .fx-notif-item-icon--ideas{
  background:#153329;
  color:#42c99a;
}


/* ========================================================================== */
/* v0.7.7.4.238 — notifications only                                          */
/* ========================================================================== */

/* №1 / №2: notification subject and message text */
.fx-notif-item-title{
  font-size:14px;
}
.fx-notif-item-text{
  font-size:14px;
}

/* №3 / №4: stronger category contrast specifically on dark theme.
   Keep the same semantic colors: Support = blue, Ideas = green. */
html[data-theme="dark"] .fx-notif-item-icon--support{
  background:#263d68;
  color:#8eabff;
  box-shadow:inset 0 0 0 1px rgba(142,171,255,.16);
}

html[data-theme="dark"] .fx-notif-item-icon--ideas{
  background:#164b3b;
  color:#55e0ad;
  box-shadow:inset 0 0 0 1px rgba(85,224,173,.16);
}

/* SVGs inherit the brighter category color above. */
html[data-theme="dark"] .fx-notif-item-icon--support svg,
html[data-theme="dark"] .fx-notif-item-icon--ideas svg{
  stroke:currentColor;
}

/* ========================================================================== */
/* v0.7.7.4.240 — notification dropdown right alignment                      */
/* ========================================================================== */
/*
   #fxNotifPanel is absolutely positioned inside .fx-notif, so right:0 aligns
   the panel with the BELL's right edge, not with the header/content right edge.

   In the real header markup, after .fx-notif there are exactly two controls:
   .theme-toggle and .topbar-logout.

   >=681px: --header-control-h = 40px and .top-actions gap = 10px
            40 + 10 + 40 + 10 = 100px
   581..680: --header-control-h = 38px and .top-actions gap = 7px
             38 + 7 + 38 + 7 = 90px

   <=580px keeps the existing mobile fixed panel (right/left:12px) untouched.
   !important intentionally beats any stale inline `right` left by the previous
   experimental JS patch while clients refresh their cached static assets.
*/
@media (min-width:681px){
  #fxNotifPanel{right:-100px !important;}
}
@media (min-width:581px) and (max-width:680px){
  #fxNotifPanel{right:-90px !important;}
}

/* v0.7.7.4.283 secure MetaTrader download cards */
.download-card-form{margin:0;min-width:0}
.download-card-form .download-card{width:100%;height:100%;font:inherit;text-align:left;cursor:pointer;color:inherit;appearance:none}

/* v0.7.7.4.308 — per-user messenger settings, no JS/polling */
.notify-bound{display:block;margin:0 0 10px;color:var(--muted,#8a94a7)}
.notify-settings{margin:0 0 10px;border:1px solid var(--line,#e1e5ed);border-radius:10px;overflow:hidden}
.notify-settings>summary{cursor:pointer;padding:10px 12px;font-weight:700;list-style:none;user-select:none}
.notify-settings>summary::-webkit-details-marker{display:none}
.notify-settings>summary::after{content:"⌄";float:right;color:var(--muted,#8a94a7)}
.notify-settings[open]>summary::after{content:"⌃"}
.notify-settings-form{display:grid;gap:10px;padding:0 12px 12px}
.notify-setting-row{display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:start;cursor:pointer}
.notify-setting-row input{margin-top:3px}
.notify-setting-row span{display:flex;flex-direction:column;gap:2px;min-width:0}
.notify-setting-row strong{font-size:13px}.notify-setting-row small{font-size:11px;line-height:1.35;color:var(--muted,#8a94a7)}
.notify-disconnect-form{margin-top:8px}.notify-channel .danger-outline{border-color:#d86666;color:#c94f4f;background:transparent}
html[data-theme="dark"] .notify-settings{border-color:#344250;background:#242f3d}

/* FXPulse 0.7.134 — searchable city picker on /account. Reuses the visual
   language of the dashboard view menu while keeping timezone details internal. */
.pc-city-picker{position:relative;width:100%}
.pc-city-trigger{
  position:relative;display:block;width:100%;min-height:44px;padding:0;
  border:1px solid var(--line);border-radius:11px;background:var(--surface);
  color:var(--text);text-align:left;box-shadow:none;overflow:hidden;
}
.pc-city-trigger:focus-within{
  border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent);
}
.pc-city-search{
  width:100%;height:44px;margin:0;padding:0 78px 0 14px !important;
  border:0 !important;border-radius:0 !important;background:transparent !important;
  color:inherit;font:inherit;outline:0 !important;box-shadow:none !important;
}
.pc-city-search::-webkit-search-cancel-button{display:none}
/* FXPulse 0.7.138 — stable clear × on /account. Avoid transform-based
   centering entirely so generic button hover/active rules cannot move it.
   The icon occupies the same 18px slot as the chevron while editing. */
.pc-city-clear{
  position:absolute;right:15px;top:calc(50% - 9px);width:18px;height:18px;padding:0;border:0!important;
  border-radius:0!important;background:transparent!important;color:var(--muted);transform:none!important;
  display:none;place-items:center;cursor:pointer;box-shadow:none!important;outline:none!important;z-index:2;
  appearance:none;-webkit-appearance:none;line-height:0;transition:color .16s ease!important;
}
.pc-city-clear[hidden]{display:none!important}
.pc-city-trigger:focus-within .pc-city-clear:not([hidden]){display:grid}
.pc-city-clear:hover,.pc-city-clear:focus-visible,.pc-city-clear:active{
  top:calc(50% - 9px);background:transparent!important;color:var(--text);transform:none!important;
  box-shadow:none!important;outline:none!important;
}
.pc-city-clear svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pc-city-chevron{
  position:absolute;right:15px;top:50%;width:18px;height:18px;transform:translateY(-50%);
  fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
  pointer-events:none;transition:transform .16s ease,color .16s ease;color:var(--muted);
}
.pc-city-trigger:focus-within .pc-city-clear:not([hidden]) + .pc-city-chevron{display:none}
.pc-city-picker.open .pc-city-chevron{transform:translateY(-50%) rotate(180deg)}
.pc-city-menu{
  position:absolute;top:calc(100% + 10px);left:0;z-index:120;width:100%;max-height:320px;
  overflow:auto;padding:7px;border:1px solid #e5e9f0;border-radius:13px;background:#fff;
  box-shadow:0 18px 44px rgba(20,30,55,.17),0 3px 10px rgba(20,30,55,.08);
}
.pc-city-menu[hidden]{display:none}
.pc-city-option{
  display:flex;align-items:center;width:100%;min-height:42px;padding:9px 11px;border:0;
  border-radius:9px;background:transparent;color:#253044;text-align:left;font:inherit;
  font-size:14px;font-weight:650;cursor:pointer;transition:background .14s ease,color .14s ease;
}
/* v0.7.135 — the author-level display:flex above otherwise wins over the
   browser's built-in [hidden]{display:none}. Keep live city filtering truly
   immediate while the user types. */
.pc-city-option[hidden]{display:none}
.pc-city-option+.pc-city-option{margin-top:2px}
.pc-city-option:hover,.pc-city-option:focus-visible,.pc-city-option.keyboard-active{
  background:var(--accent-soft,#eef0ff);color:var(--accent,#4d63ff);outline:none;
}
/* Keep the chosen city visually identical to the dashboard "Детали" active item.
   app.css has a legacy global .selected rule with a 2px purple border, so this
   component-level override must win explicitly. */
.pc-city-option.selected,
.pc-city-option.selected:hover,
.pc-city-option.selected:focus-visible,
.pc-city-option.selected.keyboard-active{
  border:0!important;background:#eef1ff!important;color:#364fc5!important;
  font-weight:750;box-shadow:none!important;outline:none!important;
}
.pc-city-empty{padding:14px 11px;color:var(--muted);font-size:14px;text-align:center}
html[data-theme="dark"] .pc-city-trigger{background:#242f3d;border-color:#40536a}
html[data-theme="dark"] .pc-city-menu{
  background:#151f2b;border-color:#2b3949;box-shadow:0 18px 46px rgba(0,0,0,.42),0 2px 8px rgba(0,0,0,.28);
}
html[data-theme="dark"] .pc-city-option{color:#dbe6f3}
html[data-theme="dark"] .pc-city-option:hover,
html[data-theme="dark"] .pc-city-option:focus-visible,
html[data-theme="dark"] .pc-city-option.keyboard-active{background:#202d40;color:#aab6ff}
html[data-theme="dark"] .pc-city-option.selected,
html[data-theme="dark"] .pc-city-option.selected:hover,
html[data-theme="dark"] .pc-city-option.selected:focus-visible,
html[data-theme="dark"] .pc-city-option.selected.keyboard-active{
  border:0!important;background:#182a40!important;color:#9eb5ff!important;box-shadow:none!important;outline:none!important;
}
.pc-city-field{display:flex;flex-direction:column;gap:6px}
.pc-city-field>label{display:block}


/* v0.7.189 — remembered login + all-device session controls */
.auth-remember{display:flex!important;align-items:center;gap:9px;font-size:13px!important;color:var(--muted,#7c8799);cursor:pointer;user-select:none}
.auth-remember input{width:17px;height:17px;margin:0;accent-color:var(--accent,#5864ff);cursor:pointer}
.auth-remember span{line-height:1.3}
.pc-session-security{margin-top:26px;padding-top:22px;border-top:1px solid var(--line,#e3e8ef);display:flex;align-items:center;justify-content:space-between;gap:24px}
.pc-session-security-copy{min-width:0}
.pc-session-security h3{margin:0 0 6px;font-size:16px;line-height:1.25}
.pc-session-security p{margin:0;max-width:520px;color:var(--muted,#7c8799);font-size:13px;line-height:1.45}
.pc-session-security form{flex:0 0 auto}
html[data-theme="dark"] .pc-session-security{border-top-color:rgba(145,170,189,.16)}
html[data-theme="dark"] .auth-remember{color:#91aabd}
@media(max-width:650px){.pc-session-security{align-items:stretch;flex-direction:column;gap:14px}.pc-session-security form,.pc-session-security .button{width:100%}}

/* FXPulse v0.7.216 — tablet/mobile topbar drawer trigger restored to the left.
   Account-card .r-card-menu placement from v0.7.215 remains unchanged in home-dashboard.css. */
@media(max-width:980px){
  .menu-btn{
    order:0;
    margin-left:0;
    margin-right:12px;
  }
  .topbar-title{order:1}
  .top-actions{order:2;margin-left:auto}
}

/* v0.7.255 — /account uses the global .content gutters, matching /useredit. */
.pc-page{
  width:100%;
  max-width:none!important;
  margin:0!important;
}

:where(a[href],button:enabled,summary,select:enabled,input:enabled:not([type="hidden"]),textarea:enabled,[role="button"],[role="tab"]):not([aria-disabled="true"]):not([disabled]):focus-visible {
 outline:2px solid #8b9beb;outline-offset:3px;
}
.fx-header-telegram {display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;text-decoration:none}
.fx-header-telegram img {display:block;width:22px;height:22px;max-width:22px;filter:none}
@media (max-width:480px) {
 .topbar:has(.fx-header-telegram) {gap:4px;padding-left:10px;padding-right:10px}
 .topbar:has(.fx-header-telegram) .menu-btn {margin-right:0}
 .top-actions:has(.fx-header-telegram) {gap:4px}
 .top-actions:has(.fx-header-telegram) .fx-icon-button {width:34px;height:34px;flex:0 0 34px}
 .top-actions:has(.fx-header-telegram) .fx-rate {min-width:68px;padding:0 6px;gap:3px}
 .top-actions:has(.fx-header-telegram) .fx-rate-value {gap:2px}
 .top-actions:has(.fx-header-telegram) .fx-rate strong,
 .top-actions:has(.fx-header-telegram) .fx-rate-currency {font-size:12px}
}

/* v0.7.590 — touch/tablet: keep exactly one tooltip.
   Some tablet browsers preserve :hover/:focus after a tap, so the dashboard's
   legacy ::before/::after tooltip can remain visible underneath the global
   tap tooltip. Once the touch controller marks itself ready, hard-disable all
   dashboard pseudo-tooltips on touch-sized layouts. Desktop hover is untouched. */
@media (max-width:1024px), (hover:none), (pointer:coarse){
  html.fx-touch-tooltips-ready .fx-dashboard [data-tooltip]::before,
  html.fx-touch-tooltips-ready .fx-dashboard [data-tooltip]::after{
    content:none !important;
    display:none !important;
    opacity:0 !important;
    visibility:hidden !important;
  }
}


/* v0.7.592 — pending-order touch tooltip line parity with desktop.
   The generic touch tooltip normally collapses line breaks because it uses
   white-space:normal. Only pending-order tooltips preserve their explicit
   line breaks; JS inserts one additional break after the summary, giving:
   summary -> blank line -> per-symbol rows. */
.fx-touch-tooltip.fx-touch-tooltip-pending{
  white-space:pre-line;
}

/* v0.7.593 — phone/tablet tooltip visual parity with desktop.
   Keep the touch positioning/behaviour from 0.7.589–0.7.592, but use the
   same surface, radius, padding and shadow as the desktop pending tooltip. */
@media (max-width:1024px), (hover:none), (pointer:coarse){
  html.fx-touch-tooltips-ready .fx-touch-tooltip{
    background:#15171d !important;
    color:#fff !important;
    border:0 !important;
    border-radius:8px !important;
    padding:7px 11px !important;
    box-shadow:0 12px 28px rgba(10,14,25,.34),0 3px 8px rgba(10,14,25,.22) !important;
    font-size:12px !important;
    font-weight:600 !important;
    line-height:1.3 !important;
    text-align:left !important;
  }
}
