/* Ruction Elements v0.2.44 · branded design tokens, compact controls, annotated chart */
#appShell { --rc-radius-panel:16px; --rc-radius-card:12px; --rc-radius-control:10px; --rc-border-dark:#203449; --rc-black:#050608; --rc-surface:#0e1a28; --rc-surface-alt:#122336; --rc-cyan:#20c3e9; }
#appShell[data-theme="dark"],#appShell[data-theme="dark"] .workspace {--v09-bg:#050608;--v09-panel:#101e2e;--v09-panel-2:#0b1725;--v09-line:#273e52;--v09-shadow:none;background:#050608!important}
#appShell[data-theme="dark"] .workspace-main {background:#050608!important}
#appShell[data-theme="dark"] .sidebar{background:#040507!important;box-shadow:none!important}
#appShell[data-theme="dark"] .impact-first-view .ci-hero {background:#0b1928!important;border-color:#274960!important;border-top:2px solid #20c3e9!important;box-shadow:none!important}
#appShell[data-theme="dark"] .impact-first-view .ci-hero::before{display:none!important}
#appShell[data-theme="dark"] .impact-first-view .ci-summary-item,#appShell[data-theme="dark"] .impact-first-view .ci-event-card{background:#12263a!important}
#appShell[data-theme="dark"] .premium-v08-view .premium-card,#appShell[data-theme="dark"] .premium-v08-view .premium-kpi,#appShell[data-theme="dark"] .panel{box-shadow:none!important}
/* One radius system on every dashboard section and supporting route. */
#appShell :is(.page-top,.panel,.premium-card,.premium-kpi,.v09-kpi,.ci-hero,.site-card,.history-group,.analytics-chart-card,.v09-coming-panel,.premium-insights,.owner-detail,.google-data-panel) {border-radius:var(--rc-radius-panel)!important}
#appShell :is(.ci-summary-item,.ci-event-card,.change-row,.insight-unit,.premium-channel-row,.v09-mini-head,.site-card > svg) {border-radius:var(--rc-radius-card)!important}
#appShell :is(button,input,select,textarea,.control-field,.owner-customer-wrap,.theme-toggle,.premium-signout,.outline-button,.primary,.google-action){border-radius:var(--rc-radius-control)}
#appShell .page-top {position:sticky!important;top:0;z-index:38;box-shadow:0 8px 25px #0006!important;backdrop-filter:none;background:var(--v09-panel)!important;min-height:74px;padding:12px 17px;}
#appShell .top-controls {max-width:none!important;gap:8px;min-width:0;flex-wrap:nowrap!important}
#appShell .top-controls .control-field,#appShell .top-controls .owner-customer-wrap,#appShell .premium-signout,#appShell .theme-toggle{height:52px!important;min-height:52px;box-sizing:border-box;border-radius:var(--rc-radius-control)!important;align-self:center;margin:0!important}
#appShell .top-controls .website-picker{width:244px!important;min-width:204px}
#appShell .top-controls .date-control{width:204px!important;min-width:178px}
#appShell .top-controls .owner-customer-wrap{width:183px!important;max-width:183px!important}
#appShell .premium-signout{width:52px!important;min-width:52px;flex-basis:52px!important}
#appShell .theme-toggle{min-width:80px!important;padding:0 10px!important}
#appShell .website-picker::after,#appShell .date-control::after,#appShell .owner-customer-wrap::after {content:'⌄';position:absolute;right:12px;top:50%;transform:translateY(-55%);color:#7fe4fc;pointer-events:none;font-size:20px;font-weight:700;line-height:1;z-index:1}
#appShell .owner-customer-wrap{position:relative}
#appShell .top-controls .owner-customer-wrap select{padding-right:20px!important;appearance:none}
#appShell .website-picker .top-control-primary,#appShell .date-control .top-control-primary{padding-right:17px}
#appShell .top-controls .website-picker select,#appShell .top-controls .date-control select{z-index:3!important}
#appShell[data-theme="dark"] .theme-toggle{color:#dbeeff!important}
#appShell .premium-v08-view .premium-traffic-card{overflow:visible;min-height:485px!important}
#appShell .impact-first-view .premium-chart-well{height:340px!important;overflow:visible!important;padding:0;margin:4px 0 0!important}
#appShell .impact-first-view .premium-chart-well .live-chart,#appShell .impact-first-view .premium-chart-well .live-chart svg{height:340px!important;min-height:0!important;max-height:none!important}
#appShell .premium-chart-tooltip.timeline-hover-tooltip{z-index:10;background:#15283b!important;border:1px solid #3a647d!important;color:#edfaff!important;min-width:190px;pointer-events:none}
#appShell .premium-chart-tooltip.timeline-hover-tooltip strong{color:#90e5fa!important}
#appShell .premium-chart-tooltip.timeline-hover-tooltip .timeline-tooltip-events{font-size:12px;color:#ffcf8e}
#appShell .timeline-options{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
#appShell .timeline-option{display:inline-flex;gap:6px;align-items:center;border:1px solid #345067;padding:7px 10px;border-radius:10px;background:#122b40;color:#d8edf9;font-weight:650;font-size:12px;white-space:nowrap;cursor:pointer}
#appShell .timeline-option input{accent-color:#10b8d9}
#appShell .timeline-auto-icon{color:#6bd8f3}
#appShell .timeline-manual-icon{color:#f4c47b}
#appShell .chart-custom-options{gap:7px}
#appShell .timeline-chart-subbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:2px 0 4px}
#appShell .timeline-chart-subbar label{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--v09-muted);font-weight:650}
#appShell .timeline-chart-subbar select{border:1px solid var(--v09-line);color:var(--v09-ink);background:var(--v09-panel-2);height:35px;padding:5px 7px;border-radius:var(--rc-radius-control)}
#appShell .timeline-chart-subbar input{accent-color:#0bb4ec}
#appShell .timeline-add-note{background:#04a9db;color:#021320;font-size:13px;font-weight:800;border:1px solid #27c7f0;border-radius:var(--rc-radius-control)!important;min-height:36px;padding:7px 15px;cursor:pointer}
#appShell .timeline-add-note:hover{background:#60dcfa}
#appShell .live-chart .timeline-marker{position:absolute;z-index:6;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;border:0;background:none;padding:0;cursor:pointer;white-space:nowrap;gap:4px;color:#eaf8ff}
#appShell .timeline-marker-icon{width:25px;height:25px;min-width:25px;display:grid;place-items:center;background:#0d4e65;border:1px solid #60e0fb;border-radius:9px;box-shadow:0 3px 10px #0009;font-size:14px;line-height:1}
#appShell .timeline-marker.is-manual .timeline-marker-icon{background:#674418;border-color:#f8c678;color:#ffe2a1}
#appShell .timeline-marker-label{font-size:10px;padding:3px 7px;border:1px solid #3e6d84;border-radius:6px;background:#12293b;color:#d0e9f5;max-width:140px;overflow:hidden;text-overflow:ellipsis;box-shadow:0 2px 5px #0007}
#appShell .timeline-marker:hover .timeline-marker-icon,#appShell .timeline-marker:focus-visible .timeline-marker-icon{transform:translateY(-2px);box-shadow:0 0 0 3px #43d3fa48}
#appShell .timeline-event-detail{padding:10px 13px;margin:7px 0;border:1px solid #2c677f;border-radius:var(--rc-radius-card);background:#0b2636;color:#e9f8ff}
#appShell .timeline-event-detail[hidden]{display:none!important}
#appShell .timeline-detail-head{display:flex;justify-content:space-between;gap:8px;font-size:14px;flex-wrap:wrap}
#appShell .timeline-detail-head span,#appShell .timeline-event-detail small{font-size:11px;color:#9bbacd}
#appShell .timeline-event-detail p{font-size:12px;color:#c9e0ec;margin:7px 0}
#appShell .timeline-small-action{font-size:12px;color:#6fe0ff;background:transparent;border:1px solid #315e73;padding:4px 10px;margin:4px 8px 4px 0;cursor:pointer}
#appShell .timeline-chart-caption{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;color:var(--v09-muted);font-size:11px;padding:6px 0}
#appShell .timeline-chart-caption #timelineMarkerCount{color:#7dd4f0}
#appShell .timeline-notes-list{display:flex;flex-wrap:wrap;gap:7px;margin:3px 0}
#appShell .timeline-note-row{background:#162b3b;color:#cde8f4;border:1px solid #2d5266;border-radius:var(--rc-radius-control);font-size:11px;padding:5px 9px;cursor:pointer}
#appShell .timeline-note-row:hover{background:#22435a}
#appShell .timeline-note-status{font-size:11px;color:#a1b7cc}
#appShell .impact-first-view .premium-chart-bottom{margin-top:12px!important;padding-top:12px!important}
#appShell .impact-first-view .multi-series-toggles label{background:#122539!important;color:#dff3fd!important;border-color:#36576d!important;font-size:12px!important;border-radius:var(--rc-radius-control)!important}
#appShell .impact-first-view .multi-series-toggles label:has(input:checked){border-color:#2e9ec3!important;background:#12354a!important}
#appShell .impact-first-view .multi-series-toggles label:has([data-series="clicks"]:checked){border-color:#8560d9!important;background:#2b224a!important}
#appShell .impact-first-view .multi-series-toggles label:has([data-series="impressions"]:checked){border-color:#13a78a!important;background:#143e36!important}
#appShell .impact-first-view .multi-series-toggles input{vertical-align:middle!important}
#appShell .impact-first-view .premium-chart-well svg text{font-family:inherit!important;font-size:12px!important}
.timeline-note-dialog{border:1px solid #315c74;border-radius:16px;background:#101f30;color:#e9f7ff;max-width:min(510px,calc(100vw - 20px));width:100%;padding:0;box-shadow:0 26px 95px #000b}
.timeline-note-dialog::backdrop{background:#000b}
.timeline-note-form{padding:25px;display:grid;gap:15px}
.timeline-note-form .timeline-dialog-head h2{font-size:22px;color:#fff;margin:0 0 5px}
.timeline-note-form .timeline-dialog-head p{font-size:13px;color:#a9c1d3;line-height:1.5;margin:0}
.timeline-note-form label{display:grid;gap:6px;font-size:12px;font-weight:720;color:#c8e0ee}
.timeline-note-form :is(input,textarea,select){width:100%;background:#081724;color:#ecf8ff;border:1px solid #36566f;border-radius:10px;padding:10px;font:inherit;box-sizing:border-box}
.timeline-dialog-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.timeline-dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px}
.timeline-dialog-actions span{flex:1}
.timeline-dialog-actions button{min-height:38px;padding:8px 13px;cursor:pointer;border-radius:10px}
.timeline-dialog-actions #timelineNoteCancel{background:#24374c;color:#e9f7ff;border:1px solid #42627c}
.timeline-dialog-actions .timeline-danger{background:#4c1c25;color:#ffb9bf;border:1px solid #993c4b}
#timelineNoteError{color:#ffb2bb;font-size:12px;margin:0}
@media(max-width:1270px){#appShell .page-top{align-items:flex-start;flex-wrap:wrap}#appShell .page-header-title{flex:1 1 100%}#appShell .top-controls{max-width:100%!important;flex:1 1 auto}}
@media(max-width:880px){#appShell .page-top{position:sticky}#appShell .top-controls{flex-wrap:wrap!important}#appShell .top-controls .website-picker,#appShell .top-controls .date-control{flex:1 1 180px}#appShell .impact-first-view .premium-chart-well{height:300px!important}#appShell .impact-first-view .premium-chart-well .live-chart,#appShell .impact-first-view .premium-chart-well svg{height:300px!important}.timeline-marker-label{display:none!important}}
@media(max-width:520px){.timeline-dialog-fields{grid-template-columns:1fr}#appShell .timeline-chart-subbar{justify-content:flex-start}}
