:root{--bg: #090d16;--bg-elevated: #0e1522;--surface: #141b2b;--surface-2: #1a2236;--border: rgba(148, 163, 184, .12);--border-strong: rgba(148, 163, 184, .22);--text: #e8eef9;--text-muted: #8b9bb4;--text-dim: #5f6f88;--primary: #6b9bff;--primary-strong: #4d84f7;--primary-soft: rgba(107, 155, 255, .14);--success: #34d399;--success-soft: rgba(52, 211, 153, .12);--danger: #f87171;--danger-soft: rgba(248, 113, 113, .12);--warning: #fb923c;--warning-soft: rgba(251, 146, 60, .14);--sidebar-w: 232px;--topbar-h: 64px;--radius: 12px;--radius-sm: 8px;--font: "Outfit", system-ui, sans-serif;--mono: "IBM Plex Mono", ui-monospace, monospace;--shadow: 0 12px 40px rgba(0, 0, 0, .35)}*,*:before,*:after{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;font-family:var(--font);background:radial-gradient(1200px 600px at 10% -10%,rgba(77,132,247,.12),transparent 55%),radial-gradient(900px 500px at 90% 0%,rgba(52,211,153,.06),transparent 50%),var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer;border:none;background:none}img{max-width:100%;display:block}.app-shell{display:grid;grid-template-columns:var(--sidebar-w) 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:1.25rem .9rem;background:linear-gradient(180deg,#0b1220,#0a101a);border-right:1px solid var(--border);z-index:20}.brand{display:flex;align-items:center;gap:.75rem;padding:.35rem .65rem 1.5rem}.brand-mark{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,#6b9bff,#3b82f6);color:#0b1220;font-weight:700;font-size:.95rem;box-shadow:0 0 24px #6b9bff59}.brand-text{display:flex;flex-direction:column;line-height:1.15}.brand-name{font-weight:700;font-size:1.05rem;letter-spacing:-.02em}.brand-tag{font-size:.52rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);font-weight:600}.nav-list{display:flex;flex-direction:column;gap:.25rem;flex:1}.nav-link{display:flex;align-items:center;gap:.75rem;padding:.7rem .85rem;border-radius:var(--radius-sm);color:var(--text-muted);font-weight:500;font-size:.92rem;transition:background .15s,color .15s;position:relative}.nav-link:hover{color:var(--text);background:#ffffff08}.nav-link.active{color:var(--text);background:var(--primary-soft)}.nav-link.active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--primary)}.nav-link svg{width:18px;height:18px;opacity:.85}.nav-footer{display:flex;flex-direction:column;gap:.2rem;padding-top:1rem;border-top:1px solid var(--border)}.main-column{min-width:0;display:flex;flex-direction:column}.topbar{height:var(--topbar-h);display:flex;align-items:center;gap:1rem;padding:0 1.5rem;border-bottom:1px solid var(--border);background:#090d16b8;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);position:sticky;top:0;z-index:15}.topbar-title{font-weight:600;font-size:.95rem;white-space:nowrap;color:var(--text-muted)}.search-wrap{flex:1;max-width:420px;margin:0 auto;position:relative}.search-wrap svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--text-dim)}.search-wrap input{width:100%;padding:.55rem .9rem .55rem 2.25rem;border-radius:999px;border:1px solid var(--border);background:var(--surface);outline:none;color:var(--text)}.search-wrap input:focus{border-color:#6b9bff73;box-shadow:0 0 0 3px var(--primary-soft)}.topbar-actions{display:flex;align-items:center;gap:.55rem;margin-left:auto}.icon-btn{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:var(--text-muted);border:1px solid transparent;transition:.15s}.icon-btn:hover{color:var(--text);background:var(--surface);border-color:var(--border)}.icon-btn svg{width:18px;height:18px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#334155,#1e293b);border:1px solid var(--border-strong);font-size:.75rem;font-weight:600;color:var(--primary)}.content{padding:1.5rem 1.75rem 2.5rem;flex:1}.mobile-toggle{display:none;width:40px;height:40px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);place-items:center}.sidebar-backdrop{display:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:.6rem 1rem;border-radius:var(--radius-sm);font-weight:600;font-size:.875rem;border:1px solid transparent;transition:.15s;white-space:nowrap}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:linear-gradient(180deg,#7aa6ff,var(--primary-strong));color:#061022;box-shadow:0 6px 20px #4d84f74d}.btn-primary:hover:not(:disabled){filter:brightness(1.06)}.btn-secondary{background:var(--surface);border-color:var(--border-strong);color:var(--text)}.btn-secondary:hover:not(:disabled){background:var(--surface-2)}.btn-ghost{background:transparent;color:var(--text-muted)}.btn-ghost:hover:not(:disabled){color:var(--text);background:#ffffff0a}.btn-danger{background:var(--danger-soft);color:var(--danger);border-color:#f8717140}.btn-sm{padding:.4rem .7rem;font-size:.8rem}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}.page-header h1{margin:0 0 .35rem;font-size:1.75rem;letter-spacing:-.03em;font-weight:700}.page-header p{margin:0;color:var(--text-muted);max-width:48ch;line-height:1.45}.back-link{display:inline-flex;align-items:center;gap:.35rem;color:var(--text-muted);font-size:.875rem;margin-bottom:.75rem}.back-link:hover{color:var(--primary)}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.panel-pad{padding:1.15rem 1.25rem}.muted{color:var(--text-muted)}.dim{color:var(--text-dim)}.mono{font-family:var(--mono);font-size:.82rem}.label-caps{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-dim);font-weight:600}.field{display:flex;flex-direction:column;gap:.4rem}.field label{font-size:.8rem;font-weight:600;color:var(--text-muted)}.field input,.field select,.field textarea{width:100%;padding:.7rem .85rem;border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--bg-elevated);outline:none;transition:.15s}.field input:focus,.field select:focus,.field textarea:focus{border-color:#6b9bff8c;box-shadow:0 0 0 3px var(--primary-soft)}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}.mandatory{display:inline-block;margin-left:.5rem;padding:.1rem .4rem;border-radius:4px;background:var(--danger-soft);color:var(--danger);font-size:.62rem;letter-spacing:.08em;font-weight:700}.error-banner{padding:.75rem 1rem;border-radius:var(--radius-sm);background:var(--danger-soft);border:1px solid rgba(248,113,113,.3);color:#fecaca;font-size:.875rem;margin-bottom:1rem}.success-banner{padding:.75rem 1rem;border-radius:var(--radius-sm);background:var(--success-soft);border:1px solid rgba(52,211,153,.3);color:#a7f3d0;font-size:.875rem;margin-bottom:1rem}.badge{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .55rem;border-radius:999px;font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.badge-success{background:var(--success-soft);color:var(--success)}.badge-danger{background:var(--danger-soft);color:var(--danger)}.badge-warning{background:var(--warning-soft);color:var(--warning)}.badge-idle{background:#94a3b81f;color:#94a3b8}.badge-processing{background:#6b9bff24;color:var(--primary)}.auth-page{min-height:100vh;display:grid;place-items:center;padding:2rem 1rem;background:radial-gradient(800px 400px at 50% -20%,rgba(77,132,247,.18),transparent 60%),var(--bg)}.auth-card{width:min(420px,100%);padding:2rem 1.75rem;border-radius:16px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow)}.auth-card h1{margin:.5rem 0 .25rem;font-size:1.5rem;letter-spacing:-.02em}.auth-card .brand{padding:0 0 .5rem}.auth-form{display:flex;flex-direction:column;gap:.9rem;margin-top:1.5rem}.auth-switch{margin-top:1.25rem;text-align:center;color:var(--text-muted);font-size:.875rem}.auth-switch button{color:var(--primary);font-weight:600}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.85fr);gap:1.25rem;align-items:start}.section-title{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}.section-title h2{margin:0;font-size:1.05rem;font-weight:600}.live-pill{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .55rem;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:.68rem;font-weight:700;letter-spacing:.08em}.live-pill:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor;animation:pulse 1.6s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}.execution-list{display:flex;flex-direction:column;gap:.85rem}.execution-card{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);padding:1.1rem 1.2rem;transition:border-color .2s,transform .2s;animation:fadeUp .45s ease both}.execution-card:hover{border-color:var(--border-strong)}.execution-card.status-completed{border-color:#34d39959;background:linear-gradient(180deg,rgba(52,211,153,.06),var(--surface))}.execution-card.status-failed{border-color:#f8717159;background:linear-gradient(180deg,rgba(248,113,113,.05),var(--surface))}.execution-card.status-processing{border-color:#6b9bff4d}.execution-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.85rem}.execution-head h3{margin:0 0 .25rem;font-size:1rem}.meta-row{display:flex;flex-wrap:wrap;gap:.5rem .85rem;font-size:.8rem;color:var(--text-muted)}.logic-list{display:flex;flex-direction:column;gap:.45rem;margin:.75rem 0}.logic-item{display:flex;align-items:center;gap:.55rem;font-size:.85rem;color:var(--text-muted)}.logic-item.done{color:var(--success)}.check{width:16px;height:16px;border-radius:50%;border:1.5px solid currentColor;display:grid;place-items:center;font-size:.65rem;flex-shrink:0}.logic-item.done .check{background:var(--success-soft)}.window-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;font-size:.8rem;color:var(--text-muted)}.progress{flex:1;height:4px;border-radius:999px;background:#ffffff0f;overflow:hidden;margin:0 .75rem}.progress>span{display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--success));border-radius:inherit}.stream-panel{position:sticky;top:calc(var(--topbar-h) + 1rem);max-height:calc(100vh - var(--topbar-h) - 2rem);overflow:auto}.stream-list{display:flex;flex-direction:column;gap:.75rem}.stream-item{padding:.75rem;border-radius:var(--radius-sm);background:var(--bg-elevated);border:1px solid var(--border);animation:fadeUp .4s ease both}.stream-item header{display:flex;justify-content:space-between;gap:.5rem;margin-bottom:.4rem;font-size:.78rem}.stream-item .event{margin-top:.35rem;padding:.55rem .65rem;border-radius:6px;background:#0a0f18;font-family:var(--mono);font-size:.72rem;color:var(--text-muted);line-height:1.45}.stream-item .event strong{color:var(--primary);display:block;margin-bottom:.15rem;font-weight:500}.strategy-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.strategy-card{padding:1.15rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);display:flex;flex-direction:column;gap:.9rem;transition:border-color .2s,transform .2s;animation:fadeUp .4s ease both}.strategy-card:hover{border-color:#6b9bff59;transform:translateY(-2px)}.strategy-card-head{display:flex;gap:.75rem;align-items:flex-start}.strategy-icon{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);flex-shrink:0}.strategy-icon.alt{background:var(--success-soft);color:var(--success)}.strategy-card-head h3{margin:0 0 .2rem;font-size:1rem}.strategy-stats{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;padding:.75rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.strategy-stats dt{font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim);margin-bottom:.25rem}.strategy-stats dd{margin:0;font-size:.875rem;font-weight:500}.strategy-footer{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.strategy-actions{display:flex;gap:.25rem}.add-template{border-style:dashed;border-color:var(--border-strong);background:transparent;align-items:center;justify-content:center;text-align:center;color:var(--text-muted);min-height:220px;cursor:pointer}.add-template:hover{border-color:var(--primary);color:var(--text);background:var(--primary-soft)}.add-template .plus{width:44px;height:44px;border-radius:50%;border:1px dashed currentColor;display:grid;place-items:center;font-size:1.4rem;margin:0 auto .75rem}.strategy-editor{max-width:920px;margin:0 auto;padding-bottom:2rem}.strategy-editor-title{margin:.35rem 0 1.25rem;font-size:1.85rem;font-weight:700;letter-spacing:-.03em}.strategy-editor-form{display:flex;flex-direction:column;gap:1rem}.strategy-name-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.85rem 1rem;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border)}.strategy-name-inline{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;flex:1;min-width:0}.strategy-name-label{font-weight:600;font-size:.9rem;color:var(--text-muted)}.strategy-name-sep{color:var(--text-dim);margin:0 .15rem}.strategy-name-input{flex:1;min-width:120px;border:none;background:transparent;font-weight:600;font-size:.95rem;outline:none;color:var(--text)}.strategy-name-edit{width:28px;height:28px;color:var(--text-dim)}.editor-card{background:#f4f6fa;color:#1a2332;border-radius:14px;overflow:hidden;box-shadow:0 2px 12px #0000002e}.editor-card-title{margin:0;padding:1rem 1.15rem 0;font-size:1.05rem;font-weight:700;color:#111827}.editor-card-sub{margin:.25rem 0 0;padding:0 1.15rem;font-size:.82rem;color:#64748b}.editor-card-body{padding:1rem 1.15rem 1.15rem;display:flex;flex-direction:column;gap:.75rem}.editor-card-body-flush{padding-bottom:0}.editor-input{width:100%;padding:.55rem .75rem;border:1px solid #d1d9e6;border-radius:8px;background:#fff;color:#1a2332;font-size:.875rem;outline:none;transition:border-color .15s,box-shadow .15s}.editor-input:focus{border-color:#4d84f7;box-shadow:0 0 0 3px #4d84f726}.editor-input-mono{font-family:var(--mono);font-size:.78rem;color:#475569}.editor-select{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.editor-hint{margin:0;font-size:.78rem;color:#64748b}.editor-footnote{margin:.5rem 0 0;font-size:.78rem;color:#64748b;line-height:1.45}.editor-icon-btn{color:#64748b;flex-shrink:0}.editor-icon-btn:hover:not(:disabled){color:#ef4444;background:#ef444414}.webhook-row{padding:.85rem;border-radius:10px;background:#fff;border:1px solid #e2e8f0}.webhook-row-top{display:flex;gap:.5rem;align-items:center}.webhook-row-bottom{display:flex;gap:.5rem;align-items:center;margin-top:.65rem}.conn-status{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.conn-ok{background:#dcfce7;color:#16a34a}.conn-fail{background:#fee2e2;color:#dc2626}.btn-outline{background:#fff;border:1px solid #cbd5e1;color:#334155;font-weight:600}.btn-outline:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}.btn-block{width:100%}.logic-options{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.logic-option{display:flex;align-items:center;gap:.55rem;padding:.75rem .85rem;border-radius:10px;border:1.5px solid #e2e8f0;background:#fff;cursor:pointer;font-size:.82rem;font-weight:500;color:#334155;transition:border-color .15s,background .15s}.logic-option input{accent-color:#4d84f7;flex-shrink:0}.logic-option.selected{border-color:#4d84f7;background:#eff6ff}.logic-icon{margin-left:auto;color:#94a3b8;flex-shrink:0}.logic-icon-any .venn{display:block;width:22px;height:14px;position:relative}.logic-icon-any .venn:before,.logic-icon-any .venn:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;border:1.5px solid currentColor;top:0}.logic-icon-any .venn:before{left:0}.logic-icon-any .venn:after{right:0}.timewindow-row{margin-top:.5rem;padding:.85rem;border-radius:10px;background:#fff;border:1px solid #e2e8f0}.timewindow-label{display:block;font-size:.78rem;font-weight:600;color:#64748b;margin-bottom:.35rem}.timewindow-inline{margin:0;font-size:.875rem;color:#334155}.timewindow-input{width:52px;padding:.25rem .35rem;border:1px solid #cbd5e1;border-radius:6px;text-align:center;font-weight:600;color:#1a2332;background:#f8fafc}.telegram-options{display:flex;flex-direction:column;gap:.6rem}.telegram-steps{margin:.5rem 0 0;padding-left:1.15rem;font-size:.78rem;color:#64748b}.telegram-steps li+li{margin-top:.25rem}.telegram-steps code{background:#eef2f7;padding:.05rem .3rem;border-radius:4px}.telegram-add-row{display:flex;gap:.6rem;margin-top:.85rem;flex-wrap:wrap}.telegram-add-row .editor-input{flex:1 1 200px}.editor-footer{display:flex;justify-content:center;gap:.75rem;padding:1.5rem 0 .5rem;flex-wrap:wrap}.btn-lg{padding:.75rem 2rem;font-size:.9rem;letter-spacing:.04em;text-transform:uppercase;min-width:160px}.builder{max-width:860px}.step{margin-top:1.25rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow:hidden}.step-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.95rem 1.15rem;border-bottom:1px solid var(--border);flex-wrap:wrap}.step-label{display:flex;align-items:center;gap:.7rem;font-weight:600;font-size:.88rem;letter-spacing:.04em}.step-num{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#061022;font-size:.8rem;font-weight:700}.step-num.alt{background:var(--success)}.step-body{padding:1.15rem;display:flex;flex-direction:column;gap:.85rem}.webhook-card{padding:.95rem 1rem;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg-elevated);border-left:3px solid var(--primary)}.webhook-card:nth-child(2n){border-left-color:var(--success)}.webhook-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem;margin-bottom:.65rem}.webhook-card h4{margin:0 0 .15rem;font-size:.95rem}.url-row{display:flex;gap:.5rem;align-items:center}.url-row input{flex:1;min-width:0;padding:.55rem .7rem;border-radius:6px;border:1px solid var(--border);background:#0a0f18;font-family:var(--mono);font-size:.75rem;color:var(--text-muted)}.trade-row{display:grid;grid-template-columns:1.4fr 1fr auto;gap:.65rem;align-items:end}.empty-hint{padding:1.5rem;text-align:center;color:var(--text-dim);border:1px dashed var(--border);border-radius:var(--radius-sm)}.loading{color:var(--text-muted);padding:2rem;text-align:center}.empty-state{padding:3rem 1.5rem;text-align:center;color:var(--text-muted);border:1px dashed var(--border);border-radius:var(--radius)}.empty-state h3{margin:0 0 .35rem;color:var(--text)}.empty-state .btn{margin-top:1.15rem}@keyframes fadeUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.15rem;max-width:900px}.settings-grid .panel h2{margin:0 0 1rem;font-size:1.05rem}.settings-grid form{display:flex;flex-direction:column;gap:.85rem}.detail-grid{display:grid;gap:1rem}.detail-meta{display:flex;flex-wrap:wrap;gap:1rem 1.5rem;margin-bottom:.25rem}.detail-meta div span{display:block;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim);margin-bottom:.2rem}.delivery-list{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}.delivery-item{display:flex;align-items:flex-start;gap:.75rem;padding:.8rem 0;border-bottom:1px solid var(--border);font-size:.85rem}.delivery-item:last-child{border-bottom:none}.delivery-dot{width:7px;height:7px;border-radius:50%;margin-top:.45rem;flex-shrink:0;background:var(--success)}.delivery-item.failed .delivery-dot{background:var(--danger)}.delivery-main{flex:1;min-width:0}.delivery-error{margin-top:.25rem;font-family:var(--mono);font-size:.74rem;color:var(--danger);overflow-wrap:anywhere}.delivery-meta{display:flex;align-items:center;gap:.75rem;flex-shrink:0;font-size:.75rem}@media(max-width:620px){.delivery-item{flex-wrap:wrap}.delivery-meta{width:100%;padding-left:1.5rem}}.channel-warning{display:flex;align-items:flex-start;gap:.5rem;margin-top:.75rem;padding:.55rem .7rem;border-radius:var(--radius-sm);background:var(--warning-soft);color:var(--warning);font-size:.8rem;line-height:1.4}.channel-warning svg{flex-shrink:0;margin-top:.1rem}.channel-warning a{color:inherit;text-decoration:underline}.stream-item.failed .event>strong{color:var(--danger)}.credit-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .6rem;border-radius:999px;font-size:.8rem;font-weight:600;color:var(--text);background:var(--surface);border:1px solid var(--border);transition:.15s}.credit-chip:hover{border-color:var(--border-strong)}.credit-chip.empty{color:var(--warning);background:var(--warning-soft);border-color:transparent}.balance-hero{display:flex;flex-wrap:wrap;align-items:center;gap:1.5rem 2.5rem;margin-bottom:1.75rem}.balance-main{display:flex;flex-direction:column;gap:.3rem}.balance-main strong{font-size:2.4rem;font-weight:700;line-height:1;letter-spacing:-.03em}.balance-breakdown{display:flex;gap:2rem;margin:0;padding-left:2rem;border-left:1px solid var(--border)}.balance-breakdown dt{font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim);margin-bottom:.3rem}.balance-breakdown dd{margin:0;font-size:1.05rem;font-weight:600}.balance-warning{display:flex;align-items:center;gap:.5rem;flex:1 1 100%;padding:.6rem .75rem;border-radius:var(--radius-sm);background:var(--warning-soft);color:var(--warning);font-size:.82rem}.pay-hint{display:flex;align-items:flex-start;gap:.5rem;margin:-.25rem 0 1rem;font-size:.8rem;line-height:1.45;max-width:68ch}.pay-hint svg{flex-shrink:0;margin-top:.15rem;color:var(--warning)}.pack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:1rem;margin-bottom:1.75rem}.pack-card{position:relative;display:flex;flex-direction:column;gap:.3rem;text-align:center}.pack-discount{position:absolute;top:-.6rem;left:50%;transform:translate(-50%)}.pack-credits{display:flex;flex-direction:column;gap:.15rem;margin-top:.4rem}.pack-credits strong{font-size:1.9rem;font-weight:700;line-height:1;letter-spacing:-.03em}.pack-price{font-size:1.1rem;font-weight:600;margin-top:.5rem}.pack-unit{font-size:.74rem;margin-bottom:.9rem}.ledger-list{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}.ledger-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 0;font-size:.85rem;border-bottom:1px solid var(--border)}.ledger-item:last-child{border-bottom:none}.ledger-reason{font-weight:500}.ledger-meta{display:flex;align-items:center;gap:1rem;font-size:.78rem}.ledger-delta{font-family:var(--mono);font-weight:600;min-width:3rem;text-align:right;color:var(--text-dim)}.ledger-delta.positive{color:var(--success)}.ledger-delta.negative{color:var(--text-muted)}@media(max-width:1100px){.dashboard-grid{grid-template-columns:1fr}.stream-panel{position:static;max-height:none}}@media(max-width:860px){.app-shell{grid-template-columns:1fr}.mobile-toggle{display:grid}.sidebar{position:fixed;left:0;top:0;transform:translate(-105%);transition:transform .22s ease;width:min(280px,85vw);box-shadow:var(--shadow)}.sidebar.open{transform:none}.sidebar-backdrop.open{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;z-index:18}.topbar{padding:0 1rem}.topbar-title{display:none}.content{padding:1.15rem 1rem 2rem}.field-row,.trade-row,.logic-options{grid-template-columns:1fr}.strategy-name-bar{flex-direction:column;align-items:stretch}.search-wrap{max-width:none}}@media(max-width:520px){.page-header h1{font-size:1.4rem}.topbar-actions .btn-primary span{display:none}.balance-breakdown{padding-left:0;border-left:none}}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.btn:focus-visible,.icon-btn:focus-visible,.nav-link:focus-visible,.avatar:focus-visible,.credit-chip:focus-visible,.back-link:focus-visible,.auth-switch button:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:var(--radius-sm)}.search-wrap input:focus-visible,.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible,.editor-input:focus-visible,.timewindow-input:focus-visible,.strategy-name-input:focus-visible,.url-row input:focus-visible{outline:2px solid var(--primary);outline-offset:1px}.logic-option:focus-within{outline:2px solid var(--primary);outline-offset:2px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:grid;place-items:center;padding:1.25rem;background:#04070db8;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:fadeUp .18s ease both}.modal{width:min(420px,100%);padding:1.35rem 1.4rem 1.2rem;background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);box-shadow:var(--shadow)}.modal h3{margin:0 0 .5rem;font-size:1.05rem}.modal p{margin:0;font-size:.88rem;line-height:1.5}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.25rem}.topbar-meta{display:flex;align-items:center;gap:.4rem;font-size:.75rem;color:var(--text-dim);white-space:nowrap}.bell-wrap{position:relative;display:inline-flex}.bell-badge{position:absolute;top:-2px;right:-2px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--danger);color:#1a0505;font-size:.62rem;font-weight:700;line-height:16px;text-align:center;box-shadow:0 0 0 2px var(--bg-elevated)}.input-with-action{position:relative;display:flex;align-items:center}.input-with-action input{flex:1;padding-right:2.6rem}.input-reveal{position:absolute;right:.4rem;display:grid;place-items:center;width:1.9rem;height:1.9rem;border-radius:var(--radius-sm);color:var(--text-muted)}.input-reveal:hover{color:var(--text);background:var(--surface-2)}.logic-option.is-disabled{opacity:.55;cursor:not-allowed}.logic-option.is-disabled input{cursor:not-allowed}.soon-tag{margin-left:auto;padding:.1rem .4rem;border-radius:999px;border:1px solid var(--border-strong);color:var(--text-dim);font-size:.65rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase}.refresh-row{display:flex;align-items:center;gap:.5rem}@media(max-width:860px){.topbar-meta{display:none}}.freshness{font-size:.75rem;color:var(--text-dim);font-variant-numeric:tabular-nums;white-space:nowrap}
