*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

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

/*
Remove the default font size and weight for headings.
*/

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

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

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

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

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

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

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

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

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

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

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

/* Make elements with the HTML hidden attribute stay hidden by default */

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

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

.pointer-events-auto {
  pointer-events: auto;
}

.visible {
  visibility: visible;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.inset-0 {
  inset: 0px;
}

.left-0 {
  left: 0px;
}

.left-2\.5 {
  left: 0.625rem;
}

.left-\[18px\] {
  left: 18px;
}

.left-\[2px\] {
  left: 2px;
}

.right-0 {
  right: 0px;
}

.right-2 {
  right: 0.5rem;
}

.top-0 {
  top: 0px;
}

.top-0\.5 {
  top: 0.125rem;
}

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

.top-5 {
  top: 1.25rem;
}

.top-full {
  top: 100%;
}

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

.z-\[10000\] {
  z-index: 10000;
}

.z-\[10001\] {
  z-index: 10001;
}

.z-\[60\] {
  z-index: 60;
}

.z-\[61\] {
  z-index: 61;
}

.mx-0\.5 {
  margin-left: 0.125rem;
  margin-right: 0.125rem;
}

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.mx-5 {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.-mt-1 {
  margin-top: -0.25rem;
}

.mb-0\.5 {
  margin-bottom: 0.125rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-1\.5 {
  margin-bottom: 0.375rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-auto {
  margin-left: auto;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

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

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-1 {
  height: 0.25rem;
}

.h-1\.5 {
  height: 0.375rem;
}

.h-10 {
  height: 2.5rem;
}

.h-16 {
  height: 4rem;
}

.h-2 {
  height: 0.5rem;
}

.h-2\.5 {
  height: 0.625rem;
}

.h-3 {
  height: 0.75rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-7 {
  height: 1.75rem;
}

.h-8 {
  height: 2rem;
}

.h-9 {
  height: 2.25rem;
}

.h-full {
  height: 100%;
}

.h-screen {
  height: 100vh;
}

.max-h-48 {
  max-height: 12rem;
}

.max-h-64 {
  max-height: 16rem;
}

.max-h-96 {
  max-height: 24rem;
}

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

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

.min-h-\[120px\] {
  min-height: 120px;
}

.min-h-\[26px\] {
  min-height: 26px;
}

.min-h-\[60px\] {
  min-height: 60px;
}

.min-h-\[80px\] {
  min-height: 80px;
}

.w-10 {
  width: 2.5rem;
}

.w-16 {
  width: 4rem;
}

.w-2 {
  width: 0.5rem;
}

.w-2\.5 {
  width: 0.625rem;
}

.w-20 {
  width: 5rem;
}

.w-24 {
  width: 6rem;
}

.w-28 {
  width: 7rem;
}

.w-3 {
  width: 0.75rem;
}

.w-32 {
  width: 8rem;
}

.w-4 {
  width: 1rem;
}

.w-40 {
  width: 10rem;
}

.w-48 {
  width: 12rem;
}

.w-5 {
  width: 1.25rem;
}

.w-56 {
  width: 14rem;
}

.w-6 {
  width: 1.5rem;
}

.w-7 {
  width: 1.75rem;
}

.w-8 {
  width: 2rem;
}

.w-80 {
  width: 20rem;
}

.w-9 {
  width: 2.25rem;
}

.w-96 {
  width: 24rem;
}

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

.w-full {
  width: 100%;
}

.w-px {
  width: 1px;
}

.min-w-0 {
  min-width: 0px;
}

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

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

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

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

.max-w-2xl {
  max-width: 42rem;
}

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

.max-w-lg {
  max-width: 32rem;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-shrink {
  flex-shrink: 1;
}

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

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-110 {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

.cursor-grab {
  cursor: grab;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-text {
  cursor: text;
}

.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.resize-y {
  resize: vertical;
}

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

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

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

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

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

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

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

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

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

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

.gap-0\.5 {
  gap: 0.125rem;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-px {
  gap: 1px;
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}

.divide-zinc-800\/50 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgb(39 39 42 / 0.5);
}

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

.overflow-auto {
  overflow: auto;
}

.overflow-hidden {
  overflow: hidden;
}

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

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

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

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

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

.break-all {
  word-break: break-all;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-t-md {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-b-2 {
  border-bottom-width: 2px;
}

.border-l {
  border-left-width: 1px;
}

.border-r {
  border-right-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-dashed {
  border-style: dashed;
}

.border-none {
  border-style: none;
}

.border-amber-500 {
  --tw-border-opacity: 1;
  border-color: rgb(245 158 11 / var(--tw-border-opacity, 1));
}

.border-amber-500\/20 {
  border-color: rgb(245 158 11 / 0.2);
}

.border-emerald-500 {
  --tw-border-opacity: 1;
  border-color: rgb(16 185 129 / var(--tw-border-opacity, 1));
}

.border-emerald-500\/20 {
  border-color: rgb(16 185 129 / 0.2);
}

.border-emerald-800\/30 {
  border-color: rgb(6 95 70 / 0.3);
}

.border-indigo-500 {
  --tw-border-opacity: 1;
  border-color: rgb(99 102 241 / var(--tw-border-opacity, 1));
}

.border-indigo-500\/30 {
  border-color: rgb(99 102 241 / 0.3);
}

.border-red-500 {
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}

.border-red-500\/20 {
  border-color: rgb(239 68 68 / 0.2);
}

.border-red-500\/30 {
  border-color: rgb(239 68 68 / 0.3);
}

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

.border-zinc-600 {
  --tw-border-opacity: 1;
  border-color: rgb(82 82 91 / var(--tw-border-opacity, 1));
}

.border-zinc-700 {
  --tw-border-opacity: 1;
  border-color: rgb(63 63 70 / var(--tw-border-opacity, 1));
}

.border-zinc-700\/50 {
  border-color: rgb(63 63 70 / 0.5);
}

.border-zinc-700\/60 {
  border-color: rgb(63 63 70 / 0.6);
}

.border-zinc-800 {
  --tw-border-opacity: 1;
  border-color: rgb(39 39 42 / var(--tw-border-opacity, 1));
}

.border-zinc-800\/50 {
  border-color: rgb(39 39 42 / 0.5);
}

.border-zinc-900 {
  --tw-border-opacity: 1;
  border-color: rgb(24 24 27 / var(--tw-border-opacity, 1));
}

.\!bg-emerald-500 {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1)) !important;
}

.bg-\[\#0f0f11\] {
  --tw-bg-opacity: 1;
  background-color: rgb(15 15 17 / var(--tw-bg-opacity, 1));
}

.bg-\[\#141416\] {
  --tw-bg-opacity: 1;
  background-color: rgb(20 20 22 / var(--tw-bg-opacity, 1));
}

.bg-amber-500\/10 {
  background-color: rgb(245 158 11 / 0.1);
}

.bg-amber-500\/20 {
  background-color: rgb(245 158 11 / 0.2);
}

.bg-amber-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(217 119 6 / var(--tw-bg-opacity, 1));
}

.bg-black\/50 {
  background-color: rgb(0 0 0 / 0.5);
}

.bg-black\/60 {
  background-color: rgb(0 0 0 / 0.6);
}

.bg-black\/70 {
  background-color: rgb(0 0 0 / 0.7);
}

.bg-emerald-500\/10 {
  background-color: rgb(16 185 129 / 0.1);
}

.bg-emerald-500\/20 {
  background-color: rgb(16 185 129 / 0.2);
}

.bg-emerald-900\/30 {
  background-color: rgb(6 78 59 / 0.3);
}

.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}

.bg-indigo-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(99 102 241 / var(--tw-bg-opacity, 1));
}

.bg-indigo-500\/10 {
  background-color: rgb(99 102 241 / 0.1);
}

.bg-indigo-500\/20 {
  background-color: rgb(99 102 241 / 0.2);
}

.bg-indigo-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(79 70 229 / var(--tw-bg-opacity, 1));
}

.bg-indigo-600\/20 {
  background-color: rgb(79 70 229 / 0.2);
}

.bg-indigo-600\/90 {
  background-color: rgb(79 70 229 / 0.9);
}

.bg-red-500\/10 {
  background-color: rgb(239 68 68 / 0.1);
}

.bg-red-500\/20 {
  background-color: rgb(239 68 68 / 0.2);
}

.bg-red-500\/5 {
  background-color: rgb(239 68 68 / 0.05);
}

.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}

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

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.bg-zinc-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(63 63 70 / var(--tw-bg-opacity, 1));
}

.bg-zinc-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(39 39 42 / var(--tw-bg-opacity, 1));
}

.bg-zinc-800\/50 {
  background-color: rgb(39 39 42 / 0.5);
}

.bg-zinc-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(24 24 27 / var(--tw-bg-opacity, 1));
}

.bg-zinc-900\/50 {
  background-color: rgb(24 24 27 / 0.5);
}

.bg-zinc-900\/80 {
  background-color: rgb(24 24 27 / 0.8);
}

.bg-zinc-900\/90 {
  background-color: rgb(24 24 27 / 0.9);
}

.bg-zinc-950 {
  --tw-bg-opacity: 1;
  background-color: rgb(9 9 11 / var(--tw-bg-opacity, 1));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-indigo-500\/10 {
  --tw-gradient-from: rgb(99 102 241 / 0.1) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-purple-500\/10 {
  --tw-gradient-to: rgb(168 85 247 / 0.1) var(--tw-gradient-to-position);
}

.p-0\.5 {
  padding: 0.125rem;
}

.p-1 {
  padding: 0.25rem;
}

.p-1\.5 {
  padding: 0.375rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.\!py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pb-0 {
  padding-bottom: 0px;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pl-8 {
  padding-left: 2rem;
}

.pr-3 {
  padding-right: 0.75rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

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

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

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

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.\!text-xs {
  font-size: 0.75rem !important;
  line-height: 1rem !important;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

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

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

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

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

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}

.leading-tight {
  line-height: 1.25;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.text-amber-400 {
  --tw-text-opacity: 1;
  color: rgb(251 191 36 / var(--tw-text-opacity, 1));
}

.text-emerald-400 {
  --tw-text-opacity: 1;
  color: rgb(52 211 153 / var(--tw-text-opacity, 1));
}

.text-emerald-500 {
  --tw-text-opacity: 1;
  color: rgb(16 185 129 / var(--tw-text-opacity, 1));
}

.text-green-400 {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / var(--tw-text-opacity, 1));
}

.text-indigo-200 {
  --tw-text-opacity: 1;
  color: rgb(199 210 254 / var(--tw-text-opacity, 1));
}

.text-indigo-400 {
  --tw-text-opacity: 1;
  color: rgb(129 140 248 / var(--tw-text-opacity, 1));
}

.text-indigo-500 {
  --tw-text-opacity: 1;
  color: rgb(99 102 241 / var(--tw-text-opacity, 1));
}

.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}

.text-zinc-100 {
  --tw-text-opacity: 1;
  color: rgb(244 244 245 / var(--tw-text-opacity, 1));
}

.text-zinc-200 {
  --tw-text-opacity: 1;
  color: rgb(228 228 231 / var(--tw-text-opacity, 1));
}

.text-zinc-300 {
  --tw-text-opacity: 1;
  color: rgb(212 212 216 / var(--tw-text-opacity, 1));
}

.text-zinc-400 {
  --tw-text-opacity: 1;
  color: rgb(161 161 170 / var(--tw-text-opacity, 1));
}

.text-zinc-500 {
  --tw-text-opacity: 1;
  color: rgb(113 113 122 / var(--tw-text-opacity, 1));
}

.text-zinc-600 {
  --tw-text-opacity: 1;
  color: rgb(82 82 91 / var(--tw-text-opacity, 1));
}

.text-zinc-700 {
  --tw-text-opacity: 1;
  color: rgb(63 63 70 / var(--tw-text-opacity, 1));
}

.line-through {
  text-decoration-line: line-through;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.outline {
  outline-style: solid;
}

.ring-1 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

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

.ring-indigo-500\/50 {
  --tw-ring-color: rgb(99 102 241 / 0.5);
}

.ring-white {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1));
}

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

.drop-shadow {
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  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-md {
  --tw-backdrop-blur: blur(12px);
  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-blur-sm {
  --tw-backdrop-blur: blur(4px);
  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 {
  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, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

:root {
  --canvas-bg: #0f0f11;
  --panel-bg: #18181b;
  --panel-border: #27272a;
  --cell-bg: #1e1e23;
  --cell-border: #3f3f46;
  --cell-hover: #2a2a30;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--canvas-bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Custom scrollbar — default (subtle) */

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

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

::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* Database view scrollbar — prominent, always visible */

.db-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.db-scroll::-webkit-scrollbar-track {
  background: #1a1a1f;
  border-radius: 6px;
}

.db-scroll::-webkit-scrollbar-thumb {
  background: #52525b;
  border-radius: 6px;
  border: 2px solid #1a1a1f;
}

.db-scroll::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

.db-scroll::-webkit-scrollbar-corner {
  background: #1a1a1f;
}

/* Canvas scrollbar — prominent, always visible (horizontal + vertical) */

.canvas-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.canvas-scroll::-webkit-scrollbar-track {
  background: #131316;
}

.canvas-scroll::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 6px;
  border: 2px solid #131316;
}

.canvas-scroll::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

.canvas-scroll::-webkit-scrollbar-corner {
  background: #131316;
}

/* Canvas background — subtle dot grid (spreadsheet mode) */

.spreadsheet-canvas {
  background-image:
    radial-gradient(circle, #27272a 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Mind map mode — subtle dot grid, grab cursor for pan */

.mindmap-canvas {
  background-color: #0c0c0f;
  background-image: radial-gradient(circle, #1a1a22 1px, transparent 1px);
  background-size: 32px 32px;
  cursor: grab;
}

.mindmap-canvas:active {
  cursor: grabbing;
}

/* ============================================
   CELL CHIP — Floating card with accent bar
   ============================================ */

.cell-chip {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a20 0%, #16161b 100%);
  border: 1px solid #2a2a32;
  border-radius: 10px;
  transition: none;
  cursor: grab;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.4),
    0 0 0 0 transparent;
}

.cell-chip:hover {
  background: linear-gradient(135deg, #1f1f28 0%, #1a1a22 100%);
  border-color: #3a3a45;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.5),
    0 0 1px rgba(255,255,255,0.05);
}

.cell-selected {
  border-color: var(--accent) !important;
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 20px rgba(99, 102, 241, 0.15),
    0 4px 16px rgba(0,0,0,0.4) !important;
}

/* ── DISTINCT CELL TYPE SHAPES ── */

/* Text — default rectangle with indigo accent */

.cell-type-text .cell-type-icon {
  border-radius: 4px;
}

/* Long Text — tall document shape, page-fold corner */

.cell-type-long_text {
  border-radius: 4px 12px 12px 4px;
  border-left: 3px solid #8b5cf6;
  background: linear-gradient(160deg, #1a1a24 0%, #18172a 100%);
}

.cell-type-long_text .cell-accent {
  display: none;
}

.cell-type-long_text .cell-type-icon {
  border-radius: 3px;
  width: 20px;
  height: 26px;
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
}

/* Number — DIAMOND icon shape, sharp 0px corners on cell */

.cell-type-number {
  border-radius: 0;
  border: 1.5px solid #f59e0b40;
  background: linear-gradient(135deg, #1a1a1e 0%, #1e1c14 100%);
  font-variant-numeric: tabular-nums;
}

.cell-type-number .cell-accent {
  background: #f59e0b;
  width: 4px;
}

.cell-type-number .cell-type-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  transform: rotate(45deg);
}

.cell-type-number .cell-type-icon > svg {
  transform: rotate(-45deg);
}

/* Single Select — CIRCLE icon, pill cell */

.cell-type-single_select {
  border-radius: 26px;
  border: 1.5px solid #22c55e50;
  background: linear-gradient(135deg, #141a18 0%, #161b16 100%);
}

.cell-type-single_select .cell-accent {
  border-radius: 26px 0 0 26px;
}

.cell-type-single_select .cell-type-icon {
  border-radius: 50%;
  width: 26px;
  height: 26px;
}

/* Multi Select — HEXAGON icon, rounded pill cell */

.cell-type-multi_select {
  border-radius: 26px;
  border: 1.5px dashed #06b6d450;
  background: linear-gradient(135deg, #141a1e 0%, #14191e 100%);
}

.cell-type-multi_select .cell-accent {
  border-radius: 26px 0 0 26px;
}

.cell-type-multi_select .cell-type-icon {
  width: 26px;
  height: 26px;
  border-radius: 0;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Checkbox — SQUARE icon with check cutout, boxy cell */

.cell-type-checkbox {
  border-radius: 2px;
  border: 2px solid #10b98150;
  background: linear-gradient(135deg, #141e1a 0%, #161b18 100%);
}

.cell-type-checkbox .cell-accent {
  display: none;
}

.cell-type-checkbox .cell-type-icon {
  border-radius: 2px;
  width: 22px;
  height: 22px;
  border: 2px solid #10b98180;
}

/* Date — CALENDAR shape: flat top with colored header stripe */

.cell-type-date {
  border-radius: 2px 2px 8px 8px;
  border-top: 4px solid #ec4899;
  border-left: none;
  background: linear-gradient(180deg, #1e141a 0%, #1a1620 100%);
}

.cell-type-date .cell-accent {
  display: none;
}

.cell-type-date .cell-type-icon {
  border-radius: 2px 2px 6px 6px;
  border-top: 3px solid #ec4899;
  width: 22px;
  height: 24px;
}

/* Date & Time — OCTAGON icon, calendar-style cell */

.cell-type-datetime {
  border-radius: 2px 2px 8px 8px;
  border-top: 4px solid #d946ef;
  border-left: none;
  background: linear-gradient(180deg, #1e141e 0%, #1a1622 100%);
}

.cell-type-datetime .cell-accent {
  display: none;
}

.cell-type-datetime .cell-type-icon {
  width: 26px;
  height: 26px;
  border-radius: 0;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* Email — ENVELOPE / pentagon icon pointing right */

.cell-type-email {
  border-radius: 8px;
  border: 1.5px solid #3b82f640;
  background: linear-gradient(135deg, #141822 0%, #161a28 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 0 10px #3b82f610;
}

.cell-type-email .cell-type-icon {
  width: 28px;
  height: 20px;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

/* URL — ARROW / chevron icon pointing right */

.cell-type-url {
  border-radius: 8px 20px 20px 8px;
  border: 1.5px solid #14b8a640;
  background: linear-gradient(90deg, #14191e 0%, #141e1e 100%);
}

.cell-type-url .cell-accent {
  display: none;
}

.cell-type-url .cell-type-icon {
  width: 26px;
  height: 22px;
  border-radius: 0;
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%, 30% 50%);
}

.cell-type-url .cell-name {
  text-decoration: underline;
  text-decoration-color: #14b8a640;
  text-underline-offset: 2px;
}

/* Phone — full STADIUM / capsule cell, circle icon */

.cell-type-phone {
  border-radius: 26px;
  border: 2px solid #a855f740;
  background: linear-gradient(135deg, #1a1422 0%, #1e162a 100%);
  box-shadow: 0 0 12px #a855f710;
}

.cell-type-phone .cell-accent {
  border-radius: 26px 0 0 26px;
}

.cell-type-phone .cell-type-icon {
  border-radius: 50%;
  width: 28px;
  height: 28px;
  box-shadow: 0 0 8px #a855f730;
}

/* Rating — STAR icon shape, golden glow cell */

.cell-type-rating {
  border-radius: 8px;
  border: 1.5px solid #eab30840;
  background: linear-gradient(135deg, #1a1a14 0%, #1e1c12 100%);
  box-shadow: 0 0 12px #eab30815;
}

.cell-type-rating .cell-type-icon {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background-color: #eab30830 !important;
}

/* Currency — SHIELD icon, sharp vault-like cell */

.cell-type-currency {
  border-radius: 0;
  border-left: 5px solid #16a34a;
  border-right: 1px solid #16a34a30;
  background: linear-gradient(135deg, #141e16 0%, #162018 100%);
  font-variant-numeric: tabular-nums;
}

.cell-type-currency .cell-accent {
  display: none;
}

.cell-type-currency .cell-type-icon {
  width: 24px;
  height: 28px;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

/* Attachment — FOLDER tab icon, dashed border cell */

.cell-type-attachment {
  border-radius: 2px 8px 8px 8px;
  border: 1.5px dashed #64748b60;
  background: linear-gradient(135deg, #1a1a1e 0%, #1e1e22 100%);
}

.cell-type-attachment .cell-type-icon {
  width: 26px;
  height: 20px;
  border-radius: 0;
  clip-path: polygon(0 20%, 35% 20%, 45% 0, 100% 0, 100% 100%, 0 100%);
}

/* Person — CIRCLE avatar icon, round cell ends */

.cell-type-person {
  border-radius: 26px;
  border: 2px solid #f9731640;
  background: linear-gradient(135deg, #1e1814 0%, #201a16 100%);
}

.cell-type-person .cell-accent {
  border-radius: 26px 0 0 26px;
}

.cell-type-person .cell-type-icon {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  border: 2px solid #f9731650;
}

/* Cold Storage — CYLINDER / barrel icon, hatched muted cell */

.cell-type-cold_storage {
  border-radius: 4px;
  border: 2px solid #47556940;
  border-left: 6px solid #475569;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 6px,
      #47556908 6px,
      #47556908 7px
    ),
    linear-gradient(135deg, #16181c 0%, #1a1c22 60%, #14161a 100%);
}

.cell-type-cold_storage .cell-accent {
  display: none;
}

.cell-type-cold_storage .cell-type-icon {
  width: 22px;
  height: 28px;
  border-radius: 50% / 20%;
  border: 1.5px solid #47556960;
}

.cell-type-cold_storage .cell-name {
  color: #94a3b8;
  font-style: italic;
}

/* ── CONNECTION LINE STYLES ── */

/* Each connection type gets a unique dash pattern and marker */

.connection-line[data-conn-type="flow"] {
  stroke-dasharray: none;
}

.connection-line[data-conn-type="depends_on"] {
  stroke-dasharray: 8 3;
}

.connection-line[data-conn-type="triggers"] {
  stroke-dasharray: 2 2;
}

.connection-line[data-conn-type="validates"] {
  stroke-dasharray: 12 3 3 3;
}

.connection-line[data-conn-type="transforms"] {
  stroke-dasharray: 6 2 2 2 2 2;
}

.connection-line[data-conn-type="parent_child"] {
  stroke-dasharray: 10 4;
}

.connection-line[data-conn-type="reference"] {
  stroke-dasharray: 4 6;
}

/* Search match — pulsing glow */

.cell-search-match {
  box-shadow:
    0 0 0 2px #f59e0b,
    0 0 12px rgba(245, 158, 11, 0.3) !important;
}

/* Focused cell */

.cell-focused {
  box-shadow:
    0 0 0 2px #22c55e,
    0 0 20px rgba(34, 197, 94, 0.3) !important;
}

/* Color tag dot — top-right corner */

.cell-tag-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.3);
  z-index: 5;
}

/* Collapse toggle button */

.cell-collapse-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #71717a;
  cursor: pointer;
  margin-left: 2px;
  flex-shrink: 0;
}

.cell-chip:hover .cell-collapse-btn {
  display: flex;
}

/* Left accent bar — colored strip */

.cell-accent {
  width: 3px;
  height: 100%;
  flex-shrink: 0;
  border-radius: 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.cell-chip:hover .cell-accent {
  opacity: 1;
}

/* Drag handle */

.cell-drag-handle {
  cursor: grab;
  color: #3f3f46;
  padding: 0 4px;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.cell-chip:active {
  cursor: grabbing;
}

.cell-chip:hover .cell-drag-handle {
  color: #71717a;
}

/* Type icon */

.cell-type-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cell-chip:hover .cell-type-icon {
  transform: scale(1.08);
}

/* Cell name — wraps to 2 lines for readability */

.cell-name {
  font-size: 11px;
  font-weight: 500;
  color: #e4e4e7;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  line-height: 1.3;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  word-break: break-word;
}

/* Indicators container */

.cell-indicators {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* Badges */

.cell-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
  line-height: 1;
}

.cell-badge-instances {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-family: 'SF Mono', 'Cascadia Code', monospace;
}

.cell-badge-required {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-size: 10px;
  padding: 0 3px;
  font-weight: 800;
}

.cell-badge-workflow {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  padding: 2px 3px;
}

.cell-badge-quality {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  padding: 2px 3px;
}

.cell-badge-readonly {
  background: rgba(71, 85, 105, 0.2);
  color: #94a3b8;
  padding: 2px 3px;
}

/* Cold storage cell — muted look with subtle border pattern */

.cell-chip[data-readonly="true"] {
  border-style: dashed;
  opacity: 0.85;
}

/* Connection suggestion ghost lines */

.connection-suggestion-line path:last-of-type {
  transition: opacity 0.2s;
}

.connection-suggestion-line:hover path:last-of-type {
  opacity: 0.6 !important;
  stroke-width: 2;
}

.connection-suggestion-line:hover circle {
  opacity: 0.7 !important;
  r: 5;
}

/* Creation arrows */

.connection-create-arrow {
  transition: opacity 0.2s;
}

.connection-create-arrow:hover circle {
  opacity: 1 !important;
  fill: #312e81;
}

.connection-create-arrow:hover line {
  opacity: 1 !important;
}

/* Select option color dots */

.cell-option-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.3);
  flex-shrink: 0;
}

/* ── Connector Ports — 4 dots on each side ── */

.cell-port {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
  border: 2px solid #18181b;
  cursor: crosshair;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  z-index: 10;
  pointer-events: none;
}

.cell-chip:hover .cell-port,
.cell-connecting-from .cell-port,
.cell-connect-target .cell-port {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.cell-port:hover {
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.7), 0 0 20px rgba(99, 102, 241, 0.3);
  background: #818cf8;
}

.cell-connect-target .cell-port:hover {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7), 0 0 20px rgba(34, 197, 94, 0.3);
}

.cell-port-top    {
  top: -4px;
  left: 50%;
  transform-origin: center;
  margin-left: -4px;
}

.cell-port-right  {
  right: -4px;
  top: 50%;
  transform-origin: center;
  margin-top: -4px;
}

.cell-port-bottom {
  bottom: -4px;
  left: 50%;
  transform-origin: center;
  margin-left: -4px;
}

.cell-port-left   {
  left: -4px;
  top: 50%;
  transform-origin: center;
  margin-top: -4px;
}

.cell-chip:hover .cell-port-top    {
  transform: scale(1) translate(0, 0);
}

.cell-chip:hover .cell-port-right  {
  transform: scale(1) translate(0, 0);
}

.cell-chip:hover .cell-port-bottom {
  transform: scale(1) translate(0, 0);
}

.cell-chip:hover .cell-port-left   {
  transform: scale(1) translate(0, 0);
}

.cell-port:hover {
  transform: scale(1.5) !important;
}

/* Edge handle — legacy, kept for backward compat */

.cell-edge-handle {
  display: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6366f1;
  border: 2px solid #1a1a20;
  cursor: crosshair;
  flex-shrink: 0;
  margin-right: 2px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cell-chip:hover .cell-edge-handle {
  display: block;
}

.cell-edge-handle:hover {
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

/* ── Dragging line animation ── */

.connection-line-dragging {
  transition: none !important;
  filter: drop-shadow(0 0 4px currentColor);
}

/* ── Connection line hover glow ── */

svg g:hover > .connection-line {
  filter: drop-shadow(0 0 3px currentColor);
}

/* ── Connection Popup ── */

.connection-popup {
  background: #1c1c24;
  border: 1px solid #2f2f3a;
  border-radius: 14px;
  padding: 6px;
  min-width: 260px;
  max-width: 300px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  animation: popup-in 0.15s ease-out;
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
  }

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

.connection-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.connection-popup-close {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #71717a;
  cursor: pointer;
  background: none;
  border: none;
}

.connection-popup-close:hover {
  background: #27272a;
  color: #fafafa;
}

/* Connection type grid */

.connection-type-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 4px;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Ensure mouse wheel scrolls the grid, not the canvas behind it */

.connection-popup {
  overscroll-behavior: contain;
}

.connection-type-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #e4e4e7;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.connection-type-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
}

.connection-type-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.15);
}

.connection-type-icon {
  font-size: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
}

.connection-type-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.connection-type-desc {
  font-size: 9px;
  color: #71717a;
  line-height: 1.2;
}

/* Insert cell row */

.connection-insert-row {
  display: flex;
  gap: 4px;
  padding: 4px 6px;
}

.connection-insert-input {
  flex: 1;
  padding: 5px 8px;
  font-size: 11px;
  background: #131316;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  color: #fafafa;
  outline: none;
}

.connection-insert-input:focus {
  border-color: #6366f1;
}

.connection-insert-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.connection-insert-btn:hover {
  background: #818cf8;
}

/* ── Connection line HTML overlay buttons ── */

.connection-overlay-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.connection-label-btn {
  pointer-events: auto;
  cursor: grab;
  padding: 2px 10px;
  border-radius: 10px;
  background: #18181bdd;
  border: 1px solid;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
  backdrop-filter: blur(6px);
  transition: background 0.15s, box-shadow 0.15s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.connection-label-btn:hover {
  background: #27272add;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.connection-label-btn:active {
  cursor: grabbing;
}

.connection-insert-circle {
  pointer-events: auto;
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #18181bdd;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  opacity: 0;
  transition: all 0.2s;
}

.connection-overlay-group:hover .connection-insert-circle {
  opacity: 1;
}

.connection-insert-circle:hover {
  transform: scale(1.3);
  background: #27272a;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* ============================================
   CONTEXT MENU — Right-click menu
   ============================================ */

.cell-context-menu {
  background: #1c1c24;
  border: 1px solid #2f2f3a;
  border-radius: 12px;
  padding: 4px;
  min-width: 200px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.6),
    0 0 1px rgba(255,255,255,0.08),
    0 0 0 1px rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
  animation: ctxFadeIn 0.12s ease-out;
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes ctxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
  }

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

/* Context menu header */

.ctx-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 6px;
}

.ctx-header-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ctx-header-name {
  font-size: 12px;
  font-weight: 600;
  color: #e4e4e7;
  line-height: 1.2;
}

.ctx-header-type {
  font-size: 10px;
  color: #71717a;
  line-height: 1.2;
}

.ctx-divider {
  height: 1px;
  background: #2a2a35;
  margin: 4px 8px;
}

.ctx-section-label {
  font-size: 9px;
  font-weight: 600;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px 2px;
}

/* Context menu item */

.ctx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #a1a1aa;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.1s;
  text-align: left;
}

.ctx-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #e4e4e7;
}

.ctx-item-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.ctx-check {
  margin-left: auto;
  color: #22c55e;
  font-size: 13px;
  font-weight: 700;
}

/* ============================================
   CONNECTION LINES
   ============================================ */

.connection-line {
  fill: none;
  transition: opacity 0.2s ease;
}

/* Workflow trace highlight */

.workflow-trace {
  animation: traceGlow 1.5s ease-in-out infinite alternate;
}

@keyframes traceGlow {
  from {
    box-shadow: 0 0 4px rgba(99,102,241,0.3);
  }

  to {
    box-shadow: 0 0 12px rgba(99,102,241,0.6);
  }
}

/* Filter pill */

.filter-pill {
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: rgba(99,102,241,0.2);
}

.filter-pill.active {
  background: var(--accent);
  color: white;
}

/* Ethereal/ghost state for non-matching filtered cells */

.cell-ethereal {
  filter: blur(1px) saturate(0.3);
}

/* Connect button — appears on hover on the right side */

.cell-connect-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid #3f3f46;
  background: #27272a;
  color: #71717a;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 4px;
  transition: all 0.15s;
}

.cell-chip:hover .cell-connect-btn {
  display: flex;
}

.cell-connect-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #a5b4fc;
}

/* Connecting mode — source cell pulsing highlight */

.cell-connecting-from {
  animation: connectPulse 1s ease-in-out infinite alternate;
  border-color: #6366f1 !important;
}

@keyframes connectPulse {
  from {
    box-shadow: 0 0 4px rgba(99,102,241,0.3), 0 0 0 1px rgba(99,102,241,0.4);
  }

  to {
    box-shadow: 0 0 16px rgba(99,102,241,0.6), 0 0 0 2px rgba(99,102,241,0.6);
  }
}

/* Connecting mode — target cells get a subtle highlight on hover */

.cell-connect-target {
  cursor: crosshair !important;
}

.cell-connect-target:hover {
  border-color: #22c55e !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3) !important;
}

/* Dragging state — instant transform, GPU-accelerated */

.dragging {
  opacity: 0.6;
  z-index: 1000;
  will-change: transform;
  transition: none !important;
}

/* ============================================
   CELL ANIMATIONS
   ============================================ */

@keyframes cellPopIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(8px);
    filter: blur(4px);
  }

  60% {
    opacity: 0.9;
    transform: scale(1.04) translateY(-2px);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes cellGlowIn {
  0% {
    box-shadow: 0 0 0 rgba(99,102,241,0);
  }

  40% {
    box-shadow: 0 0 16px rgba(99,102,241,0.5);
  }

  100% {
    box-shadow: 0 0 0 rgba(99,102,241,0);
  }
}

@keyframes sparkleTrail {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0) translateY(-12px);
  }
}

.cell-pop-in {
  animation: cellPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             cellGlowIn 0.8s ease-out forwards;
}

.cell-pop-in::before {
  content: '\2726';
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 12px;
  color: #818cf8;
  animation: sparkleTrail 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

/* ============================================
   MINIMAP
   ============================================ */

.minimap {
  background: #131316;
  border: 1px solid #27272a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  cursor: pointer;
}

.minimap:hover {
  border-color: #3f3f46;
}

/* ============================================
   STICKY NOTES
   ============================================ */

.sticky-note {
  border-radius: 8px;
  border: 1px solid;
  cursor: default;
  font-size: 11px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  overflow: hidden;
}

.sticky-note:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.sticky-note-header {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  gap: 2px;
}

.sticky-note-text {
  padding: 6px 8px;
  color: #e4e4e7;
  font-size: 11px;
  line-height: 1.4;
  min-height: 60px;
  white-space: pre-wrap;
  word-break: break-word;
}

textarea.sticky-note-text {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
}

/* ============================================
   GROUP FRAMES
   ============================================ */

.group-frame {
  border: 2px dashed;
  border-radius: 16px;
  z-index: 0;
  transition: background 0.2s;
}

.group-frame:hover {
  background: rgba(99, 102, 241, 0.03) !important;
}

.group-frame-header {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  gap: 6px;
}

/* ============================================
   MISC UI
   ============================================ */

/* AI Chat typing indicator */

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
}

.typing-dot {
  animation: blink 1.4s infinite both;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* CSV drop zone */

.csv-dropzone {
  border: 2px dashed #3f3f46;
  transition: all 0.2s ease;
}

.csv-dropzone.drag-over {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

/* ============================================
   TYPE PICKER — Double-click popover
   ============================================ */

.type-picker {
  background: #1c1c24;
  border: 1px solid #2f2f3a;
  border-radius: 14px;
  padding: 8px;
  width: 280px;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.7),
    0 0 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  animation: ctxFadeIn 0.12s ease-out;
}

.type-picker-header {
  font-size: 10px;
  font-weight: 600;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px 8px;
}

.type-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.type-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.1s;
}

.type-picker-item:hover {
  background: rgba(99, 102, 241, 0.1);
}

.type-picker-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.type-picker-item:hover .type-picker-icon {
  transform: scale(1.1);
}

.type-picker-label {
  font-size: 9px;
  color: #a1a1aa;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.type-picker-group {
  margin-bottom: 4px;
}

.type-picker-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 1px solid #2f2f3a;
  margin-top: 4px;
}

.type-picker-group:first-child .type-picker-group-header {
  border-top: none;
  margin-top: 0;
}

.type-picker-group-desc {
  font-size: 9px;
  font-weight: 400;
  color: #52525b;
  text-transform: none;
  letter-spacing: normal;
  margin-left: auto;
}

/* Scrollbar styling for type picker */

.type-picker::-webkit-scrollbar {
  width: 4px;
}

.type-picker::-webkit-scrollbar-track {
  background: transparent;
}

.type-picker::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

/* Config modal scrollbar */

.config-modal-scroll::-webkit-scrollbar {
  width: 5px;
}

.config-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.config-modal-scroll::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

.config-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* ─── Workflow Modal ─── */

.wf-kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  flex: 1;
  padding: 16px;
  align-items: flex-start;
}

.wf-kanban::-webkit-scrollbar {
  height: 6px;
}

.wf-kanban::-webkit-scrollbar-track {
  background: transparent;
}

.wf-kanban::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

.wf-column {
  min-width: 260px;
  max-width: 300px;
  flex-shrink: 0;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
  transition: border-color 0.2s;
}

.wf-column-dragover {
  border-color: #6366f1;
  background: #6366f108;
}

.wf-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #27272a;
}

.wf-column-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wf-column-body::-webkit-scrollbar {
  width: 4px;
}

.wf-column-body::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

.wf-card {
  background: #141416;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wf-card:hover {
  border-color: #3f3f46;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.wf-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  background: #27272a;
  color: #a1a1aa;
}

.wf-card-badge-overdue {
  background: #ef444420 !important;
  color: #ef4444 !important;
}

/* Leftover data badge */

.cell-badge-leftover,
.cell-badge-rules,
.cell-badge-coverage,
.cell-badge-categories {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 8px;
  font-weight: 600;
}

.cell-badge-viewmode {
  display: flex;
  align-items: center;
}

.placeholder\:text-zinc-600::-moz-placeholder {
  --tw-text-opacity: 1;
  color: rgb(82 82 91 / var(--tw-text-opacity, 1));
}

.placeholder\:text-zinc-600::placeholder {
  --tw-text-opacity: 1;
  color: rgb(82 82 91 / var(--tw-text-opacity, 1));
}

.hover\:scale-110:hover {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:border-zinc-500:hover {
  --tw-border-opacity: 1;
  border-color: rgb(113 113 122 / var(--tw-border-opacity, 1));
}

.hover\:border-zinc-600:hover {
  --tw-border-opacity: 1;
  border-color: rgb(82 82 91 / var(--tw-border-opacity, 1));
}

.hover\:border-zinc-700:hover {
  --tw-border-opacity: 1;
  border-color: rgb(63 63 70 / var(--tw-border-opacity, 1));
}

.hover\:bg-amber-500:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
}

.hover\:bg-indigo-500:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(99 102 241 / var(--tw-bg-opacity, 1));
}

.hover\:bg-indigo-500\/10:hover {
  background-color: rgb(99 102 241 / 0.1);
}

.hover\:bg-indigo-500\/90:hover {
  background-color: rgb(99 102 241 / 0.9);
}

.hover\:bg-indigo-600\/40:hover {
  background-color: rgb(79 70 229 / 0.4);
}

.hover\:bg-red-500:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-500\/10:hover {
  background-color: rgb(239 68 68 / 0.1);
}

.hover\:bg-red-500\/20:hover {
  background-color: rgb(239 68 68 / 0.2);
}

.hover\:bg-zinc-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(63 63 70 / var(--tw-bg-opacity, 1));
}

.hover\:bg-zinc-700\/50:hover {
  background-color: rgb(63 63 70 / 0.5);
}

.hover\:bg-zinc-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(39 39 42 / var(--tw-bg-opacity, 1));
}

.hover\:bg-zinc-800\/30:hover {
  background-color: rgb(39 39 42 / 0.3);
}

.hover\:bg-zinc-800\/50:hover {
  background-color: rgb(39 39 42 / 0.5);
}

.hover\:bg-zinc-800\/80:hover {
  background-color: rgb(39 39 42 / 0.8);
}

.hover\:bg-zinc-900:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(24 24 27 / var(--tw-bg-opacity, 1));
}

.hover\:bg-zinc-900\/50:hover {
  background-color: rgb(24 24 27 / 0.5);
}

.hover\:text-indigo-300:hover {
  --tw-text-opacity: 1;
  color: rgb(165 180 252 / var(--tw-text-opacity, 1));
}

.hover\:text-red-300:hover {
  --tw-text-opacity: 1;
  color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}

.hover\:text-red-400:hover {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}

.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.hover\:text-zinc-200:hover {
  --tw-text-opacity: 1;
  color: rgb(228 228 231 / var(--tw-text-opacity, 1));
}

.hover\:text-zinc-300:hover {
  --tw-text-opacity: 1;
  color: rgb(212 212 216 / var(--tw-text-opacity, 1));
}

.hover\:text-zinc-400:hover {
  --tw-text-opacity: 1;
  color: rgb(161 161 170 / var(--tw-text-opacity, 1));
}

.hover\:text-zinc-500:hover {
  --tw-text-opacity: 1;
  color: rgb(113 113 122 / var(--tw-text-opacity, 1));
}

.hover\:opacity-70:hover {
  opacity: 0.7;
}

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

.focus\:border-indigo-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(99 102 241 / var(--tw-border-opacity, 1));
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

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

.focus\:ring-indigo-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1));
}

.focus\:ring-indigo-500\/30:focus {
  --tw-ring-color: rgb(99 102 241 / 0.3);
}

.disabled\:cursor-default:disabled {
  cursor: default;
}

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

.disabled\:opacity-30:disabled {
  opacity: 0.3;
}

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

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

@media (min-width: 640px) {
  .sm\:inline {
    display: inline;
  }
}
