/* Scoped shell. Existing pages keep their independent presentation outside it. */
:root{--workspace-surface:#101c25;--workspace-bg:#071016;--workspace-header:#080f15}html[data-theme=light]{color-scheme:light;--text:#182333;--muted:#4b5968;--line:#c6cfd7;--gold:#825d0a;--green:#08794f;--red:#b93036;--workspace-bg:#f2f4f6;--workspace-surface:#fafbf9;--workspace-header:#fafbf9}html[data-theme=light] body{background:var(--workspace-bg)}html[data-theme=light] .card,html[data-theme=light] .signup,html[data-theme=light] .profile,html[data-theme=light] .chart-panel,html[data-theme=light] .ticker{background:var(--workspace-surface);color:var(--text)}html[data-theme=light] input,html[data-theme=light] button:not(.gold),html[data-theme=light] select{background:#eef1f4;color:var(--text)}html[data-theme=light] .gold{color:#fff;background:#825d0a}html[data-theme=light] .header{background:var(--workspace-header)}
.header{position:sticky;top:0;z-index:30;gap:18px}.header .brand{font-size:22px}.header nav{gap:16px}.workspace-layout{display:grid;grid-template-columns:190px minmax(0,1fr);width:100%;max-width:1920px;margin:auto}.workspace-layout #main{min-width:0;width:100%;max-width:none;padding:14px 18px}.workspace-sidebar{position:sticky;top:78px;height:calc(100dvh - 78px);overflow-y:auto;border-right:1px solid var(--line);padding:12px 9px;background:var(--workspace-header);font-size:12px}.workspace-sidebar details{border:0;margin:0 0 5px;padding:0}.workspace-sidebar summary{padding:11px 8px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1px;cursor:pointer}.workspace-sidebar nav{display:grid;gap:3px}.workspace-sidebar a{padding:9px 11px;border-radius:5px;display:block}.workspace-sidebar a:hover,.workspace-sidebar [aria-current=page]{background:var(--workspace-surface);color:var(--gold);box-shadow:inset 2px 0 var(--gold)}.workspace-toolbar{display:flex;gap:10px;align-items:center;padding:9px 0 13px;min-height:40px;border-bottom:1px solid var(--line);margin-bottom:12px;color:var(--muted);font-size:12px}.workspace-toolbar strong{color:var(--text);margin-right:auto}.workspace-toolbar button{padding:6px 9px;background:var(--workspace-surface);border:1px solid var(--line);border-radius:5px}.workspace-search-wrap{position:relative;flex:1;max-width:300px}.workspace-search-wrap input{width:100%;min-width:0;padding:7px 10px;background:var(--workspace-surface);border:1px solid var(--line);border-radius:5px;color:var(--text);font-size:12px}.workspace-search-results{position:absolute;top:36px;left:0;right:0;z-index:50;background:var(--workspace-header);border:1px solid var(--line);box-shadow:0 12px 35px #0005;max-height:350px;overflow:auto;padding:5px}.workspace-search-results a{display:block;padding:10px;color:var(--text);margin:0}.workspace-search-results p{padding:10px}.workspace-panel{min-height:65dvh;background:var(--workspace-bg);color:var(--text);padding:8px 0}.workspace-panel>h1{font-size:23px;margin:6px 0 18px}.workspace-panel>p{line-height:1.6;margin:12px 0;color:var(--muted);max-width:900px}.workspace-panel .button{margin-right:8px}.workspace-panel pre{overflow:auto;max-width:100%;padding:18px;background:var(--workspace-surface);border:1px solid var(--line);line-height:1.7}.workspace-frame{display:block;border:0;width:100%;height:calc(100dvh - 178px);min-height:550px;background:var(--workspace-bg)}.workspace-frame-fallback{font-size:11px;color:var(--muted)}.workspace-loading{padding:20px;color:var(--muted);background:linear-gradient(90deg,var(--workspace-bg),var(--workspace-surface),var(--workspace-bg));background-size:200% 100%;animation:workspace-pulse 1.6s ease infinite}.workspace-panel table{color:var(--text)}#workspaceMenu{display:none}.workspace-backdrop{display:none}.workspace-layout .hero{min-height:unset;padding:12px 15px;display:block;border:1px solid var(--line);margin-bottom:12px}.workspace-layout .hero h1{font-size:23px}.workspace-layout .hero p{margin:6px 0;font-size:13px}.workspace-layout .hero-art{display:none}.workspace-layout .hero .actions{margin-top:10px}.workspace-layout .scope-note{font-size:11px}.workspace-status{font-size:11px;color:var(--muted);min-height:14px}.workspace-mobile-label{display:none}.mobile-nav [aria-current=page]{color:var(--gold)}@keyframes workspace-pulse{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.workspace-loading{animation:none}}@media(min-width:1700px){.workspace-layout{grid-template-columns:210px minmax(0,1fr)}}@media(max-width:1100px){.header nav{display:none}.header .header-actions{margin-left:auto}.workspace-layout{grid-template-columns:170px minmax(0,1fr)}.workspace-layout #main{padding:12px}.workspace-search-wrap{max-width:300px}.workspace-layout .top-grid{grid-template-columns:1fr}.workspace-layout .detail-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){.header{height:54px;padding:6px 12px;gap:10px}.header .brand{font-size:21px}.workspace-search-wrap{max-width:none;flex:1}.workspace-search-wrap input{min-height:38px;font-size:12px}.header-actions #registerTop{display:none}.header-actions #loginTop{padding:8px;font-size:12px}#workspaceMenu{display:block;width:38px;height:38px;padding:0;border:1px solid var(--line);background:var(--workspace-surface);border-radius:5px}.workspace-layout{display:block}.workspace-layout #main{padding:8px 12px 75px}.workspace-sidebar{display:none;position:fixed;z-index:70;top:0;bottom:0;height:100dvh;width:270px;max-width:85vw;padding:16px 10px;background:var(--workspace-header)}.workspace-sidebar.drawer-open{display:block}.workspace-sidebar a{min-height:42px;padding:12px}.workspace-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#0009;z-index:60;border:0;border-radius:0}.workspace-toolbar{padding:5px 0 9px;gap:8px}.workspace-toolbar span{display:none}.workspace-frame{height:calc(100dvh - 175px);min-height:450px}.workspace-layout .hero{padding:12px}.workspace-layout .hero h1{font-size:22px}.workspace-layout .hero p{font-size:13px}.workspace-layout .hero .actions .outline{display:none}.workspace-layout .top-grid,.workspace-layout .detail-grid,.workspace-layout .bottom-grid{grid-template-columns:1fr}.workspace-layout .chart-panel{min-height:300px}.workspace-mobile-label{display:inline}.workspace-panel pre{font-size:11px;padding:12px}.mobile-nav{z-index:40}.workspace-layout .card h2{font-size:16px}.workspace-panel .system-heading h1{font-size:21px}}
/* QA: remove grid auto margins, bound registration steps, align light navigation. */
.workspace-layout #main{margin:0;align-self:start}.workspace-status:empty{display:none}.workspace-layout .signup .steps{gap:6px}.workspace-layout .signup .steps>span{flex:1;min-width:0;align-items:flex-start}.workspace-layout .signup .steps>span>span{min-width:0}.workspace-layout .signup .steps>span:after{display:none!important}.workspace-layout .signup .steps strong{white-space:normal;overflow-wrap:anywhere}.workspace-backdrop{background:#0009!important}html[data-theme=light] .mobile-nav{background:var(--workspace-header);color:var(--text);border-color:var(--line)}html[data-theme=light] .workspace-panel .button{background:var(--workspace-surface);color:var(--gold)}@media(max-width:760px){.workspace-panel .system-table{table-layout:fixed;width:100%}.workspace-panel .system-table td,.workspace-panel .system-table th{white-space:normal;overflow-wrap:anywhere}.workspace-panel .system-table td:first-child,.workspace-panel .system-table th:first-child{min-width:0;width:28%}.workspace-layout .signup .head>a{white-space:normal}}
