/* MW Trader authenticated-workspace redesign. Public CSS remains unchanged. */
body.protected-layout { --mw-card:#121b24; --mw-line:#273441; --mw-dim:#9ea9b9; --mw-ink:#f1f4f7; background:#090f15; }
body.protected-layout .mw-app-shell { background:#090f15; color:var(--mw-ink); }
body.protected-layout .mw-icon { flex:none; display:inline-block; vertical-align:middle; }
body.protected-layout .mw-sidebar { width:220px; padding:26px 8px 22px; background:#0e161e; border-right:1px solid #25313d; box-shadow:none; }
body.protected-layout .mw-sidebar-logo { display:flex; align-items:center; padding:0 24px; margin-bottom:30px; height:52px; }
body.protected-layout .mw-sidebar-logo img { width:166px; max-height:50px; object-fit:contain; object-position:left; }
body.protected-layout .mw-sidebar .app-side-nav { gap:5px; }
body.protected-layout .mw-sidebar .app-nav-item { gap:15px; padding:11px 18px; min-height:46px; border-radius:7px; border-left:3px solid transparent; font-size:13px; color:#abb8c9; font-weight:500; }
body.protected-layout .mw-sidebar .app-nav-item .mw-icon { color:#a4b1c4; }
body.protected-layout .mw-sidebar .app-nav-item:hover { background:rgba(240,185,11,.07); color:#f2f4f7; }
body.protected-layout .mw-sidebar .app-nav-item.active { border-left-color:var(--brand); background:linear-gradient(90deg,rgba(240,185,11,.16),rgba(240,185,11,.06)); color:var(--brand); font-weight:700; }
body.protected-layout .mw-sidebar .app-nav-item.active .mw-icon { color:var(--brand); }
body.protected-layout .mw-sidebar .app-nav-group-label { padding:27px 18px 10px; margin:14px 8px 4px; border-top:1px solid #26323c; font-size:10px; letter-spacing:.09em; color:#8996a8; }
body.protected-layout .mw-sidebar .app-sidebar-foot { display:grid; gap:8px; padding:15px 7px 0; border:0; }
body.protected-layout .mw-sidebar .app-support-link, body.protected-layout .mw-sidebar .app-logout { display:flex; align-items:center; gap:13px; border:0; background:transparent; color:#a9b5c5; text-align:left; padding:10px 16px; min-height:44px; font-size:13px; }
body.protected-layout .mw-sidebar .app-logout:hover,body.protected-layout .mw-sidebar .app-support-link:hover { color:var(--brand); background:#19232b; }
body.protected-layout .mw-app-shell .app-workspace { margin-left:220px; min-width:0; }
body.protected-layout .mw-topbar { position:fixed; left:220px; right:0; top:0; height:52px; padding:0 25px; background:#0c131bd9; border-bottom:1px solid #28323e; z-index:70; }
body.protected-layout .mw-breadcrumb { display:flex; align-items:center; gap:12px; font-size:12px; color:#a8b3c3; }
body.protected-layout .mw-breadcrumb strong { color:#e6ebf0; font-weight:500; }
body.protected-layout .mw-topbar-right { display:flex; align-items:center; margin-left:auto; gap:25px; min-width:0; }
body.protected-layout .mw-topbar .app-topbar-status { display:flex; gap:8px; color:#b4c0cf; font-size:12px; margin:0; white-space:nowrap; }
body.protected-layout .mw-topbar .app-topbar-user { display:flex; gap:8px; min-width:0; align-items:center; color:#e8edf3; padding:0; }
body.protected-layout .mw-topbar .app-topbar-user>span:first-child { max-width:120px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:12px; }
body.protected-layout .mw-topbar .app-avatar { border:1px solid #586475; border-radius:50%; width:32px; height:32px; display:grid; place-items:center; font-size:14px; }
body.protected-layout .mw-topbar .app-avatar img { border-radius:50%; height:100%; width:100%; object-fit:cover; }
body.protected-layout .mw-mobile-brand,body.protected-layout .mw-bottom-nav { display:none; }
body.protected-layout .mw-app-shell .app-content { padding-top:52px; min-width:0; }
body.protected-layout .mw-dashboard { padding:25px 24px 38px; max-width:1580px; margin:0 auto; }
body.protected-layout .mw-dash-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:15px; margin-bottom:16px; }
body.protected-layout .mw-dash-heading h1 { font-size:clamp(27px,2.7vw,35px); line-height:1.15; letter-spacing:-.035em; font-weight:750; color:#f3f5f7; }
body.protected-layout .mw-dash-heading p { margin:4px 0 0; color:#a6b2c3; font-size:14px; }
body.protected-layout .mw-header-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
body.protected-layout .mw-state-pill { display:flex; align-items:center; gap:7px; white-space:nowrap; padding:9px 13px; border-radius:8px; font-size:12px; font-weight:650; border:1px solid rgba(14,203,129,.30); background:rgba(14,203,129,.08); color:#55d796; }
body.protected-layout .mw-state-pill.state-stopped { color:#f0b6bd; border-color:rgba(255,107,122,.3); background:rgba(255,107,122,.06); }
body.protected-layout .mw-header-actions .mw-stop-button { display:flex; align-items:center; gap:7px; min-height:41px; padding:0 16px; color:#ff7c8c; background:rgba(255,107,122,.04); border-color:#cb5066; font-size:12px; }
body.protected-layout .mw-card { border:1px solid var(--mw-line); background:linear-gradient(135deg,#141f29,#121b24 90%); box-shadow:0 6px 18px rgba(0,0,0,.09); border-radius:12px; min-width:0; }
body.protected-layout .mw-connection-card { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:76px; padding:16px 22px; margin-bottom:13px; }
body.protected-layout .mw-connection-main { display:flex; align-items:center; gap:16px; min-width:0; }
body.protected-layout .mw-connection-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:10px; background:#293127; color:var(--brand); flex:none; }
body.protected-layout .mw-connection-main strong { display:block; font-size:15px; color:#f6f6f7; }
body.protected-layout .mw-connection-main small { display:block; color:#9fa9b6; margin-top:2px; font-size:11px; line-height:1.5; }
body.protected-layout .mw-connection-tools { display:flex; align-items:center; flex:none; gap:16px; }
body.protected-layout .mw-plain-action { display:inline-flex; gap:6px; align-items:center; justify-content:center; border:0; border-left:1px solid #304151; border-radius:0; padding:6px 0 6px 16px; min-height:34px; background:transparent; color:#9fbce9; white-space:nowrap; cursor:pointer; font-size:12px; }
body.protected-layout .mw-plain-action:hover { color:var(--brand); }
body.protected-layout .mw-mobile-sync { display:none; }
body.protected-layout .mw-connection-card.success .mw-connection-mark { color:#48d78f; background:rgba(14,203,129,.12); }
body.protected-layout .mw-connection-card.success .mw-connection-main strong { color:#48d78f; }
body.protected-layout .mw-connection-card.success .mw-mobile-sync { display:flex; align-items:center; gap:6px; color:#48d78f; font-size:12px; white-space:nowrap; font-weight:600; }
body.protected-layout .mw-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:13px; }
body.protected-layout .mw-stat { display:flex; align-items:center; gap:14px; min-width:0; min-height:100px; padding:17px; background:linear-gradient(135deg,#15202b,#111b24); border:1px solid #293440; border-radius:11px; }
body.protected-layout .mw-stat-icon { display:grid; place-items:center; flex:none; height:43px; width:43px; border-radius:9px; color:var(--brand); background:rgba(240,185,11,.10); }
body.protected-layout .mw-stat-info { min-width:0; }
body.protected-layout .mw-stat-info>span { display:block; color:#a8b4c4; font-size:12px; line-height:1.3; }
body.protected-layout .mw-stat-info strong { display:block; margin-top:8px; color:#f7f7fa; font-size:clamp(16px,1.8vw,23px); font-weight:750; overflow-wrap:anywhere; line-height:1.12; }
body.protected-layout .mw-stat-info strong.positive { color:#48d78f; }
body.protected-layout .mw-stat-info strong.negative { color:#fb7487; }
body.protected-layout .mw-stat-info strong.mw-neutral { color:#e5e8ec; }
body.protected-layout .mw-stat-info em { font-style:normal; color:#eff1f5; }
body.protected-layout .mw-dashboard-flow { display:grid; grid-template-columns:minmax(0,2.2fr) minmax(260px,1fr); grid-template-areas:'positions execution' 'recent risk'; gap:13px; align-items:start; }
body.protected-layout .mw-dashboard-flow > * { min-width:0; }
body.protected-layout .mw-positions-panel { grid-area:positions; padding:17px 19px 11px; scroll-margin-top:70px; }
body.protected-layout .mw-execution-card { grid-area:execution; padding:18px; }
body.protected-layout .mw-risk-summary { grid-area:risk; padding:17px 18px; }
body.protected-layout .mw-recent-panel { grid-area:recent; padding:16px 19px 14px; }
body.protected-layout .mw-card-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #293743; padding-bottom:12px; margin-bottom:10px; }
body.protected-layout .mw-card-heading h2,body.protected-layout .mw-execution-card h2 { font-size:16px; font-weight:700; line-height:1.3; color:#f3f6fa; }
body.protected-layout .mw-card-heading>a { color:#8eaddb; font-size:12px; }
body.protected-layout .mw-card-heading>a:hover { color:var(--brand); }
body.protected-layout .mw-position-tools { display:flex; align-items:center; gap:10px; }
body.protected-layout .mw-search-field { height:36px; border:1px solid #354250; border-radius:7px; display:flex; align-items:center; gap:8px; color:#9ca9bc; padding:0 10px; }
body.protected-layout .mw-search-field input { background:transparent; border:0; outline:0; padding:0; width:clamp(92px,14vw,170px); min-width:0; color:white; font-size:12px; }
body.protected-layout .mw-close-all { min-height:36px; border:1px solid #6d7b90; padding:0 13px; background:transparent; color:#dae1eb; border-radius:7px; cursor:pointer; font-size:12px; white-space:nowrap; }
body.protected-layout .mw-close-all:disabled { opacity:.45; cursor:not-allowed; }
body.protected-layout .mw-position-head,body.protected-layout .mw-position-row { display:grid; grid-template-columns:minmax(125px,1.55fr) minmax(53px,.62fr) repeat(4,minmax(60px,.84fr)) minmax(58px,.64fr); align-items:center; column-gap:7px; }
body.protected-layout .mw-position-head { padding:8px 2px 11px; color:#9aa7b9; border-bottom:1px solid #2b3846; font-size:11px; }
body.protected-layout .mw-position-head span:nth-child(n+3) { text-align:right; }
body.protected-layout .mw-position-row { background:transparent; border:0; border-bottom:1px solid #293440; border-radius:0; padding:12px 2px; min-height:75px; width:100%; gap:7px; box-shadow:none; cursor:default; }
body.protected-layout .mw-position-row:last-child { border:0; }
body.protected-layout .mw-position-row.long,body.protected-layout .mw-position-row.short { border-left:0; padding-left:2px; }
body.protected-layout .mw-position-row:hover { background:#202c36; }
body.protected-layout .mw-position-row .position-symbol { display:flex; gap:9px; min-width:0; align-items:center; grid-column:auto; }
body.protected-layout .mw-position-row .mw-position-identity { min-width:0; overflow:hidden; }
body.protected-layout .mw-position-row .position-details-button { display:block; padding:0; background:none; border:0; color:#f3f5f7; font-size:12px; font-weight:750; text-align:left; max-width:100%; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
body.protected-layout .mw-position-row .position-symbol small { display:block; color:#8492a5; line-height:1.3; font-size:10px; overflow-wrap:anywhere; }
body.protected-layout .mw-position-row .trade-system-label { color:#9aaac1; font-weight:500; }
body.protected-layout .mw-coin { display:grid; place-items:center; position:relative; overflow:hidden; color:white; font-size:20px; font-weight:800; width:36px; height:36px; border-radius:50%; background:#697380; flex:none; font-family:Arial,sans-serif; }
body.protected-layout .mw-coin-logo { position:absolute; inset:0; display:block; width:100%; height:100%; border-radius:50%; object-fit:contain; background:#141e28; }
body.protected-layout .mw-coin-fallback { display:grid; place-items:center; width:100%; height:100%; }
body.protected-layout .mw-position-name-line { min-width:0; }
body.protected-layout .mw-mobile-side { display:none; }
body.protected-layout .app-modal .mw-coin { display:inline-grid; vertical-align:middle; margin-right:5px; }
body.protected-layout .mw-coin-btc { background:#f39b25; }.mw-coin-eth { background:#657cdd!important; }.mw-coin-sol { background:#0b1020!important; color:#80e8c4!important; }.mw-coin-bnb { background:#dfaa13!important; }.mw-coin-xrp { background:#2b3642!important; }.mw-coin-doge { background:#ba9b45!important; }.mw-coin-ada { background:#2565ad!important; }.mw-coin-trx { background:#b72b38!important; }.mw-coin-generic { background:#505d6b!important; font-size:12px!important; }
body.protected-layout .mw-position-side { display:flex; flex-wrap:wrap; gap:2px; }
body.protected-layout .mw-position-row .side-badge { padding:5px 7px; border:0; border-radius:6px; font-size:11px; white-space:nowrap; }
body.protected-layout .mw-position-row .position-cell { grid-column:auto; min-width:0; text-align:right; }
body.protected-layout .mw-position-row .position-cell>span { display:none; }
body.protected-layout .mw-position-row .position-cell strong { white-space:nowrap; font-size:11px; font-weight:650; }
body.protected-layout .mw-position-row .position-cell .positive { color:#4bd991; }.mw-position-row .position-cell .negative { color:#fc798c; }
body.protected-layout .mw-position-row .position-actions { display:block; position:static; opacity:1; margin:0; transform:none; }
body.protected-layout .mw-outline-close { width:100%; border:1px solid var(--brand); background:transparent; border-radius:7px; color:var(--brand); padding:7px 8px; cursor:pointer; min-height:32px; font-size:11px; }
body.protected-layout .mw-outline-close:hover { background:rgba(240,185,11,.13); }
body.protected-layout .mw-position-mobile-bottom,body.protected-layout .mw-mobile-position-tools,body.protected-layout .mw-mobile-execution-state,body.protected-layout .mw-mobile-stop { display:none; }
body.protected-layout .mw-execution-card h2 { margin-bottom:15px; }
body.protected-layout .mw-profile-link { display:flex; gap:9px; align-items:center; background:#18232d; padding:11px; border:1px solid #283743; border-radius:8px; font-size:12px; font-weight:600; }
body.protected-layout .mw-profile-link .mw-icon:last-child { margin-left:auto; color:#9eabba; }
body.protected-layout .mw-execution-specs,body.protected-layout .mw-risk-items { margin:9px 0 0; }
body.protected-layout .mw-execution-specs>div,body.protected-layout .mw-risk-items>div { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 1px; }
body.protected-layout .mw-execution-specs dt,body.protected-layout .mw-risk-items dt { font-size:11px; color:#acb7c7; min-width:0; }
body.protected-layout .mw-execution-specs dd,body.protected-layout .mw-risk-items dd { font-weight:700; color:#edf2f5; font-size:12px; text-align:right; flex:none; }
body.protected-layout .mw-execution-actions { display:grid; gap:10px; margin-top:10px; }
body.protected-layout .mw-execution-actions .button,body.protected-layout .mw-edit-profile { width:100%; min-height:41px; display:flex; align-items:center; justify-content:center; gap:8px; font-weight:750; }
body.protected-layout .mw-gold-button { background:var(--brand); color:#16120a; border-color:var(--brand); }
body.protected-layout .mw-edit-profile { border:1px solid var(--brand); border-radius:8px; background:transparent; color:var(--brand); font-size:12px; }
body.protected-layout .mw-locked-state { text-align:center; color:var(--red); font-size:12px; font-weight:650; }
body.protected-layout .mw-risk-summary .mw-card-heading { margin-bottom:4px; }
body.protected-layout .mw-risk-items>div { padding:7px 1px; }
body.protected-layout .mw-risk-chip { padding:4px 9px; border-radius:6px; background:rgba(14,203,129,.14); color:#62d99a; font-size:11px; }
body.protected-layout .mw-risk-chip.negative { background:rgba(255,107,122,.13); color:#ff8496; }
body.protected-layout .mw-review-link { display:flex; justify-content:space-between; align-items:center; font-size:12px; padding:12px 0 10px; margin-top:4px; border-top:1px solid #283743; color:#8fb4eb; }
body.protected-layout .mw-risk-note { color:#9daabd; font-size:10px; line-height:1.5; padding:8px 0 0; }
body.protected-layout .mw-execution-actions>.mw-risk-note { grid-column:1/-1; padding:0; }
body.protected-layout .mw-activity-head,body.protected-layout .mw-activity-row { display:grid; grid-template-columns:minmax(115px,1fr) minmax(130px,1.15fr) minmax(95px,1fr); gap:10px; align-items:center; padding:11px 2px; }
body.protected-layout .mw-activity-head { color:#98a6b9; border-bottom:1px solid #2d3a47; font-size:11px; }
body.protected-layout .mw-activity-row { border-bottom:1px solid #283743; font-size:11px; }
body.protected-layout .mw-activity-row:last-child { border:0; }
body.protected-layout .mw-activity-row>time { color:#9cabbc; }.mw-activity-row>strong { font-size:11px; font-weight:500; }.mw-activity-row>span { text-align:right; }
body.protected-layout .mw-empty-activity { padding:20px 2px; color:#a6b2c1; }
body.protected-layout .mw-dashboard>.onboarding-card { margin-top:14px; }
/* Setup and Profile share the existing account forms and backend actions. */
body.protected-layout .setup-dashboard,body.protected-layout .mw-profile-page { max-width:1580px; margin:0 auto; }
body.protected-layout .setup-grid.modern .risk-controls-card { grid-column:1/-1; }
body.protected-layout .setup-grid.modern .risk-controls-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.protected-layout .mw-profile-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.7fr); gap:16px; align-items:start; }
body.protected-layout .mw-profile-column { display:grid; gap:16px; min-width:0; }
body.protected-layout .mw-profile-page .setup-panel { margin:0; }
body.protected-layout .mw-profile-page h2 { color:#f0f3f6; font-size:18px; margin:0 0 14px; }
body.protected-layout .mw-account-identity { display:flex; align-items:center; gap:15px; margin:10px 0 22px; min-width:0; }
body.protected-layout .mw-account-avatar { width:66px; height:66px; flex:none; display:grid; place-items:center; font-size:26px; background:#1b2934; color:var(--brand); border:1px solid #465562; border-radius:50%; overflow:hidden; }
body.protected-layout .mw-account-avatar img { height:100%; width:100%; object-fit:cover; }
body.protected-layout .mw-account-identity>div { min-width:0; display:grid; }
body.protected-layout .mw-account-identity strong { font-size:18px; overflow-wrap:anywhere; }
body.protected-layout .mw-account-identity span:not(.app-avatar),body.protected-layout .mw-account-identity small { color:#9ca9ba; overflow-wrap:anywhere; font-size:12px; }
body.protected-layout .mw-account-panel>button { display:inline-flex; gap:7px; align-items:center; }
body.protected-layout .mw-profile-menu-item { display:flex; align-items:center; width:100%; gap:13px; padding:13px 10px; border:0; border-bottom:1px solid #293641; background:transparent; color:#c1cbda; text-align:left; min-height:48px; font-size:13px; cursor:pointer; }
body.protected-layout .mw-profile-menu-item>span { flex:1; }.mw-profile-menu-item>.mw-icon:last-child { color:#8391a4; }
body.protected-layout .mw-profile-menu-item:hover { background:#1f2a34; color:var(--brand); }.mw-profile-menu-item:last-child { border-bottom:0; }
body.protected-layout .mw-profile-logout { color:#ff8796; }
@media (max-width:1190px) and (min-width:901px) {
  body.protected-layout .mw-dashboard-flow { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:"positions positions" "execution risk" "recent recent"; }
  body.protected-layout .mw-stat { padding:12px; gap:8px; }.mw-stat-icon { width:35px!important; height:35px!important; }
  body.protected-layout .mw-stat-info strong { font-size:16px; }
  body.protected-layout .mw-position-head,body.protected-layout .mw-position-row { grid-template-columns:minmax(112px,1.4fr) 52px repeat(4,minmax(49px,.7fr)) 52px; gap:3px; }
  body.protected-layout .mw-position-row .position-cell strong { font-size:10px; }
}
@media (max-width:900px) {
  body.protected-layout { --app-sidebar:0px; }
  body.protected-layout .mw-sidebar { display:none!important; }
  body.protected-layout .mw-app-shell .app-workspace { margin-left:0; }
  body.protected-layout .mw-topbar { left:0; height:64px; padding:0 22px; }
  body.protected-layout .mw-app-shell .app-content { padding-top:64px; padding-bottom:calc(78px + env(safe-area-inset-bottom,0px)); }
  body.protected-layout .mw-breadcrumb { display:none; }
  body.protected-layout .mw-mobile-brand { display:flex; align-items:center; flex:0 1 auto; min-width:0; max-width:calc(100% - 58px); }
  body.protected-layout .mw-mobile-brand img { display:block; width:164px; max-width:100%; height:auto; max-height:42px; object-fit:contain; object-position:left center; }
  body.protected-layout .mw-topbar .app-topbar-status { display:none; }
  body.protected-layout .mw-topbar .app-topbar-user>span:first-child { display:none; }
  body.protected-layout .mw-topbar .app-avatar { border-color:var(--brand); height:39px; width:39px; }
  body.protected-layout .mw-bottom-nav { position:fixed; bottom:0; left:0; right:0; z-index:85; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); padding:9px 6px calc(9px + env(safe-area-inset-bottom,0px)); min-height:69px; gap:2px; background:#0d151eea; border-top:1px solid #2c3844; backdrop-filter:blur(14px); box-shadow:0 -6px 25px rgba(0,0,0,.2); }
  body.protected-layout .mw-bottom-link { display:grid; justify-items:center; align-content:center; gap:4px; min-width:0; padding:0 2px 4px; border-bottom:3px solid transparent; color:#a4afbf; font-size:11px; white-space:nowrap; }
  body.protected-layout .mw-bottom-link.active { color:var(--brand); border-bottom-color:var(--brand); }
  body.protected-layout .mw-bottom-link>span { max-width:100%; overflow:hidden; text-overflow:ellipsis; }
  body.protected-layout .mw-dashboard { padding:22px 18px 35px; }
  body.protected-layout .mw-dashboard-flow { grid-template-columns:minmax(0,1fr); grid-template-areas:"positions" "execution" "risk" "recent"; }
  body.protected-layout .mw-profile-layout { grid-template-columns:1fr; }
  body.protected-layout .mw-dashboard-flow .mw-position-row .position-cell strong { font-size:10px; }
}
@media (max-width:760px) {
  body.protected-layout .mw-dashboard { padding:18px 15px 24px; }
  body.protected-layout .mw-dash-heading h1 { font-size:32px; }
  body.protected-layout .mw-dash-heading p { display:none; }
  body.protected-layout .mw-dash-heading .mw-desktop-title { display:none; }
  body.protected-layout .mw-header-actions { display:none; }
  body.protected-layout .mw-connection-card { padding:11px 13px; min-height:57px; margin-bottom:12px; }
  body.protected-layout .mw-connection-mark { display:none; }
  body.protected-layout .mw-connection-main { gap:10px; flex:1; }
  body.protected-layout .mw-connection-main::before { content:""; display:block; height:11px; width:11px; border-radius:50%; background:#35d88e; flex:none; }
  body.protected-layout .mw-connection-main strong { font-size:13px; }
  body.protected-layout .mw-connection-main small { display:none; }
  body.protected-layout .mw-connection-tools { border-left:1px solid #2d3a46; padding-left:9px; gap:0; }
  body.protected-layout .mw-connection-tools .mw-plain-action { display:none; }
  body.protected-layout .mw-connection-card:not(.success) { flex-wrap:wrap; }
  body.protected-layout .mw-connection-card:not(.success) .mw-connection-tools { flex:1 1 auto; min-width:0; flex-wrap:wrap; }
  body.protected-layout .mw-connection-card:not(.success) .mw-connection-tools .mw-plain-action { display:inline-flex; border-left:0; padding:5px 7px; min-height:30px; }
  body.protected-layout .mw-mobile-sync { display:flex; align-items:center; gap:6px; color:#4cda94; font-size:12px; white-space:nowrap; font-weight:600; }
  body.protected-layout .mw-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  body.protected-layout .mw-stat { min-height:92px; gap:12px; padding:13px; }
  body.protected-layout .mw-stat-icon { width:32px!important; height:32px!important; background:transparent; }
  body.protected-layout .mw-stat-info>span { font-size:11px; }.mw-stat-info strong { font-size:clamp(15px,4vw,21px)!important; line-height:1.18; }
  body.protected-layout .mw-desktop-label { display:none; }
  body.protected-layout .mw-dashboard-flow { display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:'execution' 'positions' 'risk' 'recent'; gap:12px; }
  body.protected-layout .mw-execution-card { padding:16px 15px; }
  body.protected-layout .mw-execution-card>h2,body.protected-layout .mw-profile-link,body.protected-layout .mw-execution-specs,body.protected-layout .mw-edit-profile { display:none; }
  body.protected-layout .mw-mobile-execution-state { display:flex; align-items:center; gap:12px; margin-bottom:13px; }
  body.protected-layout .mw-execution-symbol { display:grid; place-items:center; border-radius:50%; background:#36d989; width:37px; height:37px; color:#052315; flex:none; }
  body.protected-layout .mw-mobile-execution-state strong { font-size:15px; }
  body.protected-layout .mw-mobile-execution-state p { font-size:11px; line-height:1.4; color:#acb9cb; }
  body.protected-layout .mw-execution-actions { display:grid; grid-template-columns:1fr auto; gap:9px; align-items:center; }
  body.protected-layout .mw-execution-actions>.button,body.protected-layout .mw-execution-actions>.mw-locked-state { grid-column:1/-1; }
  body.protected-layout .mw-execution-actions .mw-mobile-stop { grid-column:1/-1; display:block; }
  body.protected-layout .mw-mobile-stop>.button { width:auto; min-height:39px; padding:0 14px; display:inline-flex; background:transparent; color:#ff7788; border:1px solid #c04a62; }
  body.protected-layout .mw-execution-actions .mw-gold-button { min-height:42px; }
  body.protected-layout .mw-positions-panel { padding:13px 13px 5px; }
  body.protected-layout .mw-positions-heading { border:0; margin:0 0 7px; padding:0; }
  body.protected-layout .mw-positions-heading h2 { font-size:22px; }
  body.protected-layout .mw-mobile-position-tools { display:flex; align-items:center; gap:11px; }
  body.protected-layout .mw-mobile-position-tools button { border:0; background:transparent; color:#bbc7d6; padding:7px; min-height:35px; cursor:pointer; }
  body.protected-layout .mw-mobile-position-tools a { display:inline-flex; align-items:center; gap:3px; color:var(--brand); white-space:nowrap; font-size:12px; }
  body.protected-layout .mw-position-tools { display:none; }
  body.protected-layout .mw-position-tools.mw-search-open { display:flex; position:absolute; top:48px; right:0; left:0; z-index:4; border:1px solid #31404c; padding:9px; background:#15212c; border-radius:8px; }
  body.protected-layout .mw-positions-heading { position:relative; }
  body.protected-layout .mw-search-open .mw-search-field { flex:1; }.mw-search-open input { width:100%!important; }.mw-search-open .mw-close-all { display:block; }
  body.protected-layout .mw-position-head { display:none; }
  body.protected-layout .mw-position-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; min-height:0; padding:14px 0 12px; border-bottom:1px solid #2b3845; }
  body.protected-layout .mw-position-row .position-symbol { grid-column:1; grid-row:1; gap:10px; }
  body.protected-layout .mw-position-row .mw-coin { width:36px; height:36px; }
  body.protected-layout .mw-position-row .position-details-button { font-size:15px; }
  body.protected-layout .mw-position-row .position-symbol small { font-size:10px; }
  body.protected-layout .mw-position-row .mw-position-side { display:none; }
  body.protected-layout .mw-position-row .mw-position-name-line { display:flex; align-items:center; gap:7px; }
  body.protected-layout .mw-position-row .mw-position-name-line .position-details-button { min-width:0; flex:0 1 auto; white-space:nowrap; }
  body.protected-layout .mw-position-row .mw-mobile-side { display:inline-flex; flex:none; }
  body.protected-layout .mw-position-row .position-cell.mw-position-pnl { display:flex; grid-column:2; grid-row:1; align-items:center; justify-self:end; }
  body.protected-layout .mw-position-row .mw-position-pnl strong { font-size:17px!important; }
  body.protected-layout .mw-position-row .position-cell.mw-position-entry,body.protected-layout .mw-position-row .position-cell.mw-position-mark,body.protected-layout .mw-position-row .position-cell.mw-position-margin,body.protected-layout .mw-position-row>.position-actions { display:none; }
  body.protected-layout .mw-position-mobile-bottom { display:flex; grid-column:1/-1; align-items:center; justify-content:space-between; margin-top:3px; padding-top:7px; border-top:1px solid #283642; color:#9da9b9; font-size:12px; }
  body.protected-layout .mw-position-mobile-bottom strong { margin-left:6px; color:#ebedf0; }
  body.protected-layout .mw-position-mobile-bottom button { background:none; border:0; color:#afbece; display:inline-flex; align-items:center; gap:7px; padding:4px 0; font-size:12px; cursor:pointer; }
  body.protected-layout .mw-risk-summary { padding:15px; }.mw-risk-summary .mw-card-heading h2 { font-size:18px!important; }
  body.protected-layout .mw-risk-items dt { font-size:12px; }.mw-risk-items dd { font-size:12px; }
  body.protected-layout .mw-activity-head,body.protected-layout .mw-activity-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  body.protected-layout .mw-activity-head>span:nth-child(2),body.protected-layout .mw-activity-row>strong { display:none; }
  body.protected-layout .mw-dashboard>.onboarding-card { margin-top:12px; }
  body.protected-layout .setup-grid.modern .risk-controls-form { grid-template-columns:1fr; }
}
@media (max-width:390px) {
  body.protected-layout .mw-dashboard { padding:16px 10px 26px; }
  body.protected-layout .mw-topbar { padding-inline:13px; }
  body.protected-layout .mw-dash-heading h1 { font-size:30px; }
  body.protected-layout .mw-stat { padding:10px; gap:7px; min-height:90px; }
  body.protected-layout .mw-stat-icon { width:26px!important; height:29px!important; }.mw-stat-icon .mw-icon { width:21px; }
  body.protected-layout .mw-stat-info>span { font-size:10px; }
  body.protected-layout .mw-stat-info strong { font-size:15px!important; }
  body.protected-layout .mw-position-row .position-details-button { font-size:14px; }
  body.protected-layout .mw-position-row .mw-position-pnl strong { font-size:15px!important; }
  body.protected-layout .mw-bottom-link { font-size:10px; }
}
@media (max-width:360px) {
  body.protected-layout .mw-dashboard { padding:13px 8px 22px; }
  body.protected-layout .mw-stat-grid { gap:6px; }
  body.protected-layout .mw-stat { padding:9px 6px; gap:5px; }
  body.protected-layout .mw-stat-icon { width:21px!important; }.mw-stat-icon .mw-icon { width:18px; }
  body.protected-layout .mw-stat-info strong { font-size:13px!important; }
  body.protected-layout .mw-connection-main strong { font-size:11px; }
  body.protected-layout .mw-mobile-sync { font-size:10px; }
  body.protected-layout .mw-positions-heading h2 { font-size:19px; }
  body.protected-layout .mw-bottom-nav { padding-left:3px; padding-right:3px; }
  body.protected-layout .mw-bottom-link { font-size:9px; }
}

@media (max-width:760px) {
  body.protected-layout .mw-connection-card:not(.success) .mw-connection-main::before { background:var(--red); }
  body.protected-layout .mw-mobile-sync:not(.live) { color:#d6ad73; }
}


/* Mobile position cards keep their full content and action handlers reachable. */
@media (max-width:760px) {
  body.protected-layout .mw-positions-panel {
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
  }
  body.protected-layout .mw-positions-heading { padding:0 2px; margin:0 0 12px; }
  body.protected-layout #position-list { display:grid; gap:10px; }
  body.protected-layout #position-list > .mw-position-row {
    padding:14px 15px 12px;
    border:1px solid #2b3845;
    border-radius:12px;
    background:linear-gradient(125deg,#14202a,#111b24);
  }
  body.protected-layout #position-list > .terminal-empty {
    border:1px solid #2b3845;
    border-radius:12px;
    background:#131e28;
    padding:20px;
  }
  body.protected-layout .mw-activity-head { display:none; }
  body.protected-layout .mw-activity-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:5px 12px;
  }
  body.protected-layout .mw-activity-row>time { grid-column:1; grid-row:1; }
  body.protected-layout .mw-activity-row>strong {
    display:block;
    grid-column:1;
    grid-row:2;
    min-width:0;
    color:#c7d0dd;
  }
  body.protected-layout .mw-activity-row>span {
    grid-column:2;
    grid-row:1 / span 2;
    justify-self:end;
  }
}

/* Fixed typography: sizes already defined by the public home-screen design system. */
body.protected-layout .mw-dash-heading h1 { font-size:clamp(32px,4vw,46px); }
body.protected-layout .dashboard-head h1 { font-size:clamp(32px,4vw,46px); }
body.protected-layout .mw-card-heading h2,
body.protected-layout .mw-execution-card h2,
body.protected-layout .mw-profile-page h2 { font-size:20px; }
body.protected-layout .mw-dash-heading p,
body.protected-layout .mw-connection-main strong,
body.protected-layout .mw-profile-menu-item { font-size:14px; }
body.protected-layout .mw-stat-info>span,
body.protected-layout .mw-position-head,
body.protected-layout .mw-position-row .position-cell strong,
body.protected-layout .mw-activity-head,
body.protected-layout .mw-activity-row,
body.protected-layout .mw-risk-note,
body.protected-layout .mw-execution-specs dt,
body.protected-layout .mw-risk-items dt { font-size:12px; }
body.protected-layout .mw-stat-info strong { font-size:20px; }
body.protected-layout .mw-header-actions .mw-stop-button,
body.protected-layout .mw-execution-actions .button { font-size:14px; }
body.protected-layout .mw-plain-action,
body.protected-layout .mw-close-all,
body.protected-layout .mw-outline-close { font-size:13px; }
body.protected-layout .mw-position-row .position-details-button { font-size:14px; }
body.protected-layout .mw-sidebar .app-nav-item,
body.protected-layout .mw-sidebar .app-support-link,
body.protected-layout .mw-sidebar .app-logout { font-size:13px; }
body.protected-layout .button.small,
body.protected-layout .admin-actions .button { font-size:13px; }
body.protected-layout .responsive-table th,
body.protected-layout .responsive-table td { font-size:var(--type-data); }
body.protected-layout .mw-admin-search { padding:0 12px 8px; }
body.protected-layout .mw-admin-search label { display:block; font-size:12px; color:var(--text-secondary); margin-bottom:5px; }
body.protected-layout .mw-admin-search input { display:block; width:100%; min-width:0; font-size:14px; padding:9px 11px; border:1px solid var(--border); border-radius:8px; background:#0a0f14; color:var(--text-primary); }
body.protected-layout .mw-admin-search input:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
body.protected-layout .mw-admin-search-count { margin:0 12px; font-size:12px; color:var(--text-muted); }
body.protected-layout .admin-user-card[hidden] { display:none!important; }
@media (min-width:901px) and (max-height:820px) {
  body.protected-layout .mw-sidebar { padding-top:16px; padding-bottom:12px; }
  body.protected-layout .mw-sidebar-logo { height:45px; margin-bottom:16px; }
  body.protected-layout .mw-sidebar .app-side-nav { gap:2px; }
  body.protected-layout .mw-sidebar .app-nav-item { min-height:40px; padding:7px 15px; }
  body.protected-layout .mw-sidebar .app-nav-group-label { padding:13px 15px 7px; margin:9px 6px 1px; }
  body.protected-layout .mw-sidebar .app-sidebar-foot { gap:4px; padding-top:8px; }
  body.protected-layout .mw-sidebar .app-support-link,
  body.protected-layout .mw-sidebar .app-logout { min-height:36px; padding:7px 16px; }
}
@media (max-width:900px) {
  body.protected-layout .mw-mobile-brand img { width:164px; max-height:42px; }
}
@media (max-width:760px) {
  body.protected-layout .mw-mobile-brand img { width:132px; max-height:36px; }
  body.protected-layout .mw-dash-heading h1 { font-size:32px; }
  body.protected-layout .mw-stat-info strong { font-size:15px; }
  body.protected-layout .mw-stat-info>span { font-size:12px; }
  body.protected-layout .mw-positions-heading h2 { font-size:20px; }
  body.protected-layout .mw-risk-summary .mw-card-heading h2 { font-size:20px; }
  body.protected-layout .mw-bottom-link { font-size:11px; }
}
@media (max-width:390px) {
  body.protected-layout .mw-bottom-link { font-size:10px; }
}
@media (max-width:360px) {
  body.protected-layout .mw-mobile-brand img { width:122px; max-height:36px; }
  body.protected-layout .mw-dash-heading h1 { font-size:29px; }
  body.protected-layout .mw-stat-info strong { font-size:13px; }
  body.protected-layout .mw-stat-info>span { font-size:11px; }
  body.protected-layout .mw-connection-main strong { font-size:12px; }
  body.protected-layout .mw-bottom-link { font-size:10px; }
}

/* Neutral pre-snapshot presentation. No account default values are shown. */
body.protected-layout .mw-account-gate { display:grid; place-items:center; min-height:280px; padding:24px; }
body.protected-layout .mw-account-gate-panel { max-width:420px; text-align:center; }
body.protected-layout .mw-account-gate-panel h1 { margin:12px 0 8px; font-size:22px; }
body.protected-layout .mw-account-gate-panel p { color:#9ba9bb; margin:0 0 18px; line-height:1.5; }
body.protected-layout .mw-account-spinner { display:inline-block; width:30px; height:30px; border:3px solid #384653; border-top-color:var(--brand,#f0b90b); border-radius:50%; animation:mw-account-spin 1s linear infinite; }
@keyframes mw-account-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { body.protected-layout .mw-account-spinner { animation:none; border-top-color:#f0b90b; } }
body.protected-layout .mw-shell-nav-pending { display:block; height:260px; }
body.protected-layout .mw-shell-status-pending { display:block; width:32px; height:32px; }

/* Not-connected Binance guidance remains readable at all viewport widths. */
body.protected-layout .mw-connection-card:not(.success) .mw-connection-main { flex:1 1 auto; min-width:0; }
body.protected-layout .mw-connection-card:not(.success) .mw-connection-main > div { min-width:0; overflow-wrap:anywhere; }
body.protected-layout .mw-connection-card:not(.success) .mw-connection-main small { white-space:normal; overflow-wrap:anywhere; }
@media (max-width:760px) {
  body.protected-layout .mw-connection-card:not(.success) { display:flex; flex-direction:column; align-items:stretch; gap:10px; }
  body.protected-layout .mw-connection-card:not(.success) .mw-connection-main { display:flex; flex:0 1 auto; width:100%; align-items:flex-start; }
  body.protected-layout .mw-connection-card:not(.success) .mw-connection-main::before { margin-top:5px; }
  body.protected-layout .mw-connection-card:not(.success) .mw-connection-main > div { flex:1 1 auto; }
  body.protected-layout .mw-connection-card:not(.success) .mw-connection-main small { display:block; margin-top:5px; line-height:1.5; }
  body.protected-layout .mw-connection-card:not(.success) .mw-connection-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:8px; flex:none; width:100%; border-left:0; border-top:1px solid #2d3a46; padding:8px 0 0; }
  body.protected-layout .mw-connection-card:not(.success) .mw-mobile-sync { grid-column:1 / -1; grid-row:1; justify-self:end; }
  body.protected-layout .mw-connection-card:not(.success) .mw-connection-tools .mw-plain-action { display:inline-flex; width:100%; min-width:0; min-height:44px; box-sizing:border-box; padding:8px 6px; white-space:normal; text-align:center; border:1px solid #304151; border-radius:8px; }
}

/* MW Trader Admin Panel only. Uses the existing --brand (#f0b90b). */
body.protected-layout .admin-dashboard { --admin-surface:#121d27; --admin-raised:#17232e; --admin-border:#30404f; --admin-muted:#a4b3c4; max-width:1460px!important; padding:24px 28px 105px; }
body.protected-layout .admin-dashboard .dashboard-head { align-items:center; flex-wrap:wrap; margin-bottom:16px; gap:12px; }
body.protected-layout .admin-dashboard .dashboard-head h1 { color:#f4f6f9; font-size:clamp(23px,2.3vw,29px); font-weight:750; letter-spacing:-.025em; line-height:1.2; }
body.protected-layout .admin-dashboard .dashboard-head p:not(.eyebrow) { color:var(--admin-muted); font-size:13px; line-height:1.5; }
body.protected-layout .admin-dashboard .dashboard-head .eyebrow { color:var(--brand); font-size:10px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:5px; }
body.protected-layout .admin-dashboard #global-pause { min-height:43px; border:1px solid var(--brand); border-radius:7px; padding:9px 16px; background:rgba(240,185,11,.055); color:var(--brand); font-size:12px; font-weight:650; max-width:100%; white-space:normal; }
body.protected-layout .admin-dashboard #global-pause.success { color:#4fe0a0; border-color:#40b885; background:rgba(14,203,129,.07); }
body.protected-layout .admin-dashboard #global-pause:hover { background:rgba(240,185,11,.13); }
body.protected-layout .admin-dashboard .admin-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:17px; }
body.protected-layout .admin-dashboard .admin-summary article,
body.protected-layout .admin-dashboard .admin-summary article:nth-child(4) { display:flex; align-items:center; gap:15px; min-height:88px; padding:15px 17px; background:linear-gradient(135deg,#15222c,#121b25); color:#f3f7fb; border:1px solid var(--admin-border); border-radius:9px; box-shadow:none; }
body.protected-layout .admin-dashboard .admin-summary article::after { display:none; }
body.protected-layout .admin-dashboard .admin-summary article>div { min-width:0; }
body.protected-layout .admin-dashboard .admin-summary .admin-summary-symbol { display:grid; place-items:center; flex:none; font:600 23px/1 sans-serif; width:36px; height:36px; color:#b9c7d8; letter-spacing:0; }
body.protected-layout .admin-dashboard .admin-summary article span:not(.admin-summary-symbol),
body.protected-layout .admin-dashboard .admin-summary article:nth-child(4) span:not(.admin-summary-symbol) { display:block; color:var(--admin-muted); text-transform:none; font-size:12px; letter-spacing:0; font-weight:500; }
body.protected-layout .admin-dashboard .admin-summary article strong,
body.protected-layout .admin-dashboard .admin-summary article:nth-child(4) strong { display:block; margin:5px 0 0; color:#f4f6fb; font-family:inherit; font-size:23px; font-weight:750; line-height:1.12; overflow-wrap:anywhere; }
body.protected-layout .admin-dashboard .admin-summary .admin-global-active { color:#54dd95!important; font-size:16px!important; }
body.protected-layout .admin-dashboard .admin-summary .admin-global-paused { color:#ff858f!important; font-size:16px!important; }
body.protected-layout .admin-dashboard .admin-section-nav { display:flex; align-items:center; gap:0; width:100%; margin-bottom:17px; border-bottom:1px solid #31404d; overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:#34495a transparent; }
body.protected-layout .admin-dashboard .mw-admin-tab { appearance:none; position:relative; flex:1 0 auto; min-height:45px; padding:11px 16px 13px; cursor:pointer; text-align:center; color:#abb7c8; background:transparent; border:0; border-radius:0; font-size:13px; font-weight:600; line-height:1.3; font-family:inherit; white-space:nowrap; }
body.protected-layout .admin-dashboard .mw-admin-tab[aria-selected="true"] { color:var(--brand); }
body.protected-layout .admin-dashboard .mw-admin-tab[aria-selected="true"]::after { content:""; position:absolute; bottom:0; left:13px; right:13px; height:3px; border-radius:3px 3px 0 0; background:var(--brand); }
body.protected-layout .admin-dashboard .mw-admin-tab:not([aria-selected="true"]):hover { color:#f2f4f7; background:rgba(255,255,255,.035); }
body.protected-layout .admin-dashboard .mw-admin-tab:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
body.protected-layout .admin-dashboard .admin-workspace { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; align-items:start; }
body.protected-layout .admin-dashboard .admin-view { display:none; min-width:0; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="members"] [data-admin-section="members"],
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] [data-admin-section="strategy"],
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] [data-admin-section="payments"],
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] [data-admin-section="payments"],
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] [data-admin-section="claims"],
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] [data-admin-section="audit"],
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="claims"] [data-admin-section="claims"],
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="audit"] [data-admin-section="audit"] { display:block; }
@media (min-width:1160px) {
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] { grid-template-columns:minmax(0,1.32fr) minmax(350px,.88fr); }
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] [data-admin-section="strategy"] { grid-column:1; }
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] [data-admin-section="payments"] { grid-column:2; }
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] [data-admin-section="payments"] { grid-column:1 / -1; }
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] [data-admin-section="claims"] { grid-column:1; }
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] [data-admin-section="audit"] { grid-column:2; }
}
body.protected-layout .admin-dashboard .admin-panel { background:linear-gradient(150deg,#14212b,#101a23); border:1px solid #2e3d4b; border-radius:10px; box-shadow:none; min-width:0; overflow:hidden; }
body.protected-layout .admin-dashboard .admin-panel .ticker-head { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:18px 19px 12px; border-bottom:0; background:transparent; }
body.protected-layout .admin-dashboard .admin-panel .ticker-head h2 { font-size:17px; color:#f3f5f8; font-weight:700; }
body.protected-layout .admin-dashboard .admin-panel-subtitle { color:var(--admin-muted); font-size:11px; }
body.protected-layout .admin-dashboard .mw-admin-search { padding:0 19px; position:relative; }
body.protected-layout .admin-dashboard .mw-admin-search .admin-search-mark { position:absolute; left:30px; top:7px; font-size:23px; line-height:1; color:#a4b5c9; pointer-events:none; }
body.protected-layout .admin-dashboard .mw-admin-search input { width:100%; height:41px; min-height:41px; padding:8px 13px 8px 38px; font-size:13px; border:1px solid #344555; background:#192835; border-radius:8px; color:#edf2f8; }
body.protected-layout .admin-dashboard .mw-admin-search input::-webkit-search-cancel-button { cursor:pointer; }
body.protected-layout .admin-dashboard .mw-admin-search-count { display:block; margin:11px 19px 0; color:#aab5c7; font-size:12px; }
body.protected-layout .admin-dashboard .admin-list { padding:14px 19px 20px; max-height:none; overflow:visible; display:grid; gap:12px; }
body.protected-layout .admin-dashboard .admin-user-card { padding:20px; min-width:0; background:linear-gradient(140deg,#14232d,#111b24); border:1px solid #31414e; border-radius:10px; }
body.protected-layout .admin-dashboard .admin-user-card:hover { background:linear-gradient(140deg,#172733,#14202a); border-color:#465c6d; }
body.protected-layout .admin-dashboard .admin-user-main { display:grid; grid-template-columns:minmax(165px,1.05fr) minmax(0,3.3fr); gap:18px; align-items:start; min-width:0; }
body.protected-layout .admin-dashboard .admin-member-identity { display:grid; align-content:start; gap:5px; min-width:0; padding:5px 0 0 55px; position:relative; overflow-wrap:anywhere; }
body.protected-layout .admin-dashboard .admin-member-identity::before { content:""; position:absolute; left:0; top:0; width:42px; height:42px; border:1px solid #4a5c6c; border-radius:50%; background:radial-gradient(circle at 50% 34%,#c2ccd7 0 6px,transparent 7px),radial-gradient(ellipse at 50% 93%,#afbbc9 0 13px,transparent 14px),#243543; }
body.protected-layout .admin-dashboard .admin-member-identity strong { font-size:15px; color:#f5f7fb; line-height:1.3; }
body.protected-layout .admin-dashboard .admin-member-identity span { color:#9db0c4; font-size:12px; overflow-wrap:anywhere; line-height:1.4; }
body.protected-layout .admin-dashboard .admin-badges { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; min-width:0; justify-content:stretch; }
body.protected-layout .admin-dashboard .admin-metric { min-width:0; }
body.protected-layout .admin-dashboard .admin-metric small { display:block; color:#a7b5c4; font-size:11px; line-height:1.35; margin:0 0 7px; }
body.protected-layout .admin-dashboard .admin-badges .admin-metric-value { display:flex; align-items:flex-start; gap:6px; overflow-wrap:anywhere; word-break:normal; padding:0; border:0; background:none; font-size:11px; font-weight:650; text-transform:none; line-height:1.4; }
body.protected-layout .admin-dashboard .admin-metric-value i { display:block; flex:none; width:9px; height:9px; margin-top:3px; border-radius:50%; background:currentColor; }
body.protected-layout .admin-dashboard .admin-metric-value.is-positive { color:#4edb95; }
body.protected-layout .admin-dashboard .admin-metric-value.is-negative { color:#fb7687; }
body.protected-layout .admin-dashboard .admin-metric-value.is-neutral { color:#edf1f6; font-size:13px; }
body.protected-layout .admin-dashboard .admin-user-trades { margin:15px 0 10px; padding:12px 0 0; border-top:1px solid #2d3b48; }
body.protected-layout .admin-dashboard .admin-user-trades span { background:#182733; color:#aab8c9; padding:4px 9px; border-radius:5px; font-size:11px; }
body.protected-layout .admin-dashboard .admin-quick-label { margin:13px 0 8px; font-size:12px; font-weight:700; color:#e9eef5; }
body.protected-layout .admin-dashboard .admin-primary-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; width:100%; margin:0; padding:0; border:0; }
body.protected-layout .admin-dashboard .admin-primary-actions .button { display:flex; justify-content:center; align-items:center; min-width:0; min-height:44px; padding:9px 10px; white-space:normal; text-align:center; font-size:11px; font-weight:650; line-height:1.35; border:1px solid #3a4d5f; background:#1c2b37; border-radius:7px; color:#e4ebf4; }
body.protected-layout .admin-dashboard .admin-primary-actions [data-admin-pause] { border-color:var(--brand); background:rgba(240,185,11,.05); color:var(--brand); }
body.protected-layout .admin-dashboard .admin-primary-actions [data-admin-pause].success { color:#53dc95; border-color:#44ad80; }
body.protected-layout .admin-dashboard .admin-primary-actions .button:hover { background:#263847; }
body.protected-layout .admin-dashboard .admin-more-actions { margin:16px 0 0; border-top:1px solid #31414e; padding:5px 0 0; }
body.protected-layout .admin-dashboard .admin-more-actions summary { min-height:42px; width:100%; font-size:12px; color:#e6ecf3; padding:7px 1px; }
body.protected-layout .admin-dashboard .admin-more-actions summary::before { content:"⌄"; color:var(--brand); font-size:18px; }
body.protected-layout .admin-dashboard .admin-more-actions[open] summary::before { content:"⌃"; }
body.protected-layout .admin-dashboard .admin-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:8px; padding:14px 15px; background:#192834; border:1px solid #324454; border-radius:8px; }
body.protected-layout .admin-dashboard .admin-detail-group { min-width:0; }
body.protected-layout .admin-dashboard .admin-detail-group + .admin-detail-group { border-left:1px solid #344656; padding-left:16px; }
body.protected-layout .admin-dashboard .admin-detail-group>strong { display:block; font-size:12px; color:#ecf1f7; margin-bottom:10px; }
body.protected-layout .admin-dashboard .admin-account-meta { grid-template-columns:1fr; gap:7px; margin:0; }
body.protected-layout .admin-dashboard .admin-account-meta span { color:#adbdcd; font-size:11px; overflow-wrap:anywhere; }
body.protected-layout .admin-dashboard .admin-more-actions .admin-actions { display:grid; grid-template-columns:1fr; gap:8px; width:100%; }
body.protected-layout .admin-dashboard .admin-more-actions .admin-actions .button { min-height:40px; white-space:normal; margin:0; font-size:11px; }
body.protected-layout .admin-dashboard .admin-more-actions .admin-delete-action { background:transparent; border:1px solid #e75a6b; color:#ff8994; }
body.protected-layout .admin-dashboard .admin-panel .admin-config { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:12px 17px 20px; }
body.protected-layout .admin-dashboard .admin-config-block { display:grid; align-content:start; gap:9px; background:#192834; border:1px solid #314354; border-radius:9px; padding:17px; min-width:0; }
body.protected-layout .admin-dashboard .admin-config-block >strong { font-size:14px; color:#f0f3f7; }
body.protected-layout .admin-dashboard .admin-config-block small { color:#a6b8ca; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
body.protected-layout .admin-dashboard .admin-config-block .payment-address-code { display:block; width:100%; min-width:0; color:#d7e1ed; background:#12202a; border:1px solid #354859; border-radius:6px; padding:10px; font-size:11px; white-space:normal; overflow-wrap:anywhere; }
body.protected-layout .admin-dashboard .admin-config-block form { min-width:0; }
body.protected-layout .admin-dashboard .admin-config-block .field { margin:5px 0 11px; min-width:0; }
body.protected-layout .admin-dashboard .admin-config-block label,body.protected-layout .admin-dashboard .admin-config-block legend { font-size:11px; color:#d3dce6; }
body.protected-layout .admin-dashboard .admin-config-block input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),body.protected-layout .admin-dashboard .admin-config-block select { width:100%; max-width:100%; min-width:0; min-height:40px; background:#14232e; border:1px solid #425465; border-radius:6px; color:#e5eef8; padding:8px 10px; font-size:12px; }
body.protected-layout .admin-dashboard .admin-config-block input[type="file"] { width:100%; max-width:100%; color:#d3deeb; font-size:11px; }
body.protected-layout .admin-dashboard .admin-config-block .admin-actions { width:100%; justify-content:stretch; }
body.protected-layout .admin-dashboard .admin-section-save { flex:1 1 auto; min-height:42px; border:1px solid var(--brand)!important; color:#171a1e!important; background:var(--brand)!important; border-radius:6px; font-size:12px!important; font-weight:750; }
body.protected-layout .admin-dashboard .admin-section-save:hover { filter:brightness(1.08); }
body.protected-layout .admin-dashboard #admin-strategy-form > .admin-config { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.protected-layout .admin-dashboard #admin-strategy-form > .admin-config > .admin-config-block:last-child { grid-column:1 / -1; background:transparent; padding:0; border:0; }
body.protected-layout .admin-dashboard #admin-strategy-form .control-group { margin-bottom:8px; }
body.protected-layout .admin-dashboard #admin-strategy-form .segmented { width:100%; }
body.protected-layout .admin-dashboard #admin-strategy-form .segmented label { min-width:0; }
body.protected-layout .admin-dashboard .admin-settings-disclosure { margin:0 17px 12px; border:1px solid #314253; border-radius:8px; background:#14232d; overflow:hidden; }
body.protected-layout .admin-dashboard .admin-settings-disclosure summary { padding:15px 17px; color:#e7edf5; font-size:13px; font-weight:650; cursor:pointer; min-height:49px; }
body.protected-layout .admin-dashboard .admin-settings-disclosure summary::marker { color:var(--brand); }
body.protected-layout .admin-dashboard .admin-settings-disclosure[open] summary { border-bottom:1px solid #344656; }
body.protected-layout .admin-dashboard .admin-settings-disclosure .admin-config { display:block; }
body.protected-layout .admin-dashboard #admin-payments .admin-config { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.protected-layout .admin-dashboard .claim-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:0; padding:16px 19px; border-top:1px solid #2d3d4a; background:transparent; }
body.protected-layout .admin-dashboard .claim-row > div:first-child { min-width:0; display:grid; gap:5px; overflow-wrap:anywhere; }
body.protected-layout .admin-dashboard .claim-row strong { color:#eef1f7; font-size:13px; }
body.protected-layout .admin-dashboard .claim-row span,body.protected-layout .admin-dashboard .claim-row small { color:#aab8c9; font-size:11px; }
body.protected-layout .admin-dashboard .claim-row .admin-actions { width:auto; justify-content:flex-start; }
body.protected-layout .admin-dashboard .claim-row .admin-actions .button { min-height:39px; font-size:12px; }
body.protected-layout .admin-dashboard .admin-audit-list > div { padding:14px 18px; gap:12px; border-bottom:1px solid #2e4050; }
body.protected-layout .admin-dashboard .admin-audit-list strong { color:#edf2f8; font-size:12px; font-weight:650; }
body.protected-layout .admin-dashboard .admin-audit-list span,body.protected-layout .admin-dashboard .admin-audit-list small { color:#a8b7c7; font-size:11px; }
body.protected-layout .admin-dashboard .empty-admin { padding:17px 20px; color:#afbccc; }
@media (min-width:1160px) {
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] #admin-payments .admin-config { grid-template-columns:1fr; }
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] #admin-strategy-form>.admin-config { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:1250px) {
 body.protected-layout .admin-dashboard .admin-user-main { grid-template-columns:1fr; }
 body.protected-layout .admin-dashboard .admin-badges { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@media (max-width:900px) {
 body.protected-layout .admin-dashboard { padding:20px 17px 100px; }
 body.protected-layout .admin-dashboard .admin-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.protected-layout .admin-dashboard .admin-badges { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:760px) {
 body.protected-layout .admin-dashboard { padding:16px 13px 110px; }
 body.protected-layout .admin-dashboard .dashboard-head { display:grid; grid-template-columns:1fr; align-items:stretch; gap:12px; }
 body.protected-layout .admin-dashboard .dashboard-head h1 { font-size:24px; }
 body.protected-layout .admin-dashboard #global-pause { width:100%; min-height:44px; }
 body.protected-layout .admin-dashboard .admin-summary { gap:8px; margin-bottom:12px; }
 body.protected-layout .admin-dashboard .admin-summary article,body.protected-layout .admin-dashboard .admin-summary article:nth-child(4) { padding:11px; gap:9px; min-height:78px; }
 body.protected-layout .admin-dashboard .admin-summary .admin-summary-symbol { width:28px; font-size:19px; }
 body.protected-layout .admin-dashboard .admin-summary article strong { font-size:19px; }
 body.protected-layout .admin-dashboard .admin-summary article span:not(.admin-summary-symbol) { font-size:10px; }
 body.protected-layout .admin-dashboard .mw-admin-tab { padding:11px 13px; min-height:44px; font-size:12px; }
 body.protected-layout .admin-dashboard .admin-panel .ticker-head { padding:15px 13px 11px; }
 body.protected-layout .admin-dashboard .admin-panel .ticker-head h2 { font-size:15px; }
 body.protected-layout .admin-dashboard .mw-admin-search { padding:0 12px; }
 body.protected-layout .admin-dashboard .mw-admin-search .admin-search-mark { left:23px; }
 body.protected-layout .admin-dashboard .mw-admin-search-count { margin:9px 12px 0; }
 body.protected-layout .admin-dashboard .admin-list { padding:11px; }
 body.protected-layout .admin-dashboard .admin-user-card { padding:13px; }
 body.protected-layout .admin-dashboard .admin-user-main { grid-template-columns:1fr; gap:13px; }
 body.protected-layout .admin-dashboard .admin-badges { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
 body.protected-layout .admin-dashboard .admin-metric:last-child { grid-column:1 / -1; }
 body.protected-layout .admin-dashboard .admin-primary-actions { grid-template-columns:1fr; gap:7px; }
 body.protected-layout .admin-dashboard .admin-primary-actions .button { min-height:44px; width:100%; }
 body.protected-layout .admin-dashboard .admin-detail-grid { grid-template-columns:1fr; gap:13px; padding:13px; }
 body.protected-layout .admin-dashboard .admin-detail-group+.admin-detail-group { border:0; border-top:1px solid #344656; padding:13px 0 0; }
 body.protected-layout .admin-dashboard .admin-config-block { padding:13px; }
 body.protected-layout .admin-dashboard .admin-panel .admin-config,body.protected-layout .admin-dashboard #admin-strategy-form>.admin-config,body.protected-layout .admin-dashboard #admin-payments .admin-config { grid-template-columns:1fr; padding:10px; }
 body.protected-layout .admin-dashboard #admin-strategy-form>.admin-config>.admin-config-block:last-child { grid-column:1; }
 body.protected-layout .admin-dashboard .admin-settings-disclosure { margin:0 10px 10px; }
 body.protected-layout .admin-dashboard .claim-row .admin-actions { width:100%; }
 body.protected-layout .admin-dashboard .claim-row .admin-actions .button { flex:1 1 auto; }
}
@media (max-width:360px) {
 body.protected-layout .admin-dashboard { padding-inline:10px; }
 body.protected-layout .admin-dashboard .admin-summary article,body.protected-layout .admin-dashboard .admin-summary article:nth-child(4) { gap:7px; padding:9px; }
 body.protected-layout .admin-dashboard .admin-summary .admin-summary-symbol { width:21px; font-size:16px; }
 body.protected-layout .admin-dashboard .admin-member-identity { padding-left:49px; }
 body.protected-layout .admin-dashboard .admin-badges { gap:9px; }
}

/* Admin Panel reference alignment: Strategy and Payments. No public page styles. */
body.protected-layout .admin-dashboard[data-active-tab]:not([data-active-tab="members"]) .admin-summary,
body.protected-layout .admin-dashboard[data-active-tab]:not([data-active-tab="members"]) #global-pause { display:none; }
body.protected-layout .admin-dashboard[data-active-tab]:not([data-active-tab="members"]) .dashboard-head { padding:4px 0 8px; margin-bottom:17px; }
body.protected-layout .admin-dashboard[data-active-tab]:not([data-active-tab="members"]) .dashboard-head h1 { font-size:clamp(25px,2.45vw,31px); }
body.protected-layout .admin-dashboard[data-active-tab]:not([data-active-tab="members"]) .admin-section-nav { width:100%; max-width:720px; gap:4px; border:1px solid #283c4b; background:#16242e; border-radius:9px; padding:4px; }
body.protected-layout .admin-dashboard[data-active-tab]:not([data-active-tab="members"]) .mw-admin-tab { flex:1 1 auto; border-radius:6px; }
body.protected-layout .admin-dashboard[data-active-tab]:not([data-active-tab="members"]) .mw-admin-tab[aria-selected="true"] { color:var(--brand); background:#111d26; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] { align-items:start; }
body.protected-layout .admin-dashboard #admin-strategy { padding-bottom:10px; }
body.protected-layout .admin-dashboard #admin-strategy .ticker-head,
body.protected-layout .admin-dashboard #admin-payments .ticker-head { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:18px 19px 15px; }
body.protected-layout .admin-dashboard #admin-strategy .ticker-head h2,
body.protected-layout .admin-dashboard #admin-payments .ticker-head h2 { text-transform:none; font-size:18px; font-weight:750; }
body.protected-layout .admin-dashboard .admin-strategy-main { padding:0 18px 12px; }
body.protected-layout .admin-dashboard .admin-strategy-section { padding:13px 0 19px; border-top:1px solid #2d3e4b; }
body.protected-layout .admin-dashboard .admin-strategy-section h3 { margin:0 0 12px; color:#f1f4f7; font-size:14px; line-height:1.4; font-weight:750; }
body.protected-layout .admin-dashboard .admin-direction-grid,
body.protected-layout .admin-dashboard .admin-timing-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
body.protected-layout .admin-dashboard .admin-strategy-control { min-width:0; display:grid; gap:7px; }
body.protected-layout .admin-dashboard .admin-strategy-control label { color:#c6d3e0; font-size:11px; line-height:1.35; min-height:27px; display:flex; align-items:end; }
body.protected-layout .admin-dashboard .admin-strategy-control select { appearance:auto; width:100%; min-width:0; min-height:38px; border:1px solid #455969; border-radius:6px; background:#1b2b37; padding:7px 8px; color:#ecf1f7; font-size:12px; font-weight:650; }
body.protected-layout .admin-dashboard .admin-strategy-control select.admin-choice-on { border-color:#3e775a; background:#173127; color:#67dd91; }
body.protected-layout .admin-dashboard .admin-strategy-control select.admin-choice-off { color:#c7d0dc; }
body.protected-layout .admin-dashboard .admin-strategy-control select:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
body.protected-layout .admin-dashboard .admin-strategy-save { padding:3px 0 0; }
body.protected-layout .admin-dashboard .admin-strategy-save .admin-actions { display:flex; width:100%; }
body.protected-layout .admin-dashboard .admin-strategy-save .admin-section-save { flex:1 1 100%; min-height:43px; }
body.protected-layout .admin-dashboard .admin-inline-notes { color:#9cadbf; min-width:0; margin-top:9px; font-size:11px; line-height:1.5; }
body.protected-layout .admin-dashboard .admin-inline-notes summary { cursor:pointer; color:#9fb0bf; width:fit-content; font-size:11px; font-weight:550; line-height:1.4; }
body.protected-layout .admin-dashboard .admin-inline-notes p { margin:7px 0; color:#a7b8c6; overflow-wrap:anywhere; }
body.protected-layout .admin-dashboard .admin-inline-notes .payment-address-code { display:block; white-space:normal; overflow-wrap:anywhere; margin:7px 0; font-size:10px; }
body.protected-layout .admin-dashboard .admin-settings-disclosure { margin:0 18px 10px; border-color:#293d4a; border-radius:8px; }
body.protected-layout .admin-dashboard .admin-settings-disclosure summary { font-size:13px; min-height:56px; padding:17px; }
body.protected-layout .admin-dashboard .admin-settings-disclosure > summary::marker { color:#a4b7c9; }
body.protected-layout .admin-dashboard .admin-settings-disclosure > summary::after { content:"Additional settings"; display:block; margin:3px 0 0; color:#94a8ba; font-weight:450; font-size:10px; }
body.protected-layout .admin-dashboard #admin-strategy .admin-settings-disclosure .admin-config-block { background:#192834; }
/* The same exact payment forms render in compact right column on Strategy, and as separate setting cards on Payments. */
body.protected-layout .admin-dashboard #admin-payments .admin-payment-grid { padding:0 15px 16px; gap:12px; }
body.protected-layout .admin-dashboard #admin-payments .admin-config-block { background:#162630; border-color:#304252; padding:16px; gap:7px; }
body.protected-layout .admin-dashboard #admin-payments .admin-config-block > strong { display:flex; align-items:center; gap:10px; color:#f1f5f8; font-size:14px; font-weight:700; }
body.protected-layout .admin-dashboard #admin-payments .admin-card-symbol { flex:none; color:var(--brand); font-size:17px; line-height:1; }
body.protected-layout .admin-dashboard #admin-payments .admin-form-heading { display:block; color:#c1cfda; margin-top:8px; font-size:11px; font-weight:650; }
body.protected-layout .admin-dashboard #admin-payments .payment-address-code { padding:10px 12px; font-size:12px; background:#162531; }
body.protected-layout .admin-dashboard #admin-payments .admin-config-block .field { margin:4px 0 9px; }
body.protected-layout .admin-dashboard #admin-payments .admin-config-block form .field label { display:block; margin:0 0 6px; }
body.protected-layout .admin-dashboard #admin-payments .admin-section-save { min-height:39px; }
body.protected-layout .admin-dashboard #admin-payments .admin-config-block > small { color:#8298aa; font-size:10px; }
body.protected-layout .admin-dashboard #admin-payments .admin-payment-notes { margin-top:3px; }
body.protected-layout .admin-dashboard #admin-payments .admin-actions { gap:8px; flex-wrap:wrap; }
body.protected-layout .admin-dashboard #admin-payments .admin-actions .button:not(.admin-section-save) { min-height:39px; flex:1 1 auto; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] #admin-payments .admin-payment-grid { grid-template-columns:1fr; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] #admin-payments .admin-config-block { padding:12px 14px; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] #admin-payments .admin-config-block > strong { font-size:13px; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] #admin-payments .admin-config-block > small { font-size:10px; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] { grid-template-columns:1fr; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-payments,
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-claims,
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-audit { grid-column:1; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-payments .admin-payment-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:"address threshold" "qr personal"; align-items:start; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-payments .admin-payment-address-block { grid-area:address; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-payments .admin-payment-threshold-block { grid-area:threshold; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-payments .admin-payment-personal-block { grid-area:personal; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-payments .admin-payment-qr-block { grid-area:qr; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-payments .ticker-head { padding-bottom:10px; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-claims .admin-list,
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-audit .admin-audit-list { padding:0 15px 13px; }
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-claims .claim-row,
body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-audit .admin-audit-list>div { border:1px solid #344353; border-radius:6px; margin:5px 0; }
@media(max-width:1159px) {
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="strategy"] [data-admin-section="payments"] { display:none; }
}
@media(max-width:900px) {
 body.protected-layout .admin-dashboard .admin-direction-grid,
 body.protected-layout .admin-dashboard .admin-timing-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] #admin-payments .admin-payment-grid { grid-template-columns:1fr; grid-template-areas:"address" "threshold" "personal" "qr"; }
}
@media(max-width:760px) {
 body.protected-layout .admin-dashboard[data-active-tab]:not([data-active-tab="members"]) .dashboard-head { padding:0; margin-bottom:10px; }
 body.protected-layout .admin-dashboard[data-active-tab]:not([data-active-tab="members"]) .dashboard-head h1 { font-size:25px; }
 body.protected-layout .admin-dashboard[data-active-tab]:not([data-active-tab="members"]) .admin-section-nav { max-width:none; padding:2px; gap:0; margin-bottom:12px; }
 body.protected-layout .admin-dashboard[data-active-tab]:not([data-active-tab="members"]) .mw-admin-tab { padding:8px 3px; min-height:42px; font-size:11px; }
 body.protected-layout .admin-dashboard #admin-strategy .ticker-head,
 body.protected-layout .admin-dashboard #admin-payments .ticker-head { padding:15px 13px 12px; }
 body.protected-layout .admin-dashboard .admin-strategy-main { padding:0 12px 9px; }
 body.protected-layout .admin-dashboard .admin-strategy-section { padding:13px 0 18px; }
 body.protected-layout .admin-dashboard .admin-strategy-control label { min-height:unset; font-size:11px; }
 body.protected-layout .admin-dashboard .admin-strategy-control select { min-height:40px; }
 body.protected-layout .admin-dashboard .admin-settings-disclosure { margin:0 12px 9px; }
 body.protected-layout .admin-dashboard #admin-payments .admin-payment-grid { padding:0 10px 12px; }
 body.protected-layout .admin-dashboard #admin-payments .admin-config-block { padding:13px; }
}
@media(max-width:360px) {
 body.protected-layout .admin-dashboard .admin-direction-grid,
 body.protected-layout .admin-dashboard .admin-timing-grid { gap:7px; }
 body.protected-layout .admin-dashboard .admin-strategy-control label { font-size:10px; }
 body.protected-layout .admin-dashboard #admin-payments .admin-actions .button { font-size:11px; }
}
/* The Payments view must occupy the full content track, not the earlier two-column subsection grid. */
@media(min-width:1160px) {
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] { grid-template-columns:minmax(0,1fr)!important; }
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] > .admin-view[data-admin-section="payments"],
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] > .admin-view[data-admin-section="claims"],
 body.protected-layout .admin-dashboard .admin-workspace[data-admin-active="payments"] > .admin-view[data-admin-section="audit"] { grid-column:1 / -1!important; }
}

/* MW Trader Referral page only. Uses the existing --brand (#f0b90b) and the same
   surface family as the Admin Panel block above. Content only: the app shell,
   sidebar, topbar and bottom navigation are not touched here. */
body.protected-layout .mw-referral { --ref-surface:#121d27; --ref-raised:#0d141d; --ref-border:#2c3a48; --ref-muted:#93a3b5; --ref-text:#eef2f7; max-width:1460px!important; padding:24px 28px 48px; }
body.protected-layout .mw-ref-head { margin-bottom:18px; }
body.protected-layout .mw-ref-kicker { margin:0 0 6px; color:var(--ref-muted); font-size:13px; font-weight:600; }
body.protected-layout .mw-ref-head h1 { margin:0; color:var(--ref-text); font-size:clamp(25px,2.6vw,33px); font-weight:750; letter-spacing:-.02em; line-height:1.2; }
body.protected-layout .mw-ref-stats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
body.protected-layout .mw-ref-stat { background:linear-gradient(150deg,#14212c,var(--ref-surface)); border:1px solid var(--ref-border); border-radius:10px; padding:15px 16px 16px; min-width:0; }
body.protected-layout .mw-ref-stat-label { display:block; color:var(--ref-muted); font-size:12.5px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.protected-layout .mw-ref-stat-value { display:flex; align-items:center; gap:9px; margin-top:15px; color:var(--brand); }
body.protected-layout .mw-ref-stat-value strong { color:var(--ref-text); font-size:23px; font-weight:750; line-height:1.1; overflow-wrap:anywhere; }
body.protected-layout .mw-ref-stat-value .mw-icon { flex:none; }
body.protected-layout .mw-ref-dot { flex:none; width:11px; height:11px; margin:0 5px; border-radius:50%; background:#3fe397; }
body.protected-layout .mw-ref-panel { margin-top:14px; background:linear-gradient(150deg,#14212c,var(--ref-surface)); border:1px solid var(--ref-border); border-radius:10px; padding:20px 22px 22px; }
body.protected-layout .mw-ref-panel h2 { margin:0 0 16px; color:var(--ref-text); font-size:17px; font-weight:700; }
body.protected-layout .mw-ref-share-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); gap:16px 22px; }
body.protected-layout .mw-ref-field > span { display:block; margin-bottom:8px; color:var(--ref-muted); font-size:12.5px; font-weight:500; }
body.protected-layout .mw-ref-value-row { display:flex; align-items:stretch; gap:10px; }
body.protected-layout .mw-ref-value-row code { flex:1 1 auto; min-width:0; display:flex; align-items:center; background:var(--ref-raised); border:1px solid var(--ref-border); border-radius:8px; padding:10px 14px; color:var(--ref-text); font-size:14.5px; letter-spacing:.04em; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
body.protected-layout .mw-ref-value-row code.mw-ref-link-code { font-size:13px; letter-spacing:0; white-space:normal; overflow-wrap:anywhere; word-break:break-word; line-height:1.45; text-overflow:clip; }
body.protected-layout .mw-ref-copy { flex:none; align-self:center; display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:0 17px; background:rgba(240,185,11,.05); border:1px solid var(--brand); border-radius:8px; color:var(--brand); font-family:inherit; font-size:13px; font-weight:650; cursor:pointer; }
body.protected-layout .mw-ref-copy:hover { background:rgba(240,185,11,.14); }
body.protected-layout .mw-ref-copy:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
body.protected-layout .mw-ref-help { margin:13px 0 0; color:var(--ref-muted); font-size:12.5px; line-height:1.55; }
body.protected-layout .mw-ref-panel .terminal-empty { background:var(--ref-raised); border:1px solid var(--ref-border); border-radius:8px; color:var(--ref-text); }
body.protected-layout .mw-ref-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 26px; }
body.protected-layout .mw-ref-step { display:flex; gap:13px; min-width:0; }
body.protected-layout .mw-ref-step-num { flex:none; display:grid; place-items:center; width:34px; height:34px; border:1.5px solid var(--brand); border-radius:50%; color:var(--brand); font-size:14.5px; font-weight:700; }
body.protected-layout .mw-ref-step h3 { margin:2px 0 5px; color:var(--ref-text); font-size:14.5px; font-weight:650; line-height:1.35; }
body.protected-layout .mw-ref-step p { margin:0; color:var(--ref-muted); font-size:12.5px; line-height:1.55; }
body.protected-layout .mw-ref-extra { margin-top:17px; padding-top:13px; border-top:1px solid var(--ref-border); display:grid; gap:6px; }
body.protected-layout .mw-ref-extra p { margin:0; color:var(--ref-muted); font-size:12.5px; line-height:1.55; }
body.protected-layout .mw-ref-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
body.protected-layout .mw-ref-card { display:flex; gap:14px; background:linear-gradient(150deg,#14212c,var(--ref-surface)); border:1px solid var(--ref-border); border-radius:10px; padding:18px 20px; color:var(--brand); }
body.protected-layout .mw-ref-card .mw-icon { flex:none; margin-top:1px; }
body.protected-layout .mw-ref-card h3 { margin:0 0 5px; color:var(--ref-text); font-size:14.5px; font-weight:650; }
body.protected-layout .mw-ref-card p { margin:0; color:var(--ref-muted); font-size:12.5px; line-height:1.55; }
@media (max-width:1159px) {
 body.protected-layout .mw-ref-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
 body.protected-layout .mw-ref-steps { gap:16px 20px; }
}
@media (max-width:900px) {
 body.protected-layout .mw-referral { padding:18px 16px 104px; }
 body.protected-layout .mw-ref-share-grid { grid-template-columns:minmax(0,1fr); }
 body.protected-layout .mw-ref-steps { grid-template-columns:minmax(0,1fr); gap:15px; }
 body.protected-layout .mw-ref-cards { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:760px) {
 body.protected-layout .mw-ref-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 body.protected-layout .mw-ref-stat { padding:13px 14px 14px; }
 body.protected-layout .mw-ref-stat-value { margin-top:12px; }
 body.protected-layout .mw-ref-stat-value strong { font-size:21px; }
 body.protected-layout .mw-ref-panel { padding:17px 16px 18px; }
 body.protected-layout .mw-ref-copy { padding:0 13px; min-height:42px; }
}
@media (max-width:760px) {
 body.protected-layout .mw-ref-value-row code.mw-ref-link-code { font-size:11px; }
}
@media (max-width:360px) {
 body.protected-layout .mw-ref-stat-value strong { font-size:19px; }
 body.protected-layout .mw-ref-value-row code { font-size:13px; padding:9px 11px; }
 body.protected-layout .mw-ref-value-row code.mw-ref-link-code { font-size:10.5px; }
 body.protected-layout .mw-ref-copy { padding:0 10px; font-size:12px; }
}

/* MW Trader Profile page only. Uses the existing --brand (#f0b90b) and the same
   surface family as the Referral and Admin blocks above. Content only: the app
   shell, sidebar, topbar, bottom navigation and the avatar editor modal are
   not touched here. */
body.protected-layout .mw-profile-page { --prof-surface:#121d27; --prof-raised:#16222d; --prof-input:#0d141d; --prof-border:#2c3a48; --prof-muted:#93a3b5; --prof-text:#eef2f7; max-width:1460px!important; padding:24px 28px 48px; }
body.protected-layout .mw-prof-head { margin-bottom:18px; }
body.protected-layout .mw-prof-head h1 { color:var(--prof-text); font-size:clamp(26px,2.6vw,32px); font-weight:750; letter-spacing:-.02em; }
body.protected-layout .mw-prof-head p { color:var(--prof-muted); font-size:13.5px; margin-top:5px; }
body.protected-layout .mw-prof-stack { display:grid; gap:14px; min-width:0; }
body.protected-layout .mw-prof-panel { background:linear-gradient(150deg,#14212c,var(--prof-surface)); border:1px solid var(--prof-border); border-radius:10px; padding:22px 24px 24px; margin:0; }
body.protected-layout .mw-prof-panel h2 { margin:0 0 6px; color:var(--prof-text); font-size:18px; font-weight:700; }
body.protected-layout .mw-prof-sub { margin:0 0 16px; color:var(--prof-muted); font-size:13px; }
body.protected-layout .mw-prof-identity { display:flex; align-items:center; gap:18px; margin:8px 0 18px; min-width:0; }
body.protected-layout .mw-prof-avatar { width:88px; height:88px; font-size:34px; font-weight:700; background:linear-gradient(135deg,#ffd87f,var(--brand)); color:#fff; border:0; box-shadow:inset 0 0 0 1px rgba(255,255,255,.25); }
body.protected-layout .mw-prof-identity strong { font-size:19px; color:var(--prof-text); }
body.protected-layout .mw-prof-identity>div { min-width:0; display:grid; gap:2px; }
body.protected-layout .mw-prof-identity>div span, body.protected-layout .mw-prof-identity>div small { color:var(--prof-muted); font-size:13px; overflow-wrap:anywhere; }
body.protected-layout .mw-prof-pic-row { margin-left:106px; }
body.protected-layout .mw-prof-pic-btn { display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:0 17px; background:rgba(240,185,11,.05); border:1px solid var(--brand); border-radius:8px; color:var(--brand); font-family:inherit; font-size:13px; font-weight:650; cursor:pointer; }
body.protected-layout .mw-prof-pic-btn:hover { background:rgba(240,185,11,.14); }
body.protected-layout .mw-prof-pic-btn:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
body.protected-layout .mw-prof-help { margin:9px 0 0; color:var(--prof-muted); font-size:12.5px; }
body.protected-layout .mw-prof-form { display:grid; gap:13px; }
body.protected-layout .mw-prof-form .field { display:grid; grid-template-columns:210px minmax(0,1fr); align-items:center; gap:8px 18px; margin:0; }
body.protected-layout .mw-prof-form .field[hidden] { display:none; }
body.protected-layout .mw-prof-form .field label { color:#c6d0dd; font-size:13.5px; font-weight:500; margin:0; }
body.protected-layout .mw-prof-form .field input { background:var(--prof-input); border:1px solid var(--prof-border); border-radius:8px; min-height:46px; color:var(--prof-text); width:100%; }
body.protected-layout .mw-prof-form .field input:focus { border-color:var(--brand); }
body.protected-layout .mw-prof-actions { display:grid; gap:10px; margin-top:4px; }
body.protected-layout .mw-prof-actions [hidden] { display:none!important; }
body.protected-layout .mw-prof-submit { width:100%; min-height:48px; font-size:14px; font-weight:700; border-radius:8px; }
body.protected-layout .mw-prof-actions .button.secondary { width:100%; min-height:44px; }
body.protected-layout .mw-prof-form .form-message { margin:0; }
body.protected-layout .mw-prof-form .form-message:empty { display:none; }
body.protected-layout .mw-prof-note { margin:0; color:var(--prof-muted); font-size:12.5px; }
body.protected-layout .mw-prof-tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
body.protected-layout .mw-prof-tile { display:flex; align-items:center; gap:12px; min-height:54px; padding:13px 16px; background:var(--prof-raised); border:1px solid var(--prof-border); border-radius:9px; color:#dbe3ee; font-family:inherit; font-size:13.5px; font-weight:600; text-align:left; text-decoration:none; cursor:pointer; min-width:0; }
body.protected-layout .mw-prof-tile .mw-icon:first-child { color:var(--brand); flex:none; }
body.protected-layout .mw-prof-tile span { flex:1; min-width:0; overflow-wrap:anywhere; }
body.protected-layout .mw-prof-tile .mw-icon:last-child { color:#8391a4; flex:none; }
body.protected-layout .mw-prof-tile:hover { border-color:#46586c; color:var(--brand); background:#1a2836; }
body.protected-layout .mw-prof-tile:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
body.protected-layout .mw-prof-logout { color:#ff8796; }
body.protected-layout .mw-prof-logout .mw-icon:first-child { color:#ff8796; }
body.protected-layout .mw-prof-logout:hover { color:#ff9fab; }
@media (max-width:1159px) {
 body.protected-layout .mw-prof-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:900px) {
 body.protected-layout .mw-profile-page { padding:18px 16px 104px; }
 body.protected-layout .mw-prof-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
 body.protected-layout .mw-prof-panel { padding:18px 16px 20px; }
 body.protected-layout .mw-prof-avatar { width:76px; height:76px; font-size:29px; }
 body.protected-layout .mw-prof-pic-row { margin-left:0; }
 body.protected-layout .mw-prof-pic-btn { width:100%; justify-content:center; }
 body.protected-layout .mw-prof-form .field { grid-template-columns:minmax(0,1fr); gap:6px; }
 body.protected-layout .mw-prof-tiles { grid-template-columns:minmax(0,1fr); gap:10px; }
 body.protected-layout .mw-prof-tile { min-height:52px; }
}

/* MW setup redesign 2026-10-19: Setup page only, scoped to .setup-dashboard. Anchor tab row, single column cards, reference radio cards, segmented controls, checklist, timing stat boxes, risk chips and device actions. All forms, ids and handlers unchanged. */
.setup-dashboard .mw-setup-tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);margin:2px 0 18px;overflow-x:auto;scrollbar-width:none}
.setup-dashboard .mw-setup-tabs::-webkit-scrollbar{display:none}
.setup-dashboard .mw-setup-tabs a{padding:10px 14px;color:var(--text-muted);font-weight:600;font-size:14.5px;white-space:nowrap;text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}
.setup-dashboard .mw-setup-tabs a:hover{color:var(--text-primary)}
.setup-dashboard .mw-setup-tabs a.active{color:var(--brand);border-bottom-color:var(--brand)}
.setup-dashboard .setup-grid.modern{grid-template-columns:1fr;gap:18px}
.setup-dashboard .setup-step{scroll-margin-top:84px}
.setup-dashboard .setup-panel{padding:22px}
.setup-dashboard .setup-panel h2{font-size:19px}
.setup-dashboard .ip-display{grid-template-columns:auto 1fr auto;border-radius:12px;padding:12px 14px}
.setup-dashboard .ip-display span{font-size:13px}
.setup-dashboard .ip-display code{font-size:14px;justify-self:start}
.setup-dashboard #copy-ip{border:1px solid rgba(240,185,11,.55);color:var(--brand);border-radius:9px;background:transparent}
.setup-dashboard .setup-checklist{gap:10px 18px;margin:14px 0 18px}
.setup-dashboard .setup-checklist span{font-size:13.5px;gap:9px}
.setup-dashboard .setup-checklist i{width:20px;height:20px;flex:none;border-radius:50%;border:1.5px solid var(--terminal-line-strong);background:transparent;display:inline-grid;place-items:center;font-style:normal}
.setup-dashboard .setup-checklist span.ok{color:var(--text-secondary)}
.setup-dashboard .setup-checklist span.ok i{background:rgba(14,203,129,.14);border-color:var(--green)}
.setup-dashboard .setup-checklist span.ok i::after{content:"✓";color:var(--green);font-size:12px;font-weight:700;line-height:1}
.setup-dashboard .credentials-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.setup-dashboard .credentials-form .field{margin:0}
.setup-dashboard .credentials-form button[type="submit"]{grid-column:1/-1;height:47px;font-size:15px;border-radius:11px}
.setup-dashboard .credentials-form .form-message{grid-column:1/-1;margin:0}
.setup-dashboard .mode-selector{gap:12px}
.setup-dashboard .mode-selector label>span{position:relative;min-height:0;border-radius:14px;padding:14px 16px 14px 46px}
.setup-dashboard .mode-selector label>span::before{content:"";position:absolute;left:15px;top:50%;transform:translateY(-50%);width:19px;height:19px;border-radius:50%;border:2px solid var(--terminal-line-strong)}
.setup-dashboard .mode-selector label>span strong{font-size:15px}
.setup-dashboard .mode-selector input:checked+span{border-color:var(--brand);background:rgba(240,185,11,.07);box-shadow:inset 0 0 0 1px var(--brand)}
.setup-dashboard .mode-selector input:checked+span::before{border-color:var(--brand);background:radial-gradient(circle,var(--brand) 0 5px,transparent 6.5px)}
.setup-dashboard .segmented{border-radius:11px;padding:3px;background:var(--surface-high);gap:3px}
.setup-dashboard .segmented span{min-height:38px;border-radius:8px;background:transparent}
.setup-dashboard .segmented label+label span{border-left:0}
.setup-dashboard .segmented input:checked+span{background:linear-gradient(180deg,var(--brand-hover),var(--brand));color:#191204;box-shadow:none}
.setup-dashboard #custom-settings,.setup-dashboard #personal-custom-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.setup-dashboard #custom-settings .field,.setup-dashboard #personal-custom-settings .field{margin:0}
.setup-dashboard #fixed-leverage-field,.setup-dashboard #personal-fixed-leverage-field{grid-column:1/-1}
.setup-dashboard #custom-max-trades-field{margin-top:14px}
.setup-dashboard input[type="range"]{accent-color:var(--brand)}
.setup-dashboard .section-save{background:linear-gradient(180deg,var(--brand-hover),var(--brand));color:#191204;border:0;height:45px;padding:0 24px;font-weight:700;border-radius:11px;margin-top:16px}
.setup-dashboard .strategy-lock-notice{border-radius:14px}
.setup-dashboard .strategy-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.setup-dashboard .strategy-grid span{background:var(--surface-high);border:1px solid var(--border);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.setup-dashboard .strategy-grid small{color:var(--text-muted);font-size:12px}
.setup-dashboard .strategy-grid strong{font-size:17px}
.setup-dashboard .risk-controls-head strong{font-size:18px}
.setup-dashboard .risk-controls-card>.field-help{background:rgba(240,185,11,.06);border:1px solid rgba(240,185,11,.35);border-radius:12px;padding:12px 14px;color:var(--text-secondary)}
.setup-dashboard .risk-control{padding:18px 0;border-top:1px solid var(--border)}
.setup-dashboard .risk-control:first-of-type{border-top:0;padding-top:4px}
.setup-dashboard .risk-readout{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.setup-dashboard .risk-readout-item{background:var(--surface-high);border:1px solid var(--border);border-radius:10px;padding:7px 11px;display:inline-flex;gap:7px;align-items:baseline}
.setup-dashboard .risk-readout-item small{color:var(--text-muted);font-size:12px}
.setup-dashboard .risk-readout-item strong{font-size:14px}
.setup-dashboard .risk-summary{margin-top:10px}
.setup-dashboard details.risk-help{margin-top:8px}
.setup-dashboard details.risk-help summary{color:var(--brand);cursor:pointer;font-size:13.5px;font-weight:600}
.setup-dashboard .risk-controls-actions{margin-top:16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.setup-dashboard #risk-controls-form .button{height:43px;padding:0 20px;border-radius:10px;display:inline-flex;align-items:center}
.setup-dashboard .risk-controls-actions .button.ghost{border:1px solid rgba(240,185,11,.55);color:var(--brand)}
.setup-dashboard .setup-inline-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.setup-dashboard .setup-inline-actions .button{height:47px;padding:0 18px;border-radius:11px;display:inline-flex;align-items:center;gap:8px;font-size:14.5px;font-weight:600}
.setup-dashboard #browser-notifications{border:1px solid rgba(240,185,11,.55);color:var(--brand);background:transparent}
.setup-dashboard #install-app{border:1px solid rgba(240,185,11,.55);color:var(--brand)}
@media (max-width:900px){
.setup-dashboard .strategy-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
.setup-dashboard .setup-panel{padding:16px}
.setup-dashboard .credentials-form{grid-template-columns:1fr}
.setup-dashboard #custom-settings,.setup-dashboard #personal-custom-settings{grid-template-columns:1fr}
.setup-dashboard #fixed-leverage-field,.setup-dashboard #personal-fixed-leverage-field{grid-column:auto}
.setup-dashboard .section-save{width:100%}
.setup-dashboard .setup-inline-actions{flex-direction:column}
.setup-dashboard .setup-inline-actions .button{width:100%;justify-content:center}
.setup-dashboard .mw-setup-tabs a{padding:9px 10px;font-size:14px}
}
/* Correction: the Stitch engine layout in styles.css places setup panels on a 12 column grid (connection as a narrow rail, explicit grid-column spans). The reference design stacks full width cards, so every placement is neutralised inside the setup scope only. */
.setup-dashboard .setup-grid.modern>.setup-panel:nth-child(n){grid-column:1/-1;grid-row:auto}

/* History + Why no trade redesign (2026-10-19). Scoped to .mw-history-page and .mw-log-page only. */
.mw-hist-stats article{border-radius:8px;padding:14px;min-height:86px}
.mw-hist-stats strong{font-size:19px}
@media (max-width:1024px){.mw-hist-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.mw-hist-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mw-hist-stats article{min-height:78px;padding:12px}.mw-hist-stats strong{font-size:17px}}
.mw-hist-toolbar{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr auto;gap:10px;align-items:end;padding:12px;min-height:0}
.mw-hist-field{display:grid;gap:5px;min-width:0}
.mw-hist-field>span{color:var(--terminal-muted);font-size:10px;font-weight:600;letter-spacing:.02em}
.mw-hist-field input,.mw-hist-field select{width:100%;min-width:0;height:36px;font-size:12px;border-radius:6px}
.mw-hist-export{height:36px;display:inline-flex;align-items:center;gap:7px;padding:0 14px;border:1px solid var(--brand);border-radius:6px;background:transparent;color:var(--brand);font-weight:600;white-space:nowrap}
.mw-hist-export:hover{background:rgba(240,185,11,.1)}
@media (max-width:900px){.mw-hist-toolbar{grid-template-columns:1fr 1fr}.mw-hist-export{grid-column:1/-1;justify-content:center}}
.mw-history-page .responsive-table td{font-size:12px;height:48px}
.mw-history-page .responsive-table th{font-size:10px}
.mw-side-pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:10px;font-weight:700;line-height:1.5}
.mw-side-pill.long{background:rgba(14,203,129,.14);color:var(--green)}
.mw-side-pill.short{background:rgba(255,107,122,.14);color:var(--red)}
.mw-hist-count{margin:0;padding:10px 12px;border-top:1px solid var(--terminal-line);color:var(--terminal-muted);font-size:11px}
@media (max-width:640px){.history-record-cards tbody>tr:not(.record-empty-row){border-radius:10px;padding:13px}.history-record-cards td[data-label="Symbol"] strong{font-size:14px;color:var(--terminal-text)}}
.mw-log-panel{border:1px solid var(--terminal-line);border-radius:8px;background:var(--terminal-panel);overflow:hidden}
.mw-log-cols,.mw-log-row{display:grid;grid-template-columns:180px minmax(0,1fr) 110px 120px;gap:14px;align-items:center;padding:13px 16px}
.mw-log-cols{padding-top:11px;padding-bottom:11px;border-bottom:1px solid var(--terminal-line);color:var(--terminal-muted);font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.mw-log-cols span:last-child{text-align:right}
.mw-log-row{border-bottom:1px solid var(--terminal-line)}
.mw-log-row:last-child{border-bottom:0}
.mw-log-time{color:var(--terminal-soft);font-size:12px;white-space:nowrap}
.mw-log-event{display:flex;gap:11px;min-width:0}
.mw-log-dot{flex:none;width:9px;height:9px;margin-top:5px;border-radius:50%;background:var(--terminal-muted)}
.mw-log-dot.skip{background:var(--brand)}
.mw-log-dot.open{background:var(--green)}
.mw-log-dot.fail{background:var(--red)}
.mw-log-main{min-width:0}
.mw-log-main strong{font-size:13px;color:var(--terminal-text)}
.mw-log-main p{margin-top:2px;color:var(--terminal-soft);font-size:12px;line-height:1.45}
.mw-log-main code{display:inline-block;margin-top:4px;color:var(--terminal-muted);font-size:10.5px}
.mw-log-symbol{font-size:12px;font-weight:600;color:var(--terminal-text)}
.mw-log-badge{justify-self:end;padding:4px 12px;border-radius:6px;font-size:10px;font-weight:700;letter-spacing:.05em;white-space:nowrap}
.mw-log-badge.skip{background:rgba(240,185,11,.16);border:1px solid rgba(240,185,11,.4);color:var(--brand)}
.mw-log-badge.open{background:rgba(14,203,129,.15);border:1px solid rgba(14,203,129,.4);color:var(--green)}
.mw-log-badge.fail{background:rgba(255,107,122,.13);border:1px solid rgba(255,107,122,.4);color:var(--red)}
.mw-log-badge.neutral{background:rgba(140,150,165,.14);border:1px solid var(--terminal-line);color:var(--terminal-soft)}
@media (max-width:760px){
.mw-log-cols{display:none}
.mw-log-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"time symbol" "event badge";row-gap:8px;padding:13px 14px}
.mw-log-time{grid-area:time}
.mw-log-symbol{grid-area:symbol;justify-self:end}
.mw-log-event{grid-area:event}
.mw-log-badge{grid-area:badge;align-self:start;margin-top:1px}
}

@media (max-width:640px){.history-record-cards .mw-side-pill{justify-self:start}}

/* MW ledger + activity redesign 2026-10-19: scoped to .mw-ledger-page and .mw-activity-page. Stat icons, threshold progress strip, panel polish, activity rows. Templates and handlers unchanged in behaviour. */
.mw-ledger-page .ledger-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.mw-ledger-page .ledger-stats article{display:flex;gap:12px;align-items:flex-start;padding:16px;border-radius:14px}
.mw-ledger-page .mw-led-ic{width:38px;height:38px;flex:none;border-radius:10px;background:rgba(240,185,11,.08);color:var(--brand);display:grid;place-items:center}
.mw-ledger-page .mw-led-ic.positive{background:rgba(14,203,129,.12);color:var(--green)}
.mw-ledger-page .mw-led-ic.warning{background:rgba(240,185,11,.12);color:var(--brand)}
.mw-ledger-page .mw-led-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.mw-ledger-page .ledger-stats strong{font-size:20px}
.mw-ledger-page .ledger-stats strong.positive{color:var(--green)}
.mw-ledger-page .ledger-stats strong.warning{color:var(--brand)}
.mw-ledger-page .mw-ledger-progress{border:1px solid var(--border);border-radius:14px;padding:14px 16px;margin-bottom:12px;background:var(--mw-card)}
.mw-ledger-page .mw-ledger-progress-top{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;color:var(--text-secondary)}
.mw-ledger-page .mw-ledger-progress .capacity{height:6px;border-radius:99px;margin-top:10px}
.mw-ledger-page .data-panel{border-radius:14px}
.mw-ledger-page .ticker-head{padding:16px 18px 6px}
.mw-ledger-page .ticker-head h2{font-size:17px}
.mw-ledger-page .empty-cell{text-align:center;padding:36px 16px}
.mw-ledger-page .mw-led-empty-ic{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 10px;border-radius:50%;background:var(--surface-high);color:var(--text-muted)}
.mw-activity-page .mw-act-panel{border-radius:14px;overflow:hidden}
.mw-activity-page .mw-act-head{padding:16px 18px 2px}
.mw-activity-page .mw-act-head h2{font-size:17px}
.mw-activity-page .mw-act-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:13px;align-items:start;padding:14px 18px;min-height:0}
.mw-activity-page .mw-act-ic{width:38px;height:38px;border-radius:10px;background:var(--surface-high);color:var(--brand);display:grid;place-items:center}
.mw-activity-page .mw-act-main strong{font-size:14.5px}
.mw-activity-page .mw-act-main p{color:var(--text-muted);font-size:13px;margin-top:2px}
.mw-activity-page .mw-act-time{color:var(--text-muted);font-size:12.5px;white-space:nowrap;padding-top:2px}
@media (max-width:1100px){
.mw-ledger-page .ledger-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:640px){
.mw-ledger-page .ledger-stats{grid-template-columns:1fr}
.mw-ledger-page .ledger-stats article{align-items:center}
.mw-ledger-page .mw-led-body{display:grid;grid-template-columns:1fr auto;align-items:center;flex:1}
.mw-ledger-page .mw-led-body strong{grid-column:2;grid-row:1/span 2;align-self:center}
.mw-ledger-page .mw-led-body small{grid-column:1}
.mw-activity-page .mw-act-row{grid-template-columns:38px minmax(0,1fr)}
.mw-activity-page .mw-act-ic{grid-row:1/span 2}
.mw-activity-page .mw-act-time{grid-column:2;grid-row:1;justify-self:end;padding-top:0}
.mw-activity-page .mw-act-main{grid-column:2;grid-row:2}
}

/* MW admin reference polish 2026-10-19 (agent-admin). Scoped to the admin page
   only (.admin-dashboard exists solely on /admin). Adds: the members-only
   "Admin only" chip, a pill treatment for the global state value, leading
   glyphs on the global pause and member quick-action buttons, per-disclosure
   summary lines, a note style, and a dashed outline for the QR upload field.
   The button glyphs are CSS mask pseudo-elements on purpose: the buttons are
   driven by beginButtonProgress(), which rewrites textContent, so a real
   child node would be destroyed on first use. Mask geometry matches the
   existing shellIconPaths icons (pause, play, refresh, coins, user) and the
   colour follows currentColor, so state colours (gold pause, green resume)
   apply to the glyph automatically. No existing rule is edited. */
body.protected-layout .admin-dashboard .mw-admin-title-row { display:flex; align-items:center; gap:11px; flex-wrap:wrap; }
body.protected-layout .admin-dashboard .mw-admin-only-chip { display:none; }
body.protected-layout .admin-dashboard[data-active-tab="members"] .mw-admin-only-chip { display:inline-flex; align-items:center; min-height:24px; padding:3px 10px; border:1px solid #3a4d5f; border-radius:99px; background:#16242f; color:#c3d2e2; font-size:11px; font-weight:600; letter-spacing:.02em; white-space:nowrap; }
body.protected-layout .admin-dashboard .admin-summary .admin-global-active,
body.protected-layout .admin-dashboard .admin-summary .admin-global-paused { display:inline-block; padding:3px 12px; border-radius:99px; font-size:13px!important; line-height:1.35; }
body.protected-layout .admin-dashboard .admin-summary .admin-global-active { background:rgba(14,203,129,.13); border:1px solid rgba(14,203,129,.4); }
body.protected-layout .admin-dashboard .admin-summary .admin-global-paused { background:rgba(231,90,107,.12); border:1px solid rgba(231,90,107,.42); }
body.protected-layout .admin-dashboard #global-pause { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
body.protected-layout .admin-dashboard #global-pause::before,
body.protected-layout .admin-dashboard .admin-primary-actions .button::before { content:""; flex:none; width:15px; height:15px; background:currentColor; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; -webkit-mask-position:center; mask-position:center; -webkit-mask-size:contain; mask-size:contain; }
body.protected-layout .admin-dashboard #global-pause::before,
body.protected-layout .admin-dashboard .admin-primary-actions [data-admin-pause]::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8 5v14M16 5v14'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8 5v14M16 5v14'/%3E%3C/svg%3E"); }
body.protected-layout .admin-dashboard #global-pause.success::before,
body.protected-layout .admin-dashboard .admin-primary-actions [data-admin-pause].success::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 9 6-9 6z'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 9 6-9 6z'/%3E%3C/svg%3E"); }
body.protected-layout .admin-dashboard .admin-primary-actions [data-admin-revalidate]::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 8a8 8 0 0 0-14-3L4 7M4 3v4h4M4 16a8 8 0 0 0 14 3l2-2m0 4v-4h-4'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 8a8 8 0 0 0-14-3L4 7M4 3v4h4M4 16a8 8 0 0 0 14 3l2-2m0 4v-4h-4'/%3E%3C/svg%3E"); }
body.protected-layout .admin-dashboard .admin-primary-actions [data-profit-sharing]::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='5'/%3E%3Cpath d='M4 11v4c0 3 10 3 10 0V8M15 6c3 0 5 1 5 3v7c0 3-5 4-8 2'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='5'/%3E%3Cpath d='M4 11v4c0 3 10 3 10 0V8M15 6c3 0 5 1 5 3v7c0 3-5 4-8 2'/%3E%3C/svg%3E"); }
body.protected-layout .admin-dashboard .admin-primary-actions [data-personal-access]::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2c0-4 3-6 8-6s8 2 8 6v2'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2c0-4 3-6 8-6s8 2 8 6v2'/%3E%3C/svg%3E"); }
body.protected-layout .admin-dashboard .admin-details-note { margin:10px 2px 0; color:#9fb2c6; font-size:12px; line-height:1.5; }
body.protected-layout .admin-dashboard .admin-settings-disclosure:has(> #admin-sr-default-form) > summary::after { content:"Default support and resistance parameters"; }
body.protected-layout .admin-dashboard .admin-settings-disclosure:has(> #admin-personal-default-form) > summary::after { content:"Default personal strategy parameters"; }
body.protected-layout .admin-dashboard #admin-payments .admin-payment-qr-block form .field { border:1px dashed #41576b; border-radius:8px; padding:12px; background:#13222d; }

/* MW ledger panel gap fix 2026-10-19: the two stacked data panels on the Profit Ledger page touched with zero gap (the base .data-panel rule carries no margin and .data-dashboard sets no gap), which read as overlapping boxes on mobile. Scoped to the ledger page only. */
.mw-ledger-page .data-panel + .data-panel{margin-top:14px}

/* MW payment due popup 2026-10-19: styles for the profit-share due alert
   shown by maybeShowPaymentDueAlert() in app.js. Every rule is scoped to
   the popup's own tone class (.payment-due-modal) or its own icon class,
   so no other modal flow changes appearance. Colours reuse the existing
   variables only: in this design system the warning colour is the brand
   gold (--terminal-warning is #f0b90b, the same value as --brand, and
   --brand-soft is its tint), exactly as the dashboard due callout uses. */
.payment-due-modal { border-top: 3px solid var(--terminal-warning, #f0b90b); }
.payment-due-modal .payment-due-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 2px 0 12px; border-radius: 50%; background: var(--brand-soft, rgba(240,185,11,.10)); color: var(--terminal-warning, #f0b90b); }
.payment-due-modal .payment-due-icon .mw-icon { display: block; }
