@charset "UTF-8";
:root {
  --color-black: #000000;
  --color-gray-950: #0a0a0a;
  --color-gray-900: #1a1a1a;
  --color-gray-800: #2a2a2a;
  --color-gray-700: #404040;
  --color-gray-600: #5c6d80;
  --color-gray-500: #737373;
  --color-gray-400: #9ca3af;
  --color-gray-300: #d1d5db;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;
  --color-white: #ffffff;
  --color-brand-primary: #9DC9C9;
  --color-brand-primary-light: #B5D9D9;
  --color-brand-primary-dark: #7DAFAF;
  --color-brand-accent: #c0a54e;
  --color-success: #4caf50;
  --color-success-light: #8bc34a;
  --color-warning: #ffc107;
  --color-warning-dark: #ff9800;
  --color-error: #f44336;
  --color-error-dark: #d32f2f;
  --color-info: #2196f3;
  --color-info-light: #64b5f6;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.3);
  --duration-fast: 0.15s;
  --duration-base: 0.2s;
  --duration-slow: 0.3s;
  --duration-slower: 0.5s;
  --easing-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --easing-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --easing-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --z-base: 1;
  --z-elevated: 10;
  --z-sticky: 100;
  --z-overlay: 1000;
  --z-modal: 1100;
  --z-toast: 1200;
  --surface-base: var(--color-black);
  --surface-raised: var(--color-black);
  --surface-overlay: var(--color-gray-950);
  --surface-dialog: var(--color-gray-900);
  --text-primary: var(--color-white);
  --text-secondary: var(--color-gray-400);
  --text-tertiary: var(--color-gray-600);
  --text-disabled: var(--color-gray-700);
  --text-on-accent: var(--color-white);
  --border-subtle: var(--color-gray-900);
  --border-default: var(--color-gray-800);
  --border-strong: var(--color-gray-700);
  --border-accent: var(--color-brand-primary);
  --interactive-default: var(--color-brand-primary);
  --interactive-hover: var(--color-brand-primary-light);
  --interactive-active: var(--color-brand-primary-dark);
  --interactive-disabled: var(--color-gray-700);
  --focus-ring: var(--color-brand-primary-light);
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --feedback-success: var(--color-success);
  --feedback-warning: var(--color-warning);
  --feedback-error: var(--color-error);
  --feedback-info: var(--color-info);
  --device-state-on: var(--color-brand-accent);
  --device-state-off: var(--color-gray-600);
  --device-state-error: var(--color-error);
  --device-state-warning: var(--color-warning);
  --device-state-updating: var(--color-info);
  --signal-excellent: var(--color-success);
  --signal-good: var(--color-success-light);
  --signal-poor: var(--color-warning);
  --signal-critical: var(--color-error);
  --collision-glow-color: rgba(192, 165, 78, 0.7);
  --collision-flash-color: rgba(255, 255, 255, 0.95);
  --collision-particle-primary: var(--color-brand-accent);
  --collision-particle-secondary: rgba(255, 255, 255, 0.5);
  --overlay-backdrop-light: rgba(0, 0, 0, 0.3);
  --overlay-backdrop-medium: rgba(0, 0, 0, 0.5);
  --overlay-backdrop-heavy: rgba(0, 0, 0, 0.7);
  --overlay-backdrop-full: rgba(0, 0, 0, 0.9);
  --overlay-scrim-light: rgba(0, 0, 0, 0.1);
  --overlay-scrim-medium: rgba(0, 0, 0, 0.2);
  --overlay-scrim-heavy: rgba(0, 0, 0, 0.4);
  --glass-bg-dark: rgba(20, 20, 25, 0.75);
  --glass-bg-oled: rgba(0, 0, 0, 0.9);
  --glass-border-subtle: rgba(255, 255, 255, 0.05);
  --glass-border-light: rgba(255, 255, 255, 0.08);
  --glass-border-medium: rgba(255, 255, 255, 0.1);
  --glass-highlight-inset: rgba(255, 255, 255, 0.05);
  --glass-highlight-glow: rgba(255, 255, 255, 0.1);
  --state-active-bg: rgba(197, 248, 246, 0.15);
  --state-hover-bg: rgba(255, 255, 255, 0.08);
  --state-disabled-text: rgba(255, 255, 255, 0.4);
  --state-disabled-bg: rgba(255, 255, 255, 0.03);
  --state-focus-ring: rgba(157, 201, 201, 0.5);
  --state-on-glow: rgba(192, 165, 78, 0.4);
  --state-on-glow-intense: rgba(192, 165, 78, 0.6);
  --state-off-bg: rgba(0, 0, 0, 0.15);
  --state-off-bg-light: rgba(0, 0, 0, 0.1);
  --text-alpha-full: rgba(255, 255, 255, 0.95);
  --text-alpha-high: rgba(255, 255, 255, 0.9);
  --text-alpha-medium: rgba(255, 255, 255, 0.6);
  --text-alpha-low: rgba(255, 255, 255, 0.4);
  --text-alpha-dim: rgba(255, 255, 255, 0.5);
  --button-padding-block: var(--space-3);
  --button-padding-inline: var(--space-6);
  --button-border-radius: var(--radius-xl);
  --button-font-weight: var(--font-weight-semibold);
  --button-min-height: 44px;
  --button-transition: var(--duration-fast) var(--easing-ease-out);
  --card-padding: var(--space-6);
  --card-border-radius: var(--radius-lg);
  --card-background: var(--surface-raised);
  --card-border: 1px solid var(--border-subtle);
  --card-shadow: var(--shadow-sm);
  --card-gap: var(--space-4);
  --nav-height: 64px;
  --nav-height-mobile: 56px;
  --nav-item-padding: var(--space-4);
  --nav-icon-size: 20px;
  --nav-background: var(--surface-raised);
  --nav-border: 1px solid var(--border-subtle);
  --nav-transition: max-height 0.3s var(--easing-ease-in-out);
  --device-panel-padding: var(--space-8);
  --device-panel-border-radius: var(--radius-xl);
  --device-panel-gap: var(--space-4);
  --device-control-border-radius: 16px;
  --content-padding: var(--space-6);
  --content-max-width: 1440px;
  --accent-fill-rest: var(--interactive-default);
  --accent-fill-hover: var(--interactive-hover);
  --accent-fill-active: var(--interactive-active);
  --neutral-fill-layer-rest: var(--surface-base);
  --neutral-layer-1: var(--surface-base);
  --neutral-layer-2: var(--surface-raised);
  --neutral-layer-3: var(--surface-overlay);
  --neutral-layer-4: var(--surface-dialog);
  --neutral-foreground-rest: var(--text-primary);
  --neutral-foreground-hint: var(--text-tertiary);
  --neutral-foreground-disabled: var(--text-disabled);
  --neutral-stroke-divider: var(--border-subtle);
  --neutral-stroke-strong: var(--border-strong);
  --neutral-fill-strong-rest: var(--surface-overlay);
  --neutral-fill-strong-hover: var(--surface-dialog);
  --studio-primary: var(--color-brand-primary);
  --studio-primary-hover: var(--color-brand-primary-light);
  --studio-success: var(--color-brand-accent);
  --studio-surface: var(--surface-base);
  --studio-surface-secondary: var(--surface-raised);
  --studio-surface-tertiary: var(--surface-overlay);
}

body[data-theme=dark-gray] {
  --surface-base: var(--color-gray-900);
  --surface-raised: var(--color-gray-800);
  --surface-overlay: var(--color-gray-700);
  --surface-dialog: var(--color-gray-800);
  --text-secondary: var(--color-gray-300);
  --text-tertiary: var(--color-gray-400);
  --border-subtle: var(--color-gray-800);
  --border-default: var(--color-gray-700);
  --border-strong: var(--color-gray-600);
  --neutral-fill-layer-rest: var(--surface-base);
  --neutral-layer-1: var(--surface-base);
  --neutral-layer-2: var(--surface-raised);
  --neutral-layer-3: var(--surface-overlay);
  --neutral-layer-4: var(--surface-dialog);
  --neutral-stroke-divider: var(--border-subtle);
  --neutral-stroke-strong: var(--border-strong);
}

