/* Local proposal R4: data-first analytics composition, not the former glow-area skin. */
body.r4-studio .r4-analytics,body.r4-studio .r4-analytics button,body.r4-studio .r4-analytics input,body.r4-studio .r4-analytics select{font-family:Inter,"Segoe UI",Arial,sans-serif!important}
body.r4-studio .r4-chart .r4-axis-label{font-size:14px}
body.r4-studio .r4-chart .r4-bar-value{font-size:16px}
body.r4-studio .r4-overview .detail-card,body.r4-studio .r4-source-rail .detail-card{box-shadow:none!important}
@media(max-width:1280px){body.r4-studio .r3-global-search{display:none!important}}
body.r4-studio #app-shell>.sidebar>.brand{height:126px!important;min-height:126px!important;padding:0!important;overflow:hidden;justify-content:center}
html body.r4-studio #app-shell .sidebar .sidebar-brand-logo{width:224px!important;height:224px!important;min-width:224px!important;min-height:224px!important;max-width:none!important;max-height:none!important;flex:0 0 224px;object-fit:contain!important;filter:none!important;transform:none!important}
body.r4-studio .bridge-search{margin-top:16px!important}
body.r4-studio .topbar{grid-template-columns:minmax(240px,1fr) 260px auto!important;gap:22px}
body.r4-studio .topbar>div:first-of-type{order:1}body.r4-studio .r3-global-search{order:2}body.r4-studio .top-actions{order:3}
body.r4-studio .topbar h1{font-size:23px!important;letter-spacing:-.035em!important}
body.r4-studio .r4-analytics>.panel-head{border:0!important;background:transparent!important;padding:0 0 12px!important;margin:0!important;border-radius:0!important}
body.r4-studio .r4-analytics>.panel-head h2{font-size:14px!important}body.r4-studio .r4-analytics>.panel-head p{font-size:10px!important;max-width:960px;line-height:1.6}
body.r4-studio .r4-analytics .history-controls{background:var(--r3-raised)!important;border-radius:12px!important;padding:12px!important;gap:10px!important}
.r4-overview{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:0;margin-bottom:22px;border-top:1px solid var(--r3-line);border-bottom:1px solid var(--r3-line)}
body.r4-studio .r4-overview .detail-card{border:0!important;border-radius:0!important;background:transparent!important;padding:18px 24px!important;min-height:114px;border-left:1px solid var(--r3-line)!important}
body.r4-studio .r4-overview .detail-card:first-child{border-left:0!important;padding-left:4px!important}
body.r4-studio .r4-overview .detail-card small{font-size:9px!important;letter-spacing:.1em}
body.r4-studio .r4-overview .detail-card strong{display:block;font-size:22px!important;line-height:1.25!important;letter-spacing:-.025em;margin-top:8px;overflow-wrap:anywhere}
body.r4-studio .r4-overview .detail-card:first-child strong{font-size:36px!important;font-weight:650!important;letter-spacing:-.05em}
body.r4-studio .r4-overview .detail-card p{font-size:10px!important;color:var(--r3-muted)!important;margin:7px 0 0!important;line-height:1.5}
.r4-analytics-workspace{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:20px;align-items:start}
body.r4-studio .r4-analytics-workspace>.statistics-history{margin:0!important;padding:0!important;background:var(--r3-surface)!important}
body.r4-studio .r4-analytics-workspace>.speed-layout{display:grid!important;grid-template-columns:1fr!important;gap:20px!important;padding:0!important}
body.r4-studio .r4-analytics-workspace .subpanel{padding:0!important;margin:0!important;box-shadow:none!important}
body.r4-studio .r4-analytics-workspace .subpanel-head{align-items:flex-start;padding:18px 20px!important}
body.r4-studio .r4-analytics-workspace .subpanel-head h3{font-size:15px!important;letter-spacing:-.025em}
body.r4-studio .r4-analytics-workspace .subpanel-head span{max-width:360px;font-size:9px!important;line-height:1.5;text-align:right}
.r4-source-rail{display:grid;gap:0;border:1px solid var(--r3-line);border-radius:12px;background:var(--r3-raised);padding:18px;min-width:0}
.r4-source-rail header{padding-bottom:17px;border-bottom:1px solid var(--r3-line)}.r4-rail-kicker{font-size:8px;letter-spacing:.12em;font-weight:800;color:var(--r3-cyan)}.r4-source-rail h3{font-size:15px;margin:9px 0 5px;color:var(--r3-text)}.r4-source-rail header p{font-size:10px;margin:0;color:var(--r3-muted)}
body.r4-studio .r4-source-rail .detail-card{border:0!important;border-bottom:1px solid var(--r3-line)!important;border-radius:0!important;background:transparent!important;padding:15px 0!important}
body.r4-studio .r4-source-rail .detail-card strong{display:block;font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere;margin-top:6px}
body.r4-studio .r4-source-rail .detail-card small{font-size:8px!important;letter-spacing:.08em}body.r4-studio .r4-source-rail .detail-card p{font-size:10px!important;line-height:1.6;color:var(--r3-muted)!important;margin:6px 0 0}
.r4-source-contract{margin-top:14px;color:var(--r3-muted);font-size:10px;line-height:1.7}.r4-source-contract summary{cursor:pointer;font-weight:700;color:var(--r3-text)}body.r4-studio .r4-source-contract .danger-note{padding:0!important;margin:10px 0 0!important;background:transparent!important;color:var(--r3-muted)!important;border:0!important;font-size:10px!important}
.r4-chart{padding:0;background:var(--r3-surface);min-width:0;position:relative}.r4-chart-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px 4px}.r4-chart-toolbar>span{color:var(--r3-muted);font-size:10px;white-space:nowrap}.r4-chart-toolbar b{color:var(--r3-faint);font-weight:400}
.r4-model-switch{display:flex;padding:3px;gap:2px;border:1px solid var(--r3-line);border-radius:10px;background:var(--r3-bg)}.r4-model-switch button{display:flex;align-items:center;gap:6px;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--r3-muted)!important;min-height:35px!important;padding:0 11px!important;font-size:10px!important;font-weight:600;cursor:pointer;white-space:nowrap}.r4-model-switch button[aria-pressed=true]{background:var(--r3-soft)!important;color:var(--r3-text)!important;box-shadow:0 2px 6px #0002}.r4-model-switch svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}
.r4-chart-legend{display:flex;gap:14px;flex-wrap:wrap;align-items:center;padding:13px 20px 20px;color:var(--r3-muted);font-size:9px}.r4-chart-legend button,.r4-chart-legend>span{display:inline-flex;align-items:center;gap:6px;background:none!important;border:0!important;padding:2px 0!important;min-height:26px!important;color:var(--r3-muted)!important;font-size:9px!important}.r4-chart-legend button{cursor:pointer}.r4-chart-legend button[aria-pressed=false]{opacity:.35;text-decoration:line-through}.r4-chart-legend i{width:9px;height:9px;border-radius:2px;display:inline-block}.r4-chart-legend i.is-provisional{background:var(--r3-amber)}.r4-chart-legend i.is-missing{border:1px solid var(--r3-faint);background:repeating-linear-gradient(135deg,transparent 0 2px,var(--r3-faint) 2px 3px)}
.r4-chart-canvas{position:relative;padding:0 18px 6px;min-width:0}.r4-chart-canvas>svg{display:block;width:100%;height:auto;min-height:240px}.r4-gridline{stroke:var(--r3-line);stroke-width:1;stroke-dasharray:0;pointer-events:none}.r4-axis-label{fill:var(--r3-muted);font-size:10px;pointer-events:none;font-weight:500}.r4-unit{fill:var(--r3-faint);font-size:10px}.r4-volume-bar{opacity:.86;pointer-events:none;transition:opacity .14s}.r4-bar-value{font-size:12px;font-weight:750;fill:var(--r3-text);pointer-events:none}.r4-band-highlight{fill:var(--r3-soft);opacity:0;pointer-events:none}.r4-hitbox{fill:transparent;cursor:crosshair;pointer-events:all}.r4-row-target{outline:none}.r4-row-target:hover .r4-band-highlight,.r4-row-target.is-active .r4-band-highlight,.r4-row-target:focus .r4-band-highlight{opacity:.72}.r4-row-target:hover .r4-volume-bar,.r4-row-target.is-active .r4-volume-bar{opacity:1}.r4-missing-mark{color:var(--r3-faint);pointer-events:none}
.r4-row-target:focus .r4-volume-bar{stroke:var(--r3-text);stroke-width:1.5}.r4-signal-channel{margin:0 0 12px;border:1px solid var(--r3-line);border-radius:10px;padding:14px 15px;background:var(--r3-raised)}.r4-signal-channel header{display:flex;align-items:center;gap:15px;margin-bottom:10px}.r4-signal-channel header>span{font-size:11px;font-weight:700;display:flex;align-items:center;gap:7px}.r4-signal-channel i{display:inline-block;width:8px;height:8px;border-radius:50%}.r4-signal-channel strong{font-size:24px;letter-spacing:-.03em;margin-left:auto}.r4-signal-channel strong small{font-size:10px;letter-spacing:0;font-weight:500;color:var(--r3-muted)}.r4-signal-channel em{font-style:normal;font-size:9px;color:var(--r3-muted)}.r4-signal-channel svg{display:block;width:100%;height:auto;min-height:100px}.r4-signal-path{fill:none;stroke-width:2.2;stroke-linejoin:round;pointer-events:none}.r4-signal-dot{opacity:.2;pointer-events:none;stroke:var(--r3-raised);stroke-width:2}.r4-signal-cursor{stroke:var(--r3-muted);opacity:0;stroke-dasharray:3 4;pointer-events:none}.r4-row-target:hover .r4-signal-dot,.r4-row-target:focus .r4-signal-dot,.r4-row-target.is-active .r4-signal-dot{opacity:1;r:5}.r4-row-target:hover .r4-signal-cursor,.r4-row-target.is-active .r4-signal-cursor,.r4-row-target:focus .r4-signal-cursor{opacity:.7}
.r4-chart-inspect{display:flex;align-items:flex-start;gap:13px;margin:12px 20px 20px;padding:14px;border-top:1px solid var(--r3-line);background:var(--r3-raised);border-radius:9px;min-height:72px}.r4-inspect-symbol{display:grid;place-items:center;min-width:32px;height:32px;border:1px solid var(--r3-line2);border-radius:8px;color:var(--r3-blue);font-size:11px;font-weight:800}.r4-chart-inspect>div{min-width:0;flex:1}.r4-chart-inspect strong{font-size:11px;font-weight:700}.r4-chart-inspect p{font-size:10px;line-height:1.6;margin:5px 0 0;color:var(--r3-muted);overflow-wrap:anywhere}.r4-inspect-values{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px}.r4-inspect-values span{display:grid;gap:3px;font-size:9px;color:var(--r3-muted)}.r4-inspect-values strong{color:var(--r3-text);font-size:12px}
.r4-chart-float{position:absolute;z-index:20;width:250px;padding:12px;border:1px solid var(--r3-line2);border-radius:9px;background:var(--r3-raised);box-shadow:0 10px 30px #0005;pointer-events:none;color:var(--r3-text)}.r4-chart-float[hidden]{display:none!important}.r4-chart-float>strong{display:block;font-size:11px;margin-bottom:10px}.r4-chart-float>span{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--r3-muted);margin:7px 0}.r4-chart-float>span strong{color:var(--r3-text)}.r4-chart-float>small{display:block;font-size:8px;line-height:1.5;margin-top:9px;color:var(--r3-muted);overflow-wrap:anywhere}
.r4-calendar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:22px;padding:0 2px 8px}.r4-month h4{font-size:14px;font-weight:650;margin:0 0 14px}.r4-weekdays,.r4-month-cells{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.r4-weekdays{margin-bottom:6px;font-size:9px;color:var(--r3-faint);text-align:center}.r4-calendar-day,.r4-calendar-outside{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:58px!important;padding:6px!important;min-width:0;border:1px solid color-mix(in srgb,var(--r3-blue) 28%,var(--r3-line))!important;border-radius:6px!important;background:color-mix(in srgb,var(--r3-blue) calc(var(--r4-cell)*100%),var(--r3-raised))!important;color:var(--r3-text)!important;cursor:pointer}.r4-calendar-day small,.r4-calendar-outside small{font-size:9px}.r4-calendar-day strong{font-size:12px;letter-spacing:-.025em}.r4-calendar-day>span{font-size:7px;opacity:.7}.r4-calendar-day.is-missing{background:repeating-linear-gradient(135deg,var(--r3-raised) 0 5px,var(--r3-soft) 5px 6px)!important;border-color:var(--r3-line)!important;color:var(--r3-muted)!important}.r4-calendar-outside{background:transparent!important;border-color:transparent!important;color:var(--r3-faint)!important;opacity:.4;cursor:default}.r4-calendar-day.is-active{outline:2px solid var(--r3-text);outline-offset:1px}.r4-scale{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:16px 2px 8px;font-size:9px;color:var(--r3-muted)}.r4-scale i{width:70px;height:7px;border-radius:3px;background:linear-gradient(90deg,var(--r3-raised),var(--r3-blue))}
.r4-ranked-list{padding:0 4px 10px}.r4-ranked-list>p{font-size:10px;color:var(--r3-muted);margin:0 0 12px}.r4-ranked-day{display:grid;grid-template-columns:24px 70px minmax(0,1fr) 98px;align-items:center;gap:12px;width:100%;min-height:44px!important;padding:6px 0!important;border:0!important;border-bottom:1px solid var(--r3-line)!important;border-radius:0!important;background:transparent!important;text-align:left;color:var(--r3-text)!important;cursor:pointer;font-size:11px!important}.r4-rank{font-size:9px;color:var(--r3-faint)}.r4-ranked-track{height:10px;position:relative;background:var(--r3-raised);border-radius:3px;overflow:hidden}.r4-ranked-track i{display:block;height:100%;border-radius:3px;background:var(--r3-blue)}.r4-ranked-day strong{text-align:right;font-size:11px}.r4-ranked-day strong small{font-size:9px;color:var(--r3-muted);font-weight:400}.r4-ranked-day.is-active{background:var(--r3-soft)!important}.r4-empty{display:grid;place-content:center;text-align:center;min-height:260px;padding:24px}.r4-empty strong{font-size:18px}.r4-empty p{font-size:12px;color:var(--r3-muted);line-height:1.7}
:root[data-theme=light] body.r4-studio #app-shell>.sidebar{background:#f8fafc!important;border-color:#d7e1e7!important}:root[data-theme=light] body.r4-studio #nav .nav-group{color:#617986!important}:root[data-theme=light] body.r4-studio #nav .nav-item{color:#38515f!important}:root[data-theme=light] body.r4-studio #nav .nav-item:hover{background:#edf3f6!important;color:#112d3e!important}:root[data-theme=light] body.r4-studio #nav .nav-item.active{background:#e3f2ef!important;color:#146355!important;border-color:#b8dbd2!important}:root[data-theme=light] body.r4-studio .bridge-search input{background:#fff!important;color:#213d4c!important;border-color:#d7e1e7!important}:root[data-theme=light] body.r4-studio .user-card{background:#fff!important;color:#213d4c!important;border-color:#d7e1e7!important}:root[data-theme=light] body.r4-studio .sidebar>.brand{border-color:#d7e1e7!important}
@media(max-width:1280px){body.r4-studio .topbar{grid-template-columns:1fr auto!important}.r4-analytics-workspace{grid-template-columns:minmax(0,1fr) 230px;gap:14px}.r4-chart-toolbar{align-items:flex-start;flex-wrap:wrap}.r4-chart-toolbar>span{padding:6px 0}.r4-overview{grid-template-columns:1.2fr 1fr 1fr}body.r4-studio .r4-overview .detail-card{padding:16px!important}body.r4-studio .r4-overview .detail-card:first-child strong{font-size:29px!important}}
@media(max-width:1000px){.r4-analytics-workspace{grid-template-columns:1fr}.r4-source-rail{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}.r4-source-rail header{grid-column:1/-1}.r4-source-contract{grid-column:1/-1}.r4-chart-canvas>svg{min-height:230px}.r4-signal-channel em{display:none}}
@media(max-width:820px){body.r4-studio .topbar{grid-template-columns:auto 1fr auto!important;gap:10px}body.r4-studio .topbar>.bridge-menu{order:0}body.r4-studio .topbar h1{font-size:19px!important}.r4-model-switch button{min-height:40px!important}.r4-overview{grid-template-columns:1fr 1fr}body.r4-studio .r4-overview .detail-card:first-child{grid-column:1/-1;border-bottom:1px solid var(--r3-line)!important;padding-left:16px!important}.r4-calendar-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}}
@media(max-width:520px){.r4-overview{margin-bottom:14px}body.r4-studio .r4-overview .detail-card strong{font-size:15px!important}.r4-chart-toolbar{padding:14px 12px 0}.r4-chart-legend{padding:9px 12px 13px;gap:10px}.r4-chart-canvas{padding:0 6px 6px;overflow:visible}.r4-chart-canvas>svg{min-height:190px}.r4-model-switch{width:100%;justify-content:space-between}.r4-model-switch button{padding:0 7px!important;font-size:9px!important;gap:4px}.r4-chart-toolbar>span{font-size:9px}.r4-chart-inspect{margin:10px 12px 14px;padding:12px}.r4-chart-float{display:none!important}.r4-calendar-grid{grid-template-columns:1fr;padding:0 7px;gap:18px}.r4-calendar-day{min-height:56px!important}.r4-signal-channel{padding:12px 6px}.r4-signal-channel header{padding:0 7px;gap:6px}.r4-signal-channel strong{font-size:21px}.r4-signal-channel header>span{font-size:10px}.r4-source-rail{grid-template-columns:1fr;padding:16px}.r4-source-rail header{grid-column:auto}.r4-analytics-workspace .subpanel-head{flex-direction:column;gap:6px}.r4-analytics-workspace .subpanel-head span{text-align:left!important}.r4-ranked-day{grid-template-columns:19px 51px minmax(0,1fr) 74px;gap:7px}.r4-ranked-day strong{font-size:10px}.r4-axis-label{font-size:13px}.r4-unit{font-size:13px}}
@media(prefers-reduced-motion:reduce){.r4-volume-bar{transition:none}}
