/* Shared typography and spacing for authenticated Billing pages. */
.app-light #app-workspace {
    min-width: 0;
    line-height: 1.45;
}
#app-workspace :is(h1, h2, h3) {
    line-height: 1.25;
    overflow-wrap: anywhere;
}
#app-workspace :is(.panel, .cm-panel, .pm-panel, .dp-box) {
    min-width: 0;
}
#app-workspace :is(.cm-head, .pm-head, .pm-panel-head, .cm-actions, .pm-actions, .nas-scope-pill) {
    flex-wrap: wrap;
}
#app-workspace :is(.cm-btn, .pm-btn, .dp-btn) {
    min-height: 36px;
}
#app-workspace :is(.cm-table-scroll, .pm-table-scroll) {
    max-width: 100%;
    overflow-x: auto;
}
#app-workspace :is(.cm-table-clean, .pm-table) :is(th, td) {
    padding: 10px 12px;
    line-height: 1.4;
}
#app-workspace :is(.cm-table-clean, .pm-table) th {
    font-size: 12px;
    color: #40556d;
}
#app-workspace .cm-table-clean :is(td small, .cm-customer-meta) {
    font-size: 11.5px;
    color: #4e647d;
}
#app-workspace .cm-table-clean :is(.cm-customer-name, .cm-customer-meta > span, .cm-cell-package, .cm-cell-location .cm-address) {
    white-space: normal;
    overflow-wrap: anywhere;
}
#app-workspace .pm-table {
    width: 100%;
    min-width: 760px;
}
#app-workspace .pm-table :is(th, td) {
    white-space: normal;
}
#app-workspace .pm-table td:first-child {
    min-width: 145px;
    overflow-wrap: anywhere;
}
#app-workspace .pm-profile > i {
    flex: none;
}
#app-workspace .pm-pools {
    margin-top: 16px;
}
#app-workspace .pm-pools .pm-table {
    min-width: 420px;
}
#app-workspace .pm-pools td:nth-child(2) {
    overflow-wrap: anywhere;
}
#app-workspace :is(.cm-table-scroll, .pm-table-scroll, .cm-btn, .pm-btn):focus-visible {
    outline: 2px solid #4c46c7;
    outline-offset: -2px;
}
@media (max-width: 600px) {
    #app-workspace :is(.cm-filter, .pm-filter) > :is(input[type="search"], .pm-search) {
        flex: 1 1 100%;
        min-width: 0;
    }
    #app-workspace .pm-kpi {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

/* Billing workspace: aligned controls and figures across daily tasks. */
#app-workspace :is(.cm-head, .pm-head, .iv-head, .dp-heading) {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
#app-workspace :is(.cm-head, .pm-head, .iv-head, .dp-heading) h2 {
    margin: 0;
    font-size: clamp(19px, 2vw, 24px);
    letter-spacing: -.02em;
}
#app-workspace :is(.cm-head, .pm-head, .iv-head) p {
    margin: 4px 0 0;
    color: #495d75;
    font-size: 13px;
}
#app-workspace :is(.cm-actions, .pm-actions, .iv-actions, .cm-filter, .pm-filter, .iv-filter, .iv-panel-head) {
    flex-wrap: wrap;
    gap: 8px;
}
#app-workspace :is(.cm-filter, .pm-filter, .iv-filter) :is(input[type="search"], select) {
    min-height: 38px;
    font-size: 13px;
}
#app-workspace :is(.cm-btn, .pm-btn, .iv-btn, .dp-btn) {
    min-height: 38px;
    font-size: 12px;
}
#app-workspace :is(.cm-table-clean, .pm-table, .iv-table) th {
    background: #eef3f9;
    color: #344b66;
    font-weight: 700;
}
#app-workspace :is(.cm-table-clean, .pm-table, .iv-table) :is(th, td) {
    vertical-align: top;
}
#app-workspace :is(.cm-table-clean, .pm-table, .iv-table) tbody tr:focus-within {
    background: #eef4ff;
}
#app-workspace .iv-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}
#app-workspace .billing-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
#app-workspace .billing-count {
    display: inline-block;
    margin-inline-start: .35em;
    padding: 2px 7px;
    border-radius: 12px;
    background: #e7eef9;
    color: #304a6a;
    font-size: 12px;
}
#app-workspace :is(.cm-table-scroll, .pm-table-scroll, .iv-table-scroll, .iv-btn):focus-visible {
    outline: 2px solid #4c46c7;
    outline-offset: -2px;
}
#app-workspace .cm-kpi[aria-current="true"] {
    outline: 2px solid #4c46c7;
    outline-offset: -2px;
}
@media (max-width: 600px) {
    #app-workspace .iv-filter input[type="search"] {
        flex: 1 1 100%;
        min-width: 0;
    }
}