body[data-theme=high-contrast] {
  --surface-base: var(--color-black);
  --surface-raised: var(--color-black);
  --surface-overlay: var(--color-gray-900);
  --surface-dialog: var(--color-black);
  --text-primary: var(--color-white);
  --text-secondary: var(--color-white);
  --text-tertiary: var(--color-gray-200);
  --border-subtle: var(--color-white);
  --border-default: var(--color-white);
  --border-strong: var(--color-white);
  --interactive-default: #0080ff;
  --feedback-success: #00ff00;
  --feedback-error: #ff0000;
  --neutral-fill-layer-rest: var(--surface-base);
  --neutral-layer-1: var(--surface-base);
  --neutral-layer-2: var(--surface-raised);
  --neutral-layer-3: var(--surface-overlay);
  --neutral-stroke-divider: var(--border-default);
  --neutral-stroke-strong: var(--border-strong);
}

@media (prefers-contrast: high) {
  :root {
    --text-primary: var(--color-white);
    --text-secondary: var(--color-white);
    --text-tertiary: var(--color-gray-100);
    --text-disabled: var(--color-gray-300);
    --border-subtle: var(--color-white);
    --border-default: var(--color-white);
    --border-strong: var(--color-white);
    --interactive-default: #00aaff;
    --interactive-hover: #33bbff;
    --focus-ring: #ffffff;
    --focus-ring-width: 3px;
    --feedback-success: #00ff00;
    --feedback-warning: #ffff00;
    --feedback-error: #ff0000;
    --feedback-info: #00ffff;
    --overlay-backdrop-light: rgba(0, 0, 0, 0.7);
    --overlay-backdrop-medium: rgba(0, 0, 0, 0.85);
    --glass-bg-dark: rgba(0, 0, 0, 0.95);
    --glass-border-light: rgba(255, 255, 255, 0.5);
    --state-active-bg: rgba(0, 170, 255, 0.3);
    --state-hover-bg: rgba(255, 255, 255, 0.2);
  }
}
body[data-mode=configuration] {
  --content-padding: var(--space-4);
  --card-padding: var(--space-4);
  --button-padding-block: var(--space-2);
  --font-size-base: 0.875rem;
  --line-height-normal: 1.4;
  --card-shadow: var(--shadow-sm);
}

body[data-mode=control] {
  --content-padding: var(--space-6);
  --card-padding: var(--space-8);
  --button-padding-block: var(--space-4);
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --line-height-normal: 1.6;
  --card-shadow: var(--shadow-md);
}

body[data-kiosk=true] {
  --button-min-height: 60px;
  --button-min-width: 60px;
  --button-padding-block: var(--space-5);
  --button-padding-inline: var(--space-8);
  --font-size-base: 1.25rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-2xl: 2.5rem;
  --content-padding: var(--space-8);
  --card-padding: var(--space-10);
  --card-gap: var(--space-8);
  --nav-height: 0px;
}

body[data-oled=true] {
  --surface-base: var(--color-black);
  --surface-raised: var(--color-black);
  --surface-overlay: var(--color-gray-950);
  --nav-background: var(--color-black);
  --neutral-fill-layer-rest: #000000;
  --neutral-layer-1: #000000;
  --neutral-layer-2: #000000;
  --neutral-layer-3: #050505;
  --neutral-stroke-divider: #111111;
  --neutral-stroke-strong: #1a1a1a;
}

@media (max-width: 767px) {
  :root {
    --nav-height: var(--nav-height-mobile);
    --content-padding: var(--space-4);
    --card-padding: var(--space-4);
    --button-min-height: 44px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --content-padding: var(--space-6);
    --card-padding: var(--space-6);
  }
}
@media (min-width: 1024px) {
  :root {
    --content-padding: var(--space-8);
    --card-padding: var(--space-8);
    --nav-height: 64px;
  }
}
:root {
  --kiosk-touch-target: 60px;
  --kiosk-body-font: 16px;
  --kiosk-h1-font: 32px;
  --kiosk-h2-font: 24px;
  --kiosk-card-gap: 24px;
  --kiosk-card-padding: 32px;
  --kiosk-scale: 1;
  --kiosk-ppi: 96;
}

body[data-kiosk-scaling=active] {
  --font-size-base: var(--kiosk-body-font);
  --font-size-lg: calc(var(--kiosk-body-font) * 1.25);
  --font-size-xl: var(--kiosk-h2-font);
  --font-size-2xl: var(--kiosk-h1-font);
  --button-min-height: var(--kiosk-touch-target);
  --button-min-width: var(--kiosk-touch-target);
  --card-gap: var(--kiosk-card-gap);
  --card-padding: var(--kiosk-card-padding);
  --content-padding: var(--kiosk-card-padding);
}

.kiosk-text-body {
  font-size: var(--kiosk-body-font);
  line-height: 1.5;
}

.kiosk-text-h1 {
  font-size: var(--kiosk-h1-font);
  font-weight: 600;
  line-height: 1.2;
}

.kiosk-text-h2 {
  font-size: var(--kiosk-h2-font);
  font-weight: 600;
  line-height: 1.3;
}

