body {
  margin: 0;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/font/InterVariable.0336a89fb4.woff2) format("woff2-variations"), url(/static/font/InterVariable.0336a89fb4.woff2) format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/font/InterVariable-Italic.c91adde9f7.woff2) format("woff2-variations"), url(/static/font/InterVariable-Italic.c91adde9f7.woff2) format("woff2");
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/font/JetBrainsMono-Regular.b8c97ebabd.woff2) format("woff2");
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/font/JetBrainsMono-Medium.375d6faec4.woff2) format("woff2");
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/font/JetBrainsMono-SemiBold.e6d3cf35d6.woff2) format("woff2");
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/font/JetBrainsMono-Bold.bcc869acd6.woff2) format("woff2");
}

:root {
  --color-brand-50: #f0fdf4;
  --color-brand-100: #dcfce7;
  --color-brand-200: #bbf7d0;
  --color-brand-300: #86efac;
  --color-brand-400: #4ade80;
  --color-brand-500: #22c55e;
  --color-brand-600: #16a34a;
  --color-brand-700: #15803d;
  --color-brand-800: #166534;
  --color-brand-900: #14532d;
  --color-neutral-0: #fff;
  --color-neutral-50: #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;
  --color-success: #16a34a;
  --color-success-light: #dcfce7;
  --color-warning: #d97706;
  --color-warning-light: #fef3c7;
  --color-error: #dc2626;
  --color-error-light: #fee2e2;
  --color-info: #2563eb;
  --color-info-light: #dbeafe;
  --color-success-fg: #166534;
  --color-warning-fg: #92400e;
  --color-error-fg: #991b1b;
  --color-info-fg: #1e40af;
  --viz-electricity: #22c55e;
  --viz-gas: #f97316;
  --viz-water: #38bdf8;
  --viz-steam: #a78bfa;
  --viz-oil: #78716c;
  --viz-solar: #fbbf24;
  --viz-waste: #78350f;
  --viz-chilled: #0ea5e9;
  --fg-primary: var(--color-neutral-800);
  --fg-body: var(--color-neutral-700);
  --fg-secondary: var(--color-neutral-600);
  --fg-muted: var(--color-neutral-500);
  --fg-placeholder: var(--color-neutral-400);
  --fg-on-brand: #fff;
  --fg-brand: var(--color-brand-700);
  --fg-brand-dark: var(--color-brand-900);
  --bg-page: var(--color-neutral-50);
  --bg-surface: var(--color-neutral-0);
  --bg-subtle: var(--color-neutral-100);
  --bg-brand-tint: var(--color-brand-50);
  --bg-brand-fill: var(--color-brand-100);
  --border-default: var(--color-neutral-200);
  --border-subtle: var(--color-neutral-100);
  --border-strong: var(--color-neutral-300);
  --border-focus: var(--color-brand-500);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  --text-xs: .75rem;
  --text-13: .8125rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --leading-xs: 1rem;
  --leading-sm: 1.25rem;
  --leading-base: 1.5rem;
  --leading-lg: 1.75rem;
  --leading-xl: 1.75rem;
  --leading-2xl: 2rem;
  --leading-3xl: 2.25rem;
  --leading-4xl: 2.5rem;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --tracking-display: -.02em;
  --tracking-body: 0em;
  --tracking-uppercase: .06em;
  --tracking-caps-sm: .04em;
  --tracking-caps-xs: .08em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-pill: 9999px;
  --shadow-none: none;
  --shadow-xs: 0 1px 2px #0000000d;
  --shadow-sm: 0 1px 3px #00000014, 0 1px 2px #0000000a;
  --shadow-md: 0 4px 6px #00000012, 0 2px 4px #0000000a;
  --shadow-lg: 0 10px 25px #0000001a, 0 4px 10px #0000000d;
  --shadow-xl: 0 20px 60px #00000029;
  --shadow-focus-brand: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--color-brand-700);
  --shadow-focus-error: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--color-error);
  --shadow-focus-brand-inset: inset 0 0 0 2px var(--bg-surface), inset 0 0 0 4px var(--color-brand-700);
  --z-base: 0;
  --z-sticky: 100;
  --z-sidebar: 1001;
  --z-dropdown: 1050;
  --z-modal: 1100;
  --z-toast: 1200;
  --z-tooltip: 1250;
  --z-tour-backdrop: 1390;
  --z-tour-spot: 1400;
  --z-tour-tip: 1410;
  --motion-fast: .1s;
  --motion-default: .2s;
  --motion-slow: .3s;
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
}

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font-family: inherit;
}

a {
  color: var(--color-brand-700);
  text-decoration: none;
}

a:hover {
  color: var(--color-brand-600);
  text-decoration: underline;
}

.gk-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.gk-num, .num {
  font-variant-numeric: tabular-nums;
}

.gk-muted {
  color: var(--fg-muted);
}

.gk-small {
  font-size: 12px;
}

.gk-row {
  align-items: center;
  gap: 8px;
  display: flex;
}

.gk-row--between {
  justify-content: space-between;
}

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

.gk-stack {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.gk-grid-2 {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  display: grid;
}

.gk-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  display: grid;
}

.gk-grid-side {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  display: grid;
}

.gk-spinner {
  color: var(--color-brand-600);
  animation: .7s linear infinite gk-spin;
}

@keyframes gk-spin {
  to {
    transform: rotate(360deg);
  }
}

.gk-sr-only, .gk-sr {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps-sm);
  color: var(--fg-muted);
}

.gk-sidebar {
  width: var(--sidebar-width);
  background: var(--color-neutral-100);
  border-right: 1px solid var(--color-neutral-200);
  padding: var(--space-4) 0 var(--space-3);
  box-sizing: border-box;
  min-height: 100vh;
  max-height: 100vh;
  z-index: var(--z-sidebar);
  transition: transform var(--motion-slow) var(--ease-standard);
  flex-direction: column;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
}

.gk-sidebar__brand {
  padding: 0 var(--space-4) 14px;
  align-items: center;
  gap: 10px;
  display: flex;
}

.gk-sidebar__brand img {
  object-fit: contain;
  width: 24px;
  height: 24px;
}

.gk-sidebar__brand-name {
  font-size: 17px;
  font-weight: var(--weight-bold);
  color: var(--fg-primary);
  letter-spacing: -.01em;
}

.gk-sidebar nav {
  flex: 1;
}

.gk-nav-group {
  padding: 14px var(--space-4) 6px;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-uppercase);
}

.gk-nav-item {
  padding: var(--space-2) var(--space-3);
  margin: 1px var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-600);
  cursor: pointer;
  transition: background var(--motion-default) var(--ease-standard), color var(--motion-default) var(--ease-standard);
  align-items: center;
  gap: 10px;
  text-decoration: none;
  display: flex;
}

.gk-nav-item:hover {
  background: var(--color-neutral-200);
  color: var(--color-neutral-800);
  text-decoration: none;
}

.gk-nav-item--active {
  background: var(--color-brand-100);
  color: var(--color-brand-800);
  font-weight: var(--weight-semibold);
}

.gk-nav-item :where(svg, [data-lucide]) {
  stroke-width: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.gk-nav-item__count {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  background: var(--color-neutral-200);
  color: var(--color-neutral-600);
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  padding: 1px 7px;
}

.gk-nav-item--active .gk-nav-item__count {
  background: var(--color-brand-200);
  color: var(--color-brand-800);
}

.gk-sidebar__footer {
  border-top: 1px solid var(--color-neutral-200);
  padding: var(--space-2) var(--space-2) 0;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  display: flex;
}

.sidebar-help {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-neutral-600);
  text-align: left;
  background: none;
  border: none;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  display: flex;
}

.sidebar-help:hover {
  background: var(--color-neutral-200);
  color: var(--fg-body);
}

.session-chip-btn {
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
  display: block;
}

.session-chip-btn:hover {
  background: var(--color-neutral-200);
  text-decoration: none;
}

