/* ══ Fundy — docs features (auth, wizard v2, MM panels, P&L cards, …) ══ */

.flip { transform: scaleX(-1); }

/* bracket-corner buttons (auth, licenses) */
.bracket { position: relative; --bc: var(--text-3); }
.bracket::before {
  content: ''; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(var(--bc), var(--bc)) top left / 7px 1.5px no-repeat,
    linear-gradient(var(--bc), var(--bc)) top left / 1.5px 7px no-repeat,
    linear-gradient(var(--bc), var(--bc)) top right / 7px 1.5px no-repeat,
    linear-gradient(var(--bc), var(--bc)) top right / 1.5px 7px no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom left / 7px 1.5px no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom left / 1.5px 7px no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom right / 7px 1.5px no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom right / 1.5px 7px no-repeat;
}

/* ── Auth ── */
.auth-root {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% 40%, #16171c 0%, #0b0b0e 60%, #070709 100%);
  animation: toastIn .2s ease;
  padding: 24px;
  overflow-y: auto;
}
html[data-theme="light"] .auth-root { background: radial-gradient(1200px 600px at 50% 40%, #ffffff 0%, #eef0f3 70%); }
.auth-root.out { opacity: 0; transition: opacity .22s; }
.auth-card { width: 340px; max-width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.auth-logo { display: flex; justify-content: center; color: var(--text); margin-bottom: 4px; }
.auth-title { text-align: center; font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.auth-text { text-align: center; font-size: 12px; line-height: 1.55; color: var(--text-2); margin-bottom: 6px; }
.auth-text b { color: var(--text); }
.auth-btn {
  height: 40px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 3px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  font-size: 12.5px; font-weight: 500; color: var(--text);
  transition: background .12s;
}
.auth-btn:hover { background: var(--surface-4); }
.auth-btn.accent { background: rgba(var(--accent-rgb), .18); border-color: rgba(var(--accent-rgb), .45); color: var(--accent-text); --bc: var(--accent-text); }
.auth-btn.accent:hover { background: rgba(var(--accent-rgb), .26); }
.auth-btn.light { background: #f4f4f6; color: #111216; border-color: #f4f4f6; border-radius: 4px; }
.auth-btn.light:hover { background: #ffffff; }
.auth-btn:disabled { opacity: .7; }
.auth-link { align-self: center; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); padding: 4px 6px; }
.auth-link:hover { color: var(--text); }
.auth-secured { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--text-3); margin-top: 18px; }
.turnkey { display: inline-flex; align-items: center; gap: 3px; color: var(--text); font-weight: 600; font-size: 11.5px; }
.auth-label { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; letter-spacing: .04em; color: var(--text-3); margin-bottom: -4px; }
.auth-label span { display: inline-flex; align-items: center; gap: 6px; }
.auth-label button, .auth-license button { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); letter-spacing: 0; }
.auth-label button:hover, .auth-license button:hover { color: var(--text); }
.auth-inp { width: 100%; height: 40px; padding: 0 12px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border-2); font-size: 13px; color: var(--text); }
.auth-inp:focus { border-color: rgba(var(--accent-rgb), .6); }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; }
.auth-license { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border-2); font-size: 12px; }
.auth-label-sm { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: var(--text-3); margin-bottom: 3px; }
.auth-info { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 4px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .25); color: var(--accent-text); font-size: 11.5px; line-height: 1.45; }
.auth-info a { text-decoration: underline; cursor: pointer; }
.auth-info.tip { background: var(--surface-2); border-color: var(--border-2); color: var(--text-2); }
.auth-info.warn { background: rgba(245, 184, 61, .08); border-color: rgba(245, 184, 61, .28); color: var(--yellow); }
.auth-sep { height: 1px; background: var(--border-2); margin: 2px 0; }
.auth-wallet { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-2); font-size: 13px; font-weight: 600; color: var(--text); text-align: left; transition: background .12s, border-color .12s; }
.auth-wallet:hover { background: var(--surface-3); }
.auth-wallet.sel { border-color: rgba(var(--accent-rgb), .6); }
.auth-wallet .ic { color: var(--text-3); }
.auth-code { display: flex; justify-content: center; gap: 8px; }
.auth-code input { width: 42px; height: 50px; text-align: center; font-size: 20px; font-weight: 600; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); }
.auth-code input:focus { border-color: rgba(var(--accent-rgb), .7); }

