@import "https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap";


@layer components;

/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */

@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-duration: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-black: #000;
    --spacing: .25rem;
    --container-lg: 32rem;
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --radius-xs: .125rem;
    --radius-sm: .25rem;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --blur-sm: 8px;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

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

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

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

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

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

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

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

  b, strong {
    font-weight: bolder;
  }

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

  small {
    font-size: 80%;
  }

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

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

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

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

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

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

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

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

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

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

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

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

  ::placeholder {
    opacity: 1;
  }

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

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

  textarea {
    resize: vertical;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .visible {
    visibility: visible;
  }

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

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

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

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

  .top-\[50\%\] {
    top: 50%;
  }

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

  .left-\[50\%\] {
    left: 50%;
  }

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

  .container {
    width: 100%;
  }

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

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

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

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

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

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

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

  .table {
    display: table;
  }

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

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

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

  .w-\[90vw\] {
    width: 90vw;
  }

  .w-full {
    width: 100%;
  }

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

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

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

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

  .grow {
    flex-grow: 1;
  }

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

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

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

  .resize {
    resize: both;
  }

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

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

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

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

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

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

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

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

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

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

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

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

  .overflow-hidden {
    overflow: hidden;
  }

  .rounded {
    border-radius: 8px;
  }

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

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

  .rounded-l-none {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .rounded-r-none {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

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

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

  .border-\[color\:var\(--border-strong\)\] {
    border-color: var(--border-strong);
  }

  .border-\[rgba\(245\,158\,11\,0\.4\)\] {
    border-color: #f59e0b66;
  }

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

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

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

  .bg-black\/60 {
    background-color: #0009;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

  .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));
  }

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

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

  .leading-none {
    --tw-leading: 1;
    line-height: 1;
  }

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

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

  .tracking-\[0\.01em\] {
    --tw-tracking: .01em;
    letter-spacing: .01em;
  }

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

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

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

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

  .underline-offset-2 {
    text-underline-offset: 2px;
  }

  .opacity-70 {
    opacity: .7;
  }

  .shadow-md {
    --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, #0000001a), 0 2px 4px -2px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .shadow-xl {
    --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, #0000001a), 0 8px 10px -6px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .ring-offset-background {
    --tw-ring-offset-color: var(--bg-base);
  }

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

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

  .backdrop-blur-sm {
    --tw-backdrop-blur: blur(var(--blur-sm));
    -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
    backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
  }

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

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

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

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

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

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

  @media (hover: hover) {
    .hover\:border-\[color\:rgba\(77\,143\,255\,0\.4\)\]:hover {
      border-color: #4d8fff66;
    }

    .hover\:border-\[color\:var\(--border-default\)\]:hover {
      border-color: var(--border-default);
    }

    .hover\:border-\[rgba\(245\,158\,11\,0\.4\)\]:hover {
      border-color: #f59e0b66;
    }

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

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

    .hover\:bg-\[rgba\(245\,158\,11\,0\.15\)\]:hover {
      background-color: #f59e0b26;
    }

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

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

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

    .hover\:underline:hover {
      text-decoration-line: underline;
    }

    .hover\:opacity-100:hover {
      opacity: 1;
    }
  }

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

  .focus\:ring-\[color\:var\(--accent\)\]:focus {
    --tw-ring-color: var(--accent);
  }

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

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

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

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

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

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

  .aria-pressed\:border-\[color\:rgba\(77\,143\,255\,0\.3\)\][aria-pressed="true"] {
    border-color: #4d8fff4d;
  }

  .aria-pressed\:border-\[rgba\(245\,158\,11\,0\.7\)\][aria-pressed="true"] {
    border-color: #f59e0bb3;
  }

  .aria-pressed\:bg-\[color\:var\(--accent-dim\)\][aria-pressed="true"] {
    background-color: var(--accent-dim);
  }

  .aria-pressed\:bg-\[rgba\(245\,158\,11\,0\.25\)\][aria-pressed="true"] {
    background-color: #f59e0b40;
  }

  .aria-pressed\:text-\[color\:var\(--accent-hover\)\][aria-pressed="true"] {
    color: var(--accent-hover);
  }

  .aria-pressed\:text-\[color\:var\(--text-primary\)\][aria-pressed="true"] {
    color: var(--text-primary);
  }

  .data-\[state\=active\]\:bg-\[color\:var\(--bg-overlay\)\][data-state="active"] {
    background-color: var(--bg-overlay);
  }

  .data-\[state\=active\]\:text-\[color\:var\(--text-primary\)\][data-state="active"] {
    color: var(--text-primary);
  }

  @media (min-width: 40rem) {
    .sm\:rounded-lg {
      border-radius: var(--radius-lg);
    }
  }

  .\[\&\>svg\]\:size-3\.5 > svg {
    width: calc(var(--spacing) * 3.5);
    height: calc(var(--spacing) * 3.5);
  }
}

:root {
  --bg-void: #07090f;
  --bg-base: #0c0f1a;
  --bg-surface: #111827;
  --bg-raised: #172035;
  --bg-overlay: #1d2840;
  --bg-selected: #1a3050;
  --border-faint: #ffffff08;
  --border-subtle: #ffffff0e;
  --border-default: #ffffff17;
  --border-strong: #ffffff26;
  --border-active: #3d5a8a;
  --text-primary: #dce8ff;
  --text-secondary: #7b92b4;
  --text-muted: #3d5068;
  --text-link: #5ba4f5;
  --text-link-hover: #82beff;
  --accent: #4d8fff;
  --accent-hover: #6aaeff;
  --accent-dim: #4d8fff1a;
  --accent-glow: #4d8fff38;
  --feather: #8b7cf6;
  --feather-dim: #8b7cf612;
  --feather-glow: #8b7cf62e;
  --error: #f87171;
  --error-dim: #f871711a;
  --warning: #fbbf24;
  --warning-dim: #fbbf2414;
  --success: #34d399;
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --sidebar-w: 210px;
  --topbar-h: 38px;
  --font-ui: "Figtree", -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;
}

