/* Ruction Elements Cloud 0.2.55 — comprehensive graphite + Ruction blue system.
 * Deliberately scoped to the Cloud app, leaving branding assets, functional status
 * colors and charts intact. This file MUST remain the final stylesheet. */
#appShell{
 --re-black:#070809;--re-blue:#00abe7;--re-radius:14px;
 --re-status-green:#1cbe91;
 --re-panel:#ffffff;--re-panel-2:#f3f4f5;--re-field:#ffffff;
 --re-line:#e2e5e8;--re-ink:#141619;--re-muted:#65707a;
 --re-focus:#e8f7fd;
 --v09-bg:#f3f4f5;--v09-panel:var(--re-panel);--v09-panel-2:var(--re-panel-2);
 --v09-ink:var(--re-ink);--v09-muted:var(--re-muted);--v09-line:var(--re-line);
 --v09-blue:#008ec3;--v09-blue-soft:var(--re-focus);
 --surface:var(--re-panel);--text:var(--re-ink);--border:var(--re-line);
 --card-bg:var(--re-panel);--border-color:var(--re-line);
 --text-color:var(--re-ink);--input-bg:var(--re-field);--muted-color:var(--re-muted);
}
#appShell[data-theme="dark"]{
 --re-panel:#1b1d1f;--re-panel-2:#282a2d;--re-field:#232629;
 --re-line:#393d41;--re-ink:#f5f6f8;--re-muted:#b0b7be;
 --re-focus:#24343b;
 --v09-bg:#08090a;--v09-panel:var(--re-panel);--v09-panel-2:var(--re-panel-2);
 --v09-ink:var(--re-ink);--v09-muted:var(--re-muted);--v09-line:var(--re-line);
 --v09-blue:#36caff;--v09-blue-soft:var(--re-focus);
 color:var(--re-ink)!important;background:#08090a!important;
}
/* Main page backgrounds; black fixed navigation continues unchanged. */
#appShell[data-theme="dark"] :is(.workspace,.workspace-main,.content-view){background:#08090a!important;color:var(--re-ink)!important}
/* Universal panels on all workspace and owner pages. */
#appShell :is(.panel,.premium-card,.premium-kpi,.v09-kpi,.v09-coming-panel,.analytics-chart-card,
 .commerce-evidence-panel,.business-card,.release-panel,.owner-detail-card,.owner-panel,
 .site-card,.google-data-panel,.google-integration-panel,.history-group,.site-panel,
 .impact-panel,.seo-evidence-card,.v09-channel-option,.premium-traffic-card){
 border-radius:var(--re-radius)!important;box-shadow:none!important;
}
#appShell[data-theme="dark"] :is(.panel,.premium-card,.premium-kpi,.v09-kpi,.v09-coming-panel,
 .analytics-chart-card,.commerce-evidence-panel,.business-card,.release-panel,.owner-detail-card,
 .owner-panel,.site-card,.google-data-panel,.google-integration-panel,.history-group,
 .site-panel,.impact-panel,.seo-evidence-card,.premium-traffic-card,
 .ci-hero,.premium-insights,.history-heading,.release-columns>.release-panel){
 background:var(--re-panel)!important;color:var(--re-ink)!important;
 border-color:var(--re-line)!important;
}
/* Every sub-card and repeated content row must use graphite, never navy. */
#appShell[data-theme="dark"] :is(.ci-summary-item,.ci-event-card,.insight-data,.insight-unit,
 .premium-channel-row,.premium-chart-tooltip,.premium-chart-well,.premium-search-chart,
 .premium-keywords-table,.premium-keywords-table th,.premium-keywords-table td,
 .seo-table th,.seo-table td,.seo-table tbody tr,.seo-table-scroll,.seo-table-tools input,
 .seo-table-tools select,.winning-row,.premium-tab,.premium-chart-select,
 .history-controls,.history-group-events,.history-session-events,.history-session,
 .history-heading-session,.history-session,.history-load-more,.history-heading-count,
 .change-row,.impact-event,.impact-metric,.impact-editor-row,.impact-editor-event,
 .impact-summary,.impact-note,.impact-ai-summary,.google-note,.google-metrics article,
 .business-metric,.business-goal,.release-row,.release-suggest,.release-event,
 .release-focus,.release-warning,.owner-metrics>div,.owner-detail-kv,.owner-site-row,
 .owner-storage-row,.owner-table th,.owner-table td,.owner-table tbody tr:nth-child(even),
 .v09-mini-label,.v09-channel-brand,.timeline-notes-drawer,.timeline-note-row,
 .timeline-option,.timeline-marker-label,.timeline-note-dialog,.timeline-event-detail,
 .timeline-chart-subbar select,.multi-series-toggles label,.chart-shape-toggle select,
 .empty-state,.diff,.site-card,.v09-integration-grid .v09-coming-panel,
 .seo-evidence-summary,.woo-summary,.woo-currency-list li,.woo-orders-detail,
 .woo-orders-table th,.woo-orders-table td,.woo-orders-table tbody tr:nth-child(even) td,
 .woo-sync-progress,.v09-kpi-row .v09-kpi,.premium-insight-foot,.google-property-form){
 background:var(--re-panel-2)!important;color:var(--re-ink)!important;
 border-color:var(--re-line)!important;box-shadow:none!important;
}
#appShell[data-theme="dark"] :is(.premium-chart-well,.premium-search-chart,.premium-traffic-card .chart-empty,
 .live-chart,.spark-chart,.analytics-chart-card .spark-chart){background:var(--re-panel)!important}
