/* ICU (since 2026-10-25, previous look kept as icuold).
   Charcoal chrome, warm paper surfaces, ICU orange (#e18409) as a precise accent,
   forest green (#0b5233) as the quiet second voice. Light theme on the humanistic-dark bundle
   (inverted base scale like ICU: base-50 = darkest text, base-900 = white surface). */

:root {
    /* ICU2 palette */
    --icu-orange: #e18409;
    --icu-orange-bright: #f39a26;
    --icu-orange-ink: #985503;
    --icu-orange-soft: #fcf3e6;
    --icu-orange-tint: rgba(225, 132, 9, 0.14);
    --icu-green: #0b5233;
    --icu-green-bright: #13734a;
    --icu-green-soft: #e9f2ed;
    --icu-black: #121212;
    --icu-chrome: #151515;
    --icu-chrome-raised: #1c1c1c;
    --icu-chrome-line: rgba(255, 255, 255, 0.07);
    --icu-chrome-text: rgba(255, 255, 255, 0.88);
    --icu-chrome-muted: rgba(255, 255, 255, 0.58);
    --icu-paper: #eee9e2;
    --icu-surface-subtle: #faf9f7;
    --icu-hairline: #ece9e3;
    --icu-line: #dcd8d0;

    --rz-white: #ffffff;
    --rz-black: #000000;

    /* Base scale: dark text tones at 50 -> bright surfaces at 900 (warm neutral) */
    --rz-base: #2b2a27;
    --rz-base-50: #121212;
    --rz-base-100: #2b2a27;
    --rz-base-200: #45433f;
    --rz-base-300: #5a5752;
    --rz-base-400: #6b6760;
    --rz-base-500: #a19d95;
    --rz-base-600: #d6d2ca;
    --rz-base-700: #e9e6e0;
    --rz-base-800: #f4f2ee;
    --rz-base-900: #ffffff;
    --rz-base-light: var(--rz-base-600);
    --rz-base-lighter: var(--rz-base-900);
    --rz-base-dark: var(--rz-base-200);
    --rz-base-darker: var(--rz-base-50);

    --rz-primary: #e18409;
    --rz-primary-light: #f39a26;
    --rz-primary-lighter: rgba(225, 132, 9, 0.16);
    --rz-primary-dark: #c27006;
    --rz-primary-darker: #8f5104;

    --rz-secondary: #0b5233;
    --rz-secondary-light: #13734a;
    --rz-secondary-lighter: rgba(11, 82, 51, 0.12);
    --rz-secondary-dark: #08402a;
    --rz-secondary-darker: #052e1e;

    --rz-info: #5b6b7a;
    --rz-info-light: #8a98a5;
    --rz-info-lighter: rgba(91, 107, 122, 0.14);
    --rz-info-dark: #46535f;
    --rz-info-darker: #333d46;

    --rz-success: #22863a;
    --rz-success-light: #40c057;
    --rz-success-lighter: rgba(34, 134, 58, 0.14);
    --rz-success-dark: #176b2c;
    --rz-success-darker: #0f4f20;

    --rz-warning: #f2c200;
    --rz-warning-light: #ffd84d;
    --rz-warning-lighter: rgba(242, 194, 0, 0.18);
    --rz-warning-dark: #c99d00;
    --rz-warning-darker: #806400;

    --rz-danger: #c9332b;
    --rz-danger-light: #dd5a52;
    --rz-danger-lighter: rgba(201, 51, 43, 0.12);
    --rz-danger-dark: #a82923;
    --rz-danger-darker: #85211c;

    --rz-on-base: #ffffff;
    --rz-on-base-light: #2b2a27;
    --rz-on-base-lighter: #2b2a27;
    --rz-on-base-dark: #ffffff;
    --rz-on-base-darker: #ffffff;

    --rz-on-primary: #121212;
    --rz-on-primary-light: #121212;
    --rz-on-primary-lighter: #7a4503;
    --rz-on-primary-dark: #121212;
    --rz-on-primary-darker: #ffffff;

    --rz-on-secondary: #ffffff;
    --rz-on-secondary-light: #ffffff;
    --rz-on-secondary-lighter: #0b5233;
    --rz-on-secondary-dark: #ffffff;
    --rz-on-secondary-darker: #ffffff;

    --rz-on-info: #ffffff;
    --rz-on-info-light: #121212;
    --rz-on-info-lighter: #36424d;
    --rz-on-info-dark: #ffffff;
    --rz-on-info-darker: #ffffff;

    --rz-on-success: #ffffff;
    --rz-on-success-light: #102a16;
    --rz-on-success-lighter: #155724;
    --rz-on-success-dark: #ffffff;
    --rz-on-success-darker: #ffffff;

    --rz-on-warning: #1c1a14;
    --rz-on-warning-light: #1c1a14;
    --rz-on-warning-lighter: #6b5500;
    --rz-on-warning-dark: #1c1a14;
    --rz-on-warning-darker: #ffffff;

    --rz-on-danger: #ffffff;
    --rz-on-danger-light: #121212;
    --rz-on-danger-lighter: #8a211b;
    --rz-on-danger-dark: #ffffff;
    --rz-on-danger-darker: #ffffff;

    /* Series palette: orange, ink and green first, then calm companions */
    --rz-series-1: #e18409;
    --rz-series-2: #0b5233;
    --rz-series-3: #2b2a27;
    --rz-series-4: #f3b25f;
    --rz-series-5: #4f8f72;
    --rz-series-6: #8a8580;
    --rz-series-7: #b8620a;
    --rz-series-8: #7fb59a;
    --rz-series-9: #5b6b7a;
    --rz-series-10: #f7d2a2;
    --rz-series-11: #13734a;
    --rz-series-12: #c9332b;
    --rz-series-13: #d9a441;
    --rz-series-14: #a9c9b8;
    --rz-series-15: #45433f;
    --rz-series-16: #c7c2b9;
    --rz-series-17: #8f5104;
    --rz-series-18: #2f7897;
    --rz-series-19: #a82923;
    --rz-series-20: #75613f;
    --rz-series-21: #052e1e;
    --rz-series-22: #e9c48d;
    --rz-series-23: #9fb1c0;
    --rz-series-24: #e4e1db;

    /* Typography */
    --rz-root-font-size: 16px;
    --rz-body-font-size: 0.875rem;
    --rz-body-line-height: 1.5;
    --rz-text-font-family: "Source Sans Pro", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --rz-body-background-color: var(--icu-paper);
    --rz-border-width: 1px;
    --rz-outline-offset: 2px;
    --rz-outline-width: 2px;
    --rz-outline-color: rgba(225, 132, 9, 0.55);

    --rz-text-title-color: var(--rz-base-50);
    --rz-text-color: var(--rz-base-100);
    --rz-text-secondary-color: var(--rz-base-300);
    --rz-text-tertiary-color: var(--rz-base-400);
    --rz-text-disabled-color: var(--rz-base-500);
    --rz-text-contrast-color: var(--rz-white);

    --rz-link-color: var(--icu-orange-ink);
    --rz-link-text-decoration: none;
    --rz-link-hover-color: var(--rz-primary-darker);
    --rz-link-hover-text-decoration: underline;
    --rz-link-focus-outline: var(--rz-outline-focus);
    --rz-link-focus-outline-offset: var(--rz-outline-offset);

    /* Surfaces */
    --rz-base-background-color: #ffffff;
    --rz-layout-body-margin: 0;
    --rz-layout-body-padding: 1.25rem;
    --rz-layout-body-border-radius: 0;
    --rz-layout-body-background-color: transparent;

    /* Chrome */
    --rz-header-background-color: var(--icu-chrome);
    --rz-header-color: #ffffff;
    --rz-footer-background-color: var(--icu-chrome);
    --rz-footer-color: var(--icu-chrome-text);
    --rz-footer-padding: 0.5rem 1rem !important;
    --rz-sidebar-background-color: var(--icu-chrome);
    --rz-sidebar-color: var(--icu-chrome-text);

    --rz-panel-menu-background-color: var(--icu-chrome);
    --rz-panel-menu-font-weight: 500;
    --rz-panel-menu-item-color: var(--icu-chrome-text);
    --rz-panel-menu-item-background-color: transparent;
    --rz-panel-menu-item-border: none;
    --rz-panel-menu-item-padding-block: 0.6875rem;
    --rz-panel-menu-item-hover-color: #ffffff;
    --rz-panel-menu-item-hover-background-color: rgba(255, 255, 255, 0.05);
    --rz-panel-menu-item-active-color: #ffffff;
    --rz-panel-menu-item-active-background-color: transparent;
    --rz-panel-menu-item-active-indicator: var(--icu-orange);
    --rz-panel-menu-item-2nd-level-padding-block: 0.5625rem;
    --rz-panel-menu-item-2nd-level-color: var(--icu-chrome-text);
    --rz-panel-menu-item-2nd-level-background-color: transparent;
    --rz-panel-menu-item-2nd-level-hover-background-color: rgba(255, 255, 255, 0.05);
    --rz-panel-menu-item-2nd-level-active-background-color: transparent;
    --rz-panel-menu-item-3rd-level-background-color: transparent;
    --rz-panel-menu-item-3rd-level-hover-background-color: rgba(255, 255, 255, 0.05);
    --rz-panel-menu-item-3rd-level-active-background-color: transparent;
    --rz-panel-menu-text-color: var(--icu-chrome-text);

    /* Menus and dropdowns: soft orange surface, ink text */
    --rz-menu-item-hover-color: var(--icu-black);
    --rz-menu-item-icon-hover-color: var(--icu-orange-ink);
    --rz-menu-item-hover-background-color: var(--icu-orange-soft);
    --rz-menu-item-selected-color: var(--icu-black);
    --rz-menu-item-selected-background-color: rgba(225, 132, 9, 0.18);
    --rz-dropdown-item-hover-background-color: var(--icu-orange-soft);
    --rz-dropdown-item-hover-color: var(--icu-black);
    --rz-dropdown-item-selected-background-color: rgba(225, 132, 9, 0.18);
    --rz-dropdown-item-selected-color: var(--icu-black);

    /* Grid: hairlines, quiet header, warm hover, orange selection */
    --rz-grid-border-radius: 10px;
    --rz-grid-cell-border: 1px solid var(--icu-hairline);
    --rz-grid-bottom-cell-border: 1px solid #f0ede8;
    --rz-grid-right-cell-border: none;
    --rz-grid-header-cell-border: none;
    --rz-grid-header-background-color: var(--icu-surface-subtle);
    --rz-grid-header-color: var(--rz-base-300);
    --rz-grid-header-font-size: 0.72rem;
    --rz-grid-header-font-weight: 600;
    --rz-grid-header-sorted-background-color: #f3efe8;
    --rz-grid-stripe-background-color: #fbfaf8;
    --rz-grid-stripe-odd-background-color: #ffffff;
    --rz-grid-hover-background-color: #fdf6ec;
    --rz-grid-hover-color: var(--icu-black);
    --rz-grid-selected-background-color: #fbe9d1;
    --rz-grid-selected-color: var(--icu-black);
    --rz-grid-cell-focus-background-color: var(--icu-orange-soft);
    --rz-grid-cell-focus-color: var(--icu-black);
    --rz-grid-shadow: 0 1px 2px rgba(18, 18, 18, 0.04);
    --rz-grid-header-filter-icon-active-color: var(--icu-orange-ink);
    --rz-grid-column-resizer-helper-background-color: var(--icu-orange);
    --rz-grid-simple-filter-icon-active-background-color: var(--icu-orange);
    --rz-grid-simple-filter-icon-active-color: var(--icu-black);
    --rz-grid-filter-focus-color: var(--icu-orange-ink);

    /* Pager: ink pill for the current page */
    --rz-pager-numeric-button-background-color: transparent;
    --rz-pager-numeric-button-hover-background-color: var(--rz-base-800);
    --rz-pager-numeric-button-selected-background-color: var(--icu-black);
    --rz-pager-numeric-button-selected-border: 1px solid var(--icu-black);
    --rz-pager-numeric-button-selected-color: #ffffff;
    --rz-pager-back-button-background-color: transparent;
    --rz-pager-next-button-background-color: transparent;
    --rz-pager-button-border-radius: 8px;

    /* Cards, panels, fieldsets */
    --rz-card-border-radius: 12px;
    --rz-card-border: 1px solid var(--icu-hairline);
    --rz-card-shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 6px 20px rgba(18, 18, 18, 0.04);
    --rz-card-flat-background-color: var(--icu-surface-subtle);
    --rz-panel-border-radius: 12px;
    --rz-fieldset-border-radius: 12px;
    --rz-fieldset-padding: 0.75rem !important;
    --rz-fieldset-border: 1px solid var(--icu-hairline) !important;
    --rz-fieldset-legend-color: var(--rz-base-50) !important;
    --rz-fieldset-legend-icon-color: var(--icu-orange) !important;
    --rz-fieldset-toggle-icon-color: var(--icu-orange) !important;
    --rz-fieldset-toggle-background-color: var(--rz-base-800);

    /* Tabs: underline style */
    --rz-tabs-padding: 0 !important;
    --rz-tabs-border-radius: 0;
    --rz-tabs-shadow: none;
    --rz-tabs-background-color: transparent;
    --rz-tabs-tab-background-color: transparent;
    --rz-tabs-tab-color: var(--rz-base-300);
    --rz-tabs-tab-selected-background-color: transparent;
    --rz-tabs-tab-selected-color: var(--icu-black);
    --rz-tabs-tab-selected-top-border-color: transparent;
    --rz-tabs-tab-hover-background-color: transparent;
    --rz-tabs-tab-hover-color: var(--icu-orange-ink);
    --rz-tabs-tab-focus-background-color: transparent;

    /* Dialogs */
    --rz-dialog-background-color: #ffffff;
    --rz-dialog-title-background-color: #ffffff;
    --rz-dialog-title-border: none;
    --rz-dialog-title-font-weight: 600;
    --rz-dialog-title-letter-spacing: -0.01em;
    --rz-dialog-border-radius: 14px;
    --rz-dialog-shadow: 0 2px 6px rgba(18, 18, 18, 0.06), 0 24px 64px rgba(18, 18, 18, 0.2);
    --rz-dialog-mask-background-color: rgba(18, 18, 18, 0.42);

    /* Interaction states */
    --rz-border-normal: var(--rz-border-width) solid var(--rz-base-600);
    --rz-border-hover: var(--rz-border-width) solid var(--rz-base-500);
    --rz-border-focus: var(--rz-border-width) solid var(--rz-primary);
    --rz-border-disabled: var(--rz-border-width) solid var(--rz-base-700);

    --rz-border-radius: 8px;
    --rz-border-radius-0: 0;
    --rz-border-radius-1: 0.25rem;
    --rz-border-radius-2: 0.5rem;
    --rz-border-radius-3: 0.75rem;
    --rz-border-radius-4: 1rem;
    --rz-border-radius-5: 1.25rem;
    --rz-border-radius-6: 1.5rem;
    --rz-border-radius-7: 1.75rem;
    --rz-border-radius-8: 2rem;
    --rz-border-radius-9: 2.25rem;
    --rz-border-radius-10: 2.5rem;

    --rz-outline-normal: none;
    --rz-outline-focus: var(--rz-outline-width) solid var(--rz-outline-color);

    /* Shadows: soft, warm-neutral, layered */
    --rz-shadow-0: none;
    --rz-shadow-1: 0 1px 2px rgba(18, 18, 18, 0.05);
    --rz-shadow-2: 0 1px 2px rgba(18, 18, 18, 0.04), 0 4px 12px rgba(18, 18, 18, 0.05);
    --rz-shadow-3: 0 2px 4px rgba(18, 18, 18, 0.04), 0 8px 20px rgba(18, 18, 18, 0.07);
    --rz-shadow-4: 0 2px 6px rgba(18, 18, 18, 0.05), 0 12px 28px rgba(18, 18, 18, 0.09);
    --rz-shadow-5: 0 4px 8px rgba(18, 18, 18, 0.05), 0 16px 36px rgba(18, 18, 18, 0.1);
    --rz-shadow-6: 0 4px 10px rgba(18, 18, 18, 0.06), 0 20px 44px rgba(18, 18, 18, 0.12);
    --rz-shadow-7: 0 6px 12px rgba(18, 18, 18, 0.06), 0 24px 52px rgba(18, 18, 18, 0.14);
    --rz-shadow-8: 0 6px 14px rgba(18, 18, 18, 0.07), 0 28px 60px rgba(18, 18, 18, 0.16);
    --rz-shadow-9: 0 8px 16px rgba(18, 18, 18, 0.07), 0 32px 68px rgba(18, 18, 18, 0.18);
    --rz-shadow-10: 0 8px 18px rgba(18, 18, 18, 0.08), 0 36px 76px rgba(18, 18, 18, 0.2);

    --rz-transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --rz-transition-all: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --rz-expander-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

    /* Inputs: white fields, hairline borders, orange focus ring */
    --rz-input-background-color: #ffffff;
    --rz-input-hover-background-color: #ffffff;
    --rz-input-focus-background-color: #ffffff;
    --rz-input-border: var(--rz-border-width) solid var(--icu-line);
    --rz-input-hover-border: var(--rz-border-width) solid #c9b89f;
    --rz-input-focus-border: var(--rz-border-width) solid var(--rz-primary);
    --rz-input-hover-border-block-end: var(--rz-border-width) solid #c9b89f;
    --rz-input-focus-border-block-end: var(--rz-border-width) solid var(--rz-primary);
    --rz-input-hover-shadow: none;
    --rz-input-focus-shadow: 0 0 0 3px rgba(225, 132, 9, 0.16);
    --rz-form-field-filled-background-color: #ffffff;
    --rz-form-field-filled-border: var(--rz-border-width) solid var(--icu-line);
    --rz-form-field-filled-border-radius: 8px;
    --rz-form-field-filled-hover-background-color: #ffffff;
    --rz-form-field-filled-hover-border: var(--rz-border-width) solid #c9b89f;
    --rz-form-field-filled-focus-border: var(--rz-border-width) solid var(--rz-primary);
    --rz-form-field-hover-shadow: none;
    --rz-form-field-focus-shadow: 0 0 0 3px rgba(225, 132, 9, 0.16);
    --rz-form-field-label-focus-color: var(--icu-orange-ink);

    --rz-checkbox-checked-background-color: var(--rz-primary);
    --rz-checkbox-checked-hover-background-color: var(--rz-primary-light);
    --rz-checkbox-checked-disabled-background-color: var(--rz-base-500);
    --rz-checkbox-checked-color: var(--rz-on-primary);
    --rz-checkbox-checked-border: var(--rz-border-width) solid var(--rz-primary-dark);
    --rz-checkbox-checked-hover-border: var(--rz-border-width) solid var(--rz-primary-dark);
    --rz-radio-active-background-color: var(--rz-primary);
    --rz-radio-checked-background-color: var(--rz-primary);
    --rz-radio-checked-hover-background-color: var(--rz-primary-light);
    --rz-radio-checked-color: var(--rz-on-primary);
    --rz-switch-checked-background-color: var(--rz-primary);
    --rz-switch-checked-circle-background-color: #ffffff;
    --rz-switch-focus-outline: 2px solid rgba(225, 132, 9, 0.45);
    --rz-switch-background-color: var(--rz-base-600);
    --rz-switch-box-shadow: 0 1px 2px rgba(18, 18, 18, 0.28);

    --rz-scrollbar-color: rgba(18, 18, 18, 0.18);
    --rz-scrollbar-background-color: transparent;

    /* Code: ink on a warm parchment surface */
    --bs-code-color: #7a4503 !important;
}