html, body, #root {
  width: 100%;
  height: 100%;
  font-family: var(--font-ui);
  background: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
  overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-active);
}

.app-shell {
  grid-template-rows: 1fr auto;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  display: grid;
  position: relative;
}

.app-shell.has-sidebar {
  grid-template-rows: var(--topbar-h) 1fr auto;
  grid-template-columns: 1fr 1fr;
}

.app-shell.has-editor-width, .app-shell.has-editor-width.has-sidebar {
  grid-template-columns: var(--editor-w) minmax(320px, 1fr);
}

.app {
  grid-template-rows: 1fr auto;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  display: grid;
}

.app.serve-mode {
  grid-template-columns: 1fr;
}

.app.serve-mode .preview-column {
  grid-column: 1;
}

.edit-pane {
  border-right: 1px solid var(--border-default);
  flex-direction: column;
  grid-area: 1 / 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

.edit-pane:after {
  content: "";
  background: linear-gradient(to bottom, transparent 0%, var(--feather-glow) 30%, var(--accent-glow) 55%, var(--feather-glow) 80%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  width: 1px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
}

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

.preview-column {
  flex-direction: column;
  grid-area: 1 / 2;
  display: flex;
  overflow: hidden;
}

.preview-pane {
  background: var(--bg-base);
  background-image: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 60%, var(--bg-base) 100%), linear-gradient(var(--border-faint) 1px, transparent 1px), linear-gradient(90deg, var(--border-faint) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
  overflow: hidden;
}

.preview-container {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: auto;
}

.preview-container svg {
  filter: drop-shadow(0 2px 20px #00000080);
  max-width: 100%;
  max-height: 100%;
  overflow: visible;
}

.warning-panel {
  background: var(--bg-void);
  border-top: 1px solid var(--border-default);
  grid-area: 2 / 1 / auto / -1;
  max-height: 200px;
  overflow-y: auto;
}

.warning-panel-header {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  justify-content: space-between;
  align-items: center;
  padding: 5px 14px;
  font-size: 10.5px;
  font-weight: 700;
  transition: background .15s, color .15s;
  display: flex;
}

.warning-panel-header:hover {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.warning-list {
  padding: 2px 8px 8px;
  list-style: none;
}

.warning-item {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  cursor: pointer;
  border-left: 2px solid #0000;
  border-radius: 0;
  margin: 1px 0;
  padding: 3px 8px 3px 10px;
  transition: background .1s;
}

.warning-item:hover {
  background: var(--bg-surface);
  border-left-color: var(--border-strong);
}

.warning-icon {
  margin-right: 6px;
}

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

.warning-icon.warning {
  color: var(--warning);
}

.warning-details {
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  margin-left: 20px;
}

.diagram-tab-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
  align-items: stretch;
  gap: 0;
  height: 36px;
  padding: 0 10px;
  display: flex;
  overflow-x: auto;
}

.diagram-tab {
  height: 100%;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-ui);
  letter-spacing: .015em;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  border-radius: 0;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  transition: color .15s, border-color .15s;
  display: inline-flex;
}

.diagram-tab:hover {
  color: var(--text-secondary);
}

.diagram-tab--active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.diagram-tab-icon {
  opacity: .7;
  font-size: 11px;
}

.edit-tab-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
  align-items: stretch;
  height: 36px;
  padding: 0 10px;
  display: flex;
}

.edit-pane-toolbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  display: flex;
}

.edit-tab {
  height: 100%;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-ui);
  letter-spacing: .015em;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  border-radius: 0;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  transition: color .15s, border-color .15s;
  display: inline-flex;
}

.edit-tab:hover {
  color: var(--text-secondary);
}

.edit-tab--active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.edit-tab-icon {
  opacity: .7;
  font-size: 11px;
}

.chat-pane {
  background: var(--bg-base);
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.chat-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  display: flex;
}

.chat-scope-indicator {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.toolbar-btn--new-session {
  flex-shrink: 0;
  font-size: 11px;
}

.chat-messages {
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 12px;
  display: flex;
  overflow-y: auto;
}

.chat-empty {
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
  font-family: var(--font-ui);
  margin-top: 24px;
}

.chat-empty-state {
  font-family: var(--font-ui);
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  display: flex;
}

.chat-empty-state__actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  display: flex;
}

.chat-empty-state__hint {
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  font-size: 11px;
}

.toolbar-btn--start-interview, .toolbar-btn--start-review {
  padding: 6px 14px;
  font-size: 12px;
}

.chat-message {
  flex-direction: column;
  gap: 3px;
  max-width: 90%;
  display: flex;
}

.chat-message--user {
  align-self: flex-end;
}

.chat-message--assistant {
  align-self: flex-start;
}

.chat-message-role {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-ui);
}

.chat-message--user .chat-message-role {
  text-align: right;
}

.chat-message-content {
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  font-family: var(--font-ui);
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 8px 12px;
}

.chat-message--user .chat-message-content {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
}

.chat-message--assistant .chat-message-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
}

.chat-message-content--markdown {
  white-space: normal;
}

.chat-message-content--markdown p {
  margin-bottom: 8px;
}

.chat-message-content--markdown p:last-child {
  margin-bottom: 0;
}