#appShell[data-theme="dark"] :is(.change-row:hover,.change-row.selected,
 .history-heading:hover,.premium-channel-row:hover,.impact-event:hover,
 .ci-event-card:hover,.release-row:hover){background:#303337!important;border-color:#00abe7!important}
#appShell[data-theme="dark"] :is(.history-group-events .change-row,.history-session-events .change-row,
 .premium-recent-card .change-row,.impact-first-view .premium-recent-card .change-row){
 background:#272a2d!important;border-color:var(--re-line)!important;color:var(--re-ink)!important}
#appShell[data-theme="dark"] :is(.history-group-events .change-row.selected,
 .history-session-events .change-row.selected,.premium-recent-card .change-row.selected){
 background:#30373b!important;border-color:var(--re-blue)!important}
/* Uniform form controls for business outcomes, releases, reports and admin. */
#appShell[data-theme="dark"] :is(input,select,textarea,.search-box,.history-control input,
 .history-control select,.google-property-form select,.release-form input,.release-form textarea,
 .release-form select,.business-card select,.owner-filter input,.owner-filter select,
 .seo-table-tools input,.seo-table-tools select,.woocommerce-select,.chart-controls select){
 background:var(--re-field)!important;color:var(--re-ink)!important;
 border-color:var(--re-line)!important;border-radius:10px!important}
#appShell[data-theme="dark"] :is(input,textarea)::placeholder{color:#959fa8!important}
#appShell[data-theme="dark"] .page-top :is(input,select){background:transparent!important;border:0!important;color:#f6f6f7!important}
#appShell[data-theme="dark"] :is(.section-head p,.history-heading-meta,.change-url,.change-date,
 .kpi-subtle,.premium-channel-meta small,.business-muted,.business-small,.release-note,
 .card-data-note,.seo-mini-caption,.detail-url,.owner-subtle,.fineprint,.woo-summary-note,
 .woocommerce-small,.impact-summary,.timeline-chart-caption,.timeline-chart-caption span,
 .woo-orders-empty,.woo-order-count,.v09-disclaimer,.premium-chart-bottom,.premium-chart-bottom .data-note){
 color:var(--re-muted)!important}
#appShell[data-theme="dark"] :is(h1,h2,h3,.premium-card-heading h2,.history-heading-title,
 .change-title,.premium-channel-meta strong,.kpi-info strong,.woo-detail-heading h3,
 .woo-summary strong,.v09-kpi strong,.business-card h2,.release-panel h2){color:var(--re-ink)!important}
/* Interactive accents: bright Ruction blue. Status indicators retain their semantic colors. */
#appShell :is(.primary,.google-action,.ci-primary-button,.timeline-add-note,
 .woo-actions #wooSync,.premium-tab.active,.owner-blue-btn){
 background:#00abe7!important;border-color:#00abe7!important;color:#071116!important;
 box-shadow:none!important;border-radius:10px!important}
#appShell[data-theme="dark"] :is(.outline-button,.icon-small,.ci-outline-button,
 .timeline-manage-notes,.woo-actions #wooRefresh,.comparison-toggle,
 .history-load-more,.chart-controls select,.release-tools select,.premium-tab){
 background:var(--re-field)!important;border-color:var(--re-line)!important;
 color:var(--re-ink)!important;border-radius:10px!important}
