*, ::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;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

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

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

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

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

  .container {
    max-width: 1536px;
  }
}
.pointer-events-none {
  pointer-events: none;
}
.visible {
  visibility: visible;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.inset-0 {
  inset: 0px;
}
.inset-y-0 {
  top: 0px;
  bottom: 0px;
}
.-left-1 {
  left: -0.25rem;
}
.-top-0 {
  top: -0px;
}
.-top-1 {
  top: -0.25rem;
}
.-top-px {
  top: -1px;
}
.bottom-0 {
  bottom: 0px;
}
.left-0 {
  left: 0px;
}
.left-1\/2 {
  left: 50%;
}
.right-0 {
  right: 0px;
}
.top-0 {
  top: 0px;
}
.top-full {
  top: 100%;
}
.isolate {
  isolation: isolate;
}
.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.z-\[90\] {
  z-index: 90;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.-mx-6 {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.-mb-6 {
  margin-bottom: -1.5rem;
}
.-mb-px {
  margin-bottom: -1px;
}
.-mt-1\.5 {
  margin-top: -0.375rem;
}
.-mt-32 {
  margin-top: -8rem;
}
.-mt-6 {
  margin-top: -1.5rem;
}
.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;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mr-1\.5 {
  margin-right: 0.375rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-auto {
  margin-right: auto;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-1\.5 {
  margin-top: 0.375rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.table-column {
  display: table-column;
}
.grid {
  display: grid;
}
.h-1\.5 {
  height: 0.375rem;
}
.h-2 {
  height: 0.5rem;
}
.h-2\.5 {
  height: 0.625rem;
}
.h-3 {
  height: 0.75rem;
}
.h-4 {
  height: 1rem;
}
.h-6 {
  height: 1.5rem;
}
.h-7 {
  height: 1.75rem;
}
.h-8 {
  height: 2rem;
}
.h-\[calc\(100vh-180px\)\] {
  height: calc(100vh - 180px);
}
.h-full {
  height: 100%;
}
.max-h-48 {
  max-height: 12rem;
}
.max-h-52 {
  max-height: 13rem;
}
.max-h-64 {
  max-height: 16rem;
}
.max-h-72 {
  max-height: 18rem;
}
.max-h-\[520px\] {
  max-height: 520px;
}
.max-h-\[90vh\] {
  max-height: 90vh;
}
.min-h-\[28px\] {
  min-height: 28px;
}
.min-h-\[calc\(100vh-3\.75rem\)\] {
  min-height: calc(100vh - 3.75rem);
}
.min-h-full {
  min-height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}
.w-1\.5 {
  width: 0.375rem;
}
.w-1\/2 {
  width: 50%;
}
.w-1\/3 {
  width: 33.333333%;
}
.w-1\/4 {
  width: 25%;
}
.w-12 {
  width: 3rem;
}
.w-14 {
  width: 3.5rem;
}
.w-16 {
  width: 4rem;
}
.w-2 {
  width: 0.5rem;
}
.w-2\.5 {
  width: 0.625rem;
}
.w-2\/5 {
  width: 40%;
}
.w-20 {
  width: 5rem;
}
.w-24 {
  width: 6rem;
}
.w-28 {
  width: 7rem;
}
.w-3 {
  width: 0.75rem;
}
.w-36 {
  width: 9rem;
}
.w-4 {
  width: 1rem;
}
.w-4\/5 {
  width: 80%;
}
.w-48 {
  width: 12rem;
}
.w-52 {
  width: 13rem;
}
.w-56 {
  width: 14rem;
}
.w-6 {
  width: 1.5rem;
}
.w-64 {
  width: 16rem;
}
.w-7 {
  width: 1.75rem;
}
.w-72 {
  width: 18rem;
}
.w-8 {
  width: 2rem;
}
.w-80 {
  width: 20rem;
}
.w-\[104px\] {
  width: 104px;
}
.w-\[130px\] {
  width: 130px;
}
.w-\[680px\] {
  width: 680px;
}
.w-full {
  width: 100%;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-\[100px\] {
  min-width: 100px;
}
.min-w-\[110px\] {
  min-width: 110px;
}
.min-w-\[120px\] {
  min-width: 120px;
}
.min-w-\[130px\] {
  min-width: 130px;
}
.min-w-\[180px\] {
  min-width: 180px;
}
.min-w-\[900px\] {
  min-width: 900px;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-\[120px\] {
  max-width: 120px;
}
.max-w-\[130px\] {
  max-width: 130px;
}
.max-w-\[140px\] {
  max-width: 140px;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-sm {
  max-width: 24rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink-0 {
  flex-shrink: 0;
}
.grow {
  flex-grow: 1;
}
.table-fixed {
  table-layout: fixed;
}
.border-collapse {
  border-collapse: collapse;
}
.-translate-x-1\/2 {
  --tw-translate-x: -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));
}
.-translate-y-1 {
  --tw-translate-y: -0.25rem;
  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));
}
.rotate-180 {
  --tw-rotate: 180deg;
  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 pulse {

  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.cursor-col-resize {
  cursor: col-resize;
}
.cursor-default {
  cursor: default;
}
.cursor-grab {
  cursor: grab;
}
.cursor-help {
  cursor: help;
}
.cursor-move {
  cursor: move;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-text {
  cursor: text;
}
.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.resize-none {
  resize: none;
}
.resize-y {
  resize: vertical;
}
.resize {
  resize: both;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.items-stretch {
  align-items: stretch;
}
.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-6 {
  gap: 1.5rem;
}
.gap-x-3 {
  -moz-column-gap: 0.75rem;
       column-gap: 0.75rem;
}
.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}
.gap-x-5 {
  -moz-column-gap: 1.25rem;
       column-gap: 1.25rem;
}
.gap-y-3 {
  row-gap: 0.75rem;
}
.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-2\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.625rem * 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-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * 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));
}
.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;
}
.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-sm {
  border-radius: 0.125rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-t-lg {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-t {
  border-top-width: 1px;
}
.border-blue-400 {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}
.border-emerald-500\/30 {
  border-color: rgb(16 185 129 / 0.3);
}
.border-orange-500\/30 {
  border-color: rgb(249 115 22 / 0.3);
}
.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-slate-300 {
  --tw-border-opacity: 1;
  border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
}
.border-transparent {
  border-color: transparent;
}
.border-white\/10 {
  border-color: rgb(255 255 255 / 0.1);
}
.bg-black\/40 {
  background-color: rgb(0 0 0 / 0.4);
}
.bg-blue-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(96 165 250 / var(--tw-bg-opacity, 1));
}
.bg-blue-500\/25 {
  background-color: rgb(59 130 246 / 0.25);
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-emerald-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(52 211 153 / var(--tw-bg-opacity, 1));
}
.bg-emerald-500\/15 {
  background-color: rgb(16 185 129 / 0.15);
}
.bg-green-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}
.bg-orange-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(251 146 60 / var(--tw-bg-opacity, 1));
}
.bg-orange-500\/15 {
  background-color: rgb(249 115 22 / 0.15);
}
.bg-red-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 113 113 / var(--tw-bg-opacity, 1));
}
.bg-red-500\/10 {
  background-color: rgb(239 68 68 / 0.1);
}
.bg-red-500\/15 {
  background-color: rgb(239 68 68 / 0.15);
}
.bg-transparent {
  background-color: transparent;
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-white\/10 {
  background-color: rgb(255 255 255 / 0.1);
}
.bg-white\/15 {
  background-color: rgb(255 255 255 / 0.15);
}
.bg-white\/20 {
  background-color: rgb(255 255 255 / 0.2);
}
.bg-white\/30 {
  background-color: rgb(255 255 255 / 0.3);
}
.bg-white\/5 {
  background-color: rgb(255 255 255 / 0.05);
}
.bg-yellow-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(250 204 21 / var(--tw-bg-opacity, 1));
}
.p-0 {
  padding: 0px;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-2\.5 {
  padding: 0.625rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.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;
}
.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-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.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-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pb-1 {
  padding-bottom: 0.25rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pl-1 {
  padding-left: 0.25rem;
}
.pl-10 {
  padding-left: 2.5rem;
}
.pt-1 {
  padding-top: 0.25rem;
}
.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;
}
.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-\[10px\] {
  font-size: 10px;
}
.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-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.leading-none {
  line-height: 1;
}
.leading-tight {
  line-height: 1.25;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.text-amber-300\/90 {
  color: rgb(252 211 77 / 0.9);
}
.text-amber-400 {
  --tw-text-opacity: 1;
  color: rgb(251 191 36 / var(--tw-text-opacity, 1));
}
.text-black {
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.text-blue-200 {
  --tw-text-opacity: 1;
  color: rgb(191 219 254 / var(--tw-text-opacity, 1));
}
.text-blue-300 {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / var(--tw-text-opacity, 1));
}
.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-emerald-400 {
  --tw-text-opacity: 1;
  color: rgb(52 211 153 / var(--tw-text-opacity, 1));
}
.text-emerald-600 {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}
.text-indigo-200 {
  --tw-text-opacity: 1;
  color: rgb(199 210 254 / var(--tw-text-opacity, 1));
}
.text-indigo-300 {
  --tw-text-opacity: 1;
  color: rgb(165 180 252 / var(--tw-text-opacity, 1));
}
.text-orange-300 {
  --tw-text-opacity: 1;
  color: rgb(253 186 116 / var(--tw-text-opacity, 1));
}
.text-orange-400 {
  --tw-text-opacity: 1;
  color: rgb(251 146 60 / var(--tw-text-opacity, 1));
}
.text-purple-200 {
  --tw-text-opacity: 1;
  color: rgb(233 213 255 / var(--tw-text-opacity, 1));
}
.text-red-300 {
  --tw-text-opacity: 1;
  color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-slate-400 {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}
.text-slate-600 {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}
.text-slate-700 {
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}
.text-slate-900 {
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-white\/35 {
  color: rgb(255 255 255 / 0.35);
}
.text-white\/50 {
  color: rgb(255 255 255 / 0.5);
}
.text-white\/70 {
  color: rgb(255 255 255 / 0.7);
}
.text-white\/90 {
  color: rgb(255 255 255 / 0.9);
}
.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.accent-blue-400 {
  accent-color: #60a5fa;
}
.opacity-100 {
  opacity: 1;
}
.opacity-30 {
  opacity: 0.3;
}
.opacity-40 {
  opacity: 0.4;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-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;
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.backdrop-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-\[box-shadow\2c transform\2c filter\] {
  transition-property: box-shadow,transform,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-150 {
  transition-duration: 150ms;
}

html {
  font-size: 18px;
}

body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  /* scenic image only - the uniform tint lives in body::before below, not here.
     the old 2-stop linear-gradient (dark navy top -> lighter navy bottom) added its own
     small top->bottom variation on top of the image's own natural sky->grass shift; removed
     so the only thing left varying by position is the image itself, now masked by the overlay. */
  background: url('/home-bg.png') center / cover no-repeat fixed;
  min-height: 100vh;
}

/* Uniform page-level tint: fixed to the viewport (not the document), sitting above the scenic
   image and below every panel/header. This is the actual fix for the horizontal band/green-lower-
   section issue: previously every .glass-card's backdrop-filter sampled the image directly, and
   a tall panel spans more of the image's real sky(top)->grass(bottom) color shift than a short
   one, so taller panels always looked more green toward their bottom regardless of tuning
   glass-card's own opacity/saturate. A flat, viewport-pinned overlay has zero vertical variation
   for backdrop-filter to pick up, and — being position:fixed — it always covers exactly 100vw x
   100vh and is completely unaffected by document scroll height or any panel growing taller
   (see GridPanel's growHeight). z-index:-1 mirrors the same safe pattern already used by
   .glass-card::before elsewhere in this file. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(10, 20, 45, 0.5);
}

/* ─── Liquid Glass Variables (level 3 = default / current appearance) */
/* --glass-saturate/--glass-bg tuned down from 180%/0.08 (07.2026): backdrop-filter samples the
   real fixed body background live, and that background has a genuine top→bottom color shift
   (dark navy gradient over sky/mountains up top, greener grass/dirt lower in home-bg.png). A tall
   glass-card spans more of that vertical shift within its own box than a short one, and 180%
   saturation amplified whatever hue it sampled at each point — so taller panels visibly picked up
   a green/yellow cast toward their bottom edge that shorter panels never showed. Lower saturate
   plus a bit more opaque backing masks that sampled variation regardless of panel height. */
:root {
  --glass-blur: 28px;
  --glass-saturate: 140%;
  --glass-bg: 0.115;
  --glass-border: 0.14;
  --glass-inset: 0.22;
  --glass-shadow: 0.28;
}

/* ─── Theme variables (dark = default, matches pre-existing appearance exactly).
   Scoped to the header only for now — no other component reads these yet. */
:root {
  --bg-primary: rgba(5, 8, 35, 0.58);
  --text-primary: #ffffff;
  --border-color: rgba(255, 255, 255, 0.0896);
}

:root[data-theme="light"] {
  --bg-primary: rgba(255, 255, 255, 0.75);
  --text-primary: #0f172a;
  --border-color: rgba(15, 23, 42, 0.12);
}

/* ─── Liquid Glass System ──────────────────────────────────────── */

/* Header */
.glass-header {
  background: var(--bg-primary);
  color: var(--text-primary);
  backdrop-filter: blur(calc(var(--glass-blur) * 1.14)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 1.14)) saturate(var(--glass-saturate));
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.40);
}

/* Primary card / panel */
.glass-card {
  position: relative;
  /* background stays on the element itself (not moved to ::before) */
  background: rgba(255, 255, 255, var(--glass-bg));
  border: 1px solid rgba(255, 255, 255, var(--glass-border));
  box-shadow:
    0 16px 48px rgba(0, 0, 0, var(--glass-shadow)),
    inset 0 1px 0 rgba(255, 255, 255, var(--glass-inset));
  /* keep the card's own GPU layer + stacking context (also contains the ::before z-index:-1) */
  transform: translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
  will-change: transform;
}
/* Canonical fix: the blur lives on a contentless pseudo-element on its own pinned GPU
   layer, so Chrome doesn't drop & re-sample it under fast mouse movement. Variables
   (not hardcoded) keep the adjustable glass level intact; -webkit- keeps Safari. */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  z-index: -1;
  will-change: backdrop-filter;
  pointer-events: none;
}

/* Sticky sub-header inside an already-blurred .glass-card (modal title bars,
   in-card sticky headers) — own independent blur since it needs to stay
   legible while content scrolls underneath it. Fixed 20px blur (not tied to
   --glass-blur) matches what every current usage already hardcoded inline. */
.glass-sticky-header {
  background: rgba(10, 15, 50, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  will-change: backdrop-filter;
  transform: translateZ(0);
}

/* Same pattern, table-row variant (sticky <thead><tr>) — own border lives on
   each <th> already, not the row, and the glass-mode shade is intentionally
   slightly different (darker/less-opaque navy) so cannot literally reuse
   .glass-sticky-header without changing that existing glass-mode appearance.
   Flat overrides intentionally reuse the exact same hex values as
   .glass-sticky-header for cross-component consistency once opaque. */
.glass-sticky-header-row {
  background: rgba(6, 14, 48, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: backdrop-filter;
  transform: translateZ(0);
}

/* Floating dropdowns — darker so content behind doesn't bleed through */
.glass-dropdown {
  background: rgba(7, 14, 50, 0.94);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid rgba(255, 255, 255, calc(var(--glass-border) * 0.93));
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, calc(var(--glass-inset) * 0.45));
}

/* Nested sub-panel inside an already-blurred .glass-card (e.g. an expandable row or
   sub-form within a card). Same background/border/shadow as .glass-card (identical
   CSS variables, same visual density) but deliberately has NO backdrop-filter of its
   own — stacking a second independent blur+saturate() on top of an ancestor that
   already blurred the page background compounds the saturation and picks up a
   yellow/green cast from whatever part of the background art sits behind it. */
.glass-card-nested {
  background: rgba(255, 255, 255, var(--glass-bg));
  border: 1px solid rgba(255, 255, 255, var(--glass-border));
  box-shadow:
    0 16px 48px rgba(0, 0, 0, var(--glass-shadow)),
    inset 0 1px 0 rgba(255, 255, 255, var(--glass-inset));
}

/* Lighter inner panel */
.glass-panel {
  background: rgba(255, 255, 255, calc(var(--glass-bg) * 0.69));
  backdrop-filter: blur(calc(var(--glass-blur) * 0.71)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.71)) saturate(var(--glass-saturate));
  border: 1px solid rgba(255, 255, 255, calc(var(--glass-border) * 0.71));
  box-shadow:
    0 8px 28px rgba(0, 0, 0, calc(var(--glass-shadow) * 0.71)),
    inset 0 1px 0 rgba(255, 255, 255, calc(var(--glass-inset) * 0.64));
}

/* Modal backdrop */
.glass-backdrop {
  background: rgba(2, 6, 30, 0.68);
  backdrop-filter: blur(calc(var(--glass-blur) * 0.5));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.5));
}

/* ─── Inputs ────────────────────────────────────────────────────── */

.glass-input {
  background: rgba(255, 255, 255, calc(var(--glass-bg) * 0.875)) !important;
  border: 1px solid rgba(255, 255, 255, calc(var(--glass-border) * 1.29)) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(calc(var(--glass-blur) * 0.36));
  border-radius: 0.5rem;
  /* No transition on background/box-shadow: the focus fade made neighbouring glass
     panels' backdrop-filter re-sample every frame → flicker. Focus highlight is
     unchanged, just applied instantly. */
}
.glass-input::-moz-placeholder { color: rgba(255, 255, 255, 0.32) !important; }
.glass-input::placeholder { color: rgba(255, 255, 255, 0.32) !important; }
.glass-input:focus {
  background: rgba(255, 255, 255, calc(var(--glass-bg) * 1.375)) !important;
  border-color: rgba(147, 197, 253, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
  outline: none !important;
}
.glass-input option { background: #0f2044; color: rgba(255,255,255,0.9); }

/* ─── Tables ────────────────────────────────────────────────────── */

.glass-th {
  background: rgba(255, 255, 255, calc(var(--glass-bg) * 0.69));
  color: rgba(255, 255, 255, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, calc(var(--glass-border) * 0.71));
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.glass-tr {
  border-bottom: 1px solid rgba(255, 255, 255, calc(var(--glass-border) * 0.39));
  /* No background transition: the row-hover fade forced neighbouring panels'
     backdrop-filter to re-sample each frame → flicker. Hover highlight unchanged,
     just instant. */
}
.glass-tr:hover { background: rgba(255, 255, 255, calc(var(--glass-bg) * 0.69)); }
.glass-tr-active { background: rgba(99, 102, 241, 0.35) !important; }
.glass-tr-active:hover { background: rgba(99, 102, 241, 0.44) !important; }
.glass-tr-absent { background: rgba(249, 115, 22, 0.22) !important; }
.glass-tr-assigned { background: rgba(255, 255, 255, 0.035) !important; }

/* ─── Buttons ───────────────────────────────────────────────────── */

.glass-btn {
  backdrop-filter: blur(calc(var(--glass-blur) * 0.43));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.43));
  /* Was `all` (which animates backdrop-filter too → forces glass re-sample). Only the
     properties that actually change on hover/active are listed now — same visible motion. */
  transition: box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,calc(var(--glass-inset) * 0.82)), 0 4px 14px rgba(0,0,0,0.22);
  color: white;
  font-weight: 500;
  border-radius: 0.5rem;
}
.glass-btn:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,calc(var(--glass-inset) * 1.18)), 0 6px 22px rgba(0,0,0,0.28);
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.glass-btn:active { transform: translateY(0); filter: brightness(0.96); }

.glass-btn-blue   { background: rgba(59,130,246,0.52);  border: 1px solid rgba(147,197,253,0.60); }
.glass-btn-green  { background: rgba(34,197,94,0.48);   border: 1px solid rgba(134,239,172,0.60); }
.glass-btn-purple { background: rgba(139,92,246,0.52);  border: 1px solid rgba(196,181,253,0.60); }
.glass-btn-orange { background: rgba(249,115,22,0.52);  border: 1px solid rgba(253,186,116,0.60); }
.glass-btn-red    { background: rgba(239,68,68,0.48);   border: 1px solid rgba(252,165,165,0.60); }
.glass-btn-gray   { background: rgba(148,163,184,0.38); border: 1px solid rgba(203,213,225,0.48); }
.glass-btn-indigo { background: rgba(99,102,241,0.52);  border: 1px solid rgba(165,180,252,0.60); }
.glass-btn-teal   { background: rgba(20,184,166,0.48);  border: 1px solid rgba(94,234,212,0.60); }
.glass-btn-ghost  { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); }