.chat-message-content--markdown h1, .chat-message-content--markdown h2, .chat-message-content--markdown h3 {
  color: var(--text-primary);
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.chat-message-content--markdown code {
  background: var(--bg-void);
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--accent-hover);
  padding: 1px 4px;
}

.chat-message-content--markdown pre {
  background: var(--bg-void);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  padding: 8px 10px;
  overflow-x: auto;
}

.chat-message-content--markdown pre code {
  background: none;
  padding: 0;
  font-size: 12px;
}

.chat-message-content--markdown ul, .chat-message-content--markdown ol {
  margin-bottom: 8px;
  padding-left: 20px;
}

.chat-message-content--markdown a {
  color: var(--accent-hover);
  text-decoration: underline;
}

.chat-input-form {
  border-top: 1px solid var(--border-default);
  background: var(--bg-surface);
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
  padding: 10px 12px;
  display: flex;
}

.chat-input {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-ui);
  resize: none;
  box-sizing: border-box;
  padding: 8px 10px;
  line-height: 1.5;
  transition: border-color .15s;
}

.chat-input:focus {
  border-color: var(--accent);
  outline: none;
}

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

.toolbar-btn--send {
  align-self: flex-end;
}

.chat-message--loading {
  color: var(--text-muted);
  padding: 8px 12px;
  font-size: 12.5px;
  font-style: italic;
}

.chat-loading-indicator:after {
  content: "";
  animation: 1.2s steps(3, end) infinite loading-dots;
}

@keyframes loading-dots {
  0% {
    content: "";
  }

  33% {
    content: ".";
  }

  66% {
    content: "..";
  }

  100% {
    content: "...";
  }
}

.chat-message--error {
  border-left: 2px solid var(--warning, #f59e0b);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #f59e0b0f;
  margin-bottom: 8px;
  padding: 8px 12px;
}

.chat-message--error .chat-message-content {
  color: var(--warning, #f59e0b);
  margin: 0 0 8px;
  font-size: 13px;
}

.toolbar-btn--retry, .toolbar-btn--go-to-settings {
  padding: 3px 10px;
  font-size: 12px;
}

.chat-patch-proposal {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  overflow: hidden;
}

.chat-patch-proposal__description {
  color: var(--text-secondary);
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border-faint);
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
}

.chat-patch-proposal__code {
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: var(--bg-void);
  white-space: pre;
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  overflow-x: auto;
}

.chat-patch-proposal__actions {
  background: var(--bg-raised);
  border-top: 1px solid var(--border-faint);
  gap: 6px;
  padding: 8px 12px;
  display: flex;
}

.toolbar-btn--apply-patch {
  color: var(--accent);
}

.toolbar-btn--reject-patch {
  color: var(--text-muted);
}

.api-key-setup {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 32px 20px;
  display: flex;
}

.api-key-setup__message {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.toolbar-btn--go-to-settings {
  font-size: 13px;
}

.settings-pane {
  height: 100%;
  padding: 16px;
  overflow-y: auto;
}

.settings-section__title {
  color: var(--text-primary);
  margin: 0 0 16px;
  font-size: 13.5px;
  font-weight: 600;
}

.settings-security-notice {
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: #f59e0b0f;
  border: 1px solid #f59e0b40;
  margin-bottom: 20px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.65;
}

.settings-security-notice__heading {
  color: var(--warning, #f59e0b);
  margin: 0 0 8px;
  font-weight: 600;
}

.settings-security-notice p {
  margin: 0 0 8px;
}

.settings-security-notice p:last-of-type {
  margin-bottom: 8px;
}

.settings-security-notice__link {
  color: var(--accent);
  margin-top: 4px;
  font-size: 12px;
  text-decoration: none;
  display: block;
}

.settings-security-notice__link:hover {
  text-decoration: underline;
}

.settings-field {
  margin-bottom: 14px;
}

.settings-field__label {
  color: var(--text-muted);
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  display: block;
}

.settings-field__input {
  box-sizing: border-box;
  background: var(--bg-void);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--text-primary);
  font-family: var(--font-mono);
  outline: none;
  padding: 7px 10px;
  font-size: 12px;
  transition: border-color .12s;
}

.settings-field__input:focus {
  border-color: var(--accent);
}

.settings-field--checkbox .settings-field__label--checkbox {
  color: var(--text-secondary);
  cursor: pointer;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  display: flex;
}

.settings-field__hint {
  color: var(--text-muted);
  margin: 4px 0 0 22px;
  font-size: 11.5px;
  line-height: 1.5;
}

.settings-actions {
  gap: 8px;
  margin-top: 20px;
  display: flex;
}

.toolbar-btn--save-key, .toolbar-btn--clear-key {
  font-size: 13px;
}

.deploy-block-selector {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  height: 22px;
  color: var(--text-secondary);
  font-size: 11px;
  font-family: var(--font-ui);
  cursor: pointer;
  border-radius: 4px;
  align-self: center;
  margin-left: 4px;
  padding: 2px 6px;
}

.deploy-block-selector:focus {
  border-color: var(--accent);
  outline: none;
}

.karasu-highlighted {
  filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 12px var(--accent-glow));
}

.breadcrumb {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
  align-items: center;
  gap: 1px;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  display: flex;
}

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: .5;
  margin: 0 1px;
  font-size: 9px;
  line-height: 1;
}

.breadcrumb-link {
  color: var(--text-link);
  cursor: pointer;
  font-size: 11.5px;
  font-family: var(--font-ui);
  border-radius: var(--radius-xs);
  background: none;
  border: none;
  padding: 2px 5px;
  transition: background .1s, color .1s;
}

.breadcrumb-link:hover {
  background: var(--accent-dim);
  color: var(--text-link-hover);
}

