*, ::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.17 | 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: Panton, ui-sans-serif, system-ui; /* 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;
  }
}
.pointer-events-none {
  pointer-events: none;
}
.visible {
  visibility: visible;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.\!fixed {
  position: fixed !important;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.inset-0 {
  inset: 0px;
}
.-left-1 {
  left: -0.25rem;
}
.bottom-0 {
  bottom: 0px;
}
.left-0 {
  left: 0px;
}
.left-1 {
  left: 0.25rem;
}
.right-0 {
  right: 0px;
}
.right-2 {
  right: 0.5rem;
}
.top-0 {
  top: 0px;
}
.top-1 {
  top: 0.25rem;
}
.top-2 {
  top: 0.5rem;
}
.top-8 {
  top: 2rem;
}
.z-0 {
  z-index: 0;
}
.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-30 {
  z-index: 30;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.z-\[-1\] {
  z-index: -1;
}
.z-\[60\] {
  z-index: 60;
}
.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.\!mb-0 {
  margin-bottom: 0px !important;
}
.mb-0 {
  margin-bottom: 0px;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-3 {
  margin-left: 0.75rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-3 {
  margin-right: 0.75rem;
}
.mr-4 {
  margin-right: 1rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-16 {
  margin-top: 4rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-10 {
  height: 2.5rem;
}
.h-12 {
  height: 3rem;
}
.h-2 {
  height: 0.5rem;
}
.h-20 {
  height: 5rem;
}
.h-24 {
  height: 6rem;
}
.h-3 {
  height: 0.75rem;
}
.h-32 {
  height: 8rem;
}
.h-4 {
  height: 1rem;
}
.h-40 {
  height: 10rem;
}
.h-48 {
  height: 12rem;
}
.h-5 {
  height: 1.25rem;
}
.h-56 {
  height: 14rem;
}
.h-6 {
  height: 1.5rem;
}
.h-7 {
  height: 1.75rem;
}
.h-8 {
  height: 2rem;
}
.h-auto {
  height: auto;
}
.h-full {
  height: 100%;
}
.max-h-56 {
  max-height: 14rem;
}
.max-h-60 {
  max-height: 15rem;
}
.max-h-64 {
  max-height: 16rem;
}
.max-h-\[26vh\] {
  max-height: 26vh;
}
.max-h-\[60vh\] {
  max-height: 60vh;
}
.max-h-\[520px\] {
  max-height: 520px;
}
.min-h-0 {
  min-height: 0px;
}
.min-h-screen {
  min-height: 100vh;
}
.\!w-48 {
  width: 12rem !important;
}
.w-1 {
  width: 0.25rem;
}
.w-1\/2 {
  width: 50%;
}
.w-10 {
  width: 2.5rem;
}
.w-12 {
  width: 3rem;
}
.w-2 {
  width: 0.5rem;
}
.w-20 {
  width: 5rem;
}
.w-24 {
  width: 6rem;
}
.w-3 {
  width: 0.75rem;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-6 {
  width: 1.5rem;
}
.w-64 {
  width: 16rem;
}
.w-7 {
  width: 1.75rem;
}
.w-8 {
  width: 2rem;
}
.w-full {
  width: 100%;
}
.w-px {
  width: 1px;
}
.w-36 {
  width: 9rem;
}
.w-44 {
  width: 11rem;
}
.w-56 {
  width: 14rem;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-\[280px\] {
  min-width: 280px;
}
.min-w-full {
  min-width: 100%;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-7xl {
  max-width: 80rem;
}
.max-w-\[40\%\] {
  max-width: 40%;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-sm {
  max-width: 24rem;
}
.max-w-\[1600px\] {
  max-width: 1600px;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-none {
  flex: none;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.flex-grow {
  flex-grow: 1;
}
.basis-full {
  flex-basis: 100%;
}
.-translate-y-8 {
  --tw-translate-y: -2rem;
  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;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-grab {
  cursor: grab;
}
.cursor-pointer {
  cursor: pointer;
}
.select-all {
  -webkit-user-select: all;
     -moz-user-select: all;
          user-select: all;
}
.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));
}
.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-baseline {
  align-items: baseline;
}
.items-stretch {
  align-items: stretch;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-x-6 {
  -moz-column-gap: 1.5rem;
       column-gap: 1.5rem;
}
.gap-x-8 {
  -moz-column-gap: 2rem;
       column-gap: 2rem;
}
.gap-y-2 {
  row-gap: 0.5rem;
}
.gap-y-6 {
  row-gap: 1.5rem;
}
.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-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-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-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));
}
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-visible {
  overflow: visible;
}
.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 {
  white-space: pre;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.break-all {
  word-break: break-all;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-sm {
  border-radius: 0.125rem;
}
.rounded-b-lg {
  border-bottom-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
.rounded-l-md {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-l {
  border-left-width: 1px;
}
.border-l-2 {
  border-left-width: 2px;
}
.border-r {
  border-right-width: 1px;
}
.border-r-0 {
  border-right-width: 0px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-\[var\(--secondary\)\] {
  border-color: var(--secondary);
}
.border-gray-700 {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.border-white\/10 {
  border-color: rgb(255 255 255 / 0.1);
}
.border-white\/20 {
  border-color: rgb(255 255 255 / 0.2);
}
.border-white\/5 {
  border-color: rgb(255 255 255 / 0.05);
}
.\!bg-\[\#1bd96a\] {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(27 217 106 / var(--tw-bg-opacity, 1)) !important;
}
.\!bg-green-500 {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1)) !important;
}
.bg-\[var\(--accent\)\] {
  background-color: var(--accent);
}
.bg-\[var\(--bg\)\] {
  background-color: var(--bg);
}
.bg-\[var\(--bg2\)\] {
  background-color: var(--bg2);
}
.bg-\[var\(--bg3\)\] {
  background-color: var(--bg3);
}
.bg-\[var\(--primary\)\] {
  background-color: var(--primary);
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-black\/10 {
  background-color: rgb(0 0 0 / 0.1);
}
.bg-black\/20 {
  background-color: rgb(0 0 0 / 0.2);
}
.bg-black\/30 {
  background-color: rgb(0 0 0 / 0.3);
}
.bg-black\/50 {
  background-color: rgb(0 0 0 / 0.5);
}
.bg-black\/60 {
  background-color: rgb(0 0 0 / 0.6);
}
.bg-black\/70 {
  background-color: rgb(0 0 0 / 0.7);
}
.bg-gray-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}
.bg-gray-500\/20 {
  background-color: rgb(107 114 128 / 0.2);
}
.bg-gray-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.bg-green-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(74 222 128 / var(--tw-bg-opacity, 1));
}
.bg-green-500\/20 {
  background-color: rgb(34 197 94 / 0.2);
}
.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}
.bg-red-500\/10 {
  background-color: rgb(239 68 68 / 0.1);
}
.bg-red-500\/20 {
  background-color: rgb(239 68 68 / 0.2);
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-white\/10 {
  background-color: rgb(255 255 255 / 0.1);
}
.bg-white\/20 {
  background-color: rgb(255 255 255 / 0.2);
}
.bg-white\/70 {
  background-color: rgb(255 255 255 / 0.7);
}
.bg-yellow-500\/20 {
  background-color: rgb(234 179 8 / 0.2);
}
.bg-opacity-75 {
  --tw-bg-opacity: 0.75;
}
.bg-opacity-80 {
  --tw-bg-opacity: 0.8;
}
.bg-opacity-90 {
  --tw-bg-opacity: 0.9;
}
.bg-cover {
  background-size: cover;
}
.bg-center {
  background-position: center;
}
.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}
.\!p-0 {
  padding: 0px !important;
}
.\!p-1 {
  padding: 0.25rem !important;
}
.\!p-3 {
  padding: 0.75rem !important;
}
.\!p-4 {
  padding: 1rem !important;
}
.\!p-6 {
  padding: 1.5rem !important;
}
.\!p-8 {
  padding: 2rem !important;
}
.p-0 {
  padding: 0px;
}
.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-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
.\!py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}
.\!py-1\.5 {
  padding-top: 0.375rem !important;
  padding-bottom: 0.375rem !important;
}
.\!py-3 {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.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-2 {
  padding-bottom: 0.5rem;
}
.pb-3 {
  padding-bottom: 0.75rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pl-3 {
  padding-left: 0.75rem;
}
.pl-4 {
  padding-left: 1rem;
}
.pl-6 {
  padding-left: 1.5rem;
}
.pr-0 {
  padding-right: 0px;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-4 {
  padding-right: 1rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.font-sans {
  font-family: Panton, ui-sans-serif, system-ui;
}
.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-extrabold {
  font-weight: 800;
}
.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-tight {
  letter-spacing: -0.025em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.text-\[var\(--accent\)\] {
  color: var(--accent);
}
.text-\[var\(--danger\)\] {
  color: var(--danger);
}
.text-\[var\(--primary\)\] {
  color: var(--primary);
}
.text-\[var\(--secondary\)\] {
  color: var(--secondary);
}
.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-gray-200 {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / 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-green-300 {
  --tw-text-opacity: 1;
  color: rgb(134 239 172 / var(--tw-text-opacity, 1));
}
.text-green-400 {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / var(--tw-text-opacity, 1));
}
.text-red-300 {
  --tw-text-opacity: 1;
  color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}
.text-red-300\/80 {
  color: rgb(252 165 165 / 0.8);
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.no-underline {
  text-decoration-line: none;
}
.opacity-0 {
  opacity: 0;
}
.opacity-20 {
  opacity: 0.2;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-75 {
  opacity: 0.75;
}
.shadow-\[inset_0_1px_0_0_rgba\(255\2c 255\2c 255\2c 0\.04\)\] {
  --tw-shadow: inset 0 1px 0 0 rgba(255,255,255,0.04);
  --tw-shadow-colored: inset 0 1px 0 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-inner {
  --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: inset 0 2px 4px 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-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.drop-shadow {
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.backdrop-blur {
  --tw-backdrop-blur: blur(8px);
  -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);
}
.backdrop-blur-md {
  --tw-backdrop-blur: blur(12px);
  -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);
}
.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);
}
.backdrop-filter {
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
  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;
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* --- Custom Variables --- */
:root {
  --primary: #ff7b00;
  --secondary: #ffd791;
  --accent: #00b4d8;
  --bg: #172a3a;
  --bg3: #001d35;
  --grey: #6b7280;
  --danger: #ef4444;
}
/* --- Animation Keyframes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-2deg);
  }
}
@keyframes graph-refresh {
  from {
    opacity: 0.5;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes launch-effect {
  0% {
    transform: scale(1) rotate(0);
  }
  10% {
    transform: scale(1.02) rotate(-1deg);
  }
  30% {
    transform: scale(1.02) rotate(1deg);
  }
  50% {
    transform: scale(1.05) rotate(0);
  }
  80% {
    transform: scale(1.2) rotate(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes fast-wiggle {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}


/* --- Base Styles --- */
body {
  font-family: Panton, ui-sans-serif, system-ui;
}