.kiosk-touch-target, .kiosk-touch-target--full {
  min-width: var(--kiosk-touch-target);
  min-height: var(--kiosk-touch-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kiosk-touch-target--full {
  width: 100%;
}

.kiosk-gap {
  gap: var(--kiosk-card-gap);
}

.kiosk-padding {
  padding: var(--kiosk-card-padding);
}

:root {
  --sun-phase-accent: rgba(255, 255, 255, 0.7);
  --sun-phase-glow: rgba(255, 255, 255, 0.15);
  --sun-phase-border: rgba(255, 255, 255, 0.1);
  --sun-phase-text: rgba(255, 255, 255, 0.9);
  --sun-phase-background: rgba(255, 255, 255, 0.05);
}

.sun-phase--night {
  --sun-phase-accent: #5055E6;
  --sun-phase-glow: rgba(80, 85, 230, 0.4);
  --sun-phase-border: rgba(80, 85, 230, 0.35);
  --sun-phase-text: #A5B4FC;
  --sun-phase-background: rgba(80, 85, 230, 0.12);
}

.sun-phase--deep-night {
  --sun-phase-accent: #4F46E5;
  --sun-phase-glow: rgba(79, 70, 229, 0.4);
  --sun-phase-border: rgba(79, 70, 229, 0.35);
  --sun-phase-text: #A5B4FC;
  --sun-phase-background: rgba(79, 70, 229, 0.12);
}

.sun-phase--late-night {
  --sun-phase-accent: #8B5CF6;
  --sun-phase-glow: rgba(139, 92, 246, 0.4);
  --sun-phase-border: rgba(139, 92, 246, 0.35);
  --sun-phase-text: #C4B5FD;
  --sun-phase-background: rgba(139, 92, 246, 0.12);
}

.sun-phase--dawn {
  --sun-phase-accent: #F59E0B;
  --sun-phase-glow: rgba(245, 158, 11, 0.4);
  --sun-phase-border: rgba(245, 158, 11, 0.35);
  --sun-phase-text: #FCD34D;
  --sun-phase-background: rgba(245, 158, 11, 0.12);
}

.sun-phase--twilight {
  --sun-phase-accent: #DB2777;
  --sun-phase-glow: rgba(219, 39, 119, 0.4);
  --sun-phase-border: rgba(219, 39, 119, 0.35);
  --sun-phase-text: #F9A8D4;
  --sun-phase-background: rgba(219, 39, 119, 0.12);
}

.sun-phase--morning {
  --sun-phase-accent: #FBBF24;
  --sun-phase-glow: rgba(251, 191, 36, 0.4);
  --sun-phase-border: rgba(251, 191, 36, 0.35);
  --sun-phase-text: #FEF3C7;
  --sun-phase-background: rgba(251, 191, 36, 0.12);
}

.sun-phase--afternoon {
  --sun-phase-accent: #EAB308;
  --sun-phase-glow: rgba(234, 179, 8, 0.4);
  --sun-phase-border: rgba(234, 179, 8, 0.35);
  --sun-phase-text: #FEF9C3;
  --sun-phase-background: rgba(234, 179, 8, 0.12);
}

.sun-phase--evening {
  --sun-phase-accent: #F97316;
  --sun-phase-glow: rgba(249, 115, 22, 0.4);
  --sun-phase-border: rgba(249, 115, 22, 0.35);
  --sun-phase-text: #FED7AA;
  --sun-phase-background: rgba(249, 115, 22, 0.12);
}

.sun-event--nadir {
  --sun-event-accent: #4F46E5;
  --sun-event-glow: rgba(79, 70, 229, 0.4);
  --sun-event-border: rgba(79, 70, 229, 0.35);
}

.sun-event--astronomical-dawn {
  --sun-event-accent: #581C87;
  --sun-event-glow: rgba(88, 28, 135, 0.4);
  --sun-event-border: rgba(88, 28, 135, 0.35);
}

.sun-event--astronomical-dusk {
  --sun-event-accent: #6B21A8;
  --sun-event-glow: rgba(107, 33, 168, 0.4);
  --sun-event-border: rgba(107, 33, 168, 0.35);
}

.sun-event--nautical-dawn {
  --sun-event-accent: #7C3AED;
  --sun-event-glow: rgba(124, 58, 237, 0.4);
  --sun-event-border: rgba(124, 58, 237, 0.35);
}

.sun-event--nautical-dusk {
  --sun-event-accent: #A855F7;
  --sun-event-glow: rgba(168, 85, 247, 0.4);
  --sun-event-border: rgba(168, 85, 247, 0.35);
}

.sun-event--dawn {
  --sun-event-accent: #F59E0B;
  --sun-event-glow: rgba(245, 158, 11, 0.4);
  --sun-event-border: rgba(245, 158, 11, 0.35);
}

.sun-event--dusk {
  --sun-event-accent: #DB2777;
  --sun-event-glow: rgba(219, 39, 119, 0.4);
  --sun-event-border: rgba(219, 39, 119, 0.35);
}

.sun-event--sunrise {
  --sun-event-accent: #FB923C;
  --sun-event-glow: rgba(251, 146, 60, 0.4);
  --sun-event-border: rgba(251, 146, 60, 0.35);
}

.sun-event--sunset {
  --sun-event-accent: #EA580C;
  --sun-event-glow: rgba(234, 88, 12, 0.4);
  --sun-event-border: rgba(234, 88, 12, 0.35);
}

.sun-event--golden-hour-end {
  --sun-event-accent: #FBBF24;
  --sun-event-glow: rgba(251, 191, 36, 0.4);
  --sun-event-border: rgba(251, 191, 36, 0.35);
}

.sun-event--golden-hour-start {
  --sun-event-accent: #F97316;
  --sun-event-glow: rgba(249, 115, 22, 0.4);
  --sun-event-border: rgba(249, 115, 22, 0.35);
}

.sun-event--solar-noon {
  --sun-event-accent: #EAB308;
  --sun-event-glow: rgba(234, 179, 8, 0.4);
  --sun-event-border: rgba(234, 179, 8, 0.35);
}

.sun-phase--cloudy {
  filter: saturate(0.85) brightness(0.95);
}

.sun-phase--overcast {
  filter: saturate(0.65) brightness(0.85);
}

:root {
  --weather-rain: #64B5F6;
  --weather-rain-glow: rgba(100, 181, 246, 0.3);
  --weather-rain-bg: rgba(100, 181, 246, 0.12);
  --weather-rain-border: rgba(100, 181, 246, 0.25);
  --weather-drizzle: #90CAF9;
  --weather-drizzle-glow: rgba(144, 202, 249, 0.25);
  --weather-drizzle-bg: rgba(144, 202, 249, 0.1);
  --weather-snow: #E3F2FD;
  --weather-snow-glow: rgba(227, 242, 253, 0.3);
  --weather-snow-bg: rgba(227, 242, 253, 0.1);
  --weather-ice: #80DEEA;
  --weather-ice-glow: rgba(128, 222, 234, 0.3);
  --weather-ice-bg: rgba(128, 222, 234, 0.1);
  --weather-storm: #CE93D8;
  --weather-storm-glow: rgba(206, 147, 216, 0.35);
  --weather-storm-bg: rgba(206, 147, 216, 0.15);
  --weather-intensity-light: 0.7;
  --weather-intensity-moderate: 0.85;
  --weather-intensity-heavy: 1;
}

.weather-precip--rain {
  --weather-precip-color: #64B5F6;
  --weather-precip-glow: rgba(100, 181, 246, 0.3);
  --weather-precip-bg: rgba(100, 181, 246, 0.12);
  --weather-precip-border: rgba(100, 181, 246, 0.25);
}

.weather-precip--rain-showers {
  --weather-precip-color: #64B5F6;
  --weather-precip-glow: rgba(100, 181, 246, 0.3);
  --weather-precip-bg: rgba(100, 181, 246, 0.12);
  --weather-precip-border: rgba(100, 181, 246, 0.25);
}

.weather-precip--drizzle {
  --weather-precip-color: #90CAF9;
  --weather-precip-glow: rgba(144, 202, 249, 0.25);
  --weather-precip-bg: rgba(144, 202, 249, 0.1);
  --weather-precip-border: rgba(144, 202, 249, 0.2);
}

.weather-precip--snow {
  --weather-precip-color: #E3F2FD;
  --weather-precip-glow: rgba(227, 242, 253, 0.3);
  --weather-precip-bg: rgba(227, 242, 253, 0.1);
  --weather-precip-border: rgba(227, 242, 253, 0.25);
}

.weather-precip--snow-showers {
  --weather-precip-color: #E3F2FD;
  --weather-precip-glow: rgba(227, 242, 253, 0.3);
  --weather-precip-bg: rgba(227, 242, 253, 0.1);
  --weather-precip-border: rgba(227, 242, 253, 0.25);
}

.weather-precip--ice {
  --weather-precip-color: #80DEEA;
  --weather-precip-glow: rgba(128, 222, 234, 0.3);
  --weather-precip-bg: rgba(128, 222, 234, 0.1);
  --weather-precip-border: rgba(128, 222, 234, 0.25);
}

.weather-precip--freezing-drizzle {
  --weather-precip-color: #80DEEA;
  --weather-precip-glow: rgba(128, 222, 234, 0.3);
  --weather-precip-bg: rgba(128, 222, 234, 0.1);
  --weather-precip-border: rgba(128, 222, 234, 0.25);
}

.weather-precip--freezing-rain {
  --weather-precip-color: #80DEEA;
  --weather-precip-glow: rgba(128, 222, 234, 0.3);
  --weather-precip-bg: rgba(128, 222, 234, 0.1);
  --weather-precip-border: rgba(128, 222, 234, 0.25);
}

.weather-precip--storm {
  --weather-precip-color: #CE93D8;
  --weather-precip-glow: rgba(206, 147, 216, 0.35);
  --weather-precip-bg: rgba(206, 147, 216, 0.15);
  --weather-precip-border: rgba(206, 147, 216, 0.3);
}

.weather-precip--thunderstorm {
  --weather-precip-color: #CE93D8;
  --weather-precip-glow: rgba(206, 147, 216, 0.35);
  --weather-precip-bg: rgba(206, 147, 216, 0.15);
  --weather-precip-border: rgba(206, 147, 216, 0.3);
}

:root {
  --header-tier: 'full';
  --header-padding-x: var(--space-4);
  --header-padding-y: var(--space-3);
  --header-gap: var(--space-4);
  --header-row-gap: var(--space-3);
  --sun-timeline-variant: 'full';
  --sun-track-visible: 1;
  --sun-track-min-width: 120px;
  --sun-anchor-min-width: 80px;
  --sun-anchor-font-scale: 1;
  --sun-boundary-times-visible: 1;
  --forecast-days-visible: 6;
  --forecast-day-min-width: 40px;
  --forecast-compact-mode: 0;
  --clock-show-seconds: 1;
  --clock-font-scale: 1;
  --env-pill-compact: 0;
  --env-pill-show-phase-text: 1;
  --expanded-layout: 'horizontal';
  --expanded-gap: var(--space-4);
}

@media (min-width: 948px) and (max-width: 1271px) {
  :root {
    --header-tier: 'wide';
    --sun-timeline-variant: 'compact';
    --sun-track-min-width: 80px;
    --sun-anchor-min-width: 60px;
    --sun-anchor-font-scale: 0.9;
    --forecast-days-visible: 5;
  }
}
@media (min-width: 624px) and (max-width: 947px) {
  :root {
    --header-tier: 'medium';
    --header-gap: var(--space-3);
    --sun-timeline-variant: 'compact';
    --sun-track-min-width: 60px;
    --sun-anchor-min-width: 50px;
    --sun-anchor-font-scale: 0.85;
    --sun-boundary-times-visible: 0;
    --forecast-days-visible: 4;
    --clock-show-seconds: 0;
    --clock-font-scale: 0.9;
    --expanded-layout: 'vertical';
  }
}
@media (max-width: 623px) {
  :root {
    --header-tier: 'compact';
    --header-padding-x: var(--space-3);
    --header-gap: var(--space-2);
    --header-row-gap: var(--space-2);
    --sun-timeline-variant: 'ultra-compact';
    --sun-track-min-width: 40px;
    --sun-anchor-min-width: 40px;
    --sun-anchor-font-scale: 0.8;
    --sun-boundary-times-visible: 0;
    --forecast-days-visible: 3;
    --forecast-compact-mode: 1;
    --clock-show-seconds: 0;
    --clock-font-scale: 0.8;
    --env-pill-compact: 1;
    --env-pill-show-phase-text: 0;
    --expanded-layout: 'vertical';
    --expanded-gap: var(--space-3);
  }
}
.sun-timeline--full {
  --sun-track-min-width: 120px;
  --sun-anchor-min-width: 80px;
  --sun-anchor-font-scale: 1;
  --sun-boundary-times-visible: 1;
}

.sun-timeline--compact {
  --sun-track-min-width: 60px;
  --sun-anchor-min-width: 50px;
  --sun-anchor-font-scale: 0.85;
  --sun-boundary-times-visible: 0;
}

.sun-timeline--ultra-compact {
  --sun-track-min-width: 40px;
  --sun-anchor-min-width: 40px;
  --sun-anchor-font-scale: 0.8;
  --sun-boundary-times-visible: 0;
}

.forecast-strip--days-6 {
  --forecast-days-visible: 6;
}

.forecast-strip--days-5 {
  --forecast-days-visible: 5;
}

.forecast-strip--days-4 {
  --forecast-days-visible: 4;
}

.forecast-strip--days-3 {
  --forecast-days-visible: 3;
}

.clock--full {
  --clock-show-seconds: 1;
  --clock-font-scale: 1;
}

.clock--compact {
  --clock-show-seconds: 0;
  --clock-font-scale: 0.9;
}

.clock--ultra-compact {
  --clock-show-seconds: 0;
  --clock-font-scale: 0.8;
}

:root {
  --min-touch-target: 44px;
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --focus-ring-color: #c0a54e;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --header-transition-duration: 0.01ms;
  }
}
:root {
  --header-transition-duration: 200ms;
  --header-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

.reduced-effects *,
.reduced-effects *::before,
.reduced-effects *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.reduced-effects fluent-popover::part(popover),
.reduced-effects .popover,
.reduced-effects [popover] {
  background: var(--neutral-layer-floating, rgba(30, 30, 35, 0.98)) !important;
}
.reduced-effects fluent-dialog::part(control),
.reduced-effects .dialog__content,
.reduced-effects .modal {
  background: var(--neutral-layer-card-container, rgba(35, 35, 40, 0.98)) !important;
}
.reduced-effects .system-header__clock-container {
  background: rgba(25, 25, 30, 0.95) !important;
}
.reduced-effects .nav-bar,
.reduced-effects .modern-nav-bar {
  background: rgba(20, 20, 25, 0.98) !important;
}
.reduced-effects fluent-toast::part(root) {
  background: var(--neutral-layer-card-container, rgba(40, 40, 45, 0.98)) !important;
}
.reduced-effects .system-header__clock-container,
.reduced-effects fluent-popover::part(popover),
.reduced-effects .floating-panel {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
.reduced-effects *,
.reduced-effects *::before,
.reduced-effects *::after {
  transition-duration: 150ms !important;
  animation-duration: 150ms !important;
}
@keyframes pulse {
  from, to {
    opacity: 1;
  }
}
@keyframes shimmer {
  from, to {
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body[data-theme=oled] {
  --surface-base: #000000;
  --surface-raised: #000000;
  --surface-overlay: #0a0a0a;
  --surface-dialog: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --border-subtle: #1a1a1a;
  --border-default: #2a2a2a;
  --border-strong: #404040;
  --neutral-fill-layer-rest: #000000;
  --neutral-layer-1: #000000;
  --neutral-layer-2: #000000;
  --neutral-layer-3: #0a0a0a;
  --neutral-layer-4: #1a1a1a;
  --neutral-stroke-divider: #1a1a1a;
  --neutral-stroke-strong: #2a2a2a;
  --studio-surface: #000000;
  --studio-surface-secondary: #000000;
  --studio-surface-tertiary: #0a0a0a;
}

body[data-theme=dark-gray] {
  --surface-base: #1a1a1a;
  --surface-raised: #2a2a2a;
  --surface-overlay: #404040;
  --surface-dialog: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --border-subtle: #2a2a2a;
  --border-default: #404040;
  --border-strong: #5c6d80;
  --neutral-fill-layer-rest: #1a1a1a;
  --neutral-layer-1: #1a1a1a;
  --neutral-layer-2: #2a2a2a;
  --neutral-layer-3: #404040;
  --neutral-layer-4: #2a2a2a;
  --neutral-stroke-divider: #2a2a2a;
  --neutral-stroke-strong: #5c6d80;
  --studio-surface: #1a1a1a;
  --studio-surface-secondary: #2a2a2a;
  --studio-surface-tertiary: #404040;
}

body[data-theme=high-contrast] {
  --surface-base: #000000;
  --surface-raised: #000000;
  --surface-overlay: #1a1a1a;
  --surface-dialog: #000000;
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-tertiary: #e5e7eb;
  --border-subtle: #ffffff;
  --border-default: #ffffff;
  --border-strong: #ffffff;
  --interactive-default: #0080ff;
  --interactive-hover: #3399ff;
  --interactive-active: #0066cc;
  --focus-ring: #00ccff;
  --feedback-success: #00ff00;
  --feedback-warning: #ffff00;
  --feedback-error: #ff0000;
  --feedback-info: #00ffff;
  --device-state-on: #00ff00;
  --device-state-off: #808080;
  --device-state-error: #ff0000;
  --device-state-warning: #ffff00;
  --device-state-updating: #00ffff;
  --neutral-fill-layer-rest: #000000;
  --neutral-layer-1: #000000;
  --neutral-layer-2: #000000;
  --neutral-layer-3: #1a1a1a;
  --neutral-layer-4: #000000;
  --neutral-stroke-divider: #ffffff;
  --neutral-stroke-strong: #ffffff;
  --accent-fill-rest: #0080ff;
  --accent-fill-hover: #3399ff;
  --accent-fill-active: #0066cc;
  --studio-surface: #000000;
  --studio-surface-secondary: #000000;
  --studio-surface-tertiary: #1a1a1a;
}

body[data-theme=high-contrast] * {
  border-color: #ffffff !important;
}
body[data-theme=high-contrast] *:focus-visible {
  outline-width: 3px !important;
  outline-color: #00ccff !important;
  outline-offset: 3px !important;
}
body[data-theme=high-contrast] button,
body[data-theme=high-contrast] a.button,
body[data-theme=high-contrast] .fluent-button {
  border: 2px solid #ffffff !important;
}
body[data-theme=high-contrast] .fluent-card,
body[data-theme=high-contrast] .device-panel,
body[data-theme=high-contrast] .control-panel {
  border: 2px solid #ffffff !important;
}

.reconnect-failed-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  min-height: 64px;
  padding: 12px 16px;
  background: linear-gradient(to right, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.95));
  backdrop-filter: blur(8px);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: slideUpBanner 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.reconnect-failed-banner .banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 24px;
}
.reconnect-failed-banner .banner-message {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.reconnect-failed-banner .banner-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #FFFFFF;
  stroke-width: 2;
}
.reconnect-failed-banner .banner-text {
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  font-weight: 400;
}
.reconnect-failed-banner .banner-text .banner-countdown {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
  display: inline-block;
}
.reconnect-failed-banner .banner-cancel {
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.reconnect-failed-banner .banner-cancel svg {
  width: 24px;
  height: 24px;
  display: block;
}
.reconnect-failed-banner .banner-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.reconnect-failed-banner .banner-cancel:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0.95);
}
.reconnect-failed-banner .banner-cancel:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}
.reconnect-failed-banner .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.reconnect-failed-banner.banner-closing {
  animation: slideDownBanner 0.2s ease-in;
}

@media (max-width: 767px) {
  .reconnect-failed-banner {
    padding: 12px;
  }
  .reconnect-failed-banner .banner-content {
    gap: 12px;
  }
  .reconnect-failed-banner .banner-message {
    gap: 8px;
  }
  .reconnect-failed-banner .banner-icon {
    width: 20px;
    height: 20px;
  }
  .reconnect-failed-banner .banner-text {
    font-size: 14px;
  }
  .reconnect-failed-banner .banner-cancel {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
  .reconnect-failed-banner .banner-cancel svg {
    width: 20px;
    height: 20px;
  }
}
@keyframes slideUpBanner {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideDownBanner {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reconnect-failed-banner {
    animation: none;
  }
  .reconnect-failed-banner.banner-closing {
    animation: none;
    display: none;
  }
  .reconnect-failed-banner .banner-cancel {
    transition: none;
  }
  .reconnect-failed-banner .banner-cancel:hover, .reconnect-failed-banner .banner-cancel:active {
    transform: none;
  }
}
#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--neutral-layer-2);
  border-top: 3px solid var(--device-state-error);
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6);
  animation: slideUpError 0.3s ease-out;
  color: var(--neutral-foreground-rest);
  font-size: 14px;
  font-weight: 500;
}
#blazor-error-ui[style*="display: block"] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-items: center;
  gap: 1rem;
}
#blazor-error-ui::before {
  content: "⚠";
  color: var(--device-state-error);
  font-size: 20px;
  margin-right: 0.25rem;
}
#blazor-error-ui .reload {
  padding: 0.25rem 1rem;
  background: var(--device-state-error);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease-out;
  will-change: all;
}
#blazor-error-ui .reload:hover {
  background: rgb(246.6462264151, 112.2264150943, 102.3537735849);
  transform: translateY(-1px);
}
#blazor-error-ui .reload:active {
  transform: translateY(0);
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  padding: 0.25rem;
  font-size: 24px;
  color: var(--neutral-foreground-hint);
  transition: all 0.2s ease-out;
  will-change: all;
  min-height: 44px;
  min-width: 44px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease-out;
  will-change: box-shadow;
  border-radius: 8px;
}
@media (hover: hover) {
  #blazor-error-ui .dismiss:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease-out;
    will-change: box-shadow;
    transform: translateY(-1px);
  }
}
#blazor-error-ui .dismiss:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease-out;
  will-change: box-shadow;
}
#blazor-error-ui .dismiss:hover {
  color: var(--device-state-error);
  transform: scale(1.1);
}
#blazor-error-ui .dismiss:active {
  transform: scale(0.95);
}
#blazor-error-ui .error-countdown-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}
#blazor-error-ui .error-countdown-container .error-countdown-text {
  font-size: 14px;
  color: var(--neutral-foreground-rest);
  white-space: nowrap;
}
#blazor-error-ui .error-countdown-container .error-countdown-text .error-countdown-value {
  color: var(--device-state-error);
  font-weight: 700;
  font-size: 16px;
  min-width: 1.5ch;
  display: inline-block;
  text-align: center;
}
#blazor-error-ui .error-countdown-container .error-cancel-btn {
  padding: 0.25rem 1rem;
  background: var(--neutral-layer-4);
  color: var(--neutral-foreground-rest);
  border: 1px solid var(--neutral-stroke-rest);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-out;
  will-change: all;
  white-space: nowrap;
}
#blazor-error-ui .error-countdown-container .error-cancel-btn:hover {
  background: var(--neutral-layer-3);
  border-color: var(--neutral-stroke-hover);
  color: var(--neutral-foreground-hover);
  transform: translateY(-1px);
}
#blazor-error-ui .error-countdown-container .error-cancel-btn:active {
  transform: translateY(0);
  background: var(--neutral-layer-2);
}
#blazor-error-ui .error-countdown-container .error-cancel-btn:focus-visible {
  outline: 2px solid var(--focus-stroke-outer);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  #blazor-error-ui[style*="display: block"] {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 12px;
  }
  #blazor-error-ui[style*="display: block"] .reload {
    width: 100%;
    text-align: center;
  }
  #blazor-error-ui[style*="display: block"] .error-countdown-container {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  #blazor-error-ui[style*="display: block"] .error-countdown-container .error-cancel-btn {
    flex-shrink: 0;
  }
}