/* ─── Misc ──────────────────────────────────────────────────────── */

.glass-divider { border-color: rgba(255,255,255,0.10); }

/* Scrollbar on glass */
.glass-scroll::-webkit-scrollbar { width: 5px; height: 5px; }
.glass-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
.glass-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 99px; }
.glass-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.30); }

/* Orders screen (medium tier, 1180px only) — uniform 10px gap on every side
   between all 6 panels (trip/time/customer/calendar/list/lineitems), instead
   of the mix of 0px (touching) and 20px (one SNAP unit) gaps the raw grid
   produces. 10px isn't a multiple of SNAP(20px), so it can't be expressed by
   changing TIER_LAYOUT_OVERRIDES.medium's x/y/w/h alone - grid positions only
   land on 20px steps. Instead, each panel's grid position is nudged by a
   small CSS margin (computed by hand below, verified live via
   getBoundingClientRect - not simulated), landing exactly on the 10px-gap
   target while the underlying grid units are untouched. trip and list need
   no adjustment - they already land on their target position with zero
   margin. lineitems additionally needs 10px trimmed off its width (620px ->
   610px) to keep a 10px gap to list on its right - grid w only moves in 20px
   steps too, so this needs a direct width override; `!important` is
   required only because GridPanel sets `width` as an inline style (there's
   no other way to override an inline value from an external stylesheet).
   Scoped to [data-tier="medium"], so wide/xwide (different data-tier value)
   are structurally unable to match any of these selectors.
     trip:      unchanged (0,0,400,240)          - anchor, no margin
     time:      margin-left: 10px  -> left 410   (was touching trip at 400)
     list:      unchanged (620,0,820,500)         - already exactly 10px
                after time's shift, no margin needed
     calendar:  margin-left: -10px -> left 830   (was 20px past list at 840).
                h grown separately (20 units/400px, see DesignMode.jsx) so its
                own outer scroll no longer needs to move at all - only its
                day-table's own inner scroll does, same as every tier.
     customer:  margin-top: 10px   -> top 410    (calendar.y grew to keep this
                touching calendar's new, taller bottom edge at 400 before the
                margin is added)
     lineitems: margin-top: -10px  -> top 250    (was 20px below trip/time
                at 260); width 610px !important -> right edge 610 (was 620,
                which touched list's left edge at 620)
   Full check (all 7 adjacent-pair gaps, hand-verified before implementing,
   then confirmed live): trip-time 10, time-list 10, list-calendar 10,
   calendar-customer 10, trip-lineitems 10, time-lineitems 10, lineitems-list
   10. Rightmost edge (calendar/customer at 1120px) fits inside the ~1132px
   available content width at 1180px viewport (12px to spare) - no overflow.
   No panel width/height was reduced other than lineitems' 10px trim above -
   every panel's own scrollHeight/clientHeight relationship (content fit) is
   therefore unaffected by this change. */
