/* Beacon Design Tokens + Base Reset (from app.css) */
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@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;
    --spacing: 0.25rem;
    --container-md: 28rem;
    --container-2xl: 42rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-4xl: 2.25rem;
    --text-4xl--line-height: calc(2.5 / 2.25);
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --radius-lg: 0.5rem;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-base: #0f111a;
    --color-surface: #141824;
    --color-card: #222834;
    --color-raised: #31374a;
    --color-border: #373e53;
    --color-text-primary: #cbd0dd;
    --color-text-secondary: #9fa6bc;
    --color-text-muted: #606981;
    --color-accent: #85a9ff;
    --color-success: #90d67f;
    --color-warning: #ffcc85;
    --color-danger: #f48270;
    --color-info: #60c6ff;
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    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;
    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 {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.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 {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :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)) {
        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, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-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"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .static {
    position: static;
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }
  .mb-12 {
    margin-bottom: calc(var(--spacing) * 12);
  }
  .flex {
    display: flex;
  }
  .h-20 {
    height: calc(var(--spacing) * 20);
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .w-20 {
    width: calc(var(--spacing) * 20);
  }
  .w-48 {
    width: calc(var(--spacing) * 48);
  }
  .max-w-2xl {
    max-width: var(--container-2xl);
  }
  .max-w-md {
    max-width: var(--container-md);
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-center {
    align-items: center;
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .space-y-2 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-4 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-border {
    border-color: var(--color-border);
  }
  .bg-accent {
    background-color: var(--color-accent);
  }
  .bg-base {
    background-color: var(--color-base);
  }
  .bg-card {
    background-color: var(--color-card);
  }
  .bg-danger {
    background-color: var(--color-danger);
  }
  .bg-info {
    background-color: var(--color-info);
  }
  .bg-raised {
    background-color: var(--color-raised);
  }
  .bg-success {
    background-color: var(--color-success);
  }
  .bg-surface {
    background-color: var(--color-surface);
  }
  .bg-warning {
    background-color: var(--color-warning);
  }
  .p-4 {
    padding: calc(var(--spacing) * 4);
  }
  .p-8 {
    padding: calc(var(--spacing) * 8);
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-4xl {
    font-size: var(--text-4xl);
    line-height: var(--tw-leading, var(--text-4xl--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-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .text-danger {
    color: var(--color-danger);
  }
  .text-text-muted {
    color: var(--color-text-muted);
  }
  .text-text-primary {
    color: var(--color-text-primary);
  }
  .text-text-secondary {
    color: var(--color-text-secondary);
  }
  .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));
  }

  /* ── Extended utilities (self-contained, no Tailwind needed) ── */

  /* Display */
  .hidden { display: none; }
  .block { display: block; }
  .inline-block { display: inline-block; }
  .inline-flex { display: inline-flex; align-items: center; }
  .grid { display: grid; }

  /* Flexbox alignment */
  .justify-center { justify-content: center; }
  .justify-between { justify-content: space-between; }
  .justify-end { justify-content: flex-end; }
  .items-start { align-items: flex-start; }
  .items-end { align-items: flex-end; }
  .self-center { align-self: center; }
  .flex-1 { flex: 1 1 0%; }
  .flex-shrink-0 { flex-shrink: 0; }

  /* Grid columns */
  .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  /* Responsive grid — md (768px+) */
  @media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  }

  /* Responsive grid — lg (1024px+) */
  @media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  }

  /* Gap */
  .gap-1 { gap: calc(var(--spacing) * 1); }
  .gap-3 { gap: calc(var(--spacing) * 3); }
  .gap-6 { gap: calc(var(--spacing) * 6); }
  .gap-8 { gap: calc(var(--spacing) * 8); }

  /* Padding */
  .p-2 { padding: calc(var(--spacing) * 2); }
  .p-3 { padding: calc(var(--spacing) * 3); }
  .p-6 { padding: calc(var(--spacing) * 6); }
  .px-2 { padding-left: calc(var(--spacing) * 2); padding-right: calc(var(--spacing) * 2); }
  .px-3 { padding-left: calc(var(--spacing) * 3); padding-right: calc(var(--spacing) * 3); }
  .px-4 { padding-left: calc(var(--spacing) * 4); padding-right: calc(var(--spacing) * 4); }
  .px-6 { padding-left: calc(var(--spacing) * 6); padding-right: calc(var(--spacing) * 6); }
  .py-2 { padding-top: calc(var(--spacing) * 2); padding-bottom: calc(var(--spacing) * 2); }
  .py-3 { padding-top: calc(var(--spacing) * 3); padding-bottom: calc(var(--spacing) * 3); }
  .py-4 { padding-top: calc(var(--spacing) * 4); padding-bottom: calc(var(--spacing) * 4); }
  .py-8 { padding-top: calc(var(--spacing) * 8); padding-bottom: calc(var(--spacing) * 8); }

  /* Margin */
  .m-0 { margin: 0; }
  .mb-1 { margin-bottom: calc(var(--spacing) * 1); }
  .mb-8 { margin-bottom: calc(var(--spacing) * 8); }
  .mt-1 { margin-top: calc(var(--spacing) * 1); }
  .mt-4 { margin-top: calc(var(--spacing) * 4); }
  .mt-6 { margin-top: calc(var(--spacing) * 6); }
  .mt-8 { margin-top: calc(var(--spacing) * 8); }
  .mr-2 { margin-right: calc(var(--spacing) * 2); }
  .ml-2 { margin-left: calc(var(--spacing) * 2); }
  .mx-auto { margin-left: auto; margin-right: auto; }

  /* Spacing between children */
  .space-y-3 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-6 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)));
    }
  }

  /* Width / Height */
  .w-full { width: 100%; }
  .w-auto { width: auto; }
  .h-full { height: 100%; }
  .max-w-sm { max-width: 24rem; }
  .max-w-lg { max-width: 32rem; }
  .max-w-xl { max-width: 36rem; }
  .max-w-3xl { max-width: 48rem; }
  .max-w-4xl { max-width: 56rem; }
  .max-w-5xl { max-width: 64rem; }
  .min-w-0 { min-width: 0; }

  /* Typography */
  .text-base { font-size: 1rem; line-height: 1.5; }
  .text-xl { font-size: 1.25rem; line-height: 1.75; }
  .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .text-5xl { font-size: 3rem; line-height: 1; }
  .font-medium { font-weight: 500; }
  .font-normal { font-weight: 400; }
  .text-center { text-align: center; }
  .text-right { text-align: right; }
  .text-left { text-align: left; }
  .uppercase { text-transform: uppercase; }
  .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .whitespace-nowrap { white-space: nowrap; }
  .leading-none { line-height: 1; }
  .leading-relaxed { line-height: 1.625; }

  /* Colors */
  .text-accent { color: var(--color-accent); }
  .text-success { color: var(--color-success); }
  .text-warning { color: var(--color-warning); }
  .text-info { color: var(--color-info); }
  .text-white { color: #fff; }

  /* Border */
  .border-2 { border-width: 2px; border-style: solid; }
  .rounded { border-radius: 0.25rem; }
  .rounded-md { border-radius: 0.375rem; }
  .rounded-xl { border-radius: 0.75rem; }
  .rounded-full { border-radius: 9999px; }

  /* Positioning */
  .relative { position: relative; }
  .absolute { position: absolute; }
  .fixed { position: fixed; }
  .inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
  .top-0 { top: 0; }
  .right-0 { right: 0; }
  .bottom-0 { bottom: 0; }
  .left-0 { left: 0; }
  .z-10 { z-index: 10; }
  .z-50 { z-index: 50; }

  /* Overflow */
  .overflow-hidden { overflow: hidden; }
  .overflow-auto { overflow: auto; }
  .overflow-y-auto { overflow-y: auto; }

  /* Opacity */
  .opacity-0 { opacity: 0; }
  .opacity-50 { opacity: 0.5; }
  .opacity-75 { opacity: 0.75; }
  .opacity-100 { opacity: 1; }

  /* Cursor */
  .cursor-pointer { cursor: pointer; }
  .cursor-not-allowed { cursor: not-allowed; }
  .pointer-events-none { pointer-events: none; }

  /* Misc */
  .select-none { user-select: none; }
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: var(--default-transition-duration);
  }
  .transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: var(--default-transition-duration);
  }

  /* Hover states */
  .hover\:opacity-80:hover { opacity: 0.8; }
  .hover\:text-accent:hover { color: var(--color-accent); }
  .hover\:text-text-primary:hover { color: var(--color-text-primary); }
  .hover\:bg-raised:hover { background-color: var(--color-raised); }
}
:root {
  --color-type-block: 59, 130, 246;
  --color-type-context: 139, 92, 246;
  --color-type-resource: 20, 184, 166;
  --color-type-work: 6, 182, 212;
  --color-action-success: 30, 255, 0;
  --color-action-danger: 220, 53, 69;
  --color-action-info: 56, 189, 248;
  --color-action-accent: 133, 169, 255;
  --gradient-brand: linear-gradient(144deg, #ee1c68 30%, #fbb138 60%);
  --gradient-brand-start: #ee1c68;
  --gradient-brand-end: #fbb138;
}
body {
  background-color: var(--color-base);
  color: var(--color-text-primary);
}
.valid.modified:not([type=checkbox]) {
  outline: 1px solid var(--color-success);
}
.invalid {
  outline: 1px solid var(--color-danger);
}
.validation-message {
  color: var(--color-danger);
  font-size: 0.875rem;
}
.blazor-error-boundary {
  background-color: var(--color-danger);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
}
.blazor-error-boundary::after {
  content: "An error has occurred.";
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  border-radius: 0.25rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn-ghost:hover {
  background-color: var(--color-raised);
}
.btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-gradient {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-brand);
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 0.25rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.btn-gradient:hover::before {
  left: 100%;
}
.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.btn-gradient:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-gradient:disabled {
  background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 50%, #D1D5DB 100%);
  opacity: 0.7;
  cursor: not-allowed;
}
.dialog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: rgb(136, 136, 136);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
}
.dialog-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: rgb(255, 255, 255);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.dialog-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dialog-btn-primary {
  background: rgba(133, 169, 255, 0.15);
  color: rgb(133, 169, 255);
  border-color: rgba(133, 169, 255, 0.4);
}
.dialog-btn-primary:hover:not(:disabled) {
  background: rgba(133, 169, 255, 0.25);
  color: rgb(133, 169, 255);
  border-color: rgb(133, 169, 255);
  box-shadow: 0 0 12px rgba(133, 169, 255, 0.3);
}
.dialog-btn-success {
  background: rgba(38, 166, 154, 0.15);
  color: rgb(38, 166, 154);
  border-color: rgba(38, 166, 154, 0.4);
}
.dialog-btn-success:hover:not(:disabled) {
  background: rgba(38, 166, 154, 0.25);
  color: rgb(38, 166, 154);
  border-color: rgb(38, 166, 154);
  box-shadow: 0 0 12px rgba(38, 166, 154, 0.3);
}
.dialog-btn-danger {
  background: rgba(220, 53, 69, 0.15);
  color: rgb(220, 53, 69);
  border-color: rgba(220, 53, 69, 0.4);
}
.dialog-btn-danger:hover:not(:disabled) {
  background: rgba(220, 53, 69, 0.25);
  color: rgb(220, 53, 69);
  border-color: rgb(220, 53, 69);
  box-shadow: 0 0 12px rgba(220, 53, 69, 0.3);
}
.dialog-btn-warning {
  background: rgba(255, 127, 80, 0.15);
  color: rgb(255, 127, 80);
  border-color: rgba(255, 127, 80, 0.4);
}
.dialog-btn-warning:hover:not(:disabled) {
  background: rgba(255, 127, 80, 0.25);
  color: rgb(255, 127, 80);
  border-color: rgb(255, 127, 80);
  box-shadow: 0 0 12px rgba(255, 127, 80, 0.3);
}
.dialog-btn-special {
  position: relative;
  background: linear-gradient(135deg, rgba(238, 28, 104, 0.25) 0%, rgba(251, 177, 56, 0.1) 100%);
  color: rgb(255, 255, 255);
  border-color: rgb(238, 28, 104);
  box-shadow: 0 0 12px rgba(238, 28, 104, 0.4), inset 0 0 20px rgba(238, 28, 104, 0.1);
}
.dialog-btn-special:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(238, 28, 104, 0.35) 0%, rgba(251, 177, 56, 0.15) 100%);
  border-color: rgb(251, 177, 56);
  box-shadow: 0 0 16px rgba(238, 28, 104, 0.5), 0 0 24px rgba(251, 177, 56, 0.3), inset 0 0 20px rgba(251, 177, 56, 0.1);
  transform: translateY(-1px);
}
.dialog-btn-special:disabled {
  background: rgba(100, 100, 100, 0.15);
  color: rgb(136, 136, 136);
  border-color: rgba(136, 136, 136, 0.4);
  box-shadow: none;
}
.type-btn {
  --btn-rgb: var(--color-action-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(var(--btn-rgb), 0.25);
  background: rgba(var(--btn-rgb), 0.05);
  color: rgba(var(--btn-rgb), 0.7);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  flex: 1;
}
.type-btn:hover {
  border-color: rgb(var(--btn-rgb));
  color: rgb(var(--btn-rgb));
  background: rgba(var(--btn-rgb), 0.15);
  transform: translateY(-1px);
}
.type-btn.active {
  background: linear-gradient(135deg, rgba(var(--btn-rgb), 0.25) 0%, rgba(var(--btn-rgb), 0.1) 100%);
  color: rgb(255, 255, 255);
  border-color: rgb(var(--btn-rgb));
  box-shadow: 0 0 12px rgba(var(--btn-rgb), 0.4), inset 0 0 20px rgba(var(--btn-rgb), 0.1);
}
.type-btn .icon {
  font-size: 14px;
  transition: all 0.15s ease;
}
.type-btn.active .icon {
  text-shadow: 0 0 8px rgba(var(--btn-rgb), 0.6);
}
.type-btn-block {
  --btn-rgb: var(--color-type-block);
}
.type-btn-context {
  --btn-rgb: var(--color-type-context);
}
.type-btn-resource {
  --btn-rgb: var(--color-type-resource);
}
.type-btn-work {
  --btn-rgb: var(--color-type-work);
}
.action-btn {
  --btn-rgb: var(--color-action-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(var(--btn-rgb), 0.4);
  background: rgba(var(--btn-rgb), 0.15);
  color: rgb(var(--btn-rgb));
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
}
.action-btn:hover:not(:disabled) {
  background: rgba(var(--btn-rgb), 0.25);
  border-color: rgb(var(--btn-rgb));
  box-shadow: 0 0 8px rgba(var(--btn-rgb), 0.3);
  transform: translateY(-1px);
}
.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.action-btn-success {
  --btn-rgb: var(--color-action-success);
}
.action-btn-danger {
  --btn-rgb: var(--color-action-danger);
}
.action-btn-info {
  --btn-rgb: var(--color-action-info);
}
.icon-btn {
  --btn-rgb: var(--color-action-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(var(--btn-rgb), 0.3);
  background: rgba(var(--btn-rgb), 0.1);
  color: rgb(var(--btn-rgb));
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 14px;
}
.icon-btn:hover:not(:disabled) {
  background: rgba(var(--btn-rgb), 0.2);
  border-color: rgb(var(--btn-rgb));
  box-shadow: 0 0 8px rgba(var(--btn-rgb), 0.25);
}
.icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.icon-btn-success {
  --btn-rgb: var(--color-action-success);
}
.icon-btn-danger {
  --btn-rgb: var(--color-action-danger);
}
.icon-btn-info {
  --btn-rgb: var(--color-action-info);
}
.input-field {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, outline 0.15s ease;
}
.input-field::placeholder {
  color: var(--color-text-muted);
}
.input-field:focus {
  outline: none;
  border-color: var(--color-accent);
}
.input-field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.select-field {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.select-field:focus {
  outline: none;
  border-color: var(--color-accent);
}
.select-field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.textarea-field {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.15s ease;
}
.textarea-field::placeholder {
  color: var(--color-text-muted);
}
.textarea-field:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}
.form-label-hint {
  color: var(--color-text-muted);
  font-weight: 400;
}
.checkbox-field {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.input-field.valid, .select-field.valid, .textarea-field.valid {
  border-color: var(--color-success);
}
.input-field.invalid, .select-field.invalid, .textarea-field.invalid {
  border-color: var(--color-danger);
}
.validation-message {
  font-size: 0.75rem;
  color: var(--color-danger);
  margin-top: 0.25rem;
}
.vision-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(238, 28, 104, 0.03);
  border: 1px solid rgba(238, 28, 104, 0.3);
  border-radius: 0.25rem;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  resize: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vision-input:focus {
  outline: none;
  border-color: rgba(238, 28, 104, 0.6);
  box-shadow: 0 0 20px rgba(238, 28, 104, 0.15), inset 0 0 30px rgba(238, 28, 104, 0.03);
}
.vision-input::placeholder {
  color: var(--color-text-muted);
}
.card {
  background-color: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}
.card-accent-left {
  border-left: 4px solid var(--color-accent);
}
.card-accent-right {
  border-right: 4px solid var(--color-accent);
}
.card-interactive {
  cursor: pointer;
}
.card-interactive:hover {
  border-color: rgba(133, 169, 255, 0.5);
}
.card-selected {
  ring: 2px solid var(--color-accent);
  ring-offset: 2px;
  ring-offset-color: var(--color-base);
}
.card-pending {
  border-style: dashed;
}
.card-dimmed {
  opacity: 0.35;
}
.card-glow {
  --glow-rgb: var(--color-action-accent);
}
.card-glow:hover {
  box-shadow: 0 0 20px rgba(var(--glow-rgb), 0.15);
}
.card-glow-block {
  --glow-rgb: var(--color-type-block);
}
.card-glow-context {
  --glow-rgb: var(--color-type-context);
}
.card-glow-resource {
  --glow-rgb: var(--color-type-resource);
}
.card-glow-work {
  --glow-rgb: var(--color-type-work);
}
.card-header {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.card-body {
  padding: 1rem;
}
.card-footer {
  padding: 1rem;
  border-top: 1px solid var(--color-border);
}
.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
}
.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.popup {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 80vh;
  background: var(--color-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.popup-sm {
  max-width: 320px;
}
.popup-md {
  max-width: 480px;
}
.popup-lg {
  max-width: 640px;
}
.popup-xl {
  max-width: 800px;
}
.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.popup-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}
.popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}
.popup-close:hover {
  background: rgba(220, 53, 69, 0.15);
  color: rgb(220, 53, 69);
  border-color: rgba(220, 53, 69, 0.5);
}
.popup-body {
  flex: 1;
  overflow: auto;
  padding: 1.25rem;
}
.popup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tree-node {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--color-text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.tree-node:hover {
  background: rgba(var(--color-raised), 0.5);
}
.tree-node-selected {
  background: rgba(133, 169, 255, 0.15);
  color: var(--color-accent);
}
.tree-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  flex-shrink: 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}
.tree-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-badge {
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 0.75rem;
  background: var(--color-raised);
  color: var(--color-text-muted);
  border-radius: 4px;
}
.tree-children {
  margin-left: 1rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(var(--color-border), 0.5);
}
.tree-node-depth-0 {
  font-weight: 500;
}
.tree-node-depth-1 {
  color: var(--color-text-secondary);
}
.tree-node-depth-2 {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}
.grid-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.grid-row:hover {
  background: var(--color-card);
  border-color: var(--color-border);
}
.grid-row-selected {
  background: rgba(133, 169, 255, 0.1);
  border-color: rgba(133, 169, 255, 0.3);
}
.grid-row-pending {
  border-style: dashed;
  border-color: var(--color-border);
}
.grid-row-dimmed {
  opacity: 0.35;
}
.grid-row-accent {
  --row-rgb: var(--color-action-accent);
  border-left: 3px solid rgb(var(--row-rgb));
}
.grid-row-accent:hover {
  box-shadow: inset 4px 0 12px -4px rgba(var(--row-rgb), 0.3);
}
.grid-row-block {
  --row-rgb: var(--color-type-block);
}
.grid-row-context {
  --row-rgb: var(--color-type-context);
}
.grid-row-resource {
  --row-rgb: var(--color-type-resource);
}
.grid-row-work {
  --row-rgb: var(--color-type-work);
}
.grid-cell {
  display: flex;
  align-items: center;
  min-width: 0;
}
.grid-cell-grow {
  flex: 1;
}
.grid-cell-shrink {
  flex-shrink: 0;
}
.grid-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--color-text-primary);
}
.grid-name-pending {
  font-style: italic;
  color: var(--color-text-secondary);
}
.grid-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.link-dot {
  --dot-rgb: 139, 92, 246;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 6px;
  background: rgba(var(--dot-rgb), 0.2);
  border: 1px solid rgba(var(--dot-rgb), 0.4);
  border-radius: 10px;
  color: rgb(var(--dot-rgb));
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.link-dot:hover {
  background: rgba(var(--dot-rgb), 0.3);
  border-color: rgb(var(--dot-rgb));
  box-shadow: 0 0 8px rgba(var(--dot-rgb), 0.4);
}
.link-dot-pending {
  --dot-rgb: 255, 204, 133;
}
.link-dot-pinned {
  box-shadow: 0 0 12px rgba(var(--dot-rgb), 0.6);
  border-color: rgb(var(--dot-rgb));
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px currentColor);
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 16px currentColor);
    opacity: 0.9;
  }
}
@keyframes vision-shimmer {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(238, 28, 104, 0.6)) drop-shadow(0 0 16px rgba(251, 177, 56, 0.3));
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(251, 177, 56, 0.8)) drop-shadow(0 0 24px rgba(238, 28, 104, 0.4));
    opacity: 0.9;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.animate-shimmer {
  animation: shimmer 2s linear infinite;
}
.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}
.animate-glow {
  animation: glow-pulse 2s ease-in-out infinite;
}
.animate-fade-in {
  animation: fade-in 0.2s ease-out;
}
.animate-slide-up {
  animation: slide-up 0.3s ease-out;
}
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(133, 169, 255, 0.3);
  border-top-color: rgb(133, 169, 255);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.spinner-sm {
  width: 0.875rem;
  height: 0.875rem;
  border-width: 2px;
}
.spinner-lg {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 3px;
}
.spinner-success {
  border-color: rgba(var(--color-action-success), 0.3);
  border-top-color: rgb(var(--color-action-success));
}
.spinner-danger {
  border-color: rgba(var(--color-action-danger), 0.3);
  border-top-color: rgb(var(--color-action-danger));
}
.spinner-white {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: white;
}
.vision-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(90deg, var(--gradient-brand-start), var(--gradient-brand-end), var(--gradient-brand-start));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: vision-shimmer 2.5s ease-in-out infinite;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glow-accent {
  box-shadow: 0 0 12px rgba(133, 169, 255, 0.4);
}
.glow-success {
  box-shadow: 0 0 12px rgba(var(--color-action-success), 0.4);
}
.glow-danger {
  box-shadow: 0 0 12px rgba(var(--color-action-danger), 0.4);
}
.glow-brand {
  box-shadow: 0 0 20px rgba(238, 28, 104, 0.4), 0 0 40px rgba(251, 177, 56, 0.2);
}
.text-glow-accent {
  text-shadow: 0 0 8px rgba(133, 169, 255, 0.6);
}
.text-glow-success {
  text-shadow: 0 0 8px rgba(var(--color-action-success), 0.6);
}
.text-glow-danger {
  text-shadow: 0 0 8px rgba(var(--color-action-danger), 0.6);
}
.backdrop-blur {
  backdrop-filter: blur(8px);
}
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient-brand);
  transition: width 0.5s ease-out;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--color-raised);
  color: var(--color-text-secondary);
}
.badge-accent {
  background: rgba(133, 169, 255, 0.2);
  color: rgb(133, 169, 255);
}
.badge-success {
  background: rgba(var(--color-action-success), 0.2);
  color: rgb(var(--color-action-success));
}
.badge-danger {
  background: rgba(var(--color-action-danger), 0.2);
  color: rgb(var(--color-action-danger));
}
.badge-warning {
  background: rgba(255, 204, 133, 0.2);
  color: var(--color-warning);
}
@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-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-space-y-reverse: 0;
      --tw-border-style: solid;
      --tw-font-weight: initial;
    }
  }
}