#app-workspace .billing-danger {
    background: #b42332;
    border-color: #b42332;
    color: #fff;
}
#app-workspace .cm-row-actions {
    flex-wrap: wrap;
}

/* Common reading hierarchy for the Billing application and its account screens. */
body.app-light {
    --billing-weight-normal: 400;
    --billing-weight-medium: 500;
    --billing-weight-heading: 600;
    --billing-text-size: 13px;
    --billing-control-radius: 8px;
    --billing-control-focus: #4c46c7;
    --billing-motion: 140ms cubic-bezier(.2, .65, .3, 1);
    font-weight: var(--billing-weight-normal);
    text-rendering: optimizeLegibility;
}
body.app-light #app-workspace {
    font-size: var(--billing-text-size);
    line-height: 1.5;
}
#app-workspace :is(h1, h2, h3, h4) {
    font-weight: var(--billing-weight-heading);
    letter-spacing: -.012em;
}
#app-workspace :is(b, strong, label, summary, dt, dd) {
    font-weight: var(--billing-weight-medium);
}
#app-workspace :is(button, .btn, .cc-btn, .nm-button, .nas-btn, .cm-btn, .pm-btn, .iv-btn, .dp-btn, .um-btn, .ps-btn, .hs-btn, .pr-btn, .st-ticket-btn, .ua-btn, .wa-btn) {
    font-weight: var(--billing-weight-medium);
}
#app-workspace :is(input, select, textarea) {
    font-weight: var(--billing-weight-normal);
}
#app-workspace :is(table th, table td) {
    line-height: 1.45;
}
#app-workspace table th {
    font-weight: var(--billing-weight-medium);
    letter-spacing: .008em;
}
#app-workspace :is(.dp-stat, .cm-kpi, .pm-kpi, .um-kpi, .nm-kpi, .ul-stat) strong,
#app-workspace :is(.dp-money strong, .nas-detail-metric, .iv-pay-total strong) {
    font-weight: var(--billing-weight-heading);
    font-variant-numeric: tabular-nums;
}
#app-workspace :is(.app-header-title small, .cm-eyebrow, .nm-kicker) {
    font-weight: var(--billing-weight-medium);
    letter-spacing: .065em;
}
#app-workspace :is(.dp-badge, .ul-state, .nm-status, .cm-pill, .pm-tag, .iv-tag, .um-role, .um-status, .ps-pill) {
    font-weight: var(--billing-weight-medium);
}
#app-sidebar :is(.app-nav-link, .app-nav-text) {
    font-weight: var(--billing-weight-normal);
}
#app-sidebar .app-nav-link.active .app-nav-text {
    font-weight: var(--billing-weight-medium);
}
#app-sidebar .app-nav-heading {
    font-weight: var(--billing-weight-medium);
    letter-spacing: .045em;
}
#app-sidebar .smarttech-brand-text strong {
    font-weight: var(--billing-weight-heading);
}
body.app-light :is(.st-onboard, .login) :is(h1, h2, h3) {
    font-weight: var(--billing-weight-heading);
    letter-spacing: -.012em;
}
body.app-light :is(.st-onboard, .login) :is(button, label, strong, b, .st-brand-tag, .st-eyebrow, .st-login-link, .st-primary) {
    font-weight: var(--billing-weight-medium);
}

