/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}

:root {
  --surface-base: #f3f6fb;
  --surface-shell: #0f1b2d;
  --surface-card: #fff;
  --surface-soft: #eef3fb;
  --surface-raised: #f9fbff;
  --text-primary: #142033;
  --text-secondary: #5d6b82;
  --text-tertiary: #8c98aa;
  --text-muted-strong: #4b5a70;
  --border-default: #d9e3f0;
  --border-subtle: #ecf1f8;
  --accent-brand: #2563eb;
  --accent-brand-soft: #dbeafe;
  --energy-hvac: #2893ff;
  --energy-equipment: #7c5cff;
  --energy-equipment-alt: #ff9a3d;
  --energy-other: #25b26b;
  --status-normal: #22b573;
  --status-elevated: #f0b429;
  --status-critical: #ef5b56;
  --status-normal-text: #166534;
  --status-critical-text: #991b1b;
  --status-normal-surface: var(--status-normal);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --status-normal-surface: color-mix(in srgb, var(--status-normal) 10%, transparent);
  }
}

:root {
  --status-critical-surface: var(--status-critical);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --status-critical-surface: color-mix(in srgb, var(--status-critical) 10%, transparent);
  }
}

:root {
  --feedback-success-text: #166534;
  --feedback-success-surface: #dcfce7;
  --feedback-error-text: #991b1b;
  --feedback-error-surface: #fee2e2;
  --control-height-compact: 32px;
  --control-height-sm: 36px;
  --control-height-md: 40px;
  --control-radius-sm: 9px;
  --control-radius-md: 10px;
  --control-radius-lg: 12px;
  --radius-tag: 6px;
  --radius-badge: 7px;
  --radius-panel: 16px;
  --radius-shell: 18px;
  --radius-shell-card: 22px;
  --radius-drawer-item: 13px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-tight: 5px;
  --space-field: 6px;
  --space-badge-inline: 7px;
  --space-row: 9px;
  --space-control-inline: 10px;
  --space-feedback-block: 11px;
  --space-panel-compact: 14px;
  --space-page-gap: 18px;
  --font-size-meta: 10px;
  --font-size-control: 11px;
  --font-size-supporting: 12px;
  --font-size-label: 13px;
  --font-size-body-compact: 14px;
  --font-size-section: 17px;
  --font-size-subtitle: 18px;
  --font-size-display: 24px;
  --font-size-heading: 22px;
  --color-on-accent: #fff;
  --border-width: 1px;
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --interaction-offset: 1px;
  --transition-control: .16s ease-out;
  --transition-reduced: .01ms;
  --table-gap: var(--space-3);
  --table-toolbar-gap: var(--space-4);
  --table-emphasis-font-weight: 800;
  --table-eyebrow-letter-spacing: .13em;
  --table-heading-size: 19px;
  --table-filter-min-width: 290px;
  --table-filter-padding: var(--space-2) 11px;
  --table-filter-icon-size: 15px;
  --table-filter-icon-stroke-width: 1.8;
  --table-min-width: 640px;
  --table-header-padding: 11px 13px;
  --table-header-letter-spacing: .05em;
  --table-cell-padding: 14px 13px;
  --table-sort-icon-size: 14px;
  --table-sort-icon-stroke-width: 1.7;
  --table-sort-icon-opacity: .55;
  --table-state-padding-block: 44px;
  --table-pagination-button-size: 28px;
  --table-disabled-opacity: .4;
  --table-visually-hidden-size: 1px;
  --table-visually-hidden-offset: -1px;
  --table-mobile-padding: 10px;
  --table-mobile-row-gap: var(--space-2) 14px;
  --table-mobile-surface-radius: 14px;
  --table-mobile-label-min-width: 56px;
  --table-mobile-label-track: .7fr;
  --table-mobile-value-track: 1.3fr;
  --table-mobile-label-line-height: 1.5;
  --table-filter-shadow: 0 1px 3px #1420330a;
  --table-row-shadow: 0 4px 12px #1420330a;
  --table-transition: var(--transition-control);
  --gateway-action-border: var(--accent-brand);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --gateway-action-border: color-mix(in srgb, var(--accent-brand) 20%, transparent);
  }
}