.card {
  border-radius: 1.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.15);
  --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);
  background-color: rgba(0, 29, 53, 0.651);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Improve compositing to avoid text fuzziness on hover */
  will-change: transform, background-color, box-shadow, border-color;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    background-color 0.22s cubic-bezier(.39,.58,.57,1),
    box-shadow 0.18s cubic-bezier(.39,.58,.57,1),
    transform 0.15s cubic-bezier(.39,.58,.57,1),
    border-color 0.18s cubic-bezier(.39,.58,.57,1);
}
  
.card:hover, .card:focus-within {
  /* Lifts up a bit and adds a glow using your accent */
  /* Remove subpixel scaling to prevent blurriness */
  transform: translateY(-3px);
  background-color: rgba(0,29,53,0.85); /* just a hair more visible */
  border-color: var(--accent);
  z-index: 2;
}

/* --- Splash Screen --- */
#splash {
  opacity: 1;
  transition: opacity 0.5s ease;
}
#splash.fade-out {
  opacity: 0;
}

/* --- Header & Server List --- */
#server-list {
  transform-origin: top;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  counter-reset: server-item;
}
#server-list.hidden {
  opacity: 0;
  transform: scaleY(0.95);
  visibility: hidden;
}
@media (min-width: 768px) {
  #server-list {
    /* Made background more opaque by increasing alpha from 0.651 to 0.85 */
    background-color: rgba(0, 29, 53, 0.829);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    /* Reduced max-height to ensure scrolling after ~8 items */
    max-height: 21rem;
  }
}
@media (max-width: 767px) {
  #server-list {
    background-color: rgba(0, 29, 53, 0.95);
    position: fixed;
    z-index: 50;

    top: calc(56px + 0.5rem);
    
    left: 0.5rem;
    right: 0.5rem;
    width: auto;

    border-radius: 1.5rem;
  }
}
#server-list:not(.hidden) li {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: calc(counter(server-item) * 40ms);
  counter-increment: server-item;
}