/* Shared interaction treatment. Icon buttons retain their module-specific shapes. */
#app-workspace :is(.btn, .cc-btn, .nm-button, .nas-btn, .cm-btn, .pm-btn, .iv-btn, .dp-btn, .um-btn, .ps-btn, .hs-btn, .pr-btn, .st-ticket-btn, .ua-btn, .wa-btn),
body.app-light :is(.st-onboard, .login) :is(.st-primary, button[type="submit"]) {
    border-radius: var(--billing-control-radius);
    line-height: 1.3;
}
#app-workspace :is(button, .btn, .cc-btn, .nm-button, .nas-btn, .cm-btn, .pm-btn, .iv-btn, .dp-btn, .um-btn, .ps-btn, .hs-btn, .pr-btn, .st-ticket-btn, .ua-btn, .wa-btn),
body.app-light :is(.st-onboard, .login) button {
    transition:
        background-color var(--billing-motion),
        border-color var(--billing-motion),
        color var(--billing-motion),
        box-shadow var(--billing-motion),
        filter var(--billing-motion);
}
@media (hover: hover) {
    #app-workspace :is(button, .btn, .cc-btn, .nm-button, .nas-btn, .cm-btn, .pm-btn, .iv-btn, .dp-btn, .um-btn, .ps-btn, .hs-btn, .pr-btn, .st-ticket-btn, .ua-btn, .wa-btn):not(:disabled, [aria-disabled="true"]):hover,
    body.app-light :is(.st-onboard, .login) button:enabled:hover {
        filter: brightness(.96);
    }
}
#app-workspace :is(button, .btn, .cc-btn, .nm-button, .nas-btn, .cm-btn, .pm-btn, .iv-btn, .dp-btn, .um-btn, .ps-btn, .hs-btn, .pr-btn, .st-ticket-btn, .ua-btn, .wa-btn):not(:disabled, [aria-disabled="true"]):active,
body.app-light :is(.st-onboard, .login) button:enabled:active {
    filter: brightness(.91);
}
#app-workspace :is(button, input, select, textarea, a, summary):focus-visible,
body.app-light :is(.st-onboard, .login) :is(button, input, select, textarea, a):focus-visible {
    outline: 2px solid var(--billing-control-focus);
    outline-offset: 2px;
}
#app-workspace :is(button:disabled, [aria-disabled="true"]) { cursor: not-allowed; }
#app-sidebar .app-nav-link {
    transition: background-color var(--billing-motion), border-color var(--billing-motion), color var(--billing-motion);
}
#app-sidebar .app-nav-link:focus-visible {
    outline: 2px solid #b9c2ff;
    outline-offset: -2px;
}
#app-workspace :is(.cm-subbar, .pm-foot, .iv-foot, .nm-panel-foot, .dp-chart-note) {
    line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
    body.app-light { --billing-motion: 0ms; }
}

/* Autosize Billing on narrow viewports, including installed Android windows. */
@media (max-width: 600px) {
  body.app-light #app-workspace {box-sizing:border-box;max-width:100%;padding-inline:clamp(8px,2.5vw,14px)}
  #app-workspace :is(.panel,.dp-box,.iv-panel,.um-panel,.nas-detail-view,.finance-services-group,.nas-config-inline) {box-sizing:border-box;min-width:0;max-width:100%}
  #app-workspace :is(.scroll,.table,.cm-table-scroll,.pm-table-scroll,.iv-table-scroll) {max-width:100%;min-width:0;overflow-x:auto}
  #app-workspace :is(.dp-strip.customers,.dp-strip.bills,.nas-detail-metrics) {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #app-workspace :is(.dp-finance,.finance-services-grid) {grid-template-columns:minmax(0,1fr)}
  #app-workspace :is(.dp-chart,.dp-fin-column,.dp-stat,.nas-detail-metrics article) {min-width:0;overflow-wrap:anywhere}
  #app-workspace :is(.dp-box-head,.iv-head,.iv-actions,.nas-detail-actions) {flex-wrap:wrap;gap:8px}
  #app-workspace :is(.nas-detail-header,.nas-detail-card-heading) {flex-wrap:wrap;gap:12px}
  #app-workspace .nas-detail-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
  #app-workspace :is(.app-user-trigger,.nas-global-switch select) {min-height:40px}
  #app-workspace :is(dialog,.nas-modal,.um-modal) {box-sizing:border-box;max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);overflow:auto}
  .billing-install-button {inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) auto;max-width:calc(100vw - 24px)}
}
@media (max-width: 360px) {
  #app-workspace :is(.dp-strip.customers,.dp-strip.bills,.nas-detail-metrics,.nas-detail-fields) {grid-template-columns:minmax(0,1fr)}
}

