/* Shared SC Ops visual rhythm. Business colors and metrics stay unchanged. */
@media screen {
 body select{appearance:none;-webkit-appearance:none;min-height:36px;padding:7px 32px 7px 12px;border:1px solid var(--line);border-radius:9px;background-color:var(--panel);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m5 6 3 3 3-3' fill='none' stroke='%23858a95' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;color:var(--text);font:inherit;font-size:13px;line-height:20px;cursor:pointer}
 body>header{min-height:76px;padding:14px 28px;gap:16px}
 body>header .headright{gap:8px;align-items:center}
 body>header .headright button{min-height:36px;padding:7px 12px;font-size:13px;border-radius:9px}
 body>header h1{font-size:23px;letter-spacing:-.7px}
 body>header h1 span{font-size:13px;letter-spacing:0}
 body>header .account-link{font-size:13px;gap:7px;margin-left:6px}
 body>header .account-avatar{width:30px;height:30px}
 body>main{padding-top:20px}
 .board,.trend-panel{border-radius:16px}
 body:has(#trend-chart) main{display:block}
 body:has(#trend-chart) main>.sourcebar{margin-bottom:10px;font-size:12px;gap:10px}
 body:has(#trend-chart) .range-panel{margin:0 0 16px;padding-bottom:10px;font-size:13px}
 body:has(#trend-chart) .trend-panel{padding:24px;margin-top:0;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px}
 .trend-top{grid-column:1;align-self:center}
 body:has(#trend-chart) .trend-switch{grid-column:2;grid-row:1;margin:0;gap:8px;display:flex;flex-wrap:wrap;justify-content:flex-end}
 .trend-overview{grid-column:1;margin-top:20px;min-width:0}
 body:has(#trend-chart) #trend-value{font-size:48px;line-height:1.1;letter-spacing:-1.8px;font-variant-numeric:tabular-nums}
 body:has(#trend-chart) #trend-note{margin:8px 0 0;font-size:12px}
 body:has(#trend-chart) #shift-status{font-size:12px;margin:6px 0;color:var(--muted)}
 .forecast-explanation{grid-column:2;grid-row:2;align-self:end;max-width:400px;margin:8px 0;font-size:12px}
 .forecast-explanation summary{text-align:right}
 body:has(#trend-chart) .forecast-legend{grid-column:1/-1;display:flex;gap:20px;margin:16px 0 0;font-size:12px;color:var(--muted)}
 .forecast-legend span{display:inline-flex;align-items:center;gap:7px}
 .forecast-legend i{display:inline-block;width:18px;height:3px;background:#14ad80;border-radius:2px}
 .forecast-legend .legend-target{background:transparent;border-top:3px dashed #3986ee;border-radius:0}
 body:has(#trend-chart) .plan-summary{grid-column:1/-1;margin:16px 0 8px;padding:14px 16px;background:var(--hover);border:0;border-radius:10px;gap:20px}
 .plan-summary strong{font-size:17px;font-variant-numeric:tabular-nums}
 #trend-chart,.trend-foot{grid-column:1/-1;min-width:0}
 body:has(#trend-chart) #trend-chart svg{max-height:340px}
 body:has(#trend-chart) .trend-foot{margin:6px 0 0;font-size:11px;color:var(--muted)}
 body:has(#trend-chart) .hourly-panel{margin:16px 0;padding:22px 24px}
 .hourly-panel h2,#week-comparison h2{font-size:18px;margin:0}
 #hourly-note{font-size:12px;margin:8px 0}
 .hourly-chart{gap:8px;padding:14px 0 8px;overflow-x:auto}
 .hourly-column{min-width:48px}
 .hourly-column strong{font-size:11px;font-variant-numeric:tabular-nums}
 .hourly-column small{font-size:11px;color:var(--muted)}
 .hourly-bar{width:62%;max-width:54px;border-radius:5px 5px 0 0}
 .hourly-details{margin-top:12px;border-top:1px solid var(--line);padding-top:12px;font-size:12px;color:var(--muted)}
 .hourly-details summary{cursor:pointer}
 .hourly-table td,.hourly-table th{padding:10px 12px;font-size:12px}
 #week-comparison{margin-top:16px;padding:24px}
 #week-comparison>.muted{font-size:12px;margin:10px 0;color:var(--muted)}
 #week-comparison .week-cards{gap:12px;margin:16px 0}
 .week-cards>div{background:var(--hover);border:1px solid var(--line);border-radius:12px;padding:16px}
 .week-cards strong{font-size:26px!important;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
 .week-cards small{font-size:12px!important}
 .week-delta{font-size:15px!important}
 #week-comparison .week-toggle{font-size:12px;margin:12px 0}
 #week-comparison .week-bars{gap:12px;padding-top:28px}
 #week-comparison .week-column{min-width:75px}
 #week-comparison details{font-size:12px}
 @media(min-width:1600px){body:has(#trend-chart) main{max-width:1680px;margin-inline:auto}}
 @media(max-width:760px){
 body>header{padding:12px 16px;min-height:66px}
 body:has(#trend-chart) .trend-panel{display:block;padding:18px}
 body:has(#trend-chart) .trend-switch{justify-content:flex-start;margin:14px 0;gap:6px}
 .trend-switch select{font-size:12px;padding-left:9px;padding-right:28px;min-width:0;max-width:100%}
 body:has(#trend-chart) #trend-value{font-size:38px}
 .forecast-explanation summary{text-align:left}
 body:has(#trend-chart) .plan-summary{grid-template-columns:1fr;gap:10px;padding:12px}
 .plan-summary>div{display:flex;justify-content:space-between;gap:10px;align-items:center}
 .plan-summary strong{font-size:14px;margin:0}
 body:has(#trend-chart) .hourly-panel,#week-comparison{padding:18px}
 #week-comparison .week-cards{grid-template-columns:1fr}
 .week-cards>div{padding:12px}
 .hourly-column{min-width:48px}
 }
}
/* Reserve a dedicated arrow lane, including older page-specific select rules. */
@media screen{
 body select:not([multiple]):not([size]){padding-right:40px!important;background-position:right 12px center;background-size:16px 16px;box-sizing:border-box;text-overflow:ellipsis}
 body .trend-switch select{flex:0 0 auto;padding-left:12px;max-width:100%}
}
@media screen{
 .account-menu{position:relative;margin-left:2px}
 body>header .account-menu .account-link{box-sizing:border-box;display:flex;align-items:center;gap:9px;min-height:38px;height:38px;max-width:220px;margin:0;padding:5px 11px!important;border:1px solid var(--line);border-radius:10px;background:var(--panel);font-size:13px;cursor:pointer;list-style:none}
 .account-link::-webkit-details-marker{display:none}
 .account-menu .account-avatar{width:24px;height:24px;font-size:12px}
 .account-chevron{display:flex;color:var(--muted);flex-shrink:0}
 .account-menu[open] .account-link,.account-menu .account-link:hover{background:var(--hover)}
 .account-menu[open] .account-chevron{transform:rotate(180deg)}
 .account-dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:1000;min-width:190px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 10px 30px #0002}
 .account-dropdown a{display:block;padding:10px 12px;border-radius:7px;color:var(--text);text-decoration:none;font-size:13px}
 .account-dropdown a:hover,.account-dropdown a:focus-visible{background:var(--hover)}
 @media(max-width:760px){body>header .account-menu .account-link{width:auto;gap:5px;padding:5px 7px!important}.account-dropdown{max-width:calc(100vw - 32px)}}
}