.session-chip {
  padding: var(--space-2) var(--space-3);
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.session-avatar {
  background: var(--color-brand-700);
  width: 30px;
  height: 30px;
  color: var(--fg-on-brand);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  overflow: hidden;
}

.session-avatar img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.session-name {
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.session-email {
  color: var(--fg-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  overflow: hidden;
}

.sidebar-scope {
  margin: 0 var(--space-2) var(--space-2);
  padding: var(--space-2) 10px;
  border-radius: var(--radius-md);
  background: var(--color-warning-light);
  cursor: pointer;
  text-align: left;
  width: calc(100% - 16px);
  transition: border-color var(--motion-default) var(--ease-standard);
  border: 1px solid #fde68a;
  align-items: flex-start;
  gap: 10px;
  font-family: inherit;
  text-decoration: none;
  display: flex;
}

.sidebar-scope:hover {
  border-color: var(--color-warning);
  text-decoration: none;
}

.sidebar-scope__icon {
  color: var(--color-warning-fg);
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
}

.sidebar-scope__text {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.sidebar-scope__role {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  color: var(--color-warning-fg);
  text-transform: capitalize;
}

.sidebar-scope__hint {
  color: var(--color-warning-fg);
  font-size: 11px;
  line-height: 1.4;
}

.page-toolbar {
  z-index: var(--z-sticky);
  background: var(--bg-page);
  border-bottom: 1px solid var(--color-neutral-200);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  padding: 18px 0 14px;
  display: flex;
  position: sticky;
  top: 0;
}

.page-toolbar__text {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.page-toolbar h1 {
  font-size: 22px;
  font-weight: var(--weight-bold);
  letter-spacing: -.02em;
  color: var(--fg-primary);
  line-height: 1.2;
}

.page-toolbar__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.page-toolbar .gk-input {
  height: 34px;
  font-size: 13px;
}

.page-toolbar select.gk-input {
  width: auto;
}

.page-tabs {
  margin: -4px 0 20px;
}

.page-body {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.page-section-title {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-uppercase);
  margin: 8px 0 -6px;
}

.gk-btn {
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color var(--motion-default) var(--ease-standard),
              color var(--motion-default) var(--ease-standard),
              border-color var(--motion-default) var(--ease-standard),
              box-shadow var(--motion-default) var(--ease-standard);
  border: 1px solid #0000;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
}

.gk-btn .ic, .gk-btn svg {
  width: 16px;
  height: 16px;
}

.gk-btn:focus-visible {
  box-shadow: var(--shadow-focus-brand);
  outline: none;
}

.gk-btn:disabled, .gk-btn[aria-disabled="true"] {
  opacity: .4;
  pointer-events: none;
}

.gk-btn:hover {
  text-decoration: none;
}

.gk-btn--sm {
  height: 30px;
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
}

.gk-btn--primary {
  background: var(--color-brand-700);
  color: var(--fg-on-brand);
  box-shadow: var(--shadow-xs);
}

.gk-btn--primary:hover {
  background: var(--color-brand-600);
  color: var(--fg-on-brand);
}

.gk-btn--primary:active {
  background: var(--color-brand-800);
}

.gk-btn--secondary {
  background: var(--bg-surface);
  color: var(--color-neutral-700);
  border-color: var(--color-neutral-200);
}

.gk-btn--secondary:hover {
  background: var(--color-neutral-50);
  border-color: var(--color-neutral-300);
  color: var(--color-neutral-700);
}

.gk-btn--secondary:active {
  background: var(--color-neutral-100);
}

.gk-btn--ghost {
  color: var(--color-neutral-600);
  background: none;
}

.gk-btn--ghost:hover {
  background: var(--color-neutral-100);
  color: var(--color-neutral-800);
}

.gk-btn--ghost:active {
  background: var(--color-neutral-200);
}

.gk-btn--destructive {
  background: var(--color-error);
  color: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

.gk-btn--destructive:hover {
  color: var(--bg-surface);
  background: #b91c1c;
}

.gk-btn--destructive:active {
  background: #991b1b;
}

.gk-btn--destructive-outline {
  background: var(--bg-surface);
  color: var(--color-error);
  border-color: var(--color-neutral-200);
}

.gk-btn--destructive-outline:hover {
  background: var(--color-error-light);
  color: var(--color-error);
  border-color: #fca5a5;
}

.gk-btn--icon {
  width: 36px;
  padding: 0;
}

.gk-btn--icon.gk-btn--sm {
  width: 30px;
}

.gk-btn--add {
  border: 1px dashed var(--color-neutral-300);
  color: var(--color-neutral-600);
  background: none;
  width: 100%;
  height: 44px;
}

.gk-btn--add:hover {
  border-color: var(--color-brand-500);
  color: var(--color-brand-700);
  background: var(--bg-brand-tint);
}

.gk-ptabs {
  border-bottom: 1px solid var(--color-neutral-200);
  scrollbar-width: none;
  gap: 2px;
  display: flex;
  overflow-x: auto;
}

.gk-ptabs::-webkit-scrollbar {
  display: none;
}

.gk-ptabs__btn {
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-500);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--motion-default), border-color var(--motion-default);
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  margin-bottom: -1px;
  padding: 9px 12px;
  display: inline-flex;
}

.gk-ptabs__btn svg {
  width: 16px;
  height: 16px;
}

.gk-ptabs__btn:hover {
  color: var(--color-neutral-700);
}

.gk-ptabs__btn--active {
  color: var(--color-brand-700);
  border-bottom-color: var(--color-brand-700);
  font-weight: var(--weight-semibold);
}

.gk-ptabs__btn:focus-visible {
  box-shadow: var(--shadow-focus-brand);
  border-radius: var(--radius-sm);
  outline: none;
}

.tab-count {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  background: var(--color-neutral-100);
  color: var(--color-neutral-600);
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
  padding: 0 6px;
  line-height: 18px;
}

.gk-ptabs__btn--active .tab-count {
  background: var(--color-brand-100);
  color: var(--color-brand-800);
}

.gk-seg {
  background: var(--color-neutral-100);
  border-radius: var(--radius-md);
  gap: 2px;
  padding: 2px;
  display: inline-flex;
}

.gk-seg__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--color-neutral-600);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--motion-default) var(--ease-standard), color var(--motion-default) var(--ease-standard);
  background: none;
  border: 0;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  display: inline-flex;
}

.gk-seg__btn svg, .gk-seg__btn .ic {
  width: 14px;
  height: 14px;
}

.gk-seg__btn:hover {
  color: var(--color-neutral-800);
}

.gk-seg__btn--active {
  background: var(--bg-surface);
  color: var(--fg-primary);
  box-shadow: var(--shadow-xs);
}

.gk-seg__btn:focus-visible {
  box-shadow: var(--shadow-focus-brand);
  outline: none;
}

.gk-seg__btn .tab-count {
  margin-left: 2px;
}

.gk-tabs {
  border-bottom: 1px solid var(--color-neutral-100);
  gap: 0;
  display: flex;
}

.gk-tab {
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-500);
  cursor: pointer;
  transition: color var(--motion-default), border-color var(--motion-default);
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
  padding: 10px 14px;
  display: inline-flex;
}

.gk-tab .ic, .gk-tab svg {
  width: 16px;
  height: 16px;
}

.gk-tab:hover {
  color: var(--color-neutral-700);
}

.gk-tab--active {
  color: var(--color-brand-700);
  border-bottom-color: var(--color-brand-700);
  font-weight: var(--weight-semibold);
}

.gk-tab:focus-visible {
  box-shadow: var(--shadow-focus-brand);
  border-radius: var(--radius-sm);
  outline: none;
}

.gk-card {
  background: var(--bg-surface);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.gk-card--flat {
  box-shadow: none;
}

.gk-card + .gk-card {
  margin-top: 0;
}

.gk-card__head {
  padding: 12px var(--space-5);
  border-bottom: 1px solid var(--color-neutral-100);
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 50px;
  display: flex;
}

.gk-card__title {
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  align-items: center;
  gap: 8px;
  display: flex;
}

.gk-card__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.gk-card__body {
  padding: var(--space-5);
}

.gk-card__body--flush {
  padding: 0;
}

.gk-card__foot {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--color-neutral-100);
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  display: flex;
}

.gk-info {
  width: 18px;
  height: 18px;
  color: var(--color-neutral-400);
  cursor: help;
  vertical-align: middle;
  background: none;
  border: 0;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
  position: relative;
}

.gk-info:hover {
  color: var(--color-neutral-600);
}

.gk-info:focus-visible {
  color: var(--color-neutral-600);
  outline: 2px solid var(--color-brand-700);
  outline-offset: 2px;
  border-radius: 50%;
}

.gk-info svg {
  width: 15px;
  height: 15px;
}