/* ── wallet picker ── */
.pick-list { max-height: 380px; overflow-y: auto; border: 1px solid var(--border-2); border-radius: var(--r); }
.pick-row { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--border-dim); cursor: pointer; font-size: 12px; user-select: none; }
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--row-hover); }
.pick-row.on { background: rgba(var(--accent-rgb), .06); }
.pick-row.head { position: sticky; top: 0; z-index: 1; background: var(--bg-elev); font-weight: 600; color: var(--text-2); }

/* ── Create Launch wizard v2 ── */
.wiz { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 20px 18px 40px; align-items: start; }
.wiz-main { min-width: 0; }
.wiz .wizard-steps { margin-bottom: 18px; }
.wiz-info { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
.wi-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 13px; }
.wi-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; margin-bottom: 8px; }
.wi-d { font-size: 11.5px; color: var(--text-2); line-height: 1.5; }
.wi-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-3); padding: 3px 0; }
.wi-kv b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.wi-kv span:last-child { color: var(--text-2); font-variant-numeric: tabular-nums; }
.wi-kv.big { font-size: 12.5px; color: var(--text); font-weight: 600; }
.wi-kv.big b { font-size: 13px; }
.wi-kv.red, .wi-kv.red span:last-child { color: var(--pink); }
.wi-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.wi-img.ph { display: flex; align-items: center; justify-content: center; background: var(--surface-3); font-weight: 700; font-size: 12px; }
.wi-fund { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 13px; }
.wi-fund .wi-kv.big { border-bottom: 1px solid var(--border); padding-bottom: 9px; margin-bottom: 6px; }
.wi-ind { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.wi-ind-lr { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-4); margin-top: 3px; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 4px; }
.meter i { height: 4px; border-radius: 2px; background: var(--surface-4); }
.meter i.on { background: var(--accent); }
.wizard-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chain-btn.soon { opacity: .55; }
.chain-grid { grid-template-columns: repeat(4, 1fr); }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-row.four { grid-template-columns: repeat(4, 1fr); }
.wiz-inp { height: 32px; }
.wiz-inp input { font-size: 12.5px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset-card { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--surface-2); text-align: left; transition: border-color .12s, background .12s; min-width: 0; }
.preset-card:hover { border-color: rgba(var(--accent-rgb), .5); background: var(--surface-3); }
.preset-card .grow { display: flex; flex-direction: column; min-width: 0; }
.preset-card b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preset-card .muted { font-size: 10.5px; }
.mev-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mev-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--surface); transition: all .12s; }
.mev-card .t { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.mev-card .s { font-size: 10.5px; color: var(--text-3); }
.mev-card:hover { border-color: var(--border-3); }
.mev-card.active { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .1); }
.mev-card.active .t, .mev-card.active .s { color: var(--accent-text); }
.layers { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.layer { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border-2); }
.layer b { font-size: 14px; }
.layer span { font-size: 10px; color: var(--text-3); }
.layer-arrow { color: var(--text-4); display: inline-flex; }
.tune { margin-top: 12px; }
.tune input[type=range] { width: 100%; accent-color: var(--text); margin-top: 8px; }
.tune-lr { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); }
.role-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.role-btn { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: var(--r-sm); border: 1px dashed var(--border-3); font-size: 11.5px; color: var(--text-2); }
.role-btn b { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.role-btn:hover { background: var(--surface-2); color: var(--text); }
.role-btn.on { border-style: solid; border-color: rgba(var(--accent-rgb), .5); color: var(--text); }
.role-btn.on b { color: var(--accent-text); }
.wiz-adv { border: 1px solid var(--border-2); border-radius: var(--r); padding: 10px 12px; margin-bottom: 4px; }
.wiz-adv > summary { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.wiz-adv > summary::-webkit-details-marker { display: none; }
.src-opt.dis { opacity: .4; cursor: not-allowed; }
.funder-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border-2); }
.funder-pick { display: flex; align-items: center; gap: 9px; text-align: left; padding: 2px 6px 2px 2px; border-radius: var(--r-sm); }
.funder-pick:hover { background: var(--surface-3); }
.funder-pick > span:nth-child(2) { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.funder-pick .muted { font-size: 10.5px; }
.fb-kv { display: flex; flex-direction: column; font-size: 10.5px; color: var(--text-3); }
.fb-kv b { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.fb-kv b.red { color: var(--red); }
.plan-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; }
.plan { border: 1px solid var(--border-2); border-radius: var(--r); max-height: 320px; overflow-y: auto; }
.plan-row { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-bottom: 1px solid var(--border-dim); font-size: 12px; }
.plan-row:last-child { border-bottom: 0; }
.plan-row[draggable="true"] { cursor: grab; }
.plan-row[draggable="true"]:hover { background: var(--row-hover); }
.plan-grip { width: 12px; color: var(--text-4); font-size: 11px; letter-spacing: -2px; }
.plan-role { width: 96px; font-size: 11px; font-weight: 600; }
.r-deployer { color: var(--yellow); } .r-front { color: #f97316; } .r-back { color: var(--pink); } .r-temp { color: var(--accent-text); } .r-holders { color: var(--green); }
.plan-pct { display: inline-flex; align-items: center; gap: 2px; width: 88px; justify-content: flex-end; font-family: var(--mono); font-size: 11.5px; }
.plan-sol { width: 110px; text-align: right; font-size: 11.5px; color: var(--text-2); }
.dist { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 13px 14px; border-radius: var(--r); border: 1px solid rgba(var(--accent-rgb), .3); background: rgba(var(--accent-rgb), .06); }
.dist.done { border-color: rgba(var(--green-rgb), .35); background: rgba(var(--green-rgb), .06); }
.dist.done .bold { color: var(--green); display: flex; align-items: center; gap: 6px; }
.dist-bar { height: 4px; border-radius: 2px; background: var(--surface-4); margin-top: 8px; overflow: hidden; }
.dist-bar i { display: block; height: 100%; background: var(--accent); transition: width .18s; }
.dist.done .dist-bar i { background: var(--green); }
.launch-steps { display: flex; flex-direction: column; gap: 2px; }
.ls-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 12px; color: var(--text-3); }
.ls-row.run { color: var(--text); background: var(--surface-2); }
.ls-row.done { color: var(--text-2); }
.ls-ic { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); flex-shrink: 0; }
.ls-row.done .ls-ic { background: rgba(var(--green-rgb), .18); color: var(--green); }
.attempts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.attempt { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: var(--r-sm); border: 1px solid var(--border-2); font-size: 11px; color: var(--text-3); }
.attempt b { color: var(--text); }
.attempt.win { border-color: rgba(var(--green-rgb), .5); color: var(--green); background: rgba(var(--green-rgb), .08); }
.attempt.nuked { opacity: .55; color: var(--red); }
@media (max-width: 1100px) { .wiz { grid-template-columns: 1fr; } .wiz-info { position: static; } .mev-grid { grid-template-columns: repeat(3, 1fr); } }