html body #app-workspace .app-user-dropdown .app-user-panel {
 --profile-menu-line:#cfdaeb;
 --profile-menu-hover:#edf2fb;
 width:min(19rem,calc(100vw - 2rem));
 padding:6px;
 border-radius:11px;
 background:#fff!important;
 color:#24344e!important;
}
html[data-billing-theme="dark"] body #app-workspace .app-user-dropdown .app-user-panel {
 --profile-menu-line:#465771;
 --profile-menu-hover:#30415c;
 background:#222e43!important;color:#eef2fc!important;
}
.app-user-panel .app-user-panel-title {display:block;padding:9px 11px;border-bottom:1px solid var(--profile-menu-line)}
.app-user-panel .app-user-identity {
 display:flex;align-items:center;gap:10px;padding:12px 11px;
 margin-bottom:4px;border-bottom:1px solid var(--profile-menu-line);
}
.app-user-panel .app-user-identity > div {min-width:0;overflow-wrap:anywhere}
.app-user-panel .app-user-identity small {display:block;margin-top:2px}
html body #app-workspace .app-user-panel .app-user-item {border-radius:6px}
html body #app-workspace .app-user-panel .app-user-item:hover {background:var(--profile-menu-hover)!important}

html body #app-workspace .app-user-panel .app-user-theme {
 width:100%;justify-content:flex-start;margin:0;
 color:inherit;background:transparent;border:0;box-shadow:none;
}

/* Shared interaction polish for the signed-in workspace. */
#app-workspace :is(.app-user-trigger,.app-user-item,button,[role="button"]),
#app-sidebar .app-nav-link {
 -webkit-tap-highlight-color:transparent;
}
#app-workspace :is(.app-user-panel,.iv-row-menu,.pm-row-menu .pm-actions[popover],.cm-row-actions[popover]) {
 box-shadow:0 6px 18px #14254026;
}
html[data-billing-theme="dark"] #app-workspace :is(.app-user-panel,.iv-row-menu,.pm-row-menu .pm-actions[popover],.cm-row-actions[popover]) {
 box-shadow:0 6px 18px #050a1b65;
}
#app-workspace :is(.billing-number,.iv-number,.pm-price,.cm-cell-number) {
 font-variant-numeric:tabular-nums;
}
@media (prefers-reduced-motion:no-preference) {
 #app-sidebar .app-nav-link,
 #app-workspace :is(.app-user-item,.iv-row-menu a,.cm-row-actions[popover] a) {
  transition:background-color 150ms ease,border-color 150ms ease,color 150ms ease;
 }
}

