/*
 * main.css — DataServicePortal Design System
 * ============================================
 * DESIGN TOKENS
 *   All colours, typography, spacing, radii, shadows, z-indices and
 *   motion timings are defined as CSS custom properties on :root.
 *   Component and page CSS files must consume these tokens — never
 *   hardcode raw colour or timing values.
 *
 * THEMING
 *   • Light theme: default :root values below.
 *   • Dark theme:  [data-theme="dark"] overrides at the bottom of this file.
 *   • System pref: [data-theme="system"] mirrors OS preference via
 *     @media (prefers-color-scheme: dark) — set by ThemeService + theme.js.
 *   • Switching:   theme.js writes "dsp-theme" to localStorage and sets
 *     data-theme on <html>. ThemeService.cs is the Blazor DI entry point.
 *
 * MOTION
 *   • Token scale: --dur-fast / --dur-base / --dur-slow and --ease-* easing
 *     variables defined here.
 *   • Helpers:     motion.js exposes window.motionHelpers (fadeSlideIn,
 *     staggerIn, panelToggle, pageTransition, …) all guarded by
 *     prefers-reduced-motion.
 *
 * FILE STRUCTURE
 *   :root tokens → notification styles → dark-theme overrides
 *   app.css      → legacy compat (font faces, Bootstrap overrides, tables)
 *   *.razor.css  → scoped component styles that consume these tokens
 */