/* NSi4 Beacon Theme - Combined CSS for Static Export */

/* ========== buttons.css ========== */
/* =============================================================================
   Primary, Secondary, Action, Icon, Ghost, Gradient
   fromScratch Theme
   ============================================================================= */

/* === PRIMARY BUTTONS (Glowing CTA) === */
.btn-primary {
  --btn-rgb: 30, 255, 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  background: linear-gradient(135deg, rgba(var(--btn-rgb), 0.2) 0%, rgba(var(--btn-rgb), 0.08) 100%);
  color: rgb(255, 255, 255);
  border: 1px solid rgb(var(--btn-rgb));
  box-shadow: 0 0 12px rgba(var(--btn-rgb), 0.4), inset 0 0 20px rgba(var(--btn-rgb), 0.1);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(var(--btn-rgb), 0.3) 0%, rgba(var(--btn-rgb), 0.15) 100%);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(var(--btn-rgb), 0.5), inset 0 0 24px rgba(var(--btn-rgb), 0.15);
}
.btn-primary:disabled {
  background: linear-gradient(135deg, rgba(var(--btn-rgb), 0.03) 0%, rgba(var(--btn-rgb), 0.01) 100%);
  color: rgba(var(--btn-rgb), 0.3);
  border-color: rgba(var(--btn-rgb), 0.15);
  box-shadow: none;
  cursor: not-allowed;
}

/* Semantic */
.btn-primary-success { --btn-rgb: 30, 255, 0; }
.btn-primary-danger { --btn-rgb: 220, 53, 69; }
.btn-primary-warning { --btn-rgb: 255, 127, 80; }
.btn-primary-info { --btn-rgb: 6, 182, 212; }
.btn-primary-accent { --btn-rgb: 133, 169, 255; }

/* Extra Colors */
.btn-primary-yellow { --btn-rgb: 255, 204, 0; }
.btn-primary-teal { --btn-rgb: 20, 184, 166; }
.btn-primary-blue { --btn-rgb: 59, 130, 246; }
.btn-primary-purple { --btn-rgb: 139, 92, 246; }

