:root { --bg: #0b0e11; --bg-elev: #12161c; --bg-panel: #151a21; --line: #1e2630; --text: #eaecef; --muted: #848e9c; --accent: #f0b90b; --up: #0ecb81; --down: #f6465d; --input: #0f141a; --danger: #f6465d; font-family: "IBM Plex Sans", sans-serif; color: var(--text); background: var(--bg); } * { box-sizing: border-box; } html, body, #root { margin: 0; min-height: 100%; } body { background: radial-gradient(1200px 600px at 10% -10%, rgba(240, 185, 11, 0.08), transparent 55%), radial-gradient(900px 500px at 100% 0%, rgba(14, 203, 129, 0.05), transparent 50%), var(--bg); } button, input { font: inherit; } .mono { font-family: "IBM Plex Mono", monospace; } .app-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; } .topnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgba(11, 14, 17, 0.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; } .topnav-side { display: flex; align-items: center; gap: 8px; min-width: 0; } .topnav-side.right { justify-content: flex-end; } .topnav-center { display: flex; align-items: center; justify-content: center; gap: 4px; } .brand { font-weight: 700; letter-spacing: 0.02em; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .topnav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 6px; white-space: nowrap; } .topnav a.active { color: var(--text); background: var(--bg-panel); } .tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 0; } .tab { background: transparent; border: 0; color: var(--muted); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; } .tab.active { color: var(--text); border-bottom-color: var(--accent); } .status-running { color: #0ecb81 !important; font-weight: 700; } .status-stopped { color: var(--muted) !important; } .topnav .spacer { flex: 1; } .topnav .meta { color: var(--muted); font-size: 12px; margin-right: 8px; } .page { padding: 16px; max-width: 1200px; margin: 0 auto; width: 100%; } .card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; } .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } } .kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .kv:last-child { border-bottom: 0; } .kv span:first-child { color: var(--muted); } .login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; } .login-box { width: min(420px, 100%); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); } .login-box h1 { margin: 0 0 6px; font-size: 22px; } .login-box p { margin: 0 0 20px; color: var(--muted); font-size: 13px; } .field { display: grid; gap: 6px; margin-bottom: 14px; } .field label { font-size: 12px; color: var(--muted); } .field input { background: var(--input); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; outline: none; } .field input:focus { border-color: rgba(240, 185, 11, 0.55); } .btn { border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; background: var(--accent); color: #111; font-weight: 600; } .btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); } .btn.block { width: 100%; } .err { color: var(--danger); font-size: 13px; margin: 0 0 12px; } .hint { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; } .tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line); color: var(--muted); } .tag.up { color: var(--up); border-color: rgba(14, 203, 129, 0.35); } .tag.down { color: var(--down); border-color: rgba(246, 70, 93, 0.35); } /* OKX-style position cards (copied/adapted from crypto_monitor instance_page) */ .pos-embed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); } @media (max-width: 800px) { .pos-embed-grid { grid-template-columns: 1fr; } } .pos-card { background: #141923; border: 1px solid #2a3348; border-radius: 10px; padding: 12px 14px; } .pos-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .pos-card-symbol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; } .pos-card-symbol strong { font-size: 0.95rem; color: #fff; font-weight: 600; word-break: break-all; } .pos-side-badge { padding: 3px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 500; line-height: 1.2; } .pos-side-long { background: #253a6e; color: #6eb5ff; } .pos-side-short { background: #4a2230; color: #ff8a8a; } .pos-meta { font-size: 0.74rem; color: #8b95a8; line-height: 1.45; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; } .pos-meta-item { display: inline-flex; align-items: center; } .pos-meta-item:not(:last-child)::after { content: "|"; margin: 0 8px; color: #3d4659; } .pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; } @media (max-width: 520px) { .pos-grid { grid-template-columns: repeat(2, 1fr); } } .pos-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .pos-label { font-size: 0.72rem; color: #7d8799; } .pos-value { font-size: 0.88rem; color: #e8ecf4; font-weight: 500; line-height: 1.25; } .pos-empty { padding: 18px; text-align: center; color: #8892b0; font-size: 0.85rem; background: #141923; border: 1px dashed #2a3348; border-radius: 10px; } .pos-pnl-profit { color: #7ee787 !important; } .pos-pnl-loss { color: #ff8b8b !important; }