/*! tailwindcss v4.2.2 | 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-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --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-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-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-duration: initial;
      --tw-ease: initial;
      --tw-content: "";
      --tw-gradient-position: initial;
      --tw-gradient-from: #0000;
      --tw-gradient-via: #0000;
      --tw-gradient-to: #0000;
      --tw-gradient-stops: initial;
      --tw-gradient-via-stops: initial;
      --tw-gradient-from-position: 0%;
      --tw-gradient-via-position: 50%;
      --tw-gradient-to-position: 100%;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-red-400: oklch(70.4% .191 22.216);
    --color-black: #000;
    --color-white: #fff;
    --spacing: .25rem;
    --container-md: 28rem;
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --tracking-tight: -.025em;
    --leading-normal: 1.5;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --radius-xl: .75rem;
    --radius-2xl: 1rem;
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --animate-spin: spin 1s linear infinite;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-foreground: var(--color-foreground);
    --color-background: var(--color-background);
    --color-primary: var(--color-primary);
    --color-primary-foreground: var(--color-primary-foreground);
    --color-secondary: var(--color-secondary);
    --color-secondary-foreground: var(--color-secondary-foreground);
    --color-muted: var(--color-muted);
    --color-muted-foreground: var(--color-muted-foreground);
    --color-accent: var(--color-accent);
    --color-accent-foreground: var(--color-accent-foreground);
    --color-border: var(--color-border);
    --color-input: var(--color-input);
    --color-ring: var(--color-ring);
    --color-surface: var(--color-surface);
    --color-surface-elevated: var(--color-surface-elevated);
    --color-surface-hover: var(--color-surface-hover);
    --color-success: var(--color-success);
    --color-error: var(--color-error);
    --color-warning: var(--color-warning);
    --color-info: var(--color-info);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .pointer-events-none {
    pointer-events: none;
  }

  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .inset-0 {
    inset: calc(var(--spacing) * 0);
  }

  .start {
    inset-inline-start: var(--spacing);
  }

  .top-0 {
    top: calc(var(--spacing) * 0);
  }

  .top-1\/2 {
    top: 50%;
  }

  .top-4 {
    top: calc(var(--spacing) * 4);
  }

  .right-0 {
    right: calc(var(--spacing) * 0);
  }

  .right-3 {
    right: calc(var(--spacing) * 3);
  }

  .left-0 {
    left: calc(var(--spacing) * 0);
  }

  .left-4 {
    left: calc(var(--spacing) * 4);
  }

  .z-10 {
    z-index: 10;
  }

  .z-20 {
    z-index: 20;
  }

  .z-40 {
    z-index: 40;
  }

  .z-50 {
    z-index: 50;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .mx-auto {
    margin-inline: auto;
  }

  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }

  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }

  .mr-2 {
    margin-right: calc(var(--spacing) * 2);
  }

  .mr-4 {
    margin-right: calc(var(--spacing) * 4);
  }

  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }

  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }

  .-ml-1 {
    margin-left: calc(var(--spacing) * -1);
  }

  .ml-4 {
    margin-left: calc(var(--spacing) * 4);
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .hidden {
    display: none;
  }

  .inline-flex {
    display: inline-flex;
  }

  .size-5 {
    width: calc(var(--spacing) * 5);
    height: calc(var(--spacing) * 5);
  }

  .size-7 {
    width: calc(var(--spacing) * 7);
    height: calc(var(--spacing) * 7);
  }

  .size-8 {
    width: calc(var(--spacing) * 8);
    height: calc(var(--spacing) * 8);
  }

  .h-4 {
    height: calc(var(--spacing) * 4);
  }

  .h-5 {
    height: calc(var(--spacing) * 5);
  }

  .h-7 {
    height: calc(var(--spacing) * 7);
  }

  .h-8 {
    height: calc(var(--spacing) * 8);
  }

  .h-10 {
    height: calc(var(--spacing) * 10);
  }

  .h-11 {
    height: calc(var(--spacing) * 11);
  }

  .h-full {
    height: 100%;
  }

  .h-screen {
    height: 100vh;
  }

  .max-h-\[80vh\] {
    max-height: 80vh;
  }

  .max-h-\[90vh\] {
    max-height: 90vh;
  }

  .max-h-\[400px\] {
    max-height: 400px;
  }

  .min-h-0 {
    min-height: calc(var(--spacing) * 0);
  }

  .min-h-full {
    min-height: 100%;
  }

  .min-h-screen {
    min-height: 100vh;
  }

  .w-4 {
    width: calc(var(--spacing) * 4);
  }

  .w-5 {
    width: calc(var(--spacing) * 5);
  }

  .w-7 {
    width: calc(var(--spacing) * 7);
  }

  .w-10 {
    width: calc(var(--spacing) * 10);
  }

  .w-\[180px\] {
    width: 180px;
  }

  .w-\[220px\] {
    width: 220px;
  }

  .w-fit {
    width: fit-content;
  }

  .w-full {
    width: 100%;
  }

  .max-w-\[560px\] {
    max-width: 560px;
  }

  .max-w-\[600px\] {
    max-width: 600px;
  }

  .max-w-\[712px\] {
    max-width: 712px;
  }

  .max-w-\[958px\] {
    max-width: 958px;
  }

  .max-w-md {
    max-width: var(--container-md);
  }

  .min-w-0 {
    min-width: calc(var(--spacing) * 0);
  }

  .flex-1 {
    flex: 1;
  }

  .flex-shrink-0, .shrink-0 {
    flex-shrink: 0;
  }

  .border-collapse {
    border-collapse: collapse;
  }

  .-translate-y-1\/2 {
    --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }

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

  .animate-spin {
    animation: var(--animate-spin);
  }

  .cursor-pointer {
    cursor: pointer;
  }

  .resize {
    resize: both;
  }

  .appearance-none {
    appearance: none;
  }

  .flex-col {
    flex-direction: column;
  }

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

  .items-center {
    align-items: center;
  }

  .items-start {
    align-items: flex-start;
  }

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

  .justify-center {
    justify-content: center;
  }

  .justify-end {
    justify-content: flex-end;
  }

  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }

  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }

  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }

  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }

  .gap-6 {
    gap: calc(var(--spacing) * 6);
  }

  .self-stretch {
    align-self: stretch;
  }

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

  .overflow-auto {
    overflow: auto;
  }

  .overflow-hidden {
    overflow: hidden;
  }

  .overflow-visible {
    overflow: visible;
  }

  .overflow-x-hidden {
    overflow-x: hidden;
  }

  .overflow-y-auto {
    overflow-y: auto;
  }

  .\!rounded-\[4px\] {
    border-radius: 4px !important;
  }

  .\!rounded-none {
    border-radius: 0 !important;
  }

  .rounded {
    border-radius: .25rem;
  }

  .rounded-2xl {
    border-radius: var(--radius-2xl);
  }

  .rounded-\[8px\] {
    border-radius: 8px;
  }

  .rounded-\[10px\] {
    border-radius: 10px;
  }

  .rounded-\[15px\] {
    border-radius: 15px;
  }

  .rounded-full {
    border-radius: 3.40282e38px;
  }

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

  .rounded-md {
    border-radius: var(--radius-md);
  }

  .rounded-xl {
    border-radius: var(--radius-xl);
  }

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

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

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

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

  .border-border, .border-border\/50 {
    border-color: var(--color-border);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-border\/50 {
      border-color: color-mix(in oklab, var(--color-border) 50%, transparent);
    }
  }

  .border-error\/40 {
    border-color: var(--color-error);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-error\/40 {
      border-color: color-mix(in oklab, var(--color-error) 40%, transparent);
    }
  }

  .border-muted-foreground\/40 {
    border-color: var(--color-muted-foreground);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-muted-foreground\/40 {
      border-color: color-mix(in oklab, var(--color-muted-foreground) 40%, transparent);
    }
  }

  .border-primary\/50 {
    border-color: var(--color-primary);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-primary\/50 {
      border-color: color-mix(in oklab, var(--color-primary) 50%, transparent);
    }
  }

  .border-success\/40 {
    border-color: var(--color-success);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-success\/40 {
      border-color: color-mix(in oklab, var(--color-success) 40%, transparent);
    }
  }

  .border-white {
    border-color: var(--color-white);
  }

  .border-t-transparent {
    border-top-color: #0000;
  }

  .\!bg-white {
    background-color: var(--color-white) !important;
  }

  .bg-\[var\(--color-surface\)\] {
    background-color: var(--color-surface);
  }

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

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

  .bg-black\/50 {
    background-color: #00000080;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-black\/50 {
      background-color: color-mix(in oklab, var(--color-black) 50%, transparent);
    }
  }

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

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

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

  .bg-transparent {
    background-color: #0000;
  }

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

  .object-cover {
    object-fit: cover;
  }

  .p-1 {
    padding: calc(var(--spacing) * 1);
  }

  .p-3 {
    padding: calc(var(--spacing) * 3);
  }

  .p-6 {
    padding: calc(var(--spacing) * 6);
  }

  .p-8 {
    padding: calc(var(--spacing) * 8);
  }

  .px-2\.5 {
    padding-inline: calc(var(--spacing) * 2.5);
  }

  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }

  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }

  .px-5 {
    padding-inline: calc(var(--spacing) * 5);
  }

  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }

  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }

  .py-\[15px\] {
    padding-block: 15px;
  }

  .pt-20 {
    padding-top: calc(var(--spacing) * 20);
  }

  .pb-2 {
    padding-bottom: calc(var(--spacing) * 2);
  }

  .pb-10 {
    padding-bottom: calc(var(--spacing) * 10);
  }

  .text-center {
    text-align: center;
  }

  .text-left {
    text-align: left;
  }

  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }

  .text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--tw-leading, var(--text-3xl--line-height));
  }

  .text-base {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
  }

  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }

  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }

  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }

  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }

  .text-\[11px\] {
    font-size: 11px;
  }

  .leading-4 {
    --tw-leading: calc(var(--spacing) * 4);
    line-height: calc(var(--spacing) * 4);
  }

  .leading-5 {
    --tw-leading: calc(var(--spacing) * 5);
    line-height: calc(var(--spacing) * 5);
  }

  .leading-7 {
    --tw-leading: calc(var(--spacing) * 7);
    line-height: calc(var(--spacing) * 7);
  }

  .leading-normal {
    --tw-leading: var(--leading-normal);
    line-height: var(--leading-normal);
  }

  .font-light {
    --tw-font-weight: var(--font-weight-light);
    font-weight: var(--font-weight-light);
  }

  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }

  .font-normal {
    --tw-font-weight: var(--font-weight-normal);
    font-weight: var(--font-weight-normal);
  }

  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }

  .tracking-tight {
    --tw-tracking: var(--tracking-tight);
    letter-spacing: var(--tracking-tight);
  }

  .whitespace-nowrap {
    white-space: nowrap;
  }

  .\!text-black {
    color: var(--color-black) !important;
  }

  .text-\[var\(--color-muted-foreground\)\] {
    color: var(--color-muted-foreground);
  }

  .text-black {
    color: var(--color-black);
  }

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

  .text-foreground, .text-foreground\/90 {
    color: var(--color-foreground);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .text-foreground\/90 {
      color: color-mix(in oklab, var(--color-foreground) 90%, transparent);
    }
  }

  .text-muted {
    color: var(--color-muted);
  }

  .text-muted-foreground {
    color: var(--color-muted-foreground);
  }

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

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

  .text-red-400 {
    color: var(--color-red-400);
  }

  .text-secondary-foreground {
    color: var(--color-secondary-foreground);
  }

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

  .text-white {
    color: var(--color-white);
  }

  .uppercase {
    text-transform: uppercase;
  }

  .opacity-0 {
    opacity: 0;
  }

  .opacity-25 {
    opacity: .25;
  }

  .opacity-50 {
    opacity: .5;
  }

  .opacity-75 {
    opacity: .75;
  }

  .opacity-100 {
    opacity: 1;
  }

  .shadow-lg {
    --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, #0000001a), 0 4px 6px -4px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-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, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .transition-opacity {
    transition-property: opacity;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .transition-transform {
    transition-property: transform, translate, scale, rotate;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .duration-200 {
    --tw-duration: .2s;
    transition-duration: .2s;
  }

  .duration-300 {
    --tw-duration: .3s;
    transition-duration: .3s;
  }

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

  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }

  .before\:absolute:before {
    content: var(--tw-content);
    position: absolute;
  }

  .before\:inset-0:before {
    content: var(--tw-content);
    inset: calc(var(--spacing) * 0);
  }

  .before\:translate-x-\[-100\%\]:before {
    content: var(--tw-content);
    --tw-translate-x: -100%;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }

  .before\:bg-gradient-to-r:before {
    content: var(--tw-content);
    --tw-gradient-position: to right in oklab;
    background-image: linear-gradient(var(--tw-gradient-stops));
  }

  .before\:from-transparent:before {
    content: var(--tw-content);
    --tw-gradient-from: transparent;
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .before\:via-white\/20:before {
    content: var(--tw-content);
    --tw-gradient-via: #fff3;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .before\:via-white\/20:before {
      --tw-gradient-via: color-mix(in oklab, var(--color-white) 20%, transparent);
    }
  }

  .before\:via-white\/20:before {
    --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-via-stops);
  }

  .before\:to-transparent:before {
    content: var(--tw-content);
    --tw-gradient-to: transparent;
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .before\:transition-transform:before {
    content: var(--tw-content);
    transition-property: transform, translate, scale, rotate;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .before\:duration-700:before {
    content: var(--tw-content);
    --tw-duration: .7s;
    transition-duration: .7s;
  }

  @media (hover: hover) {
    .hover\:scale-\[1\.02\]:hover {
      scale: 1.02;
    }

    .hover\:border-primary:hover, .hover\:border-primary\/30:hover {
      border-color: var(--color-primary);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:border-primary\/30:hover {
        border-color: color-mix(in oklab, var(--color-primary) 30%, transparent);
      }
    }

    .hover\:\!bg-white\/90:hover {
      background-color: #ffffffe6 !important;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:\!bg-white\/90:hover {
        background-color: color-mix(in oklab, var(--color-white) 90%, transparent) !important;
      }
    }

    .hover\:bg-\[var\(--color-surface-hover\)\]:hover {
      background-color: var(--color-surface-hover);
    }

    .hover\:bg-primary\/10:hover {
      background-color: var(--color-primary);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-primary\/10:hover {
        background-color: color-mix(in oklab, var(--color-primary) 10%, transparent);
      }
    }

    .hover\:bg-surface-hover:hover {
      background-color: var(--color-surface-hover);
    }

    .hover\:text-\[var\(--color-error\)\]:hover {
      color: var(--color-error);
    }

    .hover\:text-\[var\(--color-foreground\)\]:hover, .hover\:text-foreground:hover {
      color: var(--color-foreground);
    }

    .hover\:opacity-80:hover {
      opacity: .8;
    }

    .hover\:opacity-90:hover {
      opacity: .9;
    }

    .hover\:shadow-lg:hover {
      --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, #0000001a), 0 4px 6px -4px var(--tw-shadow-color, #0000001a);
      box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }

    .hover\:shadow-sm:hover {
      --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
      box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }

    .hover\:before\:translate-x-\[100\%\]:hover:before {
      content: var(--tw-content);
      --tw-translate-x: 100%;
      translate: var(--tw-translate-x) var(--tw-translate-y);
    }
  }

  .focus\:ring-2:focus {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .focus\:outline-none:focus {
    --tw-outline-style: none;
    outline-style: none;
  }

  .focus-visible\:ring-2:focus-visible {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .focus-visible\:ring-ring:focus-visible {
    --tw-ring-color: var(--color-ring);
  }

  .focus-visible\:ring-offset-2:focus-visible {
    --tw-ring-offset-width: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  }

  .focus-visible\:outline-none:focus-visible {
    --tw-outline-style: none;
    outline-style: none;
  }

  .active\:scale-\[0\.98\]:active {
    scale: .98;
  }

  .disabled\:pointer-events-none:disabled {
    pointer-events: none;
  }

  .disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
  }

  .disabled\:opacity-50:disabled {
    opacity: .5;
  }

  @media (min-width: 40rem) {
    .sm\:top-\[53px\] {
      top: 53px;
    }

    .sm\:left-\[65px\] {
      left: 65px;
    }

    .sm\:px-8 {
      padding-inline: calc(var(--spacing) * 8);
    }
  }

  @media (min-width: 64rem) {
    .lg\:flex {
      display: flex;
    }

    .lg\:flex-row {
      flex-direction: row;
    }

    .lg\:px-\[76px\] {
      padding-inline: 76px;
    }

    .lg\:pt-0 {
      padding-top: calc(var(--spacing) * 0);
    }

    .lg\:pb-0 {
      padding-bottom: calc(var(--spacing) * 0);
    }
  }

  @media (prefers-color-scheme: dark) {
    .dark\:\!border-\[\#4E4E5D\] {
      border-color: #4e4e5d !important;
    }

    .dark\:\!bg-\[\#23232F\] {
      background-color: #23232f !important;
    }

    .dark\:\!bg-white {
      background-color: var(--color-white) !important;
    }

    .dark\:\!text-black {
      color: var(--color-black) !important;
    }
  }
}

:root, [data-theme="light"], [data-theme="ey-light"] {
  --color-background: #f3f3f5;
  --color-foreground: #23232f;
  --color-primary: #ffe600;
  --color-primary-foreground: #1a1a24;
  --color-secondary: #f9f9fa;
  --color-secondary-foreground: #23232f;
  --color-muted: #e6e6e9;
  --color-muted-foreground: #7f7f91;
  --color-accent: #d7d7dc;
  --color-accent-foreground: #23232f;
  --color-border: #d7d7dc;
  --color-input: #c3c3cb;
  --color-ring: #656579;
  --color-surface: #fff;
  --color-surface-elevated: #fff;
  --color-surface-hover: #f9f9fa;
  --color-success: #10b981;
  --color-success-foreground: #fff;
  --color-warning: #f59e0b;
  --color-warning-foreground: #fff;
  --color-error: #ef4444;
  --color-error-foreground: #fff;
  --color-info: #06b6d4;
  --color-info-foreground: #fff;
  --color-sidebar-background: #fff;
  --color-sidebar-background-active: #f3f3f5;
  --color-sidebar-hover: #f9f9fa;
  --color-sidebar-border: #d7d7dc;
  --color-button-primary-bg: #4d4d5c;
  --color-button-primary-text: #fff;
  --color-button-primary-hover: #656579;
  --color-card-background: #fff;
  --color-text-tertiary: #7f7f91;
  --color-text-dimmed: #9897a6;
  --color-danger: #e53e3e;
  --color-status-healthy: var(--color-success, #22c55e);
  --color-tab-background: #f3f3f5;
  --color-header-background: var(--color-background);
  --color-admin-card-tag-count-bg: #e6e6e9;
  --color-admin-card-tag-count-text: #4e4e5d;
}

.dark, [data-theme="dark"], [data-theme="ey-dark"] {
  --color-background: #1a1a24;
  --color-foreground: #f6f6fa;
  --color-primary: #ffe600;
  --color-primary-foreground: #1a1a24;
  --color-secondary: #23232f;
  --color-secondary-foreground: #f6f6fa;
  --color-muted: #2e2e38;
  --color-muted-foreground: #747480;
  --color-accent: #2e2e38;
  --color-accent-foreground: #f6f6fa;
  --color-border: #4a4a56;
  --color-input: #4a4a56;
  --color-ring: #ffe600;
  --color-surface: #2e2e38;
  --color-surface-elevated: #2e2e38;
  --color-surface-hover: #3a3a45;
  --color-success: #10b981;
  --color-success-foreground: #fff;
  --color-warning: #f59e0b;
  --color-warning-foreground: #fff;
  --color-error: #ef4444;
  --color-error-foreground: #fff;
  --color-info: #06b6d4;
  --color-info-foreground: #fff;
  --color-sidebar-background: #23232f;
  --color-sidebar-background-active: #1a1a24;
  --color-sidebar-hover: #2e2e38;
  --color-sidebar-border: #3f3f4c;
  --color-button-primary-bg: #ffe600;
  --color-button-primary-text: #1a1a24;
  --color-button-primary-hover: gold;
  --color-card-background: #2e2e38;
  --color-text-tertiary: #9ca3af;
  --color-text-dimmed: #6b7280;
  --color-danger: #ef4444;
  --color-status-healthy: #22c55e;
  --color-tab-background: #2e2e38;
  --color-header-background: var(--color-background);
  --color-admin-card-tag-count-bg: #3a3a45;
  --color-admin-card-tag-count-text: #d1d1d6;
}

:root[data-theme], [data-theme="light"], [data-theme="dark"], [data-theme="ey-light"], [data-theme="ey-dark"] {
  --flexi-primary: var(--color-primary) !important;
  --flexi-primary-foreground: var(--color-primary-foreground) !important;
  --flexi-primary-hover: var(--color-ring) !important;
  --flexi-secondary: var(--color-secondary) !important;
  --flexi-secondary-foreground: var(--color-secondary-foreground) !important;
  --flexi-secondary-hover: var(--color-surface-hover) !important;
  --flexi-background: var(--color-surface) !important;
  --flexi-foreground: var(--color-foreground) !important;
  --flexi-muted: var(--color-muted) !important;
  --flexi-muted-foreground: var(--color-muted-foreground) !important;
  --flexi-border: var(--color-border) !important;
  --flexi-ring: var(--color-ring) !important;
  --flexi-accent: var(--color-accent) !important;
  --flexi-accent-foreground: var(--color-accent-foreground) !important;
  --flexi-destructive: var(--color-error) !important;
  --flexi-destructive-foreground: var(--color-error-foreground) !important;
  --flexi-success: var(--color-success) !important;
  --flexi-success-foreground: var(--color-success-foreground) !important;
  --flexi-warning: var(--color-warning) !important;
  --flexi-warning-foreground: var(--color-warning-foreground) !important;
  --flexi-info: var(--color-info) !important;
  --flexi-info-foreground: var(--color-info-foreground) !important;
  --flexi-card: var(--color-surface-elevated) !important;
  --flexi-card-foreground: var(--color-foreground) !important;
}

:root {
  --flexi-primary: #3b82f6;
  --flexi-primary-foreground: #fff;
  --flexi-primary-hover: #2563eb;
  --flexi-secondary: #f1f5f9;
  --flexi-secondary-foreground: #1e293b;
  --flexi-secondary-hover: #e2e8f0;
  --flexi-background: #fff;
  --flexi-foreground: #1e293b;
  --flexi-muted: #f1f5f9;
  --flexi-muted-foreground: #64748b;
  --flexi-border: #e2e8f0;
  --flexi-ring: #3b82f6;
  --flexi-accent: #f1f5f9;
  --flexi-accent-foreground: #1e293b;
  --flexi-destructive: #ef4444;
  --flexi-destructive-foreground: #fff;
  --flexi-success: #22c55e;
  --flexi-success-foreground: #fff;
  --flexi-warning: #f59e0b;
  --flexi-warning-foreground: #fff;
  --flexi-info: #3b82f6;
  --flexi-info-foreground: #fff;
  --flexi-card: #fff;
  --flexi-card-foreground: #1e293b;
  --flexi-popover: #fff;
  --flexi-popover-foreground: #1e293b;
  --flexi-radius: .5rem;
  --flexi-radius-sm: .25rem;
  --flexi-radius-lg: .75rem;
  --flexi-radius-full: 9999px;
}

.dark, [data-theme="dark"], [data-theme="ey-dark"] {
  --flexi-primary: #60a5fa;
  --flexi-primary-foreground: #1e293b;
  --flexi-primary-hover: #93c5fd;
  --flexi-secondary: #334155;
  --flexi-secondary-foreground: #f1f5f9;
  --flexi-secondary-hover: #475569;
  --flexi-background: #0f172a;
  --flexi-foreground: #f8fafc;
  --flexi-muted: #1e293b;
  --flexi-muted-foreground: #94a3b8;
  --flexi-border: #334155;
  --flexi-ring: #60a5fa;
  --flexi-accent: #1e293b;
  --flexi-accent-foreground: #f8fafc;
  --flexi-destructive: #f87171;
  --flexi-destructive-foreground: #1e293b;
  --flexi-success: #4ade80;
  --flexi-success-foreground: #1e293b;
  --flexi-warning: #fbbf24;
  --flexi-warning-foreground: #1e293b;
  --flexi-info: #60a5fa;
  --flexi-info-foreground: #1e293b;
  --flexi-card: #1e293b;
  --flexi-card-foreground: #f8fafc;
  --flexi-popover: #1e293b;
  --flexi-popover-foreground: #f8fafc;
}

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

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  transition: background-color .2s, color .2s;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-background);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border: 2px solid var(--color-background);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-muted-foreground);
}

.app-main {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 1.5rem;
  display: flex;
}

.login-page {
  background: #1a1a24;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-page:before {
  content: "";
  background: radial-gradient(at 30%, #65657926, #0000 70%), radial-gradient(at 70% 30%, #1d85831a, #0000 60%);
  position: absolute;
  inset: 0;
}

.login-card {
  z-index: 1;
  background: #23232f;
  border-radius: 16px;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 480px;
  padding: 3rem 3.5rem;
  display: flex;
  position: relative;
  box-shadow: 0 8px 40px #0006;
}

.login-header {
  text-align: center;
}

.login-header h1 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.login-header p {
  color: #7f7f91;
  margin-top: .375rem;
  font-size: .875rem;
}

.login-error {
  color: #ef4444;
  background: #ef44441a;
  border: 1px solid #ef444433;
  border-radius: 8px;
  padding: .625rem .875rem;
  font-size: .8rem;
}

.login-label {
  color: #bfbfc8;
  flex-direction: column;
  gap: .375rem;
  font-size: .8rem;
  font-weight: 500;
  display: flex;
}

.login-input {
  color: #f6f6fa;
  background: #2e2e38;
  border: 1px solid #4a4a56;
  border-radius: 8px;
  width: 100%;
  padding: .625rem .875rem;
  font-size: .875rem;
  transition: border-color .15s;
}

.login-input:focus {
  border-color: #ffe600;
  outline: none;
  box-shadow: 0 0 0 3px #ffe6001a;
}

.login-input::placeholder {
  color: #747480;
}

.login-btn {
  cursor: pointer;
  color: #1a1a24;
  background: #ffe600;
  border: none;
  border-radius: 8px;
  padding: .625rem;
  font-size: .875rem;
  font-weight: 600;
  transition: background .15s;
}

.login-btn:hover:not(:disabled) {
  background: gold;
}

.login-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.form-label {
  color: var(--color-foreground);
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}

.field-label-row {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.secret-status-badge {
  border: 1px solid var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .secret-status-badge {
    border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  }
}

.secret-status-badge {
  color: var(--color-primary);
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.form-input {
  border: 1px solid var(--color-muted-foreground);
  height: 34px;
  padding: 7px 12px;
}

@supports (color: color-mix(in lab, red, red)) {
  .form-input {
    border: 1px solid color-mix(in srgb, var(--color-muted-foreground) 50%, transparent);
  }
}

.form-input {
  background: var(--color-surface);
  color: var(--color-foreground);
  border-radius: 8px;
  width: 100%;
  font-size: 12px;
  font-weight: 300;
  transition: all .15s;
}

.form-input::placeholder {
  color: var(--color-muted-foreground);
}

.form-input:hover {
  border-color: var(--color-muted-foreground);
}

@supports (color: color-mix(in lab, red, red)) {
  .form-input:hover {
    border-color: color-mix(in srgb, var(--color-muted-foreground) 70%, transparent);
  }
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-ring), 0 0 8px var(--color-surface-hover);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .form-input:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-ring) 30%, transparent), 0 0 8px color-mix(in srgb, var(--color-surface-hover) 50%, transparent);
  }
}

.form-input:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  height: auto;
  min-height: 80px;
  padding: 7px 12px;
  font-family: inherit;
}

.form-select {
  border: 1px solid var(--color-muted-foreground);
  height: 34px;
  padding: 7px 12px;
}

@supports (color: color-mix(in lab, red, red)) {
  .form-select {
    border: 1px solid color-mix(in srgb, var(--color-muted-foreground) 50%, transparent);
  }
}

.form-select {
  background: var(--color-surface);
  color: var(--color-foreground);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%237F7F91' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  border-radius: 8px;
  width: 100%;
  padding-right: 32px;
  font-size: 12px;
  font-weight: 300;
  transition: all .15s;
}

.form-select:hover {
  border-color: var(--color-muted-foreground);
}

@supports (color: color-mix(in lab, red, red)) {
  .form-select:hover {
    border-color: color-mix(in srgb, var(--color-muted-foreground) 70%, transparent);
  }
}

.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-ring), 0 0 8px var(--color-surface-hover);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .form-select:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-ring) 30%, transparent), 0 0 8px color-mix(in srgb, var(--color-surface-hover) 50%, transparent);
  }
}

.form-select:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.search-input {
  max-width: 320px;
}

.form-required {
  color: var(--color-error);
}

.form-help {
  color: var(--color-muted-foreground);
  font-size: 11px;
  font-weight: 300;
}

.form-checkbox-row {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.form-actions {
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  display: flex;
}

.test-result {
  font-size: 12px;
  font-weight: 500;
}

.test-ok {
  color: var(--color-success);
}

.test-fail {
  color: var(--color-error);
}

.btn {
  cursor: pointer;
  white-space: nowrap;
  border: none;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  display: inline-flex;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--color-ring);
  outline: none;
}

.btn:active:not(:disabled) {
  transform: scale(.98);
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
}

.btn-primary {
  background: var(--color-button-primary-bg);
  color: var(--color-button-primary-text);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-button-primary-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 12px #00000026;
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-secondary-foreground);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
}

.btn-outline {
  color: var(--color-primary);
  border: 1px solid var(--color-muted-foreground);
  background: none;
}

.btn-outline:hover:not(:disabled) {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
}

.btn-ghost {
  color: var(--color-foreground);
  background: none;
  border: none;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-surface-hover);
}

.btn-icon {
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  padding: .25rem;
  font-size: 1rem;
}

.btn-danger-icon {
  color: var(--color-error);
}

.btn-danger-icon:hover {
  background: #ef44441a;
}

.page {
  width: 100%;
}

.tool-page {
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 3rem);
  display: flex;
  overflow: hidden;
}

.tool-page-header {
  flex-shrink: 0;
}

.tool-page-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.page-header {
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  display: flex;
}

.page-title {
  color: var(--color-foreground);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.page-badge {
  background: var(--color-accent);
  color: var(--color-muted-foreground);
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: 12px;
  font-weight: 500;
}

.badge-muted {
  background: var(--color-muted);
  color: var(--color-muted-foreground);
}

.page-loading {
  color: var(--color-muted-foreground);
  padding: 2rem 0;
}

.page-empty {
  color: var(--color-muted-foreground);
  text-align: center;
  padding: 2rem;
}

.page-placeholder {
  color: var(--color-muted-foreground);
  text-align: center;
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  padding: 3rem;
}

.back-link {
  color: var(--color-primary);
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

@keyframes gradient-shift {
  0% {
    background-position: 0%;
  }

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

.tool-topbar {
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  display: flex;
}

.tool-topbar-name {
  color: var(--color-foreground);
  white-space: nowrap;
  font-size: 20px;
  font-weight: 400;
}

.tool-topbar-sep {
  background: var(--color-border);
  flex-shrink: 0;
  width: 1px;
  height: 22px;
}

.tool-topbar .instance-selector {
  background: none;
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  padding: 0;
}

.tabs {
  border-bottom: 1px solid var(--color-border);
  gap: 0;
  margin-bottom: 1.5rem;
  display: flex;
}

.tab {
  color: var(--color-muted-foreground);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
  padding: .5rem 1rem;
  font-size: 13px;
  font-weight: 400;
  transition: all .15s;
}

.tab:hover {
  color: var(--color-foreground);
}

.tab-active {
  color: var(--color-foreground);
  border-bottom-color: var(--color-primary);
  font-weight: 500;
}

.tab-content {
  min-height: 200px;
}

.mv {
  gap: 1.5rem;
  display: flex;
}

.mv-left {
  flex-direction: column;
  flex: 1;
  gap: 1.5rem;
  display: flex;
}

.mv-right {
  flex-direction: column;
  flex-shrink: 0;
  gap: 1.5rem;
  width: 54%;
  display: flex;
}

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

  .mv-right {
    width: 100%;
  }
}

.mv-meta {
  flex-direction: column;
  gap: 7px;
  display: flex;
}

.mv-meta-row {
  align-items: center;
  gap: 16px;
  display: flex;
}

.mv-version {
  color: var(--color-foreground);
  font-size: 18px;
  font-weight: 300;
}

.mv-category {
  color: var(--color-foreground);
  background: var(--color-surface-elevated);
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 300;
  display: inline-flex;
}

.mv-description {
  color: var(--color-muted-foreground);
  white-space: pre-wrap;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.mv-section {
  flex-direction: column;
  gap: 13px;
  display: flex;
}

.mv-section-title {
  color: var(--color-foreground);
  font-size: 15px;
  font-weight: 300;
}

.mv-caps-grid {
  flex-wrap: wrap;
  gap: 13px;
  display: flex;
}

.mv-cap-card {
  background: var(--color-surface-elevated);
  border-radius: 12px;
  flex: 1;
  align-items: center;
  gap: 11px;
  min-width: 140px;
  padding: 20px 24px;
  display: flex;
}

.mv-cap-icon {
  flex-shrink: 0;
  font-size: 22px;
}

.mv-cap-name {
  color: var(--color-foreground);
  font-size: 13px;
  font-weight: 500;
}

.mv-cap-detail {
  color: var(--color-muted-foreground);
  margin-top: 2px;
  font-size: 12px;
  font-weight: 300;
}

.mv-card {
  background: var(--color-surface-elevated);
  border-radius: 12px;
  flex-direction: column;
  gap: 13px;
  padding: 12px;
  display: flex;
}

.mv-card-title {
  color: var(--color-foreground);
  font-size: 15px;
  font-weight: 300;
}

.mv-accordion {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.mv-accordion-header {
  cursor: pointer;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  transition: background .1s;
  display: flex;
}

.mv-accordion-header:hover {
  background: var(--color-surface-hover);
}

.mv-accordion-info {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  display: flex;
}

.mv-accordion-name {
  color: var(--color-foreground);
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.mv-accordion-desc {
  color: var(--color-muted-foreground);
  white-space: pre-wrap;
  font-size: 12px;
  font-weight: 300;
}

.mv-tag {
  background: var(--color-muted);
  color: var(--color-foreground);
  text-transform: uppercase;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
}

.mv-chevron {
  color: var(--color-muted-foreground);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform .2s;
}

.mv-chevron-open {
  transform: rotate(180deg);
}

.mv-accordion-body {
  border-top: 1px solid var(--color-border);
  padding: 8px 14px 12px;
}

.mv-schema-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  display: grid;
}

@media (max-width: 700px) {
  .mv-schema-grid {
    grid-template-columns: 1fr;
  }
}

.mv-schema-block {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.mv-schema-label {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-muted-foreground);
  font-size: 11px;
  font-weight: 500;
}

.mv-schema-code {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  border-radius: 8px;
  max-height: 300px;
  margin: 0;
  padding: 10px 12px;
  font-family: SF Mono, Fira Code, monospace;
  font-size: 11px;
  overflow: auto;
}

.mv-schema-empty {
  color: var(--color-muted-foreground);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
}

.autogen-form {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.autogen-form-title {
  margin-bottom: .25rem;
  font-size: 1rem;
  font-weight: 600;
}

.runtime-section {
  margin-bottom: 1.5rem;
}

.runtime-section h3 {
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 600;
}

.runtime-buttons {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.tool-runtime-host {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.tool-runtime-host > * {
  flex-direction: column;
  display: flex;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.tool-runtime-host > * > * {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.event-log {
  background: #1a1a24;
  border-radius: 8px;
  max-height: 200px;
  margin-top: 1.5rem;
  padding: .75rem 1rem;
  font-family: SF Mono, Fira Code, monospace;
  font-size: .7rem;
  overflow-y: auto;
}

.event-log-empty {
  color: #747480;
  font-family: inherit;
  font-style: italic;
}

.event-log-entry {
  gap: .75rem;
  padding: .25rem 0;
  display: flex;
}

.event-log-ok {
  color: #10b981;
}

.event-log-error {
  color: #ef4444;
}

.event-log-time {
  color: #747480;
}

.event-log-type {
  color: #06b6d4;
  min-width: 80px;
}

.event-log-msg {
  color: #bfbfc8;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  overflow: hidden;
}

.event-log-duration {
  color: #747480;
}

.data-table {
  border-collapse: collapse;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  width: 100%;
  overflow: hidden;
}

.data-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-muted-foreground);
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  padding: .625rem 1rem;
  font-size: 11px;
  font-weight: 600;
}

.data-table td {
  border-bottom: 1px solid var(--color-border);
  padding: .625rem 1rem;
  font-size: 13px;
}

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

.role-badge {
  border-radius: 999px;
  padding: .15rem .5rem;
  font-size: .7rem;
  font-weight: 600;
}

.role-admin {
  color: var(--color-warning);
  background: #f59e0b26;
}

.role-user {
  color: var(--color-info);
  background: #06b6d426;
}

.flow-list {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.flow-card {
  background: var(--color-surface-elevated);
  color: var(--color-foreground);
  border: none;
  border-radius: 10px;
  flex-direction: column;
  gap: .375rem;
  padding: 18px;
  text-decoration: none;
  transition: all .5s;
  display: flex;
  position: relative;
}

.flow-card:hover {
  transform: translateY(-2px);
}

.flow-card:before {
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-error), var(--color-info), var(--color-primary));
  pointer-events: none;
  -webkit-mask-composite: xor;
  -webkit-mask-composite: xor;
  -webkit-mask-source-type: auto, auto;
  background-size: 200% 100%;
  border-radius: 10px;
  padding: 1px;
  transition: opacity .5s;
  animation: 3s linear infinite gradient-shift;
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  -webkit-mask-position: 0 0, 0 0;
  mask-position: 0 0, 0 0;
  -webkit-mask-size: auto, auto;
  mask-size: auto, auto;
  -webkit-mask-repeat: repeat, repeat;
  mask-repeat: repeat, repeat;
  -webkit-mask-clip: content-box, border-box;
  mask-clip: content-box, border-box;
  -webkit-mask-origin: content-box, border-box;
  mask-origin: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  -webkit-mask-source-type: auto, auto;
  mask-mode: match-source, match-source;
}

.flow-card:hover:before {
  opacity: 1;
}

.flow-card-header {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.flow-card-name {
  font-size: 1rem;
  font-weight: 600;
}

.flow-status-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.flow-card-status {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-muted-foreground);
  font-size: .7rem;
  font-weight: 600;
}

.flow-card-desc {
  color: var(--color-muted-foreground);
  font-size: .8rem;
}

.flow-card-meta {
  color: var(--color-muted-foreground);
  border-top: 1px solid var(--color-border);
  gap: .75rem;
  margin-top: .25rem;
  padding-top: .5rem;
  font-size: .7rem;
  display: flex;
}

.flow-card-deploy-badge {
  color: var(--color-success);
  text-transform: capitalize;
  background: #10b98126;
  border-radius: 999px;
  padding: .1rem .5rem;
  font-weight: 600;
}

.flow-card-date {
  margin-left: auto;
}

.upload-drop-zone {
  border: 2px dashed var(--color-border);
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  padding: 3rem 2rem;
  transition: all .15s;
}

.upload-drop-zone:hover, .upload-drag-over {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
}

.upload-placeholder {
  color: var(--color-muted-foreground);
}

.upload-icon {
  margin-bottom: .5rem;
  font-size: 2rem;
  display: block;
}

.upload-file-info {
  justify-content: center;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.upload-file-icon {
  font-size: 2rem;
}

.upload-file-name {
  font-size: 1rem;
  font-weight: 600;
}

.upload-file-size {
  color: var(--color-muted-foreground);
  font-size: .85rem;
}

.config-tool-selector {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.config-tool-btn {
  border: 1px solid var(--color-border);
  background: var(--color-card-background);
  cursor: pointer;
  color: var(--color-foreground);
  border-radius: 8px;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  transition: all .15s;
  display: flex;
}

.config-tool-btn:hover {
  border-color: var(--color-primary);
}

.config-tool-btn-active {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
}

.config-dot {
  background: var(--color-muted);
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.config-dot-ok {
  background: var(--color-success);
}

.deploy-active-banner {
  background: #10b9811a;
  border: 1px solid #10b9814d;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  font-size: .85rem;
  display: flex;
}

.deploy-webhook-url {
  background: var(--color-muted);
  border-radius: 4px;
  padding: .2rem .5rem;
  font-size: .75rem;
}

.deploy-mode-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
  display: grid;
}

.deploy-mode-card {
  border: 1px solid var(--color-border);
  cursor: pointer;
  color: var(--color-foreground);
  border-radius: 8px;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  transition: all .15s;
  display: flex;
}

.deploy-mode-card:hover {
  border-color: var(--color-primary);
}

.deploy-mode-card-active {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
}

.modal-overlay {
  z-index: 100;
  background: #00000080;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  display: flex;
  box-shadow: 0 8px 40px #0000004d;
}

.modal-title {
  margin-bottom: .25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.text-muted {
  color: var(--color-muted-foreground);
}

.tdk-dropdown {
  display: inline-block;
  position: relative;
}

.tdk-dropdown-trigger {
  border: 1px solid var(--color-muted-foreground);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 34px;
  padding: 7px 12px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .tdk-dropdown-trigger {
    border: 1px solid color-mix(in srgb, var(--color-muted-foreground) 50%, transparent);
  }
}

.tdk-dropdown-trigger {
  background: var(--color-surface-elevated);
  color: var(--color-foreground);
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 300;
  transition: all .15s;
}

.tdk-dropdown-trigger:hover:not(:disabled) {
  background: var(--color-surface-hover);
  border-color: var(--color-muted-foreground);
}

@supports (color: color-mix(in lab, red, red)) {
  .tdk-dropdown-trigger:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--color-muted-foreground) 70%, transparent);
  }
}

.tdk-dropdown-trigger:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-ring);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .tdk-dropdown-trigger:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-ring) 30%, transparent);
  }
}

.tdk-dropdown-disabled {
  opacity: .5;
  cursor: not-allowed;
}

.tdk-dropdown-placeholder {
  color: var(--color-muted-foreground);
}

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

.tdk-dropdown-chevron {
  color: var(--color-muted-foreground);
  flex-shrink: 0;
  transition: transform .2s;
}

.tdk-dropdown-chevron-open {
  transform: rotate(180deg);
}

.tdk-dropdown-menu {
  border: 1px solid var(--color-muted-foreground);
  min-width: 100%;
  max-height: 300px;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  overflow-y: auto;
}

@supports (color: color-mix(in lab, red, red)) {
  .tdk-dropdown-menu {
    border: 1px solid color-mix(in srgb, var(--color-muted-foreground) 50%, transparent);
  }
}

.tdk-dropdown-menu {
  background: var(--color-surface-elevated);
  z-index: 200;
  border-radius: 8px;
  box-shadow: 0 8px 24px #00000040;
}

.tdk-dropdown-item {
  color: var(--color-foreground);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 300;
  transition: background .1s;
  display: flex;
}

.tdk-dropdown-item-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.tdk-dropdown-item-action {
  color: #ef4444;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
}

.tdk-dropdown-item-action:hover {
  background: #ef444424;
}

.tdk-dropdown-item:hover {
  background: var(--color-surface-hover);
}

.tdk-dropdown-item-active {
  color: var(--color-primary);
  background: var(--color-surface-hover);
}

.tdk-dropdown-item-disabled {
  opacity: .5;
  cursor: not-allowed;
}

.tdk-dropdown-empty {
  color: var(--color-muted-foreground);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 300;
}

.instance-selector {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 1.25rem;
  padding: .75rem 1rem;
  display: flex;
}

.instance-selector-row {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.instance-selector-left {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.instance-dropdown {
  min-width: 220px;
  max-width: 320px;
}

.instance-status {
  align-items: center;
  gap: .375rem;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}

.instance-status-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.instance-create-row {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.instance-create-row .form-input {
  max-width: 260px;
}

.instance-dirty-banner {
  color: var(--color-warning);
  background: #f59e0b1a;
  border: 1px solid #f59e0b4d;
  border-radius: 8px;
  align-items: center;
  gap: .5rem;
  padding: .5rem .875rem;
  font-size: 12px;
  display: flex;
}

.instance-disabled-banner {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-muted-foreground);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2rem;
  font-size: 13px;
  display: flex;
}

.log-panel {
  background: #1a1a24;
  border-radius: 8px;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.log-panel-header {
  border-bottom: 1px solid var(--color-border);
  background: #23232f;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: .375rem .75rem;
  display: flex;
}

.log-panel-title {
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  letter-spacing: .04em;
  align-items: center;
  gap: .375rem;
  font-size: 11px;
  font-weight: 600;
  display: flex;
}

.log-panel-dot {
  background: var(--color-muted);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.log-panel-dot-on {
  background: var(--color-success);
}

.log-panel-count {
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  border-radius: 999px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 600;
}

.log-panel-controls {
  align-items: center;
  gap: .25rem;
  display: flex;
}

.log-panel-filter .tdk-dropdown-trigger {
  border-color: var(--color-border);
  background: #2e2e38;
  height: 26px;
  padding: 2px 8px;
  font-size: 11px;
}

.log-panel-filter .tdk-dropdown-menu {
  background: #2e2e38;
  top: auto;
  bottom: calc(100% + 4px);
}

.log-panel-btn {
  color: var(--color-muted-foreground);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  transition: background .1s;
}

.log-panel-btn:hover {
  background: var(--color-surface-hover);
}

.log-panel-body {
  flex: 1;
  min-height: 0;
  padding: .375rem .5rem;
  font-family: SF Mono, Fira Code, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  overflow-y: auto;
}

.log-panel-empty {
  color: #747480;
  text-align: center;
  padding: 1rem;
  font-style: italic;
}

.log-entry {
  white-space: nowrap;
  gap: .5rem;
  padding: 1px 0;
  display: flex;
}

.log-entry-time {
  color: #747480;
  flex-shrink: 0;
}

.log-entry-level {
  flex-shrink: 0;
  min-width: 56px;
  font-weight: 600;
}

.log-entry-logger {
  color: #06b6d4;
  text-overflow: ellipsis;
  flex-shrink: 0;
  min-width: 64px;
  max-width: 100px;
  overflow: hidden;
}

.log-entry-msg {
  color: #bfbfc8;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.log-entry-exception {
  color: #ef4444;
  white-space: pre-wrap;
  word-break: break-word;
  margin: .25rem 0 .25rem 3rem;
  font-size: 10px;
}

.runtime-with-logs {
  --flexi-card: var(--color-surface-elevated);
  --flexi-border: var(--color-border);
  --flexi-accent: var(--color-surface-hover);
  --flexi-primary: var(--color-primary);
  --flexi-background: var(--color-background);
  --flexi-ring: var(--color-ring);
  --flexi-muted-foreground: var(--color-muted-foreground);
  width: 100%;
  height: 100%;
  min-height: 0;
}

.runtime-with-logs > div:nth-child(2) {
  background: var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .runtime-with-logs > div:nth-child(2) {
    background: color-mix(in srgb, var(--color-primary) 24%, var(--color-surface-elevated));
  }
}

.runtime-with-logs > div:nth-child(2) {
  border-top: 1px solid var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .runtime-with-logs > div:nth-child(2) {
    border-top: 1px solid color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
  }
}

.runtime-with-logs > div:nth-child(2) {
  border-bottom: 1px solid var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .runtime-with-logs > div:nth-child(2) {
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
  }
}

.runtime-with-logs > div:nth-child(2) {
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .runtime-with-logs > div:nth-child(2) {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 20%, transparent);
  }
}

.runtime-with-logs > div:nth-child(2):hover {
  background: var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .runtime-with-logs > div:nth-child(2):hover {
    background: color-mix(in srgb, var(--color-primary) 34%, var(--color-surface-hover));
  }
}

.runtime-with-logs > div:nth-child(2):after {
  content: "";
  background: var(--color-primary);
  border-radius: 999px;
  width: 48px;
  height: 2px;
  margin: 2px auto auto;
  display: block;
}

@supports (color: color-mix(in lab, red, red)) {
  .runtime-with-logs > div:nth-child(2):after {
    background: color-mix(in srgb, var(--color-primary) 70%, white);
  }
}

.preview-panel-root {
  background: var(--color-surface);
  font-size: 12px;
}

.preview-session-header {
  background: var(--color-surface-elevated);
  border-bottom: none;
  padding: 10px 10px 8px;
}

.preview-icon-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  width: 24px;
  height: 24px;
  color: var(--color-muted-foreground);
  cursor: pointer;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  transition: all .15s;
  display: inline-flex;
}

.preview-icon-btn:hover {
  color: var(--color-foreground);
  background: var(--color-surface-hover);
  border-color: var(--color-muted-foreground);
}

@supports (color: color-mix(in lab, red, red)) {
  .preview-icon-btn:hover {
    border-color: color-mix(in srgb, var(--color-muted-foreground) 70%, transparent);
  }
}

.preview-icon-btn-danger {
  color: #ef4444;
  border-color: #ef4444;
}

@supports (color: color-mix(in lab, red, red)) {
  .preview-icon-btn-danger {
    border-color: color-mix(in srgb, #ef4444 55%, var(--color-border));
  }
}

.preview-status-pill {
  text-transform: uppercase;
  letter-spacing: .02em;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 500;
}

.preview-tabs-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 8px;
}

.preview-tab-btn {
  color: var(--color-muted-foreground);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 400;
  transition: all .15s;
}

.preview-tab-btn:hover {
  color: var(--color-foreground);
}

.preview-tab-btn-active {
  color: var(--color-foreground);
  border-bottom-color: var(--color-primary);
  background: none;
  font-weight: 500;
}

.preview-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
}

.preview-card-title {
  color: var(--color-foreground);
  font-size: 13px;
  font-weight: 500;
}

.preview-subtitle {
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 11px;
}

.preview-muted-inline {
  color: var(--color-muted-foreground);
  font-size: 11px;
}

.preview-instance-modal .modal-card {
  border-radius: 12px;
  box-shadow: 0 18px 50px #00000059;
}

.build-tool-page {
  gap: 0;
  min-height: calc(100vh - 4rem);
  margin: -2rem;
  display: flex;
}

.build-tool-steps {
  background: var(--color-secondary);
  border-right: 1px solid var(--color-border);
  flex-direction: column;
  flex-shrink: 0;
  width: 260px;
  padding: 2rem 1.25rem;
  display: flex;
}

.build-tool-steps-header {
  margin-bottom: 1.5rem;
}

.build-tool-steps-title {
  color: var(--color-foreground);
  margin-bottom: .25rem;
  font-size: 16px;
  font-weight: 600;
}

.build-tool-steps-sub {
  color: var(--color-muted-foreground);
  font-size: 12px;
  line-height: 1.4;
}

.build-tool-steps-nav {
  flex-direction: column;
  gap: .25rem;
  display: flex;
}

.build-tool-step-btn {
  color: var(--color-muted-foreground);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  align-items: center;
  gap: .75rem;
  padding: .625rem .75rem;
  font-size: 13px;
  font-weight: 400;
  transition: all .15s;
  display: flex;
}

.build-tool-step-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-foreground);
}

.build-tool-step-active {
  background: var(--color-background);
  color: var(--color-foreground);
  font-weight: 500;
  box-shadow: 0 1px 4px #0000001a;
}

.build-tool-step-done {
  color: var(--color-success);
}

.build-tool-step-num {
  background: var(--color-muted);
  width: 24px;
  height: 24px;
  color: var(--color-muted-foreground);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  display: flex;
}

.build-tool-step-active .build-tool-step-num {
  background: var(--color-button-primary-bg);
  color: var(--color-button-primary-text);
}

.build-tool-step-done .build-tool-step-num {
  background: var(--color-success);
  color: #fff;
}

.build-tool-content {
  flex: 1;
  max-width: 800px;
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.build-tool-nav-buttons {
  border-top: 1px solid var(--color-border);
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
}

.build-section-title {
  margin-bottom: .25rem;
  font-size: 20px;
  font-weight: 500;
}

.build-section-desc {
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 13px;
  line-height: 1.5;
}

.build-form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  display: grid;
}

.build-prompt-box {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem;
}

.build-prompt-textarea {
  min-height: 100px;
  font-size: 13px;
  line-height: 1.5;
}

.build-field-row {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  padding: .5rem;
  display: flex;
}

.build-field-check {
  white-space: nowrap;
  align-items: center;
  gap: .25rem;
  display: flex;
}

.build-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .75rem;
  padding: 1rem;
  display: flex;
}

.build-card-header {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.build-schema-row {
  gap: .75rem;
  display: flex;
}

.build-layout-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-top: .5rem;
  display: grid;
}

.build-layout-card {
  border: 1px solid var(--color-border);
  text-align: center;
  cursor: pointer;
  color: var(--color-muted-foreground);
  border-radius: 8px;
  padding: .75rem;
  font-size: 12px;
  transition: all .15s;
}

.build-layout-card:hover {
  border-color: var(--color-primary);
}

.build-layout-card-active {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
  color: var(--color-foreground);
}

.build-review-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  display: grid;
}

.build-review-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem;
}

.build-review-card-title {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-muted-foreground);
  margin-bottom: .375rem;
  font-size: 11px;
  font-weight: 600;
}

.build-review-card-value {
  color: var(--color-foreground);
  font-size: 24px;
  font-weight: 600;
}

.build-review-card-meta {
  color: var(--color-muted-foreground);
  margin-top: .25rem;
  font-size: 12px;
}

.build-manifest-preview {
  background: var(--color-muted);
  max-height: 400px;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  font-family: SF Mono, Fira Code, monospace;
  font-size: 11px;
  overflow: auto;
}

.studio-layout-root {
  background: var(--color-background);
  flex: 1;
  width: calc(100% + 3rem);
  min-height: 0;
  margin: -1.5rem;
  display: flex;
  overflow: hidden;
}

.studio-activity-bar-slot {
  flex-shrink: 0;
  width: 40px;
  height: 100%;
}

.activity-bar {
  background: var(--color-surface-elevated);
  border-right: 1px solid var(--color-border);
  flex-direction: column;
  flex-shrink: 0;
  width: 40px;
  height: 100%;
  display: flex;
}

.activity-bar-icons {
  flex-direction: column;
  flex: 1;
  align-items: center;
  gap: 2px;
  padding-top: 100px;
  display: flex;
}

.activity-bar-bottom {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-bottom: 8px;
  display: flex;
}

.activity-bar-btn {
  width: 32px;
  height: 32px;
  color: var(--color-muted-foreground);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: background .15s, color .15s;
  display: flex;
  position: relative;
}

.activity-bar-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-foreground);
}

.activity-bar-btn-open {
  color: var(--color-foreground);
}

.activity-bar-btn-open:before {
  content: "";
  background: var(--color-primary);
  border-radius: 0 2px 2px 0;
  width: 2px;
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
}

.activity-bar-btn-focused {
  color: var(--color-primary);
  background: var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .activity-bar-btn-focused {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  }
}

.activity-bar-btn-focused:before {
  background: var(--color-primary);
  width: 3px;
  top: 4px;
  bottom: 4px;
}

.studio-workspace {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.studio-panels-row {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.studio-panel {
  flex-direction: column;
  min-width: 120px;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.studio-dynamic-panel {
  flex-direction: column;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.studio-panel-content {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.panel-tab-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  align-items: stretch;
  min-height: 30px;
  display: flex;
  overflow-x: auto;
}

.panel-tab-bar::-webkit-scrollbar {
  height: 2px;
}

.panel-tab-bar::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 1px;
}

.panel-tab {
  height: 30px;
  color: var(--color-muted-foreground);
  cursor: pointer;
  border-right: 1px solid var(--color-border);
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  font-size: 11px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .panel-tab {
    border-right: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
  }
}

.panel-tab {
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
  transition: background .1s, color .1s;
}

.panel-tab:hover {
  background: var(--color-surface-hover);
  color: var(--color-foreground);
}

.panel-tab-active {
  color: var(--color-foreground);
  background: var(--color-background);
  border-bottom: 2px solid var(--color-primary);
  font-weight: 500;
}

.panel-tab-dragging {
  opacity: .4;
}

.panel-tab-icon {
  flex-shrink: 0;
  font-size: 11px;
}

.panel-tab-label {
  text-overflow: ellipsis;
  max-width: 140px;
  overflow: hidden;
}

.panel-tab-dirty {
  background: #f59e0b;
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.panel-tab-close {
  color: var(--color-muted-foreground);
  cursor: pointer;
  opacity: 0;
  background: none;
  border: none;
  border-radius: 3px;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1;
  transition: opacity .1s, background .1s;
}

.panel-tab:hover .panel-tab-close {
  opacity: 1;
}

.panel-tab-close:hover {
  background: var(--color-destructive);
  color: #fff;
}

.panel-tab-ctx-backdrop {
  z-index: 9998;
  position: fixed;
  inset: 0;
}

.panel-tab-ctx-menu {
  z-index: 9999;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  min-width: 140px;
  padding: 4px 0;
  position: fixed;
  box-shadow: 0 4px 16px #0000002e;
}

.panel-tab-ctx-item {
  width: 100%;
  color: var(--color-foreground);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  padding: 5px 12px;
  font-size: 11px;
  transition: background .1s;
  display: block;
}

.panel-tab-ctx-item:hover {
  background: var(--color-surface-hover);
}

.panel-tab-ctx-item-danger:hover {
  color: #ef4444;
  background: #ef44441f;
}

.studio-files-view {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  height: 100%;
  padding: 6px;
  overflow: auto;
}

.studio-files-view::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.studio-files-view::-webkit-scrollbar-track {
  background: none;
}

.studio-files-view::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.studio-files-view::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted-foreground);
}

.studio-files-view::-webkit-scrollbar-corner {
  background: none;
}

.tdk-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.tdk-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.tdk-scrollbar::-webkit-scrollbar-track {
  background: none;
}

.tdk-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.tdk-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted-foreground);
}

.tdk-scrollbar::-webkit-scrollbar-corner {
  background: none;
}

.studio-handle {
  cursor: col-resize;
  background: var(--color-border);
  z-index: 5;
  flex-shrink: 0;
  width: 6px;
  transition: background .15s;
  position: relative;
}

.studio-handle:hover, .studio-handle-active {
  background: var(--color-primary);
}

.studio-files-version-row {
  border-bottom: 1px solid var(--color-border);
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px 2px 6px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .studio-files-version-row {
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 75%, transparent);
  }
}

.studio-files-version-label {
  color: var(--color-muted-foreground);
  white-space: nowrap;
  font-size: 10px;
}

.studio-files-version-badge {
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 600;
}

@supports (color: color-mix(in lab, red, red)) {
  .studio-files-version-badge {
    border: 1px solid color-mix(in srgb, var(--color-primary) 42%, transparent);
  }
}

.studio-files-version-badge {
  background: var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .studio-files-version-badge {
    background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  }
}

.studio-files-version-badge {
  color: var(--color-foreground);
  white-space: nowrap;
}

.studio-diagnostics-tab-body {
  height: 100%;
  padding: 2px;
}

.studio-toolbar {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 10px;
  display: flex;
}

.studio-toolbar-toggle {
  border: 1px solid var(--color-border);
  width: 28px;
  height: 28px;
  color: var(--color-muted-foreground);
  cursor: pointer;
  background: none;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  transition: background .15s;
  display: flex;
}

.studio-toolbar-toggle:hover {
  background: var(--color-surface-hover);
  color: var(--color-foreground);
}

.studio-toolbar-info {
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-right: auto;
  display: flex;
}

.studio-toolbar-name {
  color: var(--color-foreground);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
}

.studio-toolbar-status {
  text-transform: capitalize;
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  border-radius: 10px;
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
}

.studio-toolbar-status-generated {
  color: #3b82f6;
  background: #3b82f626;
}

.studio-toolbar-status-packaged {
  color: #22c55e;
  background: #22c55e26;
}

.studio-toolbar-status-registered {
  color: #a855f7;
  background: #a855f726;
}

.studio-toolbar-status-preview_ready {
  color: #3b82f6;
  background: #3b82f626;
}

.studio-toolbar-unsaved {
  color: #f59e0b;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
}

.studio-toolbar-actions {
  flex-wrap: wrap;
  gap: 4px;
  display: flex;
}

.studio-toolbar-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  height: 28px;
  color: var(--color-foreground);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 400;
  transition: all .15s;
}

.studio-toolbar-btn:hover:not(:disabled) {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
}

.studio-toolbar-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.studio-toolbar-btn-active {
  background: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border-color: var(--color-primary) !important;
}

.studio-action-msg {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  animation: .2s slideDown;
}

.studio-action-msg-success {
  color: #22c55e;
  background: #22c55e1f;
}

.studio-action-msg-error {
  color: #ef4444;
  background: #ef44441f;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.studio-editor-area {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.studio-editor-content {
  flex-direction: column;
  height: 100%;
  min-height: 0;
  display: flex;
}

.studio-editor-body {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.studio-editor-path-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  display: flex;
}

.studio-editor-path {
  color: var(--color-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 400;
  overflow: hidden;
}

.studio-editor-lang {
  color: var(--color-muted-foreground);
  background: var(--color-muted);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
}

.studio-editor-file-actions {
  gap: 4px;
  margin-left: auto;
  display: flex;
}

.studio-editor-loading {
  color: var(--color-muted-foreground);
  padding: 1rem;
  font-size: 12px;
}

.editor-tabs {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  min-height: 32px;
  display: flex;
  overflow-x: auto;
}

.editor-tabs::-webkit-scrollbar {
  height: 2px;
}

.editor-tabs::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 1px;
}

.editor-tab {
  height: 32px;
  color: var(--color-muted-foreground);
  cursor: pointer;
  border-right: 1px solid var(--color-border);
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  font-size: 11px;
  transition: background .1s;
  display: flex;
}

.editor-tab:hover {
  background: var(--color-surface-hover);
}

.editor-tab-active {
  color: var(--color-foreground);
  background: var(--color-background);
  font-weight: 500;
}

.editor-tab-icon {
  flex-shrink: 0;
  font-size: 12px;
}

.editor-tab-label {
  text-overflow: ellipsis;
  max-width: 120px;
  overflow: hidden;
}

.editor-tab-dirty {
  background: #f59e0b;
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.editor-tab-close {
  color: var(--color-muted-foreground);
  cursor: pointer;
  opacity: 0;
  background: none;
  border: none;
  border-radius: 3px;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
  transition: opacity .1s, background .1s;
}

.editor-tab:hover .editor-tab-close {
  opacity: 1;
}

.editor-tab-close:hover {
  background: var(--color-destructive);
  color: #fff;
}

.code-editor {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.filetree {
  padding: 4px 0;
  font-size: 12px;
}

.filetree-controls {
  gap: 6px;
  padding: 0 8px 6px;
  display: flex;
}

.filetree-control-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  height: 24px;
  color: var(--color-muted-foreground);
  cursor: pointer;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 400;
  transition: all .15s;
}

.filetree-control-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-foreground);
  background: var(--color-surface-hover);
}

.filetree-control-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.filetree-empty {
  color: var(--color-muted-foreground);
  text-align: center;
  padding: 16px 12px;
  font-size: 12px;
  font-weight: 300;
}

.filetree-item {
  cursor: pointer;
  color: var(--color-foreground);
  border-radius: 4px;
  align-items: center;
  gap: 5px;
  margin: 1px 4px;
  padding: 3px 8px;
  font-weight: 300;
  transition: background .1s;
  display: flex;
}

.filetree-item:hover {
  background: var(--color-surface-hover);
}

.filetree-item-active {
  background: var(--color-muted);
  color: var(--color-primary);
  font-weight: 400;
}

.filetree-chevron {
  text-align: center;
  width: 12px;
  color: var(--color-muted-foreground);
  flex-shrink: 0;
  font-size: 10px;
}

.filetree-icon {
  flex-shrink: 0;
  font-size: 12px;
}

.filetree-python-icon {
  width: 13px;
  height: 13px;
  display: block;
}

.filetree-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.filetree-dirty {
  background: #f59e0b;
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.filetree-size {
  color: var(--color-muted-foreground);
  flex-shrink: 0;
  margin-left: auto;
  font-size: 10px;
}

.studio-empty-state {
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 24px;
  display: flex;
}

.studio-empty-hint {
  color: var(--color-muted-foreground);
  font-size: 12px;
  font-weight: 300;
}

.studio-loading {
  color: var(--color-muted-foreground);
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: calc(100% + 3rem);
  margin: -1.5rem;
  font-size: 13px;
  display: flex;
}

.studio-loading-spinner {
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: .6s linear infinite spin;
}

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

.studio-error {
  text-align: center;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: calc(100% + 3rem);
  margin: -1.5rem;
  padding: 2rem;
  display: flex;
}

.studio-error-icon {
  color: #ef4444;
  background: #ef44441f;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: 700;
  display: flex;
}

.projects-page {
  width: 100%;
  min-height: 100%;
}

.projects-header {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  display: flex;
}

.projects-title {
  color: var(--color-foreground);
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.projects-subtitle {
  color: var(--color-muted-foreground);
  margin-top: 4px;
  font-size: 12px;
  font-weight: 300;
}

.projects-controls {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  display: flex;
}

.projects-search {
  max-width: 280px;
  height: 32px !important;
  font-size: 12px !important;
}

.projects-sort {
  align-items: center;
  gap: 4px;
  margin-left: auto;
  display: flex;
}

.projects-sort-label {
  color: var(--color-muted-foreground);
  margin-right: 4px;
  font-size: 11px;
}

.projects-sort-btn {
  border: 1px solid var(--color-border);
  height: 26px;
  color: var(--color-muted-foreground);
  cursor: pointer;
  background: none;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 11px;
  transition: all .15s;
}

.projects-sort-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-foreground);
}

.projects-sort-btn-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.projects-loading {
  color: var(--color-muted-foreground);
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 4rem 0;
  font-size: 13px;
  display: flex;
}

.projects-error {
  text-align: center;
  color: var(--color-muted-foreground);
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 3rem;
  display: flex;
}

.projects-error-icon {
  color: #ef4444;
  background: #ef44441f;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
}

.projects-empty {
  text-align: center;
  color: var(--color-muted-foreground);
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  display: flex;
}

.projects-empty-icon {
  margin-bottom: 8px;
  font-size: 40px;
}

.projects-empty h3 {
  color: var(--color-foreground);
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
}

.projects-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
}

.projects-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  display: grid;
}

.projects-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  cursor: pointer;
  border-radius: 10px;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  position: relative;
}

.projects-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px #00000014;
}

.projects-card-deleting {
  opacity: .5;
  pointer-events: none;
}

.projects-card-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.projects-card-name {
  color: var(--color-foreground);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.projects-card-delete {
  border: 1px solid var(--color-border);
  background: var(--color-muted);
  width: 22px;
  height: 22px;
  color: var(--color-muted-foreground);
  cursor: pointer;
  opacity: 0;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 11px;
  transition: opacity .15s, background .15s;
  display: flex;
}

.projects-card:hover .projects-card-delete {
  opacity: 1;
}

.projects-card-delete:hover {
  color: #ef4444;
  background: #ef444426;
  border-color: #ef44444d;
}

.projects-card-menu-btn {
  border: 1px solid var(--color-border);
  background: var(--color-muted);
  width: 22px;
  height: 22px;
  color: var(--color-muted-foreground);
  cursor: pointer;
  opacity: 0;
  z-index: 20;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  transition: opacity .15s, background .15s;
  display: flex;
  position: absolute;
  top: 8px;
  right: 8px;
}

.projects-card:hover .projects-card-menu-btn {
  opacity: 1;
}

.projects-card-menu-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-foreground);
}

.projects-card-menu-backdrop {
  z-index: 10;
  position: fixed;
  inset: 0;
}

.projects-card-menu {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  z-index: 21;
  border-radius: 8px;
  min-width: 130px;
  padding: 4px;
  position: absolute;
  top: 34px;
  right: 8px;
  box-shadow: 0 6px 20px #0003;
}

.projects-card-menu-item {
  width: 100%;
  color: var(--color-foreground);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 12px;
}

.projects-card-menu-item:hover {
  background: var(--color-surface-hover);
}

.projects-card-menu-item-danger {
  color: #ef4444;
}

.projects-card-menu-item-danger:hover {
  background: #ef444424;
}

.projects-card-badges {
  flex-wrap: wrap;
  gap: 5px;
  display: flex;
}

.projects-card-badge {
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 10px;
}

.projects-card-desc {
  color: var(--color-muted-foreground);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
}

.projects-card-meta {
  color: var(--color-muted-foreground);
  border-top: 1px solid var(--color-border);
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  font-size: 10px;
  font-weight: 300;
  display: flex;
}

@media (max-width: 900px) {
  .studio-toolbar-actions {
    gap: 3px;
  }

  .studio-toolbar-btn {
    height: 26px;
    padding: 0 6px;
    font-size: 10px;
  }

  .studio-toolbar-name {
    max-width: 120px;
  }

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

  .projects-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-search {
    max-width: 100%;
  }

  .projects-sort {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .studio-layout-root {
    flex-direction: column;
  }

  .studio-activity-bar-slot {
    display: none;
  }

  .studio-panels-row {
    flex-direction: column;
  }

  .studio-panel {
    max-height: 40vh;
    width: 100% !important;
  }

  .studio-handle {
    cursor: row-resize;
    width: 100%;
    height: 6px;
  }
}

.studio-handle:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: -1px;
}

.filetree-item:focus-visible, .editor-tab:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: -2px;
}

.code-editor-textarea:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-primary);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .code-editor-textarea:focus-visible {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-primary) 30%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-action-msg {
    animation: none;
  }

  .studio-loading-spinner {
    animation: 1.5s linear infinite spin;
  }
}

@media print {
  .studio-layout-root {
    height: auto;
    overflow: visible;
  }

  .studio-handle, .studio-toolbar {
    display: none;
  }
}

.ai-session-area {
  z-index: 12;
  flex-shrink: 0;
  position: relative;
}

.ai-session-bar {
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  gap: 6px;
  padding: 6px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-session-bar {
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 85%, transparent);
  }
}

.ai-session-bar {
  background: var(--color-secondary);
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-session-bar {
    background: color-mix(in srgb, var(--color-secondary) 35%, transparent);
  }
}

.ai-session-bar {
  flex-shrink: 0;
}

.ai-session-bar-title {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-muted-foreground);
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-session-bar-title {
    border: 1px solid color-mix(in srgb, var(--color-muted-foreground) 55%, transparent);
  }
}

.ai-session-bar-title {
  cursor: pointer;
  color: var(--color-foreground);
  border-radius: 8px;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 300;
  transition: background .15s, border-color .15s;
}

.ai-session-bar-title:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-muted-foreground);
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-session-bar-title:hover {
    border-color: color-mix(in srgb, var(--color-muted-foreground) 70%, transparent);
  }
}

.ai-session-bar-title:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 1px;
}

.ai-session-bar-icon {
  color: var(--color-muted-foreground);
  flex-shrink: 0;
  font-size: 11px;
}

.ai-session-bar-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.ai-session-bar-chevron {
  color: var(--color-muted-foreground);
  flex-shrink: 0;
  font-size: 10px;
}

.ai-session-bar-new {
  border: 1px solid var(--color-muted-foreground);
  border-radius: 8px;
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 400;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-session-bar-new {
    border: 1px solid color-mix(in srgb, var(--color-muted-foreground) 55%, transparent);
  }
}

.ai-session-bar-new {
  background: var(--color-surface-elevated);
  color: var(--color-foreground);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.ai-session-bar-new:hover:not(:disabled) {
  background: var(--color-surface-hover);
  border-color: var(--color-muted-foreground);
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-session-bar-new:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--color-muted-foreground) 70%, transparent);
  }
}

.ai-session-bar-new:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 1px;
}

.ai-session-bar-new:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.ai-session-list {
  border: 1px solid var(--color-muted-foreground);
  max-height: 200px;
  position: absolute;
  top: calc(100% + 2px);
  left: 6px;
  right: 6px;
  overflow-y: auto;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-session-list {
    border: 1px solid color-mix(in srgb, var(--color-muted-foreground) 55%, transparent);
  }
}

.ai-session-list {
  background: var(--color-surface-elevated);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  box-shadow: 0 6px 16px var(--color-foreground);
  border-radius: 8px;
  flex-shrink: 0;
  margin: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-session-list {
    box-shadow: 0 6px 16px color-mix(in srgb, var(--color-foreground) 10%, transparent);
  }
}

.ai-session-list {
  z-index: 20;
}

.ai-session-list::-webkit-scrollbar {
  width: 4px;
}

.ai-session-list::-webkit-scrollbar-track {
  background: none;
}

.ai-session-list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.ai-session-list-empty {
  color: var(--color-muted-foreground);
  text-align: center;
  padding: 12px;
  font-size: 11px;
}

.ai-session-list-item {
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  transition: background .15s;
  display: flex;
  position: relative;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-session-list-item {
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
  }
}

.ai-session-list-item:last-child {
  border-bottom: none;
}

.ai-session-list-item:hover, .ai-session-list-item-active {
  background: var(--color-surface-hover);
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-session-list-item-active {
    background: color-mix(in srgb, var(--color-surface-hover) 85%, var(--color-primary) 15%);
  }
}

.ai-session-list-item-title {
  min-width: 0;
  color: var(--color-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: 12px;
  font-weight: 300;
  overflow: hidden;
}

.ai-session-list-item-meta {
  color: var(--color-muted-foreground);
  flex-shrink: 0;
  gap: 6px;
  font-size: 10px;
  display: flex;
}

.ai-session-list-item-status {
  text-transform: capitalize;
  font-weight: 500;
}

.ai-session-list-item-status-active {
  color: var(--color-success);
}

.ai-session-list-item-status-archived {
  color: var(--color-muted-foreground);
}

.ai-session-list-item-delete {
  cursor: pointer;
  color: var(--color-muted-foreground);
  opacity: 0;
  background: none;
  border: none;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 11px;
  transition: all .15s;
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}

.ai-session-list-item:hover .ai-session-list-item-delete {
  opacity: 1;
}

.ai-session-list-item-delete:hover {
  color: #ef4444;
  background: #ef444426;
}

.ai-chat-unified {
  flex-direction: column;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.ai-chat-messages {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  min-height: 0;
  padding: 10px;
  display: flex;
  overflow-y: auto;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 4px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: none;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.ai-chat-msg {
  word-break: break-word;
  border-radius: 8px;
  max-width: 100%;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

.ai-chat-msg-user {
  background: var(--color-primary);
  max-width: 85%;
  color: var(--color-button-primary-text, var(--color-foreground));
  border-radius: 8px 8px 2px;
  align-self: flex-end;
}

.ai-chat-msg-assistant {
  color: var(--color-foreground);
  box-sizing: border-box;
  background: none;
  border: none;
  border-radius: 8px 8px 8px 2px;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  padding: 4px 0;
}

.ai-chat-msg-live {
  background: none;
}

.ai-chat-msg-content {
  white-space: pre-wrap;
}

.ai-chat-msg-content code {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 4px;
  font-family: Fira Code, JetBrains Mono, Consolas, monospace;
  font-size: 11px;
}

.ai-chat-msg-response {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-top: 8px;
  padding: 8px 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-chat-msg-response {
    border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  }
}

.ai-chat-msg-response-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-muted-foreground);
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
}

.agent-pipeline {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.agent-pipeline-live .agent-card:last-child {
  border-color: var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-pipeline-live .agent-card:last-child {
    border-color: color-mix(in srgb, var(--color-primary) 60%, transparent);
  }
}

.agent-card {
  border: 1px solid var(--color-border);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-card {
    border: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
  }
}

.agent-card {
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
  overflow: hidden;
}

.agent-card:hover {
  border-color: var(--color-border);
}

.agent-card-done {
  border-left: 3px solid #22c55e;
}

.agent-card-failed {
  border-left: 3px solid #ef4444;
}

.agent-card-warning {
  border-left: 3px solid #f59e0b;
}

.agent-card-running {
  border-left: 3px solid var(--color-primary);
}

.agent-card-header {
  width: 100%;
  color: var(--color-foreground);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 11.5px;
  transition: background .12s;
  display: flex;
}

.agent-card-header:hover {
  background: var(--color-surface-hover);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-card-header:hover {
    background: color-mix(in srgb, var(--color-surface-hover) 50%, transparent);
  }
}

.agent-card-status-icon {
  text-align: center;
  flex-shrink: 0;
  width: 16px;
  font-size: 11px;
}

.agent-card-status-done {
  color: #22c55e;
}

.agent-card-status-failed {
  color: #ef4444;
}

.agent-card-status-warning {
  color: #f59e0b;
}

.agent-card-status-running {
  color: var(--color-primary);
}

.agent-card-icon {
  flex-shrink: 0;
  font-size: 12px;
}

.agent-card-label {
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}

.agent-card-desc {
  color: var(--color-muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.agent-card-time {
  color: var(--color-muted-foreground);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  font-size: 10px;
}

.agent-card-chevron {
  color: var(--color-muted-foreground);
  text-align: center;
  flex-shrink: 0;
  width: 12px;
  font-size: 10px;
}

.agent-card-body {
  border-top: 1px solid var(--color-border);
  padding: 6px 10px 8px 32px;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-card-body {
    border-top: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
  }
}

.agent-card-body {
  background: var(--color-background);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-card-body {
    background: color-mix(in srgb, var(--color-background) 50%, transparent);
  }
}

.agent-card-body {
  font-size: 11px;
  animation: .15s ease-out agentSlideIn;
}

@keyframes agentSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agent-spinner {
  border: 2px solid var(--color-primary);
  width: 12px;
  height: 12px;
  display: inline-block;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-spinner {
    border: 2px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  }
}

.agent-spinner {
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: .6s linear infinite agentSpin;
}

@keyframes agentSpin {
  to {
    transform: rotate(360deg);
  }
}

.agent-detail-grid {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.agent-detail-row {
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.agent-detail-key {
  min-width: 80px;
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  letter-spacing: .03em;
  flex-shrink: 0;
  font-size: 10.5px;
}

.agent-detail-val {
  color: var(--color-foreground);
  word-break: break-word;
}

.agent-badge {
  background: var(--color-primary);
  border-radius: 4px;
  padding: 1px 6px;
  display: inline-block;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-badge {
    background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  }
}

.agent-badge {
  color: var(--color-primary);
  font-size: 10.5px;
  font-weight: 600;
}

.agent-mono {
  font-family: Fira Code, JetBrains Mono, Consolas, monospace;
  font-size: 10.5px;
}

.agent-detail-list {
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.agent-detail-list li {
  background: var(--color-surface-elevated);
  border-radius: 3px;
  padding: 2px 6px;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-detail-list li {
    background: color-mix(in srgb, var(--color-surface-elevated) 60%, transparent);
  }
}

.agent-detail-list-warn li {
  background: #f59e0b14;
  border-left: 2px solid #f59e0b;
}

.agent-detail-empty {
  color: var(--color-muted-foreground);
  font-style: italic;
}

.agent-plan-detail {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.agent-plan-summary {
  color: var(--color-muted-foreground);
  font-size: 11px;
}

.agent-plan-steps {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.agent-plan-step {
  background: var(--color-surface-elevated);
  border-radius: 4px;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-plan-step {
    background: color-mix(in srgb, var(--color-surface-elevated) 40%, transparent);
  }
}

.agent-plan-step-num {
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-plan-step-num {
    background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  }
}

.agent-plan-step-num {
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 600;
}

.agent-plan-step-kind {
  text-transform: uppercase;
  letter-spacing: .02em;
  border-radius: 3px;
  flex-shrink: 0;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 500;
}

.agent-plan-step-kind-create_file {
  color: #22c55e;
  background: #22c55e26;
}

.agent-plan-step-kind-edit_file {
  color: #3b82f6;
  background: #3b82f626;
}

.agent-plan-step-kind-rewrite_file {
  color: #f59e0b;
  background: #f59e0b26;
}

.agent-plan-step-kind-delete_file {
  color: #ef4444;
  background: #ef444426;
}

.agent-plan-step-files {
  color: var(--color-muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 10.5px;
  overflow: hidden;
}

.agent-detail-diagnostics {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.agent-diag-item {
  border-radius: 3px;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 6px;
  font-size: 10.5px;
  display: flex;
}

.agent-diag-item-fail {
  background: #ef444414;
  border-left: 2px solid #ef4444;
}

.agent-diag-item-pass {
  background: #22c55e14;
  border-left: 2px solid #22c55e;
}

.agent-diag-item-info {
  background: var(--color-surface-elevated);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-diag-item-info {
    background: color-mix(in srgb, var(--color-surface-elevated) 60%, transparent);
  }
}

.agent-diag-item-info {
  border-left: 2px solid var(--color-muted-foreground);
}

.agent-diag-code {
  color: var(--color-muted-foreground);
  flex-shrink: 0;
  min-width: 60px;
  font-family: Fira Code, monospace;
  font-size: 10px;
}

.agent-diag-msg {
  color: var(--color-foreground);
  word-break: break-word;
}

.agent-detail-file-list {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.agent-detail-file-item {
  background: var(--color-surface-elevated);
  border-radius: 3px;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  font-size: 11px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-detail-file-item {
    background: color-mix(in srgb, var(--color-surface-elevated) 40%, transparent);
  }
}

.agent-detail-file-unhealthy {
  background: #ef44440f;
}

.agent-detail-file-icon {
  text-align: center;
  flex-shrink: 0;
  width: 14px;
  font-size: 10px;
}

.agent-detail-file-summary {
  color: var(--color-muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
  margin-left: auto;
  font-size: 10px;
  overflow: hidden;
}

.agent-file-cards {
  border: 1px solid var(--color-border);
  margin-top: 6px;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-file-cards {
    border: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
  }
}

.agent-file-cards {
  border-radius: 6px;
  overflow: hidden;
}

.agent-file-cards-header {
  background: var(--color-surface-elevated);
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-file-cards-header {
    background: color-mix(in srgb, var(--color-surface-elevated) 50%, transparent);
  }
}

.agent-file-cards-header {
  border-bottom: 1px solid var(--color-border);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-file-cards-header {
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
  }
}

.agent-file-cards-header {
  font-size: 11px;
  font-weight: 500;
}

.agent-file-cards-icon {
  font-size: 12px;
}

.agent-file-cards-title {
  color: var(--color-foreground);
}

.agent-file-cards-list {
  flex-direction: column;
  display: flex;
}

.agent-file-card {
  color: var(--color-foreground);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px 8px;
  font-size: 11px;
  transition: background .12s;
  display: flex;
}

.agent-file-card:hover {
  background: var(--color-surface-hover);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-file-card:hover {
    background: color-mix(in srgb, var(--color-surface-hover) 50%, transparent);
  }
}

.agent-file-card + .agent-file-card {
  border-top: 1px solid var(--color-border);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-file-card + .agent-file-card {
    border-top: 1px solid color-mix(in srgb, var(--color-border) 25%, transparent);
  }
}

.agent-file-card-icon {
  flex-shrink: 0;
  font-size: 11px;
}

.agent-file-card-name {
  flex-shrink: 0;
  font-weight: 500;
}

.agent-file-card-path {
  color: var(--color-muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
  overflow: hidden;
}

.agent-file-card-action {
  color: var(--color-primary);
  opacity: 0;
  flex-shrink: 0;
  font-size: 10.5px;
  transition: opacity .12s;
}

.agent-file-card:hover .agent-file-card-action {
  opacity: 1;
}

.agent-pipeline-panel {
  border: 1px solid var(--color-border);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-pipeline-panel {
    border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  }
}

.agent-pipeline-panel {
  background: var(--color-surface-elevated);
  border-radius: 8px;
  overflow: hidden;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-pipeline-panel {
    background: color-mix(in srgb, var(--color-surface-elevated) 30%, transparent);
  }
}

.agent-pipeline-panel {
  box-sizing: border-box;
  width: 100%;
}

.agent-pipeline-header {
  background: var(--color-surface-elevated);
  border: none;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-pipeline-header {
    background: color-mix(in srgb, var(--color-surface-elevated) 60%, transparent);
  }
}

.agent-pipeline-header {
  color: var(--color-foreground);
  cursor: pointer;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  transition: background .12s;
}

.agent-pipeline-header:hover {
  background: var(--color-surface-hover);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-pipeline-header:hover {
    background: color-mix(in srgb, var(--color-surface-hover) 60%, transparent);
  }
}

.agent-pipeline-header-icon {
  color: var(--color-muted-foreground);
  text-align: center;
  flex-shrink: 0;
  width: 12px;
  font-size: 9px;
}

.agent-pipeline-header-title {
  flex-shrink: 0;
}

.agent-pipeline-header-active {
  color: var(--color-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
  font-weight: 400;
  display: flex;
  overflow: hidden;
}

.agent-pipeline-header-stats {
  color: var(--color-muted-foreground);
  font-size: 11px;
  font-weight: 400;
}

.agent-pipeline-header-badge {
  background: var(--color-primary);
  border-radius: 9px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  height: 18px;
  margin-left: auto;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-pipeline-header-badge {
    background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  }
}

.agent-pipeline-header-badge {
  color: var(--color-primary);
  padding: 0 6px;
  font-size: 10px;
  font-weight: 600;
}

.agent-pipeline-body {
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  animation: .15s ease-out agentSlideIn;
  display: flex;
}

.agent-file-panel {
  border: 1px solid var(--color-border);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-file-panel {
    border: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
  }
}

.agent-file-panel {
  box-sizing: border-box;
  border-radius: 8px;
  width: 100%;
  margin-top: 6px;
  overflow: hidden;
}

.agent-file-panel-header {
  background: var(--color-surface-elevated);
  border: none;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-file-panel-header {
    background: color-mix(in srgb, var(--color-surface-elevated) 50%, transparent);
  }
}

.agent-file-panel-header {
  color: var(--color-foreground);
  cursor: pointer;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  transition: background .12s;
}

.agent-file-panel-header:hover {
  background: var(--color-surface-hover);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-file-panel-header:hover {
    background: color-mix(in srgb, var(--color-surface-hover) 50%, transparent);
  }
}

.ai-chat-input-area {
  border-top: 1px solid var(--color-border);
  align-items: flex-end;
  gap: 6px;
  padding: 8px 10px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-chat-input-area {
    border-top: 1px solid color-mix(in srgb, var(--color-border) 85%, transparent);
  }
}

.ai-chat-input-area {
  background: var(--color-secondary);
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-chat-input-area {
    background: color-mix(in srgb, var(--color-secondary) 25%, transparent);
  }
}

.ai-chat-input-area {
  flex-shrink: 0;
}

.ai-chat-input {
  border: 1px solid var(--color-muted-foreground);
  flex: 1;
  min-height: 34px;
  max-height: 120px;
  padding: 7px 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-chat-input {
    border: 1px solid color-mix(in srgb, var(--color-muted-foreground) 50%, transparent);
  }
}

.ai-chat-input {
  background: var(--color-surface-elevated);
  color: var(--color-foreground);
  resize: none;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}

.ai-chat-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-chat-input:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 20%, transparent);
  }
}

.ai-chat-input::placeholder {
  color: var(--color-muted-foreground);
  opacity: .7;
}

.ai-chat-input:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.ai-chat-send {
  border: 1px solid var(--color-muted-foreground);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-chat-send {
    border: 1px solid color-mix(in srgb, var(--color-muted-foreground) 50%, transparent);
  }
}

.ai-chat-send {
  background: var(--color-primary);
  color: var(--color-button-primary-text, #fff);
  cursor: pointer;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  transition: background .15s, border-color .15s, opacity .15s;
}

.ai-chat-send:hover:not(:disabled) {
  background: var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-chat-send:hover:not(:disabled) {
    background: color-mix(in srgb, var(--color-primary) 85%, #000);
  }
}

.ai-chat-send:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.ai-chat-send-icon {
  width: 34px;
  padding: 0;
}

.ai-chat-send-icon svg {
  display: block;
}

.ai-chat-cancel {
  color: #fff;
  background: #ef4444d9;
  border-color: #ef4444;
}

.ai-chat-cancel:hover {
  background: #ef4444;
}

.ai-md-code {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 4px;
  font-family: Fira Code, JetBrains Mono, Consolas, monospace;
  font-size: 11px;
}

.standalone-page {
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  min-height: 100%;
  display: flex;
}

.standalone-page-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.eyebrow {
  color: var(--color-primary);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 700;
}

.page-subtitle {
  color: var(--color-muted-foreground);
  max-width: 60rem;
  margin-top: .35rem;
  font-size: .9rem;
}

.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.empty-state-card, .solution-card, .runtime-config-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 18px 42px #0000002e;
}

.empty-state-card {
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 2rem;
  display: flex;
}

.empty-state-card p {
  color: var(--color-muted-foreground);
}

.solution-library-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  display: grid;
}

.solution-card {
  overflow: hidden;
}

.solution-card-body {
  cursor: pointer;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  display: flex;
}

.solution-card-body:hover {
  background: var(--color-surface-hover);
}

@supports (color: color-mix(in lab, red, red)) {
  .solution-card-body:hover {
    background: color-mix(in srgb, var(--color-surface-hover) 60%, transparent);
  }
}

.solution-card-header {
  justify-content: space-between;
  gap: 1rem;
  display: flex;
}

.solution-card h2, .runtime-config-card h2 {
  color: var(--color-foreground);
  font-size: 1rem;
  font-weight: 700;
}

.solution-card p, .runtime-config-card p {
  color: var(--color-muted-foreground);
  margin-top: .25rem;
  font-size: .8rem;
}

.badge, .instance-count-badge, .flow-pill, .tool-chip {
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  font-size: .75rem;
  line-height: 1;
  display: inline-flex;
}

.badge, .instance-count-badge {
  background: var(--color-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .badge, .instance-count-badge {
    background: color-mix(in srgb, var(--color-primary) 18%, transparent);
  }
}

.badge, .instance-count-badge {
  color: var(--color-primary);
  padding: .45rem .65rem;
}

.solution-flow-list, .solution-tool-list {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.flow-pill, .tool-chip {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  padding: .4rem .6rem;
}

.tool-chip {
  color: var(--color-muted-foreground);
}

.solution-card-actions {
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 1.25rem;
  display: flex;
}

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

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

@supports (color: color-mix(in lab, red, red)) {
  .success-banner {
    background: color-mix(in srgb, var(--color-success) 15%, transparent);
  }
}

.success-banner {
  border: 1px solid var(--color-success);
}

@supports (color: color-mix(in lab, red, red)) {
  .success-banner {
    border: 1px solid color-mix(in srgb, var(--color-success) 35%, transparent);
  }
}

.success-banner {
  color: var(--color-success);
  border-radius: 10px;
  padding: .75rem 1rem;
}

.published-url-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  display: flex;
}

.published-url-label {
  color: var(--color-foreground);
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
}

.published-url-help {
  color: var(--color-muted-foreground);
  margin-top: .25rem;
  font-size: .8rem;
}

.published-url-row {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.flow-selector-row {
  align-items: center;
  gap: .75rem;
  max-width: 32rem;
  display: flex;
}

.flow-selector-row span {
  color: var(--color-muted-foreground);
  font-size: .85rem;
  font-weight: 600;
}

.runtime-config-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1rem;
  display: grid;
}

.runtime-config-card {
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  display: flex;
}

.tool-config-card-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.node-id-list {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: .75rem;
}

.mixed-values-note {
  background: var(--color-warning);
}

@supports (color: color-mix(in lab, red, red)) {
  .mixed-values-note {
    background: color-mix(in srgb, var(--color-warning) 12%, transparent);
  }
}

.mixed-values-note {
  border: 1px solid var(--color-warning);
}

@supports (color: color-mix(in lab, red, red)) {
  .mixed-values-note {
    border: 1px solid color-mix(in srgb, var(--color-warning) 30%, transparent);
  }
}

.mixed-values-note {
  color: var(--color-warning);
  border-radius: 10px;
  padding: .65rem .75rem;
}

.config-section {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.config-section h3 {
  color: var(--color-foreground);
  font-size: .85rem;
  font-weight: 700;
}

.config-checkbox-row {
  color: var(--color-foreground);
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  display: flex;
}

.runtime-page {
  background: var(--color-background);
  z-index: 100;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.runtime-library-back-button, .runtime-flow-switcher {
  z-index: 120;
  position: fixed;
}

.runtime-library-back-button {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  border-radius: 999px;
  padding: .65rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  top: 1rem;
  right: 1rem;
}

.runtime-flow-switcher {
  max-width: 18rem;
  top: 1rem;
  left: 1rem;
}

.runtime-auth-banner {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-warning);
  z-index: 121;
  border-radius: 12px;
  align-items: center;
  gap: .75rem;
  max-width: min(32rem, 100vw - 2rem);
  padding: .65rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  position: fixed;
  top: 4.25rem;
  left: 1rem;
}

.runtime-auth-actions {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.tdk-auth-modal-backdrop {
  z-index: 300;
  background: #00000080;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: fixed;
  inset: 0;
}

.tdk-auth-modal {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-secondary-foreground);
  border-radius: .5rem;
  flex-direction: column;
  width: min(540px, 100vw - 2rem);
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
}

[data-theme="dark"] .tdk-auth-modal, [data-theme="ey-dark"] .tdk-auth-modal {
  color: var(--color-foreground);
  background: #23232f;
  border-color: #4e4e5d;
}

.tdk-auth-modal-body {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow-y: auto;
}

.tdk-tool-auth-screen {
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem;
  font-size: 16px;
  display: flex;
}

.tdk-tool-auth-title {
  color: var(--color-foreground);
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.75rem;
}

.tdk-tool-auth-subtitle, .tdk-tool-auth-skip-warning {
  color: var(--color-foreground);
}

@supports (color: color-mix(in lab, red, red)) {
  .tdk-tool-auth-subtitle, .tdk-tool-auth-skip-warning {
    color: color-mix(in srgb, var(--color-foreground) 90%, transparent);
  }
}

.tdk-tool-auth-subtitle, .tdk-tool-auth-skip-warning {
  margin: 0;
  font-size: 11px;
  line-height: normal;
}

.tdk-tool-auth-list {
  background: var(--color-background);
  border-radius: 15px;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
  padding: .75rem;
  display: flex;
}

.tdk-tool-auth-row {
  background: var(--color-secondary);
  border: 1px solid var(--color-muted-foreground);
  align-items: center;
}

@supports (color: color-mix(in lab, red, red)) {
  .tdk-tool-auth-row {
    border: 1px solid color-mix(in srgb, var(--color-muted-foreground) 40%, transparent);
  }
}

.tdk-tool-auth-row {
  border-radius: .5rem;
  justify-content: space-between;
  min-height: 88px;
  padding: 15px 20px;
  transition: border-color .15s, background-color .15s;
  display: flex;
}

.tdk-tool-auth-info {
  flex-direction: column;
  gap: .75rem;
  min-width: 0;
  margin-right: 1rem;
  display: flex;
}

.tdk-tool-auth-name {
  color: var(--color-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1rem;
  display: block;
  overflow: hidden;
}

.tdk-tool-auth-meta {
  align-items: center;
  gap: .75rem;
  min-width: 0;
  display: flex;
}

.tdk-tool-auth-badge {
  background: var(--color-surface);
  color: var(--color-foreground);
  letter-spacing: -.025em;
  text-transform: uppercase;
  border-radius: .5rem;
  flex-shrink: 0;
  padding: .375rem .625rem;
  font-size: .75rem;
  line-height: 1rem;
}

.tdk-tool-auth-shared, .tdk-tool-auth-server, .tdk-tool-auth-status {
  color: var(--color-muted-foreground);
  font-size: .75rem;
  line-height: 1rem;
}

.tdk-tool-auth-server {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.tdk-tool-auth-status.text-error, .tdk-tool-auth-row .text-error {
  color: var(--color-error);
}

.tdk-tool-auth-done {
  color: var(--color-success);
  align-items: center;
  gap: .375rem;
  display: flex;
}

.tdk-tool-auth-footer {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.tdk-tool-auth-continue {
  min-width: 7rem;
  color: #1a1a24 !important;
  background: #ffe600 !important;
  border: 0 !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}

.tdk-tool-auth-continue:hover {
  background: gold !important;
}

@media (max-width: 640px) {
  .tdk-auth-modal {
    width: calc(100vw - 1rem);
  }

  .tdk-tool-auth-screen {
    padding: 1rem;
  }

  .tdk-tool-auth-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .tdk-tool-auth-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
}

.tool-auth-screen {
  background: radial-gradient(circle at top left, var(--color-primary), transparent 28rem), var(--color-background);
  align-items: center;
}

@supports (color: color-mix(in lab, red, red)) {
  .tool-auth-screen {
    background: radial-gradient(circle at top left, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 28rem), var(--color-background);
  }
}

.tool-auth-screen {
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  padding: 2rem;
  display: flex;
}

.tool-auth-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  border-radius: 20px;
  flex-direction: column;
  gap: 1rem;
  width: min(42rem, 100%);
  max-width: 42rem;
  padding: 1.5rem;
  display: flex;
  box-shadow: 0 24px 80px #00000059;
}

.tool-auth-eyebrow {
  color: var(--color-primary);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
}

.tool-auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.tool-auth-card p {
  color: var(--color-muted-foreground);
  line-height: 1.5;
}

.tool-auth-list {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.tool-auth-group {
  background: var(--color-background);
}

@supports (color: color-mix(in lab, red, red)) {
  .tool-auth-group {
    background: color-mix(in srgb, var(--color-background) 52%, transparent);
  }
}

.tool-auth-group {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  flex-direction: column;
  gap: .5rem;
  padding: .6rem;
  display: flex;
}

.tool-auth-group-header {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .25rem .25rem .35rem;
  display: flex;
}

.tool-auth-group-header div {
  flex-direction: column;
  gap: .2rem;
  display: flex;
}

.tool-auth-group-header span {
  color: var(--color-muted-foreground);
  font-size: .72rem;
}

.tool-auth-row {
  background: var(--color-background);
  align-items: center;
}

@supports (color: color-mix(in lab, red, red)) {
  .tool-auth-row {
    background: color-mix(in srgb, var(--color-background) 72%, transparent);
  }
}

.tool-auth-row {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem;
  display: flex;
}

.tool-auth-row div {
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
  display: flex;
}

.tool-auth-row span, .tool-auth-row small {
  color: var(--color-muted-foreground);
  font-size: .78rem;
}

.runtime-host, .runtime-frame, .runtime-tool-boundary {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.runtime-host-full-page {
  height: 100vh;
}

.runtime-frame {
  background: var(--color-background);
  overflow: hidden;
}

.tool-isolation-boundary {
  color: var(--flexi-foreground);
  color-scheme: dark;
  isolation: isolate;
}

.status-text, .muted-text {
  color: var(--color-muted-foreground);
}

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

.event-log {
  margin-top: 1rem;
}

.json-block {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  border-radius: 10px;
  max-height: 18rem;
  margin-top: .5rem;
  padding: 1rem;
  font-size: .75rem;
  overflow: auto;
}

@property --tw-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-translate-z {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@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-leading {
  syntax: "*";
  inherits: false
}

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

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

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

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

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

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

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

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-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-duration {
  syntax: "*";
  inherits: false
}

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

@property --tw-content {
  syntax: "*";
  inherits: false;
  initial-value: "";
}

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

@property --tw-gradient-from {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}

@property --tw-gradient-via {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}

@property --tw-gradient-to {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}

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

@property --tw-gradient-via-stops {
  syntax: "*";
  inherits: false
}

@property --tw-gradient-from-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0%;
}

@property --tw-gradient-via-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 50%;
}

@property --tw-gradient-to-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 100%;
}
/*$vite$:1*/