@keyframes slideUpError {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
#blazor-error-dialog-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  max-width: 100%;
  max-height: none;
}
#blazor-error-dialog-wrapper::backdrop {
  display: none;
}

fluent-badge {
  --badge-fill-admin: #f59e0b;
  --badge-color-admin: #000000;
  --badge-fill-agent: var(--accent-fill-rest);
  --badge-color-agent: #000000;
  --badge-fill-guest: rgba(255, 255, 255, 0.1);
  --badge-color-guest: #ffffff;
}

[data-theme=oled] fluent-badge {
  --badge-fill-admin: #fb923c;
  --badge-fill-guest: rgba(255, 255, 255, 0.15);
}

[data-theme=high-contrast] fluent-badge {
  --badge-fill-admin: #ffa500;
  --badge-color-admin: #000000;
}

fluent-dialog {
  z-index: 100000 !important;
}

fluent-dialog-overlay {
  z-index: 99999 !important;
}

fluent-layout.shell {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
  flex: 1 1 auto;
  width: 100%;
}

fluent-body-content.shell__main {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0;
  width: 100%;
}

.fluent-overlay {
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: auto;
  z-index: 20000 !important;
}

fluent-popover,
fluent-anchored-region {
  z-index: 20001 !important;
}

fluent-popover::part(popover) {
  background: rgba(18, 18, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: fluent-popover-enter 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fluent-popover-enter {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.universal-clock-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  cursor: pointer;
  user-select: none;
}
.universal-clock-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay-clock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  font-family: "Segoe UI", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  will-change: transform, opacity, left, top;
}
.overlay-clock__time {
  font-size: 6rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  line-height: 1;
  will-change: text-shadow;
}
.overlay-clock__date {
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}
.overlay-clock__digit {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  width: 0.6em;
  vertical-align: baseline;
}
.overlay-clock__digit .digit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
}
.overlay-clock__digit .digit--incoming {
  transform: translateY(-100%);
  opacity: 0;
}
.overlay-clock__colon {
  position: relative;
  display: inline-block;
  width: 0.3em;
  height: 1.2em;
  margin: 0 0.1em;
  vertical-align: baseline;
}
.overlay-clock__colon .dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.08em;
  height: 0.08em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.overlay-clock__colon .dot--top {
  animation: dot-orbit-top 4s linear infinite;
}
.overlay-clock__colon .dot--bottom {
  animation: dot-orbit-bottom 4s linear infinite;
}
.overlay-clock--sleep {
  opacity: 0.8;
}
.overlay-clock--sleep .overlay-clock__time {
  font-size: 3rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.overlay-clock--sleep .overlay-clock__date {
  font-size: 1rem;
  margin-top: 0.75rem;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .overlay-clock {
    will-change: auto;
  }
  .overlay-clock__time {
    will-change: auto;
  }
  .overlay-clock__colon .dot {
    animation: none;
    opacity: 1;
  }
  .overlay-clock__colon .dot--top {
    transform: translate(-50%, -0.4em) scale(1.5);
  }
  .overlay-clock__colon .dot--bottom {
    transform: translate(-50%, 0.4em) scale(1.5);
  }
}
@media (max-width: 768px) {
  .overlay-clock__time {
    font-size: 4rem;
  }
  .overlay-clock__date {
    font-size: 1.2rem;
  }
  .overlay-clock--sleep .overlay-clock__time {
    font-size: 2.5rem;
  }
  .overlay-clock--sleep .overlay-clock__date {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .overlay-clock__time {
    font-size: 3rem;
  }
  .overlay-clock__date {
    font-size: 1rem;
  }
  .overlay-clock--sleep .overlay-clock__time {
    font-size: 2rem;
  }
  .overlay-clock--sleep .overlay-clock__date {
    font-size: 0.8rem;
  }
}
:root {
  --settings-card-radius: calc(var(--control-corner-radius) * 2);
  --settings-icon-size: 36px;
  --ambient-color: #6366f1;
  --sleep-color: #8b5cf6;
  --kiosk-color: #10b981;
  --language-color: #0ea5e9;
}

.settings-card {
  --card-padding: 16px;
}
.settings-card::part(content) {
  padding: 0;
}
.settings-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--card-padding);
}
.settings-card__header:not(:last-child) {
  border-bottom: 1px solid var(--neutral-stroke-divider-rest);
}
.settings-card__icon {
  width: var(--settings-icon-size);
  height: var(--settings-icon-size);
  background: color-mix(in srgb, var(--accent-fill-rest) 12%, transparent);
  border-radius: calc(var(--control-corner-radius) * 1.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-fill-rest);
  flex-shrink: 0;
}
.settings-card__icon--kiosk {
  background: color-mix(in srgb, var(--kiosk-color) 12%, transparent);
  color: var(--kiosk-color);
}
.settings-card__icon--clock {
  background: color-mix(in srgb, var(--ambient-color) 12%, transparent);
  color: var(--ambient-color);
}
.settings-card__icon--language {
  background: color-mix(in srgb, var(--language-color) 12%, transparent);
  color: var(--language-color);
}
.settings-card__title {
  flex: 1;
  min-width: 0;
}
.settings-card__title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-foreground-rest);
  line-height: 1.3;
}
.settings-card__title p {
  margin: 0;
  font-size: 11px;
  color: var(--neutral-foreground-hint);
  line-height: 1.4;
}
.settings-card__toggle {
  flex-shrink: 0;
}
.settings-card__body {
  padding: var(--card-padding);
}
.settings-card__notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-top: 12px;
  background: color-mix(in srgb, var(--accent-fill-rest) 8%, transparent);
  border-radius: var(--control-corner-radius);
  font-size: 11px;
  color: var(--accent-foreground-rest);
}
.settings-card__notice .svg-icon {
  color: var(--accent-fill-rest);
  flex-shrink: 0;
}