[data-tier="medium"][data-panel-id="time"] { margin-left: 10px; }
[data-tier="medium"][data-panel-id="calendar"] { margin-left: -10px; }
[data-tier="medium"][data-panel-id="customer"] { margin-top: 10px; }
[data-tier="medium"][data-panel-id="lineitems"] { margin-top: -10px; width: 610px !important; }

/* MonthlyBoard's month-nav buttons (medium tier only) - the header row
   ("לוח חודשי" + "חודש קודם"/"חודש הבא" + month label) needs 345px but only
   241px is available at calendar's medium-tier width, so "חודש הבא" spilled
   104px past the card's own left edge (RTL - overflowing content spills
   left) - confirmed via scrollWidth/clientWidth and getBoundingClientRect
   before touching anything. MonthlyBoard.jsx is shared across every tier
   (same component wide/xwide/narrow use), so the fix is CSS-only, scoped to
   [data-tier="medium"][data-panel-id="calendar"] - it can't reach wide/
   xwide's own data-tier value. The two data-nav="prev"/"next" attributes
   added to the buttons in MonthlyBoard.jsx are inert markers (no visual/
   behavioral effect anywhere by themselves) that let this selector target
   each button individually without depending on text content or DOM order.
   Text stays in the DOM (font-size:0 only hides it visually - screen
   readers still read the real label, and title="..." gives mouse-hover
   users the same text as a tooltip); a ::before pseudo-element shows a
   compact arrow instead. min-width/min-height keep a touch-friendly ~36px
   tap target despite the visual size shrinking. Shrinking the two buttons
   alone left an 8px shortfall (249px needed vs 241px available) - closed by
   trimming the header row's own gap (8px -> 2px) via the data-role hook
   below, instead of shrinking the touch targets any further. */