:root {
    /* Novulo UI palette, aligned with the Lovable reference. */
    --ui-black:       #0F2124;
    --ui-off-white:   #FBFAF6;
    --ui-green-soft:  #D8EAC1;
    --ui-green:       #86C4A3;
    --ui-green-dark:  #24B47E;
    --ui-grey:        #2F3C3E;
    --ui-orange:      #F79A59;
    --ui-blue:        #45B2E8;
    --ui-purple:      #6772E5;
    --ui-sidebar-border: color-mix(in srgb, var(--ui-black) 9%, transparent);
    --ui-sidebar-hover: color-mix(in srgb, var(--ui-green-soft) 35%, transparent);
    --ui-sidebar-active: color-mix(in srgb, var(--ui-green-soft) 62%, transparent);
    /* ── Color palette ── */
    --bg:              var(--ui-color-canvas, var(--ui-off-white));
    --surface:         var(--ui-color-surface, #ffffff);
    --surface-raised:  var(--ui-color-surface-subtle, #F4F2EC);
    --surface-overlay: rgba(255, 255, 255, 0.92);
    --text-primary:    var(--ui-color-text, var(--ui-grey));
    --text-secondary:  var(--ui-color-text-secondary, rgba(47, 60, 62, 0.74));
    --text-muted:      var(--ui-color-text-muted, rgba(47, 60, 62, 0.54));
    --text-disabled:   rgba(47, 60, 62, 0.32);
    --text-white:      #ffffff;
    --accent-blue:     var(--ui-blue);
    --accent-teal:     #3EA1D2;
    --accent-orange:   var(--ui-orange);
    --accent-red:      #F65959;
    --accent-green:    var(--ui-green-dark);
    --sidebar-bg:      var(--ui-off-white);
    --sidebar-bg-alt:  #223235;
    --sidebar-border:  #32474A;
    --sidebar-text:    rgba(255, 255, 255, 0.75);
    --sidebar-text-muted: rgba(255, 255, 255, 0.42);

    /* ── Semantic surfaces (remap for dark-mode override) ── */
    --surface-page:    var(--bg);
    --surface-card:    var(--surface);
    --surface-input:   var(--surface);
    --surface-topbar:  var(--surface);
    --surface-error:   #FEE2E2;
    --text-error:      #B91C1C;
    --border-error:    #FCA5A5;

    /* ── Borders ── */
    --border:          rgba(15, 33, 36, 0.12);
    --border-row:      rgba(15, 33, 36, 0.08);
    --border-pill:     rgba(34, 50, 53, 0.25);
    --border-focus:    #44B2E8;

    /* ── Buttons / surfaces ── */
    --btn-bg:          #DBDEDF;
    --btn-bg-hover:    #C5C8C9;
    --btn-bg-active:   #B8BCBE;
    --btn-primary-bg:       #0F2124;
    --btn-primary-bg-hover: #223235;
    --btn-primary-text:     #ffffff;

    /* ── Typography ── */
    --font-primary:    var(--ui-font-body, Geist, Arial, sans-serif);
    --font-heading:    var(--ui-font-heading, NovuloSans, Geist, Arial, sans-serif);
    --font-mono:       'Geist Mono', 'Courier New', monospace;

    --fs-xs:           10px;
    --fs-small:        11px;
    --fs-label:        11px;
    --fs-data:         13px;
    --fs-nav:          14px;
    --fs-title:        15px;
    --fs-page-title:   18px;
    --fs-detail-title: 24px;
    --fs-detail-value: 16px;
    --fw-normal:       400;
    --fw-medium:       500;
    --fw-semibold:     600;
    --fw-bold:         700;
    --lh-tight:        1.2;
    --lh-base:         1.5;
    --lh-relaxed:      1.75;

    /* ── Spacing scale (4px base) ── */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3:  12px;
    --sp-4:  16px;
    --sp-5:  20px;
    --sp-6:  24px;
    --sp-8:  32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;

    /* ── Border-radius scale ── */
    --radius-sm:   4px;
    --radius-md:   6px;
    --radius-lg:   10px;
    --radius-xl:   16px;
    --radius-full: 9999px;

    /* ── Elevation / shadow scale ── */
    --shadow-xs:  0 1px 2px  rgba(0, 0, 0, 0.06), 0 1px 3px  rgba(0, 0, 0, 0.04);
    --shadow-sm:  0 2px 6px  rgba(0, 0, 0, 0.08), 0 1px 3px  rgba(0, 0, 0, 0.06);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.10), 0 2px 6px  rgba(0, 0, 0, 0.08);
    --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-xl:  0 16px 48px rgba(0, 0, 0, 0.18), 0 6px 20px rgba(0, 0, 0, 0.12);

    /* ── Z-index scale ── */
    --z-base:       0;
    --z-raised:     10;
    --z-dropdown:   200;
    --z-sticky:     300;
    --z-topbar:     400;
    --z-sidebar:    500;
    --z-overlay:    700;
    --z-modal:      800;
    --z-toast:      9999;

    /* ── Motion tokens ── */
    /* Durations */
    --dur-instant: 80ms;
    --dur-fast:    150ms;
    --dur-base:    250ms;
    --dur-slow:    400ms;
    --dur-slower:  600ms;

    /* Easing curves (Material Motion / M3 inspired) */
    --ease-standard:  cubic-bezier(0.4, 0, 0.2, 1);   /* most transitions */
    --ease-decel:     cubic-bezier(0, 0, 0.2, 1);      /* elements entering screen */
    --ease-accel:     cubic-bezier(0.4, 0, 1, 1);      /* elements leaving screen */
    --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);     /* emphasized / large transitions */
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1); /* bouncy micro-interactions */

    /* Shorthand transition presets */
    --transition-fast:   var(--dur-fast)  var(--ease-standard);
    --transition-base:   var(--dur-base)  var(--ease-standard);
    --transition-slow:   var(--dur-slow)  var(--ease-decel);
    --transition-exit:   var(--dur-fast)  var(--ease-accel);

    /* ── Shimmer tokens (loading skeleton) ── */
    --shimmer-base:  #D4D8D9;
    --shimmer-peak:  #BEC2C4;
}

* {
    box-sizing: border-box;
}

/* Detail-page scrolling ---------------------------------------------------
   The main content area owns the page scrollbar. Override the older scoped
   fixed-height shell so headers, fields, forms and tabs all participate in
   the same document flow. Tab contents retain a bounded viewport for grids. */