.theme-selector {
  display: flex;
  gap: 8px;
}

.theme-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--neutral-layer-floating);
  border: 2px solid transparent;
  border-radius: var(--control-corner-radius);
  cursor: pointer;
  transition: all 120ms ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.theme-option:hover {
  border-color: var(--neutral-stroke-hover);
  transform: translateY(-1px);
}
.theme-option--active {
  border-color: var(--accent-fill-rest);
  background: color-mix(in srgb, var(--accent-fill-rest) 5%, var(--neutral-layer-floating));
}
.theme-option--active:hover {
  border-color: var(--accent-fill-rest);
}
.theme-option__preview {
  height: 44px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.theme-option__preview--darkgray {
  background: #242424;
}
.theme-option__preview--oled {
  background: #000000;
}
.theme-option__preview--highcontrast {
  background: #000000;
}
.theme-option__preview-bar {
  height: 5px;
  border-radius: 2px;
}
.theme-option__preview--darkgray .theme-option__preview-bar {
  background: #363636;
}
.theme-option__preview--oled .theme-option__preview-bar {
  background: #1a1a1a;
}
.theme-option__preview--highcontrast .theme-option__preview-bar {
  background: #ffffff;
}
.theme-option__preview-content {
  flex: 1;
  display: flex;
  gap: 3px;
}
.theme-option__preview-card {
  flex: 1;
  border-radius: 2px;
}
.theme-option__preview--darkgray .theme-option__preview-card {
  background: #2d2d2d;
}
.theme-option__preview--oled .theme-option__preview-card {
  background: #0a0a0a;
}
.theme-option__preview--highcontrast .theme-option__preview-card {
  background: #000000;
  border: 1px solid #ffffff;
}
.theme-option__label {
  padding: 8px 6px;
  text-align: center;
}
.theme-option__name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--neutral-foreground-rest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-option__desc {
  display: block;
  font-size: 9px;
  color: var(--neutral-foreground-hint);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-option__check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent-fill-rest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-layer-1);
}