.breadcrumb-current {
  color: var(--text-primary);
  padding: 2px 5px;
  font-size: 11.5px;
  font-weight: 600;
}

.diagnostic-banner {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-family: var(--font-mono);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  flex-direction: column;
  gap: 3px;
  max-height: 120px;
  padding: 8px 12px;
  display: flex;
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  overflow-y: auto;
  box-shadow: 0 8px 28px #0000008c;
}

.diagnostic-banner__item--error {
  color: var(--error);
}

.diagnostic-banner__item--warning {
  color: var(--warning);
}

.diagnostic-banner__item--info {
  color: #93c5fd;
}

.diagnostic-banner__item--error:before, .diagnostic-banner__item--warning:before, .diagnostic-banner__item--info:before {
  margin-right: 6px;
  font-weight: 600;
  display: inline-block;
}

.diagnostic-banner__item--error:before {
  content: "✕";
}

.diagnostic-banner__item--warning:before {
  content: "⚠";
}

.diagnostic-banner__item--info:before {
  content: "ℹ";
}

.preview-pane--has-errors .preview-container svg {
  opacity: .45;
}

.error-state-overlay {
  pointer-events: none;
  background: var(--error-dim);
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  display: flex;
  position: absolute;
  inset: 0;
}

.error-state-badge {
  background: var(--error);
  color: #0f0f0f;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .02em;
  padding: 4px 12px;
  box-shadow: 0 2px 8px #00000073;
}

.project-selector {
  background: var(--bg-void);
  border-bottom: 1px solid var(--border-default);
  background-image: linear-gradient(#ffffff06 0%, #0000 100%);
  grid-area: 1 / 1 / auto / -1;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  display: flex;
}

.project-selector:before {
  content: "鴉";
  color: var(--text-muted);
  opacity: .4;
  flex-shrink: 0;
  margin-right: 2px;
  font-size: 15px;
  line-height: 1;
}

.project-selector-dropdown {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-ui);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%233d5068' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  min-width: 176px;
  padding: 4px 26px 4px 9px;
  transition: border-color .15s, box-shadow .15s;
}

.project-selector-dropdown:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
  outline: none;
}

.project-selector-actions, .project-selector-create {
  align-items: center;
  gap: 4px;
  display: flex;
}

.project-selector-btn {
  color: var(--text-muted);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-ui);
  cursor: pointer;
  letter-spacing: .01em;
  background: none;
  padding: 3px 9px;
  transition: all .12s;
}

.project-selector-btn:hover {
  background: var(--bg-raised);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.project-selector-btn-danger:hover {
  background: var(--error-dim);
  border-color: var(--error);
  color: var(--error);
}

.project-selector-btn--export {
  margin-left: 8px;
}

.project-selector-input {
  background: var(--bg-void);
  color: var(--text-primary);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-ui);
  width: 160px;
  box-shadow: 0 0 0 2px var(--accent-dim);
  padding: 3px 9px;
}

.project-selector-input:focus {
  outline: none;
}

.file-tree {
  background: var(--bg-void);
  flex-direction: column;
  flex: 1;
  display: flex;
  overflow-y: auto;
}

.file-tree-header {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  border-bottom: 1px solid var(--border-faint);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px 7px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.file-tree-header-actions {
  gap: 2px;
  display: flex;
}

.file-tree-header-btn {
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 5px;
  font-size: 12px;
  line-height: 1;
  transition: background .12s, color .12s;
}

.file-tree-header-btn:hover {
  background: var(--bg-raised);
  color: var(--text-secondary);
}

.file-tree-content {
  flex: 1;
  padding: 3px 0;
  overflow-y: auto;
}

.file-tree-item {
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border-left: 2px solid #0000;
  align-items: center;
  padding: 4px 10px;
  font-size: 12.5px;
  transition: background .1s, border-color .1s, color .1s;
  display: flex;
}

.file-tree-item:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-left-color: var(--border-strong);
}

.file-tree-item-selected {
  background: var(--bg-selected);
  color: var(--text-primary);
  border-left-color: var(--accent);
}

.file-tree-icon {
  text-align: center;
  width: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 6px;
  font-size: 10px;
}

.file-tree-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.file-tree-inline-input {
  background: var(--bg-void);
  color: var(--text-primary);
  border: 1px solid var(--accent);
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-family: var(--font-ui);
  width: calc(100% - 16px);
  box-shadow: 0 0 0 2px var(--accent-dim);
  outline: none;
  margin: 2px 0;
  padding: 2px 6px;
}

.context-menu {
  z-index: 1000;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  min-width: 148px;
  padding: 4px 0;
  animation: .1s ease-out contextMenuReveal;
  position: fixed;
  box-shadow: 0 10px 30px #000000a6, 0 2px 8px #0006, inset 0 1px #ffffff0a;
}

@keyframes contextMenuReveal {
  from {
    opacity: 0;
    transform: scale(.95) translateY(-5px);
  }

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

.context-menu-item {
  width: 100%;
  font-size: 12.5px;
  font-family: var(--font-ui);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 13px;
  transition: background .1s, color .1s;
  display: block;
}

.context-menu-item:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
}

.context-menu-item-danger:hover {
  background: var(--error-dim);
  color: var(--error);
}

.context-menu-separator {
  background: var(--border-default);
  height: 1px;
  margin: 4px 0;
}

.context-menu-header {
  padding: 6px 13px 4px;
}

.context-menu-header__title {
  font-size: 12px;
  font-family: var(--font-ui);
  color: var(--text-primary);
}

.context-menu-header__subtitle {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--text-tertiary, var(--text-secondary));
  margin-top: 2px;
}