[data-tier="medium"][data-panel-id="calendar"] [data-role="calendar-header"] {
  gap: 0px;
}
[data-tier="medium"][data-panel-id="calendar"] button[data-nav] {
  font-size: 0;
  padding: 0;
  min-width: 36px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[data-tier="medium"][data-panel-id="calendar"] button[data-nav]::before {
  font-size: 16px;
  line-height: 1;
}
[data-tier="medium"][data-panel-id="calendar"] button[data-nav="prev"]::before { content: '▶'; }
[data-tier="medium"][data-panel-id="calendar"] button[data-nav="next"]::before { content: '◀'; }

/* ═══ Flat style presets (Flat White / Flat Dark) ═══════════════════════════
   Independent axis from data-theme (header light/dark, untouched here). Every
   override below only touches background/border/box-shadow/backdrop-filter —
   no width/height/padding/margin/position/display is ever set here, so the
   layout must stay pixel-identical to glass mode in all three states.
   Status-highlight hues (glass-tr-active/absent/assigned) keep the exact same
   base color family in every mode — only opacity/solidity changes. */

:root[data-style="flat-white"],
:root[data-style="flat-dark"] {
  --glass-blur: 0px;
}

/* Reusing the SAME --bg-primary/--text-primary/--border-color vars the header
   already reads (and that DesignSettingsMenu's gear icon reads inline) means
   flat mode "just works" for the header with zero extra selectors — no risk
   of the gear icon going invisible like it did before data-theme existed. */
:root[data-style="flat-white"] {
  --bg-primary: #ffffff;
  --text-primary: #0f172a;
  --border-color: #e2e8f0;
}
:root[data-style="flat-dark"] {
  --bg-primary: #0B111B;
  --text-primary: #FFFFFF;
  --border-color: #2C3E50;
}

/* Generic "content sitting on a glass-card/dropdown/panel surface" text/border
   triad — independent from --text-primary above (that one is theme-scoped,
   header-only, and glass-dropdown/glass-card backgrounds do NOT follow
   data-theme in glass mode, so reusing --text-primary here would break
   readability in the glass+light-theme combination). Reused across steps 3-5
   wherever hardcoded text-white/NN classes sit on a surface that goes opaque
   in flat mode. */
:root {
  --surface-text: rgba(255, 255, 255, 0.85);
  --surface-text-dim: rgba(255, 255, 255, 0.55);
  --surface-text-faint: rgba(255, 255, 255, 0.25);
  --surface-border: rgba(255, 255, 255, 0.08);
}
:root[data-style="flat-white"] {
  --surface-text: rgba(15, 23, 42, 0.85);
  --surface-text-dim: rgba(15, 23, 42, 0.55);
  --surface-text-faint: rgba(15, 23, 42, 0.25);
  --surface-border: rgba(15, 23, 42, 0.08);
}
:root[data-style="flat-dark"] {
  --surface-text: rgba(255, 255, 255, 0.85);
  --surface-text-dim: rgba(255, 255, 255, 0.55);
  --surface-text-faint: rgba(255, 255, 255, 0.25);
  --surface-border: rgba(255, 255, 255, 0.08);
}

/* Design-mode blue accent elements (drag handle / resize corner on panels in
   edit mode) — not part of the glass-* surface system, own small classes. */
.design-drag-handle {
  background: rgba(59, 130, 246, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
:root[data-style="flat-white"] .design-drag-handle,
:root[data-style="flat-dark"]  .design-drag-handle {
  background: #3b82f6;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.design-resize-handle { background: rgba(59, 130, 246, 0.7); }
:root[data-style="flat-white"] .design-resize-handle,
:root[data-style="flat-dark"]  .design-resize-handle {
  background: #3b82f6;
}

/* ─── Semantic status/accent badges (OrderScreen order-status pill, group-name
   source tag, night-trip tag) — hue stays identical in every mode per element;
   glass keeps the original translucent tuning, flat modes go fully opaque with
   a contrasting text color (same values for both flat-white/flat-dark, since
   these are saturated accent colors, not neutral surfaces). */
.status-badge-draft                 { background: rgba(234,179,8,0.22);   border-color: rgba(253,224,71,0.40);  color: rgba(253,224,71,0.95); }
.status-badge-in_progress           { background: rgba(59,130,246,0.22);  border-color: rgba(147,197,253,0.40); color: rgba(147,197,253,0.95); }
.status-badge-approved              { background: rgba(34,197,94,0.22);   border-color: rgba(134,239,172,0.40); color: rgba(134,239,172,0.95); }
.status-badge-assignment_confirmed  { background: rgba(22,163,74,0.28);   border-color: rgba(74,222,128,0.50);  color: rgba(74,222,128,0.95); }
.status-badge-rejected              { background: rgba(239,68,68,0.22);   border-color: rgba(252,165,165,0.40); color: rgba(252,165,165,0.95); }
.status-badge-closed                { background: rgba(100,116,139,0.22); border-color: rgba(148,163,184,0.40); color: rgba(148,163,184,0.95); }

:root[data-style="flat-white"] .status-badge-draft,                :root[data-style="flat-dark"] .status-badge-draft                { background: #eab308; border-color: #a16207; color: #422006; }
:root[data-style="flat-white"] .status-badge-in_progress,           :root[data-style="flat-dark"] .status-badge-in_progress           { background: #3b82f6; border-color: #1d4ed8; color: #ffffff; }
:root[data-style="flat-white"] .status-badge-approved,              :root[data-style="flat-dark"] .status-badge-approved              { background: #22c55e; border-color: #15803d; color: #ffffff; }
:root[data-style="flat-white"] .status-badge-assignment_confirmed,  :root[data-style="flat-dark"] .status-badge-assignment_confirmed  { background: #16a34a; border-color: #166534; color: #ffffff; }
:root[data-style="flat-white"] .status-badge-rejected,              :root[data-style="flat-dark"] .status-badge-rejected              { background: #ef4444; border-color: #b91c1c; color: #ffffff; }
:root[data-style="flat-white"] .status-badge-closed,                :root[data-style="flat-dark"] .status-badge-closed                { background: #64748b; border-color: #334155; color: #ffffff; }

.group-source-badge-stated      { background: rgba(59,130,246,0.18);  color: rgba(147,197,253,0.9); }
.group-source-badge-signature   { background: rgba(139,92,246,0.18);  color: rgba(196,181,253,0.9); }
.group-source-badge-unspecified { background: rgba(148,163,184,0.14); color: rgba(203,213,225,0.7); }

:root[data-style="flat-white"] .group-source-badge-stated,      :root[data-style="flat-dark"] .group-source-badge-stated      { background: #3b82f6; color: #ffffff; }
:root[data-style="flat-white"] .group-source-badge-signature,   :root[data-style="flat-dark"] .group-source-badge-signature   { background: #8b5cf6; color: #ffffff; }
:root[data-style="flat-white"] .group-source-badge-unspecified, :root[data-style="flat-dark"] .group-source-badge-unspecified { background: #64748b; color: #ffffff; }

.badge-night-trip { background: rgba(99,102,241,0.22); border: 1px solid rgba(165,180,252,0.40); color: rgba(196,181,253,0.95); }
:root[data-style="flat-white"] .badge-night-trip, :root[data-style="flat-dark"] .badge-night-trip {
  background: #6366f1; border-color: #4338ca; color: #ffffff;
}

/* Info banner (sanity-check note) — subtle tint, not a saturated badge, so
   flat-white/flat-dark genuinely differ (light tint+dark text vs dark tint+light text). */
.banner-note-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(134,239,172,0.28); color: rgba(134,239,172,0.9); }
:root[data-style="flat-white"] .banner-note-success { background: #dcfce7; border-color: #86efac; color: #166534; }
:root[data-style="flat-dark"]  .banner-note-success { background: #052e16; border-color: #166534; color: #86efac; }

/* Absence-type badges (AbsencesScreen) — same hue-preserved treatment as the
   status/group-source badges above. */
.absence-badge-vacation         { background: rgba(59,130,246,0.20);  border-color: rgba(147,197,253,0.35); color: rgba(147,197,253,0.9); }
.absence-badge-morning_vacation { background: rgba(14,165,233,0.18);  border-color: rgba(125,211,252,0.35); color: rgba(125,211,252,0.9); }
.absence-badge-evening_vacation { background: rgba(99,102,241,0.20);  border-color: rgba(165,180,252,0.35); color: rgba(165,180,252,0.9); }
.absence-badge-sick             { background: rgba(239,68,68,0.18);   border-color: rgba(252,165,165,0.35); color: rgba(252,165,165,0.9); }
.absence-badge-military         { background: rgba(234,179,8,0.18);   border-color: rgba(253,224,71,0.35);  color: rgba(253,224,71,0.9); }
.absence-badge-other            { background: rgba(148,163,184,0.18); border-color: rgba(203,213,225,0.35); color: rgba(203,213,225,0.9); }

:root[data-style="flat-white"] .absence-badge-vacation,         :root[data-style="flat-dark"] .absence-badge-vacation         { background: #3b82f6; border-color: #1d4ed8; color: #ffffff; }
:root[data-style="flat-white"] .absence-badge-morning_vacation, :root[data-style="flat-dark"] .absence-badge-morning_vacation { background: #0ea5e9; border-color: #0369a1; color: #ffffff; }
:root[data-style="flat-white"] .absence-badge-evening_vacation, :root[data-style="flat-dark"] .absence-badge-evening_vacation { background: #6366f1; border-color: #4338ca; color: #ffffff; }
:root[data-style="flat-white"] .absence-badge-sick,             :root[data-style="flat-dark"] .absence-badge-sick             { background: #ef4444; border-color: #b91c1c; color: #ffffff; }
:root[data-style="flat-white"] .absence-badge-military,         :root[data-style="flat-dark"] .absence-badge-military         { background: #eab308; border-color: #a16207; color: #422006; }
:root[data-style="flat-white"] .absence-badge-other,            :root[data-style="flat-dark"] .absence-badge-other            { background: #64748b; border-color: #334155; color: #ffffff; }

/* Thin danger-accent border (error card / delete-warning modal) — glass keeps
   translucent tuning, flat uses a solid readable red at the same value for
   both backgrounds since it's just a border accent, not a filled surface. */
.border-accent-danger { border-color: rgba(252,165,165,0.35); }
:root[data-style="flat-white"] .border-accent-danger, :root[data-style="flat-dark"] .border-accent-danger {
  border-color: #fca5a5;
}

/* EmployeesScreen — success/error inline banners (reusing the same tint
   treatment as OrderScreen's .banner-note-success; the ~0.03 alpha
   difference in glass mode between files is the same accepted normalization
   as the text-tier drift, not worth a near-duplicate class). */
.banner-note-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(252,165,165,0.30); color: rgba(252,165,165,0.9); }
:root[data-style="flat-white"] .banner-note-error { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
:root[data-style="flat-dark"]  .banner-note-error { background: #450a0a; border-color: #991b1b; color: #fca5a5; }

.chip-success-emphasis { background: rgba(34,197,94,0.20); }
:root[data-style="flat-white"] .chip-success-emphasis, :root[data-style="flat-dark"] .chip-success-emphasis {
  background: #16a34a; color: #ffffff;
}

.banner-note-warning { background: rgba(249,115,22,0.14); border: 1px solid rgba(253,186,116,0.35); color: rgba(253,186,116,0.95); }
:root[data-style="flat-white"] .banner-note-warning { background: #ffedd5; border-color: #fdba74; color: #9a3412; }
:root[data-style="flat-dark"]  .banner-note-warning { background: #431407; border-color: #9a3412; color: #fdba74; }

/* Generic reusable field-label / section-title text classes - form labels
   and small-caps section eyebrows appear across many screens (Customers,
   Employees, Orders...) as shared JS className constants, not per-element
   classNames, so a CSS class (rather than repeating inline style at every
   call site) is the right tool here. Intended for reuse in later files too. */
.field-label { color: var(--surface-text-dim); }
.field-section-title { color: var(--surface-text-faint); }

/* StaffingTable — blue-hued text that sits on a blue chip/row background in
   every mode (not a neutral surface), so it needs its own RGB-triplet
   variable rather than --surface-text: multiple elements here reuse the
   SAME hue at different alphas (name/remove-icon/date-subtext/labels), and
   only the base darkness needs to flip for flat-white contrast - flat-dark
   and glass already contrast fine with the light default. */
:root { --chip-blue-rgb: 147, 197, 253; }
:root[data-style="flat-white"] { --chip-blue-rgb: 30, 58, 138; }

/* Assignment "adding" row highlight (blue accent, own translucent-glass
   tuning, opaque hue-preserved tint in flat modes - lighter tint+dark text
   vs darker tint+light text, same pattern as the other info-style banners). */
.row-highlight-blue { background: rgba(59,130,246,0.10); border-bottom: 1px solid rgba(147,197,253,0.18); }
:root[data-style="flat-white"] .row-highlight-blue { background: #dbeafe; border-color: #93c5fd; }
:root[data-style="flat-dark"]  .row-highlight-blue { background: #1e293b; border-color: #3b82f6; }

/* Small "X days" count badge (no border, unlike .chip-role-field, so kept
   separate rather than reused - adding a border where none existed would
   be a small but real glass-mode appearance change). */
.badge-days-count { background: rgba(59,130,246,0.18); color: #bfdbfe; }
:root[data-style="flat-white"] .badge-days-count, :root[data-style="flat-dark"] .badge-days-count {
  background: #3b82f6; color: #ffffff;
}

/* Subtle nested item box (OrderDetailModal line-item cards inside a
   .glass-panel) - lighter than .glass-card-nested, no independent blur. */
.item-box-subtle { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
:root[data-style="flat-white"] .item-box-subtle { background: #f8fafc; border-color: #e2e8f0; }
:root[data-style="flat-dark"]  .item-box-subtle { background: #2C3E50; border-color: #2C3E50; }

/* "Today" row highlight (MonthlyBoard) - amber accent, hue preserved. */
.row-highlight-today { background: rgba(251,191,36,0.10); }
:root[data-style="flat-white"] .row-highlight-today { background: #fef3c7; }
:root[data-style="flat-dark"]  .row-highlight-today { background: #451a03; }

/* MultiEmployeeSelect — chips+input wrapper, mimics a glass-input box but
   isn't built from that class (custom multi-value control). */
.multiselect-input-box { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); }
:root[data-style="flat-white"] .multiselect-input-box { background: #ffffff; border-color: #cbd5e1; }
:root[data-style="flat-dark"]  .multiselect-input-box { background: #2C3E50; border-color: #2C3E50; }
.multiselect-input-box input::-moz-placeholder { color: rgba(255,255,255,0.30); }
.multiselect-input-box input::placeholder { color: rgba(255,255,255,0.30); }
:root[data-style="flat-white"] .multiselect-input-box input::-moz-placeholder, :root[data-style="flat-dark"]  .multiselect-input-box input::-moz-placeholder { color: var(--surface-text-faint); }
:root[data-style="flat-white"] .multiselect-input-box input::placeholder,
:root[data-style="flat-dark"]  .multiselect-input-box input::placeholder { color: var(--surface-text-faint); }

/* MonthlyJournalScreen — unsaved-edit row highlight (amber, hue preserved) +
   footer summary row divider/background. */
.row-highlight-dirty { background: rgba(234,179,8,0.08); }
:root[data-style="flat-white"] .row-highlight-dirty { background: #fefce8; }
:root[data-style="flat-dark"]  .row-highlight-dirty { background: #422006; }

/* SettingsPanel — unselected toggle-chip background/border (theme/style-preset/
   display-mode/glass-level buttons all share this "inactive" look). */
.settings-chip-inactive { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.10); color: var(--surface-text-dim); }
:root[data-style="flat-white"] .settings-chip-inactive, :root[data-style="flat-dark"] .settings-chip-inactive {
  background: var(--surface-border); border-color: var(--surface-border);
}

/* SettingsPanel — selected toggle-chip look (theme/style-preset/display-mode/
   glass-level buttons all share this "active" look; blue variant reused
   across 3 buttons that previously had slightly different Tailwind alpha
   values (bg-blue-500/30 vs /40, text-blue-100 vs text-white) - normalized
   into one shared value, consistent with the step-4 text-tier consolidation. */
.settings-chip-active-blue  { background: rgba(59,130,246,0.35); border-color: rgba(96,165,250,0.60); color: #dbeafe; }
.settings-chip-active-green { background: rgba(34,197,94,0.30);  border-color: rgba(74,222,128,0.60);  color: #bbf7d0; }
:root[data-style="flat-white"] .settings-chip-active-blue,  :root[data-style="flat-dark"] .settings-chip-active-blue  { background: rgba(59,130,246,0.55); border-color: rgba(96,165,250,0.70); }
:root[data-style="flat-white"] .settings-chip-active-green, :root[data-style="flat-dark"] .settings-chip-active-green { background: rgba(34,197,94,0.55);  border-color: rgba(74,222,128,0.70); }
/* Flat-white only: light Tailwind-equivalent text blends to near-invisible
   against this chip's own light background over the white panel - same root
   cause as .chip-role-field above. Flat-dark keeps the light text as-is. */
:root[data-style="flat-white"] .settings-chip-active-blue  { color: #1e3a8a; }
:root[data-style="flat-white"] .settings-chip-active-green { color: #14532d; }

/* Employee active/inactive status pill background (text stays the existing
   solid text-emerald-400/text-red-400 Tailwind classes in JSX, untouched -
   only the translucent tint background needs a flat/opaque equivalent). */
.employee-status-active   { background: rgba(34,197,94,0.15); }
.employee-status-inactive { background: rgba(239,68,68,0.15); }
:root[data-style="flat-white"] .employee-status-active,   :root[data-style="flat-dark"] .employee-status-active   { background: rgba(34,197,94,0.35); }
:root[data-style="flat-white"] .employee-status-inactive, :root[data-style="flat-dark"] .employee-status-inactive { background: rgba(239,68,68,0.35); }

/* Qualified-role / office-role chips in the employee table (text stays the
   existing solid text-blue-200/text-purple-200 Tailwind classes). */
.chip-role-field  { background: rgba(59,130,246,0.20);  border: 1px solid rgba(147,197,253,0.25); }
.chip-role-office { background: rgba(168,85,247,0.20);  border: 1px solid rgba(216,180,254,0.25); }
:root[data-style="flat-white"] .chip-role-field,  :root[data-style="flat-dark"] .chip-role-field  { background: rgba(59,130,246,0.45);  border-color: rgba(147,197,253,0.55); }
:root[data-style="flat-white"] .chip-role-office, :root[data-style="flat-dark"] .chip-role-office { background: rgba(168,85,247,0.45);  border-color: rgba(216,180,254,0.55); }
/* Flat-white only: the chip's own light-blue/light-purple Tailwind text
   class (text-blue-200/300, text-purple-200) blends to near-invisible
   against this same chip's now-opaque-ish light background over a white
   card - confirmed via color math, not just visual impression. Force a
   dark shade instead; flat-dark keeps the light Tailwind text as-is since
   that combination already contrasts fine there. */
:root[data-style="flat-white"] .chip-role-field  { color: #1e3a8a; }
:root[data-style="flat-white"] .chip-role-office { color: #581c87; }

/* AvailabilityReport — floating panel header (drag handle bar). Always an
   indigo accent regardless of theme/style, like the design-mode drag handle,
   so white text inside it (title, close button, count) stays readable in
   every mode without needing --surface-text - only background/border change. */
.availability-header-drag { background: rgba(99,102,241,0.35); border-bottom: 1px solid rgba(165,180,252,0.25); }
:root[data-style="flat-white"] .availability-header-drag, :root[data-style="flat-dark"] .availability-header-drag {
  background: #4f46e5; border-color: #3730a3;
}

/* Indigo "no absence" divider row inside the employee table - text color is
   part of this rule (not a Tailwind text-indigo-300 class) since it needs a
   different shade against a light vs dark flat background, unlike the
   header above which is always indigo-on-indigo. */
.divider-row-indigo { background: rgba(99,102,241,0.10); border-bottom: 1px solid rgba(165,180,252,0.15); color: rgba(165,180,252,0.9); }
:root[data-style="flat-white"] .divider-row-indigo { background: #e0e7ff; border-color: #c7d2fe; color: #3730a3; }
:root[data-style="flat-dark"]  .divider-row-indigo { background: #1e1b4b; border-color: #3730a3; color: #a5b4fc; }

/* AvailabilityReport legend swatches (footer key) */
.legend-swatch-absence   { background: rgba(249,115,22,0.30); border: 1px solid rgba(253,186,116,0.40); }
.legend-swatch-available { background: rgba(52,211,153,0.15); border: 1px solid rgba(52,211,153,0.35); }
.legend-swatch-assigned  { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); }
:root[data-style="flat-white"] .legend-swatch-absence,   :root[data-style="flat-dark"] .legend-swatch-absence   { background: #f97316; border-color: #c2410c; }
:root[data-style="flat-white"] .legend-swatch-available, :root[data-style="flat-dark"] .legend-swatch-available { background: #34d399; border-color: #059669; }
:root[data-style="flat-white"] .legend-swatch-assigned   { background: #e2e8f0; border-color: #cbd5e1; }
:root[data-style="flat-dark"]  .legend-swatch-assigned   { background: #334155; border-color: #475569; }

/* DesignMode — drag/resize dimension tooltip. Same fixed-dark-tooltip
   treatment as .availability-header-drag: it's a transient measurement
   overlay, not page content, so it stays visually consistent (dark bg,
   light-blue text) across both flat modes rather than flipping per theme. */
.design-overlay-tooltip { background: rgba(8,14,40,0.96); color: #7dd3fc; border: 1px solid rgba(125,211,252,0.5); }
:root[data-style="flat-white"] .design-overlay-tooltip, :root[data-style="flat-dark"] .design-overlay-tooltip {
  background: #0b1330; border-color: #0369a1; color: #7dd3fc;
}

/* DesignMode — grid-guide line color (referenced via var() directly inside
   the JSX-generated backgroundImage gradient strings, since backgroundSize
   must stay dynamic/inline for the SNAP value). Bumped alpha in flat modes
   since the grid needs to stay visible against a now-opaque page area. */
:root { --design-grid-line: rgba(125, 211, 252, 0.12); }
:root[data-style="flat-white"] { --design-grid-line: rgba(29, 78, 216, 0.15); }
:root[data-style="flat-dark"]  { --design-grid-line: rgba(125, 211, 252, 0.18); }

:root[data-style="flat-white"] .glass-header,
:root[data-style="flat-dark"] .glass-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-style="flat-white"] .glass-header { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10); }
:root[data-style="flat-dark"]  .glass-header { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45); }

/* Step 6 (revised) — page-level background in flat modes: the scenic image
   stays visible in ALL 3 style modes, on every screen - body's background
   is untouched here, only body::before's tint changes. Each flat mode gets
   its own translucent (not opaque) rgba tint using the same base color as
   --bg-primary, at a slightly higher alpha than Glass's 0.5 so the "flat"
   feel still comes through while the image remains clearly visible - the
   real visual distinction between Glass and the flat modes is the panel
   treatment (blurred/translucent vs opaque/sharp glass-card), not whether
   the image is hidden. Critical: still a single flat color per mode, never
   a gradient - see the body::before comment above and CLAUDE.md's
   "רקע ה-body" rule. */
:root[data-style="flat-white"] body::before { background: rgba(241, 245, 249, 0.6); }
:root[data-style="flat-dark"]  body::before { background: rgba(11, 17, 27, 0.65); }

/* ─── Flat White ──────────────────────────────────────────────────────── */

:root[data-style="flat-white"] .glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
:root[data-style="flat-white"] .glass-card::before {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
}
:root[data-style="flat-white"] .glass-card-nested {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}
:root[data-style="flat-white"] .glass-dropdown {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}
:root[data-style="flat-white"] .glass-sticky-header {
  background: #f8fafc;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #e2e8f0;
}
:root[data-style="flat-white"] .glass-sticky-header-row {
  background: #f8fafc;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-style="flat-white"] .glass-panel {
  background: #f1f5f9;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}
:root[data-style="flat-white"] .glass-backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-style="flat-white"] .glass-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  backdrop-filter: none;
}
:root[data-style="flat-white"] .glass-input::-moz-placeholder { color: #94a3b8 !important; }
:root[data-style="flat-white"] .glass-input::placeholder { color: #94a3b8 !important; }
:root[data-style="flat-white"] .glass-input:focus {
  background: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
}
:root[data-style="flat-white"] .glass-input option { background: #ffffff; color: #0f172a; }

:root[data-style="flat-white"] .glass-th {
  background: #f1f5f9;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}
:root[data-style="flat-white"] .glass-tr { border-bottom: 1px solid #e2e8f0; }
:root[data-style="flat-white"] .glass-tr:hover { background: #f8fafc; }
:root[data-style="flat-white"] .glass-tr-active { background: rgb(99, 102, 241) !important; }
:root[data-style="flat-white"] .glass-tr-active:hover { background: rgb(129, 140, 248) !important; }
:root[data-style="flat-white"] .glass-tr-absent { background: rgb(249, 115, 22) !important; }
:root[data-style="flat-white"] .glass-tr-assigned { background: #f1f5f9 !important; }

:root[data-style="flat-white"] .glass-btn {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}
:root[data-style="flat-white"] .glass-btn:hover { box-shadow: 0 4px 10px rgba(15, 23, 42, 0.20); }

:root[data-style="flat-white"] .glass-btn-blue   { background: #3b82f6; border: 1px solid #2563eb; }
:root[data-style="flat-white"] .glass-btn-green  { background: #22c55e; border: 1px solid #16a34a; }
:root[data-style="flat-white"] .glass-btn-purple { background: #8b5cf6; border: 1px solid #7c3aed; }
:root[data-style="flat-white"] .glass-btn-orange { background: #f97316; border: 1px solid #ea580c; }
:root[data-style="flat-white"] .glass-btn-red    { background: #ef4444; border: 1px solid #dc2626; }
:root[data-style="flat-white"] .glass-btn-gray   { background: #94a3b8; border: 1px solid #64748b; }
:root[data-style="flat-white"] .glass-btn-indigo { background: #6366f1; border: 1px solid #4f46e5; }
:root[data-style="flat-white"] .glass-btn-teal   { background: #14b8a6; border: 1px solid #0d9488; }
:root[data-style="flat-white"] .glass-btn-ghost  { background: #f1f5f9; border: 1px solid #e2e8f0; color: #0f172a; }

:root[data-style="flat-white"] .glass-divider { border-color: #e2e8f0; }

:root[data-style="flat-white"] .glass-scroll::-webkit-scrollbar-track { background: #f1f5f9; }
:root[data-style="flat-white"] .glass-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; }
:root[data-style="flat-white"] .glass-scroll::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ─── Flat Dark ───────────────────────────────────────────────────────── */

:root[data-style="flat-dark"] .glass-card {
  background: #1D2633;
  border: 1px solid #2C3E50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
:root[data-style="flat-dark"] .glass-card::before {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
}
:root[data-style="flat-dark"] .glass-card-nested {
  background: #2C3E50;
  border: 1px solid #2C3E50;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
:root[data-style="flat-dark"] .glass-dropdown {
  background: #0B111B;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #2C3E50;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
:root[data-style="flat-dark"] .glass-sticky-header {
  background: #2C3E50;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #2C3E50;
}
:root[data-style="flat-dark"] .glass-sticky-header-row {
  background: #2C3E50;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-style="flat-dark"] .glass-panel {
  background: #2C3E50;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #2C3E50;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
:root[data-style="flat-dark"] .glass-backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-style="flat-dark"] .glass-input {
  background: #2C3E50 !important;
  border: 1px solid #2C3E50 !important;
  color: #FFFFFF !important;
  backdrop-filter: none;
}
:root[data-style="flat-dark"] .glass-input::-moz-placeholder { color: #B6BCC6 !important; }
:root[data-style="flat-dark"] .glass-input::placeholder { color: #B6BCC6 !important; }
:root[data-style="flat-dark"] .glass-input:focus {
  background: #2C3E50 !important;
  border-color: #FFB300 !important;
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.25) !important;
}
:root[data-style="flat-dark"] .glass-input option { background: #2C3E50; color: #FFFFFF; }

:root[data-style="flat-dark"] .glass-th {
  background: #2C3E50;
  color: #B6BCC6;
  border-bottom: 1px solid #2C3E50;
}
:root[data-style="flat-dark"] .glass-tr { border-bottom: 1px solid #2C3E50; }
:root[data-style="flat-dark"] .glass-tr:hover { background: #2C3E50; }
:root[data-style="flat-dark"] .glass-tr-active { background: rgb(255, 138, 0) !important; }
:root[data-style="flat-dark"] .glass-tr-active:hover { background: rgb(232, 93, 0) !important; }
:root[data-style="flat-dark"] .glass-tr-absent { background: rgb(249, 115, 22) !important; }
:root[data-style="flat-dark"] .glass-tr-assigned { background: #2C3E50 !important; }

:root[data-style="flat-dark"] .glass-btn {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
:root[data-style="flat-dark"] .glass-btn:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }

:root[data-style="flat-dark"] .glass-btn-blue   { background: #E85D00; border: 1px solid #FF8A00; }
:root[data-style="flat-dark"] .glass-btn-green  { background: #16a34a; border: 1px solid #22c55e; }
:root[data-style="flat-dark"] .glass-btn-purple { background: #7c3aed; border: 1px solid #8b5cf6; }
:root[data-style="flat-dark"] .glass-btn-orange { background: #ea580c; border: 1px solid #f97316; }
:root[data-style="flat-dark"] .glass-btn-red    { background: #dc2626; border: 1px solid #ef4444; }
:root[data-style="flat-dark"] .glass-btn-gray   { background: #64748b; border: 1px solid #94a3b8; }
:root[data-style="flat-dark"] .glass-btn-indigo { background: #4f46e5; border: 1px solid #6366f1; }
:root[data-style="flat-dark"] .glass-btn-teal   { background: #0d9488; border: 1px solid #14b8a6; }
:root[data-style="flat-dark"] .glass-btn-ghost  { background: #2C3E50; border: 1px solid #2C3E50; color: #FFFFFF; }

:root[data-style="flat-dark"] .glass-divider { border-color: #2C3E50; }

:root[data-style="flat-dark"] .glass-scroll::-webkit-scrollbar-track { background: #1D2633; }
:root[data-style="flat-dark"] .glass-scroll::-webkit-scrollbar-thumb { background: #2C3E50; }
:root[data-style="flat-dark"] .glass-scroll::-webkit-scrollbar-thumb:hover { background: #3D5266; }
.hover\:bg-blue-300:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(147 197 253 / var(--tw-bg-opacity, 1));
}
.hover\:bg-blue-300\/50:hover {
  background-color: rgb(147 197 253 / 0.5);
}
.hover\:bg-blue-400\/90:hover {
  background-color: rgb(96 165 250 / 0.9);
}
.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-500\/15:hover {
  background-color: rgb(239 68 68 / 0.15);
}
.hover\:bg-white\/10:hover {
  background-color: rgb(255 255 255 / 0.1);
}
.hover\:bg-white\/15:hover {
  background-color: rgb(255 255 255 / 0.15);
}
.hover\:bg-white\/30:hover {
  background-color: rgb(255 255 255 / 0.3);
}
.hover\:bg-white\/5:hover {
  background-color: rgb(255 255 255 / 0.05);
}
.hover\:text-blue-100:hover {
  --tw-text-opacity: 1;
  color: rgb(219 234 254 / var(--tw-text-opacity, 1));
}
.hover\:text-blue-200:hover {
  --tw-text-opacity: 1;
  color: rgb(191 219 254 / var(--tw-text-opacity, 1));
}
.hover\:text-blue-300:hover {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / var(--tw-text-opacity, 1));
}
.hover\:text-emerald-300:hover {
  --tw-text-opacity: 1;
  color: rgb(110 231 183 / var(--tw-text-opacity, 1));
}
.hover\:text-emerald-400:hover {
  --tw-text-opacity: 1;
  color: rgb(52 211 153 / 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-slate-600:hover {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / 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-white\/70:hover {
  color: rgb(255 255 255 / 0.7);
}
.hover\:underline:hover {
  text-decoration-line: underline;
}
.hover\:opacity-100:hover {
  opacity: 1;
}
.hover\:opacity-80:hover {
  opacity: 0.8;
}
.hover\:opacity-90:hover {
  opacity: 0.9;
}
.focus\:border-blue-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-2: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(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);
}
.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}
.active\:cursor-grabbing:active {
  cursor: grabbing;
}
.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}
.disabled\:opacity-30:disabled {
  opacity: 0.3;
}
.disabled\:opacity-40:disabled {
  opacity: 0.4;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.disabled\:opacity-60:disabled {
  opacity: 0.6;
}
@media (min-width: 768px) {

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