/* === SECONDARY BUTTONS (Dialog style - subtle) === */
.btn-secondary {
  --btn-rgb: 133, 169, 255;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(var(--btn-rgb), 0.4);
  background: rgba(var(--btn-rgb), 0.15);
  color: rgb(var(--btn-rgb));
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(var(--btn-rgb), 0.25);
  border-color: rgb(var(--btn-rgb));
  box-shadow: 0 0 12px rgba(var(--btn-rgb), 0.3);
  transform: translateY(-1px);
}
.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Secondary - Semantic */
.btn-secondary-success { --btn-rgb: 30, 255, 0; }
.btn-secondary-danger { --btn-rgb: 220, 53, 69; }
.btn-secondary-warning { --btn-rgb: 255, 127, 80; }
.btn-secondary-info { --btn-rgb: 6, 182, 212; }
.btn-secondary-accent { --btn-rgb: 133, 169, 255; }

/* Secondary - Extra Colors */
.btn-secondary-yellow { --btn-rgb: 255, 204, 0; }
.btn-secondary-teal { --btn-rgb: 20, 184, 166; }
.btn-secondary-blue { --btn-rgb: 59, 130, 246; }
.btn-secondary-purple { --btn-rgb: 139, 92, 246; }

/* === ACTION BUTTONS (Compact for grids/rows) === */
.action-btn {
  --btn-rgb: 133, 169, 255;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(var(--btn-rgb), 0.4);
  background: rgba(var(--btn-rgb), 0.15);
  color: rgb(var(--btn-rgb));
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
}
.action-btn:hover:not(:disabled) {
  background: rgba(var(--btn-rgb), 0.25);
  border-color: rgb(var(--btn-rgb));
  box-shadow: 0 0 8px rgba(var(--btn-rgb), 0.3);
  transform: translateY(-1px);
}
.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Action - Semantic */
.action-btn-success { --btn-rgb: 30, 255, 0; }
.action-btn-danger { --btn-rgb: 220, 53, 69; }
.action-btn-warning { --btn-rgb: 255, 127, 80; }
.action-btn-info { --btn-rgb: 6, 182, 212; }
.action-btn-accent { --btn-rgb: 133, 169, 255; }

/* Action - Extra Colors */
.action-btn-yellow { --btn-rgb: 255, 204, 0; }
.action-btn-teal { --btn-rgb: 20, 184, 166; }
.action-btn-blue { --btn-rgb: 59, 130, 246; }
.action-btn-purple { --btn-rgb: 139, 92, 246; }

/* === ICON BUTTONS (Square, icon-only) === */
.icon-btn {
  --btn-rgb: 133, 169, 255;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(var(--btn-rgb), 0.3);
  background: rgba(var(--btn-rgb), 0.1);
  color: rgb(var(--btn-rgb));
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 14px;
}
.icon-btn:hover:not(:disabled) {
  background: rgba(var(--btn-rgb), 0.2);
  border-color: rgb(var(--btn-rgb));
  box-shadow: 0 0 8px rgba(var(--btn-rgb), 0.25);
}
.icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Icon - Semantic */
.icon-btn-success { --btn-rgb: 30, 255, 0; }
.icon-btn-danger { --btn-rgb: 220, 53, 69; }
.icon-btn-warning { --btn-rgb: 255, 127, 80; }
.icon-btn-info { --btn-rgb: 6, 182, 212; }
.icon-btn-accent { --btn-rgb: 133, 169, 255; }

/* Icon - Extra Colors */
.icon-btn-yellow { --btn-rgb: 255, 204, 0; }
.icon-btn-teal { --btn-rgb: 20, 184, 166; }
.icon-btn-blue { --btn-rgb: 59, 130, 246; }
.icon-btn-purple { --btn-rgb: 139, 92, 246; }

/* === SPECIAL BUTTONS (Ghost & Gradient) === */

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  border-radius: 0.25rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn-ghost:hover:not(:disabled) {
  background-color: var(--color-raised);
}
.btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ghost Sizes */
.btn-ghost { padding: 6px 16px; font-size: 13px; }
.btn-ghost-lg { padding: 0.75rem 1.5rem; font-size: 14px; }

/* Gradient Button Base */
.btn-gradient {
  --gradient-start: #ee1c68;
  --gradient-mid: #fbb138;
  --gradient-end: #fbb138;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 0.25rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.btn-gradient:hover:not(:disabled)::before {
  left: 100%;
}
.btn-gradient:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-gradient:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-gradient:disabled {
  background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 50%, #D1D5DB 100%);
  opacity: 0.7;
  cursor: not-allowed;
}

/* Gradient Sizes */
.btn-gradient { padding: 6px 16px; font-size: 13px; }
.btn-gradient-lg { padding: 0.75rem 1.5rem; font-size: 14px; }

/* Gradient Color Variants */
.btn-gradient-brand {
  --gradient-start: #ee1c68;
  --gradient-mid: #fbb138;
  --gradient-end: #fbb138;
}
.btn-gradient-secondary {
  --gradient-start: #3B82F6;
  --gradient-mid: #8B5CF6;
  --gradient-end: #EC4899;
}
.btn-gradient-success {
  --gradient-start: #10B981;
  --gradient-mid: #34D399;
  --gradient-end: #059669;
}
.btn-gradient-warning {
  --gradient-start: #F59E0B;
  --gradient-mid: #FBBF24;
  --gradient-end: #F97316;
}
.btn-gradient-info {
  --gradient-start: #0EA5E9;
  --gradient-mid: #38BDF8;
  --gradient-end: #0284C7;
}
.btn-gradient-danger {
  --gradient-start: #DC2626;
  --gradient-mid: #EF4444;
  --gradient-end: #B91C1C;
}



/* ========== inputs.css ========== */
/* =============================================================================
   Text, Select, Textarea, Checkbox, Radio, Featured
   fromScratch Theme
   ============================================================================= */

/* === INPUT SYSTEM === */

/* --- Text Input --- */
.input-text {
  width: 100%;
  padding: 8px 12px;
  background-color: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-text::placeholder {
  color: var(--color-text-muted);
}
.input-text:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(133, 169, 255, 0.15);
}
.input-text:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--color-surface);
}

/* Text Input Sizes */
.input-text-sm {
  padding: 4px 8px;
  font-size: 11px;
}
.input-text-lg {
  padding: 12px 16px;
  font-size: 15px;
}

/* Text Input States */
.input-text-valid {
  border-color: rgb(30, 255, 0);
}
.input-text-valid:focus {
  border-color: rgb(30, 255, 0);
  box-shadow: 0 0 0 3px rgba(30, 255, 0, 0.15);
}
.input-text-invalid {
  border-color: rgb(220, 53, 69);
}
.input-text-invalid:focus {
  border-color: rgb(220, 53, 69);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* --- Select --- */
.input-select {
  width: 100%;
  padding: 8px 12px;
  background-color: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239fa6bc' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.input-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(133, 169, 255, 0.15);
}
.input-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--color-surface);
}

/* Select Sizes */
.input-select-sm {
  padding: 4px 8px;
  padding-right: 28px;
  font-size: 11px;
  background-position: right 8px center;
}
.input-select-lg {
  padding: 12px 16px;
  padding-right: 40px;
  font-size: 15px;
  background-position: right 16px center;
}

/* Select States */
.input-select-valid {
  border-color: rgb(30, 255, 0);
}
.input-select-valid:focus {
  border-color: rgb(30, 255, 0);
  box-shadow: 0 0 0 3px rgba(30, 255, 0, 0.15);
}
.input-select-invalid {
  border-color: rgb(220, 53, 69);
}
.input-select-invalid:focus {
  border-color: rgb(220, 53, 69);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* --- Textarea --- */
.input-textarea {
  width: 100%;
  padding: 10px 12px;
  background-color: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-textarea::placeholder {
  color: var(--color-text-muted);
}
.input-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(133, 169, 255, 0.15);
}
.input-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--color-surface);
}

/* Textarea Sizes */
.input-textarea-sm {
  padding: 6px 8px;
  font-size: 11px;
  min-height: 60px;
}
.input-textarea-lg {
  padding: 14px 16px;
  font-size: 15px;
  min-height: 120px;
}

/* Textarea States */
.input-textarea-valid {
  border-color: rgb(30, 255, 0);
}
.input-textarea-valid:focus {
  border-color: rgb(30, 255, 0);
  box-shadow: 0 0 0 3px rgba(30, 255, 0, 0.15);
}
.input-textarea-invalid {
  border-color: rgb(220, 53, 69);
}
.input-textarea-invalid:focus {
  border-color: rgb(220, 53, 69);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* --- Labels --- */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}
.form-hint {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 12px;
}
.form-error {
  display: block;
  font-size: 12px;
  color: rgb(220, 53, 69);
  margin-top: 4px;
}

/* --- Checkbox --- */
.input-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.input-checkbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.checkbox-label:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Featured Input (Hero/Vision style) --- */
.input-featured {
  width: 100%;
  padding: 16px 20px;
  background: rgba(133, 169, 255, 0.03);
  border: 1px solid rgba(133, 169, 255, 0.3);
  border-radius: 4px;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  resize: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-featured::placeholder {
  color: var(--color-text-muted);
}
.input-featured:focus {
  outline: none;
  border-color: rgba(133, 169, 255, 0.6);
  box-shadow: 0 0 20px rgba(133, 169, 255, 0.15), inset 0 0 30px rgba(133, 169, 255, 0.03);
}

/* Featured Input Color Variants */
.input-featured-brand {
  background: rgba(238, 28, 104, 0.03);
  border-color: rgba(238, 28, 104, 0.3);
}
.input-featured-brand:focus {
  border-color: rgba(238, 28, 104, 0.6);
  box-shadow: 0 0 20px rgba(238, 28, 104, 0.15), inset 0 0 30px rgba(238, 28, 104, 0.03);
}
.input-featured-success {
  background: rgba(30, 255, 0, 0.03);
  border-color: rgba(30, 255, 0, 0.3);
}
.input-featured-success:focus {
  border-color: rgba(30, 255, 0, 0.6);
  box-shadow: 0 0 20px rgba(30, 255, 0, 0.15), inset 0 0 30px rgba(30, 255, 0, 0.03);
}

/* === CHECKBOX - Custom Themed === */
.input-checkbox {
  --check-rgb: 133, 169, 255;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(var(--check-rgb), 0.4);
  border-radius: 3px;
  background: rgba(var(--check-rgb), 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.input-checkbox:hover:not(:disabled) {
  border-color: rgba(var(--check-rgb), 0.6);
  background: rgba(var(--check-rgb), 0.1);
}
.input-checkbox:checked {
  background: linear-gradient(135deg, rgba(var(--check-rgb), 0.3) 0%, rgba(var(--check-rgb), 0.15) 100%);
  border-color: rgb(var(--check-rgb));
  box-shadow: 0 0 8px rgba(var(--check-rgb), 0.4);
}
.input-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid rgb(var(--check-rgb));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.input-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--check-rgb), 0.15);
}
.input-checkbox:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Checkbox Color Variants */
.input-checkbox-success { --check-rgb: 30, 255, 0; }
.input-checkbox-danger { --check-rgb: 220, 53, 69; }
.input-checkbox-warning { --check-rgb: 255, 127, 80; }
.input-checkbox-info { --check-rgb: 6, 182, 212; }
.input-checkbox-accent { --check-rgb: 133, 169, 255; }
.input-checkbox-yellow { --check-rgb: 255, 204, 0; }
.input-checkbox-teal { --check-rgb: 20, 184, 166; }
.input-checkbox-blue { --check-rgb: 59, 130, 246; }
.input-checkbox-purple { --check-rgb: 139, 92, 246; }

/* === RADIO - Custom Themed === */
.input-radio {
  --radio-rgb: 133, 169, 255;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(var(--radio-rgb), 0.4);
  border-radius: 50%;
  background: rgba(var(--radio-rgb), 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.input-radio:hover:not(:disabled) {
  border-color: rgba(var(--radio-rgb), 0.6);
  background: rgba(var(--radio-rgb), 0.1);
}
.input-radio:checked {
  background: linear-gradient(135deg, rgba(var(--radio-rgb), 0.3) 0%, rgba(var(--radio-rgb), 0.15) 100%);
  border-color: rgb(var(--radio-rgb));
  box-shadow: 0 0 8px rgba(var(--radio-rgb), 0.4);
}
.input-radio:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--radio-rgb));
  box-shadow: 0 0 6px rgba(var(--radio-rgb), 0.6);
}
.input-radio:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--radio-rgb), 0.15);
}
.input-radio:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Radio Color Variants */
.input-radio-success { --radio-rgb: 30, 255, 0; }
.input-radio-danger { --radio-rgb: 220, 53, 69; }
.input-radio-warning { --radio-rgb: 255, 127, 80; }
.input-radio-info { --radio-rgb: 6, 182, 212; }
.input-radio-accent { --radio-rgb: 133, 169, 255; }
.input-radio-yellow { --radio-rgb: 255, 204, 0; }
.input-radio-teal { --radio-rgb: 20, 184, 166; }
.input-radio-blue { --radio-rgb: 59, 130, 246; }
.input-radio-purple { --radio-rgb: 139, 92, 246; }

/* === Labels for Checkbox/Radio === */
.checkbox-label, .radio-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.15s ease;
}
.checkbox-label:hover, .radio-label:hover {
  color: var(--color-text-primary);
}
.checkbox-label:has(input:disabled), .radio-label:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}



/* ========== feedback.css ========== */
/* =============================================================================
   Vision Label, Badges, Spinners, Progress
   fromScratch Theme
   ============================================================================= */

