*, ::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.18 | 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;
}

.\!container {
  width: 100% !important;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {
  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}

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

.visible {
  visibility: visible;
}

.invisible {
  visibility: hidden;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  inset: 0px;
}

.right-0 {
  right: 0px;
}

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

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

.-m-2 {
  margin: -0.5rem;
}

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

.\!mt-0 {
  margin-top: 0px !important;
}

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

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

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

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

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

.ml-2 {
  margin-left: 0.5rem;
}

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

.mr-1\.5 {
  margin-right: 0.375rem;
}

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

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

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

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

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

.mt-6 {
  margin-top: 1.5rem;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

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

.\!table {
  display: table !important;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-3 {
  height: 0.75rem;
}

.h-4 {
  height: 1rem;
}

.max-h-32 {
  max-height: 8rem;
}

.max-h-40 {
  max-height: 10rem;
}

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

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

.w-12 {
  width: 3rem;
}

.w-3 {
  width: 0.75rem;
}

.w-4 {
  width: 1rem;
}

.w-64 {
  width: 16rem;
}

.w-72 {
  width: 18rem;
}

.w-full {
  width: 100%;
}

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

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-7xl {
  max-width: 80rem;
}

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

.max-w-md {
  max-width: 28rem;
}

.max-w-screen-2xl {
  max-width: 1536px;
}

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

.flex-none {
  flex: none;
}

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

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

.table-auto {
  table-layout: auto;
}

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

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

.cursor-pointer {
  cursor: pointer;
}

.list-inside {
  list-style-position: inside;
}

.list-disc {
  list-style-type: disc;
}

.list-none {
  list-style-type: none;
}

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

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

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

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

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

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

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

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

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

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

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-x-2 {
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
}

.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}

.gap-x-8 {
  -moz-column-gap: 2rem;
       column-gap: 2rem;
}

.gap-y-1 {
  row-gap: 0.25rem;
}

.gap-y-2 {
  row-gap: 0.5rem;
}

.gap-y-6 {
  row-gap: 1.5rem;
}

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

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

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

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

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

.overflow-auto {
  overflow: auto;
}

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

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

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

.break-words {
  overflow-wrap: break-word;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

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

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

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

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

.border {
  border-width: 1px;
}

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

.\!border-t-0 {
  border-top-width: 0px !important;
}

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

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

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

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

.border-blue-400 {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}

.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.border-gray-400 {
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
}

.border-gray-600 {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}

.border-green-200 {
  --tw-border-opacity: 1;
  border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
}

.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}

.bg-amber-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(252 211 77 / var(--tw-bg-opacity, 1));
}

.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}

.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}

.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

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

.bg-green-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));
}

.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}

.bg-purple-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
}

.bg-purple-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
}

.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

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

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

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

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

.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}

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

.p-8 {
  padding: 2rem;
}

.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-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

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

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

.\!pt-0 {
  padding-top: 0px !important;
}

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

.pb-3 {
  padding-bottom: 0.75rem;
}

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

.pl-5 {
  padding-left: 1.25rem;
}

.pr-2 {
  padding-right: 0.5rem;
}

.pr-4 {
  padding-right: 1rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

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

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

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

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

.align-top {
  vertical-align: top;
}

.align-middle {
  vertical-align: middle;
}

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

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

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.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-normal {
  font-weight: 400;
}

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

.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.text-blue-800 {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}

.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}

.text-purple-600 {
  --tw-text-opacity: 1;
  color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}

.text-purple-800 {
  --tw-text-opacity: 1;
  color: rgb(107 33 168 / var(--tw-text-opacity, 1));
}

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

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

.text-slate-600 {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}

.text-slate-800 {
  --tw-text-opacity: 1;
  color: rgb(30 41 59 / var(--tw-text-opacity, 1));
}

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

.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-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px 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-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 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 {
  outline-style: solid;
}

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

.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(4px);
  -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-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-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

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

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

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #f3f4f6;
  color: #1f2937;
  font-size: 0.875rem;
}

/* --- Header Logo & Animation --- */

.logo-container {
  display: inline-block;
  padding: 0.5rem 2rem;
  border: 2px solid transparent;
  border-radius: 1rem;
  animation: fadeInBorder 1.5s ease-out forwards;
}

@keyframes fadeInBorder {
  from {
    border-color: transparent;
  }

  to {
    border-color: #e5e7eb;
  }
}

.logo-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: #111827;
  transition: font-size 0.5s ease-out;
  white-space: nowrap;
}