/* ── Base typography ───────────────────────────────────────────────── */

body {
    font-family: var(--rz-text-font-family);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.rz-text-h1, .rz-text-h2, .rz-text-h3, .rz-text-h4, .rz-text-h5, .rz-text-h6,
.rz-body h1, .rz-body h2, .rz-body h3, .rz-body h4 {
    letter-spacing: -0.015em;
    color: var(--rz-text-title-color);
}

::selection {
    background: rgba(225, 132, 9, 0.28);
    color: var(--icu-black);
}

/* <code>/<pre> carry their own light surface: some dialogs put the tag on --rz-base / --rz-base-50,
   which are dark in this inverted scale. */
code, kbd, samp {
    color: #2b2a27 !important;
    background-color: #f5f1ea !important;
    border: 1px solid rgba(18, 18, 18, 0.08);
    border-radius: 5px;
    padding: 0.1em 0.4em;
}

pre {
    color: #2b2a27 !important;
    background-color: #f8f5f0 !important;
    border: 1px solid var(--icu-hairline);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    overflow: auto;
}

pre code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: inherit !important;
}

.rz-dialog code,
.rz-dialog pre,
.rz-dialog-content code,
.rz-dialog-content pre {
    color: #2b2a27 !important;
    background-color: #f5f1ea !important;
}

