/* User display preferences: scoped to the new G5 theme/admin, no service changes. */
:root{--pws-body-size:16px;--pws-bright:#ffe3af;--pws-card-shadow:0 3px 12px #21181612}
html[data-pws-mode=dark]{color-scheme:dark;--pws-page:#14171d!important;--pws-surface:#222832!important;--pws-text:#f3eadc!important;--pws-muted:#c6bfaf!important;--pws-line:#596273!important;--pws-menu:#171a21!important;--pws-menu-mid:#242a34!important;--pws-card-shadow:0 3px 12px #0005}
html[data-pws-ui] body,html[data-pws-ui] body #flowstack-layout,html[data-pws-ui] body #suite,html[data-pws-ui] body #pilot{font-size:var(--pws-body-size)!important;font-weight:600!important;color:var(--pws-text);background:var(--pws-page)}
html[data-pws-ui] body #flowstack-layout *,html[data-pws-ui] body #container *{font-weight:600!important}
html[data-pws-ui] body :is(#flowstack-layout,#container) :is(p,label,input,select,button,td,summary,.g5-a5-sku){font-size:var(--pws-body-size)!important}
html[data-pws-ui] body :is(#flowstack-layout,#container) :is(small,th,code,pre,.pws-chart-caption,.pws-bar-row,.suite-footnote,.pws-status,.fs-nav-caption,.fs-nav-bottom,.pws-account){font-size:max(12px,calc(var(--pws-body-size)*.85))!important}
html[data-pws-ui] body :is(#flowstack-layout,#container) :is(h1,h2,h3,strong,th){font-weight:700!important}
html[data-pws-ui] body #flowstack-top,html[data-pws-ui] body #container #container_title{background:var(--pws-red)!important;color:#fff!important;border:0!important;min-height:64px!important;padding:10px 20px!important;gap:14px;box-shadow:0 3px 10px #0002;display:flex;align-items:center;flex-wrap:wrap}
html[data-pws-ui] body #flowstack-top h1{font-size:max(24px,calc(var(--pws-body-size)*1.65))!important;color:#fff7e7!important;line-height:1.15;margin:0!important}
html[data-pws-ui] body #flowstack-top .pws-page-title{padding-left:10px;border-left:4px solid #ffcb76;flex:1}
html[data-pws-ui] body #flowstack-top .pws-account{gap:6px}html[data-pws-ui] body #flowstack-top .pws-account span{color:#ffe3af}
html[data-pws-ui] body #flowstack-top .pws-account a{background:#0002;color:#fff7e7;border:1px solid #ffffff6b;padding:7px 9px;font-size:max(12px,calc(var(--pws-body-size)*.85))}
.pws-display-controls{display:flex;align-items:center;gap:5px;flex-shrink:0}.pws-display-controls button{min-width:34px;min-height:34px;border:1px solid #fff8;background:#0003;color:#fff;border-radius:5px;font:600 14px Pretendard,sans-serif;cursor:pointer;padding:4px 8px}.pws-display-controls button:disabled{opacity:.4;cursor:not-allowed}.pws-display-controls output{color:#ffe3af;font:600 12px Pretendard,sans-serif;min-width:34px;text-align:center}
html[data-pws-ui] body #flowstack-login-title{background:var(--pws-red)!important;color:#fff7e7!important}
html[data-pws-ui] body #flowstack-login-title .pws-display-controls{justify-content:center;margin-top:8px}
html[data-pws-ui] body #flowstack-main #a5-g5 :is(.a52-cell-head,.a52-cell-row-head,.g5-a5-cell,.g5-a5-cell strong,.g5-a5-cell span,.a52-head-title small){font-size:max(12px,calc(var(--pws-body-size)*.85))!important}
html[data-pws-ui] body #suite,html[data-pws-ui] body #pilot{padding:16px 20px!important}
html[data-pws-ui] body .suite-heading{margin:0 0 12px;min-height:36px}html[data-pws-ui] body .suite-heading p{font-size:max(12px,calc(var(--pws-body-size)*.85))!important;margin:0;color:var(--pws-muted)!important}
#suite-notice:empty{display:none}
html[data-pws-ui] body :is(.wcs-data-card,.pws-chart,.suite-kpi,.suite-selector,#suite-detail:not(:empty),.g5-pcs-detail){background:var(--pws-surface)!important;border:2px solid var(--pws-line)!important;border-radius:9px;box-shadow:var(--pws-card-shadow);padding:18px}
html[data-pws-ui] body .suite-kpi{border-top:5px solid var(--pws-red)!important}
html[data-pws-ui] body #suite[data-view=dashboard] .suite-kpi{font-size:calc(var(--pws-body-size)*1.2)!important}
html[data-pws-ui] body #suite .suite-kpi strong{font-size:calc(var(--pws-body-size)*2.5)!important;color:var(--pws-text)}
html[data-pws-ui] body #suite[data-view=dashboard] .suite-kpi strong{font-size:calc(var(--pws-body-size)*3)!important}
html[data-pws-ui] body :is(.wcs-data-card,.pws-chart,.g5-pcs-detail)>h2{margin:-18px -18px 18px!important;padding:12px 16px!important;background:var(--pws-menu)!important;color:#ffe3af!important;border:0!important;border-radius:7px 7px 0 0;font-size:calc(var(--pws-body-size)*1.2)!important}
html[data-pws-ui] body .suite-table-wrap{border:1px solid var(--pws-line);border-radius:6px;overflow:auto}
html[data-pws-ui] body .suite-table th{background:var(--pws-menu)!important;color:#fff2d9!important;border-bottom:2px solid var(--pws-red);padding:12px!important}
html[data-pws-ui] body .suite-table td{background:var(--pws-surface);padding:12px!important;border-bottom:1px solid var(--pws-line)}
html[data-pws-ui] body .suite-table tbody tr:nth-child(even) td{background:var(--pws-page)}
html[data-pws-ui] body .suite-footnote{margin-top:14px;color:var(--pws-muted)}
html[data-pws-ui] body #flowstack-main #a5-g5 .g5-a5-nav{padding:8px 20px}
html[data-pws-ui] body #flowstack-main #a5-g5 .g5-a5-notice{padding:4px 20px;font-size:max(12px,calc(var(--pws-body-size)*.85))}
html[data-pws-ui] body #flowstack-main #a5-g5 :is(.a52-panel,.a52-wall-card){border:2px solid var(--pws-line)!important;box-shadow:var(--pws-card-shadow)!important}
html[data-pws-ui] body #flowstack-main #a5-g5 header strong{font-size:var(--pws-body-size)!important;color:#ffe3af!important}
html[data-pws-ui] body #flowstack-main #a5-g5 *{font-weight:600!important}
html[data-pws-ui] body #flowstack-main #a5-g5 :is(h1,h2,h3,strong,th){font-weight:700!important}
html[data-pws-mode=dark] body #a5-g5 :is(.a52-sku-card,.a52-current-sku-highlight,.a52-current-sku-row,.a52-scan-field,.a52-scan-result>div,.a52-kpis>div,.a52-cell-head,.a52-cell-row-head){background:var(--pws-surface)!important;color:var(--pws-text)!important;border-color:var(--pws-line)!important}
html[data-pws-mode=dark] body #a5-g5 :is(input,select,.g5-a5-cell){background:var(--pws-page)!important;color:var(--pws-text)!important;border-color:var(--pws-line)!important}
html[data-pws-mode=dark] body #a5-g5 .g5-a5-cell[data-state=SORTED]{background:#204635!important;color:#e2ffeb!important}
html[data-pws-mode=dark] body #a5-g5 .g5-a5-cell[data-state=LOST]{background:#662d31!important;color:#ffe4de!important}
html[data-pws-mode=dark] body #a5-g5 :is(strong,.a52-current-sku-highlight span){color:var(--pws-text)!important}
.pws-donut-layout{display:grid;grid-template-columns:minmax(150px,220px) minmax(120px,1fr);align-items:center;gap:24px;padding:10px 0}.pws-donut{aspect-ratio:1;border-radius:50%;position:relative;display:grid;place-items:center;min-width:0}.pws-donut:before{content:'';position:absolute;inset:25%;background:var(--pws-surface);border-radius:50%}.pws-donut strong{position:relative;font-size:calc(var(--pws-body-size)*1.6)!important;text-align:center;color:var(--pws-text)}.pws-pie-legend{list-style:none;padding:0;margin:0}.pws-pie-legend li{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:var(--pws-body-size)}.pws-pie-legend i{width:12px;height:12px;border-radius:3px;flex-shrink:0}.pws-pie-legend strong{margin-left:auto;white-space:nowrap}
@media(max-width:1200px){.pws-donut-layout{grid-template-columns:1fr}.pws-donut{width:180px;margin:auto}}
@media(max-width:700px){html[data-pws-ui] body #flowstack-top{padding:10px 12px!important}.pws-account{width:100%}.suite-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