:root {
  --gateway-action-hover: var(--accent-brand);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --gateway-action-hover: color-mix(in srgb, var(--accent-brand) 88%, var(--text-primary));
  }
}

:root {
  --gateway-action-hover-text: #1e40af;
  --gateway-focus-border: var(--accent-brand);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --gateway-focus-border: color-mix(in srgb, var(--accent-brand) 35%, var(--border-default));
  }
}

:root {
  --gateway-danger-border: var(--status-critical);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --gateway-danger-border: color-mix(in srgb, var(--status-critical) 22%, transparent);
  }
}

:root {
  --gateway-danger-surface: var(--status-critical);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --gateway-danger-surface: color-mix(in srgb, var(--status-critical) 10%, var(--surface-card));
  }
}

:root {
  --gateway-selection-hover: var(--accent-brand-soft);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --gateway-selection-hover: color-mix(in srgb, var(--accent-brand-soft) 60%, var(--surface-soft));
  }
}

:root {
  --gateway-row-hover: var(--accent-brand-soft);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --gateway-row-hover: color-mix(in srgb, var(--accent-brand-soft) 32%, transparent);
  }
}

:root {
  --gateway-selected-shadow: 0 2px 7px var(--text-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --gateway-selected-shadow: 0 2px 7px color-mix(in srgb, var(--text-primary) 9%, transparent);
  }
}

:root {
  --gateway-eyebrow-letter-spacing: .13em;
  --gateway-preview-letter-spacing: .12em;
  --gateway-section-gap: var(--space-3);
  --gateway-inline-gap: var(--space-2);
  --gateway-panel-padding: var(--space-4);
  --gateway-panel-radius: var(--radius-panel);
  --gateway-group-radius: var(--space-panel-compact);
  --gateway-row-padding: var(--space-row);
  --gateway-control-height: var(--control-height-sm);
  --gateway-control-padding: var(--space-2) var(--space-control-inline);
  --gateway-control-radius: var(--control-radius-sm);
  --gateway-action-padding-inline: var(--space-panel-compact);
  --gateway-editor-preview-min-width: 280px;
  --gateway-editor-preview-max-width: 360px;
  --gateway-rule-select-width: 130px;
  --gateway-rule-topic-min-width: 180px;
  --shell-sidebar-width: 280px;
  --shell-text: #eef4ffeb;
  --shell-text-muted: #9fb0c9;
  --shell-surface: #ffffff0d;
  --shell-surface-hover: #ffffff0a;
  --shell-border: #ffffff14;
  --shell-chrome-border: #8395b324;
  --shell-control-surface: #fffc;
  --shell-control-border: #2563eb24;
  --shell-drawer-surface: #0e1c30;
  --shell-drawer-text: #d8e5f7;
  --shell-drawer-muted: #90a3bd;
  --shell-overlay: #0f1b2d70;
  --shell-muted-copy: var(--shell-text-muted);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --shell-muted-copy: color-mix(in srgb, var(--shell-text-muted) 80%, transparent);
  }
}

:root {
  --shell-muted-detail: var(--shell-text-muted);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --shell-muted-detail: color-mix(in srgb, var(--shell-text-muted) 76%, transparent);
  }
}

:root {
  --shell-muted-footer: var(--shell-text-muted);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --shell-muted-footer: color-mix(in srgb, var(--shell-text-muted) 82%, transparent);
  }
}

:root {
  --shell-scroll-track: var(--color-on-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --shell-scroll-track: color-mix(in srgb, var(--color-on-accent) 3.5%, transparent);
  }
}

:root {
  --shell-scroll-thumb: var(--shell-text-muted);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --shell-scroll-thumb: color-mix(in srgb, var(--shell-text-muted) 52%, transparent);
  }
}

:root {
  --shell-scroll-thumb-hover: var(--shell-text);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --shell-scroll-thumb-hover: color-mix(in srgb, var(--shell-text) 78%, transparent);
  }
}