/* ══ shared small controls ══ */
.mini-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-2); flex-shrink: 0; }
.mini-seg button { height: 20px; padding: 0 7px; border-radius: 4px; font-size: 10.5px; font-weight: 500; color: var(--text-3); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.mini-seg button:hover:not(:disabled) { color: var(--text); }
.mini-seg button.on { background: var(--surface-4); color: var(--text); font-weight: 600; }
.mini-seg button:disabled { opacity: .4; cursor: not-allowed; }
.mini-tabs { display: flex; gap: 2px; padding: 3px; margin: -2px -2px 6px; border-bottom: 1px solid var(--border-2); }
.mini-tabs button { flex: 1; height: 24px; border-radius: 5px; font-size: 11px; color: var(--text-3); font-weight: 500; }
.mini-tabs button.on { background: var(--surface-3); color: var(--text); font-weight: 600; }
.f-head .mini-seg { margin-left: auto; }
.tbl-scroll { max-height: 280px; overflow-y: auto; border: 1px solid var(--border-2); border-radius: var(--r); }
.tbl-scroll .tbl th { position: sticky; top: 0; background: var(--bg-elev); z-index: 1; }
.clickable { cursor: pointer; }
.pick-row.dim { opacity: .45; cursor: default; }
.src-opt.dim { opacity: .4; cursor: not-allowed; }
.fdot.sm { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-left: 4px; vertical-align: middle; }
.up-box { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 96px; border: 1px dashed var(--border-3); border-radius: var(--r); color: var(--text-3); font-size: 11px; cursor: pointer; overflow: hidden; background: var(--surface-2); }
.up-box:hover { border-color: rgba(var(--accent-rgb), .6); color: var(--text-2); }
.up-box.ok { border-style: solid; border-color: rgba(var(--green-rgb), .45); }
.up-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.up-box span { position: relative; }
.up-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cfg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cfg-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-2); font-size: 11px; }
.cfg-chip span { color: var(--text-3); }