/* Numeric base backgrounds are pale surfaces in apps (e.g. base-200 + rz-color-black chips); the variables
   above are text tones, so only the background utilities get light values. */
.rz-background-color-base-50 { background-color: #faf9f7 !important; }
.rz-background-color-base-100 { background-color: #f4f2ee !important; }
.rz-background-color-base-200 { background-color: #ece9e3 !important; }
.rz-background-color-base-300 { background-color: #e2ded6 !important; }
.rz-background-color-base-400 { background-color: #d6d1c7 !important; }

/* Stacked Loader cards: white text on the dark base surface */
.zlc-card.rz-color-on-base .zlc-title,
.zlc-card.rz-color-on-base .zlc-sub,
.zlc-card.rz-color-on-base .zlc-progress-text {
    color: #ffffff !important;
}

.zlc-actions .zlc-icon-btn {
    margin-left: 3px;
}

.zlc-actions .zlc-icon-btn:hover .rzi,
.zlc-actions .zlc-icon-btn:hover {
    color: var(--icu-black) !important;
}

/* ── Header ────────────────────────────────────────────────────────── */

.rz-header {
    background:
        linear-gradient(90deg, var(--icu-orange) 0%, var(--icu-orange-bright) 22%, rgba(243, 154, 38, 0.35) 55%, rgba(243, 154, 38, 0) 85%) left bottom / 100% 2px no-repeat,
        linear-gradient(180deg, #1c1c1c 0%, #121212 100%) !important;
    color: #ffffff !important;
    border-bottom: 0 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 4px 14px rgba(18, 18, 18, 0.1) !important;
}

.rz-header .whereAmI {
    color: #ffffff !important;
    font-weight: 500;
    letter-spacing: 0.005em;
    padding-left: 1rem;
    margin-left: 0.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    line-height: 1.6;
}

/* Header icon buttons: quiet ghosts, white on hover */
.rz-header .rz-button:not(.rz-primary):not(.rz-danger):not(.rz-success):not(.rz-warning) {
    background: transparent !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    color: rgba(255, 255, 255, 0.78) !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}

.rz-header .rz-button:not(.rz-primary):not(.rz-danger):not(.rz-success):not(.rz-warning) .rzi {
    color: inherit !important;
}

.rz-header .rz-button:not(.rz-primary):not(.rz-danger):not(.rz-success):not(.rz-warning):not(.rz-state-disabled):hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.rz-header .rz-button.rz-state-disabled:not(.rz-primary) {
    opacity: 0.35;
}

/* Header primary actions (tenant switch, settings): outlined orange, filled on hover.
   Selectors must outrank the general primary button rules further down. */
.rz-header .rz-button.rz-primary:not(.rz-variant-text):not(.rz-variant-outlined) {
    background: rgba(225, 132, 9, 0.12) !important;
    background-image: none !important;
    border: 1px solid rgba(225, 132, 9, 0.55) !important;
    color: #f6a744 !important;
    box-shadow: none !important;
    transform: none !important;
}

.rz-header .rz-button.rz-primary .rzi,
.rz-header .rz-button.rz-primary .rz-button-text {
    color: inherit !important;
}

.rz-header .rz-splitbutton .rz-button.rz-primary:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.rz-header .rz-splitbutton .rz-splitbutton-menubutton.rz-primary {
    border-left-color: rgba(225, 132, 9, 0.3) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.rz-header .rz-button.rz-primary:not(.rz-variant-text):not(.rz-variant-outlined):not(.rz-state-disabled):not(:active):hover {
    background: var(--icu-orange) !important;
    border-color: var(--icu-orange) !important;
    color: var(--icu-black) !important;
}

.rz-header .rz-badge {
    background-color: var(--icu-orange) !important;
    color: var(--icu-black) !important;
    box-shadow: 0 0 0 2px #151515;
    font-weight: 600;
}

.rz-header .rzi {
    color: inherit;
}

.rz-header .zs-trigger {
    color: rgba(255, 255, 255, 0.82) !important;
}

.rz-header .zs-trigger:hover,
.rz-header .zs-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* Global search: recessed glass field */
.rz-header .zs-inline {
    background: rgba(255, 255, 255, 0.055) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35) !important;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.rz-header .zs-inline:hover {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.rz-header .zs-inline:focus-within {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(225, 132, 9, 0.75) !important;
    box-shadow: 0 0 0 3px rgba(225, 132, 9, 0.18) !important;
}

.rz-header .zs-inline-input {
    color: #ffffff !important;
    background: transparent !important;
}

.rz-header .zs-inline-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.rz-header .zs-inline-icon {
    color: rgba(255, 255, 255, 0.55) !important;
}

.rz-header .zs-hint {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: rgba(255, 255, 255, 0.55) !important;
    border-radius: 5px !important;
}

/* Hamburger and home: ghost buttons on the chrome */
.rz-sidebar-toggle,
.rz-header .rz-sidebar-toggle {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.rz-sidebar-toggle .rzi {
    color: inherit !important;
}

.rz-sidebar-toggle:hover,
.rz-sidebar-toggle:focus-visible,
.rz-header .rz-sidebar-toggle:hover,
.rz-header .rz-sidebar-toggle:focus-visible {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: transparent !important;
    color: var(--icu-orange-bright) !important;
}

.rz-header .rz-splitbutton .rz-splitbutton-menu .rz-menuitem:hover,
.rz-header .rz-splitbutton .rz-splitbutton-menu .rz-state-highlight.rz-menuitem,
.rz-header .rz-splitbutton .rz-splitbutton-menu .rz-state-highlight.rz-menuitem:hover {
    background-color: var(--icu-orange-soft) !important;
    color: var(--icu-black) !important;
}

/* ICU logo */
.headerLogo {
    background-image: url('/css/icu/logo.png') !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: left center !important;
    width: 58px !important;
    height: 32px !important;
    margin-block: 0.5rem;
    filter: none;
    animation: none;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.rz-footer {
    background: var(--icu-chrome) !important;
    color: var(--icu-chrome-text) !important;
    border-top: 1px solid var(--icu-chrome-line) !important;
}

.rz-footer * {
    color: var(--icu-chrome-text) !important;
}

.footer-dock-item:not(.no-hover):hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

.footer-dock-item:not(.no-hover):hover .rzi,
.footer-dock-item:not(.no-hover):hover .clock-widget-icon,
.footer-dock-item:not(.no-hover):hover .clock-widget-time,
.footer-dock-item:not(.no-hover):hover .online-users-widget-icon,
.footer-dock-item:not(.no-hover):hover .online-users-widget-count {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* ── Body ──────────────────────────────────────────────────────────── */

.rz-body {
    background: var(--icu-paper) !important;
}

/* ── Left main menu: one continuous charcoal surface ───────────────── */

.rz-sidebar {
    background: #ffffff !important;
    color: var(--rz-text-color) !important;
    border-left: 1px solid var(--icu-hairline) !important;
}

.rz-sidebar:not(.rz-sidebar-end) {
    background: linear-gradient(180deg, #171717 0%, #131313 100%) !important;
    color: var(--icu-chrome-text) !important;
    border-left: 0 !important;
    border-right: 1px solid rgba(0, 0, 0, 0.6) !important;
    box-shadow: inset -1px 0 0 var(--icu-chrome-line);
}

.rz-panel-menu,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu {
    background-color: transparent !important;
    padding-top: 0.375rem;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper {
    background-color: transparent !important;
    background-image: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    transition: none !important;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-link,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-text {
    color: var(--icu-chrome-text) !important;
    transition: none !important;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-icon {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: none !important;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-icon-children {
    color: rgba(255, 255, 255, 0.36) !important;
    transition: none !important;
}

/* Top-level groups: a little more presence */
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu > .rz-navigation-item > .rz-navigation-item-wrapper .rz-navigation-item-text {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500;
    letter-spacing: 0.005em;
}

/* Fine divider between top-level nodes, 85 % wide and centred */
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu > .rz-navigation-item {
    position: relative;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu > .rz-navigation-item + .rz-navigation-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 7.5%;
    right: 7.5%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Nested levels: each level one step lighter (black -> warm greys), with a soft shadow
   falling from the parent row so the levels read as layers */
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu {
    background-color: #242321 !important;
    box-shadow: inset 0 6px 6px -6px rgba(0, 0, 0, 0.6);
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-menu {
    background-color: #31302d !important;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-menu .rz-navigation-menu {
    background-color: #3e3c39 !important;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-menu .rz-navigation-menu .rz-navigation-menu {
    background-color: #4b4945 !important;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-item-text {
    color: rgba(255, 255, 255, 0.74) !important;
    font-weight: 400;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-item-icon {
    color: rgba(255, 255, 255, 0.42) !important;
}

/* Hover */
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item > .rz-navigation-item-wrapper:hover .rz-navigation-item-text,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item > .rz-navigation-item-wrapper:hover .rz-navigation-item-link,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon-children {
    color: var(--icu-orange-bright) !important;
}

/* Active route: warm glow, orange indicator, light orange text */
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper:has(> a.active),
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper:has(> .rz-navigation-item-link.active),
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper-active,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-active > .rz-navigation-item-wrapper {
    background-color: transparent !important;
    background-image: linear-gradient(90deg, rgba(225, 132, 9, 0.22) 0%, rgba(225, 132, 9, 0.06) 100%) !important;
    box-shadow: inset 3px 0 0 var(--icu-orange) !important;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper:has(> a.active) .rz-navigation-item-text,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper:has(> a.active) .rz-navigation-item-link,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper:has(> .rz-navigation-item-link.active) .rz-navigation-item-text,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper-active .rz-navigation-item-text,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-active > .rz-navigation-item-wrapper .rz-navigation-item-text {
    color: #f8b25a !important;
    font-weight: 500;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper:has(> a.active) .rz-navigation-item-icon,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper:has(> .rz-navigation-item-link.active) .rz-navigation-item-icon,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-wrapper-active .rz-navigation-item-icon,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-item-active > .rz-navigation-item-wrapper .rz-navigation-item-icon {
    color: var(--icu-orange) !important;
}

/* Compact controls at the bottom of the left sidebar */
.rz-sidebar:not(.rz-sidebar-end) > div:has(.rz-panel-menu) > div:last-child {
    justify-content: flex-end !important;
    gap: 4px !important;
    padding: 6px 8px 8px 0 !important;
    border-top: 1px solid var(--icu-chrome-line);
}

.rz-sidebar:not(.rz-sidebar-end) > div:has(.rz-panel-menu) > div:last-child .rz-button {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.12s ease, color 0.12s ease !important;
}

.rz-sidebar:not(.rz-sidebar-end) > div:has(.rz-panel-menu) > div:last-child .rz-button .rzi {
    font-size: 1.05rem !important;
    line-height: 1 !important;
    color: inherit !important;
    filter: none !important;
}

.rz-sidebar:not(.rz-sidebar-end) > div:has(.rz-panel-menu) > div:last-child .rz-button:hover,
.rz-sidebar:not(.rz-sidebar-end) > div:has(.rz-panel-menu) > div:last-child .rz-button:focus-visible {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--icu-orange-bright) !important;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-button {
    background: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Right settings sidebar: light surface */
.rz-sidebar-end .rz-text,
.rz-sidebar-end .rz-text-overline,
.rz-sidebar-end label,
.rz-sidebar-end a,
.rz-sidebar-end .rz-link {
    color: var(--rz-base-200) !important;
}

.rz-sidebar-end .rz-text-subtitle1 {
    color: var(--icu-black) !important;
}

.rz-sidebar-end a:hover,
.rz-sidebar-end .rz-link:hover {
    color: var(--icu-orange-ink) !important;
}

/* ── Menus in the content area ─────────────────────────────────────── */

.rz-menu:not(.rz-profile-menu):not(.grid-main-menu):not(.grid-side-menu) .rz-navigation-item-wrapper:hover,
.rz-menu:not(.rz-profile-menu):not(.grid-main-menu):not(.grid-side-menu) .rz-navigation-item-wrapper-active {
    background-color: var(--icu-orange-soft) !important;
    background-image: none !important;
    color: var(--icu-black) !important;
}

/* Grid menus: no hover surface; icons pick up the accent */
.rz-menu.grid-main-menu .rz-navigation-item-wrapper:hover,
.rz-menu.grid-main-menu .rz-navigation-item-wrapper:has(> .active):hover,
.rz-menu.grid-side-menu .rz-navigation-item-wrapper:hover,
.rz-menu.grid-side-menu .rz-navigation-item-wrapper:has(> .active):hover {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.rz-row:has(.rz-menu.grid-main-menu):has(.rz-menu.grid-side-menu),
.rz-menu.grid-main-menu,
.rz-menu.grid-side-menu {
    background-color: transparent !important;
    background-image: none !important;
}

.rz-menu.grid-main-menu .rz-navigation-item-text,
.rz-menu.grid-side-menu .rz-navigation-item-text {
    color: var(--rz-base-200);
}

.rz-menu.grid-main-menu .rz-navigation-item-icon,
.rz-menu.grid-side-menu .rz-navigation-item-icon {
    color: var(--rz-base-300);
    transition: color 0.12s ease;
}

.rz-menu.grid-main-menu .rz-navigation-item:not(.menu-item-hover-danger):not(.menu-item-exportButton):not(.menu-item-exportButton-downloading) > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon,
.rz-menu.grid-main-menu .rz-navigation-item:not(.menu-item-hover-danger):not(.menu-item-exportButton):not(.menu-item-exportButton-downloading) > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon-children,
.rz-menu.grid-main-menu .rz-navigation-item:not(.menu-item-hover-danger):not(.menu-item-exportButton):not(.menu-item-exportButton-downloading) > .rz-navigation-item-wrapper:hover .rz-navigation-item-text,
.rz-menu.grid-main-menu .rz-navigation-item:not(.menu-item-hover-danger):not(.menu-item-exportButton):not(.menu-item-exportButton-downloading) > .rz-navigation-item-wrapper:hover .rz-navigation-item-link,
.rz-menu.grid-main-menu .rz-navigation-item:not(.menu-item-hover-danger):not(.menu-item-exportButton):not(.menu-item-exportButton-downloading) > .rz-navigation-item-wrapper:hover .rz-navigation-item-link *,
.rz-menu.grid-side-menu .rz-navigation-item:not(.menu-item-hover-danger):not(.menu-item-exportButton):not(.menu-item-exportButton-downloading) > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon,
.rz-menu.grid-side-menu .rz-navigation-item:not(.menu-item-hover-danger):not(.menu-item-exportButton):not(.menu-item-exportButton-downloading) > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon-children,
.rz-menu.grid-side-menu .rz-navigation-item:not(.menu-item-hover-danger):not(.menu-item-exportButton):not(.menu-item-exportButton-downloading) > .rz-navigation-item-wrapper:hover .rz-navigation-item-text,
.rz-menu.grid-side-menu .rz-navigation-item:not(.menu-item-hover-danger):not(.menu-item-exportButton):not(.menu-item-exportButton-downloading) > .rz-navigation-item-wrapper:hover .rz-navigation-item-link,
.rz-menu.grid-side-menu .rz-navigation-item:not(.menu-item-hover-danger):not(.menu-item-exportButton):not(.menu-item-exportButton-downloading) > .rz-navigation-item-wrapper:hover .rz-navigation-item-link * {
    color: var(--icu-orange-ink) !important;
}

.rz-menu.grid-main-menu .menu-item-exportButton > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon,
.rz-menu.grid-main-menu .menu-item-exportButton > .rz-navigation-item-wrapper:hover .rz-navigation-item-text,
.rz-menu.grid-main-menu .menu-item-exportButton > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon-children,
.rz-menu.grid-side-menu .menu-item-exportButton > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon,
.rz-menu.grid-side-menu .menu-item-exportButton > .rz-navigation-item-wrapper:hover .rz-navigation-item-text,
.rz-menu.grid-side-menu .menu-item-exportButton > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon-children {
    color: var(--icu-green) !important;
}

.rz-menu.grid-main-menu .menu-item-hover-danger > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon,
.rz-menu.grid-main-menu .menu-item-hover-danger > .rz-navigation-item-wrapper:hover .rz-navigation-item-text,
.rz-menu.grid-side-menu .menu-item-hover-danger > .rz-navigation-item-wrapper:hover .rz-navigation-item-icon,
.rz-menu.grid-side-menu .menu-item-hover-danger > .rz-navigation-item-wrapper:hover .rz-navigation-item-text {
    color: var(--rz-danger) !important;
}

/* ── Grid ──────────────────────────────────────────────────────────── */

.rz-data-grid,
.rz-datatable {
    border-color: var(--icu-hairline) !important;
}

.rz-grid-table thead th,
.rz-datatable-thead th {
    letter-spacing: 0.06em;
}

.rz-selectable tbody tr.rz-data-row.rz-state-highlight > td:first-child {
    box-shadow: inset 3px 0 0 var(--icu-orange);
}

span.rz-cell-data:focus-within:not(:has(.rz-chkbox)) {
    box-shadow: 0 0 0 2px rgba(225, 132, 9, 0.4);
    box-sizing: border-box;
}

/* ── Tabs: underline ───────────────────────────────────────────────── */

.rz-tabview-top > .rz-tabview-nav {
    border-bottom: 1px solid var(--icu-hairline) !important;
    background: transparent !important;
    gap: 0.25rem;
}

.rz-tabview-top > .rz-tabview-nav .rz-tabview-tab,
.rz-tabview-top > .rz-tabview-nav li {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.rz-tabview-top > .rz-tabview-nav .rz-tabview-selected {
    background-color: transparent !important;
    box-shadow: inset 0 -2px 0 var(--icu-orange) !important;
    color: var(--icu-black) !important;
}

.rz-tabview-top > .rz-tabview-nav .rz-tabview-selected a,
.rz-tabview-top > .rz-tabview-nav .rz-tabview-selected .rz-tabview-title {
    color: var(--icu-black) !important;
    font-weight: 600;
}

.rz-tabview-top > .rz-tabview-nav .rz-tabview-selected .rzi {
    color: var(--icu-orange) !important;
}

.rz-tabview-top > .rz-tabview-nav .rz-tabview-tab:not(.rz-tabview-selected):hover,
.rz-tabview-top > .rz-tabview-nav li:not(.rz-tabview-selected):hover {
    background-color: transparent !important;
    box-shadow: inset 0 -2px 0 rgba(225, 132, 9, 0.35) !important;
}

.rz-tabview-top > .rz-tabview-nav .rz-tabview-tab:not(.rz-tabview-selected):hover a,
.rz-tabview-top > .rz-tabview-nav .rz-tabview-tab:not(.rz-tabview-selected):hover .rzi,
.rz-tabview-top > .rz-tabview-nav li:not(.rz-tabview-selected):hover a,
.rz-tabview-top > .rz-tabview-nav li:not(.rz-tabview-selected):hover .rzi {
    color: var(--icu-orange-ink) !important;
}

.rz-tabview > ul {
    margin-bottom: 0.75rem;
}

.rz-tabview-panel {
    padding: 5px;
}

/* ── Cards, fieldsets, dialogs ─────────────────────────────────────── */

.rz-fieldset {
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(18, 18, 18, 0.03);
}

.rz-fieldset + .rz-fieldset {
    margin-top: 20px;
}

.rz-fieldset-legend {
    background-color: #ffffff;
    border: 1px solid var(--icu-hairline);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.rz-fieldset-legend-text {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.rz-dialog,
.rz-dialog-content {
    background-color: #ffffff !important;
}

.rz-dialog-titlebar {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--icu-hairline) !important;
}

.rz-dialog-mask {
    backdrop-filter: blur(2px);
}

/* ── Form fields ───────────────────────────────────────────────────── */

.rz-form-field:not(.rz-variant-outlined):not(.rz-floating-label) .rz-form-field-label,
.rz-form-field:not(.rz-variant-outlined) *:focus ~ .rz-form-field-label,
.rz-form-field:not(.rz-variant-outlined) *:focus-within ~ .rz-form-field-label,
.rz-form-field:not(.rz-variant-outlined) :not(.rz-state-empty) ~ .rz-form-field-label,
.rz-form-field:not(.rz-variant-outlined) .rz-radio-button-list-vertical ~ .rz-form-field-label,
.rz-form-field:not(.rz-variant-outlined) .rz-radio-button-list-horizontal ~ .rz-form-field-label,
.rz-form-field:not(.rz-variant-outlined) .rz-checkbox-list-vertical ~ .rz-form-field-label,
.rz-form-field:not(.rz-variant-outlined) .rz-checkbox-list-horizontal ~ .rz-form-field-label,
.rz-form-field:not(.rz-variant-outlined) .rz-chkbox ~ .rz-form-field-label,
.rz-form-field:not(.rz-variant-outlined) .rz-fileupload ~ .rz-form-field-label,
.rz-form-field:not(.rz-variant-outlined) .rz-state-empty:has(.rz-placeholder) ~ .rz-form-field-label {
    background-color: transparent !important;
    color: var(--rz-base-400) !important;
    letter-spacing: 0.01em;
}

.rz-form-field:not(.rz-variant-outlined).rz-state-focused .rz-form-field-label {
    background-color: transparent !important;
    color: var(--icu-orange-ink) !important;
}

.rz-form-field:not(.rz-state-disabled):not(:has(.invalid)):not(:has(:disabled)):not(:has(:not(.rz-helper-hidden-accessible) > [readonly])):not(:has(.rz-state-disabled)):not(:has(.rz-disabled)):not(:has(.rz-readonly)):hover .rz-form-field-content,
.rz-dropdown:not(.rz-state-disabled):not(.invalid):hover,
.rz-multiselect:not(.rz-state-disabled):not(.invalid):hover,
.rz-datepicker:not(.rz-state-disabled):not(:has(.invalid)):hover > .rz-inputtext,
.rz-textbox:not(:disabled):not(.invalid):hover,
.rz-textarea:not(:disabled):not(.invalid):hover,
.rz-numeric:not(.rz-state-disabled):not(.invalid):hover {
    background-color: #ffffff !important;
    border-color: #c9b89f !important;
    box-shadow: none !important;
}

.rz-form-field.rz-state-focused .rz-form-field-content {
    border-color: var(--rz-primary) !important;
    box-shadow: 0 0 0 3px rgba(225, 132, 9, 0.16) !important;
}

.rz-chkbox-box:hover:not(.rz-state-disabled):not(.rz-disabled):not(.rz-readonly),
.rz-radiobutton-box:hover:not(.rz-state-disabled):not(.rz-disabled):not(.rz-readonly) {
    background-color: #ffffff !important;
    border-color: var(--icu-orange) !important;
    box-shadow: 0 0 0 3px rgba(225, 132, 9, 0.12) !important;
}

.rz-chkbox-box.rz-state-active,
.rz-chkbox-box.rz-state-active:hover:not(.rz-state-disabled),
.rz-radiobutton-box.rz-state-active,
.rz-radiobutton-box.rz-state-active:hover:not(.rz-state-disabled) {
    background-color: var(--rz-primary) !important;
    border-color: var(--rz-primary-dark) !important;
    color: var(--rz-on-primary) !important;
}

.rz-chkbox-box.rz-state-active .rzi,
.rz-radiobutton-box.rz-state-active .rzi {
    color: var(--rz-on-primary) !important;
}

.rz-switch.rz-switch-checked .rz-switch-circle {
    background: var(--rz-primary) !important;
}

.rz-switch:not(.rz-switch-checked):not(.rz-state-disabled):not(.rz-disabled):not(.rz-readonly):not(:has(.rz-disabled)):not(:has(.rz-readonly)):hover .rz-switch-circle {
    background: #f3d6ae !important;
}

.rz-switch.rz-switch-checked:not(.rz-state-disabled):not(.rz-disabled):not(.rz-readonly):not(:has(.rz-disabled)):not(:has(.rz-readonly)):hover .rz-switch-circle {
    background: var(--rz-primary-light) !important;
}

/* Disabled / readonly fields: calm stone surface */
.rz-form-field.rz-state-disabled .rz-form-field-content,
.rz-form-field:has(:disabled) .rz-form-field-content,
.rz-form-field:has(:not(.rz-helper-hidden-accessible) > [readonly]) .rz-form-field-content,
.rz-form-field:has(.rz-state-disabled) .rz-form-field-content,
.rz-form-field:has(.rz-disabled) .rz-form-field-content,
.rz-form-field:has(.rz-readonly) .rz-form-field-content,
.rz-form-field.rz-state-disabled:hover .rz-form-field-content,
.rz-form-field:has(:disabled):hover .rz-form-field-content,
.rz-form-field:has(:not(.rz-helper-hidden-accessible) > [readonly]):hover .rz-form-field-content,
.rz-form-field:has(.rz-state-disabled):hover .rz-form-field-content,
.rz-form-field:has(.rz-disabled):hover .rz-form-field-content,
.rz-form-field:has(.rz-readonly):hover .rz-form-field-content {
    background-color: var(--icu-surface-subtle) !important;
    border-color: var(--icu-hairline) !important;
    box-shadow: none !important;
}

.rz-switch.rz-switch-checked:has(.rz-disabled) .rz-switch-circle,
.rz-switch.rz-switch-checked:has(.rz-readonly) .rz-switch-circle,
.rz-switch.rz-switch-checked .rz-switch-circle.rz-disabled,
.rz-switch.rz-switch-checked .rz-switch-circle.rz-readonly,
.rz-form-field:has(.rz-switch .rz-disabled) .rz-switch .rz-switch-circle,
.rz-form-field:has(.rz-switch .rz-readonly) .rz-switch .rz-switch-circle,
.rz-form-field:has(:disabled) .rz-switch .rz-switch-circle,
.rz-form-field:has(:not(.rz-helper-hidden-accessible) > [readonly]) .rz-switch .rz-switch-circle,
.rz-switch:has(.rz-disabled) .rz-switch-circle,
.rz-switch:has(.rz-readonly) .rz-switch-circle,
.rz-switch.rz-disabled .rz-switch-circle,
.rz-switch.rz-readonly .rz-switch-circle,
.rz-switch .rz-switch-circle.rz-disabled,
.rz-switch .rz-switch-circle.rz-readonly,
.rz-form-field:has(.rz-switch .rz-switch-circle.rz-disabled) .rz-switch.rz-switch-checked .rz-switch-circle,
.rz-form-field:has(.rz-switch .rz-switch-circle.rz-readonly) .rz-switch.rz-switch-checked .rz-switch-circle,
.rz-form-field:has(.rz-switch .rz-disabled) .rz-switch.rz-switch-checked .rz-switch-circle,
.rz-form-field:has(.rz-switch .rz-readonly) .rz-switch.rz-switch-checked .rz-switch-circle,
.rz-form-field:has(:disabled) .rz-switch.rz-switch-checked .rz-switch-circle,
.rz-form-field:has(:not(.rz-helper-hidden-accessible) > [readonly]) .rz-switch.rz-switch-checked .rz-switch-circle,
.rz-switch.rz-switch-checked:has(.rz-disabled):hover .rz-switch-circle,
.rz-switch.rz-switch-checked:has(.rz-readonly):hover .rz-switch-circle,
.rz-switch.rz-switch-checked .rz-switch-circle.rz-disabled:hover,
.rz-switch.rz-switch-checked .rz-switch-circle.rz-readonly:hover,
.rz-form-field:has(.rz-switch .rz-disabled):hover .rz-switch .rz-switch-circle,
.rz-form-field:has(.rz-switch .rz-readonly):hover .rz-switch .rz-switch-circle,
.rz-form-field:has(:disabled):hover .rz-switch .rz-switch-circle,
.rz-form-field:has(:not(.rz-helper-hidden-accessible) > [readonly]):hover .rz-switch .rz-switch-circle,
.rz-switch:has(.rz-disabled):hover .rz-switch-circle,
.rz-switch:has(.rz-readonly):hover .rz-switch-circle,
.rz-switch.rz-disabled:hover .rz-switch-circle,
.rz-switch.rz-readonly:hover .rz-switch-circle,
.rz-switch .rz-switch-circle.rz-disabled:hover,
.rz-switch .rz-switch-circle.rz-readonly:hover {
    background: #a19d95 !important;
    box-shadow: none !important;
}

.rz-form-field:has(.rz-switch .rz-switch-circle.rz-disabled) .rz-form-field-label,
.rz-form-field:has(.rz-switch .rz-switch-circle.rz-readonly) .rz-form-field-label,
.rz-form-field:has(.rz-switch .rz-disabled) .rz-form-field-label,
.rz-form-field:has(.rz-switch .rz-readonly) .rz-form-field-label,
.rz-form-field:has(:disabled) .rz-form-field-label,
.rz-form-field:has(:not(.rz-helper-hidden-accessible) > [readonly]) .rz-form-field-label,
.rz-form-field:has(.rz-state-disabled):hover .rz-form-field-label,
.rz-form-field:has(.rz-disabled):hover .rz-form-field-label,
.rz-form-field:has(.rz-readonly):hover .rz-form-field-label {
    color: var(--rz-base-400) !important;
}

/* Validation */
.rz-form-field:has(.rz-dropdown.invalid),
.rz-form-field:has(.rz-textbox.invalid),
.rz-form-field:has(.ggt-picker.invalid) {
    border: 1.5px solid var(--rz-danger);
    border-radius: 10px;
    padding: 2px;
}

.rz-form-field-content > .rz-dropdown.invalid,
.rz-form-field-content > .rz-textbox.invalid,
.rz-form-field-content > .ggt-picker.invalid > .rz-inputtext {
    border: none !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.rz-datatable .rz-textbox.invalid,
.rz-datatable .rz-dropdown.invalid,
.rz-datatable .rz-numeric-input.invalid,
.rz-datatable .rz-masked.invalid,
.rz-datatable .rz-datepicker .invalid {
    border: 1.5px solid var(--rz-danger) !important;
    box-shadow: none !important;
    border-radius: 4px;
    outline: 0 !important;
}

/* Helper texts under foreign-key fields: muted, not orange on white */
.dataFlowMappingSourceFieldDropDownDescription,
.fk-footertext {
    color: var(--rz-base-300);
}

/* ── Buttons ───────────────────────────────────────────────────────── */

.rz-button {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.rz-button.rz-base:not(.rz-variant-text):not(.rz-variant-outlined),
.rz-button.rz-primary:not(.rz-variant-text):not(.rz-variant-outlined) {
    background-color: var(--rz-primary) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%) !important;
    border: 1px solid #c97606 !important;
    color: var(--icu-black) !important;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(143, 81, 4, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.rz-button.rz-base:not(.rz-variant-text):not(.rz-variant-outlined):not(.rz-state-disabled):not(:active):hover,
.rz-button.rz-primary:not(.rz-variant-text):not(.rz-variant-outlined):not(.rz-state-disabled):not(:active):hover {
    background-color: #ec911d !important;
    border-color: #c27006 !important;
    box-shadow: 0 4px 14px rgba(225, 132, 9, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.rz-button.rz-base:not(.rz-variant-text):not(.rz-variant-outlined):not(.rz-state-disabled):active,
.rz-button.rz-primary:not(.rz-variant-text):not(.rz-variant-outlined):not(.rz-state-disabled):active {
    background-color: #c97606 !important;
    background-image: none !important;
    color: var(--icu-black) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18) !important;
}

.rz-button.rz-secondary:not(.rz-variant-text):not(.rz-variant-outlined) {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%) !important;
    border: 1px solid #08402a !important;
    box-shadow: 0 1px 2px rgba(5, 46, 30, 0.2) !important;
}

.rz-button.rz-secondary:not(.rz-variant-text):not(.rz-variant-outlined):not(.rz-state-disabled):hover {
    background-color: var(--rz-secondary-light) !important;
    box-shadow: 0 4px 14px rgba(11, 82, 51, 0.24) !important;
}

/* SplitButton menu hover: soft orange instead of a heavy fill */
.rz-splitbutton-menu .rz-menuitem:hover,
.rz-splitbutton-menu .rz-menuitem.rz-state-highlight:hover {
    background-color: var(--icu-orange-soft) !important;
    color: var(--icu-black) !important;
}

.rz-button.rz-light:not(.rz-variant-text):not(.rz-variant-outlined) {
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid var(--icu-line) !important;
    color: var(--rz-base-100) !important;
    box-shadow: 0 1px 2px rgba(18, 18, 18, 0.05) !important;
}

.rz-button.rz-light:not(.rz-variant-text):not(.rz-variant-outlined):not(.rz-state-disabled):hover {
    background: var(--icu-orange-soft) !important;
    border-color: rgba(225, 132, 9, 0.6) !important;
    color: var(--icu-black) !important;
}

.rz-button.rz-dark:not(.rz-variant-text):not(.rz-variant-outlined) {
    background-color: #1e1e1e !important;
    background-image: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    border: 1px solid #121212 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(18, 18, 18, 0.2) !important;
}

.rz-button.rz-dark:not(.rz-variant-text):not(.rz-variant-outlined):not(.rz-state-disabled):hover {
    background-image: linear-gradient(180deg, #343434 0%, #222222 100%) !important;
    border-color: #121212 !important;
}

.rz-alert.rz-light {
    --rz-alert-background-color: var(--icu-surface-subtle);
    --rz-alert-color: var(--rz-base-100);
    --rz-alert-title-color: var(--icu-black);
    --rz-alert-icon-color: var(--rz-base-300);
    box-shadow: inset 0 0 0 1px var(--icu-hairline) !important;
}

.rz-badge-light {
    background-color: var(--rz-base-800) !important;
    color: var(--rz-base-100) !important;
    box-shadow: inset 0 0 0 1px var(--icu-hairline) !important;
}

/* ── Homescreen ────────────────────────────────────────────────────── */

.homescreen-grid:not(.edit-mode) .homescreen-tile:not(.no-hover):hover {
    background-color: var(--icu-orange-soft) !important;
    box-shadow:
        inset 0 0 0 1px rgba(225, 132, 9, 0.4),
        0 10px 24px rgba(18, 18, 18, 0.1) !important;
    transform: translateY(-1px);
}

.homescreen-grid:not(.edit-mode) .homescreen-tile:not(.no-hover):hover .tile-icon,
.homescreen-grid:not(.edit-mode) .homescreen-tile:not(.no-hover):hover .tile-title,
.homescreen-grid:not(.edit-mode) .homescreen-tile:not(.no-hover):hover .clock-widget-icon,
.homescreen-grid:not(.edit-mode) .homescreen-tile:not(.no-hover):hover .clock-widget-time,
.homescreen-grid:not(.edit-mode) .homescreen-tile:not(.no-hover):hover .online-users-widget-icon,
.homescreen-grid:not(.edit-mode) .homescreen-tile:not(.no-hover):hover .online-users-widget-count {
    color: var(--icu-black) !important;
    opacity: 1 !important;
}

/* ── App catalog prepare panel ─────────────────────────────────────── */

.catalog-prepare-result-panel.rz-color-white {
    background-color: var(--icu-surface-subtle) !important;
    color: var(--rz-base-100) !important;
}

.catalog-prepare-status.rz-color-white {
    background-color: var(--rz-base-800) !important;
    border: 1px solid var(--icu-hairline) !important;
    color: var(--rz-base-100) !important;
}

.catalog-prepare-logs.rz-color-white {
    background-color: #ffffff !important;
    border-color: var(--icu-hairline) !important;
    color: var(--rz-base-100) !important;
}

.catalog-prepare-logs .catalog-prepare-section-title,
.catalog-prepare-logs .catalog-prepare-output,
.catalog-prepare-logs .catalog-prepare-output summary,
.catalog-prepare-logs .catalog-prepare-output-body {
    color: var(--rz-base-100) !important;
}

.catalog-prepare-logs .catalog-prepare-log-item {
    border-bottom-color: var(--icu-hairline) !important;
    color: var(--rz-base-100) !important;
}

.catalog-prepare-logs .catalog-prepare-log-item span:first-child {
    color: var(--rz-base-400) !important;
}

.catalog-prepare-logs .catalog-prepare-log-item span:nth-child(2) {
    color: var(--rz-primary-darker) !important;
    font-weight: 600;
}

/* ── Misc ──────────────────────────────────────────────────────────── */

.lockedIcon {
    color: rgba(18, 18, 18, 0.4) !important;
    font-size: 1rem !important;
}

.main-component-progressbar {
    height: 3px;
}

.rz-message-popup {
    z-index: 100;
}

.mark.highlight-match {
    background-color: rgba(225, 132, 9, 0.28);
    color: var(--icu-black);
    border-radius: 3px;
    padding: 0 2px;
}

/* Howto demo cards: hairline frame instead of the dark base-300 border */
.host-demo-card {
    border-color: var(--icu-hairline) !important;
    border-radius: 12px !important;
}

/* Markdown viewer (help and howto pages): paper card instead of a dark frame */
.z-markdown-viewer__surface {
    border-color: var(--icu-hairline) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 6px 20px rgba(18, 18, 18, 0.04);
    --z-md-surface-light-color: var(--rz-base-100);
    --z-md-selection-light-bg: rgba(225, 132, 9, 0.28);
    --z-md-selection-light-color: var(--icu-black);
}

.grid-goto-link,
.goto-link {
    text-decoration: underline !important;
    text-decoration-color: rgba(163, 92, 5, 0.4) !important;
    text-underline-offset: 2px;
}

.dlg-grid .rz-dialog-content .rz-data-grid .rz-data-grid-data::-webkit-scrollbar {
    background-color: var(--rz-scrollbar-background-color);
    width: var(--rz-scrollbar-size);
    height: var(--rz-scrollbar-size);
}

.dlg-grid .rz-dialog-content .rz-data-grid .rz-data-grid-data::-webkit-scrollbar-thumb {
    background: var(--rz-scrollbar-color);
    border: 4px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    border-radius: var(--rz-scrollbar-border-radius);
    min-width: var(--rz-scrollbar-size);
    min-height: var(--rz-scrollbar-size);
}

.dlg-grid .rz-dialog-content .rz-data-grid .rz-data-grid-data {
    scrollbar-width: var(--rz-scrollbar-size);
    scrollbar-color: var(--rz-scrollbar-color);
}

/* ── AppGenerator panels ───────────────────────────────────────────── */

.generation-status {
    border: 1px solid var(--icu-hairline) !important;
    background: linear-gradient(160deg, #ffffff 0%, var(--icu-surface-subtle) 100%) !important;
}

.generation-status.tone-live {
    border-color: rgba(225, 132, 9, 0.6) !important;
    background: linear-gradient(160deg, #fffaf2 0%, var(--icu-orange-soft) 100%) !important;
}

.generation-status.tone-paused {
    border-color: #c9a227 !important;
    background: linear-gradient(160deg, #fffbef 0%, #fbf3d9 100%) !important;
}

.generation-status.tone-ok {
    border-color: #2f7a4b !important;
    background: linear-gradient(160deg, #f1f8f4 0%, var(--icu-green-soft) 100%) !important;
}

.generation-status.tone-error {
    border-color: #c44040 !important;
    background: linear-gradient(160deg, #fdf1f0 0%, #f9e2e0 100%) !important;
}

.status-phase-icon {
    background: var(--rz-base-700) !important;
    color: var(--rz-base-100) !important;
}

.status-title {
    color: var(--rz-base-50) !important;
}

.status-message {
    color: var(--rz-base-300) !important;
}

.status-chip {
    border: 1px solid var(--icu-hairline) !important;
    background: var(--rz-base-800) !important;
    color: var(--rz-base-200) !important;
}

.status-chip.status-chip-warning {
    border-color: #c9a227 !important;
    background: #fdf6e3 !important;
    color: #6b5500 !important;
}

.generation-log {
    background: #ffffff !important;
    color: var(--rz-base-100) !important;
    border: 1px solid var(--icu-hairline);
}

.log-section-title {
    color: var(--icu-black) !important;
}

.log-time {
    color: var(--rz-base-400) !important;
}

.log-item {
    border-bottom: 1px solid var(--icu-hairline) !important;
}

.log-item.phase-logo { color: #7d6320 !important; }
.log-item.phase-generating { color: #2b2a27 !important; }
.log-item.phase-building { color: #5f5d12 !important; }
.log-item.phase-fixing { color: #9a4f2e !important; }
.log-item.phase-publishing { color: #3f6d28 !important; }
.log-item.phase-git { color: #a02c58 !important; }
.log-item.phase-database { color: #6e4280 !important; }
.log-item.phase-completed { color: #17774e !important; }
.log-item.phase-failed { color: #b02a2a !important; }

.assistant-card {
    border: 1px solid var(--icu-hairline) !important;
    background: linear-gradient(160deg, #ffffff 0%, var(--icu-surface-subtle) 100%) !important;
    color: var(--rz-base-100) !important;
}

.assistant-card-title {
    color: var(--icu-black) !important;
}

.todo-item {
    border-bottom: 1px solid var(--icu-hairline) !important;
}

.todo-item.state-todo .todo-icon { color: var(--rz-base-400) !important; }
.todo-item.state-doing .todo-icon { color: var(--icu-orange-ink) !important; }
.todo-item.state-done .todo-icon { color: #22863a !important; }
.todo-item.state-blocked .todo-icon { color: #b02a2a !important; }

.question-idle {
    border: 1px dashed var(--rz-base-600) !important;
    color: var(--rz-base-400) !important;
    background: transparent !important;
}

.question-status {
    border: 1px solid #2f7148 !important;
    background: var(--icu-green-soft) !important;
    color: #1a5a30 !important;
}

.question-text {
    color: var(--rz-base-100) !important;
}

.question-text-input {
    border: 1px solid var(--icu-line) !important;
    background: #ffffff !important;
    color: var(--rz-base-100) !important;
}

.question-text-input:focus {
    border-color: var(--icu-orange) !important;
    box-shadow: 0 0 0 3px rgba(225, 132, 9, 0.16) !important;
}

.question-option {
    border: 1px solid var(--icu-line) !important;
    background: #ffffff !important;
    color: var(--rz-base-100) !important;
}

.question-option:hover {
    border-color: var(--icu-orange) !important;
    background: var(--icu-orange-soft) !important;
}

.question-option.is-selected {
    border-color: var(--icu-orange) !important;
    background: #fbe9d1 !important;
    color: var(--rz-base-50) !important;
}

.question-submit {
    border: 1px solid #c97606 !important;
    background: var(--icu-orange) !important;
    color: var(--icu-black) !important;
}

.question-submit:hover {
    border-color: #c27006 !important;
    background: #ec911d !important;
    color: var(--icu-black) !important;
}

.generator-output-details {
    border: 1px solid var(--icu-hairline) !important;
    background: #ffffff !important;
}

.generator-output-details summary {
    color: var(--icu-black) !important;
    background: var(--icu-surface-subtle) !important;
    border-bottom: 1px solid var(--icu-hairline) !important;
}

.generator-output-markdown {
    color: var(--rz-base-200) !important;
}

.generator-output-markdown h1,
.generator-output-markdown h2,
.generator-output-markdown h3,
.generator-output-markdown h4 {
    color: var(--icu-black) !important;
}

.generator-output-markdown code,
.generator-output-markdown pre {
    background: var(--rz-base-800) !important;
}

.generator-output-markdown a {
    color: var(--icu-orange-ink) !important;
}

.generator-output-markdown blockquote {
    border-left: 2px solid var(--icu-orange) !important;
    color: var(--rz-base-200) !important;
}

.operation-item {
    border-bottom: 1px solid var(--icu-hairline) !important;
}

.operation-icon { color: var(--rz-base-300) !important; }
.operation-time { color: var(--rz-base-400) !important; }
.operation-tag { color: #7d6320 !important; }
.operation-message { color: var(--rz-base-200) !important; }

.operation-item.tone-success .operation-icon,
.operation-item.tone-success .operation-tag { color: #22863a !important; }

.operation-item.tone-warning .operation-icon,
.operation-item.tone-warning .operation-tag { color: #8a6d12 !important; }

.operation-item.tone-error .operation-icon,
.operation-item.tone-error .operation-tag { color: #b02a2a !important; }

.cancel-notice {
    border: 1px solid #c9a227 !important;
    background: #fdf6e3 !important;
    color: #6b5500 !important;
}

.error-message { color: #b02a2a !important; }

.error-message pre {
    background: var(--rz-base-800) !important;
    color: var(--rz-base-100) !important;
}

.chat-response { color: var(--rz-base-100) !important; }

.chat-response-markdown {
    background: #ffffff !important;
    color: var(--rz-base-100) !important;
    border: 1px solid var(--icu-hairline);
}

.chat-response-markdown h1,
.chat-response-markdown h2,
.chat-response-markdown h3,
.chat-response-markdown h4 {
    color: var(--icu-black) !important;
}

.chat-response-markdown code { background: var(--rz-base-800) !important; }
.chat-response-markdown pre { background: var(--rz-base-800) !important; }
.chat-response-markdown th { background: var(--icu-surface-subtle) !important; color: var(--icu-black) !important; }
.chat-response-markdown th,
.chat-response-markdown td { border-color: var(--icu-hairline) !important; }
.chat-response-markdown a { color: var(--icu-orange-ink) !important; }
.chat-response-markdown blockquote { border-left-color: var(--icu-orange) !important; color: var(--rz-base-200) !important; }

/* ZPhaseTrack */
.zpt-node {
    border: 1px solid var(--icu-hairline) !important;
    background: #ffffff !important;
    color: var(--rz-base-400) !important;
}

.zpt-node-icon {
    background: var(--rz-base-700) !important;
    color: var(--rz-base-300) !important;
}

.zpt-completed {
    border-color: #3a9a5c !important;
    background: var(--icu-green-soft) !important;
    color: #1a5a30 !important;
}

.zpt-completed .zpt-node-icon {
    background: #2f8a50 !important;
    color: #ffffff !important;
}

.zpt-active {
    border-color: var(--icu-orange) !important;
    background: var(--icu-orange-soft) !important;
    color: var(--icu-black) !important;
}

.zpt-active .zpt-node-icon {
    background: var(--icu-orange) !important;
    color: var(--icu-black) !important;
}

.zpt-active.zpt-animate {
    animation: zpt-pulse-light 1.5s ease-in-out infinite !important;
}

@keyframes zpt-pulse-light {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(225, 132, 9, 0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(225, 132, 9, 0.28);
    }
}

.zpt-failed {
    border-color: #c04040 !important;
    background: #fdf1f0 !important;
    color: #8a2020 !important;
}

.zpt-failed .zpt-node-icon {
    background: #c04040 !important;
    color: #ffffff !important;
}

/* Main menu tree guides from level 3 on: every child row draws its own piece of the
   vertical line below the parent icon plus a short tick, so the line pauses beside expanded
   submenus. Rows inherit --rz-navigation-item-level; icon centers sit at
   1.625rem + (level - 2) * 1rem. */
.rz-sidebar:not(.rz-sidebar-end) {
    --zc-menu-guide: rgba(255, 255, 255, 0.16);
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-menu > .rz-navigation-item > .rz-navigation-item-wrapper {
    position: relative;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-menu > .rz-navigation-item > .rz-navigation-item-wrapper::before,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-menu > .rz-navigation-item > .rz-navigation-item-wrapper::after {
    content: "";
    position: absolute;
    left: calc(1.625rem + (var(--rz-navigation-item-level, 3) - 3) * 1rem);
    background: var(--zc-menu-guide);
    pointer-events: none;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-menu > .rz-navigation-item > .rz-navigation-item-wrapper::before {
    top: 0;
    bottom: -1px;
    width: 1px;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-menu > .rz-navigation-item:last-child > .rz-navigation-item-wrapper::before,
.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-menu > .rz-navigation-item[aria-expanded="true"] > .rz-navigation-item-wrapper::before {
    bottom: 50%;
}

.rz-sidebar:not(.rz-sidebar-end) .rz-panel-menu .rz-navigation-menu .rz-navigation-menu > .rz-navigation-item > .rz-navigation-item-wrapper::after {
    top: 50%;
    width: 0.375rem;
    height: 1px;
}
