/* All surfaces use the existing theme palette. */
html #content .mp177-home{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;max-width:1500px;margin:auto;color:var(--t-text)}
.mp177-home *{box-sizing:border-box}.mp177-welcome{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:4px 2px 2px}.mp177-welcome p{color:var(--t-muted);font-size:12px;margin:0 0 8px}.mp177-welcome h2{font-size:30px;margin:0;font-weight:800}.mp177-welcome>span{font-size:13px;color:var(--t-muted)}
.mp177-work,.mp177-agenda{display:flex;flex-direction:column;gap:22px;min-width:0}.mp177-card{background:var(--t-surface);border:1px solid var(--t-line);border-radius:17px;padding:22px;box-shadow:0 7px 22px #0000000c;min-width:0}.mp177-card h3{display:flex;align-items:center;gap:9px;font-size:16px;margin:0 0 20px;font-weight:750}.mp177-card h3>svg{color:var(--t-accent);width:20px;height:20px}.mp177-sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.mp177-sectionhead h3{margin:0}.mp177-home button,.mp177-dialog button{font:inherit;color:var(--t-text);background:var(--t-surface);border:1px solid var(--t-line);border-radius:9px;padding:9px 12px;cursor:pointer}.mp177-home button:hover,.mp177-dialog button:hover{border-color:var(--t-accent);background:var(--t-soft);box-shadow:0 3px 10px #00000014}.mp177-home button:focus-visible,.mp177-dialog :focus-visible{outline:2px solid var(--t-accent);outline-offset:3px}.mp177-home button:disabled,.mp177-dialog button:disabled{opacity:.45;cursor:default}.mp177-muted{font-size:12px;color:var(--t-muted);line-height:1.6}
.mp177-favorites{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.mp177-favorite{display:flex!important;flex-direction:column;gap:14px;text-align:left!important;min-height:145px!important;position:relative;padding:18px!important;border-radius:12px!important;background:var(--t-surface2)!important}.mp177-favorite>span,.mp177-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:var(--t-soft);color:var(--t-soft-text)}.mp177-favorite svg,.mp177-icon svg{width:23px;height:23px}.mp177-favorite strong{font-size:13px;font-weight:700;line-height:1.4}.mp177-favorite>b{position:absolute;right:14px;top:14px;color:var(--t-muted)}
.mp177-activity{width:100%;border-width:0 0 1px!important;border-radius:0!important;display:flex;align-items:center;gap:14px;padding:15px 0!important;text-align:left}.mp177-activity>span:nth-child(2){flex:1;min-width:0}.mp177-activity strong,.mp177-activity small{display:block}.mp177-activity strong{font-size:13px;margin-bottom:6px}.mp177-activity small{color:var(--t-muted);font-size:11px}.mp177-home .mp98-home-title{display:flex;gap:8px;align-items:center}.mp177-home .mp98-home-title h3{margin:0;font-size:15px}.mp177-home .mp98-home-title p{color:var(--t-muted);font-size:11px}.mp177-home .mp98-home-count{margin-left:auto;font-size:26px;font-weight:800}.mp177-home .mp98-home-link{width:100%;margin-top:16px;display:flex;justify-content:space-between}.mp177-home .mp98-home-item{padding:13px 0;display:flex;gap:12px;border-bottom:1px solid var(--t-line)}.mp177-home .mp98-home-date{display:grid;place-items:center;padding:8px;border-radius:9px;background:var(--t-soft);color:var(--t-soft-text);min-width:53px}.mp177-home .mp98-home-detail{display:flex;flex-direction:column;gap:8px;font-size:12px}.mp177-home .mp98-home-detail small{color:var(--t-muted)}
.mp177-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}.mp177-calendar>b{font-size:10px;color:var(--t-muted);padding:8px 0}.mp177-calendar>button{padding:8px 1px;font-size:12px;border-color:transparent}.mp177-calendar>button.today{background:var(--t-accent)!important;color:var(--t-accent-text)!important;font-weight:800}.mp177-standards{grid-column:1/-1;border-top:1px solid var(--t-line);padding:20px 2px;color:var(--t-muted);display:flex;flex-wrap:wrap;gap:12px;font-size:11px}.mp177-standards small{flex-basis:100%;font-size:10px;line-height:1.6}.mp177-standards strong{font-weight:600}
.mp177-dialog{width:min(680px,94vw);max-height:88vh;overflow:auto;background:var(--t-surface);color:var(--t-text);border:1px solid var(--t-line);border-radius:18px;padding:26px;box-shadow:0 24px 80px #0006}.mp177-dialog::backdrop{background:#08152b88;backdrop-filter:blur(3px)}.mp177-dialog h2{font-size:21px;margin:0 0 20px}.mp177-dialog p{line-height:1.6;font-size:13px}.mp177-dialog input[type=search],.mp177-dialog select{padding:11px;border:1px solid var(--t-line);background:var(--t-input);color:var(--t-text);border-radius:8px;margin:0 8px 16px 0}.mp177-option{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--t-line)}.mp177-option strong{flex:1;font-size:13px}.mp177-option button svg{width:23px;height:23px}.mp177-option input{accent-color:var(--t-accent);width:18px;height:18px}.mp177-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.mp177-icons{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:20px}.mp177-icons button{display:flex;align-items:center;flex-direction:column;gap:10px}.mp177-icons svg{width:28px;height:28px}.mp177-icons small{font-size:10px}.mp177-icons button[aria-pressed=true]{border-color:var(--t-accent);background:var(--t-soft)}
.mp177-currency-row{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--t-line);font-size:12px}.mp177-chartrow{display:grid;grid-template-columns:170px 1fr 40px;gap:18px;align-items:center;margin:16px 0;font-size:12px}.mp177-chartrow>div{height:9px;border-radius:9px;background:var(--t-surface2);overflow:hidden}.mp177-chartrow i{display:block;height:100%;border-radius:9px;background:var(--mp177-series,var(--t-accent))}#mp177SupportChart{margin:18px 0 24px}
#mp177RailToggle{background:var(--t-nav);color:var(--t-nav-text);border:1px solid var(--t-line);border-radius:9px;width:40px;min-height:36px;align-self:flex-start;margin-bottom:14px;cursor:pointer}
@media(min-width:701px){html.mp177-compact #app>.sidebar{width:76px!important;min-width:76px!important;padding:16px 10px!important;overflow-y:auto!important;overflow-x:hidden!important}html.mp177-compact .sidebar .brand{min-height:48px!important;padding:0 0 15px!important;justify-content:center!important}html.mp177-compact .sidebar .brand :is(.mp5517-company-logo,.mp5517-fallback){width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;flex-basis:42px!important;padding:3px!important}html.mp177-compact .sidebar :is(.mp5517-company-label,.mp-nav-label,.nav-section,.sidefoot){display:none!important}html.mp177-compact .sidebar .nav{justify-content:center!important;font-size:0!important;padding:12px!important;gap:0!important;min-height:45px!important}html.mp177-compact .sidebar .nav .mp-nav-icon{margin:0!important;flex:0 0 23px!important}html.mp177-compact .sidebar .nav svg{width:22px!important;height:22px!important}html.mp177-compact .sidebar #mpIndicadoresMenu .mp-ind-children{position:static!important;width:100%!important;padding:0!important}html.mp177-compact .sidebar #mpIndicadoresMenu .mp-ind-children button{font-size:0!important}html.mp177-compact .sidebar .nav>span:not(.mp-nav-icon){font-size:0!important}}
/* Extend existing dashboard components, without replacing their metrics or filters. */
html #content :is(.mp-kpi,.mp47-metric,.mp177-metric){position:relative;overflow:hidden;background:var(--t-surface)!important;border:1px solid var(--t-line)!important;border-radius:14px!important;padding:21px 18px 21px 76px!important;box-shadow:0 7px 22px #0000000b!important;min-height:104px}
.mp177-metric-icon{position:absolute;left:17px;top:24px;width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--t-accent) 14%,var(--t-surface));color:var(--t-accent)}.mp177-metric-icon svg{width:24px;height:24px}html #content [data-mp177-metric="1"]>.mp177-metric-icon{background:color-mix(in srgb,#458fea 15%,var(--t-surface));color:#458fea}html #content [data-mp177-metric="2"]>.mp177-metric-icon{background:color-mix(in srgb,#e65874 15%,var(--t-surface));color:#e65874}html #content [data-mp177-metric="3"]>.mp177-metric-icon{background:color-mix(in srgb,#25b68b 15%,var(--t-surface));color:#25b68b}html #content [data-mp177-metric] strong{font-weight:800!important;font-size:28px!important;display:block}html #content :is(.mp-kpi,.mp50-kpi,.mp47-metric) :is(small,span:not(.mp177-metric-icon)){font-weight:600}html #content :is(.mp-report,.mp50-panel,.mp47-card){border-radius:15px!important;box-shadow:0 7px 22px #0000000b!important}
html .mp-currency-select,html .mp-currency-select option{background:var(--t-input)!important;color:var(--t-text)!important;color-scheme:light!important}html[data-mp-theme=dark] .mp-currency-select,html[data-mp-theme=graphite] .mp-currency-select{color-scheme:dark!important}
@media(max-width:1100px){html #content .mp177-home{grid-template-columns:minmax(0,1fr) 290px;gap:16px}.mp177-favorites{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){html #content .mp177-home{grid-template-columns:1fr}.mp177-agenda{display:grid;grid-template-columns:1fr 1fr}.mp177-welcome{align-items:flex-start}.mp177-welcome>span{max-width:40%;text-align:right}}
@media(max-width:560px){.mp177-agenda{display:flex}.mp177-card{padding:16px}.mp177-favorites{gap:9px}.mp177-sectionhead{flex-wrap:wrap}.mp177-welcome h2{font-size:25px}.mp177-icons{grid-template-columns:repeat(3,1fr)}.mp177-option{gap:7px}.mp177-option strong{font-size:11px}.mp177-option button{padding:7px}.mp177-welcome>span{font-size:11px}}
/* Override earlier blanket button rules, including graphite's white background. */
html #app #content .mp177-home button{background:var(--t-surface)!important;color:var(--t-text)!important;border-color:var(--t-line)!important}
html #app #content .mp177-home button strong{color:var(--t-text)!important}
html #app #content .mp177-home button.mp177-favorite{background:var(--t-surface2)!important}
html #app #content .mp177-home button:hover{background:var(--t-soft)!important;color:var(--t-soft-text)!important;border-color:var(--t-accent)!important}
html #app #content .mp177-home .mp177-calendar button.today{background:var(--t-accent)!important;color:var(--t-accent-text)!important}
html #app .top button:not([data-lang]):not([data-language]):not(.mp-flag-btn){background:var(--t-surface)!important;color:var(--t-text)!important;border-color:var(--t-line)!important}
html body dialog.mp177-dialog button{background:var(--t-surface)!important;color:var(--t-text)!important;border-color:var(--t-line)!important}
html body dialog.mp177-dialog button.primary{background:var(--t-accent)!important;color:var(--t-accent-text)!important}
html body dialog.mp177-dialog button[aria-pressed=true]{background:var(--t-soft)!important;border-color:var(--t-accent)!important}
html #content .mp177-metric strong{font-size:clamp(19px,1.7vw,28px)!important;overflow-wrap:anywhere}
@media(min-width:701px){html.mp177-compact #app>.sidebar .mp20-logo-frame{width:42px!important;height:42px!important;min-width:42px!important;flex:0 0 42px!important;border-radius:10px!important;margin:0!important}html.mp177-compact .sidebar .brand>div:not(.mp20-logo-frame){min-width:0!important}}
@media(max-width:560px){.mp177-chartrow{grid-template-columns:110px 1fr 25px;gap:8px}}
@media(min-width:701px){html.mp177-compact .sidebar #mpIndicadoresMenu .mp-ind-children{position:fixed!important;left:76px!important;top:140px!important;width:255px!important;padding:12px!important;max-height:70vh!important;overflow:auto!important;z-index:100!important;background:var(--t-surface)!important;border:1px solid var(--t-line)!important;box-shadow:0 12px 35px #0003!important}html.mp177-compact .sidebar #mpIndicadoresMenu .mp-ind-children button{font-size:12px!important;color:var(--t-text)!important;text-align:left!important;justify-content:flex-start!important;white-space:normal!important}}