#appShell :is(.primary,.google-action,.ci-primary-button,.woo-action,.outline-button,button,select):focus-visible{
 outline:2px solid var(--re-blue)!important;outline-offset:2px}
#appShell[data-theme="dark"] .woo-actions .woo-danger{background:#302326!important;border-color:#74464c!important;color:#ffbdc0!important}
#appShell[data-theme="dark"] .woo-orders-table tbody tr:nth-child(even) td{background:#303236!important}
#appShell[data-theme="dark"] .woo-orders-table th{background:#323438!important;color:#e9edf0!important}
#appShell[data-theme="dark"] .woo-orders-table td{background:#25282a!important;color:#eef0f2!important}
#appShell[data-theme="dark"] :is(.type-pill,.ci-type-mark,.timeline-marker-label,
 .v09-mini-label,.history-heading-count,.integration-chip){background:#30363a!important;border-color:#3f4e55!important;color:#76dcff!important}
#appShell[data-theme="dark"] .timeline-marker-icon{background:#202c30!important;border-color:#00abe7!important;color:#74deff!important}
/* Graph axes are gray in both themes; no navy on plot text or grid. */
#appShell[data-theme="dark"] :is(.premium-chart-well,.premium-search-chart,.spark-chart) svg text{fill:#c4c9cf!important}
#appShell[data-theme="dark"] :is(.premium-chart-well,.premium-search-chart,.spark-chart) svg line:not([stroke-dasharray]){stroke:#45484c!important}
#appShell[data-theme="light"] .premium-chart-well svg text{fill:#6e7983!important}
/* Explicit, stable chart states and compact dates. */
#appShell .impact-first-view .premium-chart-well{position:relative!important}
#appShell .impact-first-view .premium-chart-well .premium-empty:not([hidden]){
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:24px!important;box-sizing:border-box!important;text-align:center!important;
 color:var(--re-muted)!important;font-size:13px!important;line-height:1.6!important;
 background:var(--re-panel)!important}
#appShell .impact-first-view .premium-chart-well .live-chart[hidden],
#appShell .impact-first-view .premium-chart-well .premium-empty[hidden]{display:none!important}
#appShell .impact-first-view .premium-chart-well svg text{font-size:11px!important;font-weight:500!important;letter-spacing:0!important}
#appShell .chart-loading-status{position:absolute;right:12px;top:12px;z-index:12;
 font-size:12px;font-weight:700;color:var(--re-ink);background:var(--re-panel-2);
 padding:9px 13px;border:1px solid var(--re-line);border-radius:10px;
 max-width:min(430px,90%);box-shadow:0 2px 7px #0001}
#appShell .chart-loading-status[hidden]{display:none!important}
/* Keep the approved black shell and neutral top controls in both themes. */
#appShell .page-top{background:#050607!important;border-color:#292c2f!important}
#appShell .page-top .top-controls :is(.control-field,.reporting-focus-control,.owner-customer-wrap),
#appShell .page-top :is(.premium-signout,.theme-toggle){background:#181a1c!important;border-color:#363a3e!important;color:#f6f7f8!important}
#appShell .page-top :is(.top-control-secondary,.reporting-focus-caption){color:#b7c3cc!important}
#appShell .page-top .top-controls :is(.control-field,.reporting-focus-control,.owner-customer-wrap),
#appShell .page-top :is(.premium-signout,.theme-toggle){height:48px!important;min-height:48px!important;max-height:48px!important;border-radius:10px!important}
@media(max-width:850px){#appShell .chart-loading-status{left:10px;right:10px;max-width:none}}

/* Visual hierarchy: neutral icon backgrounds, no arbitrary purple/orange panels. */
#appShell[data-theme="dark"] :is(.v09-icon.violet,.kpi-symbol.purple,.kpi-symbol.orange,
 .v09-icon.blue,.v09-icon.mint,.kpi-symbol.blue,.mini-series){
 background:#303337!important;color:#56d2ff!important}
#appShell[data-theme="light"] :is(.v09-icon.violet,.kpi-symbol.purple,.kpi-symbol.orange){
 background:#e7f7fd!important;color:#008bbf!important}
#appShell[data-theme="dark"] .timeline-chart-caption{background:transparent!important}
#appShell[data-theme="dark"] .ci-hero-footer{border-color:var(--re-line)!important}