/* --- Latency Card --- */
#latency-graph .sparkline {
  stroke: var(--primary);
  fill: var(--primary);
  stroke-width: 2;
  --tw-drop-shadow: drop-shadow(0 0 5px var(--primary));
  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);
  fill-opacity: 0.1;
  animation: graph-refresh 0.5s ease-out forwards;
  transition: all 0.3s ease-in-out;
}
#latency-card.high-latency {
  background-color: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
}
#latency-card.high-latency .sparkline {
  stroke: var(--danger);
  fill: var(--danger);
  filter: drop-shadow(0 0 5px var(--danger));
}
#latency-banner {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.875rem;
  transition: all 0.4s ease-in-out;
}
#latency-card.high-latency #latency-banner {
  max-height: 5rem;
  opacity: 1;
  padding: 0.375rem;
}

#latency-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px; /* Should match the stroke width of your graph line */
  background-color: rgba(
    0,
    29,
    53,
    0.651
  ); /* MUST match your card's background */
  z-index: 6; /* Places it on top of the graph but below the text */
}

/* This pseudo-element covers the right-edge stroke of the graph */
#latency-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px; /* Should match the stroke width */
  height: 100%;
  background-color: rgba(
    0,
    29,
    53,
    0.651
  ); /* MUST match your card's background */
  z-index: 6;
}

.animate-fast-wiggle-on-hover:hover {
  animation: fast-wiggle 0.2s linear infinite;
}

/* --- Module Cards --- */
.module-card {
  display: flex;
  align-items: center;
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: transparent;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
  --tw-bg-opacity: 0.2;
  transition-property: all;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem !important; /* This forces the smaller padding */
  gap: 0.75rem !important; /* This forces the smaller gap */
}
.module-card:hover {
  --tw-translate-y: -0.125rem;
  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));
  border-color: var(--accent);
  background-color: var(--bg2);
}
.module-card-icon {
  flex-shrink: 0;
  border-radius: 0.375rem;
  -o-object-fit: contain;
     object-fit: contain;
  width: 2.5rem !important; /* This forces the smaller icon width (w-10) */
  height: 2.5rem !important; /* This forces the smaller icon height (h-10) */
}
.module-card-content h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.module-card-content p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.module-card.disabled {
  pointer-events: none;
  opacity: 0.6;
  --tw-grayscale: grayscale(100%);
  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);
}
.module-card.disabled:hover {
  --tw-translate-y: 0px;
  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));
  border-color: transparent;
  background-color: rgba(0, 0, 0, 0.2);
}
.module-card .toggle-switch {
  pointer-events: auto;
}
.module-status-icon {
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 0.375rem;
  -o-object-fit: contain;
     object-fit: contain;
}

/* --- Updates/Posts Section --- */
.post-card {
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.1);
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
  --tw-bg-opacity: 0.2;
  padding: 0.75rem; /* Added subtle border */
  transition: all 0.3s ease-in-out;
}

.post-card.important {
  background-color: rgba(255, 123, 0, 0.15); /* Made highlight more visible */
  border-color: var(--primary); /* Makes the entire border orange */
}
.post-card:hover h4 {
  color: var(--accent);
}