.content-area > .dp,
.content-area .dp {
    height: auto !important;
    min-height: 100%;
    overflow: visible !important;
}

.content-area .dp__tabs-region {
    flex: 0 0 auto !important;
    height: min(68vh, 720px);
    min-height: 420px;
    overflow: hidden;
}

.content-area .dp__body {
    flex: 0 0 auto;
    overflow: visible;
}

@media (max-width: 768px) {
    .content-area .dp__tabs-region {
        height: 560px;
        min-height: 480px;
    }
}

body {
    background: var(--surface-page);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Notification popup host ── */
.notification-host {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 420px;
    width: 100%;
    pointer-events: none;
}

.notification-toast {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(15, 33, 36, 0.14);
    overflow: hidden;
    pointer-events: all;
    font-family: var(--font-primary);
    font-size: var(--fs-data);
    animation: toast-enter var(--dur-base) var(--ease-decel) both;
}

@keyframes toast-enter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .notification-toast { animation: none; }
}

@media (max-width: 767.98px) {
    .notification-host {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: none;
    }
}

.notification-toast__header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
}

.notification-toast__body {
    padding: 0.625rem 0.75rem;
    color: var(--text-primary);
}

.notification-toast__details-toggle {
    cursor: pointer;
    font-size: var(--fs-small);
    color: var(--text-muted);
    user-select: none;
}

.notification-toast__details-pre {
    margin-top: 0.375rem;
    font-family: var(--font-mono);
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-all;
    background: var(--surface-raised);
    border-radius: 4px;
    padding: 0.5rem;
    max-height: 240px;
    overflow-y: auto;
    color: var(--text-primary);
}

.notification-toast--error   .notification-toast__header { color: var(--accent-red); }
.notification-toast--warning .notification-toast__header { color: var(--accent-orange); }
.notification-toast--info    .notification-toast__header { color: var(--accent-blue); }

.notification-toast--error   { border-left: 4px solid var(--accent-red); }
.notification-toast--warning { border-left: 4px solid var(--accent-orange); }
.notification-toast--info    { border-left: 4px solid var(--accent-blue); }

/* ═══════════════════════════════════════════════════════════════════════
   Dark theme overrides
   Applied when <html data-theme="dark"> or OS prefers dark + data-theme="system"
   ═══════════════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
    --ui-off-white: #171C22;
    --ui-grey: #ECEBE4;
    --ui-sidebar-border: rgba(255,255,255,.06);
    --ui-sidebar-hover: rgba(36,180,126,.12);
    --ui-sidebar-active: rgba(36,180,126,.22);
    /* Backgrounds */
    --bg:              #111A1C;
    --surface:         #1A2628;
    --surface-raised:  #1F2E31;
    --surface-overlay: rgba(17, 26, 28, 0.94);
    --surface-page:    #111A1C;
    --surface-card:    #1A2628;
    --surface-input:   #1F2E31;
    --surface-topbar:  #1A2628;
    --surface-error:   #3B1919;

    /* Text */
    --text-primary:    #E8ECED;
    --text-secondary:  rgba(232, 236, 237, 0.72);
    --text-muted:      rgba(232, 236, 237, 0.46);
    --text-disabled:   rgba(232, 236, 237, 0.28);
    --text-error:      #FCA5A5;

    /* Borders */
    --border:          rgba(232, 236, 237, 0.10);
    --border-row:      rgba(232, 236, 237, 0.06);
    --border-pill:     rgba(232, 236, 237, 0.18);
    --border-error:    #7F1D1D;
    --border-focus:    #44B2E8;

    /* Buttons */
    --btn-bg:          #2A3A3D;
    --btn-bg-hover:    #354C50;
    --btn-bg-active:   #3D5559;
    --btn-primary-bg:       #3EA1D2;
    --btn-primary-bg-hover: #44B2E8;
    --btn-primary-text:     #111A1C;

    /* Sidebar stays dark (unchanged, but keep vars consistent) */
    --sidebar-bg:      #111A1C;
    --sidebar-bg-alt:  #1C2B2E;
    --sidebar-border:  #2A3A3D;

    /* Shimmer — must be visible against dark surfaces */
    --shimmer-base:  #2A3A3D;
    --shimmer-peak:  #3D5559;

    /* Shadows — stronger in dark mode so depth reads against dark surfaces */
    --shadow-xs:  0 1px 3px  rgba(0, 0, 0, 0.25), 0 1px 2px  rgba(0, 0, 0, 0.20);
    --shadow-sm:  0 2px 8px  rgba(0, 0, 0, 0.35), 0 1px 4px  rgba(0, 0, 0, 0.25);
    --shadow-md:  0 4px 18px rgba(0, 0, 0, 0.45), 0 2px 8px  rgba(0, 0, 0, 0.30);
    --shadow-lg:  0 8px 36px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-xl:  0 16px 54px rgba(0, 0, 0, 0.65), 0 6px 22px rgba(0, 0, 0, 0.40);
}