/* Summary cards share a flat surface and inherit the active theme. */
html body #app-workspace#app-workspace :is(
 .dp-stat,.cc-kpi,.cm-kpi,.iv-kpi,.nm-kpi,.pm-kpi,.pr-kpi,.um-kpi,.st-ticket-kpi,
 .nas-detail-metrics > article,.ul-stat,.dp-monitor > article,.dp-money,
 .hs-kpis > article,.vpn-overview > .panel,
 .pc-page .pc-dashboard-cards .pc-metric,.pc-page .pc-wd-stats .pc-metric
) {
 background:transparent!important;
 border:1px solid var(--glass-border,var(--billing-border,#8497b45c))!important;
 box-shadow:none!important;
 text-shadow:none!important;
 transform:none!important;
 translate:none!important;
 transition:none!important;
}
html body #app-workspace#app-workspace :is(
 .dp-stat,.cc-kpi,.cm-kpi,.iv-kpi,.nm-kpi,.pm-kpi,.pr-kpi,.um-kpi,.st-ticket-kpi,
 .nas-detail-metrics > article,.ul-stat,.dp-monitor > article,.dp-money,
 .hs-kpis > article,.vpn-overview > .panel,
 .pc-page .pc-dashboard-cards .pc-metric,.pc-page .pc-wd-stats .pc-metric
) :is(strong,dt,dd,small) {
 color:var(--billing-text,inherit)!important;
 text-shadow:none!important;
}
html body #app-workspace#app-workspace :is(
 .dp-stat,.cc-kpi,.cm-kpi,.iv-kpi,.nm-kpi,.pm-kpi,.pr-kpi,.um-kpi,.st-ticket-kpi,
 .hs-kpis > article,.vpn-overview > .panel
) > :is(i,.vpn-icon,.billing-kpi-icon,.st-ticket-kpi-icon) {
 background:transparent!important;
 color:var(--billing-text,inherit)!important;
 border-color:transparent!important;
 box-shadow:none!important;
 filter:none!important;
}

#app-workspace .app-header-title h1 {
 display:flex;
 align-items:center;
 gap:8px;
 min-width:0;
}
#app-workspace .app-header-title h1 > span {min-width:0;overflow-wrap:anywhere}
#app-workspace .app-header-title .app-page-icon {
 display:block;
 flex:0 0 22px;
 width:22px;
 height:22px;
 object-fit:contain;
}
html[data-billing-theme="dark"] #app-workspace .app-header-title .app-page-icon {
 filter:drop-shadow(0 0 .4px #d5e3ff);
}
@media(max-width:520px){
 #app-workspace .app-header-title h1 {gap:6px}
 #app-workspace .app-header-title .app-page-icon {flex-basis:18px;width:18px;height:18px}
}

#app-workspace .billing-kpi-png {object-fit:contain;vertical-align:middle;flex:none}
html body #app-workspace .nm-kpi > .nm-symbol {background:transparent!important;box-shadow:none!important;border-color:transparent!important}
#app-workspace .cm-kpi > .cm-kpi-png {float:inline-end;margin-inline-start:6px}

/* Dashboard glyph assets are white; tint the image itself on flat cards. */
#app-workspace {
 --kpi-png-blue:brightness(0) saturate(100%) invert(36%) sepia(54%) saturate(983%) hue-rotate(179deg);
 --kpi-png-green:brightness(0) saturate(100%) invert(39%) sepia(48%) saturate(968%) hue-rotate(120deg);
 --kpi-png-amber:brightness(0) saturate(100%) invert(40%) sepia(80%) saturate(1094%) hue-rotate(11deg);
 --kpi-png-red:brightness(0) saturate(100%) invert(31%) sepia(77%) saturate(1560%) hue-rotate(330deg);
}
html[data-billing-theme="dark"] #app-workspace {
 --kpi-png-blue:brightness(0) saturate(100%) invert(75%) sepia(35%) saturate(885%) hue-rotate(183deg);
 --kpi-png-green:brightness(0) saturate(100%) invert(78%) sepia(52%) saturate(474%) hue-rotate(93deg);
 --kpi-png-amber:brightness(0) saturate(100%) invert(83%) sepia(49%) saturate(628%) hue-rotate(339deg);
 --kpi-png-red:brightness(0) saturate(100%) invert(77%) sepia(43%) saturate(1137%) hue-rotate(302deg);
}
html body #app-workspace#app-workspace :is(.dp-stat,.cm-kpi,.iv-kpi,.nm-kpi,.pm-kpi,.pr-kpi,.um-kpi,.st-ticket-kpi,.hs-kpis,.dp-monitor) img[src^="brand/dashboard/"] {
 filter:var(--kpi-png-blue)!important;
}
html body #app-workspace#app-workspace img:is([src$="/check-circle-fill.png"],[src$="/reception-4.png"])[src^="brand/dashboard/"] {
 filter:var(--kpi-png-green)!important;
}
html body #app-workspace#app-workspace img:is([src$="/clock-history.png"],[src$="/hourglass-split.png"])[src^="brand/dashboard/"] {
 filter:var(--kpi-png-amber)!important;
}
html body #app-workspace#app-workspace img:is([src$="/lock-fill.png"],[src$="/exclamation-triangle-fill.png"])[src^="brand/dashboard/"] {
 filter:var(--kpi-png-red)!important;
}

