:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#f5f7fb;color:#172033}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.topbar{height:72px;background:#101722;color:#fff;display:flex;align-items:center;padding:0 28px;gap:28px;box-shadow:0 8px 24px #0b122020}.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;min-width:270px}.brand span{display:flex;flex-direction:column}.brand strong{font-size:18px}.brand small{font-size:11px;color:#91a0b8;letter-spacing:.06em;text-transform:uppercase}.app-mark{width:35px;height:35px;border-radius:9px}.nav-links{display:flex;gap:6px;flex:1}.nav-links a{color:#9facbe;text-decoration:none;padding:10px 13px;border-radius:8px;font-weight:650;font-size:14px}.nav-links a.active,.nav-links a:hover{background:#202b3a;color:#fff}.page-shell{max-width:1180px;margin:0 auto;padding:34px 28px 60px}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:24px}.page-heading h1{font-size:30px;margin:4px 0 8px}.page-heading p{margin:0;color:#69758a;max-width:760px}.eyebrow{text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.12em;color:#526cff}.actions{display:flex;gap:10px;flex-wrap:wrap}.button{border:0;border-radius:8px;padding:10px 15px;font-weight:750;cursor:pointer}.button:disabled{opacity:.55;cursor:not-allowed}.button.primary{background:#2b55e7;color:#fff}.button.secondary{background:#e9eef8;color:#25324a}.button.danger{background:#ffe5e7;color:#a22637}.topbar .button.secondary{background:#202b3a;color:#e7edf7}.card{background:#fff;border:1px solid #e1e6ef;border-radius:14px;padding:22px;box-shadow:0 10px 30px #1b2b4710}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:28px}.card h2{margin:0 0 18px;font-size:18px}label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:13px;margin-bottom:16px}input,select,textarea{width:100%;border:1px solid #ccd4e1;background:#fff;border-radius:8px;padding:10px 11px;color:#192235}textarea{resize:vertical}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.status-card{background:#fff;border:1px solid #e1e6ef;border-radius:12px;padding:15px;display:flex;align-items:center;gap:11px}.status-card div{display:flex;flex-direction:column;gap:3px}.status-card small{color:#748095}.dot{width:10px;height:10px;border-radius:50%;background:#d04c5a}.dot.ok{background:#1da46f}.error-box{margin:14px 0;padding:11px 13px;border-radius:8px;background:#fff0f1;color:#a43040;white-space:pre-line}.json-box{background:#0f1722;color:#b8d0ff;border-radius:10px;padding:14px;overflow:auto;max-height:340px;font-size:12px}.pill{font-size:11px;border-radius:999px;background:#eef2f7;padding:5px 8px;color:#546076}.pill.enabled{background:#dcf8ec;color:#11734d}.code-input{font-family:SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.5}.record-list{display:flex;flex-direction:column;gap:12px}.record{border:1px solid #e6eaf1;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:7px}.record small,.record span{color:#748095;font-size:12px}.record code{overflow-wrap:anywhere;font-size:11px;color:#526079}.record-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.record .button{align-self:flex-start;margin-top:5px}.error-text{color:#a43040!important}.empty{text-align:center;color:#7b8798;padding:30px}.empty strong,.empty span{display:block;margin-bottom:10px}.deployment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.deployment-card{border:1px solid #dfe5ef;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:16px}.deployment-card .record-title>div{display:flex;flex-direction:column;gap:4px}.deployment-card .record-title small{color:#718096}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.summary-grid span{display:flex;flex-direction:column;gap:3px}.summary-grid small{color:#7a8698;font-size:11px;text-transform:uppercase;letter-spacing:.05em}.summary-grid strong{font-size:13px;overflow-wrap:anywhere}.error-box.compact{margin:0;font-size:12px}.backtest-result{margin-bottom:18px;display:flex;flex-direction:column;gap:14px}.backtest-result h2{margin:0 0 4px}.backtest-result>small{color:#748095}.parity-form{border-top:1px solid #e3e8f0;padding-top:14px}.parity-form h3{margin:0 0 5px}.parity-form p{margin:0 0 12px;color:#6d798c;font-size:13px}.parity-form label{max-width:260px;margin-top:12px}.settings-form{border:0;padding:0;margin:0;min-width:0;display:flex;flex-direction:column;gap:18px}.settings-form:disabled{opacity:.68}.form-section{box-shadow:none}.section-heading{display:flex;gap:13px;align-items:flex-start;margin-bottom:22px}.section-heading>span{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:50%;background:#e8edff;color:#3155d9;font-weight:800}.section-heading h2{margin:2px 0 4px}.section-heading p,.setting-row p{margin:0;color:#6d798c;font-size:13px;line-height:1.5}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}.field-hint{color:#7a8698;font-weight:500;line-height:1.4}.field-label{font-size:13px;font-weight:700;margin-bottom:8px}.weekday-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.choice-chip{margin:0;display:inline-flex;flex-direction:row;align-items:center;gap:6px;border:1px solid #d2d9e5;border-radius:999px;padding:8px 12px;cursor:pointer;color:#647087}.choice-chip.selected{border-color:#4163e8;background:#edf1ff;color:#2645bd}.choice-chip input{width:auto;margin:0}.advanced{border-top:1px solid #e6eaf1;padding-top:15px}.advanced summary{cursor:pointer;font-weight:750;color:#30415e;margin-bottom:18px}.toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px}.toggle-row{flex-direction:row;align-items:center;gap:9px;margin:0;border:1px solid #e3e8f0;border-radius:9px;padding:10px;font-weight:600}.toggle-row input,.approval-box input{width:auto;margin:0}.approval-box{flex-direction:row;align-items:flex-start;gap:11px;border:1px solid #f0c76a;background:#fff8e6;border-radius:10px;padding:14px}.approval-box span{display:flex;flex-direction:column;gap:3px}.approval-box small{color:#7b6841;font-weight:500}.save-bar{position:sticky;bottom:16px;z-index:5;margin-top:20px;padding:15px 18px;border-radius:12px;background:#111b2a;color:#fff;box-shadow:0 16px 36px #0a142a42;display:flex;align-items:center;justify-content:space-between;gap:20px}.save-bar>div:first-child{display:flex;flex-direction:column;gap:3px}.save-bar span{color:#aeb9cb;font-size:12px}.settings-card{display:flex;flex-direction:column;gap:22px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:25px}.setting-row h2{margin-bottom:6px}.setting-control{display:flex;align-items:center;gap:12px}.state-badge{border-radius:999px;padding:7px 11px;background:#fbe4e7;color:#a12c3c;font-weight:750;font-size:12px}.state-badge.running{background:#dcf8ec;color:#11734d}.notice{display:flex;flex-direction:column;gap:4px;border:1px solid #cdd8fb;background:#f1f4ff;border-radius:10px;padding:14px;color:#334463}.notice span{font-size:13px;line-height:1.5}.notice.warning{margin-bottom:18px;border-color:#efc76f;background:#fff8e8;color:#75561a}.meta-row{display:flex;flex-wrap:wrap;gap:20px;color:#6f7b8e;font-size:12px}.auth-page{min-height:100vh;background:#101722;display:grid;place-items:center;padding:24px}.auth-card{width:min(420px,100%);background:#fff;border-radius:16px;padding:30px;box-shadow:0 30px 80px #0006}.auth-card h1{margin:22px 0 8px;font-size:25px}.auth-card p{color:#6d788a;margin:0 0 24px;line-height:1.5}.auth-brand{display:flex;align-items:center;gap:10px}.auth-brand div{display:flex;flex-direction:column}.auth-brand small{color:#7b8797}.auth-card .button{width:100%}.render-error{min-height:100vh;display:grid;place-items:center;padding:24px}.render-error .card{width:min(560px,100%)}.render-error h1{margin:8px 0}.render-error p{color:#667389}@media(max-width:800px){.topbar{padding:0 14px}.brand{min-width:0}.brand small{display:none}.nav-links{justify-content:flex-end}.nav-links a{font-size:12px;padding:8px}.page-shell{padding:24px 16px}.page-heading{flex-direction:column}.status-grid,.two-column,.deployment-grid,.form-grid,.toggle-grid{grid-template-columns:1fr}.setting-row,.save-bar{align-items:stretch;flex-direction:column}.setting-control{justify-content:space-between}.topbar .button{display:none}}