/* System preference fallback (when user chose "system") */
@media (prefers-color-scheme: dark) {
    [data-theme="system"] {
        --bg:              #111A1C;
        --surface:         #1A2628;
        --surface-raised:  #1F2E31;
        --surface-overlay: rgba(17, 26, 28, 0.94);
        --surface-page:    #111A1C;
        --surface-card:    #1A2628;
        --surface-input:   #1F2E31;
        --surface-topbar:  #1A2628;
        --surface-error:   #3B1919;
        --text-primary:    #E8ECED;
        --text-secondary:  rgba(232, 236, 237, 0.72);
        --text-muted:      rgba(232, 236, 237, 0.46);
        --text-disabled:   rgba(232, 236, 237, 0.28);
        --text-error:      #FCA5A5;
        --border:          rgba(232, 236, 237, 0.10);
        --border-row:      rgba(232, 236, 237, 0.06);
        --border-pill:     rgba(232, 236, 237, 0.18);
        --border-error:    #7F1D1D;
        --btn-bg:          #2A3A3D;
        --btn-bg-hover:    #354C50;
        --btn-bg-active:   #3D5559;
        --btn-primary-bg:       #3EA1D2;
        --btn-primary-bg-hover: #44B2E8;
        --btn-primary-text:     #111A1C;
        --sidebar-bg:      #111A1C;
        --sidebar-bg-alt:  #1C2B2E;
        --sidebar-border:  #2A3A3D;
        --shimmer-base:    #2A3A3D;
        --shimmer-peak:    #3D5559;
    }
}

/* Shared Novulo page compositions. These classes intentionally live at the
   design-system level because they are used by multiple routable components. */