.context-menu-header__target {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--text-tertiary, var(--text-secondary));
  cursor: help;
  margin-top: 2px;
}

.context-menu-section-label {
  font-size: 10.5px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-tertiary, var(--text-secondary));
  padding: 4px 13px;
}

.context-menu-item:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.context-menu-item:disabled:hover {
  color: var(--text-secondary);
  background: none;
}

.context-menu-hint {
  font-size: 11px;
  font-family: var(--font-ui);
  color: var(--text-tertiary, var(--text-secondary));
  max-width: 240px;
  padding: 6px 13px 8px;
  line-height: 1.4;
}

.edge-context-menu {
  min-width: 200px;
}

.preview-container svg .krs-edge--interactive {
  cursor: context-menu;
}

.preview-container svg .krs-edge--interactive:hover line:not(.krs-edge__hitline), .preview-container svg .krs-edge--interactive:hover polyline:not(.krs-edge__hitline) {
  stroke-width: 3px;
  filter: brightness(1.4);
}

.preview-container svg .krs-edge--interactive:hover text {
  filter: brightness(1.4);
}

.preview-container svg .krs-edge {
  transition: opacity .15s;
}

.preview-container svg .krs-edge--interactive:hover {
  opacity: 1 !important;
}

.preview-container svg:has(.krs-edge--interactive:hover) .krs-edge:not(:hover) {
  opacity: .25 !important;
}

.app-shell .editor-preview-handle {
  cursor: col-resize;
  z-index: 50;
  background: none;
  grid-area: 1 / 1;
  place-self: stretch end;
  width: 6px;
  margin-right: -3px;
  transition: background .15s;
}

.app-shell.has-sidebar .editor-preview-handle {
  grid-row: 2;
}

.app-shell .editor-preview-handle:hover, .app-shell.editor-dragging .editor-preview-handle {
  background: var(--accent-glow);
}

.app-shell.editor-dragging, .app-shell.editor-dragging * {
  -webkit-user-select: none;
  user-select: none;
  cursor: col-resize !important;
}

.app-shell.has-sidebar .edit-area {
  grid-area: 2 / 1;
  overflow: hidden;
}

.app-shell.has-sidebar .preview-column {
  flex-direction: column;
  grid-area: 2 / 2;
  display: flex;
  overflow: hidden;
}

.app-shell.has-sidebar .warning-panel {
  grid-area: 3 / 1 / auto / -1;
}

.edit-area {
  flex-direction: row;
  grid-area: 1 / 1;
  height: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.edit-area.has-sidebar .sidebar-area {
  width: var(--sidebar-w);
  background: var(--bg-void);
  border-right: 1px solid var(--border-subtle);
  flex-direction: column;
  flex-shrink: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.sidebar-resize-handle {
  cursor: col-resize;
  z-index: 50;
  background: none;
  width: 6px;
  height: 100%;
  transition: background .15s;
  position: absolute;
  top: 0;
  right: -3px;
}

.sidebar-resize-handle:hover, .edit-area.sidebar-dragging .sidebar-resize-handle {
  background: var(--accent-glow);
}

.edit-area.sidebar-dragging, .edit-area.sidebar-dragging * {
  -webkit-user-select: none;
  user-select: none;
  cursor: col-resize !important;
}

.edit-area .edit-pane {
  flex: 1;
  min-width: 0;
}

.edit-area.has-sidebar .edit-pane:after {
  content: "";
  background: linear-gradient(to bottom, transparent 0%, var(--feather-glow) 35%, var(--accent-glow) 55%, var(--feather-glow) 75%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  width: 1px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
}

.activity-bar {
  background: var(--bg-void);
  border-right: 1px solid var(--border-subtle);
  flex-direction: column;
  flex: none;
  align-items: stretch;
  width: 44px;
  height: 100%;
  padding-top: 4px;
  display: flex;
}

.activity-bar-btn {
  color: var(--text-muted);
  font-family: var(--font-ui);
  letter-spacing: .04em;
  cursor: pointer;
  background: none;
  border: none;
  border-left: 2px solid #0000;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  font-size: 9px;
  font-weight: 600;
  transition: background .12s, color .12s, border-color .12s;
  display: flex;
}

.activity-bar-btn:hover {
  color: var(--text-secondary);
  background: var(--bg-raised);
}

.activity-bar-btn--active {
  color: var(--text-primary);
  border-left-color: var(--accent);
}

.activity-bar-btn__icon {
  justify-content: center;
  align-items: center;
  line-height: 0;
  display: inline-flex;
}

.activity-bar-btn__label {
  text-transform: uppercase;
}

.app-shell.preview-focused {
  grid-template-rows: 1fr auto;
  grid-template-columns: 1fr;
}

.app-shell.preview-focused .edit-area {
  display: none;
}

.app-shell.preview-focused .preview-column {
  grid-area: 1 / 1;
}

.app-shell.preview-focused .warning-panel {
  grid-area: 2 / 1;
}

.app-shell.preview-focused .project-selector {
  display: none;
}

.opfs-banner {
  font-size: 12px;
  font-family: var(--font-mono);
  color: #fde68a;
  text-align: center;
  background: linear-gradient(90deg, #2d1700, #1e1000);
  border-bottom: 1px solid #fbbf2466;
  grid-column: 1 / -1;
  padding: 5px 14px;
}

.app-loading {
  height: 100%;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-ui);
  letter-spacing: .08em;
  justify-content: center;
  align-items: center;
  display: flex;
}

.node-detail-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  flex-direction: column;
  display: flex;
  overflow: hidden;
  box-shadow: 0 16px 48px #000000a6, 0 4px 16px #0006, inset 0 1px #ffffff0a;
}

.node-detail-header {
  border-bottom: 1px solid var(--border-default);
  background: linear-gradient(to bottom, var(--bg-overlay) 0%, var(--bg-raised) 100%);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  display: flex;
}

.node-detail-icon {
  font-size: 15px;
}

.node-detail-label {
  color: var(--text-primary);
  letter-spacing: -.01em;
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
}

.node-detail-close {
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-xs);
  background: none;
  border: none;
  padding: 1px 5px;
  font-size: 16px;
  line-height: 1;
  transition: all .12s;
}

.node-detail-close:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}

