/* Kovesis 0.7.0 – Noir Studio visual system.
   Loaded AFTER the historic stylesheets. Respects company and personal Mods tokens. */
body.buc-app{font-family:var(--buc-page-font,"Inter","Segoe UI Variable","Aptos",system-ui,sans-serif)!important;font-weight:440;letter-spacing:-.012em;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
body.buc-app[data-buc-theme="dark"]{
 --buc-bg:#22252b;--buc-panel:#16191e;--buc-panel2:#22262e;
 --buc-top-bg:#252830;--buc-subtle:#20242b;--buc-input:#20242b;
 --buc-elevated:#282d36;--buc-sidebar:#111418;--buc-line:#303640;
 --buc-text:#f5f6fb;--buc-muted:#9ca6b8;--buc-blue:#49b6ff;
 --buc-soft-accent:color-mix(in srgb,var(--buc-accent) 18%,transparent);
 color-scheme:dark;
}
body.buc-app[data-buc-theme="light"]{
 --buc-bg:#eef1f7;--buc-panel:#ffffff;--buc-panel2:#f4f6fa;
 --buc-top-bg:#fff;--buc-subtle:#f1f3f9;--buc-input:#f5f7fb;
 --buc-line:#e0e4ec;--buc-text:#1b2030;--buc-muted:#657085;
 color-scheme:light;
}
body.buc-app .buc-shell{display:flex;min-height:100dvh;background:var(--buc-bg);isolation:isolate}
body.buc-app[data-buc-theme="dark"] .buc-main{
 background:radial-gradient(ellipse at 96% -9%,#534b7833,transparent 36%),linear-gradient(135deg,#262930 0%,#202328 100%);
}
body.buc-app[data-buc-theme="light"] .buc-main{background:radial-gradient(ellipse at 96% -9%,#ad98ff22,transparent 36%),var(--buc-bg)}
/* Sidebar: narrow, non-invasive arrow INSIDE top-right of the left column. */
body.buc-app[data-buc-sidebar-style="navy"] .buc-side{
 background:linear-gradient(180deg,#111318 0%,#15181e 60%,#101318 100%)!important;
 color:#e5e7ef!important;border-right:1px solid #353945!important;
}
body.buc-app .buc-side{
 width:230px;flex-basis:230px;padding:22px 13px 17px;gap:6px;
 box-shadow:none;transition:width .18s ease,flex-basis .18s ease;
}
body.buc-app .buc-modern-brand{margin:0 0 24px;padding:0 38px 0 7px;min-height:48px;gap:11px}
body.buc-app .buc-brand-symbol{width:35px;height:35px;border-radius:11px;background:linear-gradient(140deg,#6442f7,#3f7ffb);font-weight:680}
body.buc-app .buc-brand-copy strong{font-size:17px;font-weight:680;letter-spacing:-.03em}
body.buc-app .buc-brand-copy small{font-size:10px;opacity:.68}
body.buc-app .buc-collapse{
 position:absolute!important;top:10px!important;right:0!important;
 width:29px!important;height:29px!important;padding:5px!important;
 border:1px solid #3a3e4a!important;border-radius:9px!important;
 background:#252831!important;color:#c8cede!important;
 box-shadow:inset 0 1px 2px #ffffff08!important;z-index:8;
 cursor:pointer;display:grid;place-items:center;
}
body.buc-app .buc-collapse svg{display:block;width:17px;height:17px;transition:transform .18s ease}
body.buc-app .buc-collapse:hover{background:#353946!important;color:#fff!important;border-color:#5a6070!important}
body.buc-app .buc-collapse:focus-visible{outline:2px solid #9a86ff;outline-offset:2px}
body.buc-app .buc-side nav{gap:5px}
body.buc-app .buc-nav{min-height:40px;height:40px;border-radius:13px;padding:8px 13px;gap:13px;font-weight:450!important;color:inherit!important}
body.buc-app .buc-nav-icon,body.buc-app .buc-nav span{width:22px;height:22px;flex-basis:22px}
body.buc-app .buc-nav svg{width:19px;height:19px;stroke-width:1.75}
body.buc-app .buc-nav small{font-size:13px;line-height:1.3;font-weight:500!important;letter-spacing:-.013em;opacity:.84}
body.buc-app[data-buc-sidebar-style="navy"] .buc-nav.current{
 background:#292d36!important;color:#fff!important;border:1px solid #373b46!important;
 box-shadow:inset 0 2px 7px #06070a55!important;
}
body.buc-app[data-buc-sidebar-style="navy"] .buc-nav:hover:not(.current){background:#ffffff0c!important}
body.buc-app .buc-nav.current small{font-weight:630!important}
body.buc-app .buc-side-bottom{margin-top:auto;color:inherit;border-top:1px solid #ffffff14;padding:14px 9px 3px;font-size:11px;opacity:.65}
body.buc-app .buc-side-company{font-weight:600}
body.buc-app[data-buc-sidebar="compact"] .buc-side{width:182px;flex-basis:182px;padding-inline:10px}
body.buc-app[data-buc-sidebar="compact"] .buc-nav{height:39px;gap:9px;padding-inline:8px}
body.buc-app[data-buc-sidebar="icons"] .buc-side{width:73px!important;flex-basis:73px!important;padding:20px 9px 12px!important;align-items:center}
body.buc-app[data-buc-sidebar="icons"] .buc-modern-brand{width:56px;min-height:69px;justify-content:flex-start;padding:0 0 20px 5px!important;margin:0 0 16px}
body.buc-app[data-buc-sidebar="icons"] .buc-company-logo,body.buc-app[data-buc-sidebar="icons"] .buc-brand-symbol{width:34px;height:34px;flex-shrink:0}
body.buc-app[data-buc-sidebar="icons"] .buc-brand-copy,body.buc-app[data-buc-sidebar="icons"] .buc-side-bottom,body.buc-app[data-buc-sidebar="icons"] .buc-nav small{display:none}
body.buc-app[data-buc-sidebar="icons"] .buc-collapse{right:13px!important;top:46px!important;width:25px!important;height:25px!important}
body.buc-app[data-buc-sidebar="icons"] .buc-collapse svg{transform:rotate(180deg)}
body.buc-app[data-buc-sidebar="icons"] .buc-side nav{width:100%;align-items:center}
body.buc-app[data-buc-sidebar="icons"] .buc-nav{width:49px;height:45px;min-height:45px;padding:9px;justify-content:center}
body.buc-app[data-buc-sidebar="icons"] .buc-nav-icon{flex-basis:22px}
body.buc-app .buc-sos{left:246px}
body.buc-app[data-buc-sidebar="compact"] .buc-sos{left:197px}
body.buc-app[data-buc-sidebar="icons"] .buc-sos{left:85px}
body.buc-app .buc-alert-stripe{left:230px}
body.buc-app[data-buc-sidebar="compact"] .buc-alert-stripe{left:182px}
body.buc-app[data-buc-sidebar="icons"] .buc-alert-stripe{left:73px}
/* Top controls */
body.buc-app .buc-top{min-height:75px;padding:16px 28px;background:transparent!important;box-shadow:none;border-bottom:1px solid var(--buc-line)}
body.buc-app .buc-top-search{height:41px;width:min(450px,47%);border-radius:11px;background:var(--buc-panel2);border:1px solid var(--buc-line);padding:0 14px}
body.buc-app .buc-search-glyph{font-size:21px!important;font-weight:400!important;color:#569cff}
body.buc-app .buc-search-shortcut{margin-left:auto;white-space:nowrap;border:1px solid var(--buc-line);border-radius:6px;padding:2px 7px;font-size:10px;color:var(--buc-muted);background:var(--buc-panel)}
body.buc-app .buc-top-search input{font-family:inherit;font-size:12px}
body.buc-app .buc-top-tools{gap:9px}
body.buc-app .buc-header-action,body.buc-app .buc-logout{height:36px;width:36px;border-radius:50%;background:var(--buc-panel2)!important;border:1px solid var(--buc-line)!important;color:var(--buc-text)!important;font-size:18px}
body.buc-app .buc-header-action svg,body.buc-app .buc-logout svg{width:18px;height:18px}
body.buc-app .buc-header-action:hover{background:var(--buc-elevated)!important}
body.buc-app .buc-quick-new{height:38px;border-radius:20px;background:linear-gradient(110deg,#2373ff,var(--buc-accent))!important;padding:0 19px;font-size:12px;font-weight:640;box-shadow:0 4px 18px #5c55ff20}
body.buc-app .buc-top-user strong{font-size:12px;font-weight:620}
body.buc-app .buc-photo-avatar{background:linear-gradient(135deg,#704df7,#328ef7);color:#fff;font-weight:650}
body.buc-app .buc-body{padding:21px clamp(15px,2vw,30px) 100px;max-width:none}
body.buc-app .buc-page-title{margin:2px 0 22px}
body.buc-app .buc-page-title h2{font-size:clamp(23px,2vw,29px)!important;font-weight:680!important;letter-spacing:-.045em}
body.buc-app .buc-page-title p{font-size:12.5px;line-height:1.5}
body.buc-app .buc-eyebrow{font-size:10px;letter-spacing:.1em;font-weight:670}
/* General-purpose panels: automatically used by EVERY existing view. */
body.buc-app .buc-panel,body.buc-app .buc-stat,body.buc-app .buc-resource,body.buc-app .buc-client-head,body.buc-app .buc-calendar,body.buc-app .buc-report-controls,body.buc-app .buc-chart-card,body.buc-app .buc-day-schedule,body.buc-app .buc-modal,body.buc-app .buc-note-sheet{
 border:1px solid var(--buc-line)!important;border-radius:var(--buc-round,17px)!important;
 background:var(--buc-panel)!important;color:var(--buc-text)!important;
 box-shadow:0 8px 27px #05060c19!important;
}
body.buc-app .buc-panel{padding:18px 19px;margin:0 0 15px;min-width:0}
body.buc-app .buc-panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
body.buc-app .buc-panel-title h3{font-size:14px!important;font-weight:650!important;letter-spacing:-.025em;color:var(--buc-text)!important;margin:0}
body.buc-app .buc-panel-title .buc-link{font-size:11px;color:#5598ff!important;font-weight:550}
body.buc-app .buc-stat{padding:16px 17px}
body.buc-app .buc-stat strong{font-size:27px;font-weight:680;letter-spacing:-.04em}
body.buc-app .buc-stat-label{font-size:11px;color:var(--buc-muted)!important}
body.buc-app .buc-stat small{color:var(--buc-muted)}
body.buc-app .buc-resource{border-radius:14px!important;transition:transform .14s ease,border-color .14s ease}
body.buc-app .buc-resource:hover{transform:translateY(-2px);border-color:var(--buc-accent)!important}
body.buc-app .buc-table{font-size:12.5px}
body.buc-app .buc-table th{background:var(--buc-panel2)!important;color:var(--buc-muted)!important;font-size:11px;font-weight:590}
body.buc-app .buc-table td{color:var(--buc-text)!important;font-size:12px;border-color:var(--buc-line);padding-block:12px}
body.buc-app .buc-table tbody tr:hover{background:color-mix(in srgb,var(--buc-accent) 8%,var(--buc-panel))!important}
body.buc-app .buc-toolbar,body.buc-app .buc-report-controls,body.buc-app .buc-note-tools{background:var(--buc-panel)!important;border:1px solid var(--buc-line)!important;border-radius:13px!important}
body.buc-app .buc-toolbar input,body.buc-app .buc-toolbar select,body.buc-app .buc-report-controls input,body.buc-app .buc-report-controls select{background:var(--buc-input)!important;color:var(--buc-text)!important;border-radius:9px!important}
body.buc-app button,body.buc-app input,body.buc-app select,body.buc-app textarea{font-family:inherit}
body.buc-app .buc-ghost,body.buc-app .buc-actions button{border-radius:10px!important;color:var(--buc-text)!important;background:var(--buc-panel2)!important}
body.buc-app .buc-primary{background:linear-gradient(110deg,#2979ff,var(--buc-accent))!important;color:#fff!important;font-weight:620!important;border-color:transparent!important;border-radius:11px!important}
body.buc-app .buc-chip,body.buc-app .buc-pill{border-radius:999px}
body.buc-app .buc-modal header,body.buc-app .buc-note-sheet header{background:var(--buc-panel2)!important;border-bottom:1px solid var(--buc-line);color:var(--buc-text)!important;border-radius:var(--buc-round,17px) var(--buc-round,17px) 0 0}
body.buc-app .buc-modal header h2,body.buc-app .buc-note-sheet header h3,body.buc-app .buc-modal header button,body.buc-app .buc-note-sheet header button{color:var(--buc-text)!important}
body.buc-app .buc-bubble{background:var(--buc-panel2)!important;color:var(--buc-text)!important}
body.buc-app .buc-bubble.mine{background:var(--buc-soft-accent)!important}
body.buc-app .buc-messages,body.buc-app .buc-rich,body.buc-app .buc-note-tools select,body.buc-app .buc-note-tools button{background:var(--buc-panel2)!important;color:var(--buc-text)!important}
body.buc-app .buc-subtabs button{color:var(--buc-muted);font-size:12px}
body.buc-app .buc-subtabs button.chosen{color:var(--buc-accent)!important}
body.buc-app .buc-mods-layout{max-width:1300px}
body.buc-app .buc-settings-tabs{background:var(--buc-panel)!important}
body.buc-app .buc-settings-tabs button.active{background:var(--buc-panel2)!important;color:var(--buc-text)!important}
/* Dashboard geometry, inspired by the approved reference without copying content. */
body.buc-app .buc-noir-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:8px 0 24px}
body.buc-app .buc-noir-welcome .buc-welcome-kicker{font-size:12px;letter-spacing:0;font-weight:500;color:var(--buc-text)}
body.buc-app .buc-noir-welcome h2{font-size:clamp(24px,2.25vw,34px);line-height:1.15;letter-spacing:-.05em;margin:6px 0;font-weight:720}
body.buc-app .buc-noir-welcome h2 span{font-size:1em;vertical-align:middle;margin-right:3px}
body.buc-app .buc-noir-welcome p{font-size:13px;color:var(--buc-muted)}
body.buc-app .buc-dash-period{display:flex;align-items:center;gap:4px;background:var(--buc-panel);border-radius:30px;border:1px solid var(--buc-line);padding:4px;flex-shrink:0}
body.buc-app .buc-dash-period button{border:0;background:transparent;color:var(--buc-muted);font-size:11px;min-width:62px;border-radius:20px;padding:7px 10px;cursor:pointer}
body.buc-app .buc-dash-period button.active{color:var(--buc-text);background:var(--buc-panel2);box-shadow:0 1px 4px #0003}
body.buc-app .buc-noir-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 14px}
body.buc-app .buc-noir-kpi{display:flex;align-items:center;gap:15px;padding:17px 18px;min-height:103px;border:1px solid var(--buc-line);border-radius:var(--buc-round,17px);background:var(--buc-panel);box-shadow:0 5px 24px #00000010}
body.buc-app .buc-noir-kpi .buc-kpi-icon{height:54px;width:54px;min-width:54px;border-radius:17px;background:#5630b947;color:#b880ff}
body.buc-app .buc-noir-kpi .buc-kpi-icon svg{height:25px;width:25px;stroke-width:1.9}
body.buc-app .buc-noir-kpi .buc-kpi-icon.tone-1{background:#1257be40;color:#64a1ff}
body.buc-app .buc-noir-kpi .buc-kpi-icon.tone-2{background:#0b93463d;color:#67e79f}
body.buc-app .buc-noir-kpi .buc-kpi-icon.tone-3{background:#8c2b513b;color:#ff789f}
body.buc-app .buc-noir-kpi .buc-kpi-icon.tone-4{background:#b06a1938;color:#ffbf73}
body.buc-app .buc-noir-kpi .buc-kpi-icon.tone-5{background:#2439a452;color:#8395ff}
body.buc-app .buc-noir-kpi .buc-kpi-info{display:flex;flex-direction:column;gap:0;min-width:0}
body.buc-app .buc-noir-kpi .buc-kpi-caption{font-size:12px;color:var(--buc-muted);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.buc-app .buc-noir-kpi strong{font-size:30px;font-weight:740;color:var(--buc-text);line-height:1.3;letter-spacing:-.05em}
body.buc-app .buc-noir-kpi small{font-size:10px;color:var(--buc-muted)}
body.buc-app .buc-noir-main{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,1fr);gap:14px;margin-bottom:14px}
body.buc-app .buc-noir-main>.buc-panel{min-height:300px;margin:0}
body.buc-app .buc-noir-main .buc-chart-head-meta{font-size:11px;color:var(--buc-muted);background:var(--buc-panel2);padding:7px 11px;border-radius:20px;white-space:nowrap}
body.buc-app .buc-noir-graph{min-height:210px;overflow-x:auto}
body.buc-app .buc-noir-graph svg{width:100%;min-width:440px;height:230px}
body.buc-app .buc-noir-main .buc-donut-wrap{grid-template-columns:170px minmax(0,1fr);gap:12px}
body.buc-app .buc-noir-main .buc-donut-wrap svg{width:170px;height:170px}
body.buc-app .buc-noir-main .buc-donut-num{font-size:20px;fill:var(--buc-text)}
body.buc-app .buc-noir-main .buc-chart-legend{font-size:11px;gap:11px;min-width:0}
body.buc-app .buc-chart-legend span:not(.buc-legend-dot){color:var(--buc-muted)}
body.buc-app .buc-chart-legend strong{color:var(--buc-text);font-weight:640}
body.buc-app .buc-noir-lower{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}
body.buc-app .buc-noir-lower>.buc-panel{min-height:260px;margin:0}
body.buc-app .buc-modern-list{padding:10px 0;border-color:var(--buc-line)!important}
body.buc-app .buc-modern-list strong{font-size:12px;font-weight:600}
body.buc-app .buc-modern-list small{font-size:10px;color:var(--buc-muted)}
body.buc-app .buc-modern-list:hover{background:color-mix(in srgb,var(--buc-accent) 8%,transparent)!important}
body.buc-app .buc-modern-task{padding:11px 0;border-color:var(--buc-line)!important}
body.buc-app .buc-modern-task strong{font-size:12px;font-weight:590}
body.buc-app .buc-modern-task small{color:var(--buc-muted)}
body.buc-app .buc-task-checkbox{background:#6f57e82a;color:#af9aff}
body.buc-app .buc-noir-bottom{display:grid;grid-template-columns:1fr 1fr;gap:14px}
body.buc-app .buc-noir-bottom>.buc-panel{margin:0}
body.buc-app .buc-bar-track{background:var(--buc-panel2);height:9px}
body.buc-app .buc-bar-line span{color:var(--buc-muted);font-size:11px}
body.buc-app .buc-insight-summary{min-width:0;flex-wrap:wrap}
/* Tiny responsive readjustments */
@media(max-width:1330px){body.buc-app .buc-noir-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}body.buc-app .buc-noir-main{grid-template-columns:1.3fr 1fr}body.buc-app .buc-noir-lower{grid-template-columns:repeat(2,minmax(0,1fr))}body.buc-app .buc-noir-lower>.buc-panel:last-child{grid-column:1/-1}}
@media(max-width:1040px){body.buc-app .buc-noir-main{grid-template-columns:1fr}body.buc-app .buc-noir-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body.buc-app .buc-noir-lower{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){body.buc-app .buc-side{width:73px!important;flex-basis:73px!important;align-items:center;padding:20px 8px!important}body.buc-app .buc-brand-copy,body.buc-app .buc-nav small,body.buc-app .buc-side-bottom{display:none}body.buc-app .buc-modern-brand{width:53px;padding:0 0 24px!important;justify-content:center;min-height:67px}body.buc-app .buc-collapse{top:44px!important;right:13px!important;width:24px!important;height:24px!important}body.buc-app .buc-side nav{align-items:center;width:100%}body.buc-app .buc-nav{width:48px;padding:9px;justify-content:center}body.buc-app .buc-nav svg{width:20px;height:20px}body.buc-app .buc-sos{left:85px}body.buc-app .buc-alert-stripe{left:73px}body.buc-app .buc-top{padding:12px 14px}body.buc-app .buc-search-shortcut{display:none}}
@media(max-width:650px){body.buc-app .buc-noir-welcome{align-items:flex-start;flex-direction:column;gap:12px}body.buc-app .buc-noir-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.buc-app .buc-noir-kpi{padding:11px;min-height:96px;gap:9px}body.buc-app .buc-noir-kpi .buc-kpi-icon{height:38px;width:38px;min-width:38px;border-radius:12px}body.buc-app .buc-noir-kpi .buc-kpi-icon svg{width:20px;height:20px}body.buc-app .buc-noir-kpi strong{font-size:23px}body.buc-app .buc-noir-kpi .buc-kpi-caption{font-size:10px}body.buc-app .buc-noir-kpi small{font-size:9px}body.buc-app .buc-noir-lower,body.buc-app .buc-noir-bottom{grid-template-columns:1fr}body.buc-app .buc-noir-lower>.buc-panel:last-child{grid-column:auto}body.buc-app .buc-top-search{width:auto;min-width:0;flex:1}body.buc-app .buc-top-tools .buc-quick-new{display:none}body.buc-app .buc-body{padding-inline:11px}}
@media(prefers-reduced-motion:reduce){body.buc-app .buc-side,body.buc-app .buc-collapse svg,body.buc-app .buc-resource{transition:none}}

body.buc-app .buc-noir-preset-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:9px 0 15px}
body.buc-app .buc-noir-preset{border:1px solid #7456ed;background:linear-gradient(115deg,#5141a9,#283a79);color:#fff;border-radius:10px;font-size:12px;font-weight:600;padding:10px 15px;cursor:pointer}
body.buc-app .buc-noir-preset:hover{filter:brightness(1.15)}
body.buc-app .buc-noir-preset-row small{color:var(--buc-muted);font-size:11px}


/* v0.7.5 • Light Studio: saturated icon interiors + crisp white linework.
   Intentionally restricted to LIGHT mode: dark/noir colours remain unchanged.
   Company custom colour settings can still override page/panel tokens. */
body.buc-app[data-buc-theme="light"]{
  --buc-bg:#f8faff;
  --buc-panel:#fff;
  --buc-panel2:#f3f6fc;
  --buc-subtle:#f3f6fc;
  --buc-input:#fff;
  --buc-line:#e3e8f2;
  --buc-text:#18243c;
  --buc-muted:#55637b;
  --buc-dash-line:#7641f4;
  --buc-dash-point:#7040e7;
  --buc-dash-gradient:#7844ef;
  --buc-chart-purple:#7043ec;
  --buc-chart-teal:#039eaf;
  --buc-chart-orange:#ef771b;
  --buc-chart-blue:#2368f5;
  --buc-chart-pink:#d82467;
  --buc-chart-green:#099e71;
}
body.buc-app[data-buc-theme="light"] .buc-main{
  background:radial-gradient(ellipse at 98% 0%,rgba(113,86,255,.045),transparent 38%),var(--buc-bg);
}
body.buc-app[data-buc-theme="light"] .buc-noir-kpi,
body.buc-app[data-buc-theme="light"] .buc-panel{
  box-shadow:0 7px 28px rgba(29,50,92,.045);
}
/* Solid colour on the INNER icon tile, white glyph (rather than pale-on-pastel). */
body.buc-app[data-buc-theme="light"] .buc-noir-kpi .buc-kpi-icon,
body.buc-app[data-buc-theme="light"] .buc-noir-kpi .buc-kpi-icon.tone-0{
  background:linear-gradient(145deg,#8552fb,#6736db) !important;
  color:#fff !important;
  box-shadow:0 5px 12px rgba(100,63,223,.17);
}
body.buc-app[data-buc-theme="light"] .buc-noir-kpi .buc-kpi-icon.tone-1{
  background:linear-gradient(145deg,#348cff,#2059e9) !important;
  color:#fff !important;
  box-shadow:0 5px 12px rgba(38,112,237,.17);
}
body.buc-app[data-buc-theme="light"] .buc-noir-kpi .buc-kpi-icon.tone-2{
  background:linear-gradient(145deg,#20c78d,#078d69) !important;
  color:#fff !important;
  box-shadow:0 5px 12px rgba(8,153,114,.16);
}
body.buc-app[data-buc-theme="light"] .buc-noir-kpi .buc-kpi-icon.tone-3{
  background:linear-gradient(145deg,#f25588,#c9235e) !important;
  color:#fff !important;
  box-shadow:0 5px 12px rgba(216,42,101,.17);
}
body.buc-app[data-buc-theme="light"] .buc-noir-kpi .buc-kpi-icon.tone-4{
  background:linear-gradient(145deg,#ffa341,#df6a06) !important;
  color:#fff !important;
  box-shadow:0 5px 12px rgba(223,115,9,.17);
}
body.buc-app[data-buc-theme="light"] .buc-noir-kpi .buc-kpi-icon.tone-5{
  background:linear-gradient(145deg,#6177ff,#354dcf) !important;
  color:#fff !important;
  box-shadow:0 5px 12px rgba(55,75,208,.16);
}
body.buc-app[data-buc-theme="light"] .buc-noir-kpi .buc-kpi-icon svg{
  color:#fff!important;stroke:#fff!important;
  stroke-width:2.05;
}
/* Richer light-mode chart line, points, bars, ring and legend. */
body.buc-app[data-buc-theme="light"] .buc-noir-graph polyline{stroke:var(--buc-dash-line)}
body.buc-app[data-buc-theme="light"] .buc-noir-graph circle{fill:var(--buc-dash-point)}
body.buc-app[data-buc-theme="light"] .buc-noir-graph stop:first-child{stop-color:var(--buc-dash-gradient);stop-opacity:.29}
body.buc-app[data-buc-theme="light"] .buc-noir-graph stop:last-child{stop-color:var(--buc-dash-gradient);stop-opacity:0}
body.buc-app[data-buc-theme="light"] .buc-bar-track span{
  background:linear-gradient(90deg,#6b3ef3,#8950ff);
}
body.buc-app[data-buc-theme="light"] .buc-legend-dot{filter:saturate(1.1)}
body.buc-app[data-buc-theme="light"] .buc-chart-legend strong,
body.buc-app[data-buc-theme="light"] .buc-donut-num{color:var(--buc-text);fill:var(--buc-text)}
/* Master-only console: keep branding and actions inside the 230px sidebar. */
body.buc-app .buc-platform-shell .buc-platform-side{min-width:220px;width:220px;flex:0 0 220px;box-sizing:border-box;overflow-x:hidden;padding:18px 10px}
body.buc-app .buc-platform-brand{width:100%;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:3px 8px 16px;box-sizing:border-box;overflow:hidden}
body.buc-app .buc-platform-brand img{display:block;width:100%;max-width:175px;max-height:46px;object-fit:contain;object-position:left center}
body.buc-app .buc-platform-tag{display:block;max-width:100%;font-size:10px;letter-spacing:.12em;white-space:normal;overflow-wrap:anywhere;color:#9eafc7;font-weight:650}
body.buc-app .buc-platform-nav{width:100%;min-width:0;display:grid;gap:6px;padding:0 6px;box-sizing:border-box}
body.buc-app .buc-platform-nav button{box-sizing:border-box;width:100%;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left!important;padding:10px 12px}
body.buc-app .buc-platform-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
body.buc-app .buc-platform-filter-grid label{min-width:0}
body.buc-app .buc-platform-filter-grid input,body.buc-app .buc-platform-filter-grid select{max-width:100%;width:100%;box-sizing:border-box}
body.buc-app .buc-platform-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin:18px 0}
body.buc-app .buc-platform-stat{padding:18px;display:flex;flex-direction:column;gap:10px;min-width:0}
body.buc-app .buc-platform-stat span{font-size:12px;opacity:.8}
body.buc-app .buc-platform-stat strong{font-size:28px}
body.buc-app .buc-platform-chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;margin:18px 0}
body.buc-app .buc-platform-chart{padding:20px;min-width:0;overflow:hidden}
body.buc-app .buc-platform-chart h3{font-size:16px;margin:0 0 15px}
@media(max-width:720px){body.buc-app .buc-platform-shell{display:flex;flex-direction:column}body.buc-app .buc-platform-shell .buc-platform-side{width:100%;flex-basis:auto;min-width:0;padding:12px}body.buc-app .buc-platform-nav{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}}