.gk-tip {
  background: var(--color-neutral-800);
  color: var(--fg-on-brand);
  font-size: 12px;
  font-weight: var(--weight-regular);
  border-radius: var(--radius-md);
  text-align: left;
  width: max-content;
  max-width: 280px;
  box-shadow: var(--shadow-md);
  z-index: var(--z-dropdown);
  pointer-events: none;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
  padding: 8px 10px;
  line-height: 1.45;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

.gk-tip:after {
  content: "";
  border: 5px solid #0000;
  border-top-color: var(--color-neutral-800);
  margin-left: -5px;
  position: absolute;
  top: 100%;
  left: 50%;
}

.gk-tip--left {
  left: auto;
  right: -6px;
  transform: none;
}

.gk-tip--left:after {
  left: auto;
  right: 10px;
}

.gk-tip--fixed {
  z-index: var(--z-tooltip);
  position: fixed;
  bottom: auto;
  transform: translate(-50%, -100%);
}

.gk-tip--below {
  transform: translate(-50%);
}

.gk-tip--below:after {
  border-top-color: #0000;
  border-bottom-color: var(--color-neutral-800);
  top: auto;
  bottom: 100%;
}

.gk-info-dot-anchor {
  position: relative;
}

.gk-info-dot-anchor > .gk-info {
  margin-left: 0;
  position: absolute;
  top: 0;
  right: 0;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.stats-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat {
  background: var(--bg-surface);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: left;
  min-width: 0;
  color: inherit;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 14px;
  font-family: inherit;
  display: flex;
  position: relative;
}

.stat--click {
  cursor: pointer;
  transition: border-color var(--motion-default), box-shadow var(--motion-default);
  width: 100%;
}

.stat--click:hover {
  border-color: var(--color-neutral-300);
  box-shadow: var(--shadow-md);
}

.stat--click:focus-visible {
  box-shadow: var(--shadow-focus-brand);
  outline: none;
}

.stat--accent {
  border-left-width: 3px;
}

.stat--warning {
  border-left-color: var(--color-warning);
}

.stat--error {
  border-left-color: var(--color-error);
}

.stat--success {
  border-left-color: var(--color-success);
}

.stat--info {
  border-left-color: var(--color-info);
}

.stat__label {
  font-size: 11.5px;
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.stat__label svg {
  width: 14px;
  height: 14px;
  color: var(--color-neutral-400);
  flex-shrink: 0;
}

.stat__label span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.stat__label .gk-info {
  margin-left: -2px;
}

.stat__value {
  font-size: 26px;
  font-weight: var(--weight-bold);
  letter-spacing: -.02em;
  color: var(--fg-primary);
  font-variant-numeric: tabular-nums;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  line-height: 1;
  display: flex;
}

.stat__value .num {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.stat__value--long {
  font-size: 20px;
}

.stat__value--fit {
  font-size: clamp(var(--text-lg), 5vw, 26px);
}

.stat__value--note {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--fg-muted);
  letter-spacing: 0;
  white-space: normal;
  line-height: 1.35;
}

.stat__value[aria-busy="true"] {
  color: var(--color-neutral-300);
}

.stat__unit {
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--color-neutral-500);
  white-space: nowrap;
}

.stat__foot {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  display: flex;
}

.stat__delta {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  display: inline-flex;
}

.stat__delta svg {
  width: 12px;
  height: 12px;
}

.stat__delta--good {
  color: var(--color-brand-700);
  background: var(--color-success-light);
}

.stat__delta--bad {
  color: var(--color-error-fg);
  background: var(--color-error-light);
}

.stat__delta--flat {
  color: var(--color-neutral-600);
  background: var(--color-neutral-100);
}

.stat__delta-label {
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: var(--weight-regular);
}

.spark {
  flex-shrink: 0;
  display: block;
}

.mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  display: grid;
}

.mini-stat {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  display: flex;
}

.mini-stat__label {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.mini-stat__value {
  font-size: 18px;
  font-weight: var(--weight-bold);
  color: var(--fg-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.gk-badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  line-height: 1.4;
  display: inline-flex;
}

.gk-badge svg, .gk-badge .ic {
  width: 12px;
  height: 12px;
}

.gk-badge__dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.gk-badge--success {
  background: var(--color-success-light);
  color: var(--color-success-fg);
}

.gk-badge--success .gk-badge__dot {
  background: var(--color-success);
}

.gk-badge--warning {
  background: var(--color-warning-light);
  color: var(--color-warning-fg);
}

.gk-badge--warning .gk-badge__dot {
  background: var(--color-warning);
}

.gk-badge--error {
  background: var(--color-error-light);
  color: var(--color-error-fg);
}

.gk-badge--error .gk-badge__dot {
  background: var(--color-error);
}

.gk-badge--info {
  background: var(--color-info-light);
  color: var(--color-info-fg);
}

.gk-badge--info .gk-badge__dot {
  background: var(--color-info);
}

.gk-badge--neutral {
  background: var(--color-neutral-100);
  color: var(--color-neutral-600);
}

.gk-badge--neutral .gk-badge__dot {
  background: var(--color-neutral-400);
}

.gk-tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-600);
  background: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  display: inline-flex;
}

.gk-tag svg, .gk-tag .ic {
  width: 12px;
  height: 12px;
}

.gk-chips {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.gk-chip {
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-neutral-200);
  background: var(--bg-surface);
  height: 28px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: var(--weight-medium);
  color: var(--color-neutral-600);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--motion-default), border-color var(--motion-default);
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  display: inline-flex;
}

.gk-chip:hover {
  background: var(--color-neutral-50);
  border-color: var(--color-neutral-300);
}

.gk-chip--on {
  background: var(--color-brand-50);
  border-color: var(--color-brand-300);
  color: var(--color-brand-800);
}

.gk-chip .cnt {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  background: var(--color-neutral-100);
  border-radius: var(--radius-pill);
  color: var(--color-neutral-600);
  padding: 0 5px;
}

.gk-chip--on .cnt {
  background: var(--color-brand-100);
  color: var(--color-brand-800);
}

.gk-chip svg, .gk-chip .ic {
  width: 14px;
  height: 14px;
}

.gk-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  display: inline-block;
}

.gk-resource {
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  display: inline-flex;
}

.gk-resource__dot, .gk-resource-dot {
  background: var(--color-neutral-400);
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  display: inline-block;
}

.gk-resource--electricity .gk-resource__dot, .res--electricity {
  background: var(--viz-electricity);
}

.gk-resource--gas .gk-resource__dot, .res--gas {
  background: var(--viz-gas);
}

.gk-resource--water .gk-resource__dot, .res--water {
  background: var(--viz-water);
}

.gk-resource--steam .gk-resource__dot, .res--steam {
  background: var(--viz-steam);
}

.gk-resource--oil .gk-resource__dot, .res--oil {
  background: var(--viz-oil);
}

.gk-resource--solar .gk-resource__dot, .res--solar {
  background: var(--viz-solar);
}

.gk-resource--waste .gk-resource__dot, .res--waste {
  background: var(--viz-waste);
}

.gk-resource--chilled .gk-resource__dot, .res--chilled {
  background: var(--viz-chilled);
}

.tone--success {
  color: var(--color-brand-700);
}

.tone--warning {
  color: var(--color-warning-fg);
}

.tone--error {
  color: var(--color-error-fg);
}

.tone--info {
  color: var(--color-info-fg);
}

.tone--neutral {
  color: var(--color-neutral-500);
}

.bg--success {
  background: var(--color-success-light);
}

.bg--warning {
  background: var(--color-warning-light);
}

.bg--error {
  background: var(--color-error-light);
}

.bg--info {
  background: var(--color-info-light);
}

.chip-link {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-brand-800);
  background: var(--color-brand-50);
  border: 1px solid var(--color-brand-100);
  border-radius: var(--radius-pill);
  cursor: pointer;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-family: inherit;
  display: inline-flex;
}

.chip-link:hover {
  background: var(--color-brand-100);
}

.chip-link:disabled {
  opacity: .4;
  pointer-events: none;
  cursor: not-allowed;
}

.delta-chip {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.delta-chip--good {
  color: var(--color-success-fg);
}

.delta-chip--bad {
  color: var(--color-error);
}

.delta-chip--flat {
  color: var(--fg-muted);
}

.gk-table-wrap {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

.gk-table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-sm);
}

.gk-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps-sm);
  padding: 10px var(--space-5);
  background: var(--color-neutral-50);
  border-bottom: 1px solid var(--color-neutral-200);
  white-space: nowrap;
  z-index: 1;
  position: sticky;
  top: 0;
}

.gk-table th.gk-num {
  text-align: right;
}

.gk-table th.gk-center {
  text-align: center;
}

.gk-table td {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-neutral-100);
  color: var(--color-neutral-700);
  vertical-align: middle;
}

.gk-table td.gk-num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 13px;
}

.gk-table td.gk-mono, .gk-table .gk-mono {
  font-family: var(--font-mono);
  white-space: nowrap;
  font-size: 13px;
}

.gk-table td.gk-center {
  text-align: center;
}

.gk-table tbody tr {
  transition: background var(--motion-fast) var(--ease-standard);
}

.gk-table tbody tr:hover td {
  background: var(--color-neutral-50);
}

.gk-table tbody tr:last-child td {
  border-bottom: none;
}

.gk-table tbody tr.gk-clickable, .gk-table tbody tr.clickable {
  cursor: pointer;
}

.gk-table tbody tr.gk-selected td {
  background: var(--color-brand-50);
}

.gk-table tbody tr.gk-selected td:first-child {
  box-shadow: inset 2px 0 0 var(--color-brand-700);
}

.gk-table tr.muted td {
  color: var(--fg-muted);
}

.gk-table--dense td {
  padding: 8px var(--space-5);
}