/* ══ live page ══ */
.pnl-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--border-2); background: var(--surface-2); font-size: 11px; white-space: nowrap; }
.pnl-pill > span:first-child { color: var(--text-3); font-weight: 600; font-size: 10px; letter-spacing: .04em; }
.pnl-pill b { font-family: var(--mono); font-size: 11.5px; }
.pnl-pill.up b { color: var(--green); }
.pnl-pill.down b { color: var(--red); }
.pnl-pill:hover { border-color: var(--border-3); background: var(--surface-3); }
.pnl-pill .ic { color: var(--text-3); }
.chart-legend { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: var(--text-3); margin-left: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.chart-legend i { width: 12px; height: 0; border-top: 1.5px dashed; display: inline-block; background: none !important; }
.chart-legend span:nth-child(1) i { border-color: var(--green); }
.chart-legend span:nth-child(2) i { border-color: var(--red); }
.chart-legend span:nth-child(3) i { border-color: var(--yellow); border-top-style: dotted; }
.chart-legend span:nth-child(4) i { width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--accent) !important; }
.chart-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-3); font-size: 12px; }
.feed-legend { margin-left: auto; display: flex; align-items: center; gap: 5px; padding-right: 6px; }
.feed-legend .tag { font-size: 9px; }
.trade-addr .tag { font-size: 9px; padding: 0 5px; margin-left: 4px; font-family: var(--font); }
.trade-row.who-mine { background: rgba(var(--green-rgb), .035); }
.trade-row.who-dev { background: rgba(245, 184, 61, .045); }
.trade-row.who-tracked { background: rgba(var(--accent-rgb), .05); }
.addr-hov { cursor: pointer; border-bottom: 1px dotted var(--border-3); }
.addr-hov:hover { color: var(--accent-text); border-bottom-color: var(--accent); }
.popover.addr-pop { padding: 0; }
.w-acts { display: inline-flex; gap: 2px; margin-left: 6px; opacity: 0; transition: opacity .12s; vertical-align: middle; }
.wrow:hover .w-acts { opacity: 1; }
.wallet-tabs-bar .wt-right .tb-btn { height: 22px; font-size: 10.5px; }
.tp-block { padding: 10px 0 12px; border-bottom: 1px dashed var(--border-2); }
.tp-block:last-of-type { border-bottom: 0; }
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-2); margin-bottom: 7px; }
.tp-head > span:first-child { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text); }
.tp-head .mono { font-size: 10.5px; color: var(--text-3); }
.tp-in { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px 0 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border-2); }
.tp-in:focus-within { border-color: rgba(var(--accent-rgb), .55); }
.tp-in input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.tp-block .quick-amounts { margin: 7px 0 8px; align-items: center; }
.qa-edit { width: 24px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: var(--text-3); flex-shrink: 0; }
.qa-edit:hover { background: var(--surface-3); color: var(--text); }
.flyout-sub { margin: 10px 0 8px; padding-top: 8px; border-top: 1px solid var(--border-2); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.panel-foot { padding: 12px; display: flex; justify-content: center; }
.panel-foot .btn { color: var(--text-3); }
.panel-foot .btn:hover { color: var(--red); }
.action-btn:disabled { opacity: .4; cursor: not-allowed; }
.sched { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.sched-card { width: 420px; max-width: 100%; text-align: center; padding: 28px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border-2); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sched-card .live-token-avatar { position: relative; margin-bottom: 8px; }
.sched-t { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.sched-cd { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.wd-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 11.5px; }
.wd-row .inp-wrap { height: 28px; }
.send-rows { max-height: 240px; overflow-y: auto; }

/* ══ market making (running panel + modal builder) ══ */
.strat-scope { margin: 2px 0 6px; border-top: 1px dashed var(--border-2); padding-top: 6px; }
.strat-scope > summary { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); cursor: pointer; list-style: none; padding: 2px 0 6px; user-select: none; }
.strat-scope > summary::-webkit-details-marker { display: none; }
.strat-scope > summary::before { content: '\25B8'; font-size: 9px; transition: transform .15s; }
.strat-scope[open] > summary::before { transform: rotate(90deg); }
.strat-scope > summary:hover { color: var(--text); }
.mm-badge.paused { background: rgba(245, 184, 61, .14); color: var(--yellow); }
.mm-run { border: 1px solid var(--border-2); border-radius: var(--r); padding: 10px 11px; background: var(--surface-2); }
.mm-run.running { border-color: rgba(var(--green-rgb), .3); }
.mm-run.paused { border-color: rgba(245, 184, 61, .3); }
.mm-run-top { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-bottom: 9px; }
.mm-run-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mm-run-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.mm-run-stats span { font-size: 9.5px; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }
.mm-run-stats b { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-run-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.dot.live { animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), .5); } 50% { box-shadow: 0 0 0 4px rgba(var(--green-rgb), 0); } }
.mm-modal .modal-body { max-height: 70vh; overflow-y: auto; }
.live-panel-like { font-size: 12px; }
.live-panel-like .mm-config-row { font-size: 11.5px; }