/* === VISION LABEL - Color Variants === */
.vision-label {
  --gradient-start: #ee1c68;
  --gradient-end: #fbb138;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end), var(--gradient-start));
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: vision-shimmer 2.5s ease-in-out infinite;
}

@keyframes vision-shimmer {
  0%, 100% {
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--gradient-start) 60%, transparent))
            drop-shadow(0 0 16px color-mix(in srgb, var(--gradient-end) 30%, transparent));
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--gradient-end) 80%, transparent))
            drop-shadow(0 0 24px color-mix(in srgb, var(--gradient-start) 40%, transparent));
    opacity: 0.9;
  }
}

/* Vision Label - Color Variants */
.vision-label-brand {
  --gradient-start: #ee1c68;
  --gradient-end: #fbb138;
}
.vision-label-secondary {
  --gradient-start: #3B82F6;
  --gradient-end: #EC4899;
}
.vision-label-success {
  --gradient-start: #10B981;
  --gradient-end: #34D399;
}
.vision-label-danger {
  --gradient-start: #DC2626;
  --gradient-end: #F87171;
}
.vision-label-warning {
  --gradient-start: #F59E0B;
  --gradient-end: #FBBF24;
}
.vision-label-info {
  --gradient-start: #0EA5E9;
  --gradient-end: #38BDF8;
}
.vision-label-accent {
  --gradient-start: #6366F1;
  --gradient-end: #A5B4FC;
}
.vision-label-purple {
  --gradient-start: #8B5CF6;
  --gradient-end: #C4B5FD;
}
.vision-label-teal {
  --gradient-start: #14B8A6;
  --gradient-end: #5EEAD4;
}

/* === ICON BUTTON - Hover Lift Fix === */
.icon-btn:hover:not(:disabled) {
  background: rgba(var(--btn-rgb), 0.2);
  border-color: rgb(var(--btn-rgb));
  box-shadow: 0 0 8px rgba(var(--btn-rgb), 0.25);
  transform: translateY(-1px);
}
.icon-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* === BADGES - Horizontal === */