.logo-subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #4b5563;
  margin-top: -0.5rem;
  transition: font-size 0.5s ease-out;
}

.shine-text {
  background-image: linear-gradient(90deg, #4b5563, #4b5563, #fff, #4b5563, #4b5563);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 10s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 150% 0;
  }

  15% {
    background-position: 150% 0;
  }

  30% {
    background-position: -50% 0;
  }

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

#app-container.step-active .logo-title {
  font-size: 1.75rem;
}

#app-container.step-active .logo-subtitle {
  font-size: 0.875rem;
  margin-top: -0.25rem;
}

#app-container.step-active .logo-container {
  padding: 0.25rem 1rem;
}

/* --- Step/Accordion Layout --- */

.step-container {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s ease;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: #e5e7eb;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.step-container.active>.step-title {
  color: #111827;
}

.step-container.active>.step-title .step-number {
  background-color: #3b82f6;
  color: white;
}

.step-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease-in-out, opacity 0.4s ease-in-out, margin-top 0.6s ease-in-out;
  margin-top: 0;
}

.step-container.active>.step-content {
  max-height: 2000vh;
  opacity: 1;
  margin-top: 1.5rem;
}

#app-container.step-active #header-subtitle {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
}

/* --- Info & Tip Boxes --- */

.inline-code {
  background-color: #fee2e2;
  color: #991b1b;
  font-weight: bold;
  font-family: monospace;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.tip-box {
  padding: 1rem;
  background-color: #f0fdfa;
  border: 1px solid #a7f3d0;
  border-left: 4px solid #10b981;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #065f46;
}

.tip-box h3 {
  color: #047857;
}

.tip-box ul {
  list-style-position: inside;
}

.info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-color: #e5e7eb;
  color: #4b5563;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.7rem;
  cursor: help;
  flex-shrink: 0;
  margin-left: 6px;
}

/* --- Toggles (Original and Small) --- */

.toolbar-toggle-label .peer {
  display: none;
}

.toggle-switch {
  width: 2.75rem;
  height: 1.5rem;
  background-color: #d1d5db;
  border-radius: 9999px;
  position: relative;
  transition: background-color 0.2s ease-in-out;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: white;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  transition: transform 0.2s ease-in-out;
}

.peer:checked~.toggle-switch {
  background-color: #3b82f6;
}

.peer:checked~.toggle-switch::after {
  transform: translateX(1.25rem);
}

.toggle-switch-sm {
  width: 2.25rem;
  height: 1.25rem;
}

.toggle-switch-sm::after {
  width: 1rem;
  height: 1rem;
}

.peer:checked~.toggle-switch-sm::after {
  transform: translateX(1rem);
}

/* --- Step 1: File Management Area --- */

.staged-file-card {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: all 0.2s ease;
}

.staged-file-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.staged-file-card .remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 9999px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.staged-file-card .remove-btn:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

.staged-file-card .remove-btn svg {
  width: 14px;
  height: 14px;
}

.staged-file-info {
  font-size: 0.8rem;
  color: #4b5563;
  padding: 0.5rem;
  border-radius: 0.375rem;
  background-color: #e5e7eb;
}

/* --- File Card & Mapping (Step 2) --- */

.file-view-card {
  cursor: grab;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px dashed #d1d5db;
}

.drag-handle-icon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  padding: 2px;
  cursor: grab;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.file-view-card:hover .drag-handle-icon {
  opacity: 1;
}

.drag-handle-icon svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.file-name-container {
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  height: 2.8em;
  /* 2 lines * 1.4 line-height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.primary-card {
  border: 2px solid #3b82f6 !important;
  background-color: #eff6ff !important;
}

.drag-over {
  outline: 3px dashed #2563eb !important;
  outline-offset: 2px;
  background-color: #eff6ff;
}

.header-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mapped-target {
  background-color: #dcfce7 !important;
  outline: 2px solid #16a34a !important;
}

.mapped-source {
  background-color: #dbeafe !important;
  outline: 2px solid #2563eb !important;
}

.one-to-many::after {
  content: '1:M';
  font-size: 0.6rem;
  font-weight: bold;
  color: white;
  background-color: #ef4444;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

.delete-file-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px;
  border-radius: 9999px;
  background-color: #fee2e2;
  color: #b91c1c;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-file-btn:hover {
  background-color: #ef4444;
  color: white;
  transform: scale(1.1);
}

.delete-file-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.row-count-badge {
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.7rem;
  border: 1px solid #e5e7eb;
  background-color: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
  display: flex;
  justify-content: space-between;
  min-width: 90px;
  align-items: center;
  pointer-events: none;
}

.row-count-badge span:first-child {
  color: #4b5563;
  font-weight: 500;
}

.row-count-badge span:last-child {
  font-weight: 600;
  color: #111827;
}

/* --- Mapping & Stats Visualizer --- */

.viz-heading {
  font-weight: 600;
  font-size: 1rem;
  color: #374151;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 0.25rem;
}

.viz-content-box {
  padding: 1rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  min-height: 80px;
}

#mapping-visualizer-container>div {
  display: flex;
  flex-direction: column;
}