.node-detail-description {
  color: var(--text-secondary);
  max-height: 200px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.65;
  overflow-y: auto;
}

.node-detail-description p {
  margin-bottom: 8px;
}

.node-detail-description h1, .node-detail-description h2, .node-detail-description h3 {
  color: var(--text-primary);
  margin: 8px 0 4px;
  font-size: 13px;
}

.node-detail-description code {
  background: var(--bg-void);
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--accent-hover);
  padding: 1px 4px;
}

.node-detail-description ul, .node-detail-description ol {
  margin-bottom: 8px;
  padding-left: 20px;
}

.node-detail-section {
  border-top: 1px solid var(--border-subtle);
  padding: 8px 12px;
}

.node-detail-section-title {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 5px;
  font-size: 10.5px;
  font-weight: 700;
}

.node-detail-links {
  padding: 0;
  list-style: none;
}

.node-detail-links li {
  margin: 2px 0;
}

.node-detail-links a {
  color: var(--text-link);
  font-size: 13px;
  text-decoration: none;
  transition: color .12s;
}

.node-detail-links a:hover {
  color: var(--text-link-hover);
}

.node-detail-prop {
  color: var(--text-muted);
  font-size: 11.5px;
  font-family: var(--font-mono);
  margin: 2px 0;
}

.node-detail-nav-btn {
  color: #60a5fa;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 1px solid #334155;
  border-radius: 4px;
  width: 100%;
  padding: 4px 8px;
  font-size: 12px;
  transition: background .15s;
  display: block;
}

.node-detail-nav-btn:hover {
  background: #1e3a5f;
  border-color: #3b82f6;
}

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

.edge-detail-item {
  border-bottom: 1px solid var(--border-default);
  flex-direction: column;
  gap: 1px;
  padding: 6px 0;
  display: flex;
}

.edge-detail-item:last-child {
  border-bottom: none;
}

.edge-detail-route {
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-mono);
}

.edge-detail-label-text {
  color: var(--text-muted);
  font-size: 11.5px;
  font-style: italic;
}

.edge-detail-item--added, .edge-detail-item--removed, .edge-detail-item--unchanged {
  flex-flow: wrap;
  align-items: baseline;
  gap: 6px;
  padding-left: 4px;
  padding-right: 4px;
}

.edge-detail-marker {
  font-family: var(--font-mono);
  text-align: center;
  flex-shrink: 0;
  width: 10px;
  font-size: 12px;
}

.edge-detail-item--added {
  background: var(--diff-bg-added);
}

.edge-detail-item--added .edge-detail-marker {
  color: var(--diff-color-added);
}

.edge-detail-item--removed {
  background: var(--diff-bg-removed);
}

.edge-detail-item--removed .edge-detail-marker {
  color: var(--diff-color-removed);
  text-decoration: line-through;
}

.edge-detail-item--removed .edge-detail-route, .edge-detail-item--removed .edge-detail-label-text {
  opacity: .75;
  text-decoration: line-through;
}

.preview-toolbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  display: flex;
}

.toolbar-btn {
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-ui);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .01em;
  background: none;
  border: 1px solid #0000;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  transition: all .12s;
  display: flex;
}

.toolbar-btn:hover {
  background: var(--bg-raised);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.toolbar-btn.active {
  background: var(--accent-dim);
  color: var(--accent-hover);
  border-color: #4d8fff4d;
}

.toolbar-btn--actionable {
  background: var(--bg-raised);
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.toolbar-btn--actionable:hover {
  background: var(--accent-dim);
  color: var(--accent-hover);
  border-color: #4d8fff66;
}

.toolbar-btn--format:disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

.toolbar-btn-group {
  align-items: center;
  display: flex;
  position: relative;
}

.toolbar-btn--export-main {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
}

.toolbar-btn--export-toggle {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 3px 6px;
}

.export-menu {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  z-index: 100;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
  padding: 4px;
  display: flex;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  box-shadow: 0 4px 12px #0006;
}

.export-menu-item {
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--text-secondary);
  font-family: var(--font-ui);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  transition: all .1s;
}

.export-menu-item:hover:not(:disabled) {
  background: var(--accent-dim);
  color: var(--accent-hover);
}

.export-menu-item.active {
  color: var(--accent-hover);
}

.export-menu-item:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: .5;
}

.export-error {
  color: #8a1f18;
  background: #fdecea;
  border-bottom: 1px solid #f5c2c0;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
}

.export-error-message {
  flex: 1;
}

.export-error-dismiss {
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 6px;
  font-size: 14px;
}

.export-error-dismiss:hover {
  color: #5a110c;
}

.toolbar-btn--reference {
  font-weight: 600;
}

.view-kind-toolbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  display: flex;
}