.ui-metric-grid {
    display: grid;
    gap: var(--sp-3);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ui-panel {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.ui-panel--spaced { margin-top: var(--sp-5); }
.ui-panel__header { align-items: center; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding: 13px 15px; }
.ui-panel__header h2 { font-size: var(--fs-title); font-weight: var(--fw-semibold); margin: 0; }
.ui-panel__header p { color: var(--text-muted); font-size: var(--fs-small); margin: 3px 0 0; }
.ui-panel__header a { color: var(--ui-green-dark); font-size: var(--fs-small); text-decoration: none; }

.ui-environment-grid { display: grid; gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ui-environment-card { border-right: 1px solid var(--border-row); color: var(--text-primary); display: flex; flex-direction: column; min-height: 138px; padding: 14px; text-decoration: none; transition: background var(--transition-fast), transform var(--transition-base); }
.ui-environment-card:last-child { border-right: 0; }
.ui-environment-card:hover { background: var(--surface-raised); transform: translateY(-1px); }
.ui-environment-card > div { align-items: center; color: var(--text-muted); display: flex; font-size: 9px; justify-content: space-between; text-transform: uppercase; }
.ui-environment-card > div .material-icon { color: var(--ui-green-dark); font-size: 14px; }
.ui-environment-card strong { font-size: var(--fs-data); margin-top: 11px; }
.ui-environment-card small { color: var(--text-muted); font: 9px var(--font-mono); margin-top: 3px; }
.ui-environment-card em { color: var(--ui-green-dark); font-size: 9px; font-style: normal; margin-top: auto; }
.ui-empty-inline { color: var(--text-muted); font-size: var(--fs-data); padding: 28px; text-align: center; }

.ui-grid-panel { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); height: min(70vh, 720px); min-height: 480px; overflow: hidden; }
.ui-panel.ui-grid-panel { height: min(62vh, 650px); }
.ui-tabs { align-items: center; border-bottom: 1px solid var(--border); display: flex; gap: 20px; margin-bottom: 12px; overflow-x: auto; }
.ui-tabs button, .ui-tabs > a { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--text-muted); cursor: pointer; font: var(--fw-medium) var(--fs-small) var(--font-primary); margin-bottom: -1px; padding: 9px 1px; text-decoration: none; white-space: nowrap; }
.ui-tabs button:hover, .ui-tabs button.active, .ui-tabs > a:hover { border-bottom-color: var(--ui-black); color: var(--text-primary); }
.ui-tabs > a { margin-left: auto; }

.ui-skeleton-card, .ui-skeleton-graph {
    animation: ui-shimmer 1.6s ease-in-out infinite;
    background: linear-gradient(90deg, var(--shimmer-base) 25%, var(--shimmer-peak) 50%, var(--shimmer-base) 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-lg);
    height: 112px;
}
.ui-skeleton-graph { height: 420px; }
@keyframes ui-shimmer { from { background-position: 200% center; } to { background-position: -200% center; } }

.ui-callout { align-items: center; display: flex; gap: 15px; padding: 20px; }
.ui-callout > .material-icon { align-items: center; background: var(--ui-green-soft); border-radius: var(--radius-lg); color: var(--ui-black); display: flex; font-size: 22px; height: 48px; justify-content: center; width: 48px; }
.ui-callout > div { flex: 1; }
.ui-callout h2 { font-size: var(--fs-title); margin: 0; }
.ui-callout p { color: var(--text-secondary); font-size: var(--fs-data); margin: 5px 0 0; }
.ui-primary-action { align-items: center; background: var(--ui-black); border-radius: var(--radius-md); color: white; display: inline-flex; font-size: var(--fs-small); gap: 7px; padding: 9px 12px; text-decoration: none; }
.ui-primary-action:hover { background: color-mix(in srgb, var(--ui-black) 85%, white); color: white; }
.ui-context-notice { align-items: center; background: color-mix(in srgb, var(--ui-orange) 9%, var(--surface-card)); border: 1px solid color-mix(in srgb, var(--ui-orange) 28%, var(--border)); border-radius: var(--radius-md); color: var(--text-secondary); display: flex; font-size: var(--fs-small); gap: 8px; margin-bottom: 10px; padding: 8px 11px; }
.ui-context-notice .material-icon { color: var(--ui-orange); font-size: 16px; }
.composition-steps { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0 0 14px; padding: 0; }
.composition-steps li { align-items: center; color: var(--text-muted); display: flex; font-size: var(--fs-small); gap: 7px; position: relative; }
.composition-steps li:not(:last-child)::after { background: var(--border); content: ""; flex: 1; height: 1px; margin: 0 10px; }
.composition-steps li span { align-items: center; border: 1px solid var(--border); border-radius: 50%; display: inline-flex; font: 9px var(--font-mono); height: 22px; justify-content: center; width: 22px; }
.composition-steps li.active { color: var(--text-primary); font-weight: var(--fw-semibold); }
.composition-steps li.active span { background: var(--ui-orange); border-color: var(--ui-orange); color: white; }
.composition-steps li.complete span { background: var(--ui-green-dark); border-color: var(--ui-green-dark); color: white; }
.composition-workbench { overflow: visible; }
.composition-workbench > header small { color: var(--ui-orange); font-size: 9px; font-weight: var(--fw-semibold); letter-spacing: .1em; text-transform: uppercase; }
.composition-workbench > header h2 { font-size: 18px; margin: 4px 0 0; }
.composition-workbench > header p { color: var(--text-secondary); font-size: var(--fs-data); margin: 5px 0 0; }
.composition-strategies { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.composition-strategies button { align-items: center; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); cursor: pointer; display: flex; gap: 10px; padding: 13px; text-align: left; }
.composition-strategies button:hover, .composition-strategies button.active { background: color-mix(in srgb, var(--ui-orange) 9%, var(--surface-card)); border-color: color-mix(in srgb, var(--ui-orange) 55%, var(--border)); transform: translateY(-1px); }
.composition-strategies button > .material-icon:first-child { color: var(--ui-orange); }
.composition-strategies button > .material-icon:last-child { color: var(--ui-green-dark); margin-left: auto; opacity: 0; }
.composition-strategies button.active > .material-icon:last-child { opacity: 1; }
.composition-strategies span, .composition-validation span { display: flex; flex: 1; flex-direction: column; }
.composition-strategies strong, .composition-validation strong { font-size: var(--fs-data); }
.composition-strategies small, .composition-validation small { color: var(--text-muted); font-size: var(--fs-small); margin-top: 3px; }
.composition-validation { display: grid; gap: 8px; margin-top: 18px; }
.composition-validation > div { align-items: center; background: color-mix(in srgb, var(--ui-green-soft) 22%, var(--surface-card)); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; gap: 10px; padding: 12px; }
.composition-validation > div > .material-icon { color: var(--ui-green-dark); }
.composition-validation > div.warning { background: color-mix(in srgb, var(--ui-orange) 10%, var(--surface-card)); }
.composition-validation > div.warning > .material-icon { color: var(--ui-orange); }
.composition-summary { align-items: center; background: color-mix(in srgb, var(--ui-orange) 9%, var(--surface-card)); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; gap: 12px; margin-top: 18px; padding: 18px; }
.composition-summary > .material-icon { color: var(--ui-orange); font-size: 28px; }
.composition-summary div { display: flex; flex-direction: column; }
.composition-summary span { color: var(--text-muted); font-size: var(--fs-small); margin-top: 3px; }
.composition-workbench .ui-card__footer { justify-content: space-between; }
.composition-workbench button.ui-primary-action, .ui-secondary-action { border: 0; cursor: pointer; }
.ui-secondary-action { align-items: center; background: transparent; border-radius: var(--radius-md); color: var(--text-secondary); display: inline-flex; font: var(--fw-medium) var(--fs-small) var(--font-primary); gap: 6px; padding: 8px 10px; }
.ui-secondary-action:disabled { opacity: .4; }
.ui-route-message { align-items: center; color: var(--text-secondary); display: flex; flex-direction: column; gap: 8px; justify-content: center; min-height: 50vh; padding: 30px; text-align: center; }
.ui-route-message .material-icon { color: var(--ui-orange); font-size: 28px; }
.ui-route-message h1 { color: var(--text-primary); font-size: 20px; margin: 0; }
.ui-route-message p { margin: 0; }

@media (max-width: 1000px) { .ui-metric-grid, .ui-environment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ui-environment-card:nth-child(2) { border-right: 0; } }
@media (max-width: 600px) { .ui-metric-grid, .ui-environment-grid { grid-template-columns: 1fr; } .ui-environment-card { border-bottom: 1px solid var(--border-row); border-right: 0; } .ui-callout { align-items: flex-start; flex-wrap: wrap; } .ui-primary-action { justify-content: center; width: 100%; } }
@media (max-width: 700px) { .composition-strategies { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ui-skeleton-card, .ui-skeleton-graph { animation: none; } .ui-environment-card { transition: none; } }