.mapping-viz-item>#mapping-visualizer-container>div {
  justify-self: center;
}

#mapping-visualizer-container .viz-content-box {
  flex-grow: 1;
}

.mapping-viz-item {
  display: grid;
  align-items: center;
  gap: 0.75rem;
  grid-template-columns: 1fr max-content auto max-content 1fr;
}

.mapping-viz-item>.mapping-viz-file:first-of-type {
  justify-self: end;
}

.mapping-viz-item>.mapping-viz-key:first-of-type {
  justify-self: end;
}

.mapping-viz-item>.flex {
  justify-self: center;
}

.mapping-viz-item>.mapping-viz-key:last-of-type {
  justify-self: start;
}

.mapping-viz-item>.mapping-viz-file:last-of-type {
  justify-self: start;
}

.mapping-viz-file {
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapping-viz-key {
  font-family: monospace;
  color: #4b5563;
  padding: 2px 6px;
  background-color: #e5e7eb;
  border-radius: 4px;
}

.mapping-viz-arrow {
  font-weight: bold;
  color: #6b7280;
  flex-shrink: 0;
}

.match-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: #166534;
  background-color: #dcfce7;
  border: 1px solid #86efac;
  padding: 2px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}

.file-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.file-stats-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.file-stats-btn:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.file-stats-btn.active {
  border-style: solid;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
}

.stat-card {
  position: relative;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border-width: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.stat-card-title {
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

.stat-card-toolbar {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
}

.stat-card-btn {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  padding: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.stat-card-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.stat-card-btn svg {
  width: 14px;
  height: 14px;
  color: #4b5563;
}

.stat-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.stat-summary-item p:first-child {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.stat-summary-item p:last-child {
  font-size: 0.65rem;
  color: #6b7280;
  font-weight: 500;
}

.stat-list-container .unique-item {
  display: none;
}

.stat-list-container.show-uniques .unique-item {
  display: flex;
}

/* --- Preview Table, Filter, & Sort --- */

.preview-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: white;
}

#final-header-row th {
  background-color: #374151;
  color: white;
  position: relative;
}

#final-header-row th:first-child {
  border-top-left-radius: 0.5rem;
}

#final-header-row th:last-child {
  border-top-right-radius: 0.5rem;
}

.column-drag-handle {
  position: absolute;
  bottom: 0px;
  right: 2px;
  cursor: move;
  color: #9ca3af;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.column-drag-handle svg {
  width: 16px;
  height: 16px;
}

th:hover .column-drag-handle {
  opacity: 1;
}

th.drag-over-indicator {
  border-right: 3px solid #60a5fa;
}

.filter-btn {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}

.filter-btn.active {
  background-color: #dbeafe;
  color: #1e40af;
  border-color: #60a5fa;
  font-weight: 600;
}

.filter-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.filter-section-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.filter-checklist-search {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}

#filter-checklist {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

#filter-checklist label {
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#filter-checklist label:hover {
  background-color: #f3f4f6;
}

#filter-checklist input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* --- Toolbar Styles --- */

.table-toolbar {
  padding: 1rem;
  margin: 1rem 0;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toolbar-row:last-child {
  margin-bottom: 0;
}

.toolbar-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
  min-width: 3rem;
}

/* NEW STYLES FOR STEP 4 BUTTONS */

.toolbar-card-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toolbar-card {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #d1d5db;
  cursor: pointer;
  background-color: #f3f4f6;
  color: #374151;
  font-size: 0.8rem;
}

.toolbar-card svg {
  width: 1.125rem;
  height: 1.125rem;
  color: #6b7280;
}

.toolbar-card:hover {
  background-color: #e5e7eb;
}

.toolbar-card.active {
  background-color: #dbeafe;
  color: #1e40af;
  border-color: #60a5fa;
  font-weight: 600;
}

/* END NEW STYLES */