.reference-panel-overlay {
  z-index: 200;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #07090f8c;
  justify-content: flex-end;
  animation: .16s ease-out overlayFadeIn;
  display: flex;
  position: absolute;
  inset: 0;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reference-panel {
  background: var(--bg-raised);
  border-left: 1px solid var(--border-strong);
  width: min(480px, 100%);
  height: 100%;
  box-shadow: -12px 0 40px #0009, -1px 0 0 var(--feather-dim);
  flex-direction: column;
  animation: .2s cubic-bezier(.25, .46, .45, .94) panelSlideIn;
  display: flex;
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

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

.reference-panel-header {
  border-bottom: 1px solid var(--border-default);
  background: linear-gradient(to bottom, var(--bg-overlay) 0%, var(--bg-raised) 100%);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  display: flex;
}

.reference-panel-title {
  color: var(--text-primary);
  letter-spacing: -.01em;
  font-size: 13px;
  font-weight: 700;
}

.reference-panel-close {
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-xs);
  background: none;
  border: none;
  padding: 2px 5px;
  font-size: 15px;
  line-height: 1;
  transition: all .12s;
}

.reference-panel-close:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}

.reference-panel-tabs {
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface);
  flex-shrink: 0;
  display: flex;
}

.reference-panel-tab {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-ui);
  cursor: pointer;
  text-align: center;
  letter-spacing: .01em;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  flex: 1;
  padding: 8px 4px;
  transition: all .12s;
}

.reference-panel-tab:hover {
  color: var(--text-secondary);
  background: var(--bg-raised);
}

.reference-panel-tab.active {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.reference-panel-content {
  flex: 1;
  padding: 0;
  overflow-y: auto;
}

.reference-tab-body {
  padding: 12px 16px;
}

.reference-tab-body h3 {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin: 18px 0 8px;
  padding-bottom: 5px;
  font-size: 10.5px;
  font-weight: 700;
}

.reference-tab-body h3:first-child {
  margin-top: 0;
}

.reference-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 8px;
  font-size: 12px;
}

.reference-table th {
  text-align: left;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 5px 8px;
  font-size: 10.5px;
  font-weight: 700;
}

.reference-table td {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-faint);
  vertical-align: top;
  padding: 5px 8px;
}

.reference-table code {
  background: var(--bg-void);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-hover);
  margin-right: 4px;
  padding: 1px 4px;
}

.reference-code-block {
  background: var(--bg-void);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  padding: 12px;
  position: relative;
  overflow-x: auto;
}