/* Base Badge (Pill) */
.badge {
  --badge-rgb: 133, 169, 255;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

/* Badge Rectangle */
.badge-rect {
  border-radius: 4px;
}

/* === Badge Styles === */

/* Secondary (Subtle - colored text, subtle bg) */
.badge-secondary {
  background: rgba(var(--badge-rgb), 0.15);
  color: rgb(var(--badge-rgb));
  border: 1px solid rgba(var(--badge-rgb), 0.3);
}
.badge-secondary:hover {
  background: rgba(var(--badge-rgb), 0.25);
  border-color: rgba(var(--badge-rgb), 0.5);
  box-shadow: 0 0 8px rgba(var(--badge-rgb), 0.2);
}

/* Primary (Glowing - white text, gradient bg) */
.badge-primary {
  background: linear-gradient(135deg, rgba(var(--badge-rgb), 0.3) 0%, rgba(var(--badge-rgb), 0.15) 100%);
  color: rgb(255, 255, 255);
  border: 1px solid rgb(var(--badge-rgb));
  box-shadow: 0 0 8px rgba(var(--badge-rgb), 0.3);
}
.badge-primary:hover {
  background: linear-gradient(135deg, rgba(var(--badge-rgb), 0.4) 0%, rgba(var(--badge-rgb), 0.2) 100%);
  box-shadow: 0 0 12px rgba(var(--badge-rgb), 0.5);
}

/* === Badge Colors - Semantic === */
.badge-success { --badge-rgb: 30, 255, 0; }
.badge-danger { --badge-rgb: 220, 53, 69; }
.badge-warning { --badge-rgb: 255, 127, 80; }
.badge-info { --badge-rgb: 6, 182, 212; }
.badge-accent { --badge-rgb: 133, 169, 255; }

/* === Badge Colors - Extra === */
.badge-yellow { --badge-rgb: 255, 204, 0; }
.badge-teal { --badge-rgb: 20, 184, 166; }
.badge-blue { --badge-rgb: 59, 130, 246; }
.badge-purple { --badge-rgb: 139, 92, 246; }

/* === VERTICAL BADGE === */
.badge-vertical {
  --badge-rgb: 133, 169, 255;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 32px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  border: none;
}
.badge-vertical-icon {
  font-size: 14px;
  line-height: 1;
}
.badge-vertical-value {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* Vertical Badge - Secondary */
.badge-vertical-secondary {
  background: rgba(var(--badge-rgb), 0.15);
  color: rgb(var(--badge-rgb));
  border: 1px solid rgba(var(--badge-rgb), 0.3);
}
.badge-vertical-secondary:hover {
  background: rgba(var(--badge-rgb), 0.25);
  border-color: rgba(var(--badge-rgb), 0.5);
  box-shadow: 0 0 8px rgba(var(--badge-rgb), 0.3);
  transform: translateY(-2px);
}
.badge-vertical-secondary:active {
  transform: translateY(0);
}

/* Vertical Badge - Primary */
.badge-vertical-primary {
  background: linear-gradient(135deg, rgba(var(--badge-rgb), 0.3) 0%, rgba(var(--badge-rgb), 0.15) 100%);
  color: rgb(255, 255, 255);
  border: 1px solid rgb(var(--badge-rgb));
  box-shadow: 0 0 8px rgba(var(--badge-rgb), 0.3);
}
.badge-vertical-primary:hover {
  background: linear-gradient(135deg, rgba(var(--badge-rgb), 0.4) 0%, rgba(var(--badge-rgb), 0.2) 100%);
  box-shadow: 0 0 12px rgba(var(--badge-rgb), 0.5);
  transform: translateY(-2px);
}
.badge-vertical-primary:active {
  transform: translateY(0);
}

/* === LINK DOT (Compact horizontal badge for grids) === */
.link-dot {
  --dot-rgb: 133, 169, 255;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(var(--dot-rgb), 0.15);
  color: rgb(var(--dot-rgb));
  border: 1px solid rgba(var(--dot-rgb), 0.3);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.link-dot:hover {
  background: rgba(var(--dot-rgb), 0.25);
  border-color: rgb(var(--dot-rgb));
  box-shadow: 0 0 8px rgba(var(--dot-rgb), 0.4);
}
.link-dot-pinned {
  box-shadow: 0 0 12px rgba(var(--dot-rgb), 0.6);
  border-color: rgb(var(--dot-rgb));
}

/* Link Dot Colors */
.link-dot-success { --dot-rgb: 30, 255, 0; }
.link-dot-danger { --dot-rgb: 220, 53, 69; }
.link-dot-warning { --dot-rgb: 255, 127, 80; }
.link-dot-info { --dot-rgb: 6, 182, 212; }
.link-dot-accent { --dot-rgb: 133, 169, 255; }
.link-dot-yellow { --dot-rgb: 255, 204, 0; }
.link-dot-teal { --dot-rgb: 20, 184, 166; }
.link-dot-blue { --dot-rgb: 59, 130, 246; }
.link-dot-purple { --dot-rgb: 139, 92, 246; }

/* === BADGE COLOR FIX - Apply to all badge types === */

/* Semantic Colors - works for .badge, .badge-vertical, .link-dot */
.badge-success, .badge-vertical.badge-success, .link-dot.link-dot-success { --badge-rgb: 30, 255, 0; }
.badge-danger, .badge-vertical.badge-danger, .link-dot.link-dot-danger { --badge-rgb: 220, 53, 69; }
.badge-warning, .badge-vertical.badge-warning, .link-dot.link-dot-warning { --badge-rgb: 255, 127, 80; }
.badge-info, .badge-vertical.badge-info, .link-dot.link-dot-info { --badge-rgb: 6, 182, 212; }
.badge-accent, .badge-vertical.badge-accent, .link-dot.link-dot-accent { --badge-rgb: 133, 169, 255; }

/* Extra Colors */
.badge-yellow, .badge-vertical.badge-yellow { --badge-rgb: 255, 204, 0; }
.badge-teal, .badge-vertical.badge-teal { --badge-rgb: 20, 184, 166; }
.badge-blue, .badge-vertical.badge-blue { --badge-rgb: 59, 130, 246; }
.badge-purple, .badge-vertical.badge-purple { --badge-rgb: 139, 92, 246; }

/* === SPINNER - Color Variants === */
.spinner {
  --spinner-rgb: 133, 169, 255;
  border: 2px solid rgba(var(--spinner-rgb), 0.3);
  border-top-color: rgb(var(--spinner-rgb));
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  animation: spin 1s linear infinite;
}

/* Spinner Sizes */
.spinner-sm { width: 0.875rem; height: 0.875rem; border-width: 2px; }
.spinner-lg { width: 1.5rem; height: 1.5rem; border-width: 3px; }
.spinner-xl { width: 2rem; height: 2rem; border-width: 3px; }

/* Spinner Colors - Semantic */
.spinner-success { --spinner-rgb: 30, 255, 0; }
.spinner-danger { --spinner-rgb: 220, 53, 69; }
.spinner-warning { --spinner-rgb: 255, 127, 80; }
.spinner-info { --spinner-rgb: 6, 182, 212; }
.spinner-accent { --spinner-rgb: 133, 169, 255; }

/* Spinner Colors - Extra */
.spinner-yellow { --spinner-rgb: 255, 204, 0; }
.spinner-teal { --spinner-rgb: 20, 184, 166; }
.spinner-blue { --spinner-rgb: 59, 130, 246; }
.spinner-purple { --spinner-rgb: 139, 92, 246; }

/* Spinner White (for dark backgrounds/buttons) */
.spinner-white {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: rgb(255, 255, 255);
}

/* === PROGRESS BAR - Enhanced === */
.progress-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  width: 100%;
  height: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  --progress-rgb: 133, 169, 255;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(var(--progress-rgb), 0.8) 0%,
    rgb(var(--progress-rgb)) 50%,
    rgba(var(--progress-rgb), 0.8) 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s ease-in-out infinite;
  transition: width 0.5s ease-out;
}

@keyframes progress-shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

/* Progress Bar Sizes */
.progress-bar-sm { height: 4px; }
.progress-bar-lg { height: 12px; }

/* Progress Bar Colors - Semantic */
.progress-fill-success { --progress-rgb: 30, 255, 0; }
.progress-fill-danger { --progress-rgb: 220, 53, 69; }
.progress-fill-warning { --progress-rgb: 255, 127, 80; }
.progress-fill-info { --progress-rgb: 6, 182, 212; }
.progress-fill-accent { --progress-rgb: 133, 169, 255; }

/* Progress Bar Colors - Extra */
.progress-fill-yellow { --progress-rgb: 255, 204, 0; }
.progress-fill-teal { --progress-rgb: 20, 184, 166; }
.progress-fill-blue { --progress-rgb: 59, 130, 246; }
.progress-fill-purple { --progress-rgb: 139, 92, 246; }

/* === Progress Bar Special Gradients === */
.progress-fill-brand {
  background: linear-gradient(
    90deg,
    #ee1c68 0%,
    #fbb138 50%,
    #ee1c68 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s ease-in-out infinite;
}

.progress-fill-secondary {
  background: linear-gradient(
    90deg,
    #3B82F6 0%,
    #8B5CF6 33%,
    #EC4899 66%,
    #3B82F6 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 3s ease-in-out infinite;
}

.progress-fill-gradient-success {
  background: linear-gradient(
    90deg,
    #059669 0%,
    #34D399 50%,
    #059669 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s ease-in-out infinite;
}

.progress-fill-gradient-warning {
  background: linear-gradient(
    90deg,
    #F97316 0%,
    #FBBF24 50%,
    #F97316 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s ease-in-out infinite;
}

.progress-fill-gradient-info {
  background: linear-gradient(
    90deg,
    #0284C7 0%,
    #38BDF8 50%,
    #0284C7 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s ease-in-out infinite;
}

.progress-fill-gradient-danger {
  background: linear-gradient(
    90deg,
    #B91C1C 0%,
    #EF4444 50%,
    #B91C1C 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s ease-in-out infinite;
}

/* === PROGRESS BAR FIX - Match original === */
.progress-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  width: 100%;
  height: 6px;
  overflow: hidden;
}

.progress-bar-sm { height: 4px; }
.progress-bar-lg { height: 10px; }

/* === PROGRESS BAR - No border, match card style === */
.progress-bar {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 9999px;
  width: 100%;
  height: 6px;
  overflow: hidden;
}

.progress-bar-sm { height: 4px; }
.progress-bar-lg { height: 10px; }

/* === CARD SYSTEM - Color Variants === */
.card {
  --card-rgb: 133, 169, 255;
  background-color: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

/* Card with left accent */
.card-accent-left {
  border-left: 3px solid rgb(var(--card-rgb));
}

/* Card with top accent */
.card-accent-top {
  border-top: 3px solid rgb(var(--card-rgb));
}

/* === CARD STYLES === */

/* Secondary Card (Subtle - colored accent, subtle glow) */
.card-secondary {
  border-color: rgba(var(--card-rgb), 0.3);
}
.card-secondary.card-accent-left {
  border-left-color: rgb(var(--card-rgb));
}
.card-secondary.card-accent-top {
  border-top-color: rgb(var(--card-rgb));
}
.card-secondary:hover {
  border-color: rgba(var(--card-rgb), 0.5);
  box-shadow: 0 0 20px rgba(var(--card-rgb), 0.1);
}

/* Primary Card (Glowing - stronger presence) */
.card-primary {
  border-color: rgba(var(--card-rgb), 0.5);
  box-shadow: 0 0 15px rgba(var(--card-rgb), 0.15), inset 0 0 30px rgba(var(--card-rgb), 0.03);
}
.card-primary.card-accent-left {
  border-left-color: rgb(var(--card-rgb));
}
.card-primary.card-accent-top {
  border-top-color: rgb(var(--card-rgb));
}
.card-primary:hover {
  border-color: rgba(var(--card-rgb), 0.7);
  box-shadow: 0 0 25px rgba(var(--card-rgb), 0.25), inset 0 0 30px rgba(var(--card-rgb), 0.05);
  transform: translateY(-2px);
}

/* === CARD STATES === */
.card-interactive {
  cursor: pointer;
}

.card-selected {
  border-color: rgb(var(--card-rgb));
  box-shadow: 0 0 0 2px rgba(var(--card-rgb), 0.3);
}

.card-pending {
  border-style: dashed;
  border-color: rgba(var(--card-rgb), 0.4);
}

.card-dimmed {
  opacity: 0.4;
}

/* === CARD COLORS - Semantic === */
.card-success { --card-rgb: 30, 255, 0; }
.card-danger { --card-rgb: 220, 53, 69; }
.card-warning { --card-rgb: 255, 127, 80; }
.card-info { --card-rgb: 6, 182, 212; }
.card-accent { --card-rgb: 133, 169, 255; }

/* === CARD COLORS - Extra === */
.card-yellow { --card-rgb: 255, 204, 0; }
.card-teal { --card-rgb: 20, 184, 166; }
.card-blue { --card-rgb: 59, 130, 246; }
.card-purple { --card-rgb: 139, 92, 246; }

/* === CARD SECTIONS === */
.card-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(var(--card-rgb), 0.2);
}

.card-body {
  padding: 1rem;
}

.card-footer {
  padding: 1rem;
  border-top: 1px solid rgba(var(--card-rgb), 0.2);
}



/* ========== layout.css ========== */
/* =============================================================================
   Cards, Grid Rows, Tree Rows
   fromScratch Theme
   ============================================================================= */

/* === CARD PENDING FIX - Remove accent on pending === */
.card-pending.card-accent-left {
  border-left-width: 1px;
  border-left-style: dashed;
}
.card-pending.card-accent-top {
  border-top-width: 1px;
  border-top-style: dashed;
}

/* === GRID ROW SYSTEM - Enhanced with Colors === */

/* Base Grid Row */
.grid-row {
  --row-rgb: 133, 169, 255;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.grid-row:hover {
  background: var(--color-card);
  border-color: var(--color-border);
}

/* Grid Row with Left Accent */
.grid-row-accent {
  border-left: 3px solid rgb(var(--row-rgb));
}
.grid-row-accent:hover {
  box-shadow: inset 4px 0 12px -4px rgba(var(--row-rgb), 0.3);
}

/* Grid Row Colors - Semantic */
.grid-row-success { --row-rgb: 30, 255, 0; }
.grid-row-danger { --row-rgb: 220, 53, 69; }
.grid-row-warning { --row-rgb: 255, 127, 80; }
.grid-row-info { --row-rgb: 6, 182, 212; }
.grid-row-accent-color { --row-rgb: 133, 169, 255; }

/* Grid Row Colors - Extra */
.grid-row-yellow { --row-rgb: 255, 204, 0; }
.grid-row-teal { --row-rgb: 20, 184, 166; }
.grid-row-blue { --row-rgb: 59, 130, 246; }
.grid-row-purple { --row-rgb: 139, 92, 246; }

/* Grid Row States */
.grid-row-selected {
  background: rgba(var(--row-rgb), 0.1);
  border-color: rgba(var(--row-rgb), 0.3);
}
.grid-row-pending {
  border-style: dashed;
  border-color: rgba(var(--row-rgb), 0.4);
}
.grid-row-dimmed {
  opacity: 0.35;
}

/* === TREE ROW - Normal (36px) === */
.tree-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 8px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.1s ease;
  cursor: pointer;
}
.tree-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.tree-row-selected {
  background: rgba(99, 102, 241, 0.12);
}

/* === TREE ROW - Compact (32px) === */
.tree-row-compact {
  height: 32px;
  font-size: 12px;
}

/* === TREE ROW - Alternate (Zebra striping) === */
.tree-row-alt:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.tree-row-alt:nth-child(even):hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Tree Row Elements */
.tree-row-indent {
  display: flex;
  align-items: center;
}
.tree-row-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--color-text-muted);
}
.tree-row-expand:hover {
  color: var(--color-text-secondary);
}
.tree-row-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--color-text-primary);
}
.tree-row-name-pending {
  color: rgb(255, 180, 120);
  text-shadow: 0 0 8px rgba(255, 127, 80, 0.4);
}
.tree-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.tree-row:hover .tree-row-actions {
  opacity: 1;
}

/* Grid Row Elements */
.grid-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--color-text-primary);
}
.grid-name-pending {
  font-style: italic;
  color: var(--color-text-secondary);
}
.grid-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === RADIO BUTTON GROUP (Styled like AddEntity type selector) === */
.radio-btn-group {
  display: flex;
  gap: 8px;
}

.radio-btn {
  --radio-rgb: 133, 169, 255;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(var(--radio-rgb), 0.25);
  background: rgba(var(--radio-rgb), 0.05);
  color: rgba(var(--radio-rgb), 0.7);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.radio-btn:hover {
  border-color: rgb(var(--radio-rgb));
  background: rgba(var(--radio-rgb), 0.15);
  color: rgb(var(--radio-rgb));
  transform: translateY(-1px);
}
.radio-btn.active,
.radio-btn:has(input:checked) {
  background: linear-gradient(135deg, rgba(var(--radio-rgb), 0.25) 0%, rgba(var(--radio-rgb), 0.1) 100%);
  color: rgb(255, 255, 255);
  border-color: rgb(var(--radio-rgb));
  box-shadow: 0 0 12px rgba(var(--radio-rgb), 0.4), inset 0 0 20px rgba(var(--radio-rgb), 0.1);
}
.radio-btn.active:hover,
.radio-btn:has(input:checked):hover {
  transform: none;
}

/* Hide actual radio input */
.radio-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Radio Button Icon */
.radio-btn-icon {
  font-size: 14px;
  transition: all 0.15s ease;
}
.radio-btn.active .radio-btn-icon,
.radio-btn:has(input:checked) .radio-btn-icon {
  text-shadow: 0 0 8px rgba(var(--radio-rgb), 0.6);
}

/* Radio Button Colors - Semantic */
.radio-btn-success { --radio-rgb: 30, 255, 0; }
.radio-btn-danger { --radio-rgb: 220, 53, 69; }
.radio-btn-warning { --radio-rgb: 255, 127, 80; }
.radio-btn-info { --radio-rgb: 6, 182, 212; }
.radio-btn-accent { --radio-rgb: 133, 169, 255; }

/* Radio Button Colors - Extra */
.radio-btn-yellow { --radio-rgb: 255, 204, 0; }
.radio-btn-teal { --radio-rgb: 20, 184, 166; }
.radio-btn-blue { --radio-rgb: 59, 130, 246; }
.radio-btn-purple { --radio-rgb: 139, 92, 246; }
.radio-btn-cyan { --radio-rgb: 6, 182, 212; }



/* ========== controls.css ========== */
/* =============================================================================
   Radio/Checkbox Button Groups
   fromScratch Theme
   ============================================================================= */

/* === CHECKBOX BUTTON GROUP (Toggle buttons with check icon) === */
.checkbox-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checkbox-btn {
  --check-rgb: 133, 169, 255;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #888;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.checkbox-btn:hover {
  border-color: rgba(var(--check-rgb), 0.5);
  color: rgba(var(--check-rgb), 0.8);
  background: rgba(var(--check-rgb), 0.08);
}
.checkbox-btn.active,
.checkbox-btn:has(input:checked) {
  border-color: rgba(var(--check-rgb), 0.6);
  background: rgba(var(--check-rgb), 0.15);
  color: rgb(var(--check-rgb));
}
.checkbox-btn.active:hover,
.checkbox-btn:has(input:checked):hover {
  border-color: rgba(var(--check-rgb), 0.8);
  background: rgba(var(--check-rgb), 0.2);
}

/* Hide actual checkbox input */
.checkbox-btn input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Check icon - only visible when active */
.checkbox-btn-check {
  display: none;
  font-size: 12px;
}
.checkbox-btn.active .checkbox-btn-check,
.checkbox-btn:has(input:checked) .checkbox-btn-check {
  display: inline;
}

/* Checkbox Button Colors */
.checkbox-btn-success { --check-rgb: 30, 255, 0; }
.checkbox-btn-danger { --check-rgb: 220, 53, 69; }
.checkbox-btn-warning { --check-rgb: 255, 127, 80; }
.checkbox-btn-info { --check-rgb: 6, 182, 212; }
.checkbox-btn-accent { --check-rgb: 133, 169, 255; }
.checkbox-btn-yellow { --check-rgb: 255, 204, 0; }
.checkbox-btn-teal { --check-rgb: 20, 184, 166; }
.checkbox-btn-blue { --check-rgb: 59, 130, 246; }
.checkbox-btn-purple { --check-rgb: 139, 92, 246; }
.checkbox-btn-cyan { --check-rgb: 6, 182, 212; }

/* === RADIO BUTTON - Toggle Style (like checkbox-btn but for radios) === */
.radio-btn-toggle {
  --radio-rgb: 133, 169, 255;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #888;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.radio-btn-toggle:hover {
  border-color: rgba(var(--radio-rgb), 0.5);
  color: rgba(var(--radio-rgb), 0.8);
  background: rgba(var(--radio-rgb), 0.08);
}
.radio-btn-toggle.active,
.radio-btn-toggle:has(input:checked) {
  border-color: rgba(var(--radio-rgb), 0.6);
  background: rgba(var(--radio-rgb), 0.15);
  color: rgb(var(--radio-rgb));
}

/* Hide actual radio input */
.radio-btn-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Check icon for radio toggle */
.radio-btn-toggle .radio-btn-check {
  display: none;
  font-size: 12px;
}
.radio-btn-toggle.active .radio-btn-check,
.radio-btn-toggle:has(input:checked) .radio-btn-check {
  display: inline;
}

/* Radio Toggle Colors */
.radio-btn-toggle-success { --radio-rgb: 30, 255, 0; }
.radio-btn-toggle-danger { --radio-rgb: 220, 53, 69; }
.radio-btn-toggle-warning { --radio-rgb: 255, 127, 80; }
.radio-btn-toggle-info { --radio-rgb: 6, 182, 212; }
.radio-btn-toggle-accent { --radio-rgb: 133, 169, 255; }
.radio-btn-toggle-yellow { --radio-rgb: 255, 204, 0; }
.radio-btn-toggle-teal { --radio-rgb: 20, 184, 166; }
.radio-btn-toggle-blue { --radio-rgb: 59, 130, 246; }
.radio-btn-toggle-purple { --radio-rgb: 139, 92, 246; }
.radio-btn-toggle-cyan { --radio-rgb: 6, 182, 212; }



/* ========== overlays.css ========== */
/* =============================================================================
   Modals, Tooltips, Dropdowns
   fromScratch Theme
   ============================================================================= */

/* === MODAL/POPUP SYSTEM === */

/* Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
}

/* Modal Container */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
}

/* Modal Content */
.modal-content {
  --modal-rgb: 133, 169, 255;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  background: var(--color-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

/* Modal Sizes */
.modal-sm .modal-content { max-width: 400px; }
.modal-md .modal-content { max-width: 500px; }
.modal-lg .modal-content { max-width: 700px; }
.modal-xl .modal-content { max-width: 900px; }
.modal-full .modal-content { max-width: 95vw; max-height: 95vh; }

/* Modal with accent glow */
.modal-glow .modal-content {
  border-color: rgba(var(--modal-rgb), 0.3);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--modal-rgb), 0.1);
}

/* Modal Colors */
.modal-success { --modal-rgb: 30, 255, 0; }
.modal-danger { --modal-rgb: 220, 53, 69; }
.modal-warning { --modal-rgb: 255, 127, 80; }
.modal-info { --modal-rgb: 6, 182, 212; }
.modal-accent { --modal-rgb: 133, 169, 255; }
.modal-purple { --modal-rgb: 139, 92, 246; }

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.modal-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-primary);
  margin: 0;
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}
.modal-close:hover {
  background: rgba(220, 53, 69, 0.15);
  color: rgb(220, 53, 69);
  border-color: rgba(220, 53, 69, 0.5);
}

/* Modal Body */
.modal-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

/* === TOOLTIP === */
.tooltip {
  --tooltip-rgb: 133, 169, 255;
  position: relative;
  display: inline-block;
}
.tooltip-content {
  position: absolute;
  z-index: 300;
  padding: 8px 12px;
  background: rgba(15, 17, 26, 0.98);
  border: 1px solid rgba(var(--tooltip-rgb), 0.3);
  border-radius: 4px;
  font-size: 12px;
  color: var(--color-text-primary);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 8px rgba(var(--tooltip-rgb), 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
}
.tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
}

/* Tooltip Positions */
.tooltip-top .tooltip-content {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
}
.tooltip-bottom .tooltip-content {
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}
.tooltip-left .tooltip-content {
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
}
.tooltip-right .tooltip-content {
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
}