.toolbar-divider {
  width: 1px;
  height: 1.25rem;
  background-color: #d1d5db;
}

.clear-filters-btn,
.toolbar-btn {
  padding: 0.25rem 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  background-color: #e5e7eb;
}

.clear-filters-btn.active {
  background-color: #fecaca;
  color: #991b1b;
  font-weight: 600;
}

.toolbar-btn:hover,
.clear-filters-btn:hover {
  background-color: #d1d5db;
}

.export-btn {
  background-color: #1d4ed8;
  color: white;
  font-weight: 600;
}

.export-btn:hover {
  background-color: #1e40af;
}

.toolbar-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
}

/* --- Misc & Legacy Styles --- */

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fixed-height-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
  flex-grow: 1;
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ═══════════════════════════════════════════════════════════════════ */

/* ⚠️⚠️⚠️  DO NOT DELETE THIS SECTION - TABLE WILL BREAK  ⚠️⚠️⚠️         */

/* ═══════════════════════════════════════════════════════════════════ */

/*  CSS_GRID_CRITICAL: Main table container with 4-area grid layout   */

/* ═══════════════════════════════════════════════════════════════════ */

.table-container {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: 24px 1fr;
  grid-template-areas:
    "corner letters"
    "numbers table";
  max-height: 70vh;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: white;
  position: relative;
}

/* CSS_GRID_CRITICAL: Top-left corner cell */

.corner-cell {
  grid-area: corner;
  background-color: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

/* CSS_GRID_CRITICAL: Row numbers container */

.row-numbers-container {
  grid-area: numbers;
  background-color: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  overflow: hidden;
  z-index: 10;
  position: relative;
}

.row-numbers-list {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* CSS_GRID_CRITICAL: Main table wrapper */

.table-wrapper {
  grid-area: table;
  overflow: auto;
  position: relative;
  background-color: white;
}

/* ═══════════════════════════════════════════════════════════════════ */

/* END OF CRITICAL SECTION                                            */

/* ═══════════════════════════════════════════════════════════════════ */

#final-table {
  width: 100%;
  border-collapse: collapse;
  position: relative;
}

#final-table tbody tr {
  position: relative;
}

/* Toolbar and button styles */

.toolbar-row-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toolbar-separator {
  width: 1px;
  height: 1.5rem;
  background-color: #d1d5db;
  flex-shrink: 0;
}

.column-filter-btn,
.column-format-btn {
  font-size: 0.6rem;
  padding: 2px 4px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.column-filter-btn:hover {
  background-color: #2563eb;
}

.column-format-btn {
  background-color: #8b5cf6;
}

.column-format-btn:hover {
  background-color: #7c3aed;
}

.row-number-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 32px;
  box-sizing: border-box;
}

.row-number-item:hover {
  background-color: #e2e8f0;
}

.rename-input,
.csv-rename-input {
  display: none;
}

.renaming-active .rename-input,
.csv-renaming-active .csv-rename-input {
  display: block;
}

.csv-renaming-active .csv-name-text {
  display: none;
}

.row-highlight td {
  background-color: #fef08a !important;
}

.special-column {
  background-color: #f3f4f6 !important;
  color: #4b5563;
  font-size: 0.75rem;
  white-space: pre-wrap;
  vertical-align: top;
}

.flash-update {
  animation: flash 1s ease-out;
}

@keyframes flash {
  0%,
    100% {
    background-color: transparent;
  }

  50% {
    background-color: #fef08a;
  }
}

/* --- Typewriter & Blinking Cursor --- */

#typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 1.2s steps(11, end);
  vertical-align: bottom;
}

.blinking-cursor {
  display: inline-block;
  font-weight: 400;
  animation: blink 0.8s step-end infinite;
  vertical-align: bottom;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {
  from,
    to {
    color: transparent;
  }

  50% {
    color: #111827;
  }
}

#app-container.step-active .blinking-cursor {
  display: none;
}

#app-container.step-active #typewriter-text {
  animation: none;
}

/* Intro Content (Step 1) */

.intro-text-box {
  text-align: center;
  max-width: 48rem;
  margin: 2rem auto 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem auto 0 auto;
  max-width: 64rem;
}

.info-card {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.card-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.info-card p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
}

.privacy-note {
  text-align: center;
  margin: 2.5rem auto 0 auto;
  font-size: 0.8rem;
  color: #6b7280;
  max-width: 40rem;
}

/* --- Dynamic Tooltip --- */