.gk-table th button.sort {
  all: unset;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.gk-table th button.sort svg {
  opacity: .5;
  width: 12px;
  height: 12px;
}

.gk-table th button.sort.on svg {
  opacity: 1;
  color: var(--color-brand-700);
}

.gk-table th button.sort:focus-visible {
  box-shadow: var(--shadow-focus-brand);
  border-radius: var(--radius-sm);
}

.gk-cell-title {
  font-weight: var(--weight-medium);
  color: var(--fg-primary);
}

.gk-cell-sub {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  margin-top: 1px;
}

.gk-cell-title.gk-mono {
  white-space: nowrap;
}

.gk-row-actions {
  opacity: 0;
  justify-content: flex-end;
  gap: 2px;
  transition: opacity .15s;
  display: inline-flex;
}

tr:hover .gk-row-actions, tr:focus-within .gk-row-actions {
  opacity: 1;
}

@media (hover: none) {
  .gk-row-actions {
    opacity: 1;
  }
}

.gk-table-bar {
  padding: 10px var(--space-5);
  border-bottom: 1px solid var(--color-neutral-100);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.gk-table-bar .gk-input {
  width: 220px;
  height: 32px;
  font-size: 13px;
}

.gk-table-foot {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: 8px var(--space-5);
  font-size: var(--text-xs);
  color: var(--fg-muted);
  border-top: 1px solid var(--color-neutral-100);
  flex-wrap: wrap;
  display: flex;
}

.gk-table tbody tr.gk-row-detail td {
  background: var(--color-brand-50);
  padding: var(--space-5);
  cursor: default;
}

.gk-table tbody tr.gk-row-has-detail td {
  border-bottom: none;
}

.gk-row-detail__panel {
  gap: var(--space-4);
  flex-direction: column;
  display: flex;
}

.gk-row-detail__dl {
  gap: var(--space-3) var(--space-4);
  grid-template-columns: auto 1fr;
  margin: 0;
  display: grid;
}

.gk-row-detail__dl dt {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps-sm);
  white-space: nowrap;
}

.gk-row-detail__dl dd {
  font-size: var(--text-sm);
  color: var(--fg-body);
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0;
}

.gk-row-detail__actions {
  align-items: center;
  gap: var(--space-2);
  display: flex;
}

.gk-row-detail__semantics {
  align-items: flex-start;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-neutral-200);
  flex-direction: column;
  display: flex;
}

.gk-row-detail__semantics-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps-sm);
}

.gk-row-detail__copyrow {
  align-items: center;
  gap: var(--space-2);
  display: flex;
}

.gk-row-toggle {
  border-radius: var(--radius-sm);
  width: 24px;
  height: 24px;
  color: var(--color-neutral-400);
  cursor: pointer;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.gk-row-toggle:hover {
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
}

.gk-row-toggle .ic {
  width: 16px;
  height: 16px;
  transition: transform var(--motion-default) var(--ease-standard);
}

.gk-row-toggle--open .ic {
  transform: rotate(90deg);
}

tr.gk-row--open td {
  background: var(--color-brand-50);
  border-bottom-color: #0000;
}

tr.gk-detail-row > td {
  background: var(--color-brand-50);
  padding: 0 var(--space-5) var(--space-4);
}

.gk-detail-grid {
  gap: var(--space-3) var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  display: grid;
}

.gk-detail-item .gk-detail-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps-sm);
  color: var(--fg-muted);
}

.gk-detail-item .gk-detail-value {
  color: var(--fg-body);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  font-size: 13px;
}

.gk-detail-item .gk-detail-value.gk-mono {
  font-family: var(--font-mono);
}

.gk-kv {
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 6px 16px;
  margin: 0;
  font-size: 13px;
  display: grid;
}

.gk-kv dt {
  color: var(--fg-muted);
  margin: 0;
}

.gk-kv dd {
  color: var(--fg-body);
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0;
}

.gk-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gk-list-row {
  padding: 11px var(--space-5);
  border-bottom: 1px solid var(--color-neutral-100);
  align-items: center;
  gap: 12px;
  display: flex;
}

.gk-list-row:last-child {
  border-bottom: 0;
}

.gk-list--cols {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  display: grid;
}

.gk-list--cols .gk-list-row {
  border-right: 1px solid var(--color-neutral-100);
}

.gk-list--cols .gk-list-row:last-child {
  border-bottom: 1px solid var(--color-neutral-100);
}

.gk-list-row__icon {
  border-radius: var(--radius-md);
  background: var(--color-neutral-100);
  width: 32px;
  height: 32px;
  color: var(--color-neutral-600);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
}

.gk-list-row__icon svg {
  width: 16px;
  height: 16px;
}

.gk-list-row__body {
  flex: 1;
  min-width: 0;
}