/* Tooltip Colors */
.tooltip-success { --tooltip-rgb: 30, 255, 0; }
.tooltip-danger { --tooltip-rgb: 220, 53, 69; }
.tooltip-warning { --tooltip-rgb: 255, 127, 80; }
.tooltip-info { --tooltip-rgb: 6, 182, 212; }
.tooltip-accent { --tooltip-rgb: 133, 169, 255; }

/* === DROPDOWN MENU === */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  --dropdown-rgb: 133, 169, 255;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 250;
  min-width: 180px;
  padding: 6px 0;
  margin-top: 4px;
  background: rgba(15, 17, 26, 0.98);
  border: 1px solid rgba(var(--dropdown-rgb), 0.2);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(var(--dropdown-rgb), 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
}
.dropdown.open .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu-right {
  left: auto;
  right: 0;
}

/* Dropdown Items */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.1s ease;
}
.dropdown-item:hover {
  background: rgba(var(--dropdown-rgb), 0.1);
  color: rgb(var(--dropdown-rgb));
}
.dropdown-item-danger:hover {
  background: rgba(220, 53, 69, 0.1);
  color: rgb(220, 53, 69);
}
.dropdown-divider {
  height: 1px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.1);
}

/* === MODAL FIX - Proper z-index layering === */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.modal-content {
  position: relative;
  z-index: 2;
}


/* ========== alerts.css ========== */
/* =============================================================================
   ALERTS / CALLOUTS
   Info, Warning, Error, Success message boxes
   fromScratch Theme
   ============================================================================= */

/* === BASE ALERT === */
.alert {
  --alert-rgb: 133, 169, 255;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid rgba(var(--alert-rgb), 0.3);
  background: rgba(var(--alert-rgb), 0.08);
  color: var(--color-text-primary);
  font-size: 13px;
  line-height: 1.5;
}

/* Alert Icon */
.alert-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: rgb(var(--alert-rgb));
  line-height: 1;
  margin-top: 1px;
}

/* Alert Content */
.alert-content {
  flex: 1;
  min-width: 0;
}

/* Alert Title */
.alert-title {
  font-weight: 600;
  color: rgb(var(--alert-rgb));
  margin-bottom: 4px;
}

/* Alert Message */
.alert-message {
  color: var(--color-text-secondary);
}

/* Alert Dismiss Button */
.alert-dismiss {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  margin: -4px -4px -4px 0;
}
.alert-dismiss:hover {
  background: rgba(var(--alert-rgb), 0.15);
  color: rgb(var(--alert-rgb));
}

/* === ALERT VARIANTS === */

/* Primary Alert (Glowing) */
.alert-primary {
  border-color: rgba(var(--alert-rgb), 0.5);
  background: linear-gradient(135deg, rgba(var(--alert-rgb), 0.15) 0%, rgba(var(--alert-rgb), 0.05) 100%);
  box-shadow: 0 0 12px rgba(var(--alert-rgb), 0.15), inset 0 0 20px rgba(var(--alert-rgb), 0.03);
}

/* Solid Alert (Filled background) */
.alert-solid {
  background: rgb(var(--alert-rgb));
  border-color: rgb(var(--alert-rgb));
  color: white;
}
.alert-solid .alert-icon,
.alert-solid .alert-title {
  color: white;
}
.alert-solid .alert-message {
  color: rgba(255, 255, 255, 0.85);
}
.alert-solid .alert-dismiss {
  color: rgba(255, 255, 255, 0.7);
}
.alert-solid .alert-dismiss:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* === ALERT COLORS - Semantic === */
.alert-success { --alert-rgb: 30, 255, 0; }
.alert-danger { --alert-rgb: 220, 53, 69; }
.alert-warning { --alert-rgb: 255, 127, 80; }
.alert-info { --alert-rgb: 6, 182, 212; }
.alert-accent { --alert-rgb: 133, 169, 255; }

/* === ALERT COLORS - Extra === */
.alert-purple { --alert-rgb: 139, 92, 246; }
.alert-teal { --alert-rgb: 20, 184, 166; }
.alert-blue { --alert-rgb: 59, 130, 246; }
.alert-yellow { --alert-rgb: 255, 204, 0; }

/* === CALLOUT (Left border accent) === */
.callout {
  --callout-rgb: 133, 169, 255;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid rgba(var(--callout-rgb), 0.2);
  border-left: 4px solid rgb(var(--callout-rgb));
  background: rgba(var(--callout-rgb), 0.05);
  color: var(--color-text-primary);
  font-size: 13px;
  line-height: 1.5;
}

/* Callout Title */
.callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: rgb(var(--callout-rgb));
  margin-bottom: 6px;
}

/* Callout Icon */
.callout-icon {
  font-size: 16px;
}

/* Callout Content */
.callout-content {
  color: var(--color-text-secondary);
}

/* === CALLOUT COLORS === */
.callout-success { --callout-rgb: 30, 255, 0; }
.callout-danger { --callout-rgb: 220, 53, 69; }
.callout-warning { --callout-rgb: 255, 127, 80; }
.callout-info { --callout-rgb: 6, 182, 212; }
.callout-accent { --callout-rgb: 133, 169, 255; }
.callout-purple { --callout-rgb: 139, 92, 246; }
.callout-teal { --callout-rgb: 20, 184, 166; }
.callout-blue { --callout-rgb: 59, 130, 246; }
.callout-yellow { --callout-rgb: 255, 204, 0; }

/* === INLINE ALERT (Compact, single line) === */
.alert-inline {
  --alert-rgb: 133, 169, 255;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(var(--alert-rgb), 0.1);
  border: 1px solid rgba(var(--alert-rgb), 0.3);
  font-size: 12px;
  color: rgb(var(--alert-rgb));
}
.alert-inline-icon {
  font-size: 14px;
}

/* Inline Alert Colors */
.alert-inline-success { --alert-rgb: 30, 255, 0; }
.alert-inline-danger { --alert-rgb: 220, 53, 69; }
.alert-inline-warning { --alert-rgb: 255, 127, 80; }
.alert-inline-info { --alert-rgb: 6, 182, 212; }
.alert-inline-accent { --alert-rgb: 133, 169, 255; }


/* ========== tabs.css ========== */
/* =============================================================================
   TABS & SUB-TABS
   Main tabs with sub-tab rows
   fromScratch Theme
   ============================================================================= */

/* === TAB CONTAINER === */
.tabs {
  --tab-rgb: 133, 169, 255;
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* === MAIN TAB === */
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.tab:hover {
  color: var(--color-text-secondary);
  background: rgba(var(--tab-rgb), 0.05);
}
.tab.active {
  color: rgb(var(--tab-rgb));
  border-bottom-color: rgb(var(--tab-rgb));
  background: linear-gradient(to top, rgba(var(--tab-rgb), 0.1) 0%, transparent 100%);
}
.tab:focus {
  outline: none;
}

/* Tab Icon */
.tab-icon {
  font-size: 16px;
}

/* === TAB SIZES === */

/* Large Tabs */
.tabs-lg .tab {
  padding: 16px 28px;
  font-size: 14px;
}
.tabs-lg .tab-icon {
  font-size: 18px;
}

/* Small Tabs */
.tabs-sm .tab {
  padding: 8px 14px;
  font-size: 12px;
}
.tabs-sm .tab-icon {
  font-size: 14px;
}

/* === TAB COLORS === */
.tabs-success { --tab-rgb: 30, 255, 0; }
.tabs-danger { --tab-rgb: 220, 53, 69; }
.tabs-warning { --tab-rgb: 255, 127, 80; }
.tabs-info { --tab-rgb: 6, 182, 212; }
.tabs-accent { --tab-rgb: 133, 169, 255; }
.tabs-purple { --tab-rgb: 139, 92, 246; }
.tabs-teal { --tab-rgb: 20, 184, 166; }
.tabs-blue { --tab-rgb: 59, 130, 246; }

/* === BOXED TABS (Rounded top, flat bottom, brighter) === */
.tabs-boxed {
  gap: 4px;
  padding: 0 8px;
  background: var(--color-base);
}
.tabs-boxed .tab {
  padding: 10px 20px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: rgba(var(--tab-rgb), 0.05);
  margin-bottom: -1px;
}
.tabs-boxed .tab:hover {
  background: rgba(var(--tab-rgb), 0.1);
  border-color: rgba(var(--tab-rgb), 0.2);
}
.tabs-boxed .tab.active {
  background: var(--color-surface);
  border-color: var(--color-border);
  border-bottom-color: var(--color-surface);
  color: rgb(var(--tab-rgb));
  box-shadow: 0 -2px 8px rgba(var(--tab-rgb), 0.15);
}

/* Boxed + Large */
.tabs-boxed.tabs-lg .tab {
  padding: 14px 28px;
}

/* Boxed + Small */
.tabs-boxed.tabs-sm .tab {
  padding: 6px 14px;
}

/* === SUB-TAB CONTAINER === */
.subtabs {
  --subtab-rgb: 133, 169, 255;
  display: flex;
  width: 100%;
  background: var(--color-base);
  border-bottom: 1px solid var(--color-border);
}

/* === SUB-TAB === */
.subtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

/* Sub-tab underline (always present, transparent when inactive) */
.subtab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.15s ease;
}

.subtab:hover {
  color: var(--color-text-secondary);
}
.subtab:hover::after {
  background: rgba(var(--subtab-rgb), 0.3);
}

/* Active sub-tab: colored underline + gradient bottom->top */
.subtab.active {
  color: rgb(var(--subtab-rgb));
  background: linear-gradient(to top, rgba(var(--subtab-rgb), 0.12) 0%, transparent 70%);
}
.subtab.active::after {
  background: rgb(var(--subtab-rgb));
  box-shadow: 0 0 8px rgba(var(--subtab-rgb), 0.5);
}

.subtab:focus {
  outline: none;
}

/* Sub-tab Icon */
.subtab-icon {
  font-size: 14px;
}

/* === SUB-TAB SIZES === */

/* Large Sub-tabs */
.subtabs-lg .subtab {
  padding: 12px 22px;
  font-size: 13px;
}

/* Small Sub-tabs */
.subtabs-sm .subtab {
  padding: 6px 12px;
  font-size: 11px;
}

/* === SUB-TAB COLORS === */
.subtabs-success { --subtab-rgb: 30, 255, 0; }
.subtabs-danger { --subtab-rgb: 220, 53, 69; }
.subtabs-warning { --subtab-rgb: 255, 127, 80; }
.subtabs-info { --subtab-rgb: 6, 182, 212; }
.subtabs-accent { --subtab-rgb: 133, 169, 255; }
.subtabs-purple { --subtab-rgb: 139, 92, 246; }
.subtabs-teal { --subtab-rgb: 20, 184, 166; }
.subtabs-blue { --subtab-rgb: 59, 130, 246; }

/* === TAB + SUBTAB COMBINED LAYOUT === */
.tab-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* When tabs and subtabs are together, remove double border */
.tab-group .tabs {
  border-bottom: none;
}
.tab-group .subtabs {
  border-top: 1px solid var(--color-border);
}

/* === TAB CONTENT PANEL === */
.tab-panel {
  padding: 20px;
}
.tab-panel-flush {
  padding: 0;
}

/* === PILL TABS (Alternative style) === */
.tabs-pill {
  gap: 8px;
  padding: 8px;
  border-bottom: none;
  background: var(--color-base);
  border-radius: 6px;
}
.tabs-pill .tab {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  border-bottom: none;
}
.tabs-pill .tab:hover {
  background: rgba(var(--tab-rgb), 0.1);
}
.tabs-pill .tab.active {
  background: rgba(var(--tab-rgb), 0.15);
  border: 1px solid rgba(var(--tab-rgb), 0.3);
  box-shadow: 0 0 8px rgba(var(--tab-rgb), 0.2);
}


/* ========== status-chat.css ========== */
/* =============================================================================
   STATUS FEED & CHAT
   Processing status, activity feeds, and chat interfaces
   fromScratch Theme
   ============================================================================= */

/* === STATUS PANEL (Floating container) === */
.status-panel {
  --status-rgb: 133, 169, 255;
  background: rgba(15, 15, 20, 0.95);
  border: 1px solid rgba(var(--status-rgb), 0.3);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  min-width: 300px;
  max-width: 420px;
  overflow: hidden;
}
.status-panel-active {
  border-color: rgb(var(--status-rgb));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--status-rgb), 0.25);
}

/* Status Panel Colors */
.status-panel-success { --status-rgb: 30, 255, 0; }
.status-panel-danger { --status-rgb: 220, 53, 69; }
.status-panel-warning { --status-rgb: 255, 127, 80; }
.status-panel-info { --status-rgb: 6, 182, 212; }
.status-panel-accent { --status-rgb: 133, 169, 255; }
.status-panel-purple { --status-rgb: 139, 92, 246; }
.status-panel-teal { --status-rgb: 20, 184, 166; }

/* === STATUS BADGE (Collapsed state) === */
.status-badge {
  --status-rgb: 133, 169, 255;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 15, 20, 0.95);
  border: 2px solid rgb(var(--status-rgb));
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(var(--status-rgb), 0.3);
  transition: all 0.2s ease;
}
.status-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--status-rgb), 0.4);
}
.status-badge-icon {
  font-size: 14px;
  color: rgb(var(--status-rgb));
}
.status-badge-text {
  font-size: 11px;
  color: var(--color-text-secondary);
}
.status-badge-arrow {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* === STATUS HEADER === */
.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
}
.status-header-collapsed {
  border-bottom: none;
}