/* Module titles share the workspace palette in both themes. */
html body #app-workspace :is(
    .cm-head, .pm-head, .iv-head, .pr-head, .um-head,
    .nas-alone-heading, .nas-inventory-heading, .ic-hero, .vpn-hero,
    .finance-services-heading, .about-hero, .dp-overview,
    .wa-heading, .hs-heading, .ua-head
):has(h2) {
    color: var(--billing-text, var(--app-ink));
    background: var(--billing-panel, var(--app-bg));
    border: 1px solid var(--billing-border, var(--app-line));
    border-radius: 12px;
    padding: clamp(14px, 2vw, 22px);
    box-shadow: none;
    flex-wrap: wrap;
    min-width: 0;
}
html body #app-workspace :is(
    .cm-head, .pm-head, .iv-head, .pr-head, .um-head,
    .nas-alone-heading, .nas-inventory-heading, .ic-hero, .vpn-hero,
    .finance-services-heading, .about-hero, .dp-overview,
    .wa-heading, .hs-heading, .ua-head
) h2 {
    color: var(--billing-text, var(--app-ink));
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.015em;
    margin: 0;
    text-shadow: none;
}
html body #app-workspace :is(
    .cm-head, .pm-head, .iv-head, .pr-head, .um-head,
    .nas-alone-heading, .nas-inventory-heading, .ic-hero, .vpn-hero,
    .finance-services-heading, .about-hero, .dp-overview,
    .wa-heading, .hs-heading, .ua-head
):has(h2) :is(p):not(form p) {
    color: var(--billing-muted, var(--app-muted));
    font-size: .8125rem;
    line-height: 1.5;
    margin: 4px 0 0;
}

/* Keep the NAS progress dialog aligned with the active theme. */
html body.app-light #app-workspace dialog#nas-sync-loading {
    background: var(--ui-card, #fff) !important;
    border-color: var(--ui-line, #d3dfe5) !important;
    color: var(--ui-text, #203142) !important;
}
html body.app-light #app-workspace #nas-sync-loading h2 {
    background: var(--billing-raised, #f2f7f8);
    border-color: var(--ui-line, #d3dfe5);
    color: var(--ui-text, #203142);
}
html body.app-light #app-workspace #nas-sync-loading :is(time, .nas-sync-progress strong) {
    color: var(--ui-muted, #526779);
}
html body.app-light #app-workspace #nas-sync-loading time { flex-shrink: 0; }
html body.app-light #app-workspace #nas-sync-loading .nas-sync-spinner {
    border-color: var(--ui-line, #d3dfe5);
    border-top-color: var(--ui-marker, #e87917);
}

/* The customer cards render a PNG directly. */
html body #app-workspace .cm-kpi[data-ppp-kpi]:has(> .cm-kpi-png)::before,
html body #app-workspace .cm-kpi[data-ppp-kpi]:has(> .cm-kpi-png)::after {
    content: none;
}
html body #app-workspace .cm-kpi[data-ppp-kpi]:has(> .cm-kpi-png) {
    padding-inline-end: 12px;
}

#app-workspace .nas-detail-metrics > article {
    display: grid;
    grid-template-rows: auto minmax(32px, auto) auto;
    align-content: start;
    gap: 4px;
    min-width: 0;
}

#app-workspace .nas-detail-metrics .nas-detail-metric {
    min-height: 0;
    line-height: 1.2;
}

#app-workspace .nas-detail-view :is(.nas-detail-metrics h3, #nas-api-title) {
    display: flex;
    align-items: center;
    gap: 7px;
}
#app-workspace .nas-detail-view .nas-heading-png {
    flex: none;
    object-fit: contain;
    filter: var(--kpi-png-blue);
}
#app-workspace .nas-detail-view .nas-heading-png[src$="/clock-history.png"] {
    filter: var(--kpi-png-amber);
}

