
.ordinary-page-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:22px; margin:0 0 18px; padding:4px 0 18px; border-bottom:1px solid rgba(127,229,218,.14); }
.ordinary-page-intro h1 { margin:4px 0 5px; color:#f2f8f8; font-size:30px; line-height:1.15; letter-spacing:0; }
.ordinary-page-intro p { margin:0; color:#8fa2aa; font-size:14px; line-height:1.55; }
.ordinary-page-kicker { display:block; color:#58d9c5; font-size:11px; font-weight:900; letter-spacing:0; }
.ordinary-page-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.ordinary-page-actions .action-link { min-height:40px; display:inline-flex; align-items:center; justify-content:center; padding:8px 14px; border:1px solid rgba(32,219,196,.34); border-radius:6px; background:rgba(32,219,196,.10); }
.ordinary-page-actions .secondary-action { color:#c5d2d6; border-color:#2a3a43; background:#10171d; }
.ordinary-shell .profile-v129-layout,.ordinary-shell .history-v129-layout { display:grid; gap:14px; }
.ordinary-shell .profile-v129-layout { grid-template-columns:minmax(0,1.05fr) minmax(0,1.45fr); }
.ordinary-shell .profile-v129-identity,.ordinary-shell .profile-v129-profit { margin:0; }
.ordinary-shell .profile-v129-edit,.ordinary-shell .profile-v129-share { grid-column:1 / -1; margin:0; }
.ordinary-shell .profile-v129-identity { display:flex; align-items:center; min-height:166px; background:#0d151b; }
.ordinary-shell .profile-v129-identity .profile-hero { min-width:0; width:100%; }
.ordinary-shell .profile-v129-identity .profile-hero>div { min-width:0; }
.ordinary-shell .profile-v129-identity h1 { font-size:24px; overflow-wrap:anywhere; word-break:break-word; }
.ordinary-shell .profile-v129-identity .lead { overflow-wrap:anywhere; word-break:break-word; }
.ordinary-shell .profile-v129-profit { min-height:166px; }
.ordinary-shell .profile-v129-profit .section-head,.ordinary-shell .profile-v129-edit .section-head,.ordinary-shell .profile-v129-share .section-head,.ordinary-shell .history-v129-daily .section-head,.ordinary-shell .history-v129-records .section-head { margin-bottom:12px; }
.ordinary-shell .profile-v129-profit h2,.ordinary-shell .profile-v129-edit h2,.ordinary-shell .profile-v129-share h2,.ordinary-shell .history-v129-daily h2,.ordinary-shell .history-v129-records h2 { margin:3px 0 0; font-size:21px; }
.ordinary-shell .profile-profit { grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:0; }
.ordinary-shell .profile-profit>div { min-height:74px; padding:12px; border-radius:6px; background:#091117; }
.ordinary-shell .profile-profit strong { font-size:21px; }
.ordinary-shell .profile-v129-edit .stack-form,.ordinary-shell .profile-v129-share .stack-form { max-width:none; }
.ordinary-shell .profile-v129-edit .profile-links { padding-top:14px; border-top:1px solid rgba(127,229,218,.12); }
.ordinary-shell .profile-switch-row { border-radius:7px; background:#0b1319; }
.ordinary-shell .history-v129-overview .profit-history-spotlight { margin:0; }
.ordinary-shell .history-v129-chart>.panel { margin:0; }
.ordinary-shell .history-v129-daily,.ordinary-shell .history-v129-records { margin:0; }
.ordinary-shell .history-v129-records .pnl-tabs { margin-top:14px; }
.ordinary-shell .history-v129-records .pnl-summary { border-radius:7px; }
.ordinary-shell .history-v129-records .history-table-wrap { border-radius:7px; }
.home-task-overview { margin-bottom:18px; }
.home-task-overview .section-head { align-items:flex-end; }
.home-task-overview-state { padding:7px 10px; border:1px solid rgba(30,214,166,.25); border-radius:6px; color:#66ddc7; background:rgba(30,214,166,.06); font-size:12px; font-weight:800; }
.home-task-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.home-task-card { min-width:0; min-height:150px; display:flex; flex-direction:column; padding:16px; border:1px solid #27343b; border-radius:8px; background:#10181d; color:inherit; text-decoration:none; transition:border-color .16s ease,background-color .16s ease; }
.home-task-card:hover { border-color:#3d7970; background:#111d21; }
.home-task-card-danger { border-color:rgba(255,91,106,.42); }
.home-task-card-connected { border-color:rgba(30,214,166,.34); }
.home-task-card-head,.home-task-card-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.home-task-card-head strong { font-size:18px; }
.home-task-card-head span { padding:3px 7px; border:1px solid #34434a; border-radius:5px; color:#9cafb6; font-size:10px; font-weight:800; }
.home-task-card>small { margin-top:20px; color:#82949c; font-size:11px; }
.home-task-card>b { margin-top:5px; color:#e8f2f3; font-size:25px; line-height:1.1; font-variant-numeric:tabular-nums; }
.home-task-card-foot { margin-top:auto; padding-top:17px; color:#8fa1a8; font-size:11px; }
.home-task-card-foot span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-task-card-foot span:last-child { flex:0 0 auto; color:#c6d2d5; font-variant-numeric:tabular-nums; }
.home-exchange-context { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:22px; padding:14px 16px; border:1px solid #29373e; border-radius:8px; background:#10171d; }
.home-exchange-context>div { display:grid; gap:4px; }
.home-exchange-context>div span { color:#82949c; font-size:11px; font-weight:800; }
.home-exchange-context>div strong { color:#eef8f8; font-size:14px; }
.home-exchange-context nav { display:grid; grid-template-columns:repeat(4,minmax(94px,1fr)); gap:8px; }
.home-exchange-context nav a { min-height:40px; display:grid; place-items:center; padding:8px 13px; border:1px solid #2a3941; border-radius:6px; color:#9eb0b7; background:#0a1116; font-weight:850; }
.home-exchange-context nav a.active { color:#06100f; border-color:#63ddcf; background:#63d4c7; }
.home-combined-pnl { margin-top:18px; }
.home-combined-pnl-head { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding-bottom:14px; border-bottom:1px solid rgba(127,229,218,.13); }
.home-combined-pnl-head>div { display:grid; gap:5px; }
.home-combined-pnl-head span,.home-combined-pnl-grid span { color:#82949c; font-size:12px; font-weight:800; }
.home-combined-pnl-head strong { font-size:28px; font-variant-numeric:tabular-nums; }
.home-combined-pnl-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding-top:14px; }
.home-combined-pnl-grid>div { display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 8px; padding:10px 12px; border:1px solid #25343b; border-radius:6px; background:#0a1217; }
.home-combined-pnl-grid strong { font-size:13px; font-variant-numeric:tabular-nums; }
.home-combined-pnl-grid small { grid-column:1/-1; color:#71838b; font-size:11px; }
.home-combined-pnl>p { margin:11px 0 0; color:#71838b; font-size:11px; }
.home-previous-pnl-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:16px; padding-top:14px; border-top:1px solid rgba(127,229,218,.13); }
.home-previous-pnl-head span { color:#dbe7e9; font-size:14px; font-weight:800; }
.home-previous-pnl-head small { color:#71838b; font-size:11px; }
.home-account-overview,.home-connection-summary { margin-top:22px; }
.home-account-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.home-account-grid article { min-width:0; min-height:116px; display:grid; align-content:center; gap:7px; padding:16px; border:1px solid #28363d; border-radius:8px; background:#10171d; }
.home-account-grid span,.home-account-grid small { color:#82949c; font-size:11px; }
.home-account-grid strong { color:#eef8f8; font-size:22px; overflow-wrap:anywhere; }
.home-connection-summary>div:last-child { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.home-connection-summary>div:last-child a { display:flex; justify-content:space-between; gap:10px; padding:14px 16px; border:1px solid #28363d; border-radius:8px; background:#10171d; }
.home-connection-summary a span { font-size:12px; font-weight:850; }
.home-connection-summary a span.connected { color:#45dda3; }
.home-connection-summary a span.pending { color:#e3b65c; }
.leaderboard-panel .lb-head { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.leaderboard-panel h2 { margin:2px 0 0; }
.lb-tabs { display:inline-flex; gap:4px; background:rgba(255,255,255,.04); padding:3px; border-radius:999px; }
.lb-tab { padding:5px 14px; border-radius:999px; font-size:13px; font-weight:600; color:#9fb0b8; text-decoration:none; }
.lb-tab.active { background:linear-gradient(135deg,#1ed6a6,#12b6d8); color:#04231f; }
.lb-metric-tabs { display:inline-flex; gap:4px; background:rgba(255,255,255,.04); padding:3px; border-radius:999px; }
.lb-metric-tab { padding:5px 16px; border-radius:999px; font-size:13px; font-weight:700; color:#9fb0b8; text-decoration:none; }
.lb-metric-tab.active { background:linear-gradient(135deg,#f0b90b,#f5c542); color:#241a02; }
.leaderboard-panel .lb-tabs { margin-bottom:12px; }
.field-hint { font-weight:400; color:#7f9098; font-size:12px; margin-left:6px; }
.profile-switch-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border-radius:14px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); }
.profile-switch-text { display:flex; flex-direction:column; gap:3px; }
.profile-switch-text strong { font-size:14px; color:#e8f0f2; }
.profile-switch-text small { font-size:12px; color:#8fa3ab; line-height:1.4; }
.switch { position:relative; display:inline-block; width:48px; height:28px; flex:0 0 auto; cursor:pointer; }
.switch input { position:absolute; opacity:0; width:0; height:0; }
.switch-slider { position:absolute; inset:0; background:rgba(255,255,255,.14); border-radius:999px; transition:background .2s; }
.switch-slider::before { content:""; position:absolute; height:22px; width:22px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform .2s; box-shadow:0 1px 3px rgba(0,0,0,.4); }
.switch input:checked + .switch-slider { background:linear-gradient(135deg,#1ed6a6,#12b6d8); }
.switch input:checked + .switch-slider::before { transform:translateX(20px); }
.switch input:focus-visible + .switch-slider { outline:2px solid #1ed6a6; outline-offset:2px; }
.avatar-pick-upload { position:relative; }
.avatar-pick-upload .avatar-upload-preview { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; background-size:cover; background-position:center; border:1px dashed rgba(255,255,255,.28); color:#9fb0b8; }
.avatar-pick-upload.has-image .avatar-upload-preview, .avatar-pick-upload .avatar-upload-preview[style*="url"] { border-style:solid; }
.avatar-upload-plus { font-size:18px; line-height:1; font-weight:700; }
.avatar-upload-label { font-size:10px; line-height:1.2; }
.avatar-pick-upload.has-image .avatar-upload-plus, .avatar-pick-upload.has-image .avatar-upload-label { display:none; }
.mono { font-variant-numeric:tabular-nums; font-feature-settings:"tnum"; }
.dr-hero { display:flex; align-items:center; justify-content:space-between; gap:12px; background:linear-gradient(135deg,rgba(30,214,166,.10),rgba(18,182,216,.05)); border:1px solid rgba(30,214,166,.18); border-radius:16px; padding:16px 18px; margin-bottom:14px; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.dr-hero-l { display:flex; align-items:center; gap:12px; }
.dr-hero-ic { font-size:28px; filter:drop-shadow(0 0 8px rgba(30,214,166,.5)); }
.dr-hero-t { font-size:19px; font-weight:800; letter-spacing:.5px; }
.dr-hero-s { font-size:12px; color:#8fa3ab; margin-top:3px; display:flex; align-items:center; gap:6px; }
.dr-live { width:8px; height:8px; border-radius:50%; background:#1ed6a6; display:inline-block; animation:radarPulse 2s infinite; }
@keyframes radarPulse { 0%{box-shadow:0 0 0 0 rgba(30,214,166,.55)} 70%{box-shadow:0 0 0 8px rgba(30,214,166,0)} 100%{box-shadow:0 0 0 0 rgba(30,214,166,0)} }
.dr-hero-stat { text-align:right; }
.dr-hero-stat .rn { font-size:28px; font-weight:800; color:#1ed6a6; line-height:1; text-shadow:0 0 16px rgba(30,214,166,.4); }
.dr-hero-stat .rl { font-size:11px; color:#8fa3ab; margin-top:3px; }
.dr-wr { margin-left:18px; padding-left:18px; border-left:1px solid rgba(255,255,255,.08); }
.dr-wr .dr-wr-hi { color:#1ed6a6; text-shadow:0 0 16px rgba(30,214,166,.4); }
.dr-wr .dr-wr-mid { color:#e0b64a; text-shadow:none; }
.dr-wr .dr-wr-lo { color:#e06a6a; text-shadow:none; }
.dr-wr .dr-wr-acc { color:#8fa3ab; text-shadow:none; font-size:20px; }
.dr-filters { display:flex; gap:6px; margin-bottom:12px; flex-wrap:wrap; }
.dr-fc { font-size:13px; padding:6px 14px; border-radius:999px; background:rgba(255,255,255,.04); color:#9fb0b8; cursor:pointer; user-select:none; transition:all .15s; }
.dr-fc:hover { background:rgba(255,255,255,.08); }
.dr-fc.active { background:linear-gradient(135deg,#1ed6a6,#12b6d8); color:#04231f; font-weight:700; }
.dr-list { display:flex; flex-direction:column; gap:7px; }
.dr-row { background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.06); border-radius:13px; padding:12px 14px; cursor:pointer; transition:border-color .15s,background .15s; }
.dr-row:hover { background:rgba(255,255,255,.045); border-color:rgba(255,255,255,.12); }
.dr-row.strong { border-left:3px solid #1ed6a6; box-shadow:inset 0 0 24px rgba(30,214,166,.05); }
.dr-row.dim { opacity:.5; }
.dr-row.open { border-color:rgba(30,214,166,.3); }
.dr-row.dr-focus { border-color:rgba(79,224,189,.68); background:linear-gradient(135deg,rgba(30,214,166,.13),rgba(255,255,255,.035)); box-shadow:0 0 0 1px rgba(79,224,189,.20),0 18px 44px rgba(30,214,166,.12); }
.dr-focus-note { margin:12px 0; padding:11px 13px; border:1px solid rgba(79,224,189,.34); border-radius:12px; color:#bfe8e2; background:rgba(30,214,166,.08); font-size:13px; font-weight:850; line-height:1.45; }
.dr-focus-note b { color:#4fe0bd; }
.dr-r1 { display:flex; align-items:center; gap:11px; }
.dr-av { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.04)); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:12px; letter-spacing:-.5px; flex:0 0 auto; }
.dr-name { display:flex; flex-direction:column; gap:3px; }
.dr-sym { font-size:16px; font-weight:800; letter-spacing:.3px; }
.dr-score { display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:20px; padding:0 6px; margin-left:8px; border-radius:7px; font-size:12px; font-weight:800; vertical-align:middle; font-variant-numeric:tabular-nums; }
.dr-score.hi { background:rgba(30,214,166,.18); color:#4fe0bd; box-shadow:0 0 10px rgba(30,214,166,.25); }
.dr-score.mid { background:rgba(240,159,39,.16); color:#f6b95a; }
.dr-score.lo { background:rgba(255,255,255,.06); color:#9fb0b8; }
.dr-tags { display:flex; gap:5px; flex-wrap:wrap; }
.dr-tag { font-size:11px; padding:1px 8px; border-radius:999px; }
.dr-tag.spot { background:rgba(226,75,74,.16); color:#ff8f8f; }
.dr-tag.perp { background:rgba(240,159,39,.16); color:#f6b95a; }
.dr-tag.multi { background:rgba(30,214,166,.16); color:#4fe0bd; }
.dr-tag.migrate { background:rgba(226,75,74,.2); color:#ff9a9a; }
.dr-tag.edge { background:rgba(255,255,255,.06); color:#9fb0b8; }
.dr-tag.monitor { background:rgba(240,159,39,.14); color:#f0b84a; border:1px solid rgba(240,159,39,.4); }
.dr-note-warn { color:#f0b84a; }
.dr-btn-ambush { background:linear-gradient(135deg,#c8901f,#e0a838) !important; }
/* 醒目下架横幅:交易所 logo+名 + 类型 + 币 */
.dr-db { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:11px 0 2px; padding:8px 11px 8px 47px;
  background:linear-gradient(90deg,rgba(226,75,74,.10),rgba(226,75,74,.02)); border-left:2px solid rgba(226,75,74,.55); border-radius:0 8px 8px 0; }
.dr-db-ex { display:inline-flex; align-items:center; gap:6px; }
.dr-db .exchange-logo-mark { width:26px; height:26px; font-size:10px; border-radius:6px; box-shadow:none; }
.dr-db-exn { font-size:13px; font-weight:800; color:#f0f5f7; letter-spacing:.2px; }
.dr-db-verb { font-size:12px; color:#ff9a9a; font-weight:700; }
.dr-db-kind { font-size:11px; font-weight:800; padding:2px 8px; border-radius:6px; }
.dr-db-kind.spot { background:rgba(226,75,74,.20); color:#ff8f8f; }
.dr-db-kind.perp { background:rgba(240,159,39,.20); color:#f6b95a; }
.dr-db-kind.monitor { background:rgba(240,159,39,.16); color:#f0b84a; }
.dr-db-sym { font-size:15px; font-weight:900; color:#fff; letter-spacing:.3px; margin-left:1px; }
.dr-expired { opacity:.62; }
.dr-expired .dr-db { background:linear-gradient(90deg,rgba(120,130,140,.10),transparent); border-left-color:rgba(120,130,140,.5); }
.dr-expired .dr-db-verb { color:#9aa7ad; }
.dr-fc-hist { margin-left:auto; opacity:.85; }
.dr-empty-active { font-size:13px; color:#8fa3ab; background:rgba(255,255,255,.03); border-radius:8px; padding:12px 14px; margin:6px 0; }
.dr-loop-link { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:7px 13px; border-radius:9px; color:#4fe0bd; border:1px solid rgba(79,224,189,.28); background:rgba(79,224,189,.08); font-size:12px; font-weight:900; text-decoration:none; white-space:nowrap; }
.dr-loop-link:hover { border-color:rgba(79,224,189,.5); background:rgba(79,224,189,.13); }
.dr-loop-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.dr-loop-priority { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,460px); gap:14px; align-items:stretch; margin:0 0 14px; padding:16px; border:1px solid rgba(127,229,218,.18); border-radius:16px; background:linear-gradient(135deg,rgba(79,224,189,.11),rgba(7,12,16,.78)); box-shadow:0 18px 44px rgba(0,0,0,.32); }
.dr-loop-priority.failed { border-color:rgba(255,91,99,.38); background:linear-gradient(135deg,rgba(255,91,99,.14),rgba(7,12,16,.82)); }
.dr-loop-priority.warning { border-color:rgba(240,159,39,.34); background:linear-gradient(135deg,rgba(240,159,39,.12),rgba(7,12,16,.82)); }
.dr-loop-priority-main { min-width:0; display:flex; flex-direction:column; justify-content:center; gap:8px; }
.dr-loop-priority-main h2 { margin:0; color:#eef8f8; font-size:22px; line-height:1.16; overflow-wrap:anywhere; }
.dr-loop-priority-main p { margin:0; color:#b5c6cc; font-size:13px; line-height:1.5; font-weight:800; overflow-wrap:anywhere; }
.dr-loop-priority-actions { min-width:0; display:flex; align-items:center; }
.dr-loop-priority-actions .dr-loop-actions { width:100%; margin:0; background:rgba(5,10,14,.44); }
.dr-loop-queue { margin:0 0 14px; padding:14px; border:1px solid rgba(127,229,218,.16); border-radius:16px; background:rgba(7,12,16,.58); box-shadow:0 16px 36px rgba(0,0,0,.22); }
.dr-loop-queue.clear { border-color:rgba(30,214,166,.24); background:rgba(30,214,166,.05); }
.dr-loop-queue-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px; }
.dr-loop-queue-head h2 { margin:4px 0 0; color:#eef8f8; font-size:20px; line-height:1.16; }
.dr-loop-queue-head p { margin:0; max-width:620px; color:#8fa3ab; font-size:12px; line-height:1.45; font-weight:800; overflow-wrap:anywhere; }
.dr-loop-queue-list { display:grid; gap:10px; }
.dr-loop-queue-row { display:grid; grid-template-columns:44px minmax(0,1fr) minmax(260px,430px); align-items:center; gap:12px; padding:12px; border:1px solid rgba(127,229,218,.13); border-radius:13px; background:rgba(5,10,14,.46); }
.dr-loop-queue-row.failed { border-color:rgba(255,91,99,.34); background:rgba(255,91,99,.07); }
.dr-loop-queue-row.warning { border-color:rgba(240,159,39,.32); background:rgba(240,159,39,.07); }
.dr-loop-queue-row.pending { border-color:rgba(127,229,218,.18); background:rgba(127,229,218,.05); }
.dr-loop-queue-row.recoverable { box-shadow:inset 3px 0 0 rgba(255,91,99,.72); }
.dr-loop-queue-row.sync { box-shadow:inset 3px 0 0 rgba(79,224,189,.78); }
.dr-loop-queue-row.manual { box-shadow:inset 3px 0 0 rgba(240,159,39,.78); }
.dr-loop-queue-row.waiting { box-shadow:inset 3px 0 0 rgba(127,229,218,.48); }
.dr-loop-queue-rank { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; color:#081112; background:#4fe0bd; font-size:14px; font-weight:950; box-shadow:0 10px 20px rgba(30,214,166,.18); }
.dr-loop-queue-main { min-width:0; }
.dr-loop-queue-main span { display:block; color:#8fa3ab; font-size:11px; font-weight:900; margin-bottom:4px; }
.dr-loop-queue-title { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.dr-loop-queue-title strong { display:block; color:#eef8f8; font-size:16px; line-height:1.2; overflow-wrap:anywhere; }
.dr-loop-queue-title em { display:inline-flex; align-items:center; min-height:22px; padding:3px 8px; border-radius:999px; color:#081112; background:#4fe0bd; font-size:11px; line-height:1; font-weight:950; font-style:normal; white-space:nowrap; }
.dr-loop-queue-row.recoverable .dr-loop-queue-title em { color:#fff; background:#ff5b63; }
.dr-loop-queue-row.sync .dr-loop-queue-title em { color:#071214; background:#4fe0bd; }
.dr-loop-queue-row.manual .dr-loop-queue-title em { color:#151006; background:#f6b95a; }
.dr-loop-queue-row.waiting .dr-loop-queue-title em { color:#d6eeee; background:rgba(127,229,218,.18); border:1px solid rgba(127,229,218,.24); }
.dr-loop-queue-main p { margin:6px 0 0; color:#b5c6cc; font-size:12px; line-height:1.45; font-weight:800; overflow-wrap:anywhere; }
.dr-loop-queue-main small { display:block; margin-top:4px; color:#8fa3ab; font-size:11px; line-height:1.4; font-weight:800; overflow-wrap:anywhere; }
.dr-loop-venue { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.dr-loop-venue span { display:inline-flex; align-items:center; gap:4px; min-height:24px; margin:0; padding:4px 8px; border-radius:999px; color:#8fa3ab; background:rgba(127,229,218,.06); border:1px solid rgba(127,229,218,.12); font-size:11px; line-height:1; font-weight:900; white-space:nowrap; }
.dr-loop-venue b { color:#eef8f8; font-weight:950; }
.dr-loop-venue.matched span { border-color:rgba(30,214,166,.22); background:rgba(30,214,166,.08); }
.dr-loop-venue.matched b { color:#4fe0bd; }
.dr-loop-venue.mismatch span { border-color:rgba(240,159,39,.22); background:rgba(240,159,39,.07); }
.dr-loop-venue.mismatch b { color:#f6b95a; }
.dr-loop-queue-actions { min-width:0; }
.dr-loop-queue-actions .dr-loop-actions { margin:0; background:rgba(5,10,14,.38); }
.dr-loop-list { display:grid; gap:14px; }
.dr-loop-card { border:1px solid rgba(127,229,218,.18); border-radius:14px; background:rgba(13,18,24,.86); padding:16px; box-shadow:0 16px 38px rgba(0,0,0,.30); }
.dr-loop-card.failed { border-color:rgba(255,91,99,.40); background:rgba(255,91,99,.07); }
.dr-loop-card.warning { border-color:rgba(240,159,39,.34); background:rgba(240,159,39,.06); }
.dr-loop-card.passed { border-color:rgba(30,214,166,.30); background:rgba(30,214,166,.05); }
.dr-loop-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
.dr-loop-head h2 { margin:4px 0 2px; font-size:24px; line-height:1.05; overflow-wrap:anywhere; }
.dr-loop-head p { margin:0; color:#8fa3ab; font-size:12px; font-weight:800; }
.dr-loop-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin:12px 0; }
.dr-loop-step { border:1px solid rgba(127,229,218,.14); border-radius:10px; background:rgba(7,12,16,.46); padding:10px; min-width:0; }
.dr-loop-step span { display:block; color:#8fa3ab; font-size:11px; font-weight:900; margin-bottom:5px; }
.dr-loop-step strong { display:block; color:#eef8f8; font-size:14px; margin-bottom:6px; }
.dr-loop-step p { margin:0; color:#8fa3ab; font-size:11px; line-height:1.42; font-weight:750; overflow-wrap:anywhere; }
.dr-loop-step.passed { border-color:rgba(30,214,166,.30); background:rgba(30,214,166,.07); }
.dr-loop-step.passed strong { color:#4fe0bd; }
.dr-loop-step.failed { border-color:rgba(255,91,99,.38); background:rgba(255,91,99,.08); }
.dr-loop-step.failed strong { color:#ff8f8f; }
.dr-loop-step.warning { border-color:rgba(240,159,39,.34); background:rgba(240,159,39,.08); }
.dr-loop-step.warning strong { color:#f6b95a; }
.dr-loop-trace { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; margin:12px 0; padding:12px 14px; border:1px solid rgba(127,229,218,.14); border-radius:12px; background:rgba(7,12,16,.36); }
.dr-loop-trace strong { display:block; color:#eef8f8; font-size:14px; margin-bottom:5px; }
.dr-loop-trace p { margin:0; color:#8fa3ab; font-size:12px; line-height:1.45; font-weight:750; overflow-wrap:anywhere; }
.dr-loop-trace.failed { border-color:rgba(255,91,99,.34); background:rgba(255,91,99,.07); }
.dr-loop-trace.failed strong { color:#ff8f8f; }
.dr-loop-trace.warning { border-color:rgba(240,159,39,.32); background:rgba(240,159,39,.08); }
.dr-loop-trace.warning strong { color:#f6b95a; }
.dr-loop-trace.passed { border-color:rgba(30,214,166,.28); background:rgba(30,214,166,.06); }
.dr-loop-trace.passed strong { color:#4fe0bd; }
.dr-loop-trace-chips { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; max-width:520px; }
.dr-loop-trace-chips span { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:999px; color:#8fa3ab; background:rgba(127,229,218,.07); border:1px solid rgba(127,229,218,.10); font-size:11px; font-weight:850; white-space:nowrap; }
.dr-loop-trace-chips b { color:#eef8f8; font-variant-numeric:tabular-nums; }
.dr-loop-anomalies { margin:12px 0; padding:12px 14px; border:1px solid rgba(240,159,39,.26); border-radius:12px; background:rgba(240,159,39,.07); }
.dr-loop-anomalies>strong { display:block; color:#f6b95a; font-size:14px; margin-bottom:8px; }
.dr-loop-anomalies>p { margin:0; color:#8fa3ab; font-size:12px; line-height:1.45; font-weight:750; }
.dr-loop-anomalies.clear { border-color:rgba(30,214,166,.22); background:rgba(30,214,166,.04); }
.dr-loop-anomalies.clear>strong { color:#4fe0bd; }
.dr-loop-anomaly-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.dr-loop-anomaly-list article { min-width:0; border:1px solid rgba(127,229,218,.12); border-radius:10px; background:rgba(7,12,16,.44); padding:10px; }
.dr-loop-anomaly-list article strong { display:block; color:#eef8f8; font-size:13px; margin-bottom:5px; overflow-wrap:anywhere; }
.dr-loop-anomaly-list article p { margin:0; color:#8fa3ab; font-size:12px; line-height:1.45; font-weight:750; overflow-wrap:anywhere; }
.dr-loop-anomaly-list article.failed { border-color:rgba(255,91,99,.34); background:rgba(255,91,99,.08); }
.dr-loop-anomaly-list article.failed strong { color:#ff8f8f; }
.dr-loop-anomaly-list article.warning { border-color:rgba(240,159,39,.32); background:rgba(240,159,39,.08); }
.dr-loop-anomaly-list article.warning strong { color:#f6b95a; }
.dr-loop-recovery { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; margin:12px 0; padding:12px 14px; border:1px solid rgba(127,229,218,.16); border-radius:12px; background:rgba(127,229,218,.05); }
.dr-loop-recovery strong { display:block; color:#eef8f8; font-size:13px; margin-bottom:5px; }
.dr-loop-recovery p { margin:0; color:#8fa3ab; font-size:12px; line-height:1.45; font-weight:780; overflow-wrap:anywhere; }
.dr-loop-recovery.recoverable { border-color:rgba(30,214,166,.28); background:rgba(30,214,166,.06); }
.dr-loop-recovery.recoverable strong,.dr-loop-recovery.clear strong { color:#4fe0bd; }
.dr-loop-recovery.waiting,.dr-loop-recovery.pending { border-color:rgba(240,159,39,.28); background:rgba(240,159,39,.07); }
.dr-loop-recovery.waiting strong,.dr-loop-recovery.pending strong { color:#f6b95a; }
.dr-loop-recovery.manual,.dr-loop-recovery.mixed { border-color:rgba(255,91,99,.34); background:rgba(255,91,99,.07); }
.dr-loop-recovery.manual strong,.dr-loop-recovery.mixed strong { color:#ff8f8f; }
.dr-loop-recovery.clear { border-color:rgba(30,214,166,.24); background:rgba(30,214,166,.05); }
.dr-loop-recovery-chips { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; max-width:420px; }
.dr-loop-recovery-chips span { display:inline-flex; align-items:center; gap:4px; min-height:24px; padding:4px 8px; border-radius:999px; color:#8fa3ab; background:rgba(7,12,16,.42); border:1px solid rgba(127,229,218,.12); font-size:11px; line-height:1; font-weight:900; white-space:nowrap; }
.dr-loop-recovery-chips b { color:#eef8f8; font-variant-numeric:tabular-nums; }
.dr-loop-recovery-layers { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:2px; }
.dr-loop-recovery-layers span { min-width:0; display:grid; grid-template-columns:28px minmax(0,1fr); gap:2px 8px; align-items:start; padding:9px 10px; border-radius:10px; border:1px solid rgba(127,229,218,.12); background:rgba(5,10,14,.42); }
.dr-loop-recovery-layers b { grid-row:1/3; display:grid; place-items:center; width:24px; height:24px; border-radius:999px; color:#081112; background:#4fe0bd; font-size:12px; font-weight:950; font-variant-numeric:tabular-nums; }
.dr-loop-recovery-layers strong { margin:0; color:#eef8f8; font-size:12px; line-height:1.15; overflow-wrap:anywhere; }
.dr-loop-recovery-layers small { color:#8fa3ab; font-size:11px; line-height:1.38; font-weight:760; overflow-wrap:anywhere; }
.dr-loop-proofs { margin:12px 0; padding:12px 14px; border:1px solid rgba(127,229,218,.14); border-radius:12px; background:rgba(7,12,16,.34); }
.dr-loop-proofs-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.dr-loop-proofs-head strong { color:#eef8f8; font-size:14px; }
.dr-loop-proofs-head span { color:#8fa3ab; font-size:11px; font-weight:850; }
.dr-loop-proof-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.dr-loop-proof-card { min-width:0; border:1px solid rgba(127,229,218,.13); border-radius:11px; background:rgba(5,10,14,.46); padding:10px; }
.dr-loop-proof-card>strong { display:block; color:#eef8f8; font-size:14px; margin-bottom:8px; overflow-wrap:anywhere; }
.dr-loop-proof-card>.dr-loop-proof-cells { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.dr-loop-proof-cell { min-width:0; border:1px solid rgba(127,229,218,.10); border-radius:9px; background:rgba(7,12,16,.38); padding:8px; }
.dr-loop-proof-cell span { display:block; color:#8fa3ab; font-size:10px; font-weight:900; margin-bottom:4px; white-space:nowrap; }
.dr-loop-proof-cell p { margin:0; color:#8fa3ab; font-size:11px; line-height:1.38; font-weight:750; overflow-wrap:anywhere; }
.dr-loop-proof-cell.passed { border-color:rgba(30,214,166,.26); background:rgba(30,214,166,.07); }
.dr-loop-proof-cell.passed span { color:#4fe0bd; }
.dr-loop-proof-cell.failed { border-color:rgba(255,91,99,.34); background:rgba(255,91,99,.08); }
.dr-loop-proof-cell.failed span { color:#ff8f8f; }
.dr-loop-proof-cell.warning { border-color:rgba(240,159,39,.34); background:rgba(240,159,39,.08); }
.dr-loop-proof-cell.warning span { color:#f6b95a; }
.dr-loop-proof-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; padding-top:8px; border-top:1px dashed rgba(127,229,218,.14); }
.dr-loop-proof-actions>span { color:#8fa3ab; font-size:10px; font-weight:900; white-space:nowrap; }
.dr-loop-proof-actions>div { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:6px; min-width:0; }
.dr-loop-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:12px 0; padding:10px 12px; border:1px solid rgba(127,229,218,.14); border-radius:12px; background:rgba(127,229,218,.05); }
.dr-loop-actions>strong { color:#eef8f8; font-size:13px; white-space:nowrap; }
.dr-loop-actions>div { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; min-width:0; }
.dr-loop-empty { text-align:left; }
@media (max-width:900px){ .dr-loop-priority { grid-template-columns:1fr; } .dr-loop-queue-row { grid-template-columns:38px minmax(0,1fr); } .dr-loop-queue-actions { grid-column:1 / -1; } .dr-loop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .dr-loop-proof-list { grid-template-columns:1fr; } }
@media (max-width:560px){ .dr-loop-priority { padding:13px; } .dr-loop-priority-main h2 { font-size:19px; } .dr-loop-priority-actions .dr-loop-actions { display:block; } .dr-loop-queue { padding:12px; } .dr-loop-queue-head { display:block; } .dr-loop-queue-head p { margin-top:6px; } .dr-loop-queue-row { grid-template-columns:1fr; } .dr-loop-queue-rank { width:100%; height:30px; } .dr-loop-queue-actions .dr-loop-actions { display:block; } .dr-loop-grid { grid-template-columns:1fr; } .dr-loop-head { display:block; } .dr-loop-card { padding:13px; } .dr-loop-trace,.dr-loop-recovery { grid-template-columns:1fr; } .dr-loop-trace-chips,.dr-loop-recovery-chips { justify-content:flex-start; max-width:none; } .dr-loop-recovery-layers { grid-template-columns:1fr; } .dr-loop-anomaly-list { grid-template-columns:1fr; } .dr-loop-proof-card>.dr-loop-proof-cells { grid-template-columns:1fr; } .dr-loop-proofs-head { display:block; } .dr-loop-proofs-head span { display:block; margin-top:4px; } .dr-loop-proof-actions { display:block; } .dr-loop-proof-actions>div { justify-content:flex-start; margin-top:6px; } .dr-loop-proof-actions .action-link { width:100%; } .dr-loop-actions { display:block; } .dr-loop-actions>div { justify-content:flex-start; margin-top:8px; } .dr-loop-actions .action-link { width:100%; } }
/* 死亡追踪器 4 步进度条 */
.dr-stagebar { display:flex; align-items:center; margin:10px 0 2px; padding-left:47px; }
.dr-stp { display:flex; flex-direction:column; align-items:center; gap:3px; min-width:52px; }
.dr-stp-dot { width:20px; height:20px; line-height:20px; text-align:center; border-radius:50%; font-size:11px; font-weight:700; }
.dr-stp-lb { font-size:10px; white-space:nowrap; }
.dr-stp.done .dr-stp-dot { background:rgba(30,214,166,.18); color:#1ed6a6; }
.dr-stp.done .dr-stp-lb { color:#5fbfa4; }
.dr-stp.cur .dr-stp-dot { background:#e24b4a; color:#fff; box-shadow:0 0 12px rgba(226,75,74,.6); }
.dr-stp.cur .dr-stp-lb { color:#ff9a9a; font-weight:700; }
.dr-stp.todo .dr-stp-dot { background:rgba(255,255,255,.05); color:#5f6d75; border:1px solid rgba(255,255,255,.1); }
.dr-stp.todo .dr-stp-lb { color:#5f6d75; }
.dr-stp-line { flex:1; height:1px; background:rgba(255,255,255,.12); margin:0 2px; margin-bottom:14px; }
.dr-grow { flex:1; }
.dr-px { text-align:right; }
.dr-px .dr-p { font-size:16px; font-weight:700; }
.dr-px .dr-c { font-size:11px; font-weight:600; }
.dr-action { margin-left:6px; }
.dr-btn { padding:7px 14px !important; font-size:12px !important; border-radius:9px !important; white-space:nowrap; }
.dr-note { font-size:11px; color:#7f9098; white-space:nowrap; }
.dr-r2 { display:flex; flex-wrap:wrap; gap:12px; font-size:12px; color:#8fa3ab; margin-top:9px; padding-left:47px; }
.dr-i { font-style:normal; margin-right:3px; opacity:.7; }
.dr-detail { margin-top:11px; padding-top:11px; border-top:1px dashed rgba(255,255,255,.1); }
.dr-window { margin-bottom:10px; padding:10px 11px; border-radius:10px; background:linear-gradient(135deg,rgba(30,214,166,.07),rgba(255,255,255,.025)); border:1px solid rgba(30,214,166,.16); }
.dr-window-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; color:#c3d0d6; }
.dr-window-head strong { color:#eef7f7; font-size:13px; }
.dr-window-head b { color:#4fe0bd; }
.dr-window ul { margin:8px 0 0 18px; padding:0; color:#9fb0b8; font-size:12px; line-height:1.55; }
.dr-window-warn { color:#f0b06a !important; }
.dr-window-pill { display:inline-flex; align-items:center; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:800; }
.dr-window-pill.openable,.dr-state.openable { background:rgba(30,214,166,.15); color:#4fe0bd; }
.dr-window-pill.watch,.dr-state.watch { background:rgba(240,159,39,.15); color:#f6b95a; }
.dr-window-pill.close_only,.dr-state.close_only { background:rgba(240,159,39,.18); color:#f6b95a; }
.dr-window-pill.blocked,.dr-window-pill.expired,.dr-state.blocked,.dr-state.expired { background:rgba(226,75,74,.16); color:#ff8f8f; }
.dr-summary { font-size:12px; color:#c3d0d6; line-height:1.6; background:rgba(255,255,255,.03); border-radius:8px; padding:9px 11px; margin-bottom:10px; }
.dr-comp { font-size:12px; color:#c9b98a; background:rgba(201,185,138,.08); border-radius:8px; padding:8px 11px; margin-bottom:10px; }
.dr-comp-n { color:#8a8368; }
.dr-cap-t { color:#7f93aa; font-size:11px; padding:0 4px; border:1px solid rgba(127,147,170,.35); border-radius:4px; }
.dr-unlock { color:#c9a24a; font-size:11px; }
.dr-unlock-cliff { color:#ff8f5a; font-size:11px; font-weight:700; }
.dr-detail-h { font-size:12px; color:#8fa3ab; margin-bottom:8px; }
.dr-order { margin-top:11px; padding:12px; border-radius:12px; background:rgba(255,255,255,.03); border:1px solid rgba(255,120,120,.18); }
.dr-order-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:12px; }
@media (max-width:560px){ .dr-order-grid { grid-template-columns:repeat(2,1fr); } }
.dr-of { display:flex; flex-direction:column; gap:5px; font-size:11px; color:#8fa3ab; }
.dr-of input, .dr-of select { font-size:13px; padding:7px 8px; border-radius:8px; background:rgba(255,255,255,.06); color:#e8f0f2; border:1px solid rgba(255,255,255,.14); }
.dr-of input:focus, .dr-of select:focus { outline:1px solid rgba(30,214,166,.5); }
.dr-seg { display:inline-flex; background:rgba(255,255,255,.05); border-radius:8px; padding:2px; gap:2px; }
.dr-seg label { flex:1; display:flex; align-items:center; justify-content:center; gap:4px; font-size:12px; color:#c3d0d6; padding:6px 8px; border-radius:6px; cursor:pointer; }
.dr-seg input { accent-color:#1ed6a6; }
.dr-order-go { width:100%; padding:10px; font-size:14px; }
.dr-order-warn { font-size:12px; color:#f0b06a; background:rgba(240,176,106,.1); border:1px solid rgba(240,176,106,.28); border-radius:8px; padding:8px 10px; margin-bottom:11px; line-height:1.5; }
.dr-order-warn-strong { color:#ff8f7a; background:rgba(255,120,90,.1); border-color:rgba(255,120,90,.32); }
.dr-btn-unlock { background:transparent; border:1px solid rgba(255,255,255,.22); color:#9fb0b8; }
.dr-btn-unlock:hover { border-color:rgba(255,143,122,.5); color:#ffb0a0; }
.dr-vtable { width:100%; border-collapse:collapse; font-size:12px; }
.dr-vtable th { text-align:left; color:#7f9098; font-weight:500; padding:4px 6px; border-bottom:1px solid rgba(255,255,255,.06); }
.dr-vtable td { padding:6px; }
.dr-state { display:inline-flex; align-items:center; justify-content:center; min-width:48px; padding:2px 7px; border-radius:999px; font-size:11px; font-weight:800; white-space:nowrap; }
.dr-rec { font-size:10px; padding:1px 6px; border-radius:999px; background:rgba(30,214,166,.18); color:#4fe0bd; }
.dr-muted { color:#7f9098; }
.dr-ann { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:#4fc3e0; text-decoration:none; margin-top:8px; }
@media (max-width:720px){
  .dr-vtable { display:block; overflow-x:auto; white-space:nowrap; }
  .dr-vtable td:last-child { white-space:normal; min-width:160px; }
}
.lb-list { display:flex; flex-direction:column; gap:2px; }
.lb-row { display:grid; grid-template-columns:34px 30px 1fr auto; align-items:center; gap:10px; padding:9px 10px; border-radius:12px; }
.lb-row:nth-child(odd) { background:rgba(255,255,255,.02); }
.lb-row.lb-me { background:rgba(30,214,166,.10); border:1px solid rgba(30,214,166,.30); }
.lb-rank { font-size:15px; font-weight:800; text-align:center; color:#8fa3ab; }
.lb-rank-1,.lb-rank-2,.lb-rank-3 { font-size:18px; }
.lb-avatar { width:30px; height:30px; border-radius:50%; background-size:cover; background-position:center; display:inline-flex; align-items:center; justify-content:center; background-color:rgba(255,255,255,.08); }
.lb-avatar-text { font-size:13px; font-weight:700; color:#cfe; }
.lb-avatar-emoji { font-size:17px; background-color:rgba(255,255,255,.08); }
.lb-name { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lb-pnl { font-weight:800; font-variant-numeric:tabular-nums; text-align:right; grid-column:4; }
.lb-meta { grid-column:3/5; font-size:11px; color:#7f9098; }
.lb-empty { padding:24px; text-align:center; color:#8fa3ab; }
.lb-mine { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:12px; padding:12px; border-radius:14px; background:rgba(30,214,166,.06); border:1px solid rgba(30,214,166,.18); }
.lb-mine-item { display:flex; flex-direction:column; gap:2px; }
.lb-mine-item span { font-size:11px; color:#8fa3ab; }
.lb-mine-item strong { font-size:16px; }
.lb-note { margin:10px 2px 0; font-size:11px; color:#6f8088; }
.gainers-entry-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; }
.gainers-entry-card { display:flex; flex-direction:column; gap:6px; padding:14px; border-radius:14px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.07); text-decoration:none; color:inherit; transition:border-color .15s; }
.gainers-entry-card:hover { border-color:rgba(30,214,166,.4); }
.gainers-entry-go { font-size:12px; color:#1ed6a6; }
.user-avatar { width:34px; height:34px; border-radius:50%; background-size:cover; background-position:center; display:inline-flex; align-items:center; justify-content:center; background-color:rgba(255,255,255,.10); flex:0 0 auto; }
.user-avatar-text { font-weight:700; color:#cfe; }
.user-avatar-emoji { font-size:19px; }
.user-avatar-sm { width:34px; height:34px; }
.user-avatar-lg { width:64px; height:64px; font-size:30px; }
.avatar-menu { position:relative; }
.avatar-trigger { background:none; border:none; padding:0; cursor:pointer; border-radius:50%; }
.avatar-trigger:hover { box-shadow:0 0 0 2px rgba(30,214,166,.5); }
.avatar-dropdown { position:absolute; right:0; top:calc(100% + 8px); width:230px; background:#0e1319; border:1px solid rgba(255,255,255,.10); border-radius:14px; padding:12px; box-shadow:0 12px 40px rgba(0,0,0,.5); display:none; z-index:400; }
.avatar-menu.open .avatar-dropdown { display:block; }
.avatar-dd-head { display:flex; align-items:center; gap:10px; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.08); }
.avatar-dd-head strong { display:block; font-size:14px; }
.avatar-dd-head span { font-size:11px; color:#8fa3ab; word-break:break-all; }
.avatar-dd-info { display:flex; justify-content:space-between; gap:8px; padding:10px 2px; border-bottom:1px solid rgba(255,255,255,.08); }
.avatar-dd-info div { display:flex; flex-direction:column; gap:2px; }
.avatar-dd-info span { font-size:11px; color:#8fa3ab; }
.avatar-dd-info strong { font-size:13px; }
.avatar-dd-links { display:flex; flex-direction:column; padding:6px 0; }
.avatar-dd-links a { padding:8px 6px; border-radius:8px; text-decoration:none; color:inherit; font-size:14px; }
.avatar-dd-links a:hover { background:rgba(255,255,255,.05); }
.avatar-dd-logout { width:100%; padding:9px; border-radius:10px; border:1px solid rgba(255,90,90,.35); background:rgba(255,90,90,.10); color:#ff9d9d; font-weight:600; cursor:pointer; }
.profile-hero { display:flex; align-items:center; gap:16px; }
.profile-avatar-field { margin:6px 0; }
.field-label { display:block; font-size:12px; color:#8fa3ab; margin-bottom:6px; }
.avatar-pick-grid { display:flex; flex-wrap:wrap; gap:8px; }
.avatar-pick { cursor:pointer; }
.avatar-pick input { display:none; }
.avatar-pick .user-avatar { border:2px solid transparent; }
.avatar-pick input:checked + .user-avatar { border-color:#1ed6a6; box-shadow:0 0 0 2px rgba(30,214,166,.3); }
.profile-links { display:flex; gap:14px; flex-wrap:wrap; margin-top:12px; }
/* 每单金额不足以开的币：动态置灰不可选 */
.amount-untradeable { opacity:.4; }
button.table-pick:disabled { opacity:.5; cursor:not-allowed; }
.close-countdown { display:inline-flex; align-items:center; gap:6px; margin:4px 0 2px; padding:2px 9px; border-radius:999px; font-size:12px; font-weight:600; color:#ffd98a; background:rgba(255,196,77,.12); border:1px solid rgba(255,196,77,.30); white-space:nowrap; }
.close-countdown-value { font-variant-numeric:tabular-nums; letter-spacing:.4px; }
.close-countdown.close-countdown-soon { color:#ff9d9d; background:rgba(255,90,90,.14); border-color:rgba(255,90,90,.40); animation:closePulse 1s ease-in-out infinite; }
.close-countdown.close-countdown-due { color:#ff7676; background:rgba(255,60,60,.18); border-color:rgba(255,60,60,.5); }
@keyframes closePulse { 0%,100%{opacity:1;} 50%{opacity:.55;} }
/* 仓位卡片中间大号胶囊倒计时（标签与时间同一行） */
.okx-position-card .position-card-top { align-items:center; }
.position-countdown-center { flex:1 1 auto; display:flex; align-items:center; justify-content:center; padding:0 16px; }
.close-countdown-big { flex-direction:row; align-items:center; gap:12px; margin:0; padding:12px 26px; border-radius:16px; white-space:nowrap; }
.close-countdown-big .close-countdown-label { font-size:16px; font-weight:700; opacity:.95; }
.close-countdown-big .close-countdown-value { font-size:38px; font-weight:800; line-height:1; letter-spacing:1px; }
/* 卡片右侧平仓按钮放大居中 */
.position-actions { display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:10px; min-width:120px; }
.okx-position-card .position-actions button { font-size:17px; font-weight:700; padding:14px 34px; border-radius:14px; }
@media (max-width:640px){
  .position-card-top { flex-wrap:wrap; }
  .position-countdown-center { order:3; width:100%; justify-content:flex-start; padding:8px 0 0; }
  .close-countdown-big .close-countdown-value { font-size:30px; }
  .position-actions { min-width:0; }
}
/* 交易所标签：图标 + 持仓数徽章 */
.exchange-switch-tabs .ex-tab { display:inline-flex; align-items:center; gap:8px; }
.ex-tab-icon { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:6px; font-size:11px; font-weight:800; flex:0 0 auto; }
.ex-tab-icon-svg { background:transparent; }
.ex-tab-icon-svg svg { width:20px; height:20px; display:block; }
.ex-tab-count { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; font-size:12px; font-weight:800; background:rgba(255,255,255,.10); color:#9fb3bd; }
/* 盈亏记录 交易所标签 + 汇总条 */
.pnl-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 12px; }
.pnl-tab { display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border-radius:12px; border:1px solid rgba(127,229,218,.2); background:rgba(2,8,12,.5); color:var(--ink); cursor:pointer; font-weight:700; font-size:14px; text-decoration:none; }
.pnl-tab:hover { border-color:rgba(46,230,180,.45); }
.pnl-tab.active { background:rgba(46,230,180,.14); border-color:rgba(46,230,180,.55); }
.pnl-tab .ex-tab-icon { width:20px; height:20px; }
.pnl-tab-badge { font-size:12px; font-weight:800; font-variant-numeric:tabular-nums; padding:1px 7px; border-radius:999px; background:rgba(255,255,255,.07); }
.pnl-tab-badge.profit-up { color:#5ef0bf; background:rgba(46,230,180,.14); }
.pnl-tab-badge.profit-down { color:#ff8f8f; background:rgba(255,90,90,.14); }
.pnl-summary-wrap { margin-bottom:14px; }
.pnl-summary { display:flex; flex-wrap:wrap; gap:10px; }
.pnl-summary[hidden] { display:none; }
.pnl-summary > div { flex:1 1 130px; border:1px solid rgba(127,229,218,.18); border-radius:10px; padding:12px 14px; background:rgba(2,8,12,.55); }
.pnl-summary > div span { display:block; color:var(--muted); font-size:12px; font-weight:700; margin-bottom:5px; }
.pnl-summary > div strong { font-size:22px; line-height:1.1; }
.ex-tab-count.has { background:#12d69a; color:#04231f; box-shadow:0 0 10px rgba(18,214,154,.5); }
.exchange-switch-tabs .ex-tab.active .ex-tab-count { background:rgba(0,0,0,.25); color:#04231f; }
.exchange-switch-tabs .ex-tab.active .ex-tab-count.has { background:#04231f; color:#5ef0bf; }
:root {
  --bg: #07090d;
  --ink: #eef8f8;
  --muted: #91a3ad;
  --line: rgba(127, 229, 218, .18);
  --line-strong: rgba(127, 229, 218, .34);
  --panel: rgba(13, 18, 24, .92);
  --panel-soft: rgba(17, 25, 32, .78);
  --shell: #080b10;
  --shell-2: #101820;
  --accent: #20dbc4;
  --accent-strong: #72ffe9;
  --amber: #ffc14d;
  --amber-bg: rgba(255, 193, 77, .13);
  --danger: #ff334d;
  --danger-bg: rgba(255, 51, 77, .16);
  --success: #19f06f;
  --success-bg: rgba(25, 240, 111, .15);
  --green: #19f06f;
  --red: #ff334d;
  --shadow: 0 20px 48px rgba(0, 0, 0, .34);
  --glow: 0 0 0 1px rgba(32, 219, 196, .12), 0 0 28px rgba(32, 219, 196, .10);
}
* { box-sizing: border-box; }
html { background: #07090d; }  /* 导航跳转前深色兜底，杜绝整页刷新的白闪，让切页无缝轻快 */
.open-success-toast { position:fixed; top:24px; left:50%; transform:translate(-50%,-24px); z-index:10000; display:flex; align-items:center; gap:12px; padding:14px 22px; border-radius:16px; background:linear-gradient(135deg,rgba(30,214,166,.96),rgba(18,182,216,.96)); color:#04231f; box-shadow:0 12px 40px rgba(30,214,166,.35); opacity:0; transition:opacity .35s, transform .35s; pointer-events:none; }
.open-success-toast.show { opacity:1; transform:translate(-50%,0); }
.open-success-toast .ost-icon { font-size:26px; }
.open-success-toast strong { display:block; font-size:16px; font-weight:800; }
.open-success-toast span { font-size:12px; opacity:.85; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(32, 219, 196, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 219, 196, .025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(32, 219, 196, .06), transparent 260px),
    linear-gradient(135deg, #07090d 0%, #0c1118 48%, #07110f 100%);
  background-size: 32px 32px, 32px 32px, auto, auto;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.top { position: sticky; top: 0; z-index: 300; min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(7, 10, 15, .92); color: white; border-bottom: 1px solid rgba(32, 219, 196, .20); box-shadow: 0 18px 44px rgba(0,0,0,.30); backdrop-filter: blur(14px); }
.brand { font-weight: 900; font-size: 18px; letter-spacing: 0; color: #f5ffff; text-shadow: 0 0 18px rgba(32, 219, 196, .36); }
.userbar { display: flex; align-items: center; gap: 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 11px 16px; border: 1px solid rgba(127, 229, 218, .20); background: rgba(14, 21, 29, .72); border-radius: 8px; color: #a9bac2; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.tabs a:hover { border-color: rgba(32, 219, 196, .45); color: #f2ffff; background: rgba(20, 31, 40, .86); }
.tabs a.active { color: #06100f; background: linear-gradient(135deg, var(--accent), #9af7e4); border-color: var(--accent-strong); box-shadow: 0 0 0 1px rgba(32,219,196,.18), 0 12px 34px rgba(32,219,196,.18); }
.ordinary-sidebar { position:fixed; inset:0 auto 0 0; z-index:320; width:260px; display:flex; flex-direction:column; padding:24px 18px 20px; border-right:1px solid rgba(127,229,218,.16); background:#090e13; box-shadow:18px 0 42px rgba(0,0,0,.20); }
.ordinary-sidebar-brand { display:flex; align-items:center; gap:12px; min-height:52px; padding:0 8px 22px; border-bottom:1px solid rgba(127,229,218,.14); }
.ordinary-sidebar-brand>span { width:42px; height:42px; display:grid; place-items:center; flex:0 0 auto; border-radius:8px; background:var(--accent); color:#06100f; font-size:20px; font-weight:950; }
.ordinary-sidebar-brand>strong { display:grid; gap:3px; color:#f3ffff; font-size:17px; }
.ordinary-sidebar-brand small { color:#7f929a; font-size:12px; font-weight:700; }
.ordinary-sidebar .tabs { display:grid; gap:7px; margin:26px 0 20px; }
.ordinary-sidebar .tabs a { min-height:48px; display:flex; align-items:center; padding:11px 14px; border-color:transparent; background:transparent; box-shadow:none; }
.ordinary-sidebar .tabs a:hover { border-color:rgba(32,219,196,.18); background:rgba(32,219,196,.06); }
.ordinary-sidebar .tabs a.active { color:var(--accent-strong); border-color:transparent; background:rgba(32,219,196,.10); box-shadow:inset 3px 0 0 var(--accent); }
.ordinary-sidebar-account { display:flex; align-items:center; gap:10px; margin-top:auto; padding:16px 8px 0; border-top:1px solid rgba(127,229,218,.14); }
.ordinary-sidebar-account>span { min-width:0; display:grid; gap:3px; }
.ordinary-sidebar-account strong,.ordinary-sidebar-account small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ordinary-sidebar-account strong { color:#edfafa; font-size:14px; }
.ordinary-sidebar-account small { color:#68dfc8; font-size:11px; font-weight:800; }
.ordinary-shell .top { margin-left:260px; min-height:64px; padding:0 28px; box-shadow:none; background:rgba(7,11,15,.96); }
.ordinary-shell .top>.brand { color:#dce8ea; text-shadow:none; font-size:16px; }
.ordinary-shell .wrap { width:auto; max-width:1480px; margin:0 auto 0 260px; padding:30px 36px 48px; }
.mobile-bottom-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(127,229,218,.22); background: rgba(8, 14, 20, .96); backdrop-filter: blur(10px); gap: 6px; justify-content: space-around; box-shadow: 0 -8px 24px rgba(0,0,0,.28); }
.mobile-bottom-nav a { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 4px; border-radius: 8px; color: #9eb4bc; font-weight: 800; font-size: 12px; text-align: center; text-decoration: none; border: 1px solid transparent; }
.mobile-bottom-nav a span { overflow-wrap: anywhere; line-height: 1.2; }
.mobile-bottom-nav a.active { color: #06100f; background: linear-gradient(135deg, var(--accent), #9af7e4); border-color: var(--accent-strong); box-shadow: 0 0 0 1px rgba(32,219,196,.18); }
.mobile-bottom-nav a:hover { color: #f2ffff; border-color: rgba(32,219,196,.28); background: rgba(20, 31, 40, .72); }
.mobile-bottom-nav a.active:hover { color: #06100f; }
.mobile-nav-more { position: relative; flex: 1 1 0; min-width: 0; }
.mobile-nav-more summary { list-style: none; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 4px; border-radius: 8px; color: #9eb4bc; font-weight: 800; font-size: 12px; cursor: pointer; border: 1px solid transparent; }
.mobile-nav-more summary::-webkit-details-marker { display: none; }
.mobile-nav-more summary.active { color: #06100f; background: linear-gradient(135deg, var(--accent), #9af7e4); border-color: var(--accent-strong); box-shadow: 0 0 0 1px rgba(32,219,196,.18); }
.mobile-nav-more-menu { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 168px; display: grid; gap: 6px; padding: 10px; border: 1px solid rgba(127,229,218,.24); border-radius: 10px; background: rgba(8, 14, 20, .98); box-shadow: 0 -10px 28px rgba(0,0,0,.32); z-index: 50; }
.mobile-nav-more-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: #c9dce0; font-weight: 800; font-size: 13px; text-decoration: none; border: 1px solid transparent; }
.mobile-nav-more-menu a:hover { border-color: rgba(32,219,196,.28); background: rgba(20, 31, 40, .72); color: #f2ffff; }
.mobile-nav-more-menu a.active { color: #06100f; background: linear-gradient(135deg, var(--accent), #9af7e4); border-color: var(--accent-strong); }
.positions-panel { display: grid; gap: 16px; }
.panel.positions-focus-panel { padding:0; border:0; background:transparent; box-shadow:none; }
.panel.positions-focus-panel::before { display:none; }
.positions-page-head { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px 18px; margin-bottom:12px; }
.positions-page-head h1 { margin:0; font-size:22px; white-space:nowrap; }
.positions-page-head .exchange-switch-tabs { grid-column:2; grid-row:1; grid-template-columns:repeat(4,minmax(72px,1fr)); }
.positions-page-head .api-status { grid-column:1 / -1; min-height:0; padding:9px 13px; }
.positions-page-head .api-status span { margin:0 9px 0 0; }
.positions-page-head .api-status strong { display:inline; margin:0; font-size:14px; }
.positions-page-head .api-status p { display:inline; font-size:12px; }
.positions-head { align-items: center; }
@media (max-width:1100px) {
  .positions-page-head { grid-template-columns:minmax(0,1fr); }
  .positions-page-head .exchange-switch-tabs { grid-column:1; grid-row:auto; grid-template-columns:repeat(4,minmax(0,1fr)); }
  .positions-page-head .exchange-switch-tabs a { min-width:0; padding:8px 3px; }
  .positions-page-head .exchange-switch-tabs .ex-tab-icon { display:none; }
  .positions-page-head .exchange-switch-tabs .ex-tab-count { display:none; }
}
.position-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.position-toolbar .position-close-form { margin: 0; }
.position-toolbar .position-close-form button, .position-toolbar .action-link { min-height: 44px; margin-top: 0; }
.position-close-form .mini-danger { min-width: 74px; min-height: 36px; padding: 8px 12px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
.position-sync-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,196,86,.28); background: rgba(255,196,86,.10); color: #f4d88f; }
.position-sync-status strong { color: #fff6cf; font-size: 15px; }
.position-sync-status span { color: #cdbf95; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.position-sync-status.connected { border-color: rgba(78,230,138,.30); background: rgba(78,230,138,.10); color: #aaf4c2; }
.position-sync-status.connected strong { color: #d9ffe6; }
.position-sync-status.connected span { color: #a9d7b9; }
.position-close-alert { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.position-close-alert > div:first-child { display: grid; gap: 5px; }
.position-close-alert > div:first-child strong { font-size: 16px; color: #fff; }
.position-close-alert > div:first-child span { color: #c7d8dc; font-size: 13px; font-weight: 850; line-height: 1.5; }
.position-close-alert .inline-actions { justify-content: flex-end; align-items: center; }
.position-close-alert-list { grid-column: 1 / -1; list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.position-close-alert-list li { display: grid; grid-template-columns: 120px minmax(180px, auto) minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid rgba(255,255,255,.10); border-radius: 8px; background: rgba(2,8,12,.46); }
.position-close-alert-list strong { color: #f6ffff; font-size: 14px; }
.position-close-alert-list span { color: #ffbdc1; font-size: 12px; font-weight: 900; }
.position-close-alert-list small { color: #b9cdd2; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.exchange-switch-tabs { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 8px; }
.exchange-switch-tabs a { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 10px; border-radius: 8px; border: 1px solid rgba(127,229,218,.20); background: rgba(5, 11, 16, .70); color: #a8bdc3; font-weight: 900; text-align: center; }
.exchange-switch-tabs a.active { color: #06100f; background: linear-gradient(135deg, var(--accent), #9af7e4); border-color: var(--accent-strong); box-shadow: 0 10px 28px rgba(32,219,196,.16); }
.positions-live-region { display: none; gap: 14px; }
.okx-position-card { border: 1px solid rgba(127,229,218,.24); border-radius: 8px; padding: 16px; background: linear-gradient(180deg, rgba(6, 12, 17, .96), rgba(9, 17, 22, .92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 34px rgba(0,0,0,.24); }
.position-card-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.position-exchange-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; color: #afc5cb; font-size: 13px; font-weight: 900; }
.position-exchange-row .exchange-logo-mark { width: 32px; height: 32px; font-size: 10px; }
.position-exchange-row em { font-style: normal; color: var(--accent); border: 1px solid rgba(32,219,196,.22); border-radius: 999px; padding: 4px 8px; background: rgba(32,219,196,.08); }
.position-symbol-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.position-symbol-line strong { font-size: 20px; color: #f4ffff; }
.position-symbol-line span { min-height: 28px; display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 8px; border: 1px solid rgba(127,229,218,.20); background: rgba(255,255,255,.04); color: #c8dde1; font-size: 13px; font-weight: 900; }
.position-side.position-short { color: var(--red); border-color: rgba(255,51,77,.46); background: rgba(255,51,77,.14); text-shadow: 0 0 12px rgba(255,51,77,.25); }
.position-side.position-long { color: var(--green); border-color: rgba(25,240,111,.44); background: rgba(25,240,111,.13); text-shadow: 0 0 12px rgba(25,240,111,.22); }
.position-card-top p { margin: 8px 0 0; font-size: 13px; color: #8fa5ac; }
.position-actions { display: flex; align-items: flex-start; gap: 8px; }
.position-close-form { margin: 0; }
.position-close-form button { min-width: 92px; }
.position-close-failure { display: grid; gap: 8px; margin: -2px 0 14px; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,91,99,.35); background: rgba(255,91,99,.10); }
.position-close-failure div { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.position-close-failure strong { color: #ffe4e6; font-size: 14px; }
.position-close-failure span { color: #ffb5bb; font-size: 12px; font-weight: 900; }
.position-close-failure p { margin: 0; color: #f6c6ca; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.position-pnl-row { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.position-pnl-row div { border: 1px solid rgba(127,229,218,.18); border-radius: 8px; padding: 14px; background: rgba(2, 8, 12, .62); }
.position-pnl-row span, .position-metric-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; margin-bottom: 6px; }
.position-pnl-row strong { display: block; font-size: 28px; line-height: 1.1; }
.position-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 8px; }
.position-metric-grid div { border: 1px solid rgba(127,229,218,.16); border-radius: 8px; padding: 10px; background: rgba(255,255,255,.035); min-width: 0; }
.position-metric-grid strong { display: block; color: #eefafa; font-size: 15px; overflow-wrap: anywhere; }
.position-sync-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.position-sync-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255,196,86,.22); background: rgba(255,196,86,.09); color: #f5d897; font-size: 12px; font-weight: 900; }
.position-sync-badge.synced { border-color: rgba(78,230,138,.26); background: rgba(78,230,138,.10); color: #aaf4c2; }
.position-sync-note { margin: 8px 0 0; color: #8fa5ac; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.position-batches { margin-top: 12px; border-top: 1px solid rgba(127,229,218,.14); padding-top: 10px; }
.position-batches summary { cursor: pointer; color: var(--accent); font-weight: 900; }
.position-batch-list { list-style: none; display: grid; gap: 8px; padding: 0; margin: 10px 0 0; }
.position-batch-list li { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); gap: 8px; align-items: center; border: 1px solid rgba(127,229,218,.14); border-radius: 8px; padding: 10px; background: rgba(2, 8, 12, .48); }
.position-batch-list span, .position-batch-list em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 900; }
.position-batch-list strong { color: #f0ffff; }
.position-batch-list small { color: #9eb4bc; overflow-wrap: anywhere; }
.position-batch-empty { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.position-recent-closes { display: grid; gap: 12px; border: 1px solid rgba(127,229,218,.18); border-radius: 8px; padding: 14px; background: rgba(2, 8, 12, .52); }
.position-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.position-recent-head strong { display: block; color: #f2ffff; font-size: 16px; }
.position-recent-head span { display: block; margin-top: 4px; color: #8fa5ac; font-size: 13px; font-weight: 800; }
.position-recent-head a { color: var(--accent); font-weight: 900; font-size: 13px; }
.position-recent-close-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.position-recent-close { display: grid; gap: 8px; border: 1px solid rgba(127,229,218,.16); border-radius: 8px; padding: 12px; background: rgba(255,255,255,.035); }
.position-recent-close.closed { border-color: rgba(78,230,138,.22); background: rgba(78,230,138,.06); }
.position-recent-close.failed { border-color: rgba(255,91,99,.28); background: rgba(255,91,99,.08); }
.position-recent-close > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.position-recent-close strong { color: #f4ffff; font-size: 15px; }
.position-recent-close-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.position-recent-close-metrics span { color: #9eb4bc; font-size: 12px; font-weight: 850; overflow-wrap: anywhere; }
.position-recent-close-metrics b { font-weight: 950; }
.position-recent-close p { margin: 0; color: #aec3c8; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.position-recent-close a { color: var(--accent); font-size: 12px; font-weight: 900; }
.position-recent-close-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.position-recent-close-links span { color: #8fa5ac; font-size: 12px; font-weight: 850; }
.position-recent-close-links a { border: 1px solid rgba(127,229,218,.18); border-radius: 999px; padding: 4px 8px; background: rgba(30,242,214,.08); text-decoration: none; }
.detail-card-code { display: block; margin: 0 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(3, 8, 12, .76); color: #bcd6dc; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-card-danger { color: var(--danger); }
.detail-card.attention-card { border-color: rgba(255,91,99,.42); background: rgba(255,91,99,.08); }
.panel, .headline, .hero-panel { position: relative; background: linear-gradient(180deg, rgba(18, 26, 34, .94), rgba(10, 15, 21, .94)); border: 1px solid var(--line); border-radius: 8px; padding: 28px; margin-bottom: 18px; box-shadow: var(--shadow), var(--glow); overflow: hidden; }
.panel::before, .headline::before, .hero-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(32,219,196,.65), transparent); pointer-events: none; }
.headline { background: linear-gradient(180deg, rgba(20, 35, 36, .96), rgba(11, 18, 24, .96)); border-color: rgba(32, 219, 196, .32); }
.headline-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pill.account-remain { background:rgba(46,230,180,.12); color:#5ef0bf; border:1px solid rgba(46,230,180,.3); padding:4px 12px; border-radius:999px; font-size:13px; font-weight:700; white-space:nowrap; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.section-head .status-badge { flex: 0 0 auto; }
.hero-panel { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: stretch; background: linear-gradient(135deg, rgba(8, 12, 18, .98), rgba(13, 29, 30, .96)); color: white; border-color: rgba(32, 219, 196, .30); }
.hero-panel > div { min-width: 0; }
.hero-panel p { color: #a9bac2; max-width: 760px; }
.hero-panel h1 { color: white; }
.hero { min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 34px; }
h2 { font-size: 22px; }
p { color: var(--muted); line-height: 1.6; }
.lead { font-size: 16px; }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 18px; }
.auth-single-grid { grid-template-columns: minmax(280px, 520px); justify-content: center; }
.auth-card .lead { margin-bottom: 18px; }
.auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 12px; }
.auth-primary-action { grid-template-columns: 1fr; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.auth-switch { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.auth-switch a { margin-left: 8px; font-weight: 800; }
.auth-success { padding: 16px; margin: 16px 0 24px; border: 1px solid rgba(32,219,196,.4); border-radius: 8px; background: rgba(32,219,196,.08); }
.auth-success h2 { color: #7ff7df; }
.auth-success p { margin: 0; }
.auth-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 500; }
.auth-consent input { width: 18px; min-height: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; }
.auth-terms { margin-top: 16px; font-size: 13px; }
.auth-terms summary { cursor: pointer; }
.auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.auth-pw-hint { margin: -4px 0 8px; font-size: 12px; }
.auth-code-row { display: flex; gap: 8px; align-items: flex-end; }
.auth-code-input { flex: 1; }
.auth-send-code { white-space: nowrap; flex: 0 0 auto; }
.auth-send-code:disabled { opacity: .6; cursor: not-allowed; }
.auth-code-hint { margin: 4px 0 8px; font-size: 12px; }
label { display: grid; gap: 8px; min-width: 0; margin: 14px 0; font-weight: 800; color: #c9dce0; }
input, select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid rgba(127,229,218,.22); border-radius: 8px; font: inherit; background: rgba(3, 8, 12, .76); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
input:focus, select:focus { outline: 2px solid rgba(32,219,196,.24); border-color: var(--accent); background: rgba(5, 13, 17, .94); }
button { min-height: 44px; padding: 9px 16px; border: 0; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #7ff7df); color: #05100f; font-weight: 900; cursor: pointer; box-shadow: 0 14px 30px rgba(32,219,196,.18); }
button:hover { background: linear-gradient(135deg, var(--accent-strong), #b2fff1); }
button.ghost { color: #d9eeee; background: rgba(145, 163, 173, .12); border: 1px solid rgba(145, 163, 173, .22); box-shadow: none; }
button.danger { background: var(--danger); }
.muted { color: var(--muted); font-size: 13px; }
.notice { padding: 12px 14px; border: 1px solid rgba(32,219,196,.30); background: rgba(32,219,196,.10); border-radius: 8px; margin-bottom: 16px; color: #d9fffa; font-weight: 800; }
.entry-result-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .9fr); gap: 14px; align-items: center; margin-bottom: 18px; padding: 18px; border: 1px solid rgba(32,219,196,.30); border-radius: 8px; background: linear-gradient(135deg, rgba(32,219,196,.13), rgba(8,14,20,.92)); box-shadow: var(--shadow), var(--glow); }
.entry-result-banner > div { min-width: 0; }
.entry-result-banner span:first-child { display: block; color: var(--muted); font-size: 13px; font-weight: 900; margin-bottom: 6px; }
.entry-result-banner strong { display: block; color: #effffc; font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.entry-result-banner p { margin: 0; color: #bfd3d8; overflow-wrap: anywhere; }
.entry-result-banner.success { border-color: rgba(78,230,138,.40); background: linear-gradient(135deg, rgba(78,230,138,.14), rgba(8,14,20,.92)); }
.entry-result-banner.success strong { color: var(--success); }
.entry-result-banner.warning { border-color: rgba(255,204,102,.42); background: linear-gradient(135deg, rgba(255,204,102,.14), rgba(8,14,20,.92)); }
.entry-result-banner.warning strong { color: var(--amber); }
.entry-result-banner.danger { border-color: rgba(255,91,99,.46); background: linear-gradient(135deg, rgba(255,91,99,.14), rgba(8,14,20,.92)); }
.entry-result-banner.danger strong { color: var(--danger); }
.entry-result-banner.pending strong { color: var(--accent); }
.entry-result-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.entry-result-chips .status-badge { max-width: 100%; overflow-wrap: anywhere; }
.pill { padding: 6px 10px; border-radius: 999px; background: rgba(32,219,196,.10); border: 1px solid rgba(32,219,196,.18); color: #dffdfa; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 14px; }
.step { border: 1px solid var(--line); background: var(--panel-soft); border-radius: 8px; padding: 20px; box-shadow: var(--glow); }
.step span { display: inline-block; margin-bottom: 12px; padding: 4px 9px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); font-size: 12px; font-weight: 800; }
.step.done span { background: var(--success-bg); color: var(--success); }
.settings { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 12px; margin: 18px 0; }
.settings div, .riskbox, .status-row { border: 1px solid var(--line); background: rgba(8, 14, 20, .74); border-radius: 8px; padding: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.settings span, .status-row span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.api-uid-opt { color: var(--muted); font-weight: 400; font-size: 12px; }
.api-uid-note { margin: 6px 0 0; font-size: 12px; color: #5be8d0; line-height: 1.5; }
.share-url-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: rgba(32,219,196,.08); border: 1px solid rgba(32,219,196,.24); }
.share-url { font-family: ui-monospace, monospace; font-size: 14px; color: #eaf6f3; }
.share-panel { max-width: 640px; margin: 0 auto; }
.share-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.share-name { font-size: 20px; font-weight: 800; color: #eaf6f3; }
.share-live { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(32,219,196,.16); color: #46e3c8; margin-left: 6px; }
.share-meta { font-size: 13px; color: #8aa0a8; margin-top: 3px; }
.share-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.share-metric { background: rgba(255,255,255,.03); border-radius: 10px; padding: 12px; }
.share-metric span { display: block; font-size: 12px; color: #8aa0a8; margin-bottom: 4px; }
.share-metric strong { font-size: 18px; }
.share-sub { font-size: 13px; color: #8aa0a8; margin-bottom: 8px; }
.share-chart { margin-bottom: 16px; }
.share-trades { margin-bottom: 18px; }
.share-trade { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px; }
.share-trade span:last-child { font-weight: 700; }
.share-cta { background: rgba(32,219,196,.08); border: 1px solid rgba(32,219,196,.22); border-radius: 14px; padding: 18px; text-align: center; }
.share-cta-title { font-size: 16px; font-weight: 800; color: #46e3c8; }
.share-cta-sub { font-size: 13px; color: #9fc9c1; margin: 6px 0 14px; }
.share-reg-grid { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-reg-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 90px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); text-decoration: none; color: #eaf6f3; font-weight: 700; }
.share-reg-btn small { font-size: 12px; font-weight: 700; color: #f4b657; }
.share-reg-btn:hover { border-color: rgba(32,219,196,.5); }
.share-note { font-size: 12px; color: #7f9098; margin-top: 16px; text-align: center; }
.share-missing { text-align: center; }
.share-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 18px; }
.share-actions small { font-size: 12px; color: #8aa0a8; }
.share-card-btn { padding: 12px 22px; border-radius: 12px; border: 1px solid rgba(32,219,196,.4); background: rgba(32,219,196,.12); color: #46e3c8; font-size: 15px; font-weight: 700; cursor: pointer; }
.share-card-btn:hover { background: rgba(32,219,196,.2); }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ref-stat { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px 16px; }
.ref-stat span { display: block; font-size: 13px; color: #8aa0a8; margin-bottom: 4px; }
.ref-stat strong { font-size: 24px; }
.sourcebar { display: flex; gap: 10px; align-items: center; width: fit-content; max-width: 100%; border: 1px solid rgba(32,219,196,.28); background: rgba(32,219,196,.10); border-radius: 8px; padding: 10px 12px; margin: 10px 0 16px; color: #eafffb; flex-wrap: wrap; }
.sourcebar span { color: var(--muted); font-size: 13px; }
.sourcebar small { color: #9fb0b8; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.period-tabs { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); gap: 10px; margin: 18px 0; max-width: 520px; }
.period-tab { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 14, 20, .74); color: #a8bdc3; font-weight: 900; }
.period-tab.active { background: rgba(32,219,196,.16); border-color: rgba(32,219,196,.42); color: #dffffa; box-shadow: 0 10px 24px rgba(32,219,196,.12); }
.order-panel { border-color: rgba(32,219,196,.30); }
.order-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.order-head > div { min-width: 0; }
.order-head h2 { margin-bottom: 6px; }
.order-panel .muted { max-width: 100%; overflow-wrap: anywhere; word-break: break-all; white-space: normal; }
.order-limit { min-width: 150px; border: 1px solid rgba(32,219,196,.34); background: rgba(32,219,196,.10); border-radius: 8px; padding: 12px 14px; }
.order-limit span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.order-limit strong { display: block; color: var(--accent); font-size: 22px; }
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.preview-grid div { border: 1px solid var(--line); background: rgba(8, 14, 20, .76); border-radius: 8px; padding: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.preview-grid span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.preview-grid strong { display: block; color: var(--ink); font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; word-break: break-word; }
.preview-grid.over-limit div:nth-child(2) { border-color: rgba(255,91,99,.52); background: rgba(255,91,99,.12); }
.preview-grid.over-limit div:nth-child(2) strong { color: var(--danger); }
.live-status-panel h3 { margin-top: 18px; margin-bottom: 10px; font-size: 17px; }
.live-symbol-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.live-symbol-card { border: 1px solid rgba(32,219,196,.22); background: rgba(8, 14, 20, .78); border-radius: 8px; padding: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.live-symbol-card.danger-card { border-color: rgba(255,91,99,.42); background: rgba(255,91,99,.08); }
.detail-card.danger-card { border-color: rgba(255,91,99,.42); background: rgba(255,91,99,.08); }
.live-symbol-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.live-symbol-head strong { font-size: 16px; overflow-wrap: anywhere; }
.live-symbol-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.live-symbol-metrics div { border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: rgba(3, 8, 12, .52); }
.live-symbol-metrics span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.live-symbol-metrics strong { display: block; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.live-symbol-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; }
.live-symbol-card p strong { color: #bcd4dc; }
.send-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.send-preview-card { border: 1px solid rgba(127,229,218,.22); background: rgba(7, 14, 20, .82); border-radius: 8px; padding: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.send-preview-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.send-preview-head strong { font-size: 16px; overflow-wrap: anywhere; }
.send-preview-head span { color: var(--accent); font-size: 13px; font-weight: 900; text-align: right; }
.send-preview-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.send-preview-metrics div { border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: rgba(3, 8, 12, .56); }
.send-preview-metrics span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.send-preview-metrics strong { display: block; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; word-break: break-word; }
.send-preview-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; }
.send-preview-card p strong { color: #bcd4dc; }
.send-preview-card .ccxt-preview-line code { display: block; margin-top: 5px; padding: 8px; border: 1px solid rgba(127,229,218,.18); border-radius: 8px; background: rgba(2, 8, 12, .62); color: #d9fffa; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.send-preview-card .status-badge { margin-top: 10px; }
.final-action-box { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 12px; align-items: center; margin-top: 16px; padding: 14px; border: 1px solid rgba(127,229,218,.28); border-radius: 8px; background: rgba(32,219,196,.08); }
.final-action-box strong { display: block; color: var(--ink); margin-bottom: 6px; font-size: 16px; }
.final-action-box p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.final-action-box code { display: inline-flex; width: auto; margin: 0 3px; padding: 3px 7px; font-size: 14px; }
.final-action-box form { justify-content: flex-end; margin: 0; }
.final-action-box.danger-box { border-color: rgba(255,91,99,.36); background: rgba(255,91,99,.10); }
.limit-warning { min-height: 22px; margin: -6px 0 12px; color: var(--danger); font-weight: 800; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.mode-card { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 3px; align-items: center; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 14, 20, .74); padding: 13px; cursor: pointer; }
.mode-card.active { border-color: rgba(32,219,196,.48); background: rgba(32,219,196,.12); box-shadow: var(--glow); }
.mode-card input { width: auto; min-height: auto; grid-row: span 2; }
.mode-card span { font-weight: 900; }
.mode-card small { color: var(--muted); font-weight: 600; }
.mode-field { transition: opacity .16s ease, filter .16s ease; }
.mode-field.inactive { opacity: .48; filter: saturate(.75); }
.mode-field.inactive input { background: rgba(145, 163, 173, .10); }
.field-label { display: block; margin-bottom: 8px; font-weight: 800; color: #c9dce0; }
.symbol-select { min-width: 0; margin: 14px 0; position: relative; }
.symbol-select-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(3, 8, 12, .76); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.symbol-select-button:hover { background: rgba(7, 18, 22, .90); border-color: var(--accent); color: var(--ink); }
.symbol-select-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.symbol-select-button strong { flex: 0 0 auto; color: var(--accent); font-size: 13px; }
.symbol-menu { display: none; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 13, 18, .98); padding: 8px; margin-top: 8px; box-shadow: var(--shadow); }
.symbol-menu.open { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 6px; }
.symbol-tools { grid-column: 1 / -1; display: flex; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.symbol-tools button { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.symbol-option { display: flex; grid-template-columns: none; align-items: center; gap: 8px; margin: 0; padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.035); }
.symbol-option:hover { background: rgba(32,219,196,.10); }
.symbol-option input { width: auto; min-height: auto; }
.secondary-link { background: rgba(145, 163, 173, .12); color: #d9eeee; border: 1px solid rgba(145, 163, 173, .22); box-shadow: none; margin-top: 14px; }
.secondary-link:hover { background: rgba(145, 163, 173, .18); }
.random-draw { display: grid; grid-template-columns: minmax(180px, 1fr) 180px; gap: 12px; align-items: end; }
.selected-symbols { display: flex; flex-wrap: wrap; gap: 8px; min-height: 56px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 14, 20, .74); margin: 6px 0 16px; }
.selected-symbols.compact { margin-top: -2px; margin-bottom: 10px; min-height: 48px; }
.selected-symbols span { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; border-radius: 999px; background: rgba(32,219,196,.14); border: 1px solid rgba(32,219,196,.22); color: #dffffa; font-weight: 900; font-size: 13px; }
.random-symbols span { gap: 6px; border-radius: 8px; padding: 6px 8px; }
.random-symbols span.locked { background: var(--amber-bg); color: var(--amber); border-color: rgba(255,193,77,.28); }
.random-symbols b { font: inherit; }
.random-symbols button { min-height: 36px; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.10); color: inherit; box-shadow: none; font-size: 12px; touch-action: manipulation; }
.random-symbols button:hover { background: rgba(255,255,255,.18); }
.detail-symbols { margin-top: 16px; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.form-actions button, .form-actions .action-link { min-width: 128px; }
.report-page { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.report-head, .report-verdict, .report-grid div, .report-events { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); padding: 18px; }
.report-head { background: rgba(5, 12, 15, .96); color: white; }
.share-body { background: #07090d; }
.share-body .wrap { max-width: 1040px; }
.share-report-head { background: rgba(5, 12, 15, .96); }
.report-head h1 { margin-bottom: 8px; color: white; }
.report-head p { margin: 0 0 12px; color: rgba(255,255,255,.72); }
.report-verdict { background: rgba(32,219,196,.08); border-color: rgba(32,219,196,.28); }
.report-verdict span, .report-grid span, .report-events span { display: block; color: var(--muted); font-size: 13px; font-weight: 900; margin-bottom: 7px; }
.report-verdict strong { display: block; font-size: 24px; margin-bottom: 8px; color: var(--accent-strong); }
.report-verdict p, .report-events p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
.report-grid strong { display: block; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.compact-report-grid { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
.report-events { display: grid; gap: 10px; }
.report-events h2 { margin-bottom: 2px; }
.report-events div { border-top: 1px solid var(--line); padding-top: 10px; }
.report-copy { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); padding: 18px; }
.report-copy h2 { margin-bottom: 4px; }
.report-copy p { margin: 0; color: var(--muted); }
.report-copy textarea { width: 100%; min-height: 150px; margin: 0; resize: vertical; font-family: inherit; line-height: 1.55; overflow-wrap: anywhere; }
.report-tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.report-tool-actions button { width: auto; }
.report-copy button { justify-self: start; }
.report-copy span { color: var(--accent); font-size: 13px; font-weight: 900; min-height: 18px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.confirm { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.check { display: flex; grid-template-columns: none; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; min-height: auto; }
.filters, .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.form-grid > label, .form-grid > .symbol-select { align-self: start; }
.field-help { display:block; margin-top:6px; color:var(--muted); font-size:12px; line-height:1.45; font-weight:500; }
.automation-steps { margin:14px 0 18px; }
.runtime-details { margin-top:14px; border-top:1px solid var(--line); padding-top:14px; }
.runtime-details summary { cursor:pointer; color:var(--muted); font-weight:800; }
.automation-subnav { display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin-bottom:18px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:rgba(4,10,14,.56); }
.automation-exchange-picker { display:flex; flex:1 1 280px; align-items:center; gap:10px; margin:0; }
.automation-exchange-picker label { color:var(--muted); font-size:13px; font-weight:900; white-space:nowrap; }
.automation-exchange-picker select { min-width:150px; width:auto; margin:0; }
.automation-exchange-picker button { width:auto; min-height:38px; margin:0; }
.automation-subnav-links { display:flex; gap:6px; flex:0 1 auto; }
.automation-subnav-links a { min-height:38px; display:flex; align-items:center; justify-content:center; padding:8px 12px; border-radius:6px; color:var(--muted); font-weight:900; text-align:center; }
.automation-subnav-links a.active { background:rgba(32,219,196,.15); color:var(--accent-strong); box-shadow:inset 0 0 0 1px rgba(32,219,196,.28); }
.automation-view { min-width:0; }
.automation-inline-positions { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); scroll-margin-top:80px; }
.automation-inline-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.automation-basket-summary { display:flex; flex-wrap:wrap; gap:12px; padding:12px 0; }
.automation-inline-position { min-width:0; padding:14px; border:1px solid var(--line); border-radius:8px; }
.automation-inline-position h3 { margin:0 0 6px; font-size:18px; overflow-wrap:anywhere; }
.automation-inline-position dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.automation-inline-position dt { color:var(--muted); font-size:12px; }
.automation-inline-position dd { margin:4px 0 0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
#automation-task { scroll-margin-top:80px; margin-top:20px; }
@media(max-width:640px) {
  .automation-inline-grid { grid-template-columns:minmax(0,1fr); }
  .automation-subnav { flex-wrap:wrap; }
  .automation-task-hero { display:block; }
}
.automation-core-settings { margin-top:16px; }
.automation-advanced-settings { margin-bottom:14px; }
.automation-task-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,.42fr); gap:18px; align-items:stretch; }
.automation-task-summary { margin-top:16px; }
.automation-task-focus { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr); gap:16px; margin:16px 0; }
.automation-focus-hero { position:relative; overflow:hidden; min-width:0; min-height:310px; border:1px solid #284841; border-radius:8px; padding:24px; text-align:center; background:linear-gradient(135deg,#112321,#0c151b 65%); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; }
.automation-focus-hero::before { content:''; position:absolute; top:0; left:22%; right:22%; height:1px; background:linear-gradient(90deg,transparent,#62d6be,transparent); }
.automation-focus-head { align-self:stretch; display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:8px; position:relative; }
.automation-focus-head h2 { margin:0; font-size:16px; font-weight:600; }
.automation-focus-state { font-size:11px; color:#a9e6d7; background:#16352e; border-radius:20px; padding:6px 10px; }
.automation-clock-label { color:#91aba7; font-size:12px; letter-spacing:2px; }
.automation-focus-clock { position:relative; color:#c0f3e6; font-size:28px; line-height:1.4; font-weight:600; overflow-wrap:anywhere; max-width:100%; }
.automation-focus-clock.is-digital { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; width:360px; max-width:100%; }
.automation-clock-cell { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:18px 12px 12px; background:linear-gradient(180deg,rgba(53,95,84,.32),rgba(16,35,32,.5)); border:1px solid #294d42; border-radius:8px; box-shadow:inset 0 1px 0 rgba(199,255,232,.04); }
.automation-clock-cell b { font-family:'JetBrains Mono',monospace; font-size:52px; font-weight:500; line-height:1.1; font-variant-numeric:tabular-nums; letter-spacing:-2px; }
.automation-focus-clock .automation-clock-cell small { font-family:system-ui,sans-serif; font-size:10px; color:#7d9d94; font-weight:400; letter-spacing:2px; }
.automation-focus-schedule { margin:0; font-size:11px; color:#849e9e; line-height:1.7; }
.automation-focus-hero>a { position:relative; }
.automation-focus-side { min-width:0; display:flex; flex-direction:column; gap:14px; }
.automation-focus-candidates,.automation-focus-next { padding:18px; background:#101c23; border:1px solid #2a3e4a; border-radius:8px; }
.automation-focus-candidates { flex:1; }
.automation-focus-candidates>div:first-child { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.automation-focus-side h3 { margin:0; font-size:15px; }
.automation-focus-side small { color:#9bb0bd; font-size:11px; }
.automation-symbol-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }
.automation-symbol-tag { background:#15322f; border:1px solid #2c5b52; border-radius:5px; padding:7px 9px; font-size:12px; color:#a1efdd; overflow-wrap:anywhere; max-width:100%; }
.automation-focus-next p { color:#c3d5db; font-size:13px; line-height:1.65; margin:10px 0 6px; }
.automation-focus-details { border-top:1px solid #2a3e4a; margin-top:12px; font-size:12px; color:#9bb0bd; }
.automation-focus-details summary { cursor:pointer; min-height:44px; display:flex; align-items:center; }
.automation-task-focus[data-focus-phase="attention"] .automation-focus-clock,.automation-task-focus[data-focus-phase="failed"] .automation-focus-clock,.automation-task-focus[data-focus-phase="preflight_failed"] .automation-focus-clock { color:#ebca65; }
@media (max-width:760px) { .automation-task-focus { grid-template-columns:1fr; }.automation-focus-hero { min-height:255px; padding:16px; }.automation-focus-clock { font-size:24px; }.automation-focus-clock.is-digital { gap:8px; }.automation-clock-cell { padding:16px 8px 10px; }.automation-clock-cell b { font-size:40px; }.automation-focus-head { flex-wrap:wrap; }.automation-clock-orbit { width:215px; height:215px; } }
.automation-next-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }
.automation-next-card { min-width:0; padding:16px; border:1px solid var(--line); border-radius:8px; background:rgba(8,14,20,.76); }
.automation-next-card span { display:block; color:var(--muted); font-size:13px; margin-bottom:8px; }
.automation-next-card strong { display:block; color:var(--ink); font-size:18px; line-height:1.35; overflow-wrap:anywhere; }
.automation-next-card p { margin:8px 0 0; color:var(--muted); font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.automation-next-countdown strong { color:var(--accent-strong); font-size:24px; font-variant-numeric:tabular-nums; }
.automation-progress { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:6px; margin:16px 0 0; padding:0; list-style:none; }
.automation-progress-step { min-width:0; display:grid; gap:6px; padding:9px 8px; border:1px solid var(--line); border-radius:6px; background:rgba(8,14,20,.54); color:var(--muted); }
.automation-progress-step span { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; background:rgba(135,155,166,.16); font-size:11px; font-weight:900; }
.automation-progress-step strong { font-size:12px; line-height:1.3; overflow-wrap:anywhere; }
.automation-progress-step--done { border-color:rgba(79,230,176,.35); color:#b9f5dc; }
.automation-progress-step--done span,.automation-progress-step--current span { background:var(--accent); color:#031311; }
.automation-progress-step--current { border-color:var(--accent); color:var(--ink); box-shadow:inset 0 0 0 1px rgba(79,230,176,.16); }
.automation-candidate-lock { margin-top:14px; padding:14px 16px; border:1px solid rgba(79,230,176,.22); background:rgba(20,66,58,.18); border-radius:8px; }
.automation-candidate-lock div { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.automation-candidate-lock span { color:var(--muted); font-size:13px; }
.automation-candidate-lock strong { color:#7ff0c6; }
.automation-candidate-lock p { margin:8px 0 0; color:#d6e4e8; line-height:1.65; overflow-wrap:anywhere; }
.automation-v129-panel { background:#091015; border-color:rgba(124,151,163,.20); box-shadow:none; }
.automation-v129-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin:4px 0 18px; }
.automation-v129-head h1 { margin:5px 0 6px; font-size:32px; letter-spacing:0; }
.automation-v129-head p { margin:0; color:var(--muted); }
.automation-v129-head-status { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.automation-v129-head-status span { min-height:32px; display:inline-flex; align-items:center; padding:6px 10px; border:1px solid var(--line); border-radius:999px; color:var(--muted); background:rgba(7,13,18,.68); font-size:12px; font-weight:850; }
.automation-v129-head-status .is-running,.automation-v129-head-status .is-ready { border-color:rgba(31,220,132,.36); color:#69efb2; }
.automation-v129-head-status .is-paused { border-color:rgba(255,196,77,.34); color:#ffd36f; }
.automation-v129-head-status .is-blocked { border-color:rgba(255,107,120,.34); color:#ff8791; }
.automation-mode-switch { display:inline-flex; gap:4px; margin-bottom:14px; padding:4px; border:1px solid var(--line); border-radius:8px; background:rgba(4,10,14,.72); }
.automation-mode-switch span,.automation-mode-switch button { min-height:40px; display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border:0; border-radius:6px; background:transparent; color:var(--muted); font-size:13px; font-weight:850; letter-spacing:0; }
.automation-mode-switch .active { color:#07110f; background:var(--accent); }
.automation-mode-switch button:disabled { opacity:.66; cursor:not-allowed; }
.automation-mode-switch small { color:#8ea0a8; font-size:10px; }
.automation-api-readiness { display:grid; grid-template-columns:auto auto minmax(240px,1fr) auto; align-items:center; gap:18px; margin-bottom:14px; padding:13px 15px; border:1px solid var(--line); border-left:3px solid #ff6b78; border-radius:8px; background:rgba(7,13,18,.72); }
.automation-api-readiness.is-ready { border-left-color:#1fdc84; }
.automation-api-readiness div { display:grid; gap:3px; }
.automation-api-readiness span { color:var(--muted); font-size:11px; }
.automation-api-readiness strong { color:var(--ink); font-size:14px; }
.automation-api-readiness p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.automation-api-readiness a { min-height:38px; display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; border:1px solid rgba(79,230,176,.34); border-radius:7px; color:#7ff0c6; font-size:12px; font-weight:900; text-decoration:none; white-space:nowrap; }
.automation-candidate-disclosure { margin-top:14px; border:1px solid rgba(79,230,176,.18); border-radius:8px; background:rgba(10,20,24,.58); }
.automation-candidate-disclosure summary { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; color:var(--muted); cursor:pointer; list-style:none; font-size:13px; }
.automation-candidate-disclosure summary::-webkit-details-marker { display:none; }
.automation-candidate-disclosure summary::after { content:"展开"; color:#7ff0c6; font-size:11px; font-weight:850; }
.automation-candidate-disclosure[open] summary::after { content:"收起"; }
.automation-candidate-disclosure summary strong { color:#7ff0c6; }
.automation-candidate-disclosure .automation-candidate-lock { margin:0; border:0; border-top:1px solid rgba(79,230,176,.16); border-radius:0 0 8px 8px; }
.automation-candidate-disclosure .automation-candidate-lock p { margin:0; }
.automation-task-positions { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:10px; margin-top:14px; }
.automation-entry-gate { display:grid; grid-template-columns:minmax(0,1fr) minmax(420px,.72fr); gap:20px; align-items:center; margin-bottom:16px; padding:20px; border:1px solid rgba(32,219,196,.30); border-radius:10px; background:linear-gradient(135deg, rgba(32,219,196,.10), rgba(8,14,20,.96)); box-shadow:0 0 28px rgba(32,219,196,.08); }
.automation-entry-copy h2 { margin:6px 0 8px; font-size:24px; }
.automation-entry-copy p { margin:0; }
.automation-control-status { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.automation-control-status span { display:inline-flex; align-items:center; gap:7px; min-height:34px; padding:7px 10px; border:1px solid rgba(145,163,173,.20); border-radius:7px; color:var(--muted); background:rgba(4,10,15,.48); font-size:12px; }
.automation-control-status strong { color:var(--ink); font-size:13px; }
.automation-control-status .is-running { color:#19f06f; }
.automation-control-status .is-paused { color:#ffc44d; }
.automation-entry-meta { display:grid; gap:9px; justify-items:end; }
.automation-entry-meta strong { color:var(--ink); font-size:13px; }
.automation-loop-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; width:100%; }
.automation-loop-controls form { margin:0; }
.automation-loop-button { width:100%; min-height:52px; padding:11px 13px; border-radius:8px; font-size:14px; font-weight:950; cursor:pointer; letter-spacing:0; }
.automation-loop-button span { display:inline-block; margin-right:6px; }
.automation-loop-start { border:1px solid rgba(127,229,218,.68); background:linear-gradient(135deg,var(--accent),#7ff7df); color:#05100f; box-shadow:0 12px 26px rgba(32,219,196,.18); }
.automation-loop-pause { border:1px solid rgba(255,196,77,.58); background:rgba(255,196,77,.13); color:#ffd36f; box-shadow:none; }
.automation-loop-button:not(:disabled):hover { filter:brightness(1.07); }
.automation-loop-button:disabled { border-color:rgba(102,113,125,.26); background:rgba(102,113,125,.10); color:#66717d; box-shadow:none; cursor:not-allowed; filter:none; }
.exchange-bind-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.automation-clear-task-form { grid-column:1 / -1; display:flex; justify-content:flex-end; margin:0; }
.automation-clear-task { width:auto; min-height:42px; padding:9px 13px; border:1px solid rgba(255,107,120,.54); border-radius:8px; background:transparent; color:#ff6b78; font-weight:850; cursor:pointer; box-shadow:none; }
.automation-clear-task span { display:inline-block; margin-right:6px; }
.automation-clear-task:not(:disabled):hover { border-color:#ff6b78; background:rgba(255,107,120,.10); color:#ff8791; }
.automation-clear-task:disabled { border-color:rgba(102,113,125,.24); background:transparent; color:#66717d; cursor:not-allowed; }
.zk-btn-c.danger-cancel, .wizard-cancel-button { border-color:rgba(255,45,69,.72); color:#ff6a79; background:rgba(255,45,69,.12); font-weight:900; }
.zk-btn-c.danger-cancel:hover, .wizard-cancel-button:hover { background:rgba(255,45,69,.24); color:#fff; }
.automation-config-panel[hidden] { display:none; }
.automation-config-modal { position:fixed; z-index:1001; inset:6vh 50% auto auto; transform:translateX(50%); width:min(760px, calc(100vw - 28px)); max-height:88vh; overflow:auto; margin:0; padding:22px; border:1px solid rgba(39,221,255,.55); border-radius:18px; background:linear-gradient(145deg,#0d141b,#1a1320 70%,#101b27); box-shadow:0 24px 80px rgba(0,0,0,.55),0 0 34px rgba(39,221,255,.16); }
.automation-config-modal { inset:50% 50% auto auto; transform:translate(50%,-50%); width:min(780px, calc(100vw - 28px)); max-height:min(90dvh,760px); overflow:auto; overscroll-behavior:contain; padding:18px; }
.automation-config-modal .automation-wizard-bar { position:sticky; top:-18px; z-index:3; margin:-18px -18px 14px; padding:16px 18px 12px; background:linear-gradient(145deg,#0d141b,#1a1320 70%,#101b27); }
.automation-config-modal .automation-core-settings { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.automation-config-modal .automation-core-settings label { min-width:0; font-size:13px; }
.automation-config-modal .automation-core-settings .field-help { font-size:11px; line-height:1.25; }
.automation-config-modal .automation-rule-note { margin-top:10px; padding:10px 12px; font-size:12px; }
.automation-config-modal form.confirm > [data-automation-start-trigger] { position:sticky; bottom:-18px; z-index:3; width:100%; margin:12px -2px -18px; padding:12px 14px; border-top:1px solid rgba(127,229,218,.22); box-shadow:0 -12px 22px rgba(9,12,18,.55); }
.automation-config-modal .form-actions { margin-top:10px; }
.automation-issue-detail { width:auto; min-height:32px; margin-top:8px; padding:6px 10px; font-size:12px; }
.automation-wizard-backdrop { position:fixed; z-index:1000; inset:0; background:rgba(2,5,10,.72); backdrop-filter:blur(6px); }
.automation-wizard-bar { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid rgba(255,255,255,.12); }
.automation-wizard-bar strong { display:block; margin-top:5px; font-size:20px; }
.automation-wizard-bar small { display:block; margin-top:4px; color:#a6a9b8; }
.automation-wizard-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:18px; padding-top:16px; border-top:1px solid rgba(255,255,255,.12); }
.automation-wizard-footer span { flex:1; color:#a6a9b8; font-size:13px; }
.automation-wizard-footer button:disabled { opacity:.4; cursor:not-allowed; }
.automation-reference-basket { position:relative; overflow:hidden; margin-bottom:16px; padding:22px; border:1px solid transparent; border-radius:16px; background:linear-gradient(145deg, #080d14, #0b121b 62%, #0a1824) padding-box, linear-gradient(120deg, #13c8f4, #2455d8, #8c1f42, #f0b83a, #13c8f4) border-box; box-shadow:0 0 26px rgba(24,116,190,.12); }
.automation-reference-basket::after { content:""; position:absolute; inset:45% -15% -55%; background:radial-gradient(ellipse, rgba(20,104,168,.12), transparent 67%); pointer-events:none; }
.automation-reference-basket > * { position:relative; z-index:1; }
.automation-reference-basket-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.automation-reference-basket-head h2 { margin:7px 0 12px; font-size:22px; }
.automation-reference-basket-head p { margin:8px 0 0; color:#b4b4c0; }
.automation-reference-net-profit { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; color:#d7e4ea !important; font-size:15px; }
.automation-reference-net-profit strong { font-size:24px; font-weight:950; }
.automation-reference-return { display:block; font-size:48px; line-height:1; font-variant-numeric:tabular-nums; }
.automation-reference-return.profit-up,.automation-reference-net-profit strong.profit-up { color:#00e676; text-shadow:0 0 18px rgba(0,230,118,.30); }
.automation-reference-return.profit-down,.automation-reference-net-profit strong.profit-down { color:#ff2d45; text-shadow:0 0 18px rgba(255,45,69,.32); }
.automation-reference-return.profit-neutral,.automation-reference-net-profit strong.profit-neutral { color:#edf4f7; text-shadow:none; }
.automation-reference-meter { position:relative; height:10px; margin:46px 14px 16px; border-radius:99px; background:#263742; box-shadow:inset 0 0 8px rgba(0,0,0,.72),0 0 16px rgba(19,221,255,.10); }
.automation-reference-meter::before { content:""; position:absolute; inset:-13px 0; background:repeating-linear-gradient(90deg,transparent 0 calc(12.5% - 1px),rgba(143,180,198,.13) calc(12.5% - 1px) 12.5%); pointer-events:none; }
.automation-reference-meter-loss,.automation-reference-meter-gain { position:absolute; top:0; height:100%; border-radius:99px; transition:width .35s ease; }
.automation-reference-meter-loss { right:50%; width:var(--basket-loss-fill); background:#ff2d45; box-shadow:0 0 12px rgba(255,45,69,.18); }
.automation-reference-meter-gain { left:50%; width:var(--basket-gain-fill); background:#00e676; box-shadow:0 0 12px rgba(0,230,118,.18); }
.automation-reference-meter-zero { position:absolute; left:50%; top:50%; width:12px; height:12px; border-radius:50%; background:#fff; transform:translate(-50%,-50%); box-shadow:0 0 0 5px rgba(237,244,247,.08),0 0 12px rgba(210,220,230,.16); }
.automation-reference-meter-marker { --automation-meter-glow:0,230,118; position:absolute; left:var(--basket-progress); top:50%; width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:#fff; transform:translate(-50%,-50%); box-shadow:0 0 0 6px rgba(var(--automation-meter-glow),.10),0 0 18px rgba(var(--automation-meter-glow),.22); transition:left .35s ease; animation:automation-meter-breathe 3s ease-in-out infinite; }
.automation-reference-meter-marker.profit-down { --automation-meter-glow:255,45,69; }
.automation-reference-meter-marker.profit-neutral { --automation-meter-glow:210,220,230; box-shadow:0 0 0 6px rgba(210,220,230,.08),0 0 14px rgba(210,220,230,.16); animation:none; }
.automation-reference-meter-face { position:relative; left:auto !important; top:auto !important; width:auto !important; height:auto !important; display:block; border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important; transform:none !important; font-size:25px; line-height:1; animation:none !important; }
.automation-reference-meter-labels { display:flex; justify-content:space-between; gap:10px; color:#b7b5c0; font-size:12px; }
.automation-reference-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:20px; }
.automation-reference-metrics div { min-width:0; padding:13px; border:1px solid rgba(127,127,145,.24); border-radius:10px; background:rgba(7,8,12,.52); }
.automation-reference-metrics span { display:block; color:#9da0ac; font-size:12px; margin-bottom:7px; }
.automation-reference-metrics strong { display:block; color:#f6f4fa; font-size:20px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.automation-reference-metrics strong.profit-up,.automation-reference-targets strong.profit-up { color:#00e676; text-shadow:0 0 14px rgba(0,230,118,.22); }
.automation-reference-metrics strong.profit-down,.automation-reference-targets strong.profit-down { color:#ff2d45; text-shadow:0 0 14px rgba(255,45,69,.24); }
.automation-reference-metrics strong.profit-neutral { color:#edf4f7; }
.automation-reference-targets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:10px; }
.automation-reference-targets div { min-width:0; padding:13px; border:1px solid rgba(127,127,145,.24); border-radius:10px; background:rgba(7,8,12,.52); }
.automation-reference-targets span { display:block; color:#9da0ac; font-size:12px; margin-bottom:7px; }
.automation-reference-targets strong { display:block; font-size:18px; font-variant-numeric:tabular-nums; }
.automation-reference-countdown { color:var(--amber) !important; }
.basket-flame-cockpit { padding:24px 26px; border-color:#2a414b; border-radius:8px; background:#0b141a; box-shadow:inset 0 0 48px rgba(220,229,232,.025),0 18px 44px rgba(0,0,0,.24); }
.basket-flame-cockpit::after { display:none; }
.basket-flame-heading h2 { margin:6px 0 0; font-size:19px; }
.basket-flame-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; gap:20px; padding:24px 0 12px; }
.basket-flame-overview>div { min-width:0; }
.basket-flame-overview>div:last-child { text-align:right; }
.basket-flame-overview span,.basket-flame-overview small { display:block; color:var(--muted); font-size:12px; }
.basket-flame-overview strong { display:block; margin:8px 0 5px; color:#edf4f7; font-size:38px; font-variant-numeric:tabular-nums; line-height:1.1; overflow-wrap:anywhere; }
.basket-flame-overview small { font-size:14px; font-variant-numeric:tabular-nums; }
.basket-flame-overview>div:last-child small { margin-top:7px; font-size:13px; font-weight:500; line-height:1.4; color:var(--muted); }
.pnl-projection-banner { display:block; }
.pnl-projection-banner>div:first-child { display:flex; flex-direction:column; gap:4px; }
.pnl-projection-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:8px; margin-top:10px; }
.pnl-projection-row { display:grid; grid-template-columns:1fr auto; gap:3px 12px; padding:10px; border:1px solid var(--line); border-radius:6px; }
.pnl-projection-row small { grid-column:1/-1; color:var(--muted); }
.basket-flame-overview strong.profit-up,.basket-flame-overview small.profit-up { color:#00ed85; text-shadow:0 0 16px rgba(0,237,133,.28); }
.basket-flame-overview strong.profit-down,.basket-flame-overview small.profit-down { color:#ff334f; text-shadow:0 0 16px rgba(255,51,79,.30); }
.basket-flame-cockpit .basket-flame-guard.is-enabled { color:#ff58bd; font-weight:800; }
.basket-flame-cockpit .basket-flame-target.is-enabled { color:#43dfff; font-weight:800; }
.basket-flame-cockpit .basket-flame-current.profit-up { color:#00ed85; font-weight:800; }
.basket-flame-cockpit .basket-flame-current.profit-down { color:#ff334f; font-weight:800; }
.basket-flame-cockpit .automation-reference-meter-labels { font-size:16px; font-weight:800; line-height:1.3; }
.basket-flame-details { margin-top:18px; border-top:1px solid #2c414b; }
.basket-flame-cockpit .basket-flame-details .automation-reference-metrics { margin:0; padding:16px 0; gap:0; }
.basket-flame-cockpit .basket-flame-details .automation-reference-metrics>div { padding:0 16px; border:0; border-right:1px solid #2c414b; border-radius:0; background:transparent; }
.basket-flame-cockpit .basket-flame-details .automation-reference-metrics>div:first-child { padding-left:0; }
.basket-flame-cockpit .basket-flame-details .automation-reference-metrics>div:last-child { border-right:0; }
.basket-flame-details>.lead { margin:0; padding:12px 0 16px; border-top:1px solid #2c414b; color:#aab8be; font-size:12px; line-height:1.55; }
.basket-flame-cockpit .basket-flame-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:0; padding:16px 0 0; border-top:1px solid #2c414b; }
.basket-flame-cockpit .basket-flame-summary-grid>div { min-width:0; padding:0 16px; border:0; border-right:1px solid #2c414b; border-radius:0; background:transparent; box-shadow:none; }
.basket-flame-cockpit .basket-flame-summary-grid>div:first-child { padding-left:0; }
.basket-flame-cockpit .basket-flame-summary-grid>div:last-child { border-right:0; }
.basket-flame-cockpit .basket-flame-summary-grid strong.profit-up { color:#00ed85; }
.basket-flame-cockpit .basket-flame-summary-grid strong.profit-down { color:#ff334f; }
.automation-positions-view .positions-basket-top { width:100%; }
.automation-positions-view .positions-basket-top .basket-flame-cockpit { margin-bottom:0; }
.automation-v129-panel[data-current-automation-view="positions"] .automation-subnav { display:none; }
.basket-flame-core { padding:24px 0 8px; text-align:center; }
.basket-flame-core>span { color:var(--muted); font-size:12px; }
.basket-flame-core>div { display:flex; align-items:baseline; justify-content:center; gap:18px; margin-top:8px; }
.basket-flame-core .automation-reference-net-profit { margin:0; font-size:42px; font-weight:950; line-height:1.05; }
.basket-flame-core .automation-reference-return { display:inline; font-size:23px; }
.basket-flame-shell { margin:18px 0 12px; padding:14px 16px 12px; border:1px solid #2c414b; border-radius:7px; background:#071016; }
.basket-flame-canister { --position:50%;--fill-left:50%;--fill-width:0%;--energy-color:#dce5e8;--energy-glow:rgba(220,229,232,.14); position:relative; height:154px; padding:34px 52px 30px; border:1px solid #34464e; border-radius:7px; background:#070d11; box-shadow:inset 0 0 24px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.03); }
.basket-flame-frame { position:absolute; left:68px; right:68px; height:1px; background:#2c3b42; opacity:.72; }
.basket-flame-frame-top { top:22px; }
.basket-flame-frame-bottom { bottom:21px; }
.basket-flame-bolt { position:absolute; width:6px; height:6px; border:1px solid #56666d; border-radius:50%; background:#111a1f; box-shadow:inset 0 0 0 1px #05090b; }
.basket-flame-bolt.a { left:20px; top:17px; }.basket-flame-bolt.b { right:20px; top:17px; }.basket-flame-bolt.c { left:20px; bottom:16px; }.basket-flame-bolt.d { right:20px; bottom:16px; }
.basket-flame-cap { position:absolute; top:50%; width:44px; height:70px; transform:translateY(-50%); border:1px solid #43545b; background:#111a1f; box-shadow:inset 0 0 0 5px #0a1014; }
.basket-flame-cap::before,.basket-flame-cap::after { content:""; position:absolute; left:10px; right:10px; height:4px; border:1px solid #526169; background:#1a2429; }
.basket-flame-cap::before { top:14px; }.basket-flame-cap::after { bottom:14px; }.basket-flame-cap.left { left:12px; border-radius:5px 0 0 5px; }.basket-flame-cap.right { right:12px; border-radius:0 5px 5px 0; }
.basket-flame-chamber { position:relative; height:84px; overflow:hidden; border:2px solid #53636a; border-radius:44px; background:#10191e; box-shadow:inset 0 0 0 7px #081014,inset 0 0 22px rgba(0,0,0,.85),0 0 16px var(--energy-glow); }
.basket-flame-chamber::before { content:""; position:absolute; left:50%; top:8px; bottom:8px; z-index:5; width:2px; background:#9aa5a9; opacity:.4; }
.basket-flame-chamber::after { content:""; position:absolute; left:20px; right:20px; top:15px; z-index:6; height:4px; border-radius:10px; background:#d6e0e3; opacity:.08; }
.basket-flame-loss-bed,.basket-flame-gain-bed { position:absolute; top:10px; bottom:10px; width:calc(50% - 10px); opacity:.52; }
.basket-flame-loss-bed { left:10px; border-radius:34px 0 0 34px; background:#241419; }
.basket-flame-gain-bed { right:10px; border-radius:0 34px 34px 0; background:#10231b; }
.basket-flame-glow { position:absolute; inset:9px; z-index:3; border-radius:36px; box-shadow:inset 0 0 26px var(--energy-glow),0 0 10px var(--energy-glow); opacity:.32; animation:basket-flame-tank-pulse 3.4s ease-in-out infinite; }
.basket-flame-bed-fill { position:absolute; left:var(--fill-left); top:8px; bottom:8px; z-index:2; width:var(--fill-width); border-radius:36px; background:var(--energy-color); box-shadow:0 0 10px var(--energy-glow); opacity:.11; transition:left .42s ease,width .42s ease,background-color .25s ease; }
.basket-flame-flow { position:absolute; left:9px; right:9px; top:8px; bottom:8px; z-index:4; width:calc(100% - 18px); height:calc(100% - 16px); border-radius:999px; clip-path:inset(0 round 999px); pointer-events:none; }
.basket-flame-cockpit .automation-reference-meter-marker { position:absolute; left:var(--position); top:50%; z-index:9; width:64px; height:64px; display:grid; place-items:center; border:2px solid var(--energy-color); border-radius:50%; background:#10181c; transform:translate(-50%,-50%); box-shadow:0 0 12px var(--energy-glow),0 0 24px var(--energy-glow),inset 0 0 0 6px #080e11; transition:left .42s ease,border-color .25s ease; animation:basket-flame-core-pulse 3s ease-in-out infinite; }
.basket-flame-cockpit .automation-reference-meter-marker::before,.basket-flame-cockpit .automation-reference-meter-marker::after { display:none; }
.basket-flame-cockpit .automation-reference-meter-face { position:relative; z-index:2; display:block; font-size:30px; line-height:1; filter:drop-shadow(0 0 5px var(--energy-glow)); }
.basket-flame-core-ring { position:absolute; inset:-7px; border:1px solid var(--energy-color); border-radius:50%; opacity:.68; }
.basket-flame-pressure { position:absolute; left:50%; bottom:6px; transform:translateX(-50%); color:#73838a; font:850 8px ui-monospace,SFMono-Regular,Menlo,monospace; white-space:nowrap; }
.basket-flame-ticks { display:flex; justify-content:space-between; gap:8px; margin-top:8px; color:#71838b; font-size:10px; font-variant-numeric:tabular-nums; }
.basket-flame-canister[data-active="0"] .basket-flame-flow { display:none; }
.basket-flame-canister[data-active="0"] .basket-flame-glow,.basket-flame-canister[data-active="0"] .automation-reference-meter-marker { animation:none; }
@keyframes basket-flame-tank-pulse { 0%,100%{opacity:.25}50%{opacity:.43} }
@keyframes basket-flame-core-pulse { 0%,100%{filter:brightness(.96)}50%{filter:brightness(1.08)} }
@media (prefers-reduced-motion:reduce) {
  .basket-flame-glow,.basket-flame-cockpit .automation-reference-meter-marker { animation:none !important; transition:none !important; }
}
.automation-reference-theme .automation-next-card { border-color:rgba(133,98,160,.32); background:linear-gradient(135deg, rgba(24,18,31,.88), rgba(9,15,20,.90)); }
.automation-reference-theme .automation-progress-step--current { border-color:#33dfff; box-shadow:0 0 18px rgba(45,220,255,.12), inset 0 0 0 1px rgba(255,75,201,.12); }
.automation-reference-theme .automation-progress-step--current span { background:#2ddcff; box-shadow:0 0 14px rgba(45,220,255,.45); }
@keyframes automation-meter-breathe { 0%,100% { box-shadow:0 0 0 5px rgba(var(--automation-meter-glow),.08),0 0 12px rgba(var(--automation-meter-glow),.16); } 50% { box-shadow:0 0 0 7px rgba(var(--automation-meter-glow),.11),0 0 18px rgba(var(--automation-meter-glow),.24); } }
.automation-task-position,.automation-task-empty { min-width:0; padding:14px; border:1px solid var(--line); border-radius:8px; background:var(--panel-soft); }
.automation-task-position>div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.automation-task-position span { color:var(--accent); font-size:12px; font-weight:900; }
.automation-task-position strong { overflow-wrap:anywhere; }
.automation-task-position p,.automation-task-empty p { margin:7px 0 0; color:var(--muted); font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.api-status.danger span { background:var(--danger-bg); color:var(--danger); }
table { width: 100%; border-collapse: collapse; margin-top: 0; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 16px; }
.table-scroll table { width: max-content; min-width: 100%; }
.market-table { min-width: 920px; }
.market-board-table { width: 100%; min-width: 0; table-layout: fixed; }
.market-board-table th,
.market-board-table td { padding: 12px 14px; vertical-align: middle; }
.market-board-table th:nth-child(1) { width: 30%; }
.market-board-table th:nth-child(2),
.market-board-table th:nth-child(3),
.market-board-table th:nth-child(4) { width: 16%; }
.market-board-scroll { position: relative; overflow-x: auto; scroll-padding-left: 220px; }
.market-board-scroll::after {
  content: "";
  position: sticky;
  right: 0;
  top: 0;
  float: right;
  width: 28px;
  height: 100%;
  margin-left: -28px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7,11,16,0), rgba(7,11,16,.92));
}
.market-board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 0; flex-wrap: wrap; }
.market-board-view-label { color: var(--muted); font-size: 13px; font-weight: 800; }
.market-board-view-toggle { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.market-board-panel.panel::before { display: none; }
.market-board-panel { background: #000; border: 1px solid rgba(255,255,255,.06); box-shadow: none; color: #eef4f7; }
.market-board-panel .market-card { background: #000; border: 1px solid rgba(255,255,255,.06); box-shadow: none; }
.market-board-panel .market-card[data-market-symbol] {
  background:
    linear-gradient(145deg, rgba(32,219,196,.075), rgba(255,255,255,0) 44%),
    linear-gradient(180deg, rgba(13, 19, 26, .98), rgba(3, 6, 9, .98));
  border-color: rgba(32,219,196,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 18px 38px rgba(0,0,0,.32);
  padding: 13px;
}
.market-board-panel .market-card[data-market-symbol] .market-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.market-board-panel .market-card[data-market-symbol] .market-card-title {
  min-width: 0;
  flex-wrap: nowrap;
}
.market-board-panel .market-card[data-market-symbol] .symbol-link {
  min-width: 0;
  display: inline-grid;
  gap: 2px;
}
.market-board-panel .market-card[data-market-symbol] .symbol-link strong {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-card-prime-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}
.market-card-prime-metrics div {
  min-width: 0;
  border: 1px solid rgba(32,219,196,.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32,219,196,.12), rgba(32,219,196,.045));
  padding: 9px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.market-card-prime-metrics span {
  display: block;
  color: #8fb2b5;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 4px;
}
.market-card-prime-metrics strong {
  display: block;
  color: #f4fffc;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-board-panel .market-card-metrics { gap: 6px 12px; margin-bottom: 8px; }
.market-board-panel .market-card-metrics div { border: none; background: rgba(255,255,255,.018); box-shadow: none; padding: 4px 0; }
.market-board-panel .market-card-metrics span { color: #8a9aa3; font-size: 11px; margin-bottom: 2px; }
.market-board-panel .market-card-metrics strong { color: #eef4f7; font-size: 14px; font-weight: 850; }
.market-board-panel .market-card-note { color: #9fb0b8; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.market-live-price { font-variant-numeric: tabular-nums; transition: color .28s ease; font-size: 16px; font-weight: 900; color: #f5f8fa; line-height: 1; }
.market-live-price.price-flash-up { color: #4ee68a; }
.market-live-price.price-flash-down { color: #ff5b63; }
.market-quote-stack { display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; min-width: 92px; margin-left: auto; }
.market-card-quote { margin: 0; align-items: flex-end; flex: 0 0 auto; min-width: 104px; }
.market-card-quote .market-live-price { display: inline-flex; align-items: center; min-height: 28px; font-size: 20px; letter-spacing: 0; text-align: right; }
.market-card-quote .gain-pill { min-height: 28px; }
.market-board-panel .symbol-link strong { color: #f5f8fa; font-size: 15px; font-weight: 900; }
.market-board-panel .symbol-link span { color: var(--accent); font-weight: 800; }
.market-board-panel .stack-line strong { color: #eef4f7; font-weight: 850; }
.market-board-panel .stack-label { color: #8a9aa3; }
.market-board-panel th { color: #9fb0b8; background: #000; }
.market-board-panel td { color: #dde7eb; }
.market-board-panel td strong { color: #f3f7fa; font-weight: 850; }
.market-board-panel .muted-row { color: #7d8b93; background: transparent; }
.market-lead-cell { position: sticky; left: 0; z-index: 3; min-width: 300px; width: 30%; background: #000; box-shadow: 8px 0 16px rgba(0,0,0,.92); }
.market-board-table thead th:first-child { z-index: 4; background: #000; }
.market-gain-cell .gain-pill, .market-card-head .gain-pill, .market-quote-stack .gain-pill { font-size: 14px; font-weight: 900; padding: 5px 10px; }
.gain-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 4px 9px; font-weight: 900; line-height: 1; border: 1px solid transparent; white-space: nowrap; }
.gain-extreme { color: #fff4f4; background: rgba(255,91,99,.24); border-color: rgba(255,91,99,.55); box-shadow: 0 0 20px rgba(255,91,99,.18); }
.gain-hot { color: #fff7d6; background: rgba(255,196,77,.22); border-color: rgba(255,196,77,.48); }
.gain-warm { color: #ffe9c7; background: rgba(255,154,60,.18); border-color: rgba(255,154,60,.34); }
.gain-up { color: #d7fff0; background: rgba(78,230,138,.14); border-color: rgba(78,230,138,.28); }
.gain-down { color: #ffd7db; background: rgba(255,91,99,.12); border-color: rgba(255,91,99,.24); }
.market-board-panel .market-rank-hot { color: #fff7d6; border-color: rgba(255,196,77,.45); background: rgba(255,196,77,.16); }
.market-board-panel .strategy-score { color: var(--accent-strong); font-weight: 900; }
.market-board-panel .funding-hot { color: #ffb4b8; font-weight: 900; }
.market-board-panel .status-badge.active { color: var(--success); background: rgba(78,230,138,.13); border-color: rgba(78,230,138,.28); }
.market-board-panel .status-badge.pending { color: var(--amber); background: rgba(255,196,77,.13); border-color: rgba(255,196,77,.28); }
.market-board-panel .status-badge.warn { color: #ffe7a8; background: rgba(255,196,77,.14); border-color: rgba(255,196,77,.42); }
.market-board-scroll::after { background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.96)); }
.market-board-panel .market-row-top { background: linear-gradient(90deg, rgba(255,196,77,.08), rgba(255,255,255,0)); }
.market-board-panel .market-row-top td { border-top-color: rgba(255,196,77,.18); border-bottom-color: rgba(255,196,77,.18); }
.market-board-panel .market-row-short { box-shadow: inset 3px 0 0 rgba(78,230,138,.75); }
.market-board-panel .market-row-warn { box-shadow: inset 3px 0 0 rgba(255,196,77,.85); }
.random-strategy-board {
  margin-top: 18px;
}
.random-strategy-board .market-table-wrap {
  margin-top: 12px;
}
.random-strategy-board .market-board-table {
  min-width: 980px;
}
.random-strategy-board .market-lead-cell {
  min-width: 330px;
}
.random-strategy-board .market-card-list {
  margin-top: 12px;
}
.market-view-btn.is-active { border-color: rgba(32,219,196,.28); background: rgba(32,219,196,.08); color: #b8d8d2; }
.market-board-hint { display: block; margin-bottom: 0; }
.market-board-cards { display: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.market-board-panel[data-market-layout="cards"] .market-board-scroll { display: none; }
.market-board-panel[data-market-layout="cards"] .market-board-cards { display: grid; }
.market-board-panel[data-market-layout="cards"] .market-board-hint { display: none; }
.market-board-table th:first-child,
.market-board-table td:first-child { position: sticky; left: 0; z-index: 2; }
.market-lead-main { display: grid; grid-template-columns: auto auto minmax(96px, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.market-lead-main .symbol-link { display: inline-grid; gap: 2px; }
.market-lead-main .symbol-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-stack-cell { min-width: 108px; width: 14%; }
.market-stack-cell .stack-line { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: baseline; gap: 8px; line-height: 1.45; }
.market-stack-cell .stack-line + .stack-line { margin-top: 4px; }
.stack-label { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.market-stack-cell .stack-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-board-panel .market-stack-cell:nth-child(3) strong,
.market-board-panel .market-stack-cell:nth-child(4) strong {
  color: #f4fffc;
}
.market-board-panel .market-stack-cell:nth-child(3),
.market-board-panel .market-stack-cell:nth-child(4) {
  background: rgba(32,219,196,.025);
}
.market-strategy-cell { width: 28%; min-width: 180px; white-space: normal; }
.market-strategy-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.market-reason-snippet { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.market-board-panel .market-reason-snippet { color: #9fb0b8; }
.compact-market-table { min-width: 640px; }
.market-filter-summary { margin: 10px 0 0; padding: 10px 12px; border: 1px solid rgba(127,229,218,.16); border-radius: 8px; background: rgba(32,219,196,.05); color: #aebfba; font-size: 13px; line-height: 1.5; }
.strategy-policy-note { margin: 10px 0 0; padding: 10px 12px; border: 1px solid rgba(127,229,218,.16); border-radius: 8px; background: rgba(32,219,196,.04); color: #aebfba; font-size: 13px; line-height: 1.5; }
.market-board-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 8px; flex-wrap: wrap; }
.market-board-head h2 { color: #f5f8fa; }
.market-board-title-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.market-board-title-line h2 { margin-bottom: 0; }
.market-legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.market-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(127,229,218,.24); background: rgba(3,8,12,.55); color: var(--muted); font-size: 12px; font-weight: 900; }
.market-rank-hot { color: #fff7d6; border-color: rgba(255,196,77,.45); background: rgba(255,196,77,.16); }
.market-live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(78,230,138,.20); background: rgba(78,230,138,.07); color: #8ecfb0; font-size: 12px; font-weight: 800; }
.market-live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #6ecf97; box-shadow: 0 0 8px rgba(78,230,138,.35); animation: market-live-pulse 1.6s ease-in-out infinite; }
.market-live-badge.is-paused { opacity: .58; color: #93a4ac; border-color: rgba(145,163,173,.18); background: rgba(145,163,173,.08); }
.market-live-badge.is-paused::before { animation: none; background: #8fa3ac; box-shadow: none; }
@keyframes market-live-pulse { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1); } }
.market-symbol-cell strong { font-size: 16px; letter-spacing: .02em; }
.market-board-panel th, .market-board-panel td { border-bottom-color: rgba(255,255,255,.06); }
.metric-chip { display: inline-block; padding: 3px 8px; border-radius: 999px; background: rgba(3,8,12,.55); border: 1px solid rgba(127,229,218,.16); font-weight: 800; font-size: 12px; }
.strategy-score { display: inline-block; margin-left: 8px; color: #8fd4ca; font-size: 12px; font-weight: 800; }
.funding-hot { color: #cf9da0; font-weight: 800; }
.status-badge.warn { color: #d9c48a; border-color: rgba(255,196,77,.22); background: rgba(255,196,77,.08); }
.market-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.market-card-metrics-rich { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.market-card-strategy { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.strategy-hotspot-toggle { grid-column: 1 / -1; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #9fb2bb; font-size: 13px; background: rgba(255,255,255,.045); font-weight: 800; }
td strong { font-weight: 850; }
.muted-row { color: #74838c; background: rgba(255,255,255,.025); }
.table-pick { min-height: 42px; min-width: 64px; padding: 8px 12px; border: 1px solid var(--line); background: rgba(145, 163, 173, .12); color: #d9eeee; box-shadow: none; font-size: 13px; touch-action: manipulation; }
.table-pick:hover { background: rgba(32,219,196,.12); }
.table-pick.selected { border-color: rgba(32,219,196,.48); background: rgba(32,219,196,.16); color: #dffffa; }
.symbol-link { display: inline-grid; gap: 3px; color: var(--ink); }
.symbol-link strong { color: var(--ink); }
.symbol-link span { color: var(--accent); font-size: 12px; font-weight: 900; }
.symbol-link:hover span { color: var(--accent-strong); }
.chart-panel .status-badge { max-width: 360px; white-space: normal; border-radius: 8px; line-height: 1.4; }
.symbol-chart-svg { display: block; width: 100%; height: auto; margin: 14px 0 16px; border: 1px solid rgba(32,219,196,.28); border-radius: 8px; background: #070b10; box-shadow: inset 0 0 36px rgba(32,219,196,.06); }
.chart-bg { fill: #071015; }
.chart-grid { stroke: rgba(127, 229, 218, .18); stroke-width: 1; }
.chart-axis { fill: #91a3ad; font-size: 12px; font-weight: 800; }
.chart-candle { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.candle-up, .candle-wick-up { fill: var(--success); stroke: var(--success); }
.candle-down, .candle-wick-down { fill: var(--danger); stroke: var(--danger); }
.candle-wick-up, .candle-wick-down { stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: #a9bac2; font-size: 13px; font-weight: 800; margin: 12px 0 4px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; }
.legend-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.legend-dot.up { background: var(--success); }
.legend-dot.down { background: var(--danger); }
.sub-section-head { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.funding-detail-grid div:last-child { grid-column: span 2; }
.inline { display: inline-grid; grid-auto-flow: column; gap: 6px; align-items: center; margin: 2px; }
.inline input, .inline select, .inline button { min-height: 34px; font-size: 13px; }
.admin-hero { grid-template-columns: minmax(0, 1fr) 420px; }
.admin-stats { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 12px; }
.admin-stat { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); border-radius: 8px; padding: 16px; }
.admin-stat span { display: block; color: #b9c3cf; font-size: 13px; margin-bottom: 8px; }
.admin-stat strong { display: block; color: white; font-size: 26px; }
.admin-table { min-width: 1120px; }
.admin-table th:last-child, .admin-table td:last-child { min-width: 390px; }
.history-table { min-width: 1060px; }
.history-table th:first-child, .history-table td:first-child { min-width: 84px; }
.history-table th:nth-child(6), .history-table td:nth-child(6) { min-width: 220px; }
.history-table th:nth-child(9), .history-table td:nth-child(9) { min-width: 260px; }
.execution-table { min-width: 1180px; }
.execution-table th:nth-child(8), .execution-table td:nth-child(8) { min-width: 180px; }
.execution-table th:nth-child(10), .execution-table td:nth-child(10) { min-width: 210px; }
.confirm-table { min-width: 860px; }
.confirm-table th:nth-child(5), .confirm-table td:nth-child(5) { min-width: 260px; }
.runs-table { min-width: 1160px; }
.runs-table th:nth-child(8), .runs-table td:nth-child(8) { min-width: 150px; }
.runs-table th:nth-child(9), .runs-table td:nth-child(9) { min-width: 280px; }
.order-items-table { min-width: 1260px; }
.order-items-table th:nth-child(10), .order-items-table td:nth-child(10) { min-width: 260px; }
.compact-grid { margin-top: 12px; }
.draft-table { min-width: 980px; }
.draft-table code { display: block; max-width: 520px; white-space: normal; overflow-wrap: anywhere; font-size: 12px; color: #bcd6dc; }
.draft-card-list { display: none; }
.draft-card { border: 1px solid var(--line); background: var(--panel-soft); border-radius: 8px; padding: 14px; }
.draft-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.draft-card-head strong { font-size: 15px; }
.draft-card-head span { color: var(--accent); font-size: 13px; font-weight: 900; text-align: right; }
.draft-phase { margin: 0 0 9px; color: var(--muted); font-size: 13px; font-weight: 800; }
.draft-card code { display: block; background: rgba(3, 8, 12, .76); border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: #bcd6dc; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.draft-card-foot { display: grid; gap: 9px; margin-top: 10px; }
.draft-card-foot .status-badge { justify-self: start; }
.draft-card-foot p { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.manifest-panel code { display: block; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(3, 8, 12, .76); color: #bcd6dc; font-size: 13px; overflow-wrap: anywhere; }
.manifest-lock { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }
.manifest-lock p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.manifest-lock-action { margin-top: 12px; }
.final-code-panel { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 12px; align-items: center; margin-top: 12px; padding: 14px; border: 1px solid rgba(127,229,218,.28); border-radius: 8px; background: rgba(32,219,196,.08); }
.final-code-panel span { display: block; color: var(--muted); font-size: 13px; font-weight: 900; margin-bottom: 6px; }
.final-code-panel code { display: inline-flex; width: auto; margin: 0; padding: 8px 12px; border-color: rgba(127,229,218,.28); background: rgba(3, 8, 12, .76); font-size: 18px; color: var(--ink); }
.final-code-panel p { margin: 8px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.final-code-panel.confirmed { grid-template-columns: 1fr; border-color: rgba(78,230,138,.34); background: var(--success-bg); }
.final-code-form { display: grid; grid-template-columns: 140px auto; gap: 10px; align-items: center; }
.live-precheck-form { width: 100%; max-width: 420px; }
.run-gate-panel .lead { margin: 0; }
.run-gate-list { margin-top: 8px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.inline-action { margin: 0; }
.inline-action button { width: auto; }
.inline-action.submitting button { opacity: .72; cursor: wait; }
.confirm-code-label { align-self: center; color: var(--muted); font-size: 13px; font-weight: 800; }
.confirm-code-input { width: 128px; min-height: 40px; font-family: inherit; font-weight: 800; text-align: center; letter-spacing: 0; }
.close-action-toolbar { display: flex; justify-content: flex-end; margin: 12px 0 14px; }
.profit-spotlight { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.profit-spotlight article { border: 1px solid rgba(127,229,218,.24); background: linear-gradient(180deg, rgba(12,24,28,.94), rgba(5,11,15,.94)); border-radius: 8px; padding: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 46px rgba(0,0,0,.22); }
.profit-spotlight span { display: block; color: var(--muted); font-size: 13px; font-weight: 900; margin-bottom: 8px; }
.profit-spotlight strong { display: block; font-size: clamp(24px, 4vw, 38px); line-height: 1.05; letter-spacing: 0; }
.profit-spotlight p { margin: 10px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.daily-profit-panel { border-color: rgba(127,229,218,.22); }
.daily-profit-card-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 8px; }
.daily-profit-card { border: 1px solid var(--line); background: var(--panel-soft); border-radius: 8px; padding: 14px; }
.daily-profit-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 900; margin-bottom: 7px; }
.daily-profit-card strong { display: block; font-size: 26px; line-height: 1.1; }
.daily-profit-metrics { display: grid; gap: 4px; margin-top: 10px; }
.daily-profit-metrics p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.daily-profit-metrics b { font-weight: 900; }
.daily-profit-table { min-width: 760px; }
.automation-previous-batch { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:14px 0; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--panel-soft); }
.automation-previous-batch div { min-width:0; }
.automation-previous-batch span,.automation-previous-batch small { display:block; color:var(--muted); font-size:12px; }
.automation-previous-batch strong { display:block; margin:4px 0; font-size:18px; }
.pnl-verification-details { margin:16px 0; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--panel-soft); }
.pnl-verification-details summary, .pnl-batch-card summary, .pnl-history-controls summary { cursor:pointer; min-height:44px; display:flex; align-items:center; gap:8px; }
.pnl-verification-details .pnl-projection-row { padding:10px 0; border-bottom:1px solid var(--line); }
.pnl-verification-details .pnl-projection-row span, .pnl-verification-details .pnl-projection-row small { display:block; color:var(--muted); }
.pnl-batch-card { margin:12px 0; }
.pnl-batch-card .section-head { gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.pnl-batch-card .section-head span, .pnl-batch-amount small { color:var(--muted); font-size:12px; }
.pnl-batch-amount { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 14px; }
.pnl-batch-amount > strong { font-size:24px; font-variant-numeric:tabular-nums; }
.pnl-position-line { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.pnl-position-line small { color:var(--muted); }
.pnl-user-action { padding:8px; color:var(--amber); }
.pnl-history-controls .pnl-summary > div:not(:first-child) { display:none; }
.pnl-history-controls .pnl-summary { display:block; }
.pnl-history-controls .pnl-summary[hidden] { display:none; }
.leaderboard-panel .lb-compact-row { display:grid; grid-template-columns:28px minmax(0,1fr) auto; gap:10px; align-items:center; min-height:56px; }
.lb-compact-row .lb-user { min-width:0; }
.lb-compact-row .lb-user strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lb-compact-row .lb-user small, .lb-my-line small { display:block; margin-top:3px; color:var(--muted); font-size:12px; line-height:1.35; }
.lb-compact-row .lb-pnl, .lb-my-line > strong { font-variant-numeric:tabular-nums; font-weight:700; white-space:nowrap; }
.lb-my-line { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 0; border-top:1px solid var(--line); }
.lb-my-line > div { min-width:0; }
.profit-calendar { margin:16px 0; padding:14px; border:1px solid var(--line); border-radius:8px; background:var(--panel-soft); }
.profit-calendar .section-head { margin-bottom:10px; }
.profit-calendar .section-head h3,.profit-calendar .section-head p { margin:0; }
.profit-calendar-weekdays,.profit-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.profit-calendar-weekdays { margin-bottom:6px; color:var(--muted); font-size:12px; text-align:center; }
.profit-calendar-day { min-height:72px; padding:8px; border:1px solid var(--line); border-radius:6px; background:var(--panel); }
.profit-calendar-day > span,.profit-calendar-day small { display:block; color:var(--muted); font-size:11px; }
.profit-calendar-day strong { display:block; min-width:0; margin:7px 0 3px; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profit-calendar-day.outside { opacity:.28; }
.profit-calendar-day.today { border-color:var(--accent); }
.profit-calendar-day.has-result { box-shadow:inset 0 2px 0 rgba(47,224,166,.45); }
.close-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.close-action-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--panel-soft); border-radius: 8px; padding: 14px; }
.close-action-card strong { display: block; font-size: 16px; margin-bottom: 4px; overflow-wrap: anywhere; }
.close-action-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.close-action-card.active-close-card { border-color: rgba(127,229,218,.28); background: rgba(127,229,218,.06); }
.close-action-card.disabled-close-card { opacity: .62; }
.close-form { margin: 0; }
.close-form.compact-close-form { display: flex; justify-content: flex-end; }
.all-close-form { border: 1px solid rgba(255,92,122,.34); background: rgba(255,92,122,.08); border-radius: 8px; padding: 12px; }
.all-close-form button { min-width: 140px; }
.confirm-checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-weight: 700; color: #c9dce0; }
.confirm-checkbox input[type="checkbox"] { width: auto; min-width: 20px; min-height: 20px; margin: 2px 0 0; flex: 0 0 auto; }
.muted-hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.table-scroll-hint { display: none; margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.market-card-list, .history-card-list, .admin-card-list, .detail-card-list { display: none; }
.market-card, .history-card, .admin-card, .detail-card { border: 1px solid var(--line); background: var(--panel-soft); border-radius: 8px; padding: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.market-card-head, .history-card-head, .admin-card-head, .detail-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.market-card-head strong, .history-card-head strong, .admin-card-head strong, .detail-card-head strong { font-size: 16px; overflow-wrap: anywhere; }
.market-card-head p, .history-card-head p, .admin-card-head p, .detail-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.market-card-metrics, .history-card-metrics, .admin-card-metrics, .detail-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.market-card-metrics.compact-metrics { grid-template-columns: 1fr 1fr; }
.market-card-metrics div, .history-card-metrics div, .admin-card-metrics div, .detail-card-metrics div { border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: rgba(3, 8, 12, .52); }
.market-card-metrics span, .history-card-metrics span, .admin-card-metrics span, .detail-card-metrics span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.market-card-metrics strong, .history-card-metrics strong, .admin-card-metrics strong, .detail-card-metrics strong { display: block; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; }
.market-card-note, .detail-card-note { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.market-card-foot, .history-card-foot, .admin-card-actions, .detail-card-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.history-card-live { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.history-card-live p { margin: 6px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.admin-card-form { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.admin-card-form label { margin: 0; }
.admin-card-form button { width: 100%; }
.admin-card-actions form { flex: 1 1 120px; }
.admin-card-actions button { width: 100%; }
.admin-users-panel .admin-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: 12px;
  margin-top: 16px;
}
.admin-users-panel .admin-card { min-width: 0; }
.admin-users-panel .admin-card-form select,
.admin-users-panel .admin-card-form input,
.admin-users-panel .admin-card-form button { width: 100%; min-width: 0; }
form.submitting { opacity: .82; pointer-events: none; }
.live-order-progress { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(2, 6, 10, .58); backdrop-filter: blur(6px); }
.live-order-progress-box { width: min(520px, 100%); display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: center; border: 1px solid rgba(32,219,196,.42); border-radius: 8px; background: linear-gradient(180deg, rgba(14, 24, 32, .98), rgba(6, 12, 17, .98)); box-shadow: 0 28px 72px rgba(0,0,0,.48), 0 0 42px rgba(32,219,196,.16); padding: 18px; }
.live-order-spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(127,229,218,.22); border-top-color: var(--accent); animation: live-spin 1s linear infinite; box-shadow: 0 0 28px rgba(32,219,196,.18); }
.live-order-progress-copy { min-width: 0; }
.live-order-progress-copy strong { display: block; color: #effffc; font-size: 18px; margin-bottom: 6px; }
.live-order-progress-copy p { margin: 0; color: #b8cbd0; overflow-wrap: anywhere; }
.live-order-progress-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.live-order-progress-meta span { min-height: 30px; display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid rgba(127,229,218,.22); border-radius: 8px; background: rgba(32,219,196,.09); color: #ddfffa; font-size: 12px; font-weight: 900; }
.live-order-progress { transition: background .3s ease, backdrop-filter .3s ease; }
.live-order-progress-box { transition: width .3s ease, padding .3s ease, transform .3s ease, box-shadow .3s ease; }
.live-order-progress--mini { place-items: end start; padding: 0; background: transparent; backdrop-filter: none; pointer-events: none; }
.live-order-progress--mini .live-order-progress-box { width: auto; max-width: min(340px, 92vw); margin: 0 0 18px 18px; padding: 11px 15px; grid-template-columns: 24px minmax(0,1fr); gap: 11px; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 22px rgba(32,219,196,.12); animation: live-progress-mini-in .3s ease; }
.live-order-progress--mini .live-order-spinner { width: 22px; height: 22px; border-width: 2px; box-shadow: none; }
.live-order-progress--mini .live-order-progress-copy strong { font-size: 14px; margin-bottom: 2px; }
.live-order-progress--mini .live-order-progress-copy p { font-size: 12px; }
.live-order-progress--mini .live-order-progress-meta { display: none; }
@keyframes live-progress-mini-in { from { transform: translateY(10px); opacity: .3; } to { transform: translateY(0); opacity: 1; } }
@keyframes live-spin { to { transform: rotate(360deg); } }
.secondary-button { background: rgba(145, 163, 173, .18); color: #d9eeee; box-shadow: none; }
.secondary-button:hover { background: rgba(145, 163, 173, .25); }
.timeline { display: grid; gap: 10px; }
.timeline-item { border: 1px solid var(--line); background: var(--panel-soft); border-radius: 8px; padding: 13px 14px; }
.timeline-item span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.timeline-item strong { display: block; margin-bottom: 5px; }
.timeline-item p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.profit-up { color: var(--green); font-weight: 950; text-shadow: 0 0 16px rgba(25,240,111,.28); }
.profit-down { color: var(--red); font-weight: 950; text-shadow: 0 0 16px rgba(255,51,77,.24); }
.muted-profit { color: var(--muted); font-weight: 850; }
.table-empty { margin: 0; max-width: 760px; white-space: normal; overflow-wrap: anywhere; color: var(--ink); }
.admin-action { grid-template-columns: 74px 110px 110px 78px; }
.admin-action input, .admin-action select, .admin-action button { padding-left: 9px; padding-right: 9px; }
.admin-action button { white-space: nowrap; }
.status-badge { display: inline-flex; min-width: 68px; justify-content: center; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; background: rgba(145, 163, 173, .14); color: #c9dce0; border: 1px solid rgba(145, 163, 173, .18); }
.status-badge.active { background: var(--success-bg); color: var(--success); border-color: rgba(25,240,111,.42); box-shadow: 0 0 16px rgba(25,240,111,.10); }
.status-badge.pending { background: var(--amber-bg); color: var(--amber); }
.status-badge.expired, .status-badge.disabled { background: var(--danger-bg); color: var(--danger); border-color: rgba(255,91,99,.28); }
.table-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.table-note.danger-note { color: #ff9aa1; font-weight: 900; overflow-wrap: anywhere; word-break: break-word; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: #80d6ca; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.api-guide-panel { border-color: rgba(32,219,196,.30); }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px; }
.guide-steps div { border: 1px solid var(--line); background: var(--panel-soft); border-radius: 8px; padding: 16px; }
.guide-steps span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 28px; margin-bottom: 12px; border-radius: 999px; background: rgba(32,219,196,.14); color: var(--accent); font-size: 12px; font-weight: 900; border: 1px solid rgba(32,219,196,.22); }
.guide-steps strong { display: block; margin-bottom: 7px; font-size: 17px; }
.guide-steps p { margin: 0; font-size: 14px; }
.api-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr); gap: 18px; align-items: start; }
.api-status { border-radius: 8px; padding: 18px; min-height: 100%; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.api-status span { display: inline-block; margin-bottom: 12px; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.api-status strong { display: block; font-size: 20px; margin-bottom: 8px; overflow-wrap: anywhere; }
.api-status p { margin: 0; overflow-wrap: anywhere; word-break: break-word; }
.api-status.pending span { background: var(--amber-bg); color: var(--amber); }
.api-status.connected span { background: var(--success-bg); color: var(--success); }
.api-status-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.api-status-actions form { margin: 0; }
.api-status-actions .action-link { margin-top: 0; }
.api-primary-panel { display: grid; gap: 18px; }
.api-primary-panel .api-grid { align-items: start; }
.api-primary-copy { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.api-management-panel { border-color: rgba(32,219,196,.28); }
.api-management-grid { display:grid; grid-template-columns:repeat(4,minmax(210px,1fr)); gap:12px; margin-top:12px; }
.api-management-card { display:flex; flex-direction:column; gap:14px; min-height:310px; padding:16px; border:1px solid rgba(127,229,218,.18); border-radius:8px; background:#0d151c; box-shadow:inset 0 1px 0 rgba(255,255,255,.04); }
.api-management-card.selected { border-color:rgba(32,219,196,.70); box-shadow:0 0 0 1px rgba(32,219,196,.12),0 12px 32px rgba(0,0,0,.18); }
.api-management-card.connected { border-color:rgba(78,230,138,.34); }
.api-management-card.warning { border-color:rgba(255,196,86,.38); }
.api-management-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.api-management-identity { display:flex; align-items:center; gap:9px; min-width:0; }
.api-management-identity strong { color:#f1fbfb; font-size:18px; }
.api-management-status { flex:0 0 auto; padding:5px 8px; border-radius:999px; background:rgba(145,163,173,.12); color:#c6d6da; font-size:11px; font-weight:900; }
.api-management-card.connected .api-management-status { background:var(--success-bg); color:var(--success); }
.api-management-card.warning .api-management-status { background:var(--amber-bg); color:var(--amber); }
.api-management-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.api-management-metrics div { min-width:0; padding:10px; border:1px solid rgba(255,255,255,.07); border-radius:6px; background:rgba(255,255,255,.025); }
.api-management-metrics span,.api-management-metrics strong { display:block; overflow-wrap:anywhere; }
.api-management-metrics span { margin-bottom:5px; color:#879ba3; font-size:11px; font-weight:800; }
.api-management-metrics strong { color:#f2fbfb; font-size:14px; }
.api-management-key,.api-management-note { margin:0; color:#8fa3aa; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.api-management-note { min-height:36px; }
.api-management-actions { display:flex; flex-wrap:wrap; align-items:stretch; gap:8px; margin-top:auto; }
.api-management-actions>form,.api-management-actions>.exchange-bind-actions { display:flex; flex:1 1 110px; gap:8px; margin:0; }
.api-management-actions button,.api-management-actions .action-link { width:100%; min-height:38px; margin:0; justify-content:center; }
.api-edit-grid { margin-top:18px; }
.api-tutorial-panel,.api-registration-panel { margin-top:18px; }
.api-tutorial-grid { display:grid; grid-template-columns:repeat(4,minmax(200px,1fr)); gap:12px; margin-top:12px; }
.api-tutorial-card { display:flex; flex-direction:column; min-height:250px; padding:16px; border:1px solid rgba(32,219,196,.24); border-radius:8px; background:rgba(12,21,28,.86); }
.api-tutorial-title { display:flex; align-items:center; gap:10px; }
.api-tutorial-title>div { display:grid; gap:2px; }
.api-tutorial-title strong { color:#f2fbfb; font-size:17px; }
.api-tutorial-title span { color:var(--accent); font-size:12px; font-weight:850; }
.api-tutorial-card ol { display:grid; gap:9px; margin:16px 0; padding-left:20px; color:#a9bbc1; font-size:13px; line-height:1.45; }
.api-tutorial-card .action-link { margin-top:auto; }
.api-registration-panel .reg-grid { margin-top:12px; }
.exchange-balance-panel { margin-top: 18px; }
.exchange-balance-grid { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.exchange-balance-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 260px; border: 1px solid rgba(32,219,196,.22); border-radius: 8px; padding: 16px; background: linear-gradient(180deg, rgba(16,30,34,.82), rgba(8,14,20,.76)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.exchange-balance-card.connected { border-color: rgba(78,230,138,.34); background: linear-gradient(180deg, rgba(28,68,49,.28), rgba(8,14,20,.80)); }
.exchange-balance-card.pending { border-color: rgba(255,196,86,.34); background: linear-gradient(180deg, rgba(92,70,25,.24), rgba(8,14,20,.80)); }
.exchange-balance-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.exchange-balance-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.exchange-balance-name strong { color: var(--ink); font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.exchange-balance-state { flex: 0 0 auto; color: var(--ink); font-size: 13px; font-weight: 900; }
.exchange-balance-status { width: fit-content; padding: 5px 9px; border-radius: 999px; background: rgba(145,163,173,.14); color: #cfe4e8; font-size: 12px; font-weight: 950; }
.exchange-balance-card.connected .exchange-balance-status { background: var(--success-bg); color: var(--success); }
.exchange-balance-card.pending .exchange-balance-status { background: rgba(255,196,86,.14); color: var(--warning); }
.exchange-balance-body { display: grid; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.exchange-balance-body div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 8px; }
.exchange-balance-body span { color: #93a7ad; }
.exchange-balance-body b { color: #f2fbfb; text-align: right; overflow-wrap: anywhere; }
.exchange-balance-note { color: #9fb0b8; font-size: 12px; line-height: 1.45; min-height: 34px; }
.exchange-balance-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.exchange-balance-actions .action-link { margin-top: 0; flex: 1 1 120px; justify-content: center; }
.exchange-bind-panel { border-color: rgba(32,219,196,.28); }
.exchange-bind-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.exchange-bind-card { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 190px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: rgba(8,14,20,.76); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.exchange-bind-card.connected { border-color: rgba(78,230,138,.36); background: rgba(78,230,138,.08); }
.exchange-bind-card.pending { border-color: rgba(32,219,196,.34); background: rgba(32,219,196,.08); }
.exchange-bind-card.warning { border-color: rgba(255,196,86,.36); background: rgba(255,196,86,.08); }
.exchange-bind-card.disabled { opacity: .78; }
.exchange-bind-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.exchange-bind-card span { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: rgba(145,163,173,.14); color: #cfe4e8; font-size: 12px; font-weight: 900; }
.exchange-bind-card.connected span { background: var(--success-bg); color: var(--success); }
.exchange-bind-card.pending span { background: rgba(32,219,196,.12); color: var(--accent); }
.exchange-bind-card.warning span { background: rgba(255,196,86,.14); color: var(--warning); }
.exchange-bind-state { display: block; color: var(--ink); font-size: 15px; font-weight: 900; line-height: 1.2; white-space: nowrap; }
.exchange-bind-name { display: block; color: var(--ink); font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; margin-top: 2px; }
.exchange-bind-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.exchange-bind-meta { display: grid; gap: 6px; }
.exchange-bind-meta small { display: block; color: #aabec4; font-size: 12px; font-weight: 800; }
.selected-exchange-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; margin: 14px 0 16px; padding: 12px 14px; border: 1px solid rgba(32,219,196,.28); border-radius: 8px; background: linear-gradient(135deg, rgba(32,219,196,.12), rgba(88,166,255,.08)); }
.selected-exchange-strip span { color: var(--muted); font-size: 12px; font-weight: 900; }
.selected-exchange-strip strong { color: var(--ink); font-size: 17px; line-height: 1.2; }
.selected-exchange-strip .exchange-logo-mark { grid-row: 1 / span 2; }
.selected-exchange-strip small { grid-column: 3; grid-row: 1 / span 2; color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.exchange-logo-mark { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #f7ffff; font-size: 12px; font-weight: 950; letter-spacing: 0; flex: 0 0 auto; box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 0 22px rgba(32,219,196,.08); }
.exchange-logo-binance_usdt_m { color: #10110a; background: linear-gradient(135deg, #f0b90b, #ffe08a); border-color: rgba(240,185,11,.70); }
.exchange-logo-bybit_usdt_m { color: #10110a; background: linear-gradient(135deg, #f7c843, #fff2a8); border-color: rgba(247,200,67,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 0 24px rgba(247,200,67,.22); }
.exchange-logo-okx_swap { color: #f7ffff; background: linear-gradient(135deg, #111820, #3a4652); border-color: rgba(255,255,255,.22); }
.exchange-logo-bitget_usdt_m { color: #06100f; background: linear-gradient(135deg, #00f0a8, #83ffd8); border-color: rgba(0,240,168,.58); }
.exchange-logo-gate_usdt_m { color: #f7ffff; background: linear-gradient(135deg, #234bff, #5fd7ff); border-color: rgba(95,215,255,.56); }
.market-exchange-switch { display: grid; grid-template-columns: repeat(5, minmax(128px, 1fr)); gap: 10px; margin: -4px 0 16px; max-width: 920px; }
.market-exchange-card { display: grid; gap: 8px; min-height: 104px; padding: 13px 14px; border-radius: 8px; border: 1px solid rgba(145,163,173,.16); background: rgba(8,14,20,.72); color: var(--ink); text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.market-exchange-card-head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.market-exchange-card span { color: var(--muted); font-size: 12px; font-weight: 900; }
.market-exchange-card strong { color: #f5f8fa; font-size: 18px; line-height: 1.15; }
.market-exchange-card small { color: #9fb0b8; font-size: 12px; line-height: 1.35; }
.market-exchange-card.active { border-color: rgba(32,219,196,.36); background: linear-gradient(135deg, rgba(32,219,196,.15), rgba(78,230,138,.08)); box-shadow: 0 0 0 1px rgba(32,219,196,.08), inset 0 1px 0 rgba(255,255,255,.05); }
.market-exchange-card.active .exchange-logo-mark { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 24px rgba(32,219,196,.20); }
.market-exchange-card.active span, .market-exchange-card:hover span { color: var(--accent); }
.market-exchange-card:hover { border-color: rgba(32,219,196,.30); transform: translateY(-1px); }
.precheck-list { display: grid; gap: 12px; margin-top: 16px; }
.precheck-item { display: grid; grid-template-columns: 86px minmax(160px, .45fr) minmax(220px, 1fr); gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--panel-soft); border-radius: 8px; padding: 14px; }
.precheck-item span { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; border-radius: 999px; font-size: 12px; font-weight: 900; background: rgba(145, 163, 173, .14); color: #c9dce0; }
.precheck-item strong { color: var(--ink); }
.precheck-item p { margin: 0; font-size: 14px; }
.precheck-item.ready { border-color: rgba(78,230,138,.34); background: var(--success-bg); }
.precheck-item.ready span { background: var(--success-bg); color: var(--success); }
.precheck-item.blocked span { background: var(--danger-bg); color: var(--danger); }
.precheck-item.checking span { background: var(--amber-bg); color: var(--amber); }
.precheck-item.pending span { background: var(--amber-bg); color: var(--amber); }
.readiness-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }
.readiness-actions p { flex: 1 1 260px; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.readiness-actions .action-link { margin-top: 0; }
.runbook-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.runbook-grid div { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); padding: 12px; }
.runbook-grid span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.runbook-grid code { display: block; color: #bcd6dc; font-size: 12px; overflow-wrap: anywhere; white-space: normal; }
.action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: 14px; padding: 8px 13px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #7ff7df); color: #05100f; font-weight: 900; box-shadow: 0 14px 30px rgba(32,219,196,.16); }
.action-link:hover { background: linear-gradient(135deg, var(--accent-strong), #b2fff1); }
.mini-link { min-height: 32px; margin-top: 0; padding: 5px 10px; font-size: 13px; }
.filter-strip { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0 14px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(145, 163, 173, .12); color: var(--ink); font-size: 13px; font-weight: 900; }
.filter-chip strong { color: var(--accent); }
.filter-chip.active { border-color: rgba(32,219,196,.42); background: rgba(32,219,196,.12); color: var(--accent-strong); }
.alert-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; padding: 12px; border: 1px solid rgba(255,91,99,.34); border-radius: 8px; background: var(--danger-bg); }
.alert-strip strong { color: var(--danger); }
.alert-strip span { color: var(--muted); font-size: 13px; font-weight: 800; }
.alert-strip.info-strip { border-color: rgba(127,229,218,.30); background: rgba(32,219,196,.09); }
.alert-strip.info-strip strong { color: var(--accent-strong); }
.alert-strip.success-strip { border-color: rgba(78,230,138,.34); background: rgba(78,230,138,.10); }
.alert-strip.success-strip strong { color: var(--success); }
.submitted-order-detail-toggle { margin: 8px 0 16px; border: 1px solid rgba(127,229,218,.20); border-radius: 8px; background: rgba(8,14,20,.64); overflow: hidden; }
.submitted-order-detail-toggle summary { cursor: pointer; padding: 11px 14px; color: var(--accent); font-size: 13px; font-weight: 900; list-style: none; }
.submitted-order-detail-toggle summary::-webkit-details-marker { display: none; }
.submitted-order-detail-toggle summary:before { content: "▸ "; color: var(--accent); }
.submitted-order-detail-toggle[open] summary:before { content: "▾ "; }
.submitted-order-detail-toggle > .panel { margin: 0 12px 12px; }
.close-progress-list { flex: 1 1 100%; margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 13px; font-weight: 700; }
.close-progress-list li { margin: 4px 0; }
.worker-task-panel { margin: 0 0 18px; padding: 18px; border: 1px solid rgba(127,229,218,.30); border-radius: 8px; background: linear-gradient(135deg, rgba(32,219,196,.15), rgba(8,14,20,.96)); box-shadow: var(--shadow), 0 0 42px rgba(32,219,196,.10); }
.worker-task-panel.success { border-color: rgba(78,230,138,.38); background: linear-gradient(135deg, rgba(78,230,138,.13), rgba(8,14,20,.96)); }
.worker-task-panel.danger { border-color: rgba(255,91,99,.42); background: linear-gradient(135deg, rgba(255,91,99,.13), rgba(8,14,20,.96)); }
.worker-task-hero { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.worker-task-pulse { width: 14px; height: 14px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 8px rgba(32,219,196,.10), 0 0 24px rgba(32,219,196,.42); }
.worker-task-panel.success .worker-task-pulse { background: var(--success); box-shadow: 0 0 0 8px rgba(78,230,138,.10), 0 0 24px rgba(78,230,138,.32); }
.worker-task-panel.danger .worker-task-pulse { background: var(--danger); box-shadow: 0 0 0 8px rgba(255,91,99,.10), 0 0 24px rgba(255,91,99,.32); }
.worker-task-hero h2 { margin: 0 0 6px; font-size: 26px; }
.worker-task-hero p { margin: 0; color: #c5d8dc; overflow-wrap: anywhere; }
.worker-task-count { min-width: 118px; border: 1px solid rgba(127,229,218,.22); border-radius: 8px; background: rgba(3,8,12,.42); padding: 12px; text-align: center; }
.worker-task-count span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; margin-bottom: 5px; }
.worker-task-count strong { display: block; font-size: 30px; line-height: 1; color: var(--accent-strong); }
.worker-task-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.worker-task-list div { border: 1px solid rgba(127,229,218,.18); border-radius: 8px; background: rgba(3,8,12,.36); padding: 14px; }
.worker-task-list strong { display: block; margin: 9px 0 6px; overflow-wrap: anywhere; }
.worker-task-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.worker-task-list small { display: block; margin-top: 8px; color: #74838c; font-size: 12px; overflow-wrap: anywhere; }
.worker-task-progress { margin: 8px 0 0; color: var(--accent-strong); font-size: 13px; font-weight: 800; }
.worker-task-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.worker-task-item { border: 1px solid rgba(127,229,218,.18); border-radius: 8px; background: rgba(3,8,12,.36); padding: 12px; }
.worker-task-item strong { display: block; margin-bottom: 6px; font-size: 14px; }
.worker-task-item p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.worker-task-item.running { border-color: rgba(32,219,196,.34); }
.worker-task-item.failed { border-color: rgba(255,91,99,.34); }
.worker-task-item.succeeded { border-color: rgba(78,230,138,.28); }
.attention-row td { background: rgba(255,91,99,.06); }
.resolution-box { display: grid; grid-template-columns: minmax(220px, .45fr) minmax(280px, 1fr); gap: 12px; align-items: center; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }
.resolution-box strong { color: var(--ink); }
.resolution-box p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.resolution-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.resolution-form input { flex: 1 1 240px; min-height: 40px; margin: 0; }
.resolution-form button { margin: 0; }
.review-summary-grid strong { font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.safety-list { display: grid; gap: 12px; }
.safety-list div { border: 1px solid var(--line); background: var(--panel-soft); border-radius: 8px; padding: 14px; }
.safety-list span { display: inline-block; color: var(--accent); font-weight: 900; margin-bottom: 8px; }
.safety-list strong { display: block; margin-bottom: 5px; }
.safety-list p { margin: 0; font-size: 14px; }
.api-form { margin-bottom: 0; }
@media (max-width:640px) {
  .home-combined-pnl-grid,.home-account-grid,.home-connection-summary>div:last-child { grid-template-columns:1fr; }
  .automation-config-modal { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); padding:14px; }
  .automation-config-modal .automation-wizard-bar { top:-14px; margin:-14px -14px 12px; padding:12px 14px 10px; }
  .automation-config-modal .automation-core-settings { gap:8px; }
  .automation-config-modal .automation-core-settings label { font-size:12px; }
  .automation-config-modal .automation-core-settings input,
  .automation-config-modal .automation-core-settings select { min-height:38px; padding:8px; font-size:13px; }
  .automation-config-modal form.confirm > [data-automation-start-trigger] { bottom:-14px; margin:10px -2px -14px; }
}
@media print {
  @page { margin: 14mm; }
  * { box-shadow: none !important; text-shadow: none !important; }
  html, body { width: auto; max-width: none; background: white !important; color: #101820; }
  body { font-size: 12px; }
  .top, nav, .notice, .report-copy, .report-actions { display: none !important; }
  .mobile-bottom-nav { display: none !important; }
  .wrap { width: auto; max-width: none; padding: 0; }
  .report-page { max-width: none; gap: 10px; }
  .report-head, .share-report-head { background: white !important; color: #101820; border-color: #8a95a3; padding: 12px; break-inside: avoid; }
  .report-head h1 { color: #101820; font-size: 24px; margin-bottom: 6px; }
  .report-head p { color: #4f5d6b; }
  .report-head .eyebrow { color: #4f5d6b; margin-bottom: 8px; }
  .report-verdict, .report-grid div, .report-events { border-color: #c8d0d8; padding: 12px; break-inside: avoid; }
  .report-verdict strong { font-size: 20px; }
  .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .compact-report-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .report-grid strong { font-size: 14px; }
  .report-events { gap: 6px; }
  .report-events div { padding-top: 8px; break-inside: avoid; }
  .status-badge { border: 1px solid #c8d0d8; background: white !important; color: #101820 !important; }
  a { color: #101820; text-decoration: none; }
}
@media (max-width: 860px) {
  .positions-live-region { display:grid; }
  .ordinary-page-intro { display:grid; align-items:start; gap:14px; padding-bottom:15px; }
  .ordinary-page-intro h1 { font-size:26px; }
  .ordinary-page-actions { justify-content:stretch; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ordinary-page-actions .action-link { width:100%; text-align:center; }
  .ordinary-shell .profile-v129-layout { grid-template-columns:1fr; }
  .ordinary-shell .profile-v129-edit,.ordinary-shell .profile-v129-share { grid-column:auto; }
  .ordinary-shell .profile-v129-identity { min-height:0; }
  .ordinary-shell .profile-v129-identity h1 { font-size:20px; }
  .ordinary-shell .profile-profit { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ordinary-shell .profile-profit>div { min-width:0; }
  .ordinary-shell .profile-profit strong { font-size:18px; overflow-wrap:anywhere; }
  .ordinary-shell .profile-v129-profit .section-head { align-items:flex-start; }
  .ordinary-shell .profile-v129-profit .section-head>.action-link { white-space:nowrap; }
  .ordinary-shell .profile-switch-row { align-items:flex-start; }
  .ordinary-shell .history-v129-daily .lead,.ordinary-shell .history-v129-records .lead { font-size:12px; line-height:1.55; }
  html, body { max-width: 100%; overflow-x: hidden; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .auth-grid, .grid, .settings, .filters, .form-grid, .hero-panel, .api-grid, .guide-steps, .admin-hero, .admin-stats, .mode-grid, .preview-grid, .live-symbol-grid, .send-preview-grid, .entry-result-banner, .profit-spotlight, .daily-profit-card-list, .exchange-bind-grid, .exchange-balance-grid, .api-management-grid, .api-tutorial-grid, .market-exchange-switch, .automation-previous-batch { grid-template-columns: 1fr; }
  .profit-calendar { padding:8px; }
  .profit-calendar-weekdays,.profit-calendar-grid { gap:3px; }
  .profit-calendar-day { min-height:58px; padding:5px 1px; }
  .profit-calendar-day strong { font-size:10px; }
  .auth-actions { grid-template-columns: 1fr; }
  .funding-detail-grid div:last-child { grid-column: span 1; }
  .wrap { width: 100%; max-width: 100%; padding: 18px; padding-bottom: calc(18px + 64px + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; }
  .hero-panel { display: block; width: 100%; max-width: calc(100vw - 36px); overflow: hidden; }
  .hero-panel * { max-width: 100%; }
  .hero-panel .api-status { margin-top: 18px; }
  .top { height: auto; padding: 16px; align-items: flex-start; gap: 12px; flex-direction: column; }
  .ordinary-sidebar { display:none; }
  .ordinary-shell .top { margin-left:0; }
  .ordinary-shell .wrap { width:100%; max-width:100%; margin:0; padding:18px; padding-bottom:calc(18px + 64px + env(safe-area-inset-bottom, 0px)); }
  .home-task-overview .section-head { align-items:flex-start; }
  .home-task-grid { grid-template-columns:1fr; }
  .home-task-card { min-height:128px; }
  .home-task-card>small { margin-top:14px; }
  .home-exchange-context { align-items:stretch; flex-direction:column; }
  .home-exchange-context nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-combined-pnl-head { grid-template-columns:1fr; }
  .home-combined-pnl-grid,.home-account-grid,.home-connection-summary>div:last-child { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .brand { overflow-wrap: anywhere; }
  .userbar { width: 100%; flex-wrap: wrap; }
  .tabs { display: none; }
  .mobile-bottom-nav { display: flex; }
  .skin-toggle { display: none; }
  .panel, .headline, .hero-panel { padding: 24px 18px; }
  .hero-panel { padding: 18px 16px; margin-bottom: 12px; }
  .hero-panel .api-status { margin-top: 8px; }
  .hero-panel h1 { font-size: 28px; margin-bottom: 8px; }
  .hero-panel p { line-height: 1.45; }
  .period-tabs { grid-template-columns: 1fr; max-width: none; }
  .order-head { display: grid; }
  .symbol-menu.open, .random-draw, .close-action-grid { grid-template-columns: 1fr; }
  .close-action-toolbar { display: grid; grid-template-columns: 1fr; }
  .close-action-card { grid-template-columns: 1fr; align-items: stretch; }
  .entry-result-chips { justify-content: flex-start; }
  .positions-head, .position-card-top { display: grid; gap: 12px; }
  .position-toolbar { display: grid; grid-template-columns: 1fr; justify-content: stretch; align-items: stretch; }
  .position-toolbar .action-link, .position-toolbar .position-close-form button { width: 100%; justify-content: center; }
  .position-close-alert { grid-template-columns: 1fr; }
  .position-close-alert .inline-actions { display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .position-close-alert .inline-action, .position-close-alert .inline-action button, .position-close-alert .action-link { width: 100%; justify-content: center; }
  .position-close-alert-list li { grid-template-columns: 1fr; align-items: start; }
  .exchange-switch-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .position-pnl-row, .position-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .position-pnl-row strong { font-size: 24px; }
  .position-actions, .position-close-form, .position-close-form button { width: 100%; }
  .position-batch-list li { grid-template-columns: 1fr; align-items: start; }
  .position-recent-close-list, .position-recent-close-metrics { grid-template-columns: 1fr; }
  .close-form.compact-close-form { justify-content: stretch; }
  .close-form.compact-close-form button, .all-close-form button { width: 100%; }
  .symbol-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .precheck-item { grid-template-columns: 1fr; }
  .report-grid, .compact-report-grid { grid-template-columns: 1fr; }
  .report-actions { display: grid; grid-template-columns: 1fr; }
  .resolution-box { grid-template-columns: 1fr; }
  .resolution-form { display: grid; grid-template-columns: 1fr; }
  .final-code-panel { grid-template-columns: 1fr; }
  .final-action-box { grid-template-columns: 1fr; }
  .final-action-box form { justify-content: stretch; }
  .final-action-box button { width: 100%; }
  .final-code-form { grid-template-columns: 1fr; }
  .final-code-form .confirm-code-input { width: 100%; }
  .readiness-actions { display: grid; grid-template-columns: 1fr; }
  .readiness-actions .action-link { width: 100%; }
  .api-status-actions { display: grid; grid-template-columns: 1fr; }
  .api-status-actions .action-link, .api-status-actions button { width: 100%; }
  .exchange-balance-card { min-height: 0; }
  .exchange-balance-actions { display: grid; grid-template-columns: 1fr; }
  .exchange-balance-actions .action-link, .exchange-balance-actions button { width: 100%; }
  .worker-task-hero { grid-template-columns: 1fr; align-items: stretch; }
  .worker-task-count { text-align: left; }
  .worker-task-list { grid-template-columns: 1fr; }
  .runbook-grid { grid-template-columns: 1fr; }
  .inline, .admin-action { grid-auto-flow: row; grid-template-columns: minmax(150px, 1fr); width: 100%; }
  .hero-panel p, .api-status p { max-width: calc(100vw - 72px); overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
  .api-status { min-width: 0; }
  .api-status .riskbox { padding: 10px; }
  .api-status .confirm-box { margin-top: 8px; }
  .api-status .confirm-box button { min-height: 42px; padding: 8px 12px; }
  h1 { font-size: 30px; }
  .manifest-lock { display: grid; gap: 10px; }
  .random-symbols button { min-height: 42px; }
  .form-actions { display: grid; grid-template-columns: 1fr; }
  .form-actions button, .form-actions .action-link { width: 100%; margin-top: 0; justify-content: center; }
  .automation-task-hero { grid-template-columns:1fr; }
  .automation-v129-head { display:grid; gap:12px; }
  .automation-v129-head-status { justify-content:flex-start; }
  .automation-mode-switch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .automation-mode-switch span,.automation-mode-switch button { justify-content:center; min-width:0; padding:8px; text-align:center; white-space:normal; }
  .automation-api-readiness { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .automation-api-readiness p,.automation-api-readiness a { grid-column:1 / -1; }
  .automation-entry-gate { grid-template-columns:1fr; }
  .automation-entry-meta { justify-items:stretch; }
  .automation-loop-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .automation-loop-button { min-height:48px; padding:10px 8px; font-size:13px; white-space:normal; }
  .automation-clear-task-form { justify-content:center; }
  .automation-reference-basket-head { display:grid; gap:12px; }
  .automation-reference-return { font-size:40px; }
  .basket-flame-cockpit { padding:20px 14px; }
  .basket-flame-overview { gap:12px; padding:18px 0 8px; }
  .basket-flame-overview strong { font-size:26px; }
  .basket-flame-overview>div:last-child small { font-size:12px; }
  .basket-flame-overview small { font-size:12px; }
  .basket-flame-cockpit .automation-reference-meter-labels { font-size:13px; }
  .basket-flame-cockpit .basket-flame-details .automation-reference-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; }
  .basket-flame-cockpit .basket-flame-details .automation-reference-metrics>div { padding:0 7px; }
  .basket-flame-cockpit .basket-flame-details .automation-reference-metrics strong { font-size:15px; }
  .basket-flame-cockpit .basket-flame-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:14px; }
  .basket-flame-cockpit .basket-flame-summary-grid>div { padding:0 10px; }
  .basket-flame-cockpit .basket-flame-summary-grid>div:nth-child(odd) { padding-left:0; }
  .basket-flame-cockpit .basket-flame-summary-grid>div:nth-child(even) { border-right:0; }
  .basket-flame-cockpit .basket-flame-summary-grid strong { font-size:17px; }
  .basket-flame-core>div { display:grid; gap:5px; }
  .basket-flame-core .automation-reference-net-profit { font-size:32px; }
  .basket-flame-core .automation-reference-return { font-size:20px; }
  .basket-flame-shell { padding:10px 7px 9px; }
  .basket-flame-canister { height:140px; padding:31px 31px 27px; }
  .basket-flame-frame { left:46px; right:46px; }
  .basket-flame-cap { width:32px; height:64px; }
  .basket-flame-cap.left { left:3px; }.basket-flame-cap.right { right:3px; }
  .basket-flame-cap::before,.basket-flame-cap::after { left:7px; right:7px; }
  .basket-flame-chamber { height:76px; }
  .basket-flame-cockpit .automation-reference-meter-marker { width:58px; height:58px; }
  .basket-flame-cockpit .automation-reference-meter-face { font-size:27px; }
  .automation-reference-meter-labels { font-size:11px; }
  .automation-reference-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .automation-next-grid { grid-template-columns:1fr; }
  .automation-progress { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .automation-task-positions { grid-template-columns:1fr; }
  .chart-panel .section-head { display: grid; gap: 10px; }
  .chart-panel .status-badge { max-width: none; }
  .symbol-menu.open { grid-template-columns: 1fr; max-height: min(52vh, 420px); }
  .symbol-option { min-height: 42px; padding: 10px 12px; }
  .table-scroll { margin-left: -2px; margin-right: -2px; }
  .table-scroll-hint { display: block; }
  .market-board-toolbar { display: none; }
  .market-board-panel .market-board-scroll { display: none; }
  .market-board-panel .market-board-cards { display: grid; }
  .market-table-wrap, .history-table-wrap, .admin-table-wrap, .detail-table-wrap, .live-status-table-wrap { display: none; }
  .market-card-list, .history-card-list, .admin-card-list, .detail-card-list { display: grid; gap: 12px; margin-top: 4px; }
  .history-table th, .history-table td, .admin-table th, .admin-table td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
  .table-scroll table th, .table-scroll table td { white-space: nowrap; }
  .market-table td:last-child, .market-table th:last-child { white-space: normal; min-width: 220px; }
  .inline-actions { flex-direction: column; align-items: stretch; }
  .inline-actions form, .inline-actions .inline-action { width: 100%; margin: 0; }
  .inline-actions .final-code-form, .inline-actions .live-precheck-form { max-width: none; }
  .inline-actions .confirm-code-input { width: 100%; min-height: 44px; }
  .inline-actions button { width: 100%; min-height: 44px; }
  .confirm-checkbox { min-height: 44px; align-items: center; }
  .symbol-tools button { min-height: 44px; }
  .filter-chip, .mini-link, .action-link { min-height: 44px; }
  .draft-table-wrap { display: none; }
  .draft-card-list { display: grid; gap: 12px; margin-top: 14px; }
}
@media (min-width: 641px) and (max-width: 860px) {
  .position-toolbar { display: flex; align-items: center; justify-content: center; gap: 10px; }
  .position-toolbar .position-close-form { width: auto; }
  .position-toolbar .action-link, .position-toolbar .position-close-form button { width: auto; min-width: 148px; }
}
.reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.reg-card { background: linear-gradient(180deg, rgba(16,26,30,.92), rgba(10,15,21,.92)); border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.reg-card:hover { transform: translateY(-3px); border-color: rgba(32,219,196,.5); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.reg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.reg-name { font-size: 20px; font-weight: 700; color: #f2fbf9; letter-spacing: .3px; }
.reg-title { display: flex; align-items: center; gap: 10px; }
.reg-icon { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; flex: 0 0 auto; }
.reg-icon-svg { background: #0e1620; border: 1px solid rgba(255,255,255,.1); }
.reg-rebate { font-size: 13px; font-weight: 900; padding: 4px 11px; border-radius: 999px; background: linear-gradient(90deg, rgba(32,219,196,.22), rgba(80,180,255,.18)); color: #5be8d0; border: 1px solid rgba(32,219,196,.4); white-space: nowrap; }
.reg-cta { display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 14px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; background: linear-gradient(90deg, #20dbc4, #1fb6e6); color: #04241f; box-shadow: 0 4px 14px rgba(32,219,196,.25); }
.reg-cta:hover { filter: brightness(1.07); }
.reg-cta-off { background: rgba(140,150,160,.16); color: #9aa6ae; box-shadow: none; cursor: default; }
.reg-state { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.reg-state small { font-size: 12px; color: #8aa0a8; line-height: 1.4; }
.reg-state-badge { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.reg-state-badge.ok { background: rgba(32,219,196,.16); color: #46e3c8; }
.reg-state-badge.trial { background: rgba(240,159,39,.16); color: #f4b657; }
.reg-state-badge.off { background: rgba(226,75,74,.14); color: #f0928f; }
.reg-state-badge.none { background: rgba(140,150,160,.16); color: #9aa6ae; }
.reg-verify { display: flex; gap: 8px; margin-top: 12px; }
.reg-verify-input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #eaf6f3; font-size: 14px; }
.reg-verify-input:focus { outline: none; border-color: rgba(32,219,196,.5); }
.reg-verify-btn { flex: 0 0 auto; height: 42px; padding: 0 16px; border-radius: 10px; border: none; font-size: 14px; font-weight: 700; cursor: pointer; background: rgba(32,219,196,.16); color: #46e3c8; }
.reg-verify-btn:hover { background: rgba(32,219,196,.26); }
.reg-verify-soon { margin: 10px 0 0; font-size: 12px; color: #8aa0a8; }
.reg-home-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.reg-home-title { font-size: 16px; font-weight: 700; color: #eaf6f3; }
.reg-home-more { font-size: 13px; color: #5be8d0; text-decoration: none; }
.reg-mode { margin: 0 0 14px; font-size: 12px; color: #8aa0a8; }
.reg-badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.reg-ok { background: rgba(32, 219, 196, .16); color: #46e3c8; }
.reg-todo { background: rgba(80, 160, 255, .16); color: #74b6ff; }
.reg-pending { background: rgba(240, 180, 60, .16); color: #f0b43c; }
.reg-wait { background: rgba(140, 150, 160, .16); color: #9aa6ae; }
.reg-body { display: flex; flex-direction: column; gap: 8px; }
.reg-link { display: flex; align-items: center; justify-content: center; height: 36px; border: 1px solid rgba(32, 219, 196, .35); border-radius: 8px; color: #cdeee8; text-decoration: none; font-size: 13px; }
.reg-link:hover { background: rgba(32, 219, 196, .1); }
.reg-link-disabled { border-color: var(--line); color: #6b7a82; cursor: default; }
.reg-link-cta { background: rgba(32, 219, 196, .14); border-color: rgba(32, 219, 196, .55); color: #46e3c8; font-weight: 700; height: 42px; }
.reg-link-cta:hover { background: rgba(32, 219, 196, .22); }

.reg-form { display: flex; gap: 6px; }
.reg-form input { flex: 1; min-width: 0; }
.reg-form button { white-space: nowrap; }
.reg-bound { font-size: 13px; color: #b9c8cf; border-top: 1px solid var(--line); padding-top: 10px; }
.reg-ok-text { color: #46e3c8; }
.reg-soon { font-size: 12px; color: #8aa0a8; }
.review-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.review-table th, .review-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.review-table th { color: #8aa0a8; font-weight: 700; }
.review-actions { display: flex; gap: 8px; }
.review-actions form { margin: 0; }
.review-actions button { white-space: nowrap; }

/* ── 皮肤：霓虹红 ember（可一键切换/切回，纯样式层）───────────────── */
body[data-theme="ember"] {
  --accent: #ff3b5c;
  --accent-strong: #ff8298;
  --line: rgba(255, 90, 120, .18);
  --line-strong: rgba(255, 90, 120, .34);
  --glow: 0 0 0 1px rgba(255, 59, 92, .14), 0 0 28px rgba(255, 59, 92, .12);
  background:
    linear-gradient(rgba(255, 59, 92, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 59, 92, .025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 59, 92, .07), transparent 260px),
    linear-gradient(135deg, #0a070a 0%, #120a10 48%, #0d0709 100%);
  background-size: 32px 32px, 32px 32px, auto, auto;
}
body[data-theme="ember"] .top { border-bottom-color: rgba(255, 59, 92, .22); }
body[data-theme="ember"] .brand { text-shadow: 0 0 18px rgba(255, 59, 92, .38); }
body[data-theme="ember"] .tabs a.active,
body[data-theme="ember"] .mobile-bottom-nav a.active,
body[data-theme="ember"] .mobile-nav-more summary.active,
body[data-theme="ember"] .mobile-nav-more-menu a.active,
body[data-theme="ember"] .exchange-switch-tabs a.active {
  background: linear-gradient(135deg, #ff3b5c, #ff6f86);
  color: #190309;
  border-color: var(--accent-strong);
  box-shadow: 0 10px 28px rgba(255, 59, 92, .18);
}
/* 玻璃质感 + Inter 字体（高保真原型同款） */
body[data-theme="ember"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body[data-theme="ember"] .panel,
body[data-theme="ember"] .headline,
body[data-theme="ember"] .hero-panel {
  background: rgba(20, 23, 32, .55);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
}
body[data-theme="ember"] .panel::before,
body[data-theme="ember"] .headline::before,
body[data-theme="ember"] .hero-panel::before {
  background: linear-gradient(90deg, transparent, rgba(255, 77, 109, .6), transparent);
}
body[data-theme="ember"] .market-board-panel,
body[data-theme="ember"] .market-board-panel .market-card {
  background: rgba(18, 20, 28, .5);
  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
body[data-theme="ember"] .market-board-panel .market-card[data-market-symbol] { border-radius: 14px; }
body[data-theme="ember"] .brand,
body[data-theme="ember"] .kpi .v,
body[data-theme="ember"] .stat-value,
body[data-theme="ember"] .metric-value { font-feature-settings: "tnum" 1; }
/* 战绩仪表：收益曲线 + 成交分布环形图（适配两套皮肤，颜色随 --accent） */
.zk-dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.zk-chart-block { color: var(--accent); }
.zk-chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.zk-chart-head span { font-size: 13px; color: var(--muted); }
.zk-chart-head strong { font-size: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.zk-tf { display: inline-flex; gap: 2px; }
.zk-tf-pill { font-size: 12px; padding: 4px 10px; border-radius: 7px; border: none; cursor: pointer;
  background: transparent; color: var(--muted); font-family: inherit; transition: background .15s, color .15s; }
.zk-tf-pill:hover { color: var(--ink); }
.zk-tf-pill.on { background: rgba(255,255,255,.08); color: var(--ink); }
.zk-eq-view[hidden] { display: none; }
.zk-eq { display: block; }
.zk-chart-empty { color: var(--muted); font-size: 13px; padding: 28px 0; text-align: center; }
.zk-donut-wrap { display: flex; align-items: center; gap: 16px; }
.zk-legend { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.zk-lg { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink); }
.zk-lg-n { display: flex; align-items: center; gap: 8px; color: var(--muted); flex: 1; }
.zk-sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.zk-lg-v { font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 720px) { .zk-dash-grid { grid-template-columns: 1fr; } }
.zk-pos-dist { margin: 14px 0 4px; }
.zk-pos-dist .zk-chart-head { margin-bottom: 12px; }
.pos-pnl-bar-wrap { margin: 2px 0 12px; }
.pos-pnl-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.pos-pnl-bar-fill { height: 100%; border-radius: 3px; min-width: 2px; transition: width .4s ease; }
.pos-pnl-bar-fill.profit-up { background: var(--green); }
.pos-pnl-bar-fill.profit-down { background: var(--red); }
.lev-risk { display: flex; align-items: center; gap: 10px; margin: -2px 0 8px; }
.lev-risk-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.lev-risk-fill { height: 100%; border-radius: 3px; width: 0; background: var(--green); transition: width .25s ease, background .25s ease; }
.lev-risk-label { font-size: 12px; color: var(--muted); min-width: 66px; text-align: right; }
.skin-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 999;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(18, 22, 30, .9);
  color: #e9ebf0; font-size: 13px; font-weight: 700; backdrop-filter: blur(8px);
}
.skin-toggle:hover { border-color: var(--accent-strong); color: #fff; }

/* Ordinary-user V1.28 frozen visual contract. Keep data and behavior live; only
   the presentation is aligned with the approved flat, restrained template. */
body.ordinary-shell {
  --bg:#0b0f13;
  --surface:#11171c;
  --surface-2:#151d22;
  --surface-3:#1a242a;
  --line:#263139;
  --line-strong:#3a4952;
  --ink:#f3f5f6;
  --text:#f3f5f6;
  --muted:#98a5ab;
  --muted-2:#69767c;
  --accent:#54d4c6;
  --accent-strong:#2db7aa;
  --green:#16d67a;
  --success:#16d67a;
  --red:#ff5364;
  --danger:#ff5364;
  --amber:#e7b94f;
  background:#0b0f13;
  background-image:none;
  color:var(--text);
}
.ordinary-shell .ordinary-sidebar {
  width:224px;
  padding:26px 18px 22px;
  border-right-color:var(--line);
  background:#0c1115;
  box-shadow:none;
}
.ordinary-shell .ordinary-sidebar-brand { margin:0 8px 30px; padding:0; border:0; min-height:36px; }
.ordinary-shell .ordinary-sidebar-brand>span { width:36px; height:36px; border:1px solid var(--accent); border-radius:8px; background:var(--accent); color:#06211e; font-size:17px; }
.ordinary-shell .ordinary-sidebar-brand>strong { font-size:15px; }
.ordinary-shell .ordinary-sidebar-brand small { color:var(--muted); font-size:11px; }
.ordinary-shell .ordinary-sidebar .tabs { gap:5px; margin:0; }
.ordinary-shell .ordinary-sidebar .tabs a { min-height:46px; gap:12px; padding:0 12px; border:0; border-radius:7px; color:#a9b8bd; font-weight:750; }
.ordinary-shell .ordinary-sidebar .tabs a:hover { color:var(--text); background:var(--surface-2); }
.ordinary-shell .ordinary-sidebar .tabs a.active { color:var(--accent); background:#172723; box-shadow:none; }
.ordinary-shell .ordinary-sidebar .nav-icon { width:22px; text-align:center; font-size:17px; }
.ordinary-shell .ordinary-sidebar-account { margin-top:auto; padding:18px 8px 0; border-top-color:var(--line); }
.ordinary-shell .ordinary-sidebar-account strong { font-size:13px; }
.ordinary-shell .ordinary-sidebar-account small { color:var(--green); }
.ordinary-shell .top { height:68px; min-height:68px; margin-left:224px; padding:0 30px; border-bottom-color:var(--line); background:rgba(11,15,19,.96); box-shadow:none; backdrop-filter:blur(14px); }
.ordinary-shell .top>.brand { color:var(--text); font-size:19px; font-weight:800; }
.ordinary-top-status { display:flex; align-items:center; gap:10px; }
.ordinary-api-state,.ordinary-exchange-badge { min-height:34px; display:inline-flex; align-items:center; gap:7px; padding:0 12px; border:1px solid rgba(84,212,198,.28); border-radius:6px; background:rgba(84,212,198,.06); color:var(--accent); font-size:12px; font-weight:900; }
.ordinary-api-state>span { width:7px; height:7px; background:currentColor; }
.ordinary-api-state.pending { color:var(--amber); border-color:rgba(231,185,79,.30); background:rgba(231,185,79,.06); }
.ordinary-shell .wrap { width:min(1180px,calc(100vw - 224px - 64px)); max-width:none; margin:0 auto 0 calc(224px + (100vw - 224px - min(1180px,calc(100vw - 224px - 64px))) / 2); padding:28px 0 72px; }
.ordinary-shell .panel,.ordinary-shell .headline,.ordinary-shell .hero-panel {
  border-color:var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:none;
}
.ordinary-shell .panel::before,.ordinary-shell .headline::before,.ordinary-shell .hero-panel::before { display:none; }
.ordinary-shell .headline { border-color:#36534f; background:#121d1c; }
.ordinary-shell .home-exchange-context { margin-bottom:24px; padding:14px 16px; border-color:#36534f; background:#121d1c; box-shadow:inset 3px 0 0 var(--accent); }
.ordinary-shell .home-exchange-context nav a { min-height:42px; border-color:var(--line); border-radius:6px; background:#0e1418; color:#9babb2; }
.ordinary-shell .home-exchange-context nav a.active { color:#06211e; border-color:var(--accent); background:var(--accent); }
.ordinary-shell .leaderboard-panel { margin-bottom:24px; }
.ordinary-shell .leaderboard-panel .lb-head { align-items:center; margin-bottom:12px; }
.ordinary-shell .leaderboard-panel .lb-head h2 { margin:0; font-size:18px; }
.ordinary-shell .lb-controls { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.ordinary-shell .lb-tabs,.ordinary-shell .lb-metric-tabs { gap:4px; padding:3px; border:1px solid var(--line); border-radius:7px; background:#081017; }
.ordinary-shell .lb-tab,.ordinary-shell .lb-metric-tab { min-height:30px; display:inline-flex; align-items:center; padding:0 11px; border-radius:5px; color:var(--muted); font-size:12px; font-weight:800; }
.ordinary-shell .lb-tab.active,.ordinary-shell .lb-metric-tab.active { color:var(--text); background:var(--surface-3); }
.ordinary-shell .lb-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(210px,.55fr); gap:12px; }
.ordinary-shell .lb-list { padding:0; margin:0; overflow:hidden; }
.ordinary-shell .lb-row { min-height:60px; display:grid; grid-template-columns:52px minmax(0,1fr) minmax(92px,.8fr) minmax(72px,.65fr); gap:12px; align-items:center; padding:0 18px; border-top:1px solid var(--line); border-radius:0; background:transparent; }
.ordinary-shell .lb-row:first-child { border-top:0; }
.ordinary-shell .lb-row:nth-child(odd) { background:transparent; }
.ordinary-shell .lb-row.lb-me { border:0; border-top:1px solid var(--line); background:#172421; }
.ordinary-shell .lb-rank { width:30px; height:30px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; color:var(--muted); font-size:12px; font-weight:900; }
.ordinary-shell .lb-rank-1 { color:#171305; border-color:var(--amber); background:var(--amber); }
.ordinary-shell .lb-user { min-width:0; }
.ordinary-shell .lb-user strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.ordinary-shell .lb-user small { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.ordinary-shell .lb-pnl,.ordinary-shell .lb-rate { grid-column:auto; text-align:right; font-weight:900; font-variant-numeric:tabular-nums; text-shadow:none; }
.ordinary-shell .lb-mine { min-height:100%; margin:0; padding:22px; display:flex; flex-direction:column; align-items:flex-start; border-color:rgba(84,212,198,.26); border-radius:8px; background:var(--surface); }
.ordinary-shell .lb-mine>span { padding:6px 10px; border:1px solid rgba(22,214,122,.26); border-radius:999px; color:#70e9aa; background:rgba(22,214,122,.06); font-size:11px; font-weight:850; }
.ordinary-shell .lb-mine>strong { margin-top:24px; color:var(--accent); font-size:26px; }
.ordinary-shell .lb-mine>b { margin-top:9px; font-size:22px; text-shadow:none; }
.ordinary-shell .lb-mine>small { margin-top:auto; padding-top:24px; color:var(--muted); line-height:1.55; }
.ordinary-shell .home-task-card,.ordinary-shell .home-account-grid article,.ordinary-shell .home-connection-summary>div:last-child a,.ordinary-shell .home-combined-pnl-grid>div { border-color:var(--line); border-radius:8px; background:var(--surface); box-shadow:none; }
.ordinary-shell .home-task-card:hover { border-color:var(--line-bright); background:var(--surface-2); }
.ordinary-shell .home-task-card-connected { border-color:rgba(22,214,122,.35); }
.ordinary-shell .profit-up,.ordinary-shell .profit-down { text-shadow:none; }
.ordinary-shell .api-management-card { min-height:236px; gap:10px; padding:14px; }
.ordinary-shell .api-management-metrics { gap:6px; }
.ordinary-shell .api-management-note { min-height:38px; margin:0; color:var(--muted); font-size:12px; line-height:1.55; }
.ordinary-shell .api-management-actions { margin-top:auto; }
.ordinary-shell .api-management-actions .action-link { width:100%; justify-content:center; }
.ordinary-shell .api-edit-disclosure { border:1px solid var(--line); border-radius:8px; background:var(--surface); overflow:hidden; }
.ordinary-shell .api-edit-disclosure>summary,.ordinary-shell .profile-compact-details>summary { min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 18px; cursor:pointer; list-style:none; }
.ordinary-shell .api-edit-disclosure>summary::-webkit-details-marker,.ordinary-shell .profile-compact-details>summary::-webkit-details-marker { display:none; }
.ordinary-shell .api-edit-disclosure>summary span,.ordinary-shell .profile-compact-details>summary span { color:var(--muted); font-size:12px; }
.ordinary-shell .api-edit-disclosure>.api-form { margin:0; border:0; border-top:1px solid var(--line); border-radius:0; }
.ordinary-shell .automation-subnav>strong { display:flex; align-items:center; color:var(--accent); font-size:14px; }
.ordinary-shell .ordinary-candidate-panel { margin-top:18px; }
.ordinary-shell .ordinary-candidate-panel .automation-candidates { grid-template-columns:repeat(5,minmax(0,1fr)); }
.ordinary-shell .ordinary-candidate-panel .automation-candidates>div { min-height:102px; }
.ordinary-shell .empty-state { padding:28px 18px; border:1px dashed var(--line); border-radius:8px; text-align:center; color:var(--muted); }
.ordinary-shell .empty-state strong { display:block; margin-bottom:6px; color:var(--text); }
.ordinary-shell .profile-compact-grid { display:grid; grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr); gap:14px; margin-bottom:14px; }
.ordinary-shell .profile-compact-identity { margin:0; display:flex; flex-direction:column; justify-content:space-between; }
.ordinary-shell .profile-compact-identity .profile-hero { align-items:center; }
.ordinary-shell .profile-compact-identity h2 { margin:0 0 6px; font-size:20px; }
.ordinary-shell .profile-compact-identity p { margin:0 0 10px; color:var(--muted); overflow-wrap:anywhere; }
.ordinary-shell .profile-compact-profit { margin-top:22px; padding-top:16px; border-top:1px solid var(--line); }
.ordinary-shell .profile-compact-profit>span,.ordinary-shell .profile-compact-profit>small { display:block; color:var(--muted); font-size:12px; }
.ordinary-shell .profile-compact-profit>strong { display:block; margin:5px 0; font-size:26px; }
.ordinary-shell .profile-entry-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.ordinary-shell .profile-entry-card { min-height:112px; display:flex; flex-direction:column; justify-content:center; padding:16px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); text-decoration:none; }
.ordinary-shell .profile-entry-card:hover { border-color:var(--accent); background:var(--surface-2); }
.ordinary-shell .profile-entry-card span { color:var(--accent); font-size:11px; font-weight:850; }
.ordinary-shell .profile-entry-card strong { margin:5px 0; font-size:16px; }
.ordinary-shell .profile-entry-card small { color:var(--muted); line-height:1.45; }
.ordinary-shell .profile-compact-details { margin:0 0 12px; padding:0; }
.ordinary-shell .profile-compact-details[open]>summary { border-bottom:1px solid var(--line); }
.ordinary-shell .profile-compact-details>.stack-form,.ordinary-shell .profile-compact-details>.ref-stats { padding:18px; }
.ordinary-shell .profile-logout-form { display:flex; justify-content:flex-end; margin-top:16px; }
.ordinary-shell .mobile-bottom-nav { border-top-color:var(--line); background:rgba(11,15,19,.98); box-shadow:none; backdrop-filter:none; }
.ordinary-shell .mobile-bottom-nav a { display:grid; justify-items:center; align-content:center; gap:4px; border:0; border-radius:0; background:transparent; color:var(--muted); font-size:11px; }
.ordinary-shell .mobile-bottom-nav a i { font-style:normal; font-size:16px; line-height:1; }
.ordinary-shell .mobile-bottom-nav a.active,.ordinary-shell .mobile-bottom-nav a.active:hover { color:var(--accent); border:0; background:transparent; box-shadow:none; }
@media (max-width:860px) {
  .ordinary-shell .top { height:62px; min-height:62px; margin-left:0; padding:0 14px; flex-direction:row; align-items:center; }
  .ordinary-shell .top>.brand { font-size:16px; }
  .ordinary-shell .ordinary-top-status { gap:8px; }
  .ordinary-shell .ordinary-api-state,.ordinary-shell .ordinary-exchange-badge { min-height:34px; padding:0 10px; font-size:11px; }
  .ordinary-shell .wrap { width:calc(100% - 28px); max-width:760px; margin:0 auto; padding:28px 0 calc(92px + env(safe-area-inset-bottom,0px)); }
  .ordinary-shell .panel,.ordinary-shell .headline,.ordinary-shell .hero-panel { padding:18px 16px; }
  .ordinary-shell .home-exchange-context { padding:14px; }
  .ordinary-shell .lb-layout { grid-template-columns:1fr; }
  .ordinary-shell .lb-mine { display:none; }
  .ordinary-shell .lb-row { grid-template-columns:42px minmax(0,1fr) auto; min-height:60px; padding:0 12px; gap:8px; }
  .ordinary-shell .lb-rate { display:none; }
  .ordinary-shell .lb-pnl { font-size:14px; }
  .ordinary-shell .lb-controls { width:100%; justify-content:space-between; }
  .ordinary-shell .leaderboard-panel .lb-head { align-items:flex-start; }
  .ordinary-shell .profile-compact-grid { grid-template-columns:1fr; }
  .ordinary-shell .ordinary-candidate-panel .automation-candidates { grid-template-columns:1fr; }
}
@media (max-width:480px) {
  .ordinary-shell .ordinary-api-state { padding:0 8px; }
  .ordinary-shell .ordinary-exchange-badge { padding:0 9px; }
  .ordinary-shell .home-exchange-context nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ordinary-shell .lb-metric-tab,.ordinary-shell .lb-tab { padding:0 9px; }
  .ordinary-shell .automation-subnav { padding:12px; }
  .ordinary-shell .automation-exchange-picker { width:100%; min-width:0; flex-basis:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  .ordinary-shell .automation-exchange-picker label { grid-column:1 / -1; }
  .ordinary-shell .automation-exchange-picker select { width:100%; min-width:0; }
  .ordinary-shell .automation-subnav-links { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.ordinary-shell.positions-focus-shell .wrap { padding-top:12px; }
.ordinary-shell.positions-focus-shell .automation-v129-panel[data-current-automation-view="positions"],
.ordinary-shell.positions-focus-shell .automation-positions-view .positions-panel {
  margin:0; padding:0; border:0; background:transparent; box-shadow:none;
}
.positions-top-exchanges { display:grid; grid-template-columns:repeat(4,minmax(72px,1fr)); gap:7px; }
.positions-top-exchanges a { min-height:34px; display:grid; place-items:center; padding:5px 9px; border:1px solid var(--line); border-radius:6px; background:#0e1418; color:#aab9bf; font-size:12px; font-weight:800; text-decoration:none; }
.positions-top-exchanges a:hover { color:var(--text); border-color:var(--line-bright); }
.positions-top-exchanges a.active { color:#06211e; border-color:var(--accent); background:var(--accent); }
@media (max-width:860px) {
  .ordinary-shell.positions-focus-shell .top { height:auto; min-height:62px; display:grid; grid-template-columns:minmax(0,1fr) auto; row-gap:8px; padding:10px 14px; }
  .ordinary-shell.positions-focus-shell .ordinary-top-status { display:contents; }
  .ordinary-shell.positions-focus-shell .ordinary-api-state { justify-self:end; }
  .ordinary-shell.positions-focus-shell .positions-top-exchanges { grid-column:1 / -1; grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; }
}
@media (max-width:480px) {
  .ordinary-shell.positions-focus-shell .positions-top-exchanges { gap:4px; }
  .ordinary-shell.positions-focus-shell .positions-top-exchanges a { min-width:0; padding:5px 2px; font-size:11px; }
}

.automation-compact-toolbar {margin-top:0;padding:16px;}.automation-compact-toolbar h1 {font-size:24px;margin:0 0 6px;}.automation-compact-toolbar .automation-entry-copy {gap:4px;}.automation-api-link {font-size:12px;}.automation-settings-fields {border:0;padding:0;margin:0;min-width:0;}.automation-settings-fields:disabled {opacity:.72;}.automation-config-panel {scroll-margin-top:16px;}.automation-compact-toolbar .automation-control-status {gap:10px;}.automation-compact-toolbar .automation-control-status span {min-width:0;}
@media(max-width:760px){.automation-compact-toolbar{padding:14px;}.automation-compact-toolbar .automation-entry-meta{width:100%;}.automation-compact-toolbar .automation-loop-controls{flex-wrap:wrap;}}

.automation-exchange-compact {padding:8px 0;margin:0 0 12px;border:0;background:transparent;}.automation-exchange-compact>div {display:none;}.automation-exchange-compact nav {width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}.automation-exchange-compact nav a {min-height:44px;display:flex;justify-content:center;align-items:center;white-space:nowrap;padding:8px;}.automation-market-details {margin-top:12px;border:1px solid var(--line);border-radius:8px;padding:0 14px;}.automation-market-details>summary {cursor:pointer;padding:14px 0;}.ordinary-candidate-panel .section-head {flex-wrap:wrap;}.ordinary-candidate-panel .section-head>a {white-space:nowrap;}.automation-compact-toolbar .automation-entry-copy {padding:0;}.automation-compact-toolbar .automation-control-status {display:flex;flex-wrap:wrap;}.automation-compact-toolbar .automation-control-status span {border:0;padding:0;}.automation-v129-panel {padding-top:8px;}
@media(max-width:760px){.automation-exchange-compact nav{grid-template-columns:repeat(4,minmax(0,1fr));}.automation-exchange-compact nav a{font-size:12px;padding:8px 3px;}.automation-v129-panel{padding:10px;}.automation-compact-toolbar{gap:10px;}.automation-compact-toolbar .automation-entry-meta{gap:8px;}.automation-compact-toolbar .automation-loop-controls{display:flex;gap:6px;}.automation-compact-toolbar .automation-loop-button,.automation-compact-toolbar .automation-clear-task{min-height:44px;font-size:12px;padding:8px;}.automation-compact-toolbar .automation-control-status{font-size:12px;gap:6px 12px;}.automation-compact-toolbar .automation-control-status strong{font-size:14px;}}

.ordinary-shell .automation-compact-toolbar .automation-loop-controls {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}.ordinary-shell .automation-compact-toolbar .automation-loop-controls form{margin:0;}.ordinary-shell .automation-compact-toolbar .automation-loop-controls button {width:100%;min-height:44px;white-space:nowrap;}

.home-candles {display:block;width:100%;height:auto;min-height:145px;}
.home-candles text {fill:#9bb0bd;font:8px system-ui,sans-serif;}
.home-chart-open {display:block;width:100%;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;text-align:left;color:#9bb0bd!important;cursor:zoom-in;}
.home-chart-open>span {display:block;font-size:11px;text-align:right;margin:0 0 10px;}
.home-chart-toolbar {display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 12px;}
.home-chart-toolbar button {padding:6px 12px;background:#172b35;color:#b6c8d1;border:1px solid #2a3e4a;border-radius:5px;cursor:pointer;}
.home-chart-toolbar button[aria-pressed="true"] {color:#4de0c4;border-color:#4de0c4;}
.home-chart-toolbar small {color:#9bb0bd;margin-left:auto;font-size:11px;}
.home-chart-dialog {width:min(920px,92vw);max-height:90vh;overflow:auto;background:#14212a;color:#edf5f7;border:1px solid #3c5260;border-radius:10px;padding:20px;}
.home-chart-dialog::backdrop {background:#000a;}
.home-chart-dialog .home-candles {max-height:65vh;}
.home-chart-dialog button {float:right;background:#263c47;color:white;border:0;border-radius:4px;padding:7px 14px;}
.home-chart-dialog p {color:#9bb0bd;font-size:12px;}

/* Approved home C: reuse native shell; only homepage components are changed. */
.home-dashboard { --home-panel:#14212a; --home-line:#2a3e4a; --home-muted:#9bb0bd; --home-accent:#4de0c4; --home-radius:8px; --home-gap:16px; color:#edf5f7; line-height:1.4; font-variant-numeric:tabular-nums; }
.home-dashboard * { box-sizing:border-box; }
.home-dashboard h1,.home-dashboard h2,.home-dashboard h3,.home-dashboard p { margin:0; }
.home-dashboard a { text-decoration:none; color:#a2dce8; }
.home-dashboard a:hover { color:var(--home-accent); }
.home-dashboard a:focus-visible,.home-dashboard button:focus-visible,.home-dashboard summary:focus-visible { outline:2px solid var(--home-accent); outline-offset:3px; }
.home-dashboard .home-intro { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:16px; }.home-intro-actions { display:flex; gap:8px; align-items:center; }.home-intro-actions form { margin:0; }
.home-dashboard .home-intro h1 { font-size:28px; line-height:1.3; font-weight:750; }
.home-dashboard .home-intro p { color:var(--home-muted); margin-top:4px; font-size:13px; }
.home-dashboard button.home-privacy { background:transparent; border:1px solid var(--home-line); color:var(--home-muted); border-radius:8px; min-height:44px; padding:8px 12px; font:inherit; cursor:pointer; }
.home-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--home-gap); margin-bottom:12px; }
.home-stat-grid article,.home-venue,.home-dashboard .leaderboard-panel,.home-market-card,.home-sentiment { background:var(--home-panel); border:1px solid var(--home-line); border-radius:var(--home-radius); box-shadow:none; }
.home-stat-grid article { padding:10px 18px; display:flex; flex-direction:column; gap:4px; min-width:0; }
.home-stat-grid article>strong { font-size:clamp(24px,2.5vw,35px); line-height:1.2; white-space:nowrap; font-weight:750; }
.home-stat-grid small { font-size:11px; color:var(--home-muted); line-height:1.5; }
.home-stat-grid strong small { font-size:14px; font-weight:400; }
.home-label { color:#beced7; font-size:12px; }
.home-dashboard .profit-up { color:#4de0c4; }.home-dashboard .profit-down { color:#ff8279; }.home-dashboard .profit-neutral { color:#edf5f7; }
.home-section-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; }
.home-section-head h2 { font-size:20px; font-weight:750; }.home-section-head>a,.home-section-head>span { font-size:12px; color:var(--home-muted); }
.home-section-head>a { min-height:44px; display:flex; align-items:center; }
.home-venue-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.home-venue { padding:11px; border-top:3px solid var(--venue); display:flex; flex-direction:column; gap:2px; min-width:0; }
.home-venue-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; min-height:34px; margin-bottom:3px; }
.home-venue-brand { display:flex; align-items:center; gap:8px; min-width:0; }.home-venue-brand>strong { font-size:17px; }
.home-brand-icon { width:34px; height:34px; fill:var(--venue); flex-shrink:0; }.home-brand-word { font-size:15px; font-weight:850; letter-spacing:-1px; }.home-brand-word b { color:#f39a30; }
.home-state { font-size:10px; border:1px solid #344952; color:#b8c9d2; border-radius:20px; padding:5px 8px; white-space:nowrap; }.home-state.running { color:var(--home-accent); border-color:#2b7469; background:#153f38; }
.home-venue-balance,.home-venue-subbalance { display:flex; gap:6px; align-items:baseline; }.home-venue-balance>strong,.home-venue-subbalance>strong,.home-stat-grid article>strong { font-variant-numeric:tabular-nums; }.home-venue-balance>strong { font-size:27px; line-height:1.2; }.home-venue-subbalance { margin-top:2px; }.home-venue-subbalance>strong { font-size:16px; line-height:1.2; }.home-venue-balance>small,.home-venue-subbalance>small { font-size:10px; color:var(--home-muted); }.home-stale { color:#ebca65; }
.home-venue dl { margin:3px 0; display:grid; gap:5px; font-size:12px; }.home-venue dl>div { display:flex; justify-content:space-between; gap:8px; }.home-dashboard dt { color:var(--home-muted); }.home-dashboard dd { margin:0; font-weight:650; }
.home-data-note { font-size:10px; color:var(--home-muted); line-height:1.45; overflow-wrap:anywhere; }
.home-venue-action { border:1px solid #417e7b; border-radius:5px; display:flex; align-items:center; justify-content:center; min-height:44px; font-size:12px; margin-top:auto; }
.home-attention { padding:12px 16px; margin-bottom:16px; border:1px solid #9a6545; border-radius:8px; background:#342b22; display:flex; gap:12px; flex-wrap:wrap; font-size:12px; }.home-attention a { text-decoration:underline; }
.home-dashboard .leaderboard-panel { padding:12px 16px; margin-bottom:18px; }
.home-dashboard .leaderboard-panel .lb-head { display:flex; gap:14px; align-items:center; margin-bottom:8px; flex-wrap:wrap; }.home-dashboard .lb-head h2 { font-size:19px; margin:0; }.home-dashboard .lb-head>a { margin-left:auto; font-size:12px; min-height:44px; display:flex; align-items:center; }
.home-dashboard .leaderboard-panel .lb-tabs { display:flex; gap:2px; margin:0; padding:0; border:0; background:transparent; }.home-dashboard .lb-tab { min-height:44px; padding:10px 14px; display:flex; align-items:center; border-radius:5px; border:1px solid var(--home-line); font-size:12px; }.home-dashboard .lb-tab.active { background:var(--home-accent); color:#0a2525; border-color:var(--home-accent); }
.home-dashboard .home-board-caption { color:var(--home-muted); font-size:10px; margin-bottom:6px; }
.home-dashboard .home-lb-row { display:grid; grid-template-columns:32px minmax(0,1fr) minmax(110px,auto); gap:14px; align-items:center; min-height:42px; border-top:1px solid var(--home-line); padding:4px 10px; }
.home-dashboard .home-lb-rank { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:#314451; color:#e9eff5; font-size:14px; font-weight:700; }.home-dashboard .rank-1 { background:#efc752; color:#342c12; }.home-dashboard .rank-2 { background:#b4c7dc; color:#1d2a3a; }.home-dashboard .rank-3 { background:#dba176; color:#352013; }
.home-dashboard .home-lb-user { min-width:0; }.home-dashboard .home-lb-user strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }.home-dashboard .home-lb-user small { display:block; font-size:10px; color:var(--home-muted); margin-top:1px; }.home-dashboard .home-lb-profit { text-align:right; font-size:17px; white-space:nowrap; }
.home-dashboard .home-lb-footer { font-size:11px; color:var(--home-muted); margin-top:10px; line-height:1.6; }.home-dashboard .home-empty { color:var(--home-muted); padding:25px 0; text-align:center; }
.home-market-layout { display:grid; grid-template-columns:minmax(0,3fr) minmax(215px,1fr); gap:14px; }.home-market-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }.home-market-card { padding:14px; min-width:0; }
.home-market-card h3 { font-size:14px; display:flex; align-items:center; gap:6px; }.home-market-card h3 small { font-size:10px; color:var(--home-muted); font-weight:400; }.home-coin { display:grid; place-items:center; width:27px; height:27px; background:var(--coin); color:#101a22; border-radius:50%; font-size:20px; }
.home-market-price { display:flex; justify-content:space-between; gap:6px; align-items:baseline; flex-wrap:wrap; margin-top:12px; }.home-market-price>strong { font-size:22px; }.home-market-price>span { font-size:11px; }
.home-spark { width:100%; height:50px; display:block; margin:8px 0; }.home-spark-empty { height:66px; display:grid; place-items:center; color:var(--home-muted); font-size:12px; }
.home-market-card dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin:0 0 10px; }.home-market-card dt { font-size:10px; margin-bottom:6px; }.home-market-card dd { font-size:11px; overflow-wrap:anywhere; }
.home-sentiment { padding:14px; text-align:center; position:relative; }.home-sentiment h3 { font-size:17px; text-align:left; }.home-sentiment>svg { width:100%; max-width:250px; height:145px; margin-top:5px; }.home-sentiment svg text { fill:var(--home-muted); font-size:10px; }.home-gauge-value { margin-top:-65px; position:relative; display:grid; justify-items:center; }.home-gauge-value strong { font-size:30px; line-height:1.1; color:#ebca65; background:var(--home-panel); padding:0 7px; }.home-gauge-value span { font-size:13px; margin-top:4px; color:#ebca65; }.home-gauge-labels { display:flex; justify-content:space-between; color:var(--home-muted); font-size:9px; margin:5px 0 14px; }.home-sentiment>p,.home-sentiment>small { font-size:11px; color:var(--home-muted); margin-top:6px; }
.home-dashboard .home-source { color:var(--home-muted); font-size:10px; margin-top:9px; line-height:1.6; }.home-dashboard .home-market-disclaimer { color:var(--home-muted); font-size:11px; margin:10px 0 20px; }
.home-details { border:1px solid var(--home-line); border-radius:8px; padding:0 14px; margin-top:14px; }.home-details>summary { min-height:44px; padding:12px 0; font-size:12px; color:var(--home-muted); cursor:pointer; }.home-details>section { margin-top:10px; }
.home-dashboard[data-amounts-hidden="true"] [data-sensitive] { color:transparent!important; position:relative; user-select:none; }.home-dashboard[data-amounts-hidden="true"] [data-sensitive] * { visibility:hidden; }.home-dashboard[data-amounts-hidden="true"] [data-sensitive]::after { content:'••••'; color:#b7c7d0; position:absolute; left:0; top:0; }
.home-stat-grid .home-market-summary { max-width:none; justify-self:stretch; gap:3px; }
.home-market-summary>svg { height:110px; max-width:200px; align-self:center; margin-top:0; }
.home-market-summary .home-gauge-value { margin-top:-49px; }
.home-market-summary .home-gauge-value strong { font-size:25px; }
.home-market-summary .home-gauge-value span { font-size:11px; }
.home-market-summary .home-gauge-labels { margin:2px 0 0; }
.home-market-summary>small { margin-top:0; font-size:9px; }
.home-price-list { margin-top:5px; padding-top:6px; border-top:1px solid var(--home-line); }
.home-price-row { display:flex; justify-content:space-between; align-items:baseline; gap:8px; text-align:left; font-size:12px; padding:2px 0; }
.home-price-row strong { font-size:13px; white-space:nowrap; }
.home-price-row small { font-size:9px; }
.home-price-row>div { text-align:right; }
.home-price-row .home-day-change { display:block; font-size:10px; margin-top:1px; }
 .home-stat-grid .home-market-summary { position:relative; padding:16px 18px; gap:0; }
.home-mood-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.home-mood-heading h3 { margin:0; font-size:14px; font-weight:650; }
.home-mood-heading .home-market-note { color:#8ca3ae; font-size:10px; letter-spacing:.5px; }
.home-mood-dial { position:relative; width:210px; max-width:100%; align-self:center; height:126px; margin:10px 0 5px; }
.home-mood-dial svg { width:100%; height:100%; }
.home-mood-dial .home-gauge-value { position:absolute; inset:auto 0 17px; margin:0; gap:0; }
.home-mood-dial .home-gauge-value strong { font-size:30px; line-height:1.2; }
.home-mood-dial .home-gauge-value span { font-size:11px; margin-top:2px; }
.home-market-summary .home-price-list { border-top:1px solid #283b44; margin-top:4px; padding-top:7px; width:100%; }
.home-market-summary .home-price-row { align-items:center; padding:6px 0; }
.home-market-summary .home-price-row>span { font-size:12px; font-weight:550; }
.home-market-summary .home-price-row>span small { display:block; margin-top:2px; color:#7f98a4; }
.home-market-summary .home-price-row strong { font-size:14px; }
.home-market-summary .home-day-change { margin-top:3px; font-size:10px; line-height:1.4; }
.home-market-source { position:absolute; top:12px; right:5px; opacity:0; font-size:12px; }
.home-market-source:focus-visible,.home-market-summary:hover .home-market-source { opacity:1; }
@media (max-width:760px) { .home-dashboard .home-intro { flex-wrap:wrap; }.home-intro-actions { width:100%; justify-content:flex-end; }.home-intro-actions .home-privacy { white-space:nowrap; } }
@media (min-width:861px) { body.home-focus-shell .top { display:none; } body.home-focus-shell .wrap { width:calc(100% - 224px); max-width:none; margin:0 0 0 224px; padding:20px 24px 40px; } body.home-focus-shell .notice { font-size:12px; padding:10px 14px; margin-bottom:14px; } }
@media (max-width:1200px) { .home-venue-head { justify-content:flex-start; }.home-market-layout { grid-template-columns:minmax(0,1fr); }.home-sentiment { max-width:420px; width:100%; justify-self:center; }.home-stat-grid article>strong { font-size:27px; } }
@media (max-width:760px) { .home-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.home-stat-grid article:first-child { grid-column:1/-1; }.home-stat-grid article { padding:14px; }.home-stat-grid article>strong { font-size:25px; }.home-stat-grid strong small { font-size:10px; }.home-venue-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.home-venue { padding:11px; }.home-venue-balance>strong { font-size:22px; }.home-venue-brand>strong { font-size:15px; }.home-brand-icon { width:30px; height:30px; }.home-venue dl>div { flex-wrap:wrap; gap:2px; }.home-venue-head { min-height:70px; align-content:start; }.home-market-grid { grid-template-columns:1fr; }.home-market-card dl { gap:12px; }.home-market-card dd { font-size:14px; }.home-market-price>strong { font-size:27px; }.home-dashboard .home-lb-row { gap:8px; grid-template-columns:25px minmax(0,1fr) auto; padding:8px 0; }.home-dashboard .home-lb-profit { font-size:14px; }.home-dashboard .leaderboard-panel { padding:12px; }.home-dashboard .lb-head { gap:8px; }.home-dashboard .lb-head h2 { font-size:17px; }.home-dashboard .lb-tab { padding:8px 10px; }.home-dashboard .home-intro h1 { font-size:25px; } }

/* D3: task facts take precedence over duplicate large profit cards. */
.home-command-grid { display:grid;grid-template-columns:minmax(310px,1fr) minmax(0,2fr);gap:16px;margin-bottom:12px; }
.home-command-grid .home-market-summary { display:flex;flex-direction:column;max-width:none;padding:18px; }
.home-command-grid .home-task-overview { margin:0;padding:18px;background:var(--home-panel);border:1px solid var(--home-line);border-radius:8px;min-width:0; }
.home-command-grid .home-task-overview h2 {font-size:20px;}.home-command-grid .home-task-overview .lead {font-size:12px;margin-top:5px;}
.home-command-grid .home-task-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.home-command-grid .home-task-card {padding:16px;min-width:0;display:flex;flex-direction:column;gap:12px;background:#182a33;border:1px solid #314954;border-radius:8px;}
.home-command-grid .home-task-card-head {display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;}.home-command-grid .home-task-card-head strong {font-size:18px;}.home-command-grid .home-task-card-head span {font-size:12px;color:#9bb0bd;}
.home-command-grid .home-task-card b {font-size:20px;color:#edf5f7;}.home-command-grid .home-task-card small {font-size:12px;color:#9bb0bd;}.home-command-grid .home-task-card-foot {display:flex;flex-direction:column;gap:6px;font-size:13px;color:#bacdd6;}
.home-command-grid .home-task-overview-state {font-size:12px;}.home-command-grid .home-task-overview>.section-head {align-items:start;margin-bottom:16px;}
.home-profit-strip {display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:14px;padding:15px 18px;margin-bottom:20px;border:1px solid var(--home-line);border-radius:8px;background:var(--home-panel);}
.home-profit-strip>div {min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;}.home-profit-strip strong {font-size:20px;white-space:nowrap;}.home-profit-strip strong small {font-size:12px;font-weight:400;}.home-profit-strip>div>small {flex-basis:100%;font-size:11px;color:var(--home-muted);}.home-settlement a {font-size:12px;}
.home-command-grid .home-price-row>span {font-size:18px;}.home-command-grid .home-price-row strong {font-size:26px;}.home-command-grid .home-price-row .home-day-change {font-size:18px;}.home-command-grid .home-price-row {padding:10px 0;flex-wrap:wrap;}.home-command-grid .home-price-row>div {margin-left:auto;}.home-command-grid .home-price-row>span small {font-size:11px;}
@media(max-width:1100px) {.home-command-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);}.home-command-grid .home-task-card{padding:12px;}.home-command-grid .home-price-row strong{font-size:26px;}}
@media(max-width:760px) {.home-command-grid{grid-template-columns:1fr;}.home-command-grid .home-task-card{padding:12px;gap:10px;}.home-command-grid .home-task-card b{font-size:18px;}.home-command-grid .home-task-card-head strong{font-size:16px;}.home-command-grid .home-task-overview{padding:14px;}.home-command-grid .home-task-grid{gap:10px;}.home-command-grid .home-price-row>span{font-size:16px;}.home-command-grid .home-price-row strong{font-size:24px;}.home-command-grid .home-price-row .home-day-change{font-size:16px;}.home-profit-strip{grid-template-columns:1fr;padding:14px;}.home-command-grid .home-task-overview>.section-head{flex-wrap:wrap;}.home-command-grid .home-task-card-foot{overflow-wrap:anywhere;}}

.home-command-grid .home-price-row {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:2px 8px;}.home-command-grid .home-price-row>div {display:contents;}.home-command-grid .home-price-row strong {justify-self:end;}.home-command-grid .home-price-row .home-day-change {grid-column:1/-1;text-align:right;}.home-command-grid .home-task-card {min-height:0;}.home-command-grid .home-task-card-foot {margin-top:auto;align-items:flex-start;text-align:left;}

.home-lite-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px;}
.home-lite-actions a {display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:16px 18px;background:var(--home-panel);border:1px solid var(--home-line);border-radius:8px;font-size:18px;font-weight:650;}
.home-lite-accounts .home-venue-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
.home-lite-secondary {font-size:13px;color:var(--home-muted);margin-bottom:18px;}
.home-lite-secondary summary {cursor:pointer;min-height:44px;display:flex;align-items:center;}
.home-lite-secondary p {margin-top:10px;}
@media(max-width:480px) {.home-lite-actions{gap:10px;}.home-lite-actions a{padding:14px 12px;font-size:15px;}.home-lite-accounts .home-venue-head{min-height:70px;}.home-lite-secondary{overflow-wrap:anywhere;}}