.kiosk-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kiosk-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--neutral-layer-floating);
  border-radius: 100px;
  font-size: 11px;
  color: var(--neutral-foreground-rest);
}
.kiosk-feature .svg-icon {
  color: var(--kiosk-color);
  width: 14px;
  height: 14px;
}

.timeout-timeline {
  background: var(--neutral-layer-floating);
  border-radius: var(--control-corner-radius);
  padding: 12px;
  margin-bottom: 12px;
}
.timeout-timeline__track {
  display: flex;
  align-items: stretch;
  height: 28px;
  background: var(--neutral-layer-3);
  border-radius: 14px;
  overflow: visible;
  position: relative;
}
.timeout-timeline__segment {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 50px;
  transition: flex 300ms ease, opacity 200ms ease;
  position: relative;
}
.timeout-timeline__segment:first-child {
  border-radius: 14px 0 0 14px;
}
.timeout-timeline__segment:last-child {
  border-radius: 0 14px 14px 0;
}
.timeout-timeline__segment:only-child {
  border-radius: 14px;
}
.timeout-timeline__segment--active {
  background: var(--accent-fill-rest);
}
.timeout-timeline__segment--ambient {
  background: var(--ambient-color);
}
.timeout-timeline__segment--sleep {
  background: var(--sleep-color);
}
.timeout-timeline__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  padding: 0 4px;
}
.timeout-timeline__marker {
  position: absolute;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.timeout-timeline__marker span {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 5px;
  background: var(--neutral-layer-card-container);
  border: 1px solid var(--neutral-stroke-rest);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  color: var(--neutral-foreground-rest);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.timeout-timeline__marker::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--neutral-layer-card-container);
}
.timeout-timeline__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
  font-size: 9px;
  color: var(--neutral-foreground-hint);
}

.timeout-setting {
  padding: 10px 0;
  border-bottom: 1px solid var(--neutral-stroke-divider-rest);
}
.timeout-setting:first-of-type {
  padding-top: 0;
}
.timeout-setting--last, .timeout-setting:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.timeout-setting--compact {
  padding: 8px 12px;
  margin-bottom: 12px;
  background: var(--neutral-layer-floating);
  border-radius: var(--control-corner-radius);
  border-bottom: none;
}
.timeout-setting__section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--neutral-stroke-divider-rest);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--neutral-foreground-hint);
}
.timeout-setting__section-header .svg-icon {
  color: var(--ambient-color);
}
.timeout-setting__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.timeout-setting__row:last-child {
  padding-bottom: 0;
}
.timeout-setting__toggles {
  display: flex;
  align-items: center;
  gap: 16px;
}
.timeout-setting__toggles fluent-switch {
  --switch-font-size: 10px;
}
.timeout-setting__hint {
  display: block;
  font-size: 9px;
  color: var(--neutral-foreground-hint);
  margin-top: 1px;
}
.timeout-setting__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.timeout-setting__info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.timeout-setting__info > .svg-icon {
  flex-shrink: 0;
  color: var(--neutral-foreground-hint);
  width: 16px;
  height: 16px;
}
.timeout-setting__info > div {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.timeout-setting__info--inline {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.timeout-setting__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--neutral-foreground-rest);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.timeout-setting__name--small {
  font-size: 11px;
  font-weight: 500;
}
.timeout-setting__desc {
  font-size: 10px;
  color: var(--neutral-foreground-hint);
  line-height: 1.3;
}
.timeout-setting__badge {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 1px 4px;
  background: color-mix(in srgb, var(--accent-fill-rest) 15%, transparent);
  color: var(--accent-foreground-rest);
  border-radius: 2px;
  flex-shrink: 0;
}
.timeout-setting__control {
  margin-top: 10px;
  padding-left: 24px;
}
.timeout-setting__warning {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 4px 8px;
  background: color-mix(in srgb, #f59e0b 10%, transparent);
  border-radius: var(--control-corner-radius);
  font-size: 10px;
  color: #f59e0b;
}
.timeout-setting__warning .svg-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}
.timeout-setting__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--neutral-stroke-divider-rest);
}
.timeout-setting__sub > span:first-child {
  font-size: 11px;
  color: var(--neutral-foreground-hint);
  white-space: nowrap;
}