/* Spinning indicator */
.status-spinner {
  --spinner-rgb: 133, 169, 255;
  position: relative;
  width: 24px;
  height: 24px;
}
.status-spinner-ring {
  width: 100%;
  height: 100%;
  border: 2px solid rgb(var(--spinner-rgb));
  border-top-color: transparent;
  border-radius: 50%;
  animation: status-spin 1s linear infinite;
}
.status-spinner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: rgb(var(--spinner-rgb));
}
@keyframes status-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Status Header Content */
.status-header-content {
  flex: 1;
  min-width: 0;
}
.status-header-title {
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--status-rgb));
}
.status-header-subtitle {
  font-size: 11px;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-header-step {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-header-time {
  font-size: 11px;
  color: var(--color-text-muted);
}
.status-header-toggle {
  font-size: 10px;
  color: var(--color-text-muted);
  transition: transform 0.2s;
}
.status-header-toggle-open {
  transform: rotate(180deg);
}

/* === STATUS BODY (Scrollable list) === */
.status-body {
  max-height: 320px;
  overflow-y: auto;
}

/* Section headers */
.status-section {
  padding: 6px 14px;
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--color-border);
}
.status-section:first-child {
  border-top: none;
}

/* Empty state */
.status-empty {
  padding: 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 12px;
}

/* === STATUS ITEM (Single entry) === */
.status-item {
  --item-rgb: 133, 169, 255;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  transition: background 0.15s ease;
}
.status-item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.status-item-active {
  background: rgba(var(--item-rgb), 0.08);
}
.status-item-dimmed {
  opacity: 0.7;
}

/* Item Icon */
.status-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--item-rgb), 0.15);
  flex-shrink: 0;
}
.status-item-icon i {
  font-size: 10px;
  color: rgb(var(--item-rgb));
}

/* Item Content */
.status-item-content {
  flex: 1;
  min-width: 0;
}
.status-item-title {
  font-size: 11px;
  font-weight: 500;
  color: rgb(var(--item-rgb));
}
.status-item-text {
  font-size: 11px;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-item-time {
  font-size: 10px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* Item Steps (expandable details) */
.status-item-steps {
  margin-top: 4px;
  padding-left: 4px;
  border-left: 2px solid rgba(var(--item-rgb), 0.3);
}
.status-item-step {
  font-size: 9px;
  color: var(--color-text-muted);
  padding: 1px 0 1px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Item Colors */
.status-item-success { --item-rgb: 30, 255, 0; }
.status-item-danger { --item-rgb: 220, 53, 69; }
.status-item-warning { --item-rgb: 255, 127, 80; }
.status-item-info { --item-rgb: 6, 182, 212; }
.status-item-accent { --item-rgb: 133, 169, 255; }
.status-item-purple { --item-rgb: 139, 92, 246; }
.status-item-teal { --item-rgb: 20, 184, 166; }

/* === STATUS FOOTER === */
.status-footer {
  padding: 8px 14px;
  border-top: 1px solid var(--color-border);
  text-align: right;
}
.status-footer-btn {
  font-size: 11px;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
}
.status-footer-btn:hover {
  color: var(--color-text-secondary);
}

/* === CHAT CONTAINER === */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.chat-header-icon {
  font-size: 20px;
  color: var(--color-accent);
}
.chat-header-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.chat-header-status {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* === CHAT MESSAGE === */
.chat-message {
  --msg-rgb: 133, 169, 255;
  display: flex;
  gap: 10px;
  max-width: 85%;
}
.chat-message-user {
  --msg-rgb: 139, 92, 246;
  margin-left: auto;
  flex-direction: row-reverse;
}
.chat-message-assistant {
  --msg-rgb: 133, 169, 255;
}
.chat-message-system {
  --msg-rgb: 255, 127, 80;
  max-width: 100%;
  justify-content: center;
}

/* Message Avatar */
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--msg-rgb), 0.15);
  border: 1px solid rgba(var(--msg-rgb), 0.3);
  flex-shrink: 0;
}
.chat-avatar i {
  font-size: 14px;
  color: rgb(var(--msg-rgb));
}

/* Message Bubble */
.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(var(--msg-rgb), 0.1);
  border: 1px solid rgba(var(--msg-rgb), 0.2);
}
.chat-message-user .chat-bubble {
  border-radius: 12px 12px 4px 12px;
}
.chat-message-assistant .chat-bubble {
  border-radius: 12px 12px 12px 4px;
}
.chat-message-system .chat-bubble {
  background: rgba(var(--msg-rgb), 0.05);
  border: 1px dashed rgba(var(--msg-rgb), 0.3);
  border-radius: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
}

/* Message Content */
.chat-bubble-text {
  font-size: 13px;
  color: var(--color-text-primary);
  line-height: 1.5;
}
.chat-bubble-time {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Typing Indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}
.chat-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--msg-rgb));
  animation: chat-typing-bounce 1.4s ease-in-out infinite;
}
.chat-typing-dot:nth-child(1) { animation-delay: 0s; }
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Chat Input Area */
.chat-input {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.chat-input-field {
  flex: 1;
  padding: 10px 14px;
  background: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-size: 13px;
  font-family: inherit;
  resize: none;
}
.chat-input-field::placeholder {
  color: var(--color-text-muted);
}
.chat-input-field:focus {
  outline: none;
  border-color: var(--color-accent);
}
.chat-send-btn {
  padding: 10px 16px;
  background: rgba(133, 169, 255, 0.15);
  border: 1px solid rgba(133, 169, 255, 0.4);
  border-radius: 8px;
  color: rgb(133, 169, 255);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chat-send-btn:hover {
  background: rgba(133, 169, 255, 0.25);
  border-color: rgb(133, 169, 255);
}
.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === DOCKED CHAT (Bottom of page, expand/collapse) === */
.chat-docked {
  --chat-rgb: 133, 169, 255;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--color-base);
  border-top: 1px solid rgba(var(--chat-rgb), 0.3);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  transition: height 0.25s ease;
}

/* Collapsed state - just header visible */
.chat-docked-collapsed {
  height: 48px;
}

/* Expanded state */
.chat-docked-expanded {
  height: 400px;
}

/* Large expanded state */
.chat-docked-expanded-lg {
  height: 60vh;
}

/* Docked Chat Header (always visible) */
.chat-docked-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.chat-docked-header:hover {
  background: rgba(var(--chat-rgb), 0.05);
}
.chat-docked-header-icon {
  font-size: 18px;
  color: rgb(var(--chat-rgb));
}
.chat-docked-header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.chat-docked-header-status {
  font-size: 11px;
  color: var(--color-text-muted);
}
.chat-docked-header-spacer {
  flex: 1;
}
.chat-docked-header-toggle {
  font-size: 12px;
  color: var(--color-text-muted);
  transition: transform 0.25s ease;
}
.chat-docked-expanded .chat-docked-header-toggle,
.chat-docked-expanded-lg .chat-docked-header-toggle {
  transform: rotate(180deg);
}

/* Active/Processing indicator */
.chat-docked-header-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--chat-rgb));
  animation: chat-docked-pulse 2s ease-in-out infinite;
}
@keyframes chat-docked-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Docked Chat Body */
.chat-docked-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-docked-collapsed .chat-docked-body {
  display: none;
}

/* Docked Chat Messages */
.chat-docked-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Docked Chat Input */
.chat-docked-input {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.chat-docked-input-field {
  flex: 1;
  padding: 10px 14px;
  background: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-primary);
  font-size: 13px;
  font-family: inherit;
  resize: none;
}
.chat-docked-input-field::placeholder {
  color: var(--color-text-muted);
}
.chat-docked-input-field:focus {
  outline: none;
  border-color: rgb(var(--chat-rgb));
  box-shadow: 0 0 0 3px rgba(var(--chat-rgb), 0.1);
}
.chat-docked-send {
  padding: 10px 20px;
  background: rgba(var(--chat-rgb), 0.15);
  border: 1px solid rgba(var(--chat-rgb), 0.4);
  border-radius: 6px;
  color: rgb(var(--chat-rgb));
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chat-docked-send:hover:not(:disabled) {
  background: rgba(var(--chat-rgb), 0.25);
  border-color: rgb(var(--chat-rgb));
}
.chat-docked-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Docked Chat Colors */
.chat-docked-success { --chat-rgb: 30, 255, 0; }
.chat-docked-danger { --chat-rgb: 220, 53, 69; }
.chat-docked-warning { --chat-rgb: 255, 127, 80; }
.chat-docked-info { --chat-rgb: 6, 182, 212; }
.chat-docked-accent { --chat-rgb: 133, 169, 255; }
.chat-docked-purple { --chat-rgb: 139, 92, 246; }
.chat-docked-teal { --chat-rgb: 20, 184, 166; }

/* Context bar (shows selected context above input) */
.chat-docked-context {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(var(--chat-rgb), 0.05);
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.chat-docked-context-label {
  color: rgb(var(--chat-rgb));
  font-weight: 500;
}
.chat-docked-context-value {
  color: var(--color-text-secondary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-docked-context-clear {
  padding: 2px 6px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.chat-docked-context-clear:hover {
  background: rgba(220, 53, 69, 0.15);
  color: rgb(220, 53, 69);
}



/* ========== shell.css ========== */
/* =============================================================================
   APPLICATION SHELL
   Header, Sidebar, Footer, Drawer, Content layout
   fromScratch Theme
   ============================================================================= */

/* === APP LAYOUT (Main container) === */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-base);
}

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* === HEADER === */
.app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 20px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  z-index: 50;
}

/* Header sections */
.app-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-primary);
}
.app-header-brand-icon {
  font-size: 22px;
  color: var(--color-accent);
}
.app-header-title {
  font-size: 14px;
  color: var(--color-text-secondary);
}
.app-header-spacer {
  flex: 1;
}
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === SIDEBAR === */
.app-sidebar {
  display: flex;
  flex-direction: column;
  width: 240px;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.2s ease;
}
.app-sidebar-collapsed {
  width: 56px;
}

/* Sidebar header */
.app-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}
.app-sidebar-collapsed .app-sidebar-header {
  justify-content: center;
  padding: 12px;
}
.app-sidebar-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.app-sidebar-collapsed .app-sidebar-title {
  display: none;
}
.app-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.app-sidebar-toggle:hover {
  background: rgba(133, 169, 255, 0.1);
  color: var(--color-accent);
}

/* Sidebar body */
.app-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

/* Sidebar section */
.app-sidebar-section {
  margin-bottom: 16px;
}
.app-sidebar-section-title {
  padding: 8px 12px 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.app-sidebar-collapsed .app-sidebar-section-title {
  display: none;
}

/* Sidebar nav item */
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.app-nav-item:hover {
  background: rgba(133, 169, 255, 0.08);
  color: var(--color-text-primary);
}
.app-nav-item-active {
  background: rgba(133, 169, 255, 0.12);
  color: var(--color-accent);
}
.app-nav-item-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.app-nav-item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-sidebar-collapsed .app-nav-item-text {
  display: none;
}
.app-nav-item-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(133, 169, 255, 0.2);
  color: var(--color-accent);
}
.app-sidebar-collapsed .app-nav-item-badge {
  display: none;
}

/* Collapsed sidebar - center icons */
.app-sidebar-collapsed .app-nav-item {
  justify-content: center;
  padding: 10px;
}

/* Sidebar footer */
.app-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--color-border);
}

/* === MAIN CONTENT === */
.app-content {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.app-content-inner {
  flex: 1;
  padding: 24px;
}
.app-content-flush {
  padding: 0;
}

/* === FOOTER === */
.app-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
  padding: 0 20px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.app-footer-spacer {
  flex: 1;
}

/* === DRAWER (Right panel) === */
.app-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
}
.app-drawer-open {
  transform: translateX(0);
}

/* Drawer sizes */
.app-drawer-sm { width: 320px; }
.app-drawer-md { width: 400px; }
.app-drawer-lg { width: 500px; }
.app-drawer-xl { width: 640px; }

/* Drawer header */
.app-drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.app-drawer-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.app-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.app-drawer-close:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
  color: rgb(220, 53, 69);
}

/* Drawer body */
.app-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Drawer footer */
.app-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* Drawer backdrop */
.app-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 55;
}
.app-drawer-backdrop-visible {
  opacity: 1;
  visibility: visible;
}