/* ══ settings (licenses, 2FA) ══ */
.lic-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; flex-wrap: wrap; }
.lic-actions .auth-btn { margin: 0; width: auto; padding: 0 18px; }
.factor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.factor { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); }
.factor span { display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; color: var(--text-3); line-height: 1.4; }
.factor b { font-size: 12px; color: var(--text); }
.factor:hover:not(:disabled) { border-color: var(--border-3); }
.factor.on { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .07); color: var(--accent-text); }
.factor:disabled { cursor: not-allowed; }
.prot-list { margin-top: 10px; border: 1px solid var(--border-2); border-radius: var(--r); }
.prot-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border-dim); cursor: pointer; font-size: 12px; }
.prot-row:last-child { border-bottom: 0; }
.prot-row:hover { background: var(--row-hover); }
.prot-row > span.grow { display: flex; flex-direction: column; gap: 1px; }
.prot-row .set-d { margin: 0; }
.prot-row.dim { opacity: .6; }
.set-off .factor, .set-off .prot-row { pointer-events: none; }

/* ══ wallets (flags, jobs, funding, activity) ══ */
.fresh-tag { display: inline-flex; align-items: center; height: 15px; padding: 0 5px; margin-left: 5px; border-radius: 3px; font-family: var(--font); font-size: 8.5px; font-weight: 700; letter-spacing: .04em; background: rgba(var(--accent-rgb), .14); color: var(--accent-text); vertical-align: middle; cursor: help; }
.fresh-tag.warn { background: rgba(245, 184, 61, .13); color: var(--yellow); }
.job-slot:empty { display: none; }
.job-tag { display: inline-flex; align-items: center; gap: 4px; height: 16px; padding: 0 6px; margin-left: 6px; border-radius: 8px; font-family: var(--font); font-size: 9.5px; font-weight: 600; background: rgba(var(--accent-rgb), .14); color: var(--accent-text); cursor: pointer; vertical-align: middle; }
.job-tag.act { background: rgba(var(--green-rgb), .12); color: var(--green); }
.job-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 10.5px; font-weight: 600; background: rgba(var(--accent-rgb), .14); color: var(--accent-text); white-space: nowrap; }
.job-pill.act { background: rgba(var(--green-rgb), .12); color: var(--green); }
.job-pill:hover { filter: brightness(1.15); }
.cw-launches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 190px; overflow-y: auto; }
.cw-launch { display: flex; align-items: center; gap: 9px; padding: 7px 9px; text-align: left; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--surface-2); }
.cw-launch:hover { border-color: var(--border-3); }
.cw-launch.on { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .07); color: var(--accent-text); }
.cw-launch .tok-av { width: 26px; height: 26px; font-size: 13px; }
.cw-launch span.grow { display: flex; flex-direction: column; min-width: 0; font-size: 12px; line-height: 1.3; }
.cw-launch span.grow b { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-launch .muted { font-size: 10.5px; }
.fund-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fund-type { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); }
.fund-type span.grow { display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; color: var(--text-3); line-height: 1.4; }
.fund-type b { font-size: 12px; color: var(--text); }
.fund-type:hover { border-color: var(--border-3); }
.fund-type.on { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .07); color: var(--accent-text); }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ex-opt { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 9px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--surface-2); font-size: 11.5px; text-align: left; }
.ex-opt:hover { border-color: var(--border-3); }
.ex-opt.on { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .07); }
.ex-opt .muted { font-size: 10.5px; }
.fb-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.fb-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--surface-2); font-size: 12px; }
.fb-ic { display: flex; flex-shrink: 0; }
.fb-st { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.fb-st.draft, .fb-st.stopped { background: var(--surface-4); color: var(--text-2); }
.fb-st.running { background: rgba(var(--accent-rgb), .15); color: var(--accent-text); }
.fb-st.completed { background: rgba(var(--green-rgb), .13); color: var(--green); }

/* ══ tracker ══ */
.trk-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ribbon.on { color: var(--yellow); }
.trk-bar .mini-seg { margin-right: 4px; }

/* ══ activity ══ */
.act-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.act-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.act-chip { height: 26px; padding: 0 11px; border-radius: 13px; border: 1px solid var(--border-2); background: var(--surface-2); font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.act-chip:hover { color: var(--text); border-color: var(--border-3); }
.act-chip.on { background: rgba(var(--accent-rgb), .14); border-color: rgba(var(--accent-rgb), .5); color: var(--accent-text); font-weight: 600; }
.act-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.act-tools .inp-wrap { height: 28px; }
.act-tbl td { vertical-align: middle; padding-top: 9px; padding-bottom: 9px; }
.act-tbl tbody tr.clickable:hover { background: var(--row-hover); }
.act-ctx { display: flex; align-items: center; gap: 10px; }
.act-ctx .activity-icon { width: 28px; height: 28px; background: var(--surface-3); }
.act-launch { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.ev-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 4px; font-size: 10.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
.ev-badge.trade { background: rgba(var(--green-rgb), .12); color: var(--green); }
.ev-badge.launchFunding { background: rgba(var(--accent-rgb), .15); color: var(--accent-text); }
.ev-badge.walletFunding { background: rgba(245, 184, 61, .13); color: var(--yellow); }
.ev-badge.withdraw { background: rgba(var(--pink-rgb), .13); color: var(--pink); }
.ev-badge.shield { background: rgba(79, 141, 255, .14); color: #6fa2ff; }
.ev-badge.archive { background: var(--surface-4); color: var(--text-2); }
.act-details { white-space: normal; }
.act-details .activity-detail { max-width: 640px; }

/* ══ funders ══ */
.fnd-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.dep-qr { display: flex; align-items: flex-start; gap: 14px; }
.dep-qr > svg { flex-shrink: 0; }

/* ══ archived / dashboard ══ */
.arc-tabs .seg-btn .muted { margin-left: 4px; font-weight: 500; }
.stat-acts { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; }
.cal-cell-n { display: inline-flex; align-items: center; gap: 2px; margin-top: auto; font-size: 9.5px; color: var(--accent-text); font-weight: 600; }
.dash-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) { .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ══ P&L card ══ */
.pnl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; }
.pnl-prev { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border-2); background: #000; align-self: start; }
.pnl-prev canvas { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 675; }
.pnl-opts .kv { padding: 5px 0; }
@media (max-width: 760px) {
  .pnl-wrap { grid-template-columns: 1fr; }
  .factor-grid, .fund-types, .cw-launches { grid-template-columns: 1fr; }
  .ex-grid { grid-template-columns: 1fr 1fr; }
  .dep-qr { flex-direction: column; }
  .act-tools { margin-left: 0; }
}