.timeout-slider {
  flex: 1;
}
.timeout-slider fluent-slider {
  width: 100%;
}
.timeout-slider fluent-slider::part(track) {
  height: 3px;
}
.timeout-slider__labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 3px;
  font-size: 9px;
  color: var(--neutral-foreground-hint);
}
.timeout-slider__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-foreground-rest);
  font-variant-numeric: tabular-nums;
}
.timeout-slider__value small {
  font-size: 9px;
  font-weight: 500;
  color: var(--neutral-foreground-hint);
  margin-left: 1px;
}
.timeout-slider__value-inline {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-foreground-rest);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.timeout-slider__value-inline small {
  font-size: 9px;
  font-weight: 500;
  color: var(--neutral-foreground-hint);
}
.timeout-slider--compact {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeout-slider--compact fluent-slider {
  flex: 1;
}

.language-selector {
  display: flex;
  gap: 8px;
}

.language-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--neutral-layer-floating);
  border: 2px solid transparent;
  border-radius: var(--control-corner-radius);
  cursor: pointer;
  transition: all 120ms ease;
  position: relative;
}
.language-option:hover {
  border-color: var(--neutral-stroke-hover);
}
.language-option--active {
  border-color: var(--accent-fill-rest);
  background: color-mix(in srgb, var(--accent-fill-rest) 5%, var(--neutral-layer-floating));
}
.language-option--active:hover {
  border-color: var(--accent-fill-rest);
}
.language-option__flag {
  font-size: 20px;
  line-height: 1;
}
.language-option__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.language-option__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-foreground-rest);
}
.language-option__region {
  font-size: 10px;
  color: var(--neutral-foreground-hint);
}
.language-option__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--accent-fill-rest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-layer-1);
}