/* === PAGE HEADER (Inside content) === */
.app-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.app-page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.app-page-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
}
.app-page-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* === BREADCRUMBS === */
.app-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.app-breadcrumb {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.app-breadcrumb:hover {
  color: var(--color-accent);
}
.app-breadcrumb-current {
  color: var(--color-text-primary);
}
.app-breadcrumb-separator {
  color: var(--color-text-muted);
}


/* ========== sidebar.css ========== */
/* =============================================================================
   DYNAMIC SIDEBAR
   Multi-level navigation with visual hierarchy, connecting lines, and actions
   fromScratch Theme
   ============================================================================= */

/* === NAV GROUP (Top level section) === */
.nav-group {
  --nav-rgb: 133, 169, 255;
  margin-bottom: 8px;
}

/* Group Header - Level 0 (Section titles) */
.nav-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  color: rgb(var(--nav-rgb));
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 4px;
}
.nav-group-header:hover {
  background: rgba(var(--nav-rgb), 0.08);
}
.nav-group-header-icon {
  font-size: 14px;
  opacity: 0.7;
}
.nav-group-header-text {
  flex: 1;
}
.nav-group-header-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(var(--nav-rgb), 0.2);
  color: rgb(var(--nav-rgb));
}
.nav-group-header-toggle {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}
.nav-group-expanded .nav-group-header-toggle {
  transform: rotate(90deg);
}
.nav-group-header-action {
  opacity: 0;
  padding: 2px 6px;
  background: rgba(var(--nav-rgb), 0.15);
  border: none;
  border-radius: 4px;
  color: rgb(var(--nav-rgb));
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-group-header:hover .nav-group-header-action {
  opacity: 1;
}
.nav-group-header-action:hover {
  background: rgba(var(--nav-rgb), 0.3);
}

/* Group Body - contains nav items */
.nav-group-body {
  display: none;
  padding-left: 8px;
}
.nav-group-expanded .nav-group-body {
  display: block;
}

/* Group colors */
.nav-group-accent { --nav-rgb: 133, 169, 255; }
.nav-group-purple { --nav-rgb: 139, 92, 246; }
.nav-group-teal { --nav-rgb: 20, 184, 166; }
.nav-group-blue { --nav-rgb: 59, 130, 246; }
.nav-group-success { --nav-rgb: 30, 255, 0; }
.nav-group-warning { --nav-rgb: 255, 127, 80; }
.nav-group-danger { --nav-rgb: 220, 53, 69; }

/* === LEVEL 1 NAV ITEM (Primary items) === */
.nav-l1 {
  --item-rgb: 133, 169, 255;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 6px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.nav-l1:hover {
  background: rgba(var(--item-rgb), 0.08);
  color: var(--color-text-primary);
}
.nav-l1-active {
  background: rgba(var(--item-rgb), 0.12);
  color: rgb(var(--item-rgb));
  border-left: 3px solid rgb(var(--item-rgb));
  margin-left: -3px;
  padding-left: 12px;
}
.nav-l1-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.nav-l1-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-l1-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(var(--item-rgb), 0.15);
  color: rgb(var(--item-rgb));
  font-weight: 600;
}
.nav-l1-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.nav-l1:hover .nav-l1-actions {
  opacity: 1;
}
.nav-l1-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(var(--item-rgb), 0.1);
  border: none;
  color: rgb(var(--item-rgb));
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-l1-action:hover {
  background: rgba(var(--item-rgb), 0.25);
}
.nav-l1-expand {
  font-size: 10px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}
.nav-l1-expanded .nav-l1-expand {
  transform: rotate(90deg);
}

/* === LEVEL 2 NAV ITEMS (Child items with connecting lines) === */
.nav-l2-container {
  position: relative;
  margin-left: 14px;
  padding-left: 16px;
}
/* Vertical connecting line */
.nav-l2-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, 
    rgba(var(--item-rgb), 0.4) 0%, 
    rgba(var(--item-rgb), 0.1) 100%);
}

.nav-l2 {
  --item-rgb: 133, 169, 255;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 1px 0;
  border-radius: 4px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
/* Horizontal connecting line */
.nav-l2::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: linear-gradient(to right, 
    rgba(var(--item-rgb), 0.3) 0%, 
    rgba(var(--item-rgb), 0.1) 100%);
}
.nav-l2:hover {
  background: rgba(var(--item-rgb), 0.06);
  color: var(--color-text-secondary);
}
.nav-l2-active {
  background: rgba(var(--item-rgb), 0.1);
  color: rgb(var(--item-rgb));
}
.nav-l2-active::before {
  background: linear-gradient(to right, 
    rgb(var(--item-rgb)) 0%, 
    rgba(var(--item-rgb), 0.3) 100%);
  height: 2px;
}
.nav-l2-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--item-rgb), 0.3);
  flex-shrink: 0;
}
.nav-l2-active .nav-l2-dot {
  background: rgb(var(--item-rgb));
  box-shadow: 0 0 6px rgba(var(--item-rgb), 0.5);
}
.nav-l2-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-l2-badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(var(--item-rgb), 0.15);
  color: rgb(var(--item-rgb));
}
.nav-l2-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-l2-status-success { background: rgb(30, 255, 0); box-shadow: 0 0 6px rgba(30, 255, 0, 0.5); }
.nav-l2-status-warning { background: rgb(255, 127, 80); box-shadow: 0 0 6px rgba(255, 127, 80, 0.5); }
.nav-l2-status-danger { background: rgb(220, 53, 69); box-shadow: 0 0 6px rgba(220, 53, 69, 0.5); }
.nav-l2-status-processing { background: rgb(139, 92, 246); animation: nav-pulse 1.5s ease-in-out infinite; }

@keyframes nav-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* === LEVEL 3 NAV ITEMS (Tertiary - very compact) === */
.nav-l3-container {
  position: relative;
  margin-left: 10px;
  padding-left: 14px;
}
.nav-l3-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, 
    rgba(var(--item-rgb), 0.2) 0%, 
    transparent 100%);
}

.nav-l3 {
  --item-rgb: 133, 169, 255;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  margin: 1px 0;
  border-radius: 3px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.nav-l3::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: rgba(var(--item-rgb), 0.15);
}
.nav-l3:hover {
  background: rgba(var(--item-rgb), 0.05);
  color: var(--color-text-secondary);
}
.nav-l3-active {
  color: rgb(var(--item-rgb));
}

/* === INLINE ACTION BAR (Quick actions row) === */
.nav-actions-bar {
  display: flex;
  gap: 4px;
  padding: 6px 12px;
  margin: 4px 0;
}
.nav-action-btn {
  --btn-rgb: 133, 169, 255;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(var(--btn-rgb), 0.1);
  border: 1px solid rgba(var(--btn-rgb), 0.2);
  color: rgb(var(--btn-rgb));
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-action-btn:hover {
  background: rgba(var(--btn-rgb), 0.2);
  border-color: rgba(var(--btn-rgb), 0.4);
}
.nav-action-btn i {
  font-size: 12px;
}

/* Action button colors */
.nav-action-btn-success { --btn-rgb: 30, 255, 0; }
.nav-action-btn-danger { --btn-rgb: 220, 53, 69; }
.nav-action-btn-warning { --btn-rgb: 255, 127, 80; }
.nav-action-btn-purple { --btn-rgb: 139, 92, 246; }

/* === DIVIDER === */
.nav-divider {
  height: 1px;
  margin: 8px 12px;
  background: linear-gradient(to right, 
    transparent 0%, 
    var(--color-border) 20%, 
    var(--color-border) 80%, 
    transparent 100%);
}

/* === MINI PROFILE / USER SECTION === */
.nav-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: 6px;
  background: rgba(133, 169, 255, 0.05);
  border: 1px solid rgba(133, 169, 255, 0.1);
}
.nav-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(133, 169, 255, 0.3), rgba(139, 92, 246, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-accent);
}
.nav-profile-info {
  flex: 1;
  min-width: 0;
}
.nav-profile-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.nav-profile-role {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* === SEARCH IN SIDEBAR === */
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 8px;
  background: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.nav-search-icon {
  font-size: 14px;
  color: var(--color-text-muted);
}
.nav-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 12px;
  outline: none;
}
.nav-search-input::placeholder {
  color: var(--color-text-muted);
}
.nav-search-kbd {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-muted);
}

/* === STATS ROW === */
.nav-stats {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  margin: 4px 0;
}
.nav-stat {
  flex: 1;
  padding: 8px;
  background: rgba(133, 169, 255, 0.05);
  border-radius: 6px;
  text-align: center;
}
.nav-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
}
.nav-stat-label {
  font-size: 9px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   SWEEP EFFECTS — light sweep animation for
   icons/images and gradient text.
   Ported exactly from the Wintermute dashboard.
   ═══════════════════════════════════════════════ */

/* ── Keyframes ── */

/* For overlays (image ::after, text ::after) — includes opacity fade */
@keyframes sweepOverlay {
  0%   { background-position: 150% 0%; opacity: 0; }
  5%   { opacity: 0; }
  15%  { opacity: 1; }
  30%  { background-position: -50% 0%; opacity: 0; }
  100% { background-position: -50% 0%; opacity: 0; }
}

/* For inline sweep (font icons) — no opacity, just position */
@keyframes sweepInline {
  0%   { background-position: 150% 0%; }
  30%  { background-position: -50% 0%; }
  100% { background-position: -50% 0%; }
}


/* ── Image/Logo Sweep ──────────────────────────
   Exact Wintermute technique: a ::after overlay
   masked to the image shape via mask-image.

   Usage:
     <span class="sweep-logo" style="width:34px; height:34px; --sweep-mask:url('/logo.png');">
         <img src="/logo.png" alt="Logo">
     </span>
*/
.sweep-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sweep-logo > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}
.sweep-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  background-size: 200% 100%;
  -webkit-mask-image: var(--sweep-mask);
  mask-image: var(--sweep-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  animation: sweepOverlay 5s ease-in-out infinite;
  pointer-events: none;
}


/* ── Font Icon Sweep ───────────────────────────
   Uses background-clip:text on the <i> element.
   The sweep gradient IS the icon fill, clipped
   to the glyph shape. No mask needed.

   Usage:
     <i class="uil uil-cube sweep-icon"></i>
     <i class="uil uil-brain sweep-icon sweep-icon-purple"></i>

   Color variants:
     sweep-icon-accent (default), sweep-icon-success,
     sweep-icon-danger, sweep-icon-purple, etc.
*/
.sweep-icon {
  --sweep-icon-color: var(--color-accent);
  position: relative;
  background: linear-gradient(110deg,
    var(--sweep-icon-color) 40%,
    rgba(255, 255, 255, 0.6) 50%,
    var(--sweep-icon-color) 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
  animation: sweepInline 5s ease-in-out infinite;
}

/* Icon color variants */
.sweep-icon-accent  { --sweep-icon-color: var(--color-accent); }
.sweep-icon-success { --sweep-icon-color: rgb(30, 255, 0); }
.sweep-icon-danger  { --sweep-icon-color: rgb(220, 53, 69); }
.sweep-icon-warning { --sweep-icon-color: rgb(255, 127, 80); }
.sweep-icon-info    { --sweep-icon-color: rgb(6, 182, 212); }
.sweep-icon-purple  { --sweep-icon-color: rgb(139, 92, 246); }
.sweep-icon-teal    { --sweep-icon-color: rgb(20, 184, 166); }
.sweep-icon-blue    { --sweep-icon-color: rgb(59, 130, 246); }
.sweep-icon-yellow  { --sweep-icon-color: rgb(255, 204, 0); }
.sweep-icon-brand   { --sweep-icon-color: #ee1c68; }


/* ── Gradient Text with Sweep ──────────────────
   Exact Wintermute technique: gradient-filled text
   with a ::after overlay using the same text
   (via data-text) and background-clip:text.

   Usage:
     <span class="sweep-text" data-text="MY APP">MY APP</span>
     <span class="sweep-text sweep-text-fire" data-text="BRAND">BRAND</span>

   Custom colors:
     <span class="sweep-text" data-text="X"
       style="--sweep-from:#ff0;--sweep-via:#f0f;--sweep-to:#00f;">X</span>
*/
.sweep-text {
  --sweep-from: #e6edf3;
  --sweep-via: #58a6ff;
  --sweep-to: #1158c7;
  position: relative;
  margin: 0;
  background: linear-gradient(135deg, var(--sweep-from) 0%, var(--sweep-via) 50%, var(--sweep-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.sweep-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweepOverlay 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* ── Text gradient variants ── */

/* Frost — the original Wintermute: white → blue → deep blue */
.sweep-text-frost {
  --sweep-from: #e6edf3;
  --sweep-via: #58a6ff;
  --sweep-to: #1158c7;
}

/* Fire — warm ember: gold → orange-red → deep red */
.sweep-text-fire {
  --sweep-from: #ffd700;
  --sweep-via: #ff6b35;
  --sweep-to: #c41e3a;
}

/* Aurora — green → teal → cyan */
.sweep-text-aurora {
  --sweep-from: #a8ff78;
  --sweep-via: #14b8a6;
  --sweep-to: #06b6d4;
}

/* Neon — magenta → violet → electric purple */
.sweep-text-neon {
  --sweep-from: #ff6ec7;
  --sweep-via: #a855f7;
  --sweep-to: #6d28d9;
}

/* Solar — pale gold → amber → burnt orange */
.sweep-text-solar {
  --sweep-from: #fff4cc;
  --sweep-via: #ffb347;
  --sweep-to: #e67e22;
}

/* Brand — the NSi4 gradient: pink → orange */
.sweep-text-brand {
  --sweep-from: #ee1c68;
  --sweep-via: #f47a3e;
  --sweep-to: #fbb138;
}

/* Emerald — mint → green → forest */
.sweep-text-emerald {
  --sweep-from: #d1fae5;
  --sweep-via: #34d399;
  --sweep-to: #059669;
}

/* Steel — silver → slate → charcoal (subtle, professional) */
.sweep-text-steel {
  --sweep-from: #e2e8f0;
  --sweep-via: #94a3b8;
  --sweep-to: #475569;
}

/* Rose — pink → rose → deep rose */
.sweep-text-rose {
  --sweep-from: #fecdd3;
  --sweep-via: #fb7185;
  --sweep-to: #e11d48;
}
