/* Shared lithic palette across the workspace, tools and embedded terminal. */
:root{--bg:#0b0b0b;--surface:#171717ed;--surface-2:#1f1f1f;--panel:#141414ed;--raised:#1f1f1f;--ink:#ececec;--text:#ececec;--muted:#b6b6b6;--dim:#9c9c9c;--line:#ff7a2f2b;--edge:#ff7a2f2b;--line-strong:#ff7a2f4d;--acid:#ff7a2f;--acid-strong:#ff7a2f;--accent:#ff7a2f;--accent-ink:#151515;--blue:#ff7a2f;--purple:#ff7a2f;--violet:#ff7a2f;--cyan:#ff7a2f;--sidebar:#101010;--sidebar-muted:#b6b6b6;--amber:#ff7a2f;--focus:#ff7a2f}
body[data-theme=rock]{background:#0b0b0b!important;color:var(--ink);isolation:isolate}
body[data-theme=rock]::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#0b0b0bed,#0b0b0bc9),url('../assets/rock-base-1920-v1.webp') center/cover no-repeat}
body[data-theme=rock] .app-shell,body[data-theme=rock] .main-column,body[data-theme=rock][data-page=home] .main-column{background:transparent}
body[data-theme=rock] .main-column::before{content:none!important}
body[data-theme=rock] .sidebar{background:#101010f2;border-color:var(--line)}
body[data-theme=rock] .topbar{background:#101010f2;border-color:var(--line);backdrop-filter:none}
body[data-theme=rock] .brand-mark{background:none;clip-path:none;color:#ff7a2f;box-shadow:none;border-radius:0}
body[data-theme=rock] .brand-mark svg{width:27px;height:27px}
body[data-theme=rock] .nav-group-label,body[data-theme=rock] .nav-count,body[data-theme=rock] .brand small,body[data-theme=rock] .sidebar-note small,body[data-theme=rock] .legal-links{color:#a3a3a3}
body[data-theme=rock] .nav-item{color:#c4c4c4}
body[data-theme=rock] .nav-item.is-active{background:#ff7a2f1c;color:#ff7a2f;box-shadow:inset 2px 0 #ff7a2f}
body[data-theme=rock] .nav-item:hover{background:#ff7a2f10;color:#f1f1f1}
body[data-theme=rock] .search-trigger{background:#1c1c1c66;border-color:var(--line);color:var(--muted)}
body[data-theme=rock] .search-trigger kbd{color:#a6a6a6;border-color:var(--line)}
body[data-theme=rock] .upgrade-btn{background:#ff7a2f19!important;border-color:#ff7a2f55!important;color:#ff7a2f!important}
body[data-theme=rock] .avatar{background:#333333;border-color:#ff7a2f55;color:#ff7a2f}
body[data-theme=rock] .icon-button{color:#c3c3c3}
body[data-theme=rock] .notification-dot,body[data-theme=rock] .status-dot{background:#ff7a2f;box-shadow:none}
body[data-theme=rock] .feedback-card{background:#14141466;border-color:var(--line)}
body[data-theme=rock] .feedback-card small{color:#ababab}
body[data-theme=rock] .feedback-card svg{color:#ff7a2f!important}
body[data-theme=rock] :is(input,select,textarea){background:#151515e6;color:var(--ink);border-color:var(--line-strong)}
body[data-theme=rock] :is(input,textarea)::placeholder{color:#9b9b9b}
body[data-theme=rock] select option{background:#1a1a1a;color:var(--ink)}
body[data-theme=rock] :is(a,button,input,select,textarea):focus-visible{outline-color:#ff7a2f}
body[data-theme=rock] :is(.research-page,.detail-layout,.atlas-home,.desk-page,.md-page){color:var(--ink)}
body[data-theme=rock] :is(.research-card,.library-card,.panel,.detail-card,.tech-route,.route-option,.cd-section,.cd-hero,.admin-panel,.admin-stat,.md-card,.md-panel,.sa-card,.sa-panel,.qs-card,.qs-panel,.atlas-controls){background:var(--surface)!important;border-color:var(--line)!important;box-shadow:none}
body[data-theme=rock] :is(.research-card,.detail-card,.library-card){border-radius:10px}
body[data-theme=rock] :is(.research-muted,.research-source,.research-page small,.library-card p,.detail-card p,.tech-route-header p,.route-option p,.page-subtitle,.atlas-pagination,.card-meta,.atlas-market,.data-row dt,.modal p,.modal-desc){color:#b1b1b1}
body[data-theme=rock] :is(.research-kicker,.modal-kicker,.atlas-access,.ticker,.data-row dd,.research-tag){color:#ff7a2f}
body[data-theme=rock] .research-kicker{letter-spacing:.1em}
body[data-theme=rock] .research-page a,body[data-theme=rock] .atlas-company-link,body[data-theme=rock] .atlas-home .deep-link{color:#ff7a2f}
body[data-theme=rock] :is(.research-nav a,.research-page button,.secondary-button,.filter-button,.pricing-tab){background:#1f1f1f;border-color:var(--line-strong);color:#d3d3d3;box-shadow:none}
body[data-theme=rock] :is(.research-nav a,.research-page button,.secondary-button,.filter-button,.pricing-tab):hover{background:#2a2a2a;border-color:#ff7a2f70;color:#eeeeee}
body[data-theme=rock] :is(.filter-button.is-active,.pricing-tab.is-active,.position-strip .current){background:#ff7a2f20;color:#ff7a2f;border-color:#ff7a2f70}
body[data-theme=rock] .primary-button{background:#ff7a2f;border-color:#ff7a2f80;color:#171717}
body[data-theme=rock] .primary-button:hover{background:#ff7a2f}
body[data-theme=rock] :is(.research-note,.access-preview-banner,.position-strip){background:#222222d9;border-color:#ff7a2f;color:#c2c2c2}
body[data-theme=rock] :is(.research-empty,.atlas-empty){background:#171717c9;border-color:#ff7a2f45;color:#c3c3c3;border-style:solid}
body[data-theme=rock] :is(.research-tag,.tag,.company-bottleneck-tags a,.company-bottleneck-tags span){background:#ff7a2f0e;border-color:#ff7a2f38;color:#ff7a2f}
body[data-theme=rock] :is(.research-table th,.company-table th,.desk-index-table th,.admin-table th){background:#212121;color:#c4c4c4;border-color:var(--line)}
body[data-theme=rock] :is(.research-table td,.company-table td,.desk-index-table td,.admin-table td,.data-row){border-color:var(--line)}
body[data-theme=rock] .company-table{background:var(--surface)}
body[data-theme=rock] .company-table tbody tr:hover{background:#ff7a2f10}
body[data-theme=rock] .tech-route-header{background:#212121;border-color:var(--line)}
body[data-theme=rock] :is(.modal,.search-panel,.account-panel){background:#1b1b1b;border-color:var(--line-strong);color:var(--ink);backdrop-filter:none}
body[data-theme=rock] .scrim{background:#050505cc;backdrop-filter:none}
body[data-theme=rock] .search-result:hover{background:#ff7a2f17}
body[data-theme=rock] .atlas-home :is(.workspace,.map,.inspector,.list-card,.meta,.detail-section,.bottom-row,.stat-card){background:#181818e6;border-color:var(--line)}
body[data-theme=rock] .atlas-home :is(.node,.company-pill,.filter,.seg){border-color:#ff7a2f38;color:#d1d1d1}
body[data-theme=rock] .atlas-home :is(.node.is-active,.node.active,.filter.active){background:#ff7a2f26;color:#ff7a2f;border-color:#ff7a2f70}
body[data-theme=rock] .atlas-home .hero{background:none}
body[data-theme=rock] :is(.bottleneck-card,.company-card,.radar-card,.news-card,.update-card,.route-card,.node-card,.stat-card,.metric-card,.intel-card){background:var(--surface);border-color:var(--line);box-shadow:none}
body[data-theme=rock] .atlas-home .node{background:#202020}
body[data-theme=rock] :is(.md-hero,.desk-ticker,.desk-page .md-card,.desk-market-grid .md-card){background:var(--surface);border-color:var(--line)}
body[data-theme=rock] :is(.md-hero h1,.md-card-title,.md-idx .name){color:var(--ink)}
body[data-theme=rock] :is(.desk-scale,.md-idx .amt,.md-idx .pe,.md-flow-row .lbl,.desk-summary .chip,.desk-page .md-card-title .tag){color:#aaaaaa}
/* Embedded K-line surface belongs to the same shell; market red/green stays semantic. */
body[data-theme=rock].technical-mode{background:#0b0b0b!important}
body[data-theme=rock] .technical-frame{background:#0b0b0b}
body[data-theme=rock] .appbar{background:#151515f2;border-color:var(--edge)}
body[data-theme=rock] :is(.watch-panel,.analysis-panel,.workspace,.trade-section,.multiframe,.method){background:#141414f0;border-color:var(--edge)}
body[data-theme=rock] :is(.toolbar,.charttools,.asidehead,.panel-heading,.watch-search,.chartfoot,.result-switch){background:#1b1b1b;border-color:var(--edge)}
body[data-theme=rock] :is(.result-switch button.active,#periods button.active,.evidence-tabs button.active){background:#ff7a2f20;color:#ff7a2f}
body[data-theme=rock] :is(.watch-list button.active,.watch-list button:hover){background:#ff7a2f16}
body[data-theme=rock] .instrument-mark{background:#292929;color:#ff7a2f}
body[data-theme=rock] .canvaswrap{background:#0b0b0b}
body[data-theme=rock] .technical-company-link{color:#ff7a2f}
@media(max-width:760px){body[data-theme=rock]::before{background-position:35% center}body[data-theme=rock] .sidebar{background:#101010}}

/* Neutral carbon surfaces; orange is reserved for actions and active states. */
:root{--bg:#090909;--surface:#151515ed;--surface-2:#202020;--panel:#121212ed;--raised:#202020;--ink:#f1f1f1;--text:#f1f1f1;--muted:#b4b4b4;--dim:#989898;--line:#ffffff1f;--edge:#ffffff1f;--line-strong:#ffffff36;--acid:#ff7a2f;--acid-strong:#eb611d;--accent:#ff7a2f;--accent-ink:#16100b;--blue:#ff7a2f;--purple:#ff7a2f;--violet:#ff7a2f;--cyan:#ff7a2f;--sidebar:#101010;--sidebar-muted:#aaa;--amber:#ff8c45;--focus:#ff9b61}
body[data-theme=rock] .page-header{background:#121212b3;border-color:#ffffff1f}
body[data-theme=rock] :is(.atlas-card-top,.card-meta,.atlas-controls label,.atlas-pagination,.atlas-market,.company-table small){color:#aaa}
body[data-theme=rock] :is(.library-card p,.detail-card p,.research-muted,.research-source,.research-page small){color:#b8b8b8}
body[data-theme=rock] :is(.atlas-access,.research-tag,.tag,.company-bottleneck-tags a,.company-bottleneck-tags span){color:#ccc;background:#ffffff06;border-color:#ffffff26}
body[data-theme=rock] .nav-item.is-active{color:#ff995b;background:#ff7a2f13;box-shadow:inset 2px 0 #ff7a2f}
body[data-theme=rock] :is(.filter-button.is-active,.pricing-tab.is-active,.position-strip .current){background:#ff7a2f18;color:#ffad7a;border-color:#ff7a2f66}
body[data-theme=rock] .upgrade-btn{background:#ff7a2f12!important;border-color:#ff7a2f55!important;color:#ffa46c!important}
body[data-theme=rock] .primary-button{background:#ff7a2f;border-color:#ff965c;color:#1b100a}
body[data-theme=rock] .primary-button:hover{background:#ff9254}
body[data-theme=rock] .research-page a{color:#ffad7a}
body[data-theme=rock] .library-card:hover{border-color:#ff7a2f80!important}
body[data-theme=rock] .atlas-home .node{background:#202020}
body[data-theme=rock] .brand-mark{color:#ff8b49}

/* Page-specific states, including inline sector accents and legacy radar. */
body[data-theme=rock] .atlas-home .sector{--accent:#ff7a2f!important;background:linear-gradient(145deg,#1b1b1b,#111);border-color:#ffffff24}
body[data-theme=rock] .atlas-home .sector.chosen{border-color:#ff7a2f88}
body[data-theme=rock] .atlas-home :is(.tab[aria-selected=true],.filter[aria-pressed=true]){background:#ff7a2f18;border-color:#ff7a2f66;color:#ffad7a}
body[data-theme=rock] .atlas-home :is(.art-label,.lighting select,.searchbox){background:#141414cc;border-color:#ffffff26;color:#c5c5c5}
body[data-theme=rock] .atlas-home :is(.lead,.more,.query-status,.detail-category){color:#b5b5b5}
body[data-theme=rock] .atlas-home .dot{background:#ff7a2f;box-shadow:0 0 9px #ff7a2f44}
body[data-theme=rock] .atlas-home .deep-link{background:#ff7a2f0c;border-color:#ff7a2f55;color:#ff9b61}
body[data-theme=rock] :is(.research-toplink,.eyebrow,.section-heading>span,.update-date){color:#b6b6b6;border-color:#ffffff24}
body[data-theme=rock] :is(.update-item,.radar-news-item,.radar-subscription-panel,.radar-detail-section){background:#151515ed;border-color:#ffffff24}
body[data-theme=rock] :is(.radar-tabs button.is-active,.radar-empty svg,.radar-locked>span){color:#ff9b61;border-color:#ff7a2f}
body[data-theme=rock] .radar-subscription.is-selected{background:#ff7a2f12;border-color:#ff7a2f66}
body[data-theme=rock] .radar-subscription.is-selected .subscription-check{background:#ff7a2f;border-color:#ff7a2f;color:#111}
body[data-theme=rock] :is(.source-tier,.source-tier.is-t1,.radar-score){background:#232323;border-color:#ffffff30;color:#d0d0d0}
body[data-theme=rock] .radar-filters button.is-active span{color:#ffad7a;background:#ff7a2f18;border-color:#ff7a2f66}
/* One continuous hero surface; a quiet graphite chip, not an orange spotlight. */
body[data-theme=rock] .atlas-home::before{content:none!important}
body[data-theme=rock] .atlas-home .hero{background:transparent!important;min-height:270px;gap:48px;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr)}
body[data-theme=rock] .atlas-home .hero-copy{padding:28px 0 32px}
body[data-theme=rock] .atlas-home .lead{display:none}
body[data-theme=rock] .atlas-home .hero h1{font-size:clamp(30px,2.5vw,42px);line-height:1.3;letter-spacing:-.04em;font-weight:500}
body[data-theme=rock] .atlas-home .hero-copy>p{margin-top:18px;max-width:46ch;line-height:1.85;color:#b6b6b6}
body[data-theme=rock] .atlas-home .meta{background:transparent!important;border:0;padding:0;gap:24px;margin-top:25px;color:#999;flex-wrap:wrap}
body[data-theme=rock] .atlas-home .meta strong{font-size:16px;color:#d9d9d9}
body[data-theme=rock] .atlas-home .meta span:last-child{border-color:#ffffff20}
body[data-theme=rock] .atlas-home .sculpture{height:240px;overflow:visible}
body[data-theme=rock] .atlas-home .sculpture::before{content:none}
body[data-theme=rock] .atlas-home .wafer{background:linear-gradient(145deg,#282828,#101010 75%);border-color:#8f6b5366;box-shadow:0 1px 0 #ffffff22,0 4px 0 #141414,0 5px 0 #ff7a2f55}
body[data-theme=rock] .atlas-home .wafer:last-child{background:linear-gradient(145deg,#44403c,#1b1b1b 30%,#131313 70%,#4a3426);box-shadow:0 1px 0 #ffffff30,0 4px 0 #161616,0 5px 0 #ff7a2f80}
body[data-theme=rock] .atlas-home .wafer::before{border-color:#ffffff18;background:repeating-linear-gradient(90deg,transparent 0 13px,#ffffff08 14px 15px),repeating-linear-gradient(0deg,transparent 0 13px,#ffffff08 14px 15px)}
body[data-theme=rock] .atlas-home .die{background:linear-gradient(145deg,#343434,#141414);border-color:#b29a8280;color:#ddd;letter-spacing:2px;box-shadow:none}
body[data-theme=rock] .atlas-home .art-label{display:none}
body[data-theme=rock] .atlas-home .art-line{opacity:.25}
@media(max-width:850px){body[data-theme=rock] .atlas-home .hero{grid-template-columns:1fr;gap:0;min-height:0}body[data-theme=rock] .atlas-home .sculpture{display:none}body[data-theme=rock] .atlas-home .hero-copy{padding:28px 0}}

@media(max-width:760px){body[data-theme=rock]::before{background-image:linear-gradient(90deg,#090909ed,#090909c9),url('../assets/rock-base-960-v1.webp')}}

body[data-theme=rock] .brand strong{letter-spacing:.1em;font-family:"Segoe UI",Arial,sans-serif;font-weight:650}