:root {
  --shell-critical-badge: var(--status-critical);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --shell-critical-badge: color-mix(in srgb, var(--status-critical) 90%, transparent);
  }
}

:root {
  --shell-control-hover: var(--accent-brand);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --shell-control-hover: color-mix(in srgb, var(--accent-brand) 14%, transparent);
  }
}

:root {
  --shell-control-active: var(--accent-brand);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --shell-control-active: color-mix(in srgb, var(--accent-brand) 8%, transparent);
  }
}

:root {
  --shell-drawer-control-border: var(--color-on-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --shell-drawer-control-border: color-mix(in srgb, var(--color-on-accent) 14%, transparent);
  }
}

:root {
  --shell-drawer-control-surface: var(--color-on-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --shell-drawer-control-surface: color-mix(in srgb, var(--color-on-accent) 8%, transparent);
  }
}

:root {
  --shell-sidebar-background: radial-gradient(circle at top left, #53a8ff29, transparent 28%), linear-gradient(180deg, #0c1628, #0f1b2d 54%, #13233a);
  --shell-sidebar-shadow: 24px 0 48px #0f1b2d2e;
  --shell-glyph-background: linear-gradient(145deg, #53a8ff38, #7c5cff2e);
  --shell-active-border: #68a4ff52;
  --shell-active-background: linear-gradient(135deg, #2563eb38, #7c5cff29);
  --shell-canvas-background: radial-gradient(circle at top right, #2563eb14, transparent 22%), linear-gradient(180deg, #f8fbff, #f3f6fb 48%, #eef3fa);
  --shell-topbar-background: linear-gradient(90deg, #fffffff0, #f8fbffe0 66%, #f3f7fdbd);
  --shell-topbar-shadow: 0 1px 0 #fffc, 0 8px 20px #14203306;
  --shell-mark-background: linear-gradient(180deg, #3d82f6, #2563eb);
  --shell-mark-secondary: #b9d2fb;
  --shell-mark-shadow: 0 3px 7px #2563eb33;
  --shell-heading-shadow: 0 1px 0 #fffc;
  --shell-profile-shadow: 0 6px 14px #1420330a;
  --shell-avatar-background: linear-gradient(135deg, #183152, #2c5ca9);
  --shell-drawer-item-border: #4d88ff59;
  --shell-drawer-item-background: #4d88ff2e;
  --shell-drawer-shadow: 20px 0 50px #0f1b2d47;
  --shell-control-height: 38px;
  --shell-topbar-height: 62px;
  --shell-topbar-height-compact: 56px;
  --shell-avatar-size: 30px;
  --shell-badge-size: 22px;
  --shell-backdrop-filter: blur(14px);
  --shell-overlay-filter: blur(3px);
  --shadow-card: 0 10px 24px #14203314;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-display: "Space Grotesk", "Noto Sans TC", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
}

@layer theme {
  :root, :host {
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  }
}

@layer base;

@layer components {
  .page-header {
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding: 0 2px;
    display: flex;
  }

  .header-eyebrow {
    color: var(--accent-brand);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 800;
  }

  .page-header h1 {
    color: var(--text-primary);
    margin: 0;
    font-size: 22px;
    font-weight: 800;
  }

  .panel {
    background: #fffffff7;
    border: 1px solid #8395b32e;
    border-radius: 18px;
    min-width: 0;
    box-shadow: 0 8px 20px #1420330f;
  }

  .panel--card {
    border-color: var(--border-default);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
    border-radius: 16px;
    padding: 20px;
  }
}

@layer utilities {
  .visible {
    visibility: visible;
  }

  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .table {
    display: table;
  }

  .table-row {
    display: table-row;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }
}

:root {
  color: var(--text-primary);
  background: var(--surface-base);
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface-base);
}

body {
  background: var(--surface-base);
  min-width: 320px;
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
}

button {
  appearance: none;
}

button:focus-visible, a:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #2563eb6b;
}

#app {
  min-height: 100dvh;
}

strong, th {
  font-variation-settings: "tnum" 1;
  font-feature-settings: "tnum" 1;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}
