/* VisionOS Light shell (simplified for now) */
.cs15-root{min-height:100vh;margin:0;padding:24px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",system-ui,sans-serif;background:radial-gradient(circle at top,#f6fbff 0,#dde7f5 40%,#c7d4ea 80%);color:#102039;}
.cs15-window{position:relative;width:min(1320px,100%);height:min(780px,calc(100vh - 150px));border-radius:32px;background:rgba(255,255,255,.9);box-shadow:0 40px 120px rgba(39,66,120,.45);display:flex;flex-direction:column;overflow:hidden;}
.cs15-chrome{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;}
.cs15-title{font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:#3f4d6c;}
.cs15-metrics{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;max-width:60%;}
.cs15-pill{font-size:11px;padding:6px 11px;border-radius:999px;background:#f4f7ff;border:1px solid #becae2;white-space:nowrap;}
.cs15-body{flex:1;display:grid;grid-template-columns:260px minmax(0,1fr);column-gap:18px;padding:10px 16px 18px 16px;box-sizing:border-box;min-height:0;}
.cs15-sidebar{background:#f4f7ff;border-radius:24px;padding:16px 14px;border:1px solid #c2cee8;display:flex;flex-direction:column;}
.cs15-logo{font-size:18px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px;color:#223457;}
.cs15-logo span{display:block;font-size:11px;font-weight:400;opacity:.8;color:#647190;}
.cs15-nav{display:flex;flex-direction:column;gap:6px;margin-top:6px;overflow-y:auto;}
.cs15-nav-item{border:none;background:transparent;color:#3c4b6f;padding:8px 12px;border-radius:999px;font-size:13px;text-align:left;cursor:pointer;}
.cs15-nav-item:hover{background:rgba(214,226,245,.6);}
.cs15-nav-active{background:linear-gradient(135deg,#4e8df9 0,#8b6bff 100%);color:#fff;}
.cs15-main{min-height:0;height:100%;position:relative;overflow:hidden;}
.cs15-section{display:none;height:100%;}
.cs15-section-active{display:block;height:100%;}
.cs15-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(120px,1fr);gap:14px;height:100%;overflow-y:auto;padding-right:4px;box-sizing:border-box;}
.cs15-card{background:#ffffff;border-radius:22px;padding:16px 18px;border:1px solid #d2dcf0;box-shadow:0 24px 80px rgba(128,151,199,.25);box-sizing:border-box;display:flex;flex-direction:column;min-height:0;}
.cs15-card-title{font-size:11px;letter-spacing:.18em;text-transform:uppercase;opacity:.9;margin-bottom:10px;color:#57648a;}
.cs15-card-text{font-size:14px;line-height:1.6;flex:1;overflow:auto;color:#182038;}
.cs15-pre{font-family:ui-monospace,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;background:#f5f7ff;border-radius:14px;padding:10px 12px;font-size:12px;max-height:220px;overflow:auto;border:1px solid #d2dcf0;box-sizing:border-box;color:#1a2640;}
.cs15-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.cs15-input{background:#f7f9ff;border-radius:999px;border:1px solid #becae2;padding:6px 10px;color:#1c2b44;font-size:13px;min-width:80px;}
.cs15-input:focus{outline:none;border-color:#4f8cf8;box-shadow:0 0 0 1px rgba(79,140,248,.3);}
.cs15-btn{border-radius:999px;border:1px solid #afc4e6;padding:7px 14px;font-size:13px;background:linear-gradient(135deg,#4f8cf8 0,#8c6bff 100%);color:#fff;cursor:pointer;white-space:nowrap;}
.cs15-textarea{width:100%;margin-top:8px;background:#f6f9ff;border-radius:16px;border:1px solid #d2dcf0;color:#1b2741;font-size:13px;padding:10px 12px;min-height:110px;resize:vertical;box-sizing:border-box;}
.cs15-dock{margin-top:18px;padding:6px 12px;border-radius:20px;background:#f4f7ff;border:1px solid #c2cee8;box-shadow:0 18px 60px rgba(112,135,189,.35);display:flex;gap:8px;flex-wrap:wrap;justify-content:center;}
.cs15-dock-item{border:none;background:transparent;color:#445277;font-size:13px;padding:6px 12px;border-radius:999px;cursor:pointer;}
.cs15-dock-item:hover{background:rgba(219,229,248,.9);}
.cs15-dock-active{background:linear-gradient(135deg,#4b8cf8 0,#896bff 100%);color:#fff;}
.cs15-split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:14px;height:100%;}
.cs15-split-left,.cs15-split-right{display:flex;flex-direction:column;height:100%;min-height:0;}
.cs15-chatbox{flex:1;background:#f4f8ff;border-radius:16px;border:1px solid #becae2;padding:8px 10px;overflow-y:auto;}
.cs15-chat-msg{font-size:13px;margin-bottom:8px;padding:8px 10px;border-radius:14px;}
.cs15-chat-system{background:rgba(79,140,248,.12);color:#1e2950;}
.cs15-chat-user{background:#ffffff;text-align:right;border:1px solid #c4d0e8;}
.cs15-table-wrap{max-height:360px;overflow:auto;margin-top:8px;}
.cs15-table{width:100%;border-spacing:0 6px;font-size:13px;}
.cs15-table th,.cs15-table td{padding:6px 8px;}
.cs15-table thead tr{color:#5a678a;}
.cs15-table tbody tr{background:#f6f9ff;}
.cs15-table tbody tr:hover{background:#e0e7fb;}
.cs15-muted{font-size:12px;opacity:.8;color:#5c6886;}
.cs15-scroll{max-height:360px;overflow:auto;}
.cs15-deriv-grid,.cs15-onchain-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(120px,1fr);gap:12px;height:100%;overflow-y:auto;padding-right:4px;box-sizing:border-box;}
.cs15-deriv-panel,.cs15-onchain-panel{background:transparent;border:none;padding:0;min-height:0;}
.cs15-deriv-wide,.cs15-onchain-wide{grid-column:1/-1;}

@media(max-width:1024px){
 .cs15-root{padding:8px;}
 .cs15-window{height:calc(100vh - 120px);}
 .cs15-body{grid-template-columns:1fr;row-gap:10px;}
 .cs15-sidebar{flex-direction:row;align-items:center;overflow-x:auto;}
 .cs15-nav{flex-direction:row;}
 .cs15-grid{grid-template-columns:1fr;}
 .cs15-split{grid-template-columns:1fr;}
 .cs15-deriv-grid,.cs15-onchain-grid{grid-template-columns:1fr;}
}