.gk-list-row__title {
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  color: var(--fg-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.gk-list-row__sub {
  color: var(--fg-muted);
  margin-top: 1px;
  font-size: 12px;
}

.gk-list-row__meta {
  color: var(--fg-muted);
  white-space: nowrap;
  font-size: 12px;
}

button.gk-list-row {
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button.gk-list-row:hover {
  background: var(--color-neutral-50);
}

.gk-state {
  text-align: center;
  color: var(--fg-muted);
  font-size: var(--text-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 24px;
  display: flex;
}

.gk-state svg, .gk-state .ic {
  width: 32px;
  height: 32px;
  color: var(--color-neutral-400);
}

.gk-state__title {
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
}

.gk-state p {
  max-width: 420px;
  margin: 0;
  font-size: 13.5px;
}

.gk-state .gk-btn {
  margin-top: 6px;
}

.gk-state--sm {
  padding: 20px;
}

.gk-state--sm svg, .gk-state--sm .ic {
  width: 22px;
  height: 22px;
}

.gk-state--plain {
  background: none;
  border: none;
}

.gk-skel {
  background: linear-gradient(90deg, var(--color-neutral-100) 25%, var(--color-neutral-50) 50%, var(--color-neutral-100) 75%);
  border-radius: var(--radius-sm);
  background-size: 200% 100%;
  height: 14px;
  animation: 1.5s infinite gk-shimmer;
}

@keyframes gk-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.gk-alert {
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-neutral-700);
  border-left: 4px solid;
  align-items: flex-start;
  font-size: 13.5px;
  display: flex;
}

.gk-alert > svg, .gk-alert > .ic {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.gk-alert--success {
  border-color: var(--color-success);
  background: var(--color-success-light);
}

.gk-alert--success > svg, .gk-alert--success > .ic {
  color: var(--color-success-fg);
}

.gk-alert--warning {
  border-color: var(--color-warning);
  background: var(--color-warning-light);
}

.gk-alert--warning > svg, .gk-alert--warning > .ic {
  color: var(--color-warning-fg);
}

.gk-alert--error {
  border-color: var(--color-error);
  background: var(--color-error-light);
}

.gk-alert--error > svg, .gk-alert--error > .ic {
  color: var(--color-error-fg);
}

.gk-alert--info {
  border-color: var(--color-info);
  background: var(--color-info-light);
}

.gk-alert--info > svg, .gk-alert--info > .ic {
  color: var(--color-info-fg);
}

.gk-alert__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-800);
}

.gk-alert__body {
  gap: var(--space-1);
  flex-direction: column;
  display: flex;
}

.gk-alert__actions {
  gap: var(--space-2);
  flex-shrink: 0;
  align-self: center;
  align-items: center;
  margin-left: auto;
  display: flex;
}

.gk-banner {
  border-radius: var(--radius-lg);
  background: var(--color-brand-50);
  border: 1px solid var(--color-brand-200);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  display: flex;
}

.gk-banner strong {
  color: var(--fg-primary);
}

.gk-menu-wrap {
  display: inline-block;
  position: relative;
}

.gk-menu {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  z-index: var(--z-dropdown);
  padding: 6px;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
}

.gk-menu--left {
  left: 0;
  right: auto;
}

.gk-menu__item {
  border-radius: var(--radius-md);
  width: 100%;
  color: var(--fg-body);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  background: none;
  border: 0;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13.5px;
  text-decoration: none;
  display: flex;
}

.gk-menu__item:hover {
  background: var(--color-neutral-100);
  text-decoration: none;
}

.gk-menu__item svg, .gk-menu__item .ic {
  width: 15px;
  height: 15px;
  color: var(--color-neutral-500);
  flex-shrink: 0;
}

.gk-menu__item:disabled, .gk-menu__item[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}

.gk-menu__item--danger, .gk-menu__item--danger svg, .gk-menu__item--danger .ic {
  color: var(--color-error-fg);
}

.gk-menu__div {
  background: var(--color-neutral-100);
  height: 1px;
  margin: 4px 0;
}

.gk-menu__label {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-neutral-500);
  padding: 8px 10px 4px;
}

.gk-modal-overlay {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: var(--z-modal);
  padding: var(--space-6);
  background: #0006;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.gk-modal {
  background: var(--bg-surface);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  display: flex;
  overflow: hidden;
}

.gk-modal--sm {
  max-width: 440px;
}

.gk-modal--lg {
  max-width: 800px;
}

.gk-modal--xl {
  max-width: 1040px;
}

.gk-modal__head {
  padding: 16px var(--space-5);
  border-bottom: 1px solid var(--color-neutral-100);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.gk-modal__heading {
  min-width: 0;
}

.gk-modal__title {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  margin: 0;
}

.gk-modal__subtitle {
  font-size: var(--text-13);
  color: var(--color-neutral-500);
  margin-top: 2px;
}

.gk-modal__body {
  padding: var(--space-5);
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  display: flex;
  overflow: hidden auto;
}

.gk-modal__body > * {
  min-width: 0;
}

.gk-modal__foot {
  padding: 12px var(--space-5);
  border-top: 1px solid var(--color-neutral-100);
  background: var(--color-neutral-50);
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.gk-modal__foot .left {
  margin-right: auto;
}

.gk-drawer-overlay {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: var(--z-modal);
  background: #0006;
  position: fixed;
  inset: 0;
}

.gk-drawer {
  background: var(--bg-surface);
  width: 480px;
  max-width: 100%;
  box-shadow: var(--shadow-xl);
  z-index: calc(var(--z-modal) + 1);
  animation: gk-slide var(--motion-slow) var(--ease-standard);
  flex-direction: column;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
}

@keyframes gk-slide {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.gk-drawer__head {
  padding: 16px var(--space-5);
  border-bottom: 1px solid var(--color-neutral-100);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.gk-drawer__title {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  margin: 0;
}

.gk-drawer__body {
  padding: var(--space-5);
  flex-direction: column;
  flex: 1;
  gap: 16px;
  min-height: 0;
  display: flex;
  overflow-y: auto;
}

.gk-drawer__foot {
  padding: 12px var(--space-5);
  border-top: 1px solid var(--color-neutral-100);
  background: var(--color-neutral-50);
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.gk-toasts {
  z-index: var(--z-toast);
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.gk-toast {
  background: var(--color-neutral-800);
  color: var(--fg-on-brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  animation: gk-toast-in var(--motion-default) var(--ease-standard);
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  align-items: flex-start;
  gap: 10px;
  max-width: 420px;
  padding: 11px 12px 11px 14px;
  line-height: 1.45;
  display: flex;
  position: fixed;
}

.gk-toasts .gk-toast {
  max-width: none;
  position: static;
}

@keyframes gk-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.gk-toast > svg, .gk-toast > .ic {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.gk-toast--success > svg, .gk-toast--success > .ic {
  color: #4ade80;
}

.gk-toast--error > svg, .gk-toast--error > .ic {
  color: #fca5a5;
}

.gk-toast--warning > svg, .gk-toast--warning > .ic {
  color: #fcd34d;
}

.gk-toast--info > svg, .gk-toast--info > .ic {
  color: #93c5fd;
}

.gk-toast--error {
  background: #3f1d1d;
  border: 1px solid #7f1d1d;
}

.gk-toast__msg {
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.gk-toast__title {
  font-weight: var(--weight-semibold);
  display: block;
}

.gk-toast__close {
  color: #ffffffb3;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: var(--text-lg);
  background: none;
  border: 0;
  padding: 2px;
  font-family: inherit;
  line-height: 1;
  display: flex;
}

.gk-toast__close:hover, .gk-toast__close:focus-visible {
  color: var(--fg-on-brand);
  background: #ffffff1f;
}

.gk-toast__close svg {
  width: 14px;
  height: 14px;
}

.gk-toast__action {
  color: var(--fg-on-brand);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  text-decoration: underline;
}

.gk-form {
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  display: flex;
}

.gk-form-row {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.gk-form-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.gk-field {
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.gk-field__label {
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--fg-body);
}

.gk-field__label .required, .gk-field__label .req {
  color: var(--color-error);
  margin-left: 2px;
}

.gk-field__hint {
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
}

.gk-field__hint--error, .gk-field__error {
  font-size: var(--text-xs);
  color: var(--color-error);
}

.gk-field__value {
  font-size: var(--text-sm);
  color: var(--color-neutral-800);
  align-items: center;
  min-height: 36px;
  display: flex;
}

.gk-input {
  width: 100%;
  height: 36px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-neutral-800);
  box-sizing: border-box;
  transition: border-color var(--motion-default) var(--ease-standard),
              box-shadow var(--motion-default) var(--ease-standard);
  outline: none;
}

.gk-input::placeholder {
  color: var(--fg-placeholder);
}

.gk-input:focus {
  border-color: var(--color-brand-500);
  box-shadow: var(--shadow-focus-brand);
}

.gk-input:disabled {
  opacity: .5;
  background: var(--color-neutral-50);
  pointer-events: none;
}

.gk-input[readonly] {
  background: var(--color-neutral-50);
  color: var(--color-neutral-600);
}

.gk-input--mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.gk-input--error {
  border-color: var(--color-error);
}

.gk-input--error:focus {
  border-color: var(--color-error);
  box-shadow: var(--shadow-focus-error);
}

.gk-input--sm {
  height: 32px;
  padding: 0 var(--space-2);
  font-size: 13px;
}

textarea.gk-input {
  resize: vertical;
  height: auto;
  min-height: 72px;
  line-height: 1.5;
}

select.gk-input {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2364748B%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.gk-input-wrap {
  align-items: center;
  display: flex;
  position: relative;
}

.gk-input-wrap .gk-input__icon {
  width: 16px;
  height: 16px;
  color: var(--color-neutral-400);
  pointer-events: none;
  position: absolute;
  left: 10px;
}

.gk-input-wrap .gk-input--has-icon {
  padding-left: 34px;
}

.gk-check {
  align-items: center;
  gap: var(--space-2);
  color: var(--fg-body);
  cursor: pointer;
  font-size: 13.5px;
  display: flex;
}

.gk-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-brand-700);
  margin: 0;
}

.gk-switch {
  border-radius: var(--radius-pill);
  background: var(--color-neutral-300);
  cursor: pointer;
  width: 34px;
  height: 20px;
  transition: background-color var(--motion-default) var(--ease-standard);
  border: none;
  flex-shrink: 0;
  padding: 0;
  position: relative;
}

.gk-switch[aria-checked="true"] {
  background: var(--color-brand-700);
}

.gk-switch i {
  background: var(--color-neutral-0);
  width: 16px;
  height: 16px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--motion-default) var(--ease-standard);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
}

.gk-switch[aria-checked="true"] i {
  transform: translateX(14px);
}

.gk-switch:focus-visible {
  box-shadow: var(--shadow-focus-brand);
  outline: none;
}

.gk-switch-row {
  cursor: pointer;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  display: inline-flex;
}

.gk-radio-cards {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  display: grid;
}

.gk-radio-card {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color var(--motion-default), background var(--motion-default);
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  display: flex;
}

.gk-radio-card:hover {
  border-color: var(--color-neutral-300);
}

.gk-radio-card--on {
  border-color: var(--color-brand-500);
  background: var(--color-brand-50);
}

.gk-radio-card:focus-visible {
  box-shadow: var(--shadow-focus-brand);
  outline: none;
}

.gk-radio-card__title {
  font-size: 13.5px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
}

.gk-radio-card__desc {
  color: var(--fg-muted);
  font-size: 12px;
}

.gk-drop {
  border: 1.5px dashed var(--color-neutral-300);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--fg-muted);
  cursor: pointer;
  background: var(--color-neutral-50);
  transition: border-color var(--motion-default), background var(--motion-default);
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  font-size: 13.5px;
  display: flex;
}

.gk-drop:hover, .gk-drop--over {
  border-color: var(--color-brand-500);
  background: var(--color-brand-50);
}

.gk-drop--disabled {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}

.gk-drop svg, .gk-drop .ic {
  width: 26px;
  height: 26px;
  color: var(--color-neutral-400);
}

.gk-copyrow {
  gap: 8px;
  display: flex;
}

.gk-copyrow .gk-input {
  flex: 1;
}

.form-grid {
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  display: grid;
}

.form-grid .span-2 {
  grid-column: span 2;
}

.form-section {
  margin-bottom: var(--space-6);
}

.form-section__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps-sm);
  color: var(--fg-muted);
  margin: 0 0 var(--space-3);
}

.form-actions {
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-5);
  display: flex;
}

.gk-pick-or-type__row {
  gap: 6px;
  display: flex;
}

.gk-pick-or-type__row .gk-input {
  flex: 1;
  min-width: 0;
}

.pct-bar {
  background: var(--color-neutral-100);
  border-radius: 3px;
  min-width: 60px;
  height: 6px;
  display: block;
  position: relative;
  overflow: hidden;
}

.pct-fill {
  background: var(--color-brand-600);
  height: 100%;
  transition: width var(--motion-slow);
  border-radius: 3px;
  display: block;
}

.pct-fill--warn {
  background: var(--color-warning);
}

.pct-fill--bad {
  background: var(--color-error);
}

.pct-fill--info {
  background: var(--color-info);
}

.hbar {
  grid-template-columns: minmax(0, 140px) minmax(48px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  display: grid;
}

.hbar__label {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg-body);
  overflow: hidden;
}

.hbar__track {
  background: var(--color-neutral-100);
  border-radius: 3px;
  height: 10px;
  display: block;
  position: relative;
  overflow: hidden;
}

.hbar__fill {
  background: var(--color-brand-600);
  border-radius: 3px;
  height: 100%;
  display: block;
}

.hbar__marker {
  background: var(--color-neutral-700);
  width: 2px;
  height: 16px;
  position: absolute;
  top: -3px;
}

.hbar__val {
  font-variant-numeric: tabular-nums;
  color: var(--fg-body);
  white-space: nowrap;
  text-align: right;
  min-width: 70px;
}

.pipeline {
  gap: 3px;
  display: inline-flex;
}

.pipeline__stage {
  font-size: 10.5px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--color-neutral-100);
  color: var(--color-neutral-400);
  border-radius: 3px;
  padding: 1px 6px;
}

.pipeline__stage--done {
  background: var(--color-success-light);
  color: var(--color-brand-700);
}

.pipeline__stage--active {
  background: var(--color-info-light);
  color: var(--color-info-fg);
}

.pipeline__stage--error {
  background: var(--color-error-light);
  color: var(--color-error-fg);
}

.cov-table {
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 12px;
}

.cov-table th {
  font-weight: var(--weight-medium);
  color: var(--fg-muted);
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  background: none;
  border: 0;
  padding: 2px 4px;
  font-size: 11px;
  position: static;
}

.cov-table th:first-child {
  text-align: left;
}

.cov-table td.lbl {
  white-space: nowrap;
  color: var(--fg-body);
  padding-right: 8px;
}

.cov-cell {
  background: var(--color-neutral-100);
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 3px;
  width: 26px;
  height: 22px;
  padding: 0;
}

.cov-cell--a {
  background: #86efac;
}

.cov-cell--m {
  background: #fca5a5;
}

.cov-cell--p {
  background: var(--color-neutral-200);
}

.cov-cell:hover {
  border-color: var(--color-neutral-700);
}

.cov-cell--sel {
  border-color: var(--fg-primary);
  box-shadow: 0 0 0 1px var(--fg-primary);
}

.cov-legend {
  color: var(--fg-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  display: flex;
}

.cov-swatch {
  vertical-align: -2px;
  border-radius: 2px;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  display: inline-block;
}

.kg {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  display: grid;
}

.kg__canvas {
  background: var(--bg-surface);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  min-height: 560px;
  position: relative;
  overflow: hidden;
}

.kg__canvas svg {
  cursor: grab;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.kg__canvas svg:active {
  cursor: grabbing;
}

.kg__legend {
  border-radius: var(--radius-md);
  color: var(--fg-body);
  border: 1px solid var(--color-neutral-200);
  background: #ffffffeb;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 10px;
  font-size: 11.5px;
  display: flex;
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.kg__legend span {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.kg__toolbar {
  border-bottom: 1px solid var(--color-neutral-100);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  display: flex;
}

.kg__toolbar .gk-input {
  height: 32px;
  font-size: 13px;
}

.kg__time {
  border-top: 1px solid var(--color-neutral-100);
  color: var(--fg-muted);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  display: flex;
}

.kg__time input[type="range"] {
  accent-color: var(--color-brand-700);
  flex: 1;
}

.kg__facts {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.kg__fact {
  grid-template-columns: minmax(90px, max-content) 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 12.5px;
  display: grid;
}

.kg__fact dt {
  color: var(--fg-muted);
}

.kg__fact dd {
  color: var(--fg-body);
  word-break: break-word;
  margin: 0;
}

.kg__edge {
  border-bottom: 1px solid var(--color-neutral-100);
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 12.5px;
  display: flex;
}

.kg__edge:last-child {
  border-bottom: 0;
}

.kg__edge .pred {
  font-family: var(--font-mono);
  color: var(--color-neutral-500);
  background: var(--color-neutral-100);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 11px;
}

.kg__edge button {
  all: unset;
  color: var(--color-brand-700);
  cursor: pointer;
  font-weight: var(--weight-medium);
}

.kg__edge button:hover {
  text-decoration: underline;
}

.kg-node {
  cursor: pointer;
}

.kg-node:focus-visible {
  outline: none;
}

.kg-node:focus-visible > circle, .kg-node:focus-visible > rect {
  stroke: var(--color-brand-500);
  stroke-width: 3px;
}

.kg-node text {
  font-family: var(--font-sans);
  fill: var(--fg-body);
  pointer-events: none;
  font-size: 11px;
}

.kg-node.dim {
  opacity: .18;
}

.kg-node.hidden {
  display: none;
}

.kg-edge {
  stroke: var(--color-neutral-300);
  stroke-width: 1.2px;
}

.kg-edge.dim {
  opacity: .1;
}

.kg-edge.hi {
  stroke: var(--color-neutral-600);
  stroke-width: 1.8px;
}

.kg-edge-label {
  fill: var(--color-neutral-500);
  font-size: 9.5px;
  font-family: var(--font-mono);
  pointer-events: none;
}

.cal-month {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  display: grid;
}

.cal-dow {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  padding: 4px 0;
}

.cal-day {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  min-height: 78px;
  padding: 6px;
  font-size: 12px;
  display: flex;
}

.cal-day--pad {
  background: none;
  border-color: #0000;
}

.cal-day--today .cal-day__n {
  background: var(--color-brand-700);
  color: var(--fg-on-brand);
}

.cal-day__n {
  width: 22px;
  height: 22px;
  font-weight: var(--weight-semibold);
  color: var(--fg-body);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  display: inline-flex;
}

.cal-ev {
  border-radius: var(--radius-sm);
  background: var(--color-info-light);
  color: var(--color-info-fg);
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 11px;
  font-weight: var(--weight-medium);
  border: 0;
  max-width: 100%;
  padding: 2px 6px;
  display: block;
  overflow: hidden;
}

.cal-ev--ref {
  background: var(--color-neutral-100);
  color: var(--color-neutral-600);
}

.cal-ev--soon {
  background: var(--color-warning-light);
  color: var(--color-warning-fg);
}

.cal-count {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-600);
  background: var(--color-neutral-100);
  border-radius: var(--radius-pill);
  align-self: flex-start;
  padding: 0 6px;
  display: none;
}

.scene-tip {
  pointer-events: none;
  background: var(--color-neutral-800);
  color: var(--fg-on-brand);
  border-radius: var(--radius-md);
  opacity: 0;
  white-space: nowrap;
  z-index: 2;
  padding: 6px 9px;
  font-size: 12px;
  transition: opacity .15s;
  position: absolute;
  transform: translate(12px, -100%);
}

.scene-tip.show {
  opacity: 1;
}

.scene-tip .tt-label {
  font-weight: var(--weight-semibold);
}

.scene-tip .tt-metric {
  color: #ffffffbf;
  font-size: 11px;
}

.scene-wrap {
  background: linear-gradient(#f8fafc 0%, #eef2f6 100%);
  height: 440px;
  position: relative;
  overflow: hidden;
}

.scene-wrap .scene-mount {
  z-index: 1;
  position: absolute;
  inset: 0;
}

.scene-wrap .kg__legend, .scene-wrap .scene-tip {
  z-index: 3;
}

.scene-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.scene-map__attr {
  z-index: 3;
  color: var(--color-neutral-500);
  border-radius: var(--radius-sm);
  pointer-events: none;
  text-align: right;
  background: #fffc;
  max-width: 60%;
  padding: 2px 6px;
  font-size: 10px;
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.model-body {
  min-height: 0;
  display: flex;
}

.model-body .scene-wrap {
  flex: 1;
  min-width: 0;
}

.floor-rail {
  border-left: 1px solid var(--color-neutral-100);
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  width: 172px;
  max-height: 440px;
  padding: 12px 10px;
  display: flex;
  overflow-y: auto;
}

.floor-rail__head {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 6px 6px;
}

.floor-rail__item {
  text-align: left;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px;
  font-family: inherit;
  transition: background .12s;
  display: flex;
}

.floor-rail__item:hover, .floor-rail__item.hovered {
  background: var(--color-neutral-100);
}

.floor-rail__item.selected {
  background: var(--color-brand-100);
}

.floor-rail__dot {
  background: var(--color-neutral-300);
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.floor-rail__item.st-ok .floor-rail__dot {
  background: var(--color-success);
}

.floor-rail__item.st-anomaly .floor-rail__dot {
  background: var(--color-warning);
}

.floor-rail__item.st-issue .floor-rail__dot {
  background: var(--color-error);
}

.floor-rail__label {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 24px;
}

.floor-rail__name {
  color: var(--color-neutral-500);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  overflow: hidden;
}

.floor-rail__item.selected .floor-rail__name {
  color: var(--color-brand-800);
}

.detail {
  flex-direction: column;
  display: flex;
}

.detail__head {
  padding: 18px var(--space-5) 14px;
  border-bottom: 1px solid var(--color-neutral-100);
}

.detail__eyebrow {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-400);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.detail__title {
  font-size: 18px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  letter-spacing: -.01em;
}

.detail__sub {
  color: var(--color-neutral-500);
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 13px;
  display: flex;
}

.detail__sub svg {
  color: var(--color-neutral-400);
}

.detail__body {
  padding: 16px var(--space-5);
  flex: 1;
}

.detail-grid {
  background: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-100);
  border-radius: var(--radius-lg);
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 16px;
  display: grid;
  overflow: hidden;
}

.detail-stat {
  background: var(--bg-surface);
  padding: 12px 14px;
}

.detail-stat__label {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-400);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.detail-stat__value {
  font-size: 17px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.level-chip {
  font-size: 13px;
  font-weight: var(--weight-bold);
  border-radius: var(--radius-md);
  font-variant-numeric: tabular-nums;
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
  padding: 3px 10px;
}

.level-chip.st-ok {
  background: var(--color-brand-100);
  color: var(--color-brand-800);
}

.level-chip.st-anomaly {
  background: var(--color-warning-light);
  color: var(--color-warning-fg);
}

.level-chip.st-issue {
  background: var(--color-error-light);
  color: var(--color-error-fg);
}

.domain-chip {
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--color-neutral-700);
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-pill);
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  display: inline-flex;
}

.domain-chip svg {
  color: var(--color-neutral-500);
}

.domain-chip--warning {
  background: var(--color-warning-light);
  color: var(--color-warning-fg);
  border-color: #fcd34d;
}

.domain-chip--warning svg {
  color: inherit;
}

.domain-chip--error {
  background: var(--color-error-light);
  color: var(--color-error-fg);
  border-color: #fca5a5;
}

.domain-chip--error svg {
  color: inherit;
}

.domain-chip--off {
  color: var(--color-neutral-400);
  border-style: dashed;
}

.detail__foot {
  padding: 13px var(--space-5);
  border-top: 1px solid var(--color-neutral-100);
  color: var(--color-neutral-500);
  align-items: center;
  gap: 9px;
  font-size: 13px;
  display: flex;
}

.detail__foot svg {
  color: var(--color-neutral-400);
  flex-shrink: 0;
}

.detail__clear {
  border: 0;
  border-top: 1px solid var(--color-neutral-100);
  cursor: pointer;
  text-align: left;
  background: none;
  width: 100%;
  font-family: inherit;
  transition: background .12s;
}

.detail__clear:hover {
  background: var(--color-neutral-50);
  color: var(--color-neutral-700);
}

.gk-map {
  border-radius: var(--radius-md);
  background: var(--color-neutral-100);
  z-index: 0;
  height: 320px;
  position: relative;
  overflow: hidden;
}

.gk-pin {
  background: var(--color-brand-700);
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 2px #15803d4d;
}

.gk-pin--warning {
  background: var(--color-warning);
  box-shadow: 0 0 0 2px #d977064d;
}

.gk-pin--error {
  background: var(--color-error);
  box-shadow: 0 0 0 2px #dc26264d;
}

.doc-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 420px;
  display: grid;
}

.doc-page {
  background: var(--bg-surface);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  aspect-ratio: 8.5 / 11;
  font-family: var(--font-mono);
  color: var(--color-neutral-600);
  padding: 20px;
  font-size: 10px;
  position: relative;
  overflow: hidden;
}

.doc-bbox {
  cursor: pointer;
  background: #2563eb14;
  border: 1.5px solid #2563ebb3;
  border-radius: 3px;
  transition: background .15s;
  position: absolute;
}

.doc-bbox:hover {
  background: #2563eb2e;
}

.doc-bbox--hi {
  border-color: var(--color-brand-700);
  background: #15803d24;
  box-shadow: 0 0 0 2px #15803d40;
}

.doc-bbox--low {
  background: #d977061a;
  border-color: #d97706cc;
}

.conf {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
  padding: 0 6px;
}

.conf--hi {
  background: var(--color-success-light);
  color: var(--color-brand-700);
}

.conf--mid {
  background: var(--color-warning-light);
  color: var(--color-warning-fg);
}

.conf--low {
  background: var(--color-error-light);
  color: var(--color-error-fg);
}

.field-row {
  border-radius: var(--radius-md);
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  display: grid;
}

.field-row--hi {
  background: var(--color-brand-50);
}

.field-row label {
  color: var(--fg-muted);
  font-size: 12.5px;
}

.gate {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: var(--z-modal);
  background: #0f172a8c;
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: auto;
}

.welcome {
  width: 100%;
  max-width: 640px;
}

.welcome__kicker {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-brand-700);
}

.welcome h1 {
  font-size: 26px;
  font-weight: var(--weight-bold);
  letter-spacing: -.02em;
  color: var(--fg-primary);
  margin: 6px 0 16px;
}

.welcome__role {
  text-transform: capitalize;
  color: var(--color-brand-700);
}

.welcome__steps {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  display: grid;
}

.welcome__step {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  color: var(--fg-primary);
  background: var(--bg-surface);
  cursor: pointer;
  text-align: left;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-family: inherit;
  display: flex;
}

.welcome__step:hover {
  border-color: var(--color-brand-500);
  background: var(--color-brand-50);
}

.welcome__step svg {
  width: 16px;
  height: 16px;
  color: var(--color-brand-700);
}

.welcome h3 {
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  margin: 0 0 8px;
}

.wiz {
  background: var(--bg-page);
  z-index: var(--z-modal);
  grid-template-columns: 260px 1fr;
  display: grid;
  position: fixed;
  inset: 0;
  overflow: auto;
}

.wiz__rail {
  background: var(--color-neutral-100);
  border-right: 1px solid var(--color-neutral-200);
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px;
  display: flex;
}

.wiz__steps {
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.wiz__step {
  border-radius: var(--radius-md);
  color: var(--color-neutral-500);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13.5px;
  display: flex;
}

.wiz__step--active {
  background: var(--bg-surface);
  color: var(--fg-primary);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-xs);
}

.wiz__step--done {
  color: var(--color-brand-700);
}

.wiz__dot {
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  border: 1.5px solid;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.wiz__step--done .wiz__dot {
  background: var(--color-brand-700);
  border-color: var(--color-brand-700);
  color: var(--fg-on-brand);
}

.wiz__main {
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 760px;
  padding: 48px 56px;
  display: flex;
}

.wiz__main h1 {
  font-size: 28px;
  font-weight: var(--weight-bold);
  letter-spacing: -.02em;
  color: var(--fg-primary);
}

.wiz__lede {
  color: var(--fg-muted);
  max-width: 560px;
  font-size: 15px;
}

.wiz__actions {
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.tour-block {
  z-index: var(--z-tour-backdrop);
  position: fixed;
  inset: 0;
}

.tour-spot {
  z-index: var(--z-tour-spot);
  pointer-events: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 9999px #0f172a8c, 0 0 0 3px var(--color-brand-500);
  transition: top var(--motion-slow) var(--ease-standard), left var(--motion-slow) var(--ease-standard),
    width var(--motion-slow) var(--ease-standard), height var(--motion-slow) var(--ease-standard);
  position: fixed;
}

.tour-tip {
  z-index: var(--z-tour-tip);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 320px;
  box-shadow: var(--shadow-xl);
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  display: flex;
  position: fixed;
}

.tour-tip__kicker {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-brand-700);
}

.tour-tip__title {
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  margin: 0;
}

.tour-tip__body {
  color: var(--fg-body);
  margin: 0;
  font-size: 13.5px;
}

.tour-tip__foot {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  display: flex;
}

.tour-dots {
  gap: 4px;
  display: flex;
}

.tour-dot {
  background: var(--color-neutral-200);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.tour-dot--active {
  background: var(--color-brand-700);
}

.tour-tip__skip {
  color: var(--fg-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 12px;
}

.tour-tip__skip:hover {
  color: var(--fg-body);
  background: var(--color-neutral-100);
}

.gk-compact .gk-card__head {
  min-height: 42px;
  padding: 8px 16px;
}

.gk-compact .gk-card__body {
  padding: 14px 16px;
}

.gk-compact .gk-card__body--flush {
  padding: 0;
}

.gk-compact .gk-table td, .gk-compact .gk-table th {
  padding: 7px 16px;
}

.gk-compact .stat {
  gap: 6px;
  padding: 12px 14px 10px;
}

.gk-compact .stat__value {
  font-size: 22px;
}

.gk-compact .page-body, .gk-compact .stats-grid {
  gap: 12px;
}

.gk-compact .main-content {
  padding: 0 24px 32px;
}

@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gk-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .kg {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .gk-grid-2, .gk-grid-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .gk-sidebar {
    z-index: calc(var(--z-modal) + 2);
    box-shadow: none;
    transform: translateX(-100%);
  }

  .app--nav-open .gk-sidebar, .gk-sidebar.gk-sidebar--open {
    box-shadow: var(--shadow-xl);
    transform: none;
  }

  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0 12px;
    position: static;
  }

  .page-toolbar h1 {
    white-space: normal;
    font-size: 20px;
  }

  .page-toolbar__actions {
    justify-content: flex-start;
  }

  .page-toolbar__actions .gk-btn:not(.gk-btn--icon) {
    flex: auto;
  }

  .gk-grid-2, .gk-grid-3, .gk-grid-side, .doc-split, .kg {
    grid-template-columns: 1fr !important;
  }

  .stats-grid, .stats-grid--3, .stats-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat {
    padding: 12px 14px 10px;
  }

  .stat__value {
    font-size: 22px;
  }

  .gk-form-row, .gk-form-row--3 {
    grid-template-columns: 1fr;
  }

  .gk-card__head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .gk-card__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .gk-table-bar .gk-input {
    width: 100%;
  }

  .gk-table {
    min-width: 640px;
  }

  .gk-tabs {
    scrollbar-width: none;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .gk-tabs::-webkit-scrollbar {
    display: none;
  }

  .gk-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .gk-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .gk-modal {
    border-radius: 12px 12px 0 0;
    max-width: 100%;
    max-height: 92vh;
  }

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

  .gk-drawer {
    width: 100%;
  }

  .gk-toasts {
    max-width: none;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .hbar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "l v"
                         "t t";
  }

  .hbar__label {
    grid-area: l;
  }

  .hbar__track {
    grid-area: t;
  }

  .hbar__val {
    grid-area: v;
  }

  .cal-day {
    min-height: 56px;
    padding: 4px;
  }

  .cal-ev {
    display: none;
  }

  .cal-day .cal-count {
    display: inline-flex;
  }

  .wiz {
    grid-template-columns: 1fr;
  }

  .wiz__rail {
    display: none;
  }

  .wiz__main {
    padding: 28px 20px;
  }

  .kg__canvas {
    min-height: 420px;
  }

  .model-body {
    flex-direction: column;
  }

  .floor-rail {
    border-left: 0;
    border-top: 1px solid var(--color-neutral-100);
    flex-flow: wrap;
    gap: 4px;
    width: auto;
    max-height: none;
  }

  .floor-rail__head {
    width: 100%;
  }

  .floor-rail__item {
    width: auto;
  }

  .floor-rail__name {
    display: none;
  }

  .tour-tip {
    width: calc(100vw - 24px);
    left: 12px !important;
  }

  .gk-row-actions {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .stats-grid, .stats-grid--3, .stats-grid--5 {
    grid-template-columns: 1fr 1fr;
  }

  .stat__value {
    font-size: 20px;
  }

  .page-toolbar__actions .gk-seg {
    width: 100%;
    overflow-x: auto;
  }
}

.gk-card__body--flush > .gk-alert {
  margin: 16px 20px;
}

.gk-skip-link {
  z-index: 10000;
  background: var(--color-brand-700);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: 10px 16px;
  text-decoration: none;
  position: absolute;
  top: 0;
  left: -9999px;
}

.gk-skip-link:focus {
  left: 0;
}

@media (forced-colors: active) {
  :focus-visible {
    outline-offset: 2px;
    outline: 2px solid highlight !important;
  }
}

:root {
  --sidebar-width: 220px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
}

html {
  font-family: var(--font-sans);
  color: var(--fg-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-page);
  font-size: 14px;
  line-height: 1.5;
}

.app {
  background-color: var(--bg-page);
  width: 100%;
  min-height: 100vh;
  display: flex;
}

.main-content {
  padding: 0 var(--space-8) var(--space-10);
  background-color: var(--bg-page);
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

.mobile-topbar, .nav-backdrop {
  display: none;
}

@media print {
  .gk-sidebar, .mobile-topbar, .nav-backdrop {
    display: none !important;
  }

  .app, body {
    background: var(--bg-surface);
  }

  .main-content {
    margin-left: 0;
    padding: 0;
    overflow: visible;
  }
}

@media (max-width: 880px) {
  .app {
    flex-direction: column;
  }

  .mobile-topbar {
    z-index: var(--z-sticky);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--color-neutral-200);
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 10px 14px;
    display: flex;
    position: sticky;
    top: 0;
  }

  .mobile-topbar img {
    width: 22px;
    height: 22px;
  }

  .mobile-brand {
    font-weight: var(--weight-bold);
    color: var(--fg-primary);
    flex: 1;
    font-size: 16px;
  }

  .mobile-menu-btn {
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--fg-body);
    background: none;
    border: 0;
    padding: 6px;
    display: flex;
  }

  .nav-backdrop {
    z-index: calc(var(--z-modal) + 1);
    background: #0006;
    display: none;
    position: fixed;
    inset: 0;
  }

  .app--nav-open .nav-backdrop {
    display: block;
  }

  .main-content {
    padding: 0 var(--space-4) var(--space-8);
    margin-left: 0;
  }
}

.session-info {
  color: var(--fg-body);
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: auto;
  display: flex;
  top: 24px;
}

.session-info button {
  align-self: center;
  min-width: 200px;
  margin-top: 8px;
}

.gsi-material-button {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  letter-spacing: .25px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  background-color: #f2f2f2;
  background-image: none;
  border: none;
  border-radius: 4px;
  outline: none;
  width: auto;
  min-width: min-content;
  max-width: 400px;
  height: 40px;
  padding: 0 12px;
  font-family: Roboto, arial, sans-serif;
  font-size: 14px;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  position: relative;
  overflow: hidden;
}

.gsi-material-button .gsi-material-button-icon {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-right: 10px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  flex-flow: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.gsi-material-button .gsi-material-button-contents {
  text-overflow: ellipsis;
  vertical-align: top;
  flex-grow: 0;
  font-family: Roboto, arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
}

.gsi-material-button .gsi-material-button-state {
  opacity: 0;
  transition: opacity .218s;
  position: absolute;
  inset: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
}

.gsi-material-button:disabled .gsi-material-button-state {
  background-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents, .gsi-material-button:disabled .gsi-material-button-icon {
  opacity: .38;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, .gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  opacity: .12;
  background-color: #001d35;
}

.gsi-material-button:not(:disabled):hover {
  box-shadow: 0 1px 2px #3c40434d, 0 1px 3px 1px #3c404326;
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  opacity: .08;
  background-color: #001d35;
}

.org-switcher-wrap {
  position: relative;
}

.org-switch {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-neutral-200);
  background: var(--bg-surface);
  width: calc(100% - 16px);
  font-family: inherit;
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--fg-body);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--motion-default) var(--ease-standard);
  align-items: center;
  gap: 8px;
  margin: 0 8px 6px;
  padding: 8px 10px;
  display: flex;
}

.org-switch:hover {
  border-color: var(--color-neutral-300);
}

.org-switch:disabled {
  cursor: wait;
  opacity: .7;
}

.org-switch__name {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.org-switcher-menu {
  min-width: 0;
  top: calc(100% + 2px);
  left: 8px;
  right: 8px;
}

.org-switcher-menu__name {
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.org-switcher-error {
  font-size: var(--text-xs);
  color: var(--color-error-fg);
  margin: 0 8px 6px;
}

.home-page {
  max-width: 1280px;
}

.home-setup-banner {
  margin-bottom: var(--space-4);
}

.portfolio-map__canvas {
  border-radius: var(--radius-lg);
  width: 100%;
  overflow: hidden;
}

.portfolio-map__state {
  border-radius: var(--radius-lg);
}

.doc-pick {
  grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr);
  align-items: start;
}

.doc-pick .gk-drop {
  min-height: 220px;
}

.doc-drop__browse {
  pointer-events: none;
  margin-top: 6px;
}

.doc-anchor-field {
  margin-bottom: var(--space-4);
  max-width: 420px;
}

.doc-batch {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

.doc-rail {
  gap: 6px;
}

.doc-rail__file {
  text-align: left;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.doc-rail__body {
  flex: 1;
  min-width: 0;
}

.doc-rail__file .gk-radio-card__title {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.doc-rail__add {
  align-self: flex-start;
}

.doc-panes {
  min-width: 0;
}

.doc-batch-item {
  gap: var(--space-3);
  flex-direction: column;
  display: flex;
}

.doc-batch-item__head {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  display: flex;
}

.doc-batch-item__filename {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--fg-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.doc-batch-item__state {
  min-height: 160px;
}

.doc-review-banner {
  margin-bottom: 0;
}

.doc-fields {
  gap: 4px;
}

.doc-manual-card, .doc-pointer {
  margin: 0;
}

.conf--corrected {
  color: var(--color-neutral-400);
  align-items: center;
  display: inline-flex;
}

.doc-progress {
  width: 240px;
  max-width: 100%;
}

.doc-progress__fill {
  width: 40%;
  animation: 1.4s ease-in-out infinite doc-progress-slide;
}

@keyframes doc-progress-slide {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .doc-progress__fill {
    opacity: .4;
    width: 100%;
    animation: none;
  }
}

@media (max-width: 880px) {
  .doc-pick, .doc-batch {
    grid-template-columns: 1fr;
  }
}

.wiz__brand {
  color: var(--fg-primary);
  align-items: center;
  gap: 10px;
  font-size: 16px;
  display: flex;
}

.wiz__brand img {
  object-fit: contain;
  width: 24px;
  height: 24px;
}

.wiz__skip {
  align-self: flex-start;
  margin-top: auto;
}

.wiz__main h3 {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
}

.wiz__join {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.wiz__join-form {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  display: flex;
}

.wiz__join-form .gk-field {
  flex: 220px;
}

.wiz__or {
  color: var(--color-neutral-400);
  text-transform: uppercase;
  letter-spacing: .04em;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  display: flex;
}

.wiz__or:before, .wiz__or:after {
  content: "";
  background: var(--color-neutral-200);
  flex: 1;
  height: 1px;
}