@media (max-width: 600px) {
  .theme-selector {
    flex-wrap: wrap;
  }
  .theme-selector .theme-option {
    min-width: calc(33% - 6px);
  }
  .language-selector {
    flex-direction: column;
  }
  .timeout-timeline__track {
    height: 24px;
  }
  .timeout-timeline__segment {
    min-width: 40px;
  }
  .timeout-timeline__label {
    font-size: 8px;
  }
  .timeout-setting__control {
    padding-left: 0;
  }
}
@keyframes dot-orbit-top {
  0% {
    transform: translate(-50%, -0.4em) scale(1.5);
    opacity: 1;
  }
  0.95% {
    transform: translate(calc(-50% - 0.057em), -0.369em) scale(1);
    opacity: 0.5;
  }
  3.66% {
    transform: translate(calc(-50% - 0.106em), -0.283em) scale(1);
    opacity: 0.5;
  }
  7.72% {
    transform: translate(calc(-50% - 0.139em), -0.153em) scale(1);
    opacity: 0.5;
  }
  12.5% {
    transform: translate(calc(-50% - 0.15em), -50%) scale(1);
    opacity: 0.5;
  }
  17.28% {
    transform: translate(calc(-50% - 0.139em), 0.153em) scale(1);
    opacity: 0.5;
  }
  21.34% {
    transform: translate(calc(-50% - 0.106em), 0.283em) scale(1);
    opacity: 0.5;
  }
  24.05% {
    transform: translate(calc(-50% - 0.057em), 0.369em) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translate(-50%, 0.4em) scale(1.5);
    opacity: 1;
  }
  25.95% {
    transform: translate(calc(-50% + 0.057em), 0.369em) scale(1);
    opacity: 0.5;
  }
  28.66% {
    transform: translate(calc(-50% + 0.106em), 0.283em) scale(1);
    opacity: 0.5;
  }
  32.72% {
    transform: translate(calc(-50% + 0.139em), 0.153em) scale(1);
    opacity: 0.5;
  }
  37.5% {
    transform: translate(calc(-50% + 0.15em), -50%) scale(1);
    opacity: 0.5;
  }
  42.28% {
    transform: translate(calc(-50% + 0.139em), -0.153em) scale(1);
    opacity: 0.5;
  }
  46.34% {
    transform: translate(calc(-50% + 0.106em), -0.283em) scale(1);
    opacity: 0.5;
  }
  49.05% {
    transform: translate(calc(-50% + 0.057em), -0.369em) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -0.4em) scale(1.5);
    opacity: 1;
  }
  50.95% {
    transform: translate(calc(-50% + 0.057em), -0.369em) scale(1);
    opacity: 0.5;
  }
  53.66% {
    transform: translate(calc(-50% + 0.106em), -0.283em) scale(1);
    opacity: 0.5;
  }
  57.72% {
    transform: translate(calc(-50% + 0.139em), -0.153em) scale(1);
    opacity: 0.5;
  }
  62.5% {
    transform: translate(calc(-50% + 0.15em), -50%) scale(1);
    opacity: 0.5;
  }
  67.28% {
    transform: translate(calc(-50% + 0.139em), 0.153em) scale(1);
    opacity: 0.5;
  }
  71.34% {
    transform: translate(calc(-50% + 0.106em), 0.283em) scale(1);
    opacity: 0.5;
  }
  74.05% {
    transform: translate(calc(-50% + 0.057em), 0.369em) scale(1);
    opacity: 0.5;
  }
  75% {
    transform: translate(-50%, 0.4em) scale(1.5);
    opacity: 1;
  }
  75.95% {
    transform: translate(calc(-50% - 0.057em), 0.369em) scale(1);
    opacity: 0.5;
  }
  78.66% {
    transform: translate(calc(-50% - 0.106em), 0.283em) scale(1);
    opacity: 0.5;
  }
  82.72% {
    transform: translate(calc(-50% - 0.139em), 0.153em) scale(1);
    opacity: 0.5;
  }
  87.5% {
    transform: translate(calc(-50% - 0.15em), -50%) scale(1);
    opacity: 0.5;
  }
  92.28% {
    transform: translate(calc(-50% - 0.139em), -0.153em) scale(1);
    opacity: 0.5;
  }
  96.34% {
    transform: translate(calc(-50% - 0.106em), -0.283em) scale(1);
    opacity: 0.5;
  }
  99.05% {
    transform: translate(calc(-50% - 0.057em), -0.369em) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -0.4em) scale(1.5);
    opacity: 1;
  }
}
@keyframes dot-orbit-bottom {
  0% {
    transform: translate(-50%, 0.4em) scale(1.5);
    opacity: 1;
  }
  0.95% {
    transform: translate(calc(-50% + 0.057em), 0.369em) scale(1);
    opacity: 0.5;
  }
  3.66% {
    transform: translate(calc(-50% + 0.106em), 0.283em) scale(1);
    opacity: 0.5;
  }
  7.72% {
    transform: translate(calc(-50% + 0.139em), 0.153em) scale(1);
    opacity: 0.5;
  }
  12.5% {
    transform: translate(calc(-50% + 0.15em), -50%) scale(1);
    opacity: 0.5;
  }
  17.28% {
    transform: translate(calc(-50% + 0.139em), -0.153em) scale(1);
    opacity: 0.5;
  }
  21.34% {
    transform: translate(calc(-50% + 0.106em), -0.283em) scale(1);
    opacity: 0.5;
  }
  24.05% {
    transform: translate(calc(-50% + 0.057em), -0.369em) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translate(-50%, -0.4em) scale(1.5);
    opacity: 1;
  }
  25.95% {
    transform: translate(calc(-50% - 0.057em), -0.369em) scale(1);
    opacity: 0.5;
  }
  28.66% {
    transform: translate(calc(-50% - 0.106em), -0.283em) scale(1);
    opacity: 0.5;
  }
  32.72% {
    transform: translate(calc(-50% - 0.139em), -0.153em) scale(1);
    opacity: 0.5;
  }
  37.5% {
    transform: translate(calc(-50% - 0.15em), -50%) scale(1);
    opacity: 0.5;
  }
  42.28% {
    transform: translate(calc(-50% - 0.139em), 0.153em) scale(1);
    opacity: 0.5;
  }
  46.34% {
    transform: translate(calc(-50% - 0.106em), 0.283em) scale(1);
    opacity: 0.5;
  }
  49.05% {
    transform: translate(calc(-50% - 0.057em), 0.369em) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, 0.4em) scale(1.5);
    opacity: 1;
  }
  50.95% {
    transform: translate(calc(-50% - 0.057em), 0.369em) scale(1);
    opacity: 0.5;
  }
  53.66% {
    transform: translate(calc(-50% - 0.106em), 0.283em) scale(1);
    opacity: 0.5;
  }
  57.72% {
    transform: translate(calc(-50% - 0.139em), 0.153em) scale(1);
    opacity: 0.5;
  }
  62.5% {
    transform: translate(calc(-50% - 0.15em), -50%) scale(1);
    opacity: 0.5;
  }
  67.28% {
    transform: translate(calc(-50% - 0.139em), -0.153em) scale(1);
    opacity: 0.5;
  }
  71.34% {
    transform: translate(calc(-50% - 0.106em), -0.283em) scale(1);
    opacity: 0.5;
  }
  74.05% {
    transform: translate(calc(-50% - 0.057em), -0.369em) scale(1);
    opacity: 0.5;
  }
  75% {
    transform: translate(-50%, -0.4em) scale(1.5);
    opacity: 1;
  }
  75.95% {
    transform: translate(calc(-50% + 0.057em), -0.369em) scale(1);
    opacity: 0.5;
  }
  78.66% {
    transform: translate(calc(-50% + 0.106em), -0.283em) scale(1);
    opacity: 0.5;
  }
  82.72% {
    transform: translate(calc(-50% + 0.139em), -0.153em) scale(1);
    opacity: 0.5;
  }
  87.5% {
    transform: translate(calc(-50% + 0.15em), -50%) scale(1);
    opacity: 0.5;
  }
  92.28% {
    transform: translate(calc(-50% + 0.139em), 0.153em) scale(1);
    opacity: 0.5;
  }
  96.34% {
    transform: translate(calc(-50% + 0.106em), 0.283em) scale(1);
    opacity: 0.5;
  }
  99.05% {
    transform: translate(calc(-50% + 0.057em), 0.369em) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, 0.4em) scale(1.5);
    opacity: 1;
  }
}
@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes stagger-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes loading-exit {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}
.animate-content-enter {
  animation: content-enter 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-stagger-children > * {
  opacity: 0;
  animation: stagger-in 350ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.animate-stagger-children > *:nth-child(1) {
  animation-delay: 0ms;
}
.animate-stagger-children > *:nth-child(2) {
  animation-delay: 50ms;
}
.animate-stagger-children > *:nth-child(3) {
  animation-delay: 100ms;
}
.animate-stagger-children > *:nth-child(4) {
  animation-delay: 150ms;
}
.animate-stagger-children > *:nth-child(5) {
  animation-delay: 200ms;
}
.animate-stagger-children > *:nth-child(6) {
  animation-delay: 250ms;
}
.animate-stagger-children > *:nth-child(7) {
  animation-delay: 300ms;
}
.animate-stagger-children > *:nth-child(8) {
  animation-delay: 350ms;
}
.animate-stagger-children > *:nth-child(9) {
  animation-delay: 400ms;
}
.animate-stagger-children > *:nth-child(10) {
  animation-delay: 450ms;
}
.animate-stagger-children > *:nth-child(11) {
  animation-delay: 500ms;
}
.animate-stagger-children > *:nth-child(12) {
  animation-delay: 550ms;
}
.animate-stagger-children > *:nth-child(13) {
  animation-delay: 600ms;
}
.animate-stagger-children > *:nth-child(14) {
  animation-delay: 650ms;
}
.animate-stagger-children > *:nth-child(15) {
  animation-delay: 700ms;
}
.animate-stagger-children > *:nth-child(16) {
  animation-delay: 750ms;
}
.animate-stagger-children > *:nth-child(17) {
  animation-delay: 800ms;
}
.animate-stagger-children > *:nth-child(18) {
  animation-delay: 850ms;
}
.animate-stagger-children > *:nth-child(19) {
  animation-delay: 900ms;
}
.animate-stagger-children > *:nth-child(20) {
  animation-delay: 950ms;
}

@media (prefers-reduced-motion: reduce) {
  .animate-content-enter,
  .animate-stagger-children > * {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
html, body {
  font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  background-color: var(--neutral-layer-1);
  color: var(--neutral-foreground-rest);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

*, *::before, *::after {
  box-sizing: border-box;
}

fluent-button.device-control {
  --button-border-radius: var(--device-control-border-radius);
  --button-padding-block: 1rem;
  --button-padding-inline: 1.5rem;
}
fluent-button.device-control.device-on {
  --accent-fill-rest: var(--device-state-on);
  --neutral-foreground-rest: #000000;
}
fluent-button.device-control.device-on fluent-icon {
  transform: scale(1.1);
  transition: transform 0.2s ease-out;
  will-change: transform;
}
fluent-button.device-control.device-off {
  --accent-fill-rest: var(--device-state-off);
  opacity: 0.7;
}
fluent-button.device-control {
  min-height: 44px;
  min-width: 44px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease-out;
  will-change: box-shadow;
  border-radius: 8px;
}
@media (hover: hover) {
  fluent-button.device-control:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease-out;
    will-change: box-shadow;
    transform: translateY(-1px);
  }
}
fluent-button.device-control:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease-out;
  will-change: box-shadow;
}

fluent-card.device-panel {
  --card-border-radius: var(--card-border-radius);
  --card-padding: 2rem;
  background: linear-gradient(135deg, var(--neutral-layer-2), var(--neutral-layer-3));
}
fluent-card.device-panel.has-alerts {
  border-left: 4px solid #f44336;
}
fluent-card.device-panel.has-alerts::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #f44336;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.25rem;
}
fluent-card.device-panel.all-systems-good {
  border-left: 4px solid #4caf50;
}
fluent-card.device-panel.all-systems-good::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.25rem;
}

.p-sm {
  padding: 0.5rem;
}

.p-md {
  padding: 1rem;
}

.p-lg {
  padding: 1.5rem;
}

.p-xl {
  padding: 2rem;
}

.m-sm {
  margin: 0.5rem;
}

.m-md {
  margin: 1rem;
}

.m-lg {
  margin: 1.5rem;
}

.m-xl {
  margin: 2rem;
}

.text-primary {
  color: var(--studio-primary);
}

.text-success {
  color: var(--device-state-on);
}

.text-error {
  color: var(--device-state-error);
}

.bg-surface {
  background: var(--studio-surface);
}

.bg-surface-secondary {
  background: var(--studio-surface-secondary);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.is-loading {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.is-active {
  border-color: var(--studio-primary);
}

.has-error {
  border-color: var(--device-state-error);
}

.has-changes {
  border-left: 4px solid var(--device-state-warning);
}

.monaco-editor-container {
  height: 100%;
  width: 100%;
}

/*# sourceMappingURL=app.css.map */