.reference-code-block:before {
  content: "";
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: #ffffff0a;
  height: 1px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.reference-code-block pre {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.55;
}

.reference-badge-preview {
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-family: var(--font-mono);
  color: #fff;
  white-space: nowrap;
  padding: 2px 6px;
  display: inline-block;
}

.reference-builtin-header {
  color: var(--text-muted);
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11.5px;
  display: flex;
}

.reference-copy-btn {
  background: var(--bg-overlay);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: var(--font-ui);
  cursor: pointer;
  padding: 3px 10px;
  transition: all .12s;
}

.reference-copy-btn:hover {
  background: var(--bg-selected);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.reference-unsupported {
  color: var(--text-muted);
  padding: 16px 0;
  font-size: 13px;
  font-style: italic;
}

:root {
  --diff-color-added: #22c55e;
  --diff-color-removed: #ef4444;
  --diff-color-changed: #f59e0b;
  --diff-bg-added: #22c55e1f;
  --diff-bg-removed: #ef44441a;
  --diff-bg-changed: #f59e0b1a;
}

.diff-mode-banner {
  color: var(--text-primary);
  background: #f59e0b1f;
  border-bottom: 1px solid #f59e0b66;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}

.diff-mode-banner__before {
  color: var(--diff-color-removed);
}

.diff-mode-banner__after {
  color: var(--diff-color-added);
}

.toolbar-btn--diff-exit {
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: 1px solid #f59e0b66;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 12px;
}

.toolbar-btn--diff-exit:hover {
  background: #f59e0b26;
}

.diff-mode-banner__actions {
  gap: 8px;
  display: flex;
}

.toolbar-btn--diff-view-pasted {
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: 1px solid #f59e0b66;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 12px;
}

.toolbar-btn--diff-view-pasted:hover {
  background: #f59e0b26;
}

.toolbar-btn--diff-swap {
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: 1px solid #f59e0b66;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 12px;
}

.toolbar-btn--diff-swap:hover {
  background: #f59e0b26;
}

.toolbar-btn--diff-swap[aria-pressed="true"] {
  background: #f59e0b40;
  border-color: #f59e0bb3;
}

.diff-mode-banner__pasted {
  color: var(--diff-color-removed);
  font-style: italic;
}

.dialog-overlay {
  z-index: 1000;
  background: #0006;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.dialog {
  background: var(--bg-overlay);
  border: 1px solid var(--border-strong);
  width: min(640px, 90vw);
  max-height: 80vh;
  color: var(--text-primary);
  border-radius: 8px;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  display: flex;
  box-shadow: 0 10px 40px #00000080;
}

.dialog__title {
  color: var(--text-primary);
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.dialog__subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13px;
}

.dialog__body {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-height: 0;
  display: flex;
  overflow-y: auto;
}

.dialog__footer {
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.paste-compare-dialog__textarea {
  min-height: 260px;
  font-family: var(--font-mono);
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  resize: vertical;
  border-radius: 4px;
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

.paste-compare-dialog__textarea:focus {
  border-color: var(--border-active);
  outline: none;
}

.paste-compare-dialog__textarea::placeholder {
  color: var(--text-muted);
}

.dialog--snapshot-picker {
  width: min(480px, 90vw);
}

.snapshot-picker-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 24px;
  font-size: 13px;
}

.snapshot-picker-item {
  text-align: left;
  cursor: pointer;
  color: inherit;
  background: none;
  border: 1px solid #0000;
  border-radius: 4px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  display: flex;
}

.snapshot-picker-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-default);
}

.snapshot-picker-item-time {
  font-variant-numeric: tabular-nums;
  flex: 1;
}

.snapshot-picker-item-trigger {
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
}

.snapshot-picker-item-trigger--auto {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.snapshot-picker-item-trigger--manual {
  background: var(--accent-dim);
  color: var(--text-primary);
}

.snapshot-picker-item-label {
  color: var(--text-secondary);
  font-style: italic;
}

.preview-pane svg [data-diff-state="unchanged"] {
  opacity: .55;
}

.preview-pane svg [data-diff-state="added"], .preview-pane svg [data-diff-state="removed"], .preview-pane svg [data-diff-state="changed"] {
  opacity: 1 !important;
}

.preview-pane svg [data-diff-state="added"] rect, .preview-pane svg [data-diff-state="added"] path, .preview-pane svg [data-diff-state="added"] circle, .preview-pane svg [data-diff-state="added"] polygon {
  stroke: var(--diff-color-added) !important;
  stroke-width: 2.5px !important;
}

.preview-pane svg [data-diff-state="added"] line {
  stroke: var(--diff-color-added) !important;
}

.preview-pane svg [data-diff-state="removed"] rect, .preview-pane svg [data-diff-state="removed"] path, .preview-pane svg [data-diff-state="removed"] circle, .preview-pane svg [data-diff-state="removed"] polygon {
  stroke-dasharray: 6 4;
  opacity: .7;
  stroke: var(--diff-color-removed) !important;
  stroke-width: 2px !important;
}

.preview-pane svg [data-diff-state="removed"] line {
  stroke-dasharray: 6 4;
  stroke: var(--diff-color-removed) !important;
}

.preview-pane svg [data-diff-state="changed"] rect, .preview-pane svg [data-diff-state="changed"] path, .preview-pane svg [data-diff-state="changed"] circle, .preview-pane svg [data-diff-state="changed"] polygon {
  stroke: var(--diff-color-changed) !important;
  stroke-width: 2.5px !important;
}

.preview-pane svg [data-diff-state="changed"] line {
  stroke: var(--diff-color-changed) !important;
}

.preview-pane svg [data-node-badge] {
  opacity: 1;
}

.preview-pane svg [data-node-badge][data-diff-state="added"] circle {
  stroke: var(--diff-color-added) !important;
  stroke-width: 2px !important;
}

.preview-pane svg [data-node-badge][data-diff-state="removed"] circle {
  stroke-dasharray: 3 2;
  stroke: var(--diff-color-removed) !important;
  stroke-width: 2px !important;
}

.preview-pane svg [data-node-badge][data-diff-state="changed"] circle {
  stroke: var(--diff-color-changed) !important;
  stroke-width: 2px !important;
}

.node-detail-annotation-diff-list {
  margin: 0;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  list-style: none;
}

.node-detail-annotation-diff-list li {
  gap: 6px;
  padding: 2px 0;
  display: flex;
}

.node-detail-annotation-diff-list li[data-diff-state="added"] {
  color: var(--diff-color-added);
}

.node-detail-annotation-diff-list li[data-diff-state="removed"] {
  color: var(--diff-color-removed);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.node-detail-resource-list {
  margin: 0;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  list-style: none;
}

.node-detail-resource-item {
  gap: 8px;
  padding: 2px 0;
  display: flex;
}

.node-detail-resource-kind {
  color: var(--text-muted, #94a3b8);
  min-width: 96px;
}

.node-detail-resource-name {
  color: var(--text-primary, #e2e8f0);
}

.node-detail-capability-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.node-detail-capability-item {
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  display: flex;
}

.node-detail-capability-item + .node-detail-capability-item {
  border-top: 1px solid var(--border-subtle, #94a3b826);
}

.node-detail-capability-title {
  color: var(--text-primary, #e2e8f0);
  font-size: 12px;
  font-weight: 600;
}

.node-detail-capability-description {
  color: var(--text-secondary, #cbd5e1);
  white-space: pre-wrap;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.node-detail-annotation-diff-marker {
  text-align: center;
  width: 12px;
  font-weight: bold;
  display: inline-block;
}

.crud-matrix-panel {
  color: var(--text-primary);
  flex-direction: column;
  flex: 1;
  gap: 16px;
  padding: 20px 24px;
  display: flex;
  overflow: auto;
}

.crud-matrix-toolbar {
  color: var(--text-secondary);
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  display: flex;
}

.crud-matrix-toolbar select {
  background: var(--bg-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  margin-left: 6px;
  padding: 4px 8px;
  font-size: 13px;
}

.crud-matrix-table {
  border-collapse: collapse;
  background: var(--bg-surface);
  font-size: 13px;
  line-height: 1.4;
}

.crud-matrix-table th, .crud-matrix-table td {
  border: 1px solid var(--border-strong);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  padding: 8px 12px;
}

.crud-matrix-table thead th {
  background: var(--bg-raised);
  color: var(--text-primary);
  z-index: 1;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.crud-matrix-table tbody td:first-child {
  color: var(--text-primary);
  background: var(--bg-raised);
  font-weight: 500;
}

.crud-matrix-cell {
  text-align: center;
  letter-spacing: .05em;
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace;
}

.crud-matrix-cell--write {
  background: var(--accent-dim);
  color: var(--accent-hover);
  font-weight: 600;
}

.crud-matrix-total {
  text-align: center;
  background: var(--bg-base);
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace;
}

.crud-matrix-total-row td {
  background: var(--bg-base);
  color: var(--text-secondary);
  font-weight: 600;
}

.crud-matrix-total-row td:first-child {
  background: var(--bg-base);
  color: var(--text-primary);
}

@property --tw-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-translate-z {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

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

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

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

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

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

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

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

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

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

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

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

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

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

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

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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