/* --- Form & Editor Styling --- */
.form-label {
  margin-bottom: 0.25rem;
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.form-input {
  width: 100%;
  border-radius: 0.5rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
  background-color: var(--bg);
  padding: 0.5rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  outline: 2px solid transparent;
  outline-offset: 2px;
  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;
}
.form-input:focus {
  border-color: var(--accent);
  --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(0px + 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);
}
textarea.form-input {
  height: 8rem;
}
.button {
  border-radius: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 600;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.button-primary {
  background-color: var(--accent);
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.button-primary:hover {
  opacity: 0.9;
}
.button-secondary {
  background-color: var(--bg2);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.button-secondary:hover {
  opacity: 0.9;
}
.button-danger {
  background-color: var(--danger);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.button-danger:hover {
  opacity: 0.9;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 3rem;     /* 48px */
  height: 1.5rem;    /* 24px */
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #6b7280; /* bg-gray-600 */
  border-radius: 9999px;
  transition: background-color 0.3s ease-in-out;
}

/* This is the dot */
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 1rem;    /* 16px */
  width: 1rem;     /* 16px */
  left: 0.25rem;   /* 4px from the left */
  bottom: 0.25rem; /* 4px from the bottom */
  background-color: white;
  border-radius: 9999px; /* Make it a circle */
  transition: left 0.3s ease-in-out;
}

input:checked + .toggle-slider {
  background-color: var(--accent);
}

input:checked + .toggle-slider:before {

  left: 1.75rem; 
}

.toggle-switch {
  position: relative;
  display: inline-block;
  height: 1.5rem;
  width: 3rem;
  flex-shrink: 0; /* Add this line */
}

/* Embed Editor Fields */
.field-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.field-row .inputs {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.field-row .inline-check label {
  margin-left: 0.25rem;
  font-size: 0.875rem;
}
.drag-handle {
  cursor: grab;
  color: var(--grey);
  padding: 0 0.25rem;
}
.drag-handle:active {
  cursor: grabbing;
}

/* Live Preview */
.discord-preview-wrapper {
  border-radius: 0.5rem;
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
  padding: 1rem;
}
.discord-message {
  display: flex;
  gap: 1rem;
}
.discord-avatar {
  height: 3rem;
  width: 3rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--primary);
}
.discord-content {
  flex-grow: 1;
}
.method-card .discord-content {
    min-width: 0; /* Prevents text from overflowing */
}
.discord-username {
  margin-bottom: 0.25rem;
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.discord-embed {
  display: flex;
  border-radius: 0.375rem;
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
  border-left: 4px solid #5865f2;
}
.embed-content {
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.embed-title {
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
#preview-author img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}
#preview-footer img {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  margin-right: 0.25rem;
}
#preview-thumbnail img {
  width: 5rem;
  height: 5rem;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.25rem;
  margin-left: 1rem;
}
.button-edit {
  --tw-bg-opacity: 1;
  background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.button-edit:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}
.button-info {
  --tw-bg-opacity: 1;
  background-color: rgb(2 132 199 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.button-info:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(14 165 233 / var(--tw-bg-opacity, 1));
}
.button-edit {
  --tw-bg-opacity: 1;
  background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.button-edit:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}

.button-info {
  --tw-bg-opacity: 1;
  background-color: rgb(2 132 199 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.button-info:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(14 165 233 / var(--tw-bg-opacity, 1));
}
.button-edit {
  --tw-bg-opacity: 1;
  background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.button-edit:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}


/* --- Custom Dark Theme for Pickr Color Picker --- */
.pickr .pcr-button {
  border: 1px solid var(--grey);
  border-radius: 0.5rem; /* rounded-lg */
  transition: all 0.2s ease;
}
.pickr .pcr-button:hover {
  border-color: var(--accent);
}
.pcr-app {
  background: var(--bg);
  border-radius: 0.75rem; /* rounded-xl */
  border: 1px solid var(--grey);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.pcr-app .pcr-selection .pcr-color-preview,
.pcr-app .pcr-selection .pcr-color-chooser,
.pcr-app .pcr-selection .pcr-color-opacity {
  border-radius: 0.25rem; /* rounded-md */
}
.pcr-app .pcr-interaction input {
  background: var(--bg2);
  border: 1px solid var(--grey);
  color: white;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}
.pcr-app .pcr-interaction .pcr-save,
.pcr-app .pcr-interaction .pcr-clear {
  border-radius: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 600;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.pcr-app .pcr-interaction .pcr-save:disabled,
.pcr-app .pcr-interaction .pcr-clear:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.pcr-app .pcr-interaction .pcr-save,
.pcr-app .pcr-interaction .pcr-clear {
  /* Making buttons smaller and adding base styles */
  border-radius: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition-property: all;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden; /* For positioning the shine effect */
}
.pcr-app .pcr-interaction .pcr-save:disabled,
.pcr-app .pcr-interaction .pcr-clear:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.pcr-app .pcr-interaction .pcr-save,
.pcr-app .pcr-interaction .pcr-clear {

  /* The "glassy" effect: a subtle border and transparent background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pcr-app .pcr-interaction .pcr-save::after,
.pcr-app .pcr-interaction .pcr-clear::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* The white glare that sweeps across */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  /* Use transform instead of left to avoid subpixel text blurring */
  transform: translateX(-150%);
  will-change: transform;
}
.pcr-app .pcr-interaction .pcr-save:hover::after,
.pcr-app .pcr-interaction .pcr-clear:hover::after {
  transform: translateX(150%);
  transition: transform 0.6s ease-in-out;
}
.pcr-app .pcr-interaction .pcr-save,
.pcr-app .pcr-interaction .pcr-clear { /* Use your existing button style */
}
.pcr-app .pcr-interaction .pcr-save {
  background-color: var(--accent);
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.pcr-app .pcr-interaction .pcr-save:hover {
  opacity: 0.9;
}
.pcr-app .pcr-interaction .pcr-save {
  background-color: rgba(0, 180, 216, 0.5); /* Semi-transparent --accent */
  color: white;
}
.pcr-app .pcr-interaction .pcr-save:hover {
  background-color: rgba(0, 180, 216, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}
.pcr-app .pcr-interaction .pcr-save { /* Use your existing primary button style */
}

/* --- Custom Dark Theme for Pickr Color Picker --- */
#color-picker-container .pickr {
  flex-shrink: 0;
}
.pickr .pcr-button {
  height: 2.5rem; /* h-10 */
  width: 2.5rem; /* w-10 */
  border-radius: 0.5rem; /* rounded-lg */
  border: 1px solid #4b5563; /* border-gray-600 */
  transition: all 0.2s ease;
}
.pickr .pcr-button:hover {
  border-color: var(--accent);
}
.pcr-app {
  background: var(--bg);
  border-radius: 0.75rem;
  border: 1px solid var(--grey);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.pcr-app .pcr-selection .pcr-color-preview,
.pcr-app .pcr-selection .pcr-color-chooser,
.pcr-app .pcr-selection .pcr-color-opacity {
  border-radius: 0.25rem;
}
.pcr-app .pcr-interaction input {
  background: var(--bg2);
  border: 1px solid var(--grey);
  color: white;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}
.pcr-app .pcr-interaction .pcr-save,
.pcr-app .pcr-interaction .pcr-clear {
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 600;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.pcr-app .pcr-interaction .pcr-save:disabled,
.pcr-app .pcr-interaction .pcr-clear:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.pcr-app .pcr-interaction .pcr-save,
.pcr-app .pcr-interaction .pcr-clear {
  /* Making buttons smaller and adding base styles */
  border-radius: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition-property: all;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden; /* For positioning the shine effect */
}
.pcr-app .pcr-interaction .pcr-save:disabled,
.pcr-app .pcr-interaction .pcr-clear:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.pcr-app .pcr-interaction .pcr-save,
.pcr-app .pcr-interaction .pcr-clear {

  /* The "glassy" effect: a subtle border and transparent background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pcr-app .pcr-interaction .pcr-save::after,
.pcr-app .pcr-interaction .pcr-clear::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* The white glare that sweeps across */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  /* Use transform instead of left to avoid subpixel text blurring */
  transform: translateX(-150%);
  will-change: transform;
}
.pcr-app .pcr-interaction .pcr-save:hover::after,
.pcr-app .pcr-interaction .pcr-clear:hover::after {
  transform: translateX(150%);
  transition: transform 0.6s ease-in-out;
}
.pcr-app .pcr-interaction .pcr-save {
  background-color: var(--accent);
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.pcr-app .pcr-interaction .pcr-save:hover {
  opacity: 0.9;
}
.pcr-app .pcr-interaction .pcr-save {
  background-color: rgba(0, 180, 216, 0.5); /* Semi-transparent --accent */
  color: white;
}
.pcr-app .pcr-interaction .pcr-save:hover {
  background-color: rgba(0, 180, 216, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}
/* --- Custom Dark Theme for Pickr Color Picker --- */
#color-picker-container .pickr {
  flex-shrink: 0; /* Prevents the button from squishing */
}
/* --- Custom Dark Theme for Pickr Color Picker --- */
#color-picker-container .pickr {
  flex-shrink: 0;
}
.pickr .pcr-button {
  height: 2.5rem; /* h-10 */
  width: 2.5rem; /* w-10 */
  border-radius: 0.5rem; /* rounded-lg */
  border: 1px solid #4b5563; /* border-gray-600 */
  transition: all 0.2s ease;
}
.pickr .pcr-button:hover {
  border-color: var(--accent);
}
/* This styles the popup to look like your cards */
.pcr-app {
  background: rgba(0, 29, 53, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.5rem; /* rounded-3xl */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.pcr-app .pcr-selection .pcr-color-preview,
.pcr-app .pcr-selection .pcr-color-chooser,
.pcr-app .pcr-selection .pcr-color-opacity {
  border-radius: 0.25rem;
}
/* This styles the text input inside the picker */
.pcr-app .pcr-interaction input {
  width: 100%;
  border-radius: 0.5rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
  background-color: var(--bg);
  padding: 0.5rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  outline: 2px solid transparent;
  outline-offset: 2px;
  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;
}
.pcr-app .pcr-interaction input:focus {
  border-color: var(--accent);
  --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(0px + 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);
}
textarea.pcr-app .pcr-interaction input {
  height: 8rem;
}
.pcr-app .pcr-interaction input { /* Use your existing form input style */
}
/* This styles the save button inside the picker */
.pcr-app .pcr-interaction .pcr-save {
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 600;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.pcr-app .pcr-interaction .pcr-save:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.pcr-app .pcr-interaction .pcr-save {
  background-color: var(--accent);
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.pcr-app .pcr-interaction .pcr-save:hover {
  opacity: 0.9;
}
.pcr-app .pcr-interaction .pcr-save {
  /* Making buttons smaller and adding base styles */
  border-radius: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition-property: all;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden; /* For positioning the shine effect */
}
.pcr-app .pcr-interaction .pcr-save:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.pcr-app .pcr-interaction .pcr-save {

  /* The "glassy" effect: a subtle border and transparent background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pcr-app .pcr-interaction .pcr-save::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* The white glare that sweeps across */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  /* Use transform instead of left to avoid subpixel text blurring */
  transform: translateX(-150%);
  will-change: transform;
}
.pcr-app .pcr-interaction .pcr-save:hover::after {
  transform: translateX(150%);
  transition: transform 0.6s ease-in-out;
}
.pcr-app .pcr-interaction .pcr-save {
  background-color: rgba(0, 180, 216, 0.5); /* Semi-transparent --accent */
  color: white;
}
.pcr-app .pcr-interaction .pcr-save:hover {
  background-color: rgba(0, 180, 216, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

.field-row .drag-handle {
  /* Styles the drag handle icon (☰) */
  cursor: grab;
  color: var(--grey);
  font-size: 1.5rem;
  line-height: 1;
  align-self: center;
  padding: 0.5rem 0.25rem;
}

.field-row .drag-handle:active {
  cursor: grabbing;
}

/* --- Tooltip for info hovers --- */
.field-toggle-group {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
  padding: 0 0.5rem;
}

.field-toggle-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: #d1d5db; /* text-gray-300 */
}

/* --- Editor Info Button & Tooltip (Card Style) --- */
.info-button {
  position: relative;
  display: flex;
  align-items: center;
}

.info-button > img {
  width: 1rem; /* w-4 */
  height: 1rem; /* h-4 */
  cursor: help;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.info-button:hover > img {
  opacity: 1;
}

.info-button .tooltip-text {
  /* Base styles from your .card class */
  border-radius: 1.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.15);
  --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);
  background-color: rgba(0, 29, 53, 0.95); /* More opaque for readability */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Positioning & Visibility */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  position: absolute;
  z-index: 10;
  bottom: 125%; /* Position above the icon */
  left: 50%;
  transform: translateX(-50%) translateY(10px); /* Start slightly lower */

  /* Sizing and Layout */
  width: 250px;
  padding: 1rem;
  text-align: left;
  pointer-events: none; /* Prevents the tooltip from interfering with mouse events */
}

.info-button:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* Animate upwards */
}

/* Tooltip content styling */
.tooltip-text h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}
.tooltip-text p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  line-height: 1.5;
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

/* Global tooltip card style (for portaled tooltips moved to <body>) */
.tooltip-text {
  /* Card visuals */
  border-radius: 1.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.15);
  --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);
  background-color: rgba(0, 29, 53, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  /* Layout & layering */
  position: fixed; /* will be overridden inline by JS, but ensures consistency */
  z-index: 2147483647;
  width: 280px;
  max-width: 90vw;
  max-height: 60vh;
  overflow: auto;
  padding: 1rem;
  text-align: left;

  /* Visibility transitions */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #cbd5e1; /* ensure readable body text */
}
.tooltip-text .hovercard-body {
  font-size: 0.875rem;
  line-height: 1.5;
}
.tooltip-text .hovercard-footer {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tooltip-text a { color: var(--accent); text-decoration: underline; }
.version-warning {
  display: inline-block;
  margin-left: 0.5rem; /* 8px */
  font-size: 0.875rem; /* 14px */
  cursor: help;
}
#docs-sidebar a.active {
  background-color: var(--bg2);
  color: var(--primary);
  font-weight: 600;
}

/* --- Whitelist Method Selection Cards --- */
.method-card {
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: 1rem;
  background-color: rgb(0 0 0 / 0.2) !important;
  padding: 1rem !important;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  border-radius: 1.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.15);
  --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);
  background-color: rgba(0, 29, 53, 0.651);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Improve compositing to avoid text fuzziness on hover */
  will-change: transform, background-color, box-shadow, border-color;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    background-color 0.22s cubic-bezier(.39,.58,.57,1),
    box-shadow 0.18s cubic-bezier(.39,.58,.57,1),
    transform 0.15s cubic-bezier(.39,.58,.57,1),
    border-color 0.18s cubic-bezier(.39,.58,.57,1);
}
.method-card:hover,.method-card:focus-within {
  /* Lifts up a bit and adds a glow using your accent */
  /* Remove subpixel scaling to prevent blurriness */ /* just a hair more visible */
  /* Lifts up a bit and adds a glow using your accent */
  /* Remove subpixel scaling to prevent blurriness */
  transform: translateY(-3px);
  background-color: rgba(0,29,53,0.85); /* just a hair more visible */
  border-color: var(--accent);
  z-index: 2;
}
.method-card.dropdown-open {
  z-index: 100;
}
.method-card {
  border: 2px solid transparent;
}
.method-card:hover {
  border-color: var(--accent);
}
.method-card.is-selected {
  border-color: var(--accent);
  background-color: var(--bg2);
}
.method-card.is-insecure {
  border-color: transparent;
}
.method-card.is-insecure:hover {
  border-color: var(--danger);
}
.method-card.is-insecure.is-selected {
  border-color: var(--danger);
  background-color: rgba(239, 68, 68, 0.15); /* bg-red-900/50 */
}

/* Custom Radio Button Style */
.method-card input[type="radio"] {
  height: 1.5rem;
  width: 1.5rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border-radius: 9999px;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  flex-shrink: 0;
}
.method-card input[type="radio"]:checked {
  border-color: transparent;
  background-color: var(--accent);
  box-shadow: 0 0 0 3px var(--bg) inset;
}


/* Dropdown for selecting roles */
.role-select-dropdown {
  position: absolute;
  z-index: 30;
  margin-top: 0.5rem;
  max-height: 15rem;
  width: 16rem;
  overflow-y: auto;
  padding: 0.5rem !important;
  border-radius: 1.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.15);
  --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);
  background-color: rgba(0, 29, 53, 0.651);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Improve compositing to avoid text fuzziness on hover */
  will-change: transform, background-color, box-shadow, border-color;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    background-color 0.22s cubic-bezier(.39,.58,.57,1),
    box-shadow 0.18s cubic-bezier(.39,.58,.57,1),
    transform 0.15s cubic-bezier(.39,.58,.57,1),
    border-color 0.18s cubic-bezier(.39,.58,.57,1);
}
.role-select-dropdown:hover,.role-select-dropdown:focus-within {
  /* Lifts up a bit and adds a glow using your accent */
  /* Remove subpixel scaling to prevent blurriness */ /* just a hair more visible */
  /* Lifts up a bit and adds a glow using your accent */
  /* Remove subpixel scaling to prevent blurriness */
  transform: translateY(-3px);
  background-color: rgba(0,29,53,0.85); /* just a hair more visible */
  border-color: var(--accent);
  z-index: 2;
}
.role-select-dropdown.dropdown-open {
  z-index: 100;
}
.role-select-dropdown {
  transform-origin: top;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.role-select-dropdown.hidden {
  pointer-events: none;
  --tw-scale-x: .95;
  --tw-scale-y: .95;
  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));
  opacity: 0;
}
.role-select-item {
  display: flex;
  cursor: pointer;
  align-items: center;
  border-radius: 0.375rem;
  padding: 0.5rem;
}
.role-select-item:hover {
  background-color: var(--bg2);
}
.role-color-swatch {
  margin-right: 0.75rem;
  height: 0.75rem;
  width: 0.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
}
/* --- Page-Specific Hiding --- */
.page-editor #server-dropdown {
  display: none;
}


/* --- WLM Channel Messages UI --- */
.message-type-switcher {
  position: relative;
  cursor: pointer;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
}
.message-type-switcher.active {
    background-color: var(--bg2);
    border-color: var(--accent);
}
.message-type-switcher input {
  position: absolute;
  inset: 0px;
  height: 100%;
  width: 100%;
  cursor: pointer;
  opacity: 0;
}
.message-type-switcher h4 {
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.message-type-switcher p {
  font-size: 0.75rem;
  line-height: 1rem;
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

/* --- WLM Whitelist Method Selection --- */
.method-card {
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: 1rem;
  background-color: rgb(0 0 0 / 0.2) !important;
  padding: 1rem !important;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  border-radius: 1.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.15);
  --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);
  background-color: rgba(0, 29, 53, 0.651);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Improve compositing to avoid text fuzziness on hover */
  will-change: transform, background-color, box-shadow, border-color;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    background-color 0.22s cubic-bezier(.39,.58,.57,1),
    box-shadow 0.18s cubic-bezier(.39,.58,.57,1),
    transform 0.15s cubic-bezier(.39,.58,.57,1),
    border-color 0.18s cubic-bezier(.39,.58,.57,1);
}
.method-card:hover,.method-card:focus-within {
  /* Lifts up a bit and adds a glow using your accent */
  /* Remove subpixel scaling to prevent blurriness */ /* just a hair more visible */
  /* Lifts up a bit and adds a glow using your accent */
  /* Remove subpixel scaling to prevent blurriness */
  transform: translateY(-3px);
  background-color: rgba(0,29,53,0.85); /* just a hair more visible */
  border-color: var(--accent);
  z-index: 2;
}
.method-card.dropdown-open {
  z-index: 100;
}
.method-card {
    border: 2px solid transparent;
}
.method-card:hover {
    border-color: var(--accent);
}
/* Style for the selected card */
.method-card.is-selected {
    border-color: var(--accent);
    background-color: var(--bg2);
}
/* Special styling for the insecure RCON option */
.method-card.is-insecure:hover {
    border-color: var(--danger);
}
.method-card.is-insecure.is-selected {
    border-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.15);
}
.method-card .flex-grow {
    min-width: 0; /* Prevents text from overflowing */
}

/* Custom Radio Button Style */
.method-card input[type="radio"] {
  height: 1.5rem;
  width: 1.5rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border-radius: 9999px;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
    flex-shrink: 0;
}
.method-card input[type="radio"]:checked {
  border-color: transparent;
  background-color: var(--accent);
    box-shadow: 0 0 0 4px var(--bg2) inset;
}
.method-card.is-insecure input[type="radio"]:checked {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) inset;
}

.card.dropdown-open {
  z-index: 100 !important;
}

/* --- WLM Role Dropdown Position Fix --- */
.role-selector {
  position: relative;
  display: flex;
  width: 100%;
  cursor: text;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
  background-color: var(--bg);
  padding: 0.5rem;
  padding-right: 2.5rem;
    min-height: 42px;
    transition: border-color 0.2s ease;
  color: #fff; /* ensure text is white inside the selector */
}
.role-selector:focus-within {
  border-color: var(--accent);
}
.role-selector-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.125rem;
  background-color: var(--bg2);
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  padding-left: 0.5rem;
  padding-right: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.role-selector-tag .role-dot {
  height: 0.625rem;
  width: 0.625rem;
  border-radius: 9999px;
}
.role-selector-tag .remove-role-btn {
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  line-height: 1;
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.role-selector-tag .remove-role-btn:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.role-selector-input {
  flex-grow: 1;
  border-style: none;
  background-color: transparent;
  padding: 0.25rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.method-card .role-selector-input {
    min-width: 0; /* Prevents text from overflowing */
}
.role-selector-input {
    min-width: 120px;
    padding-left: 0;
}
.role-selector-input::-moz-placeholder {
  color: rgba(255,255,255,0.65);
}
.role-selector-input::placeholder {
  color: rgba(255,255,255,0.65);
}
.role-selector-arrow {
  pointer-events: none;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.role-selector-dropdown {
  position: absolute;
  z-index: 20;
  margin-top: 0.5rem;
  max-height: 15rem;
  width: 100%;
  overflow-y: auto;
  padding: 0.5rem !important;
  border-radius: 1.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.15);
  --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);
  background-color: rgba(0, 29, 53, 0.651);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Improve compositing to avoid text fuzziness on hover */
  will-change: transform, background-color, box-shadow, border-color;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    background-color 0.22s cubic-bezier(.39,.58,.57,1),
    box-shadow 0.18s cubic-bezier(.39,.58,.57,1),
    transform 0.15s cubic-bezier(.39,.58,.57,1),
    border-color 0.18s cubic-bezier(.39,.58,.57,1);
}

.role-selector-dropdown:hover,.role-selector-dropdown:focus-within {
  /* Lifts up a bit and adds a glow using your accent */
  /* Remove subpixel scaling to prevent blurriness */ /* just a hair more visible */
  /* Lifts up a bit and adds a glow using your accent */
  /* Remove subpixel scaling to prevent blurriness */
  transform: translateY(-3px);
  background-color: rgba(0,29,53,0.85); /* just a hair more visible */
  border-color: var(--accent);
  z-index: 2;
}

.role-selector-dropdown.dropdown-open {
  z-index: 100;
}

.role-selector-dropdown {
    left: 0;
    top: 100%;
    transform-origin: top;
  color: #fff; /* force white text when portaled to body */
}
/* THIS IS THE FIX FOR THE BUILD ERROR */
.role-selector-dropdown.hidden {
    display: none;
}
.role-dropdown-item {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.375rem;
  padding: 0.5rem;
}
.role-dropdown-item:hover {
  background-color: var(--bg2);
}
.role-dropdown-item {
  color: #fff; /* dropdown option text */
}
.role-dropdown-item .role-info {
  display: flex;
  align-items: center;
}
.role-dropdown-item .role-dot {
  margin-right: 0.75rem;
  height: 0.75rem;
  width: 0.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
}
.role-dropdown-item .checkbox {
  display: flex;
  height: 1.25rem;
  width: 1.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
}
.role-dropdown-item.selected .checkbox {
  border-color: var(--accent);
  background-color: var(--accent);
}
.role-dropdown-item.selected .checkbox::after {
    content: '✔';
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.pickr .pcr-button {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 0.5rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.pickr .pcr-button:hover {
  border-color: var(--accent);
}
.pcr-app {
  border-radius: 1.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.15);
  --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);
  background-color: rgba(0, 29, 53, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pcr-app .pcr-interaction input {
  width: 100%;
  border-radius: 0.5rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
  background-color: var(--bg);
  padding: 0.5rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  outline: 2px solid transparent;
  outline-offset: 2px;
  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;
}
.pcr-app .pcr-interaction input:focus {
  border-color: var(--accent);
  --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(0px + 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);
}
textarea.pcr-app .pcr-interaction input {
  height: 8rem;
}
.pcr-app .pcr-interaction .pcr-save {
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 600;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.pcr-app .pcr-interaction .pcr-save:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.pcr-app .pcr-interaction .pcr-save {
  background-color: var(--accent);
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.pcr-app .pcr-interaction .pcr-save:hover {
  opacity: 0.9;
}
.pcr-app .pcr-interaction .pcr-save {
  /* Making buttons smaller and adding base styles */
  border-radius: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition-property: all;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden; /* For positioning the shine effect */
}
.pcr-app .pcr-interaction .pcr-save:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.pcr-app .pcr-interaction .pcr-save {

  /* The "glassy" effect: a subtle border and transparent background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pcr-app .pcr-interaction .pcr-save::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* The white glare that sweeps across */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  /* Use transform instead of left to avoid subpixel text blurring */
  transform: translateX(-150%);
  will-change: transform;
}
.pcr-app .pcr-interaction .pcr-save:hover::after {
  transform: translateX(150%);
  transition: transform 0.6s ease-in-out;
}
.pcr-app .pcr-interaction .pcr-save {
  background-color: rgba(0, 180, 216, 0.5); /* Semi-transparent --accent */
  color: white;
}
.pcr-app .pcr-interaction .pcr-save:hover {
  background-color: rgba(0, 180, 216, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

.button {
  /* Making buttons smaller and adding base styles */
  border-radius: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition-property: all;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden; /* For positioning the shine effect */
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button {

  /* The "glassy" effect: a subtle border and transparent background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* The Shine Effect Pseudo-Element */
.button::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* The white glare that sweeps across */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  /* Use transform instead of left to avoid subpixel text blurring */
  transform: translateX(-150%);
  will-change: transform;
}
.button:hover::after {
  transform: translateX(150%);
  transition: transform 0.6s ease-in-out;
}

/* --- Button Color Variants --- */
.button-primary {
  background-color: rgba(0, 180, 216, 0.5); /* Semi-transparent --accent */
  color: white;
}
.button-primary:hover {
  background-color: rgba(0, 180, 216, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

.button-secondary {
  background-color: rgba(0, 67, 70, 0.5); /* Semi-transparent --bg2 */
  color: white;
}
.button-secondary:hover {
  background-color: rgba(0, 67, 70, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

.button-danger {
  background-color: rgba(239, 68, 68, 0.5); /* Semi-transparent --danger */
  color: white;
}
.button-danger:hover {
  background-color: rgba(239, 68, 68, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Adding a few extra classes for the other button colors you use */
.button-edit {
  background-color: rgba(107, 114, 128, 0.5); /* Semi-transparent gray */
  color: white;
}
.button-edit:hover {
  background-color: rgba(107, 114, 128, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

.button-info {
  background-color: rgba(2, 132, 199, 0.5); /* Semi-transparent sky */
  color: white;
}
.button-info:hover {
  background-color: rgba(2, 132, 199, 0.7);
  border-color: rgba(255, 255, )
}

.message-type-switcher {
  position: relative;
  cursor: pointer;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  isolation: isolate;
  overflow: hidden; /* Needed for the shine effect */

    /* Apply the glassy theme from your secondary buttons */
    background-color: rgba(0, 67, 70, 0.5); /* Semi-transparent --bg2 */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Shine effect, same as your other buttons */
.message-type-switcher::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-150%);
  will-change: transform;
}

.message-type-switcher:hover::after {
  transform: translateX(150%);
  transition: transform 0.6s ease-in-out;
}

/* Hover state */
.message-type-switcher:hover {
  background-color: rgba(0, 67, 70, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Active (selected) state */
.message-type-switcher.active {
    background-color: rgba(0, 180, 216, 0.6); /* Semi-transparent --accent */
    border-color: var(--accent);
}

.message-type-switcher input {
  position: absolute;
  inset: 0px;
  height: 100%;
  width: 100%;
  cursor: pointer;
  opacity: 0;
}

.message-type-switcher h4 {
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.message-type-switcher p {
  font-size: 0.75rem;
  line-height: 1rem;
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

/* --- Small Toggle Switch for Player List --- */
.discord-tag {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.discord-mention-tag {
    position: relative;
    cursor: help;
}

.discord-mention-tag .tooltip-card {
  padding: 0.75rem !important;
  border-radius: 1.5rem;
  border-width: 1px;
  border-color: rgb(255 255 255 / 0.15);
  --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);
  background-color: rgba(0, 29, 53, 0.651);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Improve compositing to avoid text fuzziness on hover */
  will-change: transform, background-color, box-shadow, border-color;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    background-color 0.22s cubic-bezier(.39,.58,.57,1),
    box-shadow 0.18s cubic-bezier(.39,.58,.57,1),
    transform 0.15s cubic-bezier(.39,.58,.57,1),
    border-color 0.18s cubic-bezier(.39,.58,.57,1);
}

.discord-mention-tag .tooltip-card:hover,.discord-mention-tag .tooltip-card:focus-within {
  /* Lifts up a bit and adds a glow using your accent */
  /* Remove subpixel scaling to prevent blurriness */ /* just a hair more visible */
  /* Lifts up a bit and adds a glow using your accent */
  /* Remove subpixel scaling to prevent blurriness */
  transform: translateY(-3px);
  background-color: rgba(0,29,53,0.85); /* just a hair more visible */
  border-color: var(--accent);
  z-index: 2;
}

.discord-mention-tag .tooltip-card.dropdown-open {
  z-index: 100;
}

.discord-mention-tag .tooltip-card { /* Use card styles for the tooltip */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    position: absolute;
    z-index: 30;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    width: -moz-max-content;
    width: max-content; /* Make the card fit the content */
    pointer-events: none;
}

.discord-mention-tag:hover .tooltip-card {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* --- MOTD Container Style --- */
.motd-container {
    /* This preserves spaces and line breaks from the MOTD */
    white-space: pre-wrap;
    word-break: break-word;
}

/* --- Player List Discord Tag & Tooltip --- */

.flex-grow-scroll {
    flex-grow: 1;
    overflow-y: auto;
}

.page-wlm-dashboard #server-dropdown {
  display: none;
}

/* --- Small Toggle Switch for Player List --- */
.toggle-switch-sm {
    position: relative;
    display: inline-block;
    width: 2.5rem;  /* 40px */
    height: 1.25rem; /* 20px */
    flex-shrink: 0;
}
.toggle-switch-sm input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch-sm .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #6b7280; /* bg-gray-600 */
    border-radius: 9999px;
    transition: all 0.2s;
}
.toggle-switch-sm .toggle-slider:before {
    position: absolute;
    content: "";
    height: 0.75rem; /* 12px */
    width: 0.75rem;  /* 12px */
    left: 0.25rem;
    bottom: 0.25rem;
    background-color: white;
    border-radius: 9999px;
    transition: transform 0.2s;
}
.toggle-switch-sm input:checked + .toggle-slider {
    background-color: var(--accent);
}
.toggle-switch-sm input:checked + .toggle-slider:before {
    transform: translateX(1.25rem); /* 20px travel distance */
}

/* --- WLM Editor: Subtle borders for whitelist method options --- */
#method-selection .method-card {
  /* Provide a faint border even when not hovered/selected */
  border-color: rgba(255, 255, 255, 0.12);
}
#method-selection .method-card.is-insecure {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Preserve blue/red accents on hover and selected */
#method-selection .method-card:hover,
#method-selection .method-card.is-selected {
  border-color: var(--accent);
}
#method-selection .method-card.is-insecure:hover,
#method-selection .method-card.is-insecure.is-selected {
  border-color: var(--danger);
}

/* --- Required & Error Helpers --- */
/* Adds a red asterisk after labels marked as required */
.form-label.required::after {
  content: ' *';
  color: var(--danger);
  font-weight: 700;
}

/* Highlights invalid inputs/selects/textareas */
.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.6);
  background-color: rgba(239, 68, 68, 0.08);
}
.input-error:focus { border-color: var(--danger) !important; }

/* For grouping errors (e.g., radio groups) */
.group-error {
  border: 1px solid var(--danger);
  border-radius: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(239, 68, 68, 0.08);
}
.last\:border-b-0:last-child {
  border-bottom-width: 0px;
}
.hover\:\!bg-\[\#18b85a\]:hover {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(24 184 90 / var(--tw-bg-opacity, 1)) !important;
}
.hover\:\!bg-green-400:hover {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(74 222 128 / var(--tw-bg-opacity, 1)) !important;
}
.hover\:bg-\[var\(--bg2\)\]:hover {
  background-color: var(--bg2);
}
.hover\:bg-\[var\(--secondary\)\]:hover {
  background-color: var(--secondary);
}
.hover\:bg-black\/30:hover {
  background-color: rgb(0 0 0 / 0.3);
}
.hover\:bg-red-500:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}
.hover\:bg-opacity-80:hover {
  --tw-bg-opacity: 0.8;
}
.hover\:text-\[var\(--accent\)\]:hover {
  color: var(--accent);
}
.hover\:text-\[var\(--danger\)\]:hover {
  color: var(--danger);
}
.hover\:text-gray-200:hover {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.hover\:text-red-200:hover {
  --tw-text-opacity: 1;
  color: rgb(254 202 202 / var(--tw-text-opacity, 1));
}
.hover\:text-red-400:hover {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.hover\:underline:hover {
  text-decoration-line: underline;
}
@media (min-width: 640px) {

  .sm\:inline {
    display: inline;
  }

  .sm\:flex {
    display: flex;
  }

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

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

  .sm\:w-auto {
    width: auto;
  }

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

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

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

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

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

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

  .sm\:self-auto {
    align-self: auto;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 768px) {

  .md\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .md\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .md\:mt-24 {
    margin-top: 6rem;
  }

  .md\:block {
    display: block;
  }

  .md\:h-5 {
    height: 1.25rem;
  }

  .md\:w-5 {
    width: 1.25rem;
  }

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

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

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

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

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

  .md\:py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}
@media (min-width: 1024px) {

  .lg\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .lg\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .lg\:col-span-6 {
    grid-column: span 6 / span 6;
  }

  .lg\:col-span-8 {
    grid-column: span 8 / span 8;
  }

  .lg\:block {
    display: block;
  }

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

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

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

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

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

  .lg\:p-8 {
    padding: 2rem;
  }

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

  .lg\:pr-6 {
    padding-right: 1.5rem;
  }

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

  .lg\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}
@media (min-width: 1280px) {

  .xl\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .xl\:col-span-9 {
    grid-column: span 9 / span 9;
  }

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

  .\32xl\:col-span-2 {
    grid-column: span 2 / span 2;
  }

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