/* CHAT x Sneat surgical integration. Sneat Free by ThemeSelection, MIT. */
:root{--chat-primary:#696cff;--chat-primary-soft:rgba(105,108,255,.16);--chat-bg:#f5f5f9;--chat-surface:#fff;--chat-text:#566a7f;--chat-heading:#384551;--chat-muted:#a1acb8;--chat-border:rgba(67,89,113,.12);--chat-success:#71dd37;--chat-danger:#ff3e1d;--chat-warning:#ffab00;--chat-info:#03c3ec;--chat-shadow:0 2px 6px rgba(67,89,113,.12);--chat-menu:16.25rem;--bg:var(--chat-bg);--bg-elevated:#fff;--surface:#fff;--surface-2:#f8f8fb;--surface-3:#f0f1f6;--surface-soft:rgba(67,89,113,.04);--text:var(--chat-heading);--text-soft:var(--chat-text);--muted:#7f8c9a;--muted-2:var(--chat-muted);--gold:var(--chat-primary);--gold-bright:#7b7eff;--gold-soft:var(--chat-primary-soft);--border:var(--chat-border);--border-strong:rgba(67,89,113,.2);--border-gold:rgba(105,108,255,.3);--danger:var(--chat-danger);--success:var(--chat-success);--shadow-1:var(--chat-shadow);--shadow-2:0 .5rem 1rem rgba(67,89,113,.18);--radius-sm:.375rem;--radius-md:.5rem;--radius-lg:.625rem;--radius-xl:.75rem;--header-h:4rem;--focus:0 0 0 .2rem rgba(105,108,255,.22)}
html,body.sneat-shell{background:var(--chat-bg)!important;color:var(--chat-text)}body.sneat-shell{min-height:100vh;background-image:none!important;font-family:"Public Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body.sneat-shell a{text-decoration:none}body.sneat-shell h1,body.sneat-shell h2,body.sneat-shell h3,body.sneat-shell h4,body.sneat-shell h5,body.sneat-shell h6,body.sneat-shell strong{color:var(--chat-heading)}
.sneat-shell .layout-wrapper,.sneat-shell .layout-container{min-height:100vh}.sneat-shell .layout-menu{position:fixed;inset:0 auto 0 0;width:var(--chat-menu);z-index:1080;background:#fff!important;border-right:1px solid var(--chat-border);box-shadow:0 .125rem .375rem rgba(67,89,113,.05);overflow:hidden;display:flex;flex-direction:column}.sneat-shell .layout-page{min-height:100vh;margin-left:var(--chat-menu);display:flex;flex-direction:column}.sneat-shell .content-wrapper{flex:1;min-width:0;display:flex;flex-direction:column}.sneat-shell .chat-sneat-content{width:100%;padding:1.625rem;flex:1}.sneat-shell .app-brand{height:4rem;display:flex;align-items:center;padding:0 1.4rem}.sneat-shell .app-brand-link{display:flex;align-items:center;gap:.75rem}.sneat-shell .chat-brand-mark{width:2.2rem;height:2.2rem;border-radius:.55rem;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#696cff,#8d8fff);box-shadow:0 .25rem .75rem rgba(105,108,255,.28);font-weight:800}.sneat-shell .app-brand-text{font-size:1.28rem;font-weight:800;color:var(--chat-heading)}.sneat-shell .app-brand-sub{display:block;color:var(--chat-muted);font-size:.68rem}.sneat-shell .menu-inner{list-style:none;margin:0;padding:.65rem .75rem 1rem;overflow-y:auto;flex:1}.sneat-shell .menu-header{padding:1.1rem .8rem .4rem;color:var(--chat-muted);font-size:.69rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.sneat-shell .menu-item{list-style:none;margin:.12rem 0}.sneat-shell .menu-link{min-height:2.55rem;display:flex;align-items:center;gap:.7rem;width:100%;padding:.58rem .78rem;border-radius:.42rem;color:#697a8d;font-size:.92rem;font-weight:500;cursor:pointer;list-style:none}.sneat-shell summary.menu-link::-webkit-details-marker{display:none}.sneat-shell .menu-link:hover{color:var(--chat-primary);background:rgba(105,108,255,.06)}.sneat-shell .menu-item.active>.menu-link,.sneat-shell .menu-item.open>summary{color:var(--chat-primary);background:var(--chat-primary-soft);font-weight:600}.sneat-shell .menu-symbol{width:1.35rem;text-align:center}.sneat-shell .menu-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sneat-shell .menu-caret{margin-left:auto}.sneat-shell details[open]>summary .menu-caret{transform:rotate(90deg)}.sneat-shell .menu-sub{list-style:none;margin:.15rem 0 .4rem;padding-left:1.5rem}.sneat-shell .menu-sub .menu-link{min-height:2.2rem;font-size:.84rem;padding:.45rem .68rem}
.sneat-shell .layout-navbar{min-height:4rem;margin:.75rem 1.625rem 0;padding:.6rem .85rem;background:rgba(255,255,255,.94)!important;border:1px solid rgba(67,89,113,.06);border-radius:.5rem;box-shadow:var(--chat-shadow);backdrop-filter:blur(12px);position:sticky;top:.75rem;z-index:1040}.sneat-shell .chat-navbar-inner{width:100%;display:flex;align-items:center;gap:1rem}.sneat-shell .layout-menu-toggle-mobile{width:2.4rem;height:2.4rem;border:0;background:transparent;color:#697a8d;font-size:1.35rem;cursor:pointer;display:none}.sneat-shell .chat-navbar-title{min-width:0;flex:1}.sneat-shell .chat-navbar-title small{display:block;color:var(--chat-muted);font-size:.72rem;text-transform:uppercase}.sneat-shell .chat-navbar-title strong{display:block;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sneat-shell .chat-navbar-status{display:flex;align-items:center;gap:.7rem;margin-left:auto}.sneat-shell .chat-ai-status{padding:.25rem .65rem;border-radius:999px;background:rgba(113,221,55,.12);color:#54a52b;font-size:.74rem;font-weight:700}.sneat-shell .chat-user-chip{display:flex;align-items:center;gap:.5rem;color:#697a8d;font-size:.82rem}.sneat-shell .chat-user-avatar{width:2rem;height:2rem;border-radius:50%;display:grid;place-items:center;background:var(--chat-primary-soft);color:var(--chat-primary);font-weight:700}.sneat-shell .chat-sneat-footer{color:var(--chat-muted);font-size:.75rem;padding:.8rem 1.625rem 1.2rem;text-align:right}.sneat-shell .chat-sneat-footer a{color:var(--chat-primary)}.sneat-shell .layout-overlay{display:none}
/* Standardize every application workspace to Sneat surfaces without changing functional hooks. */
body.sneat-shell :is(.home-command-card,.home-workspace-card,.home-panel,.prediction-kpi,.threshold-panel,.prediction-history-panel,.desk-kpi,.desk-toolbar,.slips-ledger,.accounting-kpi,.accounting-panel,.bankroll-kpi,.bankroll-panel,.next-step-card,.auto-value-card,.multi-agent-panel,.multi-agent-toolbar,.tennis-live-scoreboard,.tennis-live-panel,.sisal-tree-card,.openai-model-card,.config-card,.config-panel,.commercial-api-card,.quant-hero,.desk-card,.quant-kpis>article,.quant-section,.chart-card,.data-table-card,.strategy-cover,.strategy-terminal,.strategy-charter,.mandate-grid>article,.strategy-ribbon,.cycles-section,.strategy-cycle,.cycle-card,.cycle-ticket){background:#fff!important;border-color:var(--chat-border)!important;border-radius:.5rem!important;box-shadow:var(--chat-shadow)!important}
body.sneat-shell :is(.eyebrow,.desk-kicker,.bankroll-kicker,.auto-value-kicker,.multi-agent-kicker,.multi-agent-eyebrow,.sisal-tree-eyebrow,.sisal-tree-card-kicker,.accounting-kicker,.commercial-api-kicker,.quant-kicker,.strategy-overline){color:var(--chat-primary)!important}body.sneat-shell :is(.btn-primary,.btn-success){color:#fff!important;background:var(--chat-primary)!important;border-color:var(--chat-primary)!important;box-shadow:0 .125rem .25rem rgba(105,108,255,.2)!important}body.sneat-shell .btn-primary:hover{background:#5f61e6!important}body.sneat-shell :is(.btn-secondary,.btn-ghost){color:#697a8d!important;background:#fff!important;border-color:#d9dee3!important}body.sneat-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){color:#697a8d!important;background:#fff!important;border-color:#d9dee3!important;border-radius:.375rem!important}body.sneat-shell :is(input,select,textarea):focus{border-color:var(--chat-primary)!important;box-shadow:0 0 0 .2rem rgba(105,108,255,.12)!important}body.sneat-shell table{color:#697a8d}body.sneat-shell table th{color:#566a7f!important;background:#f5f5f9!important;border-color:var(--chat-border)!important}body.sneat-shell table td{border-color:rgba(67,89,113,.08)!important}body.sneat-shell :is(.prediction-status,.slips-status,.bankroll-message,.auto-value-message,.sisal-tree-status){border-radius:.375rem!important;box-shadow:none!important}
/* Home */body.sneat-shell.page-home .home-dashboard{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}.chat-home-kicker{font-size:.72rem;font-weight:700;letter-spacing:.08em;color:var(--chat-primary);text-transform:uppercase}.chat-home-icon{width:2.65rem;height:2.65rem;display:grid;place-items:center;border-radius:.5rem;background:var(--chat-primary-soft);color:var(--chat-primary);font-weight:800}.chat-home-card-link{color:var(--chat-primary);font-weight:600}.chat-home-flow .list-group-item{padding:.82rem 0}
/* Chat */body.sneat-shell.page-index .chat-page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body.sneat-shell :is(.persona-toolbar,.conversation-shell,.popover,.prompt-card,.composer-shell){background:#fff!important;border-color:var(--chat-border)!important;box-shadow:var(--chat-shadow)!important}body.sneat-shell .chat-feed{background:#fff!important}body.sneat-shell .message.assistant .message-bubble{background:#f5f5f9!important;border-color:var(--chat-border)!important}body.sneat-shell .message.user .message-bubble{background:var(--chat-primary-soft)!important;border-color:rgba(105,108,255,.18)!important}
/* Predictions */body.sneat-shell .predictions-page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body.sneat-shell .prediction-history-head{background:#fff!important;border-color:var(--chat-border)!important}body.sneat-shell .prediction-table th{position:sticky;top:0;background:#f5f5f9!important}body.sneat-shell :is(.source-pill.consensus,.prediction-sign){color:var(--chat-primary)!important;background:var(--chat-primary-soft)!important;border-color:rgba(105,108,255,.2)!important}body.sneat-shell :is(.decision-pill.taken,.result-pill.correct){color:#54a52b!important;background:rgba(113,221,55,.12)!important}body.sneat-shell .result-pill.wrong{color:#d73013!important;background:rgba(255,62,29,.1)!important}
/* Schedine, keep ticket identity */body.sneat-shell .slips-page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body.sneat-shell .saved-slip-cycle-head{background:#f5f5f9!important;border-color:var(--chat-border)!important}body.sneat-shell .bet-slip.chat-ticket{box-shadow:0 .25rem .75rem rgba(67,89,113,.12)!important}body.sneat-shell .slip-state-chip.is-win{color:#54a52b!important}body.sneat-shell .slip-state-chip.is-loss{color:#d73013!important}
/* Accounting / bankroll / automatic */body.sneat-shell :is(.accounting-shell,.bankroll-page,.auto-value-page){width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body.sneat-shell :is(.accounting-toolbar,.workflow-step,.auto-value-settings-form){background:#fff!important;border-color:var(--chat-border)!important}body.sneat-shell :is(.positive,.up){color:#54a52b!important}body.sneat-shell :is(.negative,.down){color:#d73013!important}
/* Tennis / Sisal */body.sneat-shell :is(.tennis-live-page,.sisal-tree-page){width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body.sneat-shell .tennis-live-health{background:#fff!important;border-color:var(--chat-border)!important;box-shadow:var(--chat-shadow)!important}body.sneat-shell .tennis-live-badge{color:#fff!important;background:var(--chat-danger)!important}body.sneat-shell .sisal-tree-status{background:#fff!important;border-color:var(--chat-border)!important}body.sneat-shell :is(.sisal-tree-view,.sisal-tree-node-detail,.sisal-api-list-wrap,.sisal-api-detail,.sisal-tree-errors){background:#fff!important;border-color:var(--chat-border)!important}
/* Multi AI */body.sneat-shell .multi-agent-shell{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body.sneat-shell :is(.multi-agent-conversation,.multi-agent-session-goal,.multi-agent-composer){background:#fff!important;border-color:var(--chat-border)!important}
/* Configuration family */body.sneat-shell .config-page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body.sneat-shell :is(.config-heading,.config-section-intro,.config-nav,.config-sidebar,.config-editor,.config-list,.config-table-wrap){background:#fff!important;border-color:var(--chat-border)!important;border-radius:.5rem!important;box-shadow:var(--chat-shadow)!important}body.sneat-shell :is(.config-heading,.config-section-intro){padding:1.5rem!important}body.sneat-shell :is(.openai-model-current,.openai-model-selection){background:#f8f8fb!important;border-color:var(--chat-border)!important}body.sneat-shell .openai-model-stop.is-active .openai-model-dot{background:var(--chat-primary)!important}
/* Commercial API, contacts, detail, quant and performance */body.sneat-shell :is(.commercial-api-page,.contacts-page,.prediction-detail-page,.quant-page,.strategy-performance-page){width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body.sneat-shell :is(.commercial-api-hero,.commercial-api-endpoint,.commercial-api-grid>article,.commercial-api-flow>div,.commercial-api-state,.contacts-page section,.prediction-detail-page section,.explain-grid>article,.empty-strategy){background:#fff!important;border-color:var(--chat-border)!important;border-radius:.5rem!important;box-shadow:var(--chat-shadow)!important}body.sneat-shell pre{background:#232333!important;color:#e7e7f4!important;border-color:transparent!important;border-radius:.375rem!important}body.sneat-shell .commercial-api-note{background:rgba(3,195,236,.08)!important;color:#4d6b76!important;border-color:rgba(3,195,236,.16)!important}body.sneat-shell :is(.quant-btn.primary,.strategy-enter){color:#fff!important;background:var(--chat-primary)!important;border-color:var(--chat-primary)!important}body.sneat-shell :is(.quant-btn.ghost,.strategy-back){color:#697a8d!important;background:#fff!important;border-color:#d9dee3!important}body.sneat-shell :is(.desk-nav,.desk-mini-grid>div,.mandate-index,.cycle-node){background:var(--chat-primary-soft)!important;border-color:rgba(105,108,255,.2)!important}
/* Login / error */body.sneat-shell :is(.chat-auth-shell,.chat-error-shell){min-height:calc(100vh - 4rem);display:grid;place-items:center;padding:1.5rem}body.sneat-shell :is(.chat-auth-card,.chat-error-card){width:min(28rem,100%);background:#fff;border:1px solid var(--chat-border);border-radius:.5rem;box-shadow:var(--chat-shadow);padding:2rem}body.sneat-shell .chat-auth-brand{display:flex;justify-content:center;align-items:center;gap:.65rem;margin-bottom:1.5rem;font-size:1.35rem;font-weight:800}body.sneat-shell .chat-auth-card .form-row{margin-bottom:1rem}body.sneat-shell .chat-auth-card .form-control{width:100%;min-height:2.8rem}body.sneat-shell .chat-auth-card .btn{width:100%}
/* Robot Arena is autonomous; only outer app chrome changes. */body.sneat-shell.page-robotarena .chat-sneat-content{padding:0}body.sneat-shell.page-robotarena :is(.robot-arena-page,.robot-arena-shell){max-width:none;margin:0}
body.sneat-shell.layout-without-menu .layout-page,body.sneat-shell .layout-wrapper.layout-without-menu .layout-page{margin-left:0!important}
@media(max-width:1199.98px){.sneat-shell .layout-menu{transform:translateX(-100%);transition:transform .22s ease;box-shadow:.5rem 0 2rem rgba(67,89,113,.14)}.sneat-shell.menu-mobile-open .layout-menu{transform:translateX(0)}.sneat-shell .layout-page{margin-left:0}.sneat-shell .layout-menu-toggle-mobile{display:inline-grid;place-items:center}.sneat-shell.menu-mobile-open .layout-overlay{display:block;position:fixed;inset:0;z-index:1070;background:rgba(67,89,113,.45)}}
@media(max-width:767.98px){.sneat-shell .layout-navbar{margin:.5rem .75rem 0}.sneat-shell .chat-sneat-content{padding:1rem .75rem 1.5rem}.sneat-shell .chat-ai-status{display:none}.sneat-shell .chat-user-chip>span:not(.chat-user-avatar){display:none}.sneat-shell .chat-sneat-footer{padding-left:.75rem;padding-right:.75rem}}
@media print{body.sneat-shell :is(.layout-menu,.layout-navbar,.chat-sneat-footer,.layout-overlay){display:none!important}body.sneat-shell .layout-page{margin-left:0!important}body.sneat-shell .chat-sneat-content{padding:0!important}}