#dynamic-tooltip {
  pointer-events: none;
  visibility: hidden;
  position: fixed;
  z-index: 9999;
  max-width: 250px;
  white-space: pre-wrap;
  border-radius: 0.375rem;
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  --tw-text-opacity: 1;
  color: rgb(243 244 246 / var(--tw-text-opacity, 1));
  opacity: 0;
  --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);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#dynamic-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

/* --- Loading States --- */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- Improved Button States --- */

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
}

/* --- File Upload Improvements --- */

#drop-area.drag-over {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
  transform: scale(1.02);
}

/* --- Progress Indicators --- */

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

/* --- Old context menu styles removed --- */

.menu-section {
  padding: 0.25rem 0;
}

.menu-section:not(:last-child) {
  border-bottom: 1px solid #f3f4f6;
}

.menu-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
}

.menu-item-group {
  display: flex;
  justify-content: space-around;
  padding: 0.25rem;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  transition: background-color 0.2s ease;
}

.menu-btn:hover {
  background-color: #f3f4f6;
}

.menu-btn.active {
  background-color: #dbeafe;
  color: #1e40af;
}

.menu-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.color-swatch-group {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: transform 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #3b82f6;
}

.color-swatch.transparent {
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

/* --- Enhanced Table Interface --- */

/* CSS_GRID_CRITICAL: Column letters row */

.column-letters-row {
  grid-area: letters;
  display: flex;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  z-index: 15;
}

.row-number-cell {
  width: 40px;
  min-width: 40px;
  background-color: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

.column-letters-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.column-letter {
  flex: 1;
  min-width: 80px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  border-right: 1px solid #e2e8f0;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease;
  background-color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-letter:hover {
  background-color: #e2e8f0;
}

.column-letter-text {
  flex: 1;
  text-align: center;
}

.column-letter-controls {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.column-letter:hover .column-letter-controls {
  opacity: 1;
}

.column-dropdown-arrow {
  font-size: 0.6rem;
  color: #64748b;
  cursor: pointer;
  padding: 1px;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.column-dropdown-arrow:hover {
  background-color: #d1d5db;
}

.column-drag-handle {
  font-size: 0.5rem;
  color: #9ca3af;
  cursor: grab;
  padding: 1px;
  border-radius: 2px;
  transition: background-color 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.column-drag-handle:hover {
  background-color: #d1d5db;
  color: #64748b;
}

.column-drag-handle:active {
  cursor: grabbing;
}

/* Row Numbers - handled by CSS Grid above */

/* Enhanced Context Menus */

.column-context-menu,
.row-context-menu {
  position: fixed !important;
  z-index: 1000 !important;
  display: none;
  width: 220px;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  top: 0;
  left: 0;
}

.column-context-menu.visible,
.row-context-menu.visible {
  display: block;
}

.context-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 0.5rem;
}

.context-menu-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.context-menu-close {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.context-menu-close:hover {
  background-color: #f3f4f6;
}

.context-menu-section {
  padding: 0.25rem 0;
}

.context-menu-section:not(:last-child) {
  border-bottom: 1px solid #f3f4f6;
}

.context-menu-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.context-menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.8rem;
}

.context-menu-item:hover {
  background-color: #f3f4f6;
}

.context-menu-item.active {
  background-color: #dbeafe;
  color: #1e40af;
}

.context-menu-item.danger {
  color: #dc2626;
}

.context-menu-item.danger:hover {
  background-color: #fef2f2;
}

.context-menu-item svg {
  width: 1rem;
  height: 1rem;
}

.context-menu-align-group {
  display: flex;
  justify-content: space-around;
  padding: 0.25rem;
}

.context-menu-align-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.context-menu-align-item:hover {
  background-color: #f3f4f6;
}

.context-menu-align-item.active {
  background-color: #dbeafe;
}

.context-menu-color-group {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem;
}

.context-menu-color-item {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: transform 0.2s ease;
}

.context-menu-color-item:hover {
  transform: scale(1.1);
}

.context-menu-color-item.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #3b82f6;
}

.context-menu-color-item.transparent {
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

.hover\:border-blue-400:hover {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}

.hover\:bg-blue-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(191 219 254 / var(--tw-bg-opacity, 1));
}

.hover\:bg-blue-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}

.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-300:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}

.hover\:bg-green-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}

.hover\:bg-purple-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(126 34 206 / var(--tw-bg-opacity, 1));
}

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

.hover\:text-gray-700:hover {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.hover\:text-gray-800:hover {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.hover\:shadow-md:hover {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

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

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

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}