#app-workspace .iv-review-head :is(#iv-review-title, #checker-history-title) {
    display: flex;
    align-items: center;
    gap: 7px;
}
#app-workspace .iv-review-head .checker-heading-png {
    flex: none;
    object-fit: contain;
    filter: var(--kpi-png-blue);
}

html[data-billing-theme="dark"] #app-workspace .app-header-title .app-page-icon {
    filter: var(--kpi-png-blue);
}
#app-workspace h3.dp-heading-with-png {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 7px;
}
#app-workspace .dp-heading-with-png img {
    flex: none;
    object-fit: contain;
    filter: var(--kpi-png-blue);
}
#app-workspace .ul-box .dp-heading-with-png img {
    filter: var(--kpi-png-green);
}

#app-workspace .app-header-datacenter {
    display:block;
    flex:0 1 clamp(56px,10vw,138px);
    min-inline-size:0;
    max-block-size:42px;
    margin-inline-start:clamp(0px,1.4vw,14px);
}
#app-workspace .app-header-datacenter img {
    display:block;
    width:100%;
    height:auto;
    max-height:42px;
    object-fit:contain;
}
@media(max-width:600px){
    #app-workspace .app-header-datacenter {
        flex-basis:66px;
        margin-inline-start:0;
    }
}

#app-workspace .app-header-datacenter[data-nas-state="offline"] img {
    filter:grayscale(1) brightness(.7);
    opacity:.65;
}
#app-workspace .app-header-datacenter[data-nas-state="offline"]::before {display:none}

html body #app-workspace .company-about .about-hero h2 {
    color: var(--billing-text, var(--app-ink)) !important;
}
html body #app-workspace .company-about .about-hero p {
    color: var(--billing-muted, var(--app-muted)) !important;
}
#app-workspace .about-build {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-inline-start: auto;
    padding: 8px 10px;
    border: 1px solid var(--billing-border, var(--app-line));
    border-radius: 8px;
    color: var(--billing-text, var(--app-ink));
    font-size: .8rem;
}
#app-workspace .about-build span { font-variant-numeric: tabular-nums; }

#app-workspace .app-website-health {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 8px;
    border: 1px solid var(--billing-border, var(--app-line));
    background: var(--billing-panel, var(--app-bg));
    color: var(--billing-text, var(--app-ink));
    font-size: .75rem;
    white-space: nowrap;
    cursor: pointer;
}
.app-website-health span { font-weight: 650; }
#app-workspace .app-website-health-icon { flex: none; color: currentColor; }
#app-workspace .app-website-health[data-state=ok] .app-website-health-icon { color: #19ad79; }
#app-workspace .app-website-health[data-state=slow] .app-website-health-icon { color: #df9427; }
#app-workspace .app-website-health[data-state=error] .app-website-health-icon { color: #e65464; }

html body #app-workspace > .app-dashboard-header .app-header-left {
    flex: 0 0 auto;
    min-inline-size: max-content;
    align-items: center;
}
html body #app-workspace > .app-dashboard-header .app-header-title h1 > span {
    white-space: nowrap;
    overflow-wrap: normal;
}
html body #app-workspace > .app-dashboard-header .app-header-datacenter {
    flex: 0 0 clamp(54px,6vw,96px);
    margin-inline-start: clamp(0px,1vw,10px);
}
#app-workspace > .app-dashboard-header .app-website-health {
    min-block-size: 32px;
    flex: 0 0 auto;
}
@media (min-width: 761px) {
    html body #app-workspace > .app-dashboard-header { flex-wrap: wrap; row-gap: 8px; }
    html body #app-workspace > .app-dashboard-header .app-top-right {
        flex: 1 1 auto;
        min-width: 0;
        align-items: center;
        column-gap: 7px;
    }
}
@media (max-width: 1050px) {
    html body #app-workspace > .app-dashboard-header .app-header-datacenter { display: none; }
}
