*, ::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(147 197 253 / 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(147 197 253 / 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: var(--border-color);
  /* 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: var(--font-sans), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

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

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

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

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

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

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

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

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

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

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

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

b,
strong {
  font-weight: bolder;
}

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

code,
kbd,
samp,
pre {
  font-family: var(--font-mono), 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;
}

:root {
  /* Design Tokens - 2025 Palette */
  --primary-hue: 220;
  --primary-saturation: 90%;
  --accent-hue: 280;
  --success-hue: 150;
  --warning-hue: 35;
  --danger-hue: 0;
  --info-hue: 195;
  /* Primary Colors - HSL base for easy manipulation */
  --primary-color: hsl(var(--primary-hue), var(--primary-saturation), 55%);
  --primary-light: hsl(var(--primary-hue), var(--primary-saturation), 65%);
  --primary-dark: hsl(var(--primary-hue), var(--primary-saturation), 45%);
  --primary-surface: hsl(var(--primary-hue), calc(var(--primary-saturation) - 20%), 97%);
  /* Accent Colors */
  --accent-color: hsl(var(--accent-hue), 85%, 60%);
  --accent-light: hsl(var(--accent-hue), 85%, 70%);
  --accent-dark: hsl(var(--accent-hue), 85%, 50%);
  --accent-surface: hsl(var(--accent-hue), 75%, 97%);
  /* Semantic Colors */
  --success-color: hsl(var(--success-hue), 75%, 45%);
  --success-light: hsl(var(--success-hue), 75%, 55%);
  --success-surface: hsl(var(--success-hue), 75%, 97%);
  --warning-color: hsl(var(--warning-hue), 90%, 55%);
  --warning-light: hsl(var(--warning-hue), 90%, 65%);
  --warning-surface: hsl(var(--warning-hue), 90%, 97%);
  --danger-color: hsl(var(--danger-hue), 80%, 55%);
  --danger-light: hsl(var(--danger-hue), 80%, 65%);
  --danger-surface: hsl(var(--danger-hue), 85%, 97%);
  --info-color: hsl(var(--info-hue), 85%, 50%);
  --info-light: hsl(var(--info-hue), 85%, 60%);
  --info-surface: hsl(var(--info-hue), 85%, 97%);
  /* UI Colors - Light Mode */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-raised: #ffffff;
  --bg-surface-overlay: rgba(255, 255, 255, 0.95);
  --bg-subtle: hsl(var(--primary-hue), 15%, 97%);
  --bg-subtle-hover: hsl(var(--primary-hue), 15%, 94%);
  /* Background Gradients */
  --bg-gradient-light: linear-gradient(135deg, 
      hsl(var(--primary-hue), 15%, 98%) 0%,
      hsl(var(--primary-hue), 15%, 96%) 50%,
      hsl(var(--primary-hue), 15%, 98%) 100%
    );
  --bg-gradient-dark: linear-gradient(135deg,
      hsl(var(--primary-hue), 15%, 12%) 0%,
      hsl(var(--primary-hue), 15%, 10%) 50%,
      hsl(var(--primary-hue), 15%, 12%) 100%
    );
  --text-primary: hsl(var(--primary-hue), 25%, 15%);
  --text-secondary: hsl(var(--primary-hue), 20%, 35%);
  --text-tertiary: hsl(var(--primary-hue), 10%, 55%);
  --text-on-primary: white;
  --text-on-accent: white;
  --border-color: hsl(var(--primary-hue), 15%, 90%);
  --border-color-hover: hsl(var(--primary-hue), 15%, 80%);
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, 
      hsl(var(--primary-hue), var(--primary-saturation), 55%) 0%, 
      hsl(calc(var(--primary-hue) + 15), var(--primary-saturation), 50%) 100%);
  --gradient-accent: linear-gradient(135deg, 
      hsl(var(--accent-hue), 85%, 60%) 0%, 
      hsl(calc(var(--accent-hue) + 20), 85%, 55%) 100%);
  --gradient-subtle: linear-gradient(135deg, 
      hsl(var(--primary-hue), 15%, 97%) 0%, 
      hsl(var(--primary-hue), 15%, 92%) 100%);
  --gradient-glow: radial-gradient(
      circle at center,
      hsla(var(--primary-hue), var(--primary-saturation), 70%, 0.7) 0%,
      hsla(var(--primary-hue), var(--primary-saturation), 70%, 0) 70%
    );
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.05), 0 3px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 10px 15px rgba(0, 0, 0, 0.05), 0 15px 30px rgba(0, 0, 0, 0.1);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-primary: 0 5px 15px rgba(var(--primary-rgb), 0.3);
  --shadow-accent: 0 5px 15px rgba(var(--accent-rgb), 0.3);
  --shadow-success: 0 5px 15px rgba(var(--success-rgb), 0.3);
  --shadow-danger: 0 5px 15px rgba(var(--danger-rgb), 0.3);
  /* Glows and Effects */
  --glow-primary: 0 0 15px rgba(var(--primary-rgb), 0.5);
  --glow-accent: 0 0 15px rgba(var(--accent-rgb), 0.5);
  /* For rgba conversions */
  --primary-rgb: 43, 100, 255;
  /* Approximate RGB values */
  --accent-rgb: 187, 51, 255;
  --success-rgb: 38, 180, 125;
  --warning-rgb: 255, 170, 51;
  --danger-rgb: 255, 76, 76;
  /* Spacing - Progressive Scale */
  --space-3xs: 0.125rem;
  /* 2px */
  --space-2xs: 0.25rem;
  /* 4px */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 0.75rem;
  /* 12px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */
  --space-3xl: 4rem;
  /* 64px */
  --space-4xl: 6rem;
  /* 96px */
  /* Border Radius */
  --radius-sm: 0.25rem;
  /* 4px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-full: 9999px;
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-display: 'Manrope', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  /* Font Sizes - With Responsive Scaling */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  --text-md: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.6rem + 1.25vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
  --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  /* Transitions */
  --transition-fastest: 100ms;
  --transition-fast: 150ms;
  --transition-normal: 250ms;
  --transition-slow: 350ms;
  --transition-curve: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Z-index layers */
  --z-below: -1;
  --z-base: 0;
  --z-above: 10;
  --z-header: 100;
  --z-dropdown: 200;
  --z-sidebar: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-toast: 700;
  --z-top: 999;
}

/* Dark Mode Tokens */

.dark {
  /* UI Colors - Dark Mode */
  --primary-hue: 225;
  --primary-saturation: 80%;
  --primary-color: hsl(var(--primary-hue), var(--primary-saturation), 60%);
  --primary-light: hsl(var(--primary-hue), var(--primary-saturation), 70%);
  --primary-dark: hsl(var(--primary-hue), var(--primary-saturation), 50%);
  --primary-surface: hsla(var(--primary-hue), calc(var(--primary-saturation) - 20%), 20%, 0.6);
  --accent-color: hsl(var(--accent-hue), 80%, 65%);
  --accent-light: hsl(var(--accent-hue), 80%, 75%);
  --accent-dark: hsl(var(--accent-hue), 80%, 55%);
  --accent-surface: hsla(var(--accent-hue), 70%, 20%, 0.6);
  --success-color: hsl(var(--success-hue), 70%, 50%);
  --success-light: hsl(var(--success-hue), 70%, 60%);
  --success-surface: hsla(var(--success-hue), 70%, 20%, 0.6);
  --warning-color: hsl(var(--warning-hue), 85%, 60%);
  --warning-light: hsl(var(--warning-hue), 85%, 70%);
  --warning-surface: hsla(var(--warning-hue), 85%, 20%, 0.6);
  --danger-color: hsl(var(--danger-hue), 75%, 60%);
  --danger-light: hsl(var(--danger-hue), 75%, 70%);
  --danger-surface: hsla(var(--danger-hue), 75%, 20%, 0.6);
  --info-color: hsl(var(--info-hue), 80%, 55%);
  --info-light: hsl(var(--info-hue), 80%, 65%);
  --info-surface: hsla(var(--info-hue), 80%, 20%, 0.6);
  /* Dark UI Colors */
  --bg-page: hsl(var(--primary-hue), 15%, 10%);
  --bg-surface: hsl(var(--primary-hue), 15%, 13%);
  --bg-surface-raised: hsl(var(--primary-hue), 15%, 17%);
  --bg-surface-overlay: hsla(var(--primary-hue), 15%, 10%, 0.95);
  --bg-subtle: hsl(var(--primary-hue), 15%, 17%);
  --bg-subtle-hover: hsl(var(--primary-hue), 15%, 20%);
  --text-primary: hsl(var(--primary-hue), 10%, 90%);
  --text-secondary: hsl(var(--primary-hue), 10%, 70%);
  --text-tertiary: hsl(var(--primary-hue), 10%, 50%);
  --text-on-primary: hsl(var(--primary-hue), 10%, 10%);
  --text-on-accent: hsl(var(--primary-hue), 10%, 10%);
  --border-color: hsl(var(--primary-hue), 15%, 25%);
  --border-color-hover: hsl(var(--primary-hue), 15%, 30%);
  /* Dark Gradients */
  --gradient-primary: linear-gradient(135deg, 
      hsl(var(--primary-hue), var(--primary-saturation), 60%) 0%, 
      hsl(calc(var(--primary-hue) + 15), var(--primary-saturation), 55%) 100%);
  --gradient-accent: linear-gradient(135deg, 
      hsl(var(--accent-hue), 80%, 65%) 0%, 
      hsl(calc(var(--accent-hue) + 20), 80%, 60%) 100%);
  --gradient-subtle: linear-gradient(135deg, 
      hsl(var(--primary-hue), 15%, 17%) 0%, 
      hsl(var(--primary-hue), 15%, 20%) 100%);
  --gradient-glow: radial-gradient(
      circle at center,
      hsla(var(--primary-hue), var(--primary-saturation), 50%, 0.5) 0%,
      hsla(var(--primary-hue), var(--primary-saturation), 50%, 0) 70%
    );
  /* Dark Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 10px 15px rgba(0, 0, 0, 0.2), 0 15px 30px rgba(0, 0, 0, 0.3);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-primary: 0 5px 15px rgba(var(--primary-rgb), 0.4);
  --shadow-accent: 0 5px 15px rgba(var(--accent-rgb), 0.4);
  /* Dark Glows */
  --glow-primary: 0 0 20px rgba(var(--primary-rgb), 0.6);
  --glow-accent: 0 0 20px rgba(var(--accent-rgb), 0.6);
  /* Dark Mode RGB Values */
  --primary-rgb: 99, 143, 255;
  --accent-rgb: 207, 102, 255;
  --success-rgb: 48, 200, 138;
  --warning-rgb: 255, 180, 71;
  --danger-rgb: 255, 102, 102;
}

/* Global Styles */

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: color var(--transition-normal) var(--transition-curve);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient-light);
  z-index: -1;
  transition: background var(--transition-normal) var(--transition-curve);
}

.dark body::before {
  background: var(--bg-gradient-dark);
}

/* Base Typography */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading-color);
  font-weight: 700;
  line-height: var(--leading-tight);
  scroll-margin: 5rem;
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: 0.75rem;
}

h5 {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

h6 {
  font-size: var(--text-md);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5rem;
  line-height: var(--leading-relaxed);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-fast) var(--transition-curve);
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Form Elements */

[type='text'],
  [type='email'],
  [type='url'],
  [type='password'],
  [type='number'],
  [type='date'],
  [type='datetime-local'],
  [type='month'],
  [type='search'],
  [type='tel'],
  [type='time'],
  [type='week'],
  [multiple],
  textarea,
  select {
  width: 100%;
  border-radius: var(--radius-lg);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background-color: var(--bg-surface);
  border-color: var(--border-color);
  transition: all var(--transition-fast) var(--transition-curve);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

[type='checkbox'],
  [type='radio'] {
  border-radius: var(--radius-md);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[type='checkbox']:focus,
  [type='radio']:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-color: hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.25);
  box-shadow: 0 0 0 2px var(--tw-ring-color);
}

[type='text']:focus,
  [type='email']:focus,
  [type='url']:focus,
  [type='password']:focus,
  [type='number']:focus,
  [type='date']:focus,
  [type='datetime-local']:focus,
  [type='month']:focus,
  [type='search']:focus,
  [type='tel']:focus,
  [type='time']:focus,
  [type='week']:focus,
  [multiple]:focus,
  textarea:focus,
  select:focus {
  border-color: hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.50);
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-color: hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.50);
  box-shadow: 0 0 0 2px var(--tw-ring-color);
}

::-moz-placeholder {
  color: var(--text-tertiary);
  opacity: 0.7;
}

::placeholder {
  color: var(--text-tertiary);
  opacity: 0.7;
}

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

.prose {
  color: var(--tw-prose-body);
  max-width: 65ch;
}

.prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-lead);
  font-size: 1.25em;
  line-height: 1.6;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
}

.prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-links);
  text-decoration: underline;
  font-weight: 500;
}

.prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-bold);
  font-weight: 600;
}

.prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: decimal;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-inline-start: 1.625em;
}

.prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-alpha;
}

.prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-alpha;
}

.prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-alpha;
}

.prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-alpha;
}

.prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-roman;
}

.prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-roman;
}

.prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-roman;
}

.prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-roman;
}

.prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: decimal;
}

.prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: disc;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-inline-start: 1.625em;
}

.prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
  font-weight: 400;
  color: var(--tw-prose-counters);
}

.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
  color: var(--tw-prose-bullets);
}

.prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  margin-top: 1.25em;
}

.prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-color: var(--tw-prose-hr);
  border-top-width: 1px;
  margin-top: 3em;
  margin-bottom: 3em;
}

.prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 500;
  font-style: italic;
  color: var(--tw-prose-quotes);
  border-inline-start-width: 0.25rem;
  border-inline-start-color: var(--tw-prose-quote-borders);
  quotes: "\201C""\201D""\2018""\2019";
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-inline-start: 1em;
}

.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
  content: open-quote;
}

.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
  content: close-quote;
}

.prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 800;
  font-size: 2.25em;
  margin-top: 0;
  margin-bottom: 0.8888889em;
  line-height: 1.1111111;
}

.prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 900;
  color: inherit;
}

.prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 700;
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3333333;
}

.prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 800;
  color: inherit;
}

.prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  font-size: 1.25em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 700;
  color: inherit;
}

.prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 700;
  color: inherit;
}

.prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  display: block;
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 500;
  font-family: inherit;
  color: var(--tw-prose-kbd);
  box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);
  font-size: 0.875em;
  border-radius: 0.3125rem;
  padding-top: 0.1875em;
  padding-inline-end: 0.375em;
  padding-bottom: 0.1875em;
  padding-inline-start: 0.375em;
}

.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-code);
  font-weight: 600;
  font-size: 0.875em;
}

.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
  content: "`";
}

.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
  content: "`";
}

.prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
  font-size: 0.875em;
}

.prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
  font-size: 0.9em;
}

.prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-pre-code);
  background-color: var(--tw-prose-pre-bg);
  overflow-x: auto;
  font-weight: 400;
  font-size: 0.875em;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.375rem;
  padding-top: 0.8571429em;
  padding-inline-end: 1.1428571em;
  padding-bottom: 0.8571429em;
  padding-inline-start: 1.1428571em;
}

.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}

.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
  content: none;
}

.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
  content: none;
}

.prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  width: 100%;
  table-layout: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
  line-height: 1.7142857;
}

.prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-bottom-width: 1px;
  border-bottom-color: var(--tw-prose-th-borders);
}

.prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  vertical-align: bottom;
  padding-inline-end: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-inline-start: 0.5714286em;
}

.prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-bottom-width: 1px;
  border-bottom-color: var(--tw-prose-td-borders);
}

.prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-bottom-width: 0;
}

.prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  vertical-align: baseline;
}

.prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-top-width: 1px;
  border-top-color: var(--tw-prose-th-borders);
}

.prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  vertical-align: top;
}

.prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  text-align: start;
}

.prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
  margin-bottom: 0;
}

.prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-captions);
  font-size: 0.875em;
  line-height: 1.4285714;
  margin-top: 0.8571429em;
}

.prose {
  --tw-prose-body: #374151;
  --tw-prose-headings: #111827;
  --tw-prose-lead: #4b5563;
  --tw-prose-links: #111827;
  --tw-prose-bold: #111827;
  --tw-prose-counters: #6b7280;
  --tw-prose-bullets: #d1d5db;
  --tw-prose-hr: #e5e7eb;
  --tw-prose-quotes: #111827;
  --tw-prose-quote-borders: #e5e7eb;
  --tw-prose-captions: #6b7280;
  --tw-prose-kbd: #111827;
  --tw-prose-kbd-shadows: 17 24 39;
  --tw-prose-code: #111827;
  --tw-prose-pre-code: #e5e7eb;
  --tw-prose-pre-bg: #1f2937;
  --tw-prose-th-borders: #d1d5db;
  --tw-prose-td-borders: #e5e7eb;
  --tw-prose-invert-body: #d1d5db;
  --tw-prose-invert-headings: #fff;
  --tw-prose-invert-lead: #9ca3af;
  --tw-prose-invert-links: #fff;
  --tw-prose-invert-bold: #fff;
  --tw-prose-invert-counters: #9ca3af;
  --tw-prose-invert-bullets: #4b5563;
  --tw-prose-invert-hr: #374151;
  --tw-prose-invert-quotes: #f3f4f6;
  --tw-prose-invert-quote-borders: #374151;
  --tw-prose-invert-captions: #9ca3af;
  --tw-prose-invert-kbd: #fff;
  --tw-prose-invert-kbd-shadows: 255 255 255;
  --tw-prose-invert-code: #fff;
  --tw-prose-invert-pre-code: #d1d5db;
  --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);
  --tw-prose-invert-th-borders: #4b5563;
  --tw-prose-invert-td-borders: #374151;
  font-size: 1rem;
  line-height: 1.75;
}

.prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
  margin-bottom: 0;
}

.prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0.375em;
}

.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0.375em;
}

.prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
}

.prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 1.25em;
}

.prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
}

.prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 1.25em;
}

.prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.5em;
  padding-inline-start: 1.625em;
}

.prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0;
}

.prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-end: 0;
}

.prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-top: 0.5714286em;
  padding-inline-end: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-inline-start: 0.5714286em;
}

.prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0;
}

.prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-end: 0;
}

.prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 0;
}

.prose-sm {
  font-size: 0.875rem;
  line-height: 1.7142857;
}

.prose-sm :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.1428571em;
  margin-bottom: 1.1428571em;
}

.prose-sm :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-size: 1.2857143em;
  line-height: 1.5555556;
  margin-top: 0.8888889em;
  margin-bottom: 0.8888889em;
}

.prose-sm :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.3333333em;
  margin-bottom: 1.3333333em;
  padding-inline-start: 1.1111111em;
}

.prose-sm :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-size: 2.1428571em;
  margin-top: 0;
  margin-bottom: 0.8em;
  line-height: 1.2;
}

.prose-sm :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-size: 1.4285714em;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

.prose-sm :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-size: 1.2857143em;
  margin-top: 1.5555556em;
  margin-bottom: 0.4444444em;
  line-height: 1.5555556;
}

.prose-sm :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.4285714em;
  margin-bottom: 0.5714286em;
  line-height: 1.4285714;
}

.prose-sm :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
}

.prose-sm :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
}

.prose-sm :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
  margin-bottom: 0;
}

.prose-sm :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
}

.prose-sm :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-size: 0.8571429em;
  border-radius: 0.3125rem;
  padding-top: 0.1428571em;
  padding-inline-end: 0.3571429em;
  padding-bottom: 0.1428571em;
  padding-inline-start: 0.3571429em;
}

.prose-sm :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-size: 0.8571429em;
}

.prose-sm :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-size: 0.9em;
}

.prose-sm :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-size: 0.8888889em;
}

.prose-sm :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-size: 0.8571429em;
  line-height: 1.6666667;
  margin-top: 1.6666667em;
  margin-bottom: 1.6666667em;
  border-radius: 0.25rem;
  padding-top: 0.6666667em;
  padding-inline-end: 1em;
  padding-bottom: 0.6666667em;
  padding-inline-start: 1em;
}

.prose-sm :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.1428571em;
  margin-bottom: 1.1428571em;
  padding-inline-start: 1.5714286em;
}

.prose-sm :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.1428571em;
  margin-bottom: 1.1428571em;
  padding-inline-start: 1.5714286em;
}

.prose-sm :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.2857143em;
  margin-bottom: 0.2857143em;
}

.prose-sm :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0.4285714em;
}

.prose-sm :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0.4285714em;
}

.prose-sm :where(.prose-sm > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.5714286em;
  margin-bottom: 0.5714286em;
}

.prose-sm :where(.prose-sm > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.1428571em;
}

.prose-sm :where(.prose-sm > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 1.1428571em;
}

.prose-sm :where(.prose-sm > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.1428571em;
}

.prose-sm :where(.prose-sm > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 1.1428571em;
}

.prose-sm :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.5714286em;
  margin-bottom: 0.5714286em;
}

.prose-sm :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.1428571em;
  margin-bottom: 1.1428571em;
}

.prose-sm :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.1428571em;
}

.prose-sm :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.2857143em;
  padding-inline-start: 1.5714286em;
}

.prose-sm :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 2.8571429em;
  margin-bottom: 2.8571429em;
}

.prose-sm :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose-sm :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose-sm :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose-sm :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose-sm :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-size: 0.8571429em;
  line-height: 1.5;
}

.prose-sm :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-end: 1em;
  padding-bottom: 0.6666667em;
  padding-inline-start: 1em;
}

.prose-sm :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0;
}

.prose-sm :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-end: 0;
}

.prose-sm :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-top: 0.6666667em;
  padding-inline-end: 1em;
  padding-bottom: 0.6666667em;
  padding-inline-start: 1em;
}

.prose-sm :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0;
}

.prose-sm :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-end: 0;
}

.prose-sm :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
}

.prose-sm :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
  margin-bottom: 0;
}

.prose-sm :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-size: 0.8571429em;
  line-height: 1.3333333;
  margin-top: 0.6666667em;
}

.prose-sm :where(.prose-sm > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose-sm :where(.prose-sm > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 0;
}

/* Container */

.\!container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .\!container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .\!container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.\!container {
  max-width: min(1280px, 100% - 2rem) !important;
}

.container {
  max-width: min(1280px, 100% - 2rem);
}

/* Button System */

.\!btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition-property: all;
  transition-timing-function: var(--transition-curve);
  transition-duration: var(--transition-normal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition-property: all;
  transition-timing-function: var(--transition-curve);
  transition-duration: var(--transition-normal);
}

.\!btn {
  font-size: var(--text-sm) !important;
  padding: 0.625rem 1.25rem !important;
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
   {
    content: '' !important;
  }
   {
    position: absolute;
  }
   {
    inset: 0px;
  }
   {
    opacity: 0;
  }
   {
    transition-property: opacity;
    transition-timing-function: var(--transition-curve);
    transition-duration: var(--transition-normal);
  }
   {
    z-index: -1 !important;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0)) !important;
  }
   {
    opacity: 1;
  }
  /* Slots for icons */
   {
    margin-left: -0.125rem;
  }
   {
    margin-right: 0.5rem;
  }
   {
    height: 1.25rem;
  }
   {
    width: 1.25rem;
  }
   {
    margin-right: -0.125rem;
  }
   {
    margin-left: 0.5rem;
  }
   {
    height: 1.25rem;
  }
   {
    width: 1.25rem;
  }
}

.btn {
  font-size: var(--text-sm);
  padding: 0.625rem 1.25rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  &::before {
    content: '';
  }
  &::before {
    position: absolute;
  }
  &::before {
    inset: 0px;
  }
  &::before {
    opacity: 0;
  }
  &::before {
    transition-property: opacity;
    transition-timing-function: var(--transition-curve);
    transition-duration: var(--transition-normal);
  }
  &::before {
    z-index: -1;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
  }
  &:hover::before {
    opacity: 1;
  }
  /* Slots for icons */
  & > svg, & > .icon {
    margin-left: -0.125rem;
  }
  & > svg, & > .icon {
    margin-right: 0.5rem;
  }
  & > svg, & > .icon {
    height: 1.25rem;
  }
  & > svg, & > .icon {
    width: 1.25rem;
  }
  &.icon-right > svg, &.icon-right > .icon {
    margin-right: -0.125rem;
  }
  &.icon-right > svg, &.icon-right > .icon {
    margin-left: 0.5rem;
  }
  &.icon-right > svg, &.icon-right > .icon {
    height: 1.25rem;
  }
  &.icon-right > svg, &.icon-right > .icon {
    width: 1.25rem;
  }
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-on-primary);
  box-shadow: var(--shadow-primary);
  &:hover {
    box-shadow: var(--shadow-primary), var(--glow-primary);
    transform: translateY(-1px);
  }
  &:active {
    transform: translateY(0);
  }
}

.btn-secondary {
  border-width: 1px;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border-color: var(--border-color);
  &:hover {
    background-color: var(--bg-subtle-hover);
  }
  &:hover {
    color: var(--text-primary);
  }
  &:hover {
    background-color: var(--bg-subtle-hover);
  }
  &:hover {
    color: var(--text-primary);
  }
  &:hover {
    border-color: var(--border-color-hover);
  }
  &:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
  &:active {
    transform: translateY(0);
  }
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
  &:hover {
    box-shadow: var(--shadow-accent), var(--glow-accent);
    transform: translateY(-1px);
  }
  &:active {
    transform: translateY(0);
  }
}

.btn-ghost {
  border-color: transparent;
  background-color: transparent;
  color: var(--text-secondary);
  &:hover {
    background-color: var(--bg-subtle);
  }
  &:hover {
    color: var(--text-primary);
  }
  &:hover {
    background-color: var(--bg-subtle);
  }
  &:hover {
    color: var(--text-primary);
  }
}

.btn-danger {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  --tw-shadow: var(--shadow-sm);
  --tw-shadow-colored: var(--shadow-sm);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  background-color: var(--danger-color);
  &:hover {
    background-color: var(--danger-light);
  }
  &:hover {
    --tw-shadow: var(--shadow-md);
    --tw-shadow-colored: var(--shadow-md);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
  &:hover {
    transform: translateY(-1px);
  }
}

.btn-sm {
  border-radius: var(--radius-md);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: var(--text-xs);
}

.btn-lg {
  border-radius: var(--radius-xl);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: var(--text-lg);
}

.btn-icon {
  border-radius: var(--radius-full);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  & > svg, & > .icon {
    margin: 0px;
  }
  & > svg, & > .icon {
    height: 1.25rem;
  }
  & > svg, & > .icon {
    width: 1.25rem;
  }
}

 .\!btn[disabled] {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-disabled, .btn[disabled] {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Modern Card Styles */

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal) var(--transition-curve);
  &:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
  &.card-interactive:hover {
    border-color: var(--primary-color);
  }
}

.card-glass {
  --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);
  background-color: var(--bg-surface-overlay);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
  padding: 1.5rem;
}

/* Badge Component */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  font-size: var(--text-xs);
  font-weight: 500;
  &.badge-primary {
    background-color: var(--primary-surface);
  }
  &.badge-primary {
    color: var(--text-primary);
  }
  &.badge-primary {
    background-color: var(--primary-surface);
  }
  &.badge-primary {
    color: var(--text-primary);
  }
  &.badge-accent {
    background-color: var(--accent-surface);
  }
  &.badge-accent {
    color: var(--accent-color);
  }
  &.badge-accent {
    background-color: var(--accent-surface);
  }
  &.badge-success {
    background-color: var(--success-surface);
  }
  &.badge-success {
    color: var(--success-color);
  }
  &.badge-success {
    background-color: var(--success-surface);
  }
  &.badge-warning {
    background-color: var(--warning-surface);
  }
  &.badge-warning {
    color: var(--warning-color);
  }
  &.badge-warning {
    background-color: var(--warning-surface);
  }
  &.badge-danger {
    background-color: var(--danger-surface);
  }
  &.badge-danger {
    color: var(--danger-color);
  }
  &.badge-danger {
    background-color: var(--danger-surface);
  }
  &.badge-info {
    background-color: var(--info-surface);
  }
  &.badge-info {
    color: var(--info-color);
  }
  &.badge-info {
    background-color: var(--info-surface);
  }
}

/* Form Controls */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
  color: var(--text-primary);
}

.form-helper {
  margin-top: 0.375rem;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Input Groups */

/* Modern Navigation */

.\!navbar {
  position: sticky;
  top: 0px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  --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);
  background-color: var(--bg-surface-overlay);
  z-index: var(--z-header);
}

.navbar {
  position: sticky;
  top: 0px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  --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);
  background-color: var(--bg-surface-overlay);
  z-index: var(--z-header);
}

.\!navbar {
  border-bottom: 1px solid var(--border-color) !important;
  transition: all var(--transition-normal) var(--transition-curve) !important;
   {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
   {
    --tw-shadow: var(--shadow-md);
    --tw-shadow-colored: var(--shadow-md);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
}

.navbar {
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal) var(--transition-curve);
  &.navbar-scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  &.navbar-scrolled {
    --tw-shadow: var(--shadow-md);
    --tw-shadow-colored: var(--shadow-md);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
}

.nav-link {
  border-radius: var(--radius-lg);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: var(--transition-curve);
  transition-duration: var(--transition-normal);
  color: var(--text-secondary);
  &:hover {
    background-color: var(--bg-subtle);
  }
  &:hover {
    color: var(--text-primary);
  }
  &:hover {
    background-color: var(--bg-subtle);
  }
  &:hover {
    color: var(--text-primary);
  }
  &:hover {
    text-decoration: none;
  }
  &.active {
    font-weight: 500;
  }
  &.active {
    color: var(--text-primary);
  }
  &.active {
    color: var(--text-primary);
  }
}

/* Modern Sidebar */

.sidebar {
  position: fixed;
  top: 0px;
  display: flex;
  height: 100vh;
  width: 100%;
  max-width: 20rem;
  flex-direction: column;
  background-color: var(--bg-surface);
  z-index: var(--z-sidebar);
}

@media (min-width: 640px) {
  .sidebar {
    width: 16rem;
  }
}

.sidebar {
  transition: transform var(--transition-normal) var(--transition-curve);
  &.sidebar-left {
    left: 0;
    border-right: 1px solid var(--border-color);
    &.sidebar-collapsed {
      transform: translateX(-100%);
    }
  }
  &.sidebar-right {
    right: 0;
    border-left: 1px solid var(--border-color);
    &.sidebar-collapsed {
      transform: translateX(100%);
    }
  }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom-width: 1px;
  padding: 1rem;
  border-color: var(--border-color);
}

.sidebar-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
}

.sidebar-footer {
  border-top-width: 1px;
  padding: 1rem;
  border-color: var(--border-color);
}

/* Toggle Switch */

.toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  & input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  & .toggle-slider {
    height: 1.5rem;
  }
  & .toggle-slider {
    width: 2.75rem;
  }
  & .toggle-slider {
    border-radius: var(--radius-full);
  }
  & .toggle-slider {
    background-color: var(--bg-subtle);
  }
  & .toggle-slider {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: var(--transition-curve);
    transition-duration: var(--transition-normal);
  }
  & .toggle-slider {
    background-color: var(--bg-subtle);
  }
  & .toggle-slider:after {
    content: '';
  }
  & .toggle-slider:after {
    position: absolute;
  }
  & .toggle-slider:after {
    left: 0.25rem;
  }
  & .toggle-slider:after {
    top: 0.25rem;
  }
  & .toggle-slider:after {
    height: 1rem;
  }
  & .toggle-slider:after {
    width: 1rem;
  }
  & .toggle-slider:after {
    border-radius: var(--radius-full);
  }
  & .toggle-slider:after {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  }
  & .toggle-slider:after {
    transition-property: transform;
    transition-timing-function: var(--transition-curve);
    transition-duration: var(--transition-normal);
  }
  & input:checked + .toggle-slider {
    background-color: var(--primary-color);
  }
  & input:checked + .toggle-slider {
    background-color: var(--primary-color);
  }
  & input:checked + .toggle-slider:after {
    transform: translateX(1.25rem);
  }
  & input:focus + .toggle-slider {
    --tw-ring-offset-shadow: var(--tw-ring-inset, /*!*/ /*!*/) var(--tw-ring-offset-width, 0px) var(--tw-ring-offset-color, #fff);
    --tw-ring-shadow: var(--tw-ring-inset, /*!*/ /*!*/) 0 0 0 calc(2px + var(--tw-ring-offset-width, 0px)) hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.20);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  }
}

/* Avatar Component */

/* Tooltip Component */

.tooltip {
  position: relative;
  display: inline-block;
  & .tooltip-content {
    pointer-events: none;
  }
  & .tooltip-content {
    visibility: hidden;
  }
  & .tooltip-content {
    position: absolute;
  }
  & .tooltip-content {
    border-radius: var(--radius-md);
  }
  & .tooltip-content {
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
  }
  & .tooltip-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  & .tooltip-content {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  & .tooltip-content {
    font-size: var(--text-sm);
  }
  & .tooltip-content {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  }
  & .tooltip-content {
    opacity: 0;
  }
  & .tooltip-content {
    transition: all var(--transition-fast) var(--transition-curve);
    z-index: var(--z-tooltip);
    width: -moz-max-content;
    width: max-content;
    max-width: 250px;
    /* Positions */
    &.tooltip-top {
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(-10px);
      &::after {
        content: '';
      }
      &::after {
        position: absolute;
      }
      &::after {
        top: 100%;
      }
      &::after {
        left: 50%;
      }
      &::after {
        --tw-translate-x: -50%;
        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
      }
      &::after {
        border-width: 4px;
      }
      &::after {
        border-color: transparent;
      }
      &::after {
        border-top-color: var(--gray-900);
      }
    }
    /* Add more positions as needed */
  }
  &:hover .tooltip-content {
    visibility: visible;
  }
  &:hover .tooltip-content {
    opacity: 1;
  }
  #matrix-animation-overlay&:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
  }
  &:hover .tooltip-content {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Modern Table */

.table {
  width: 100%;
  border-collapse: collapse;
  & thead {
    background-color: var(--bg-subtle);
  }
  & thead {
    background-color: var(--bg-subtle);
  }
  & thead {
    & th {
      border-bottom-width: 1px;
    }
    & th {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
    & th {
      padding-top: 0.75rem;
      padding-bottom: 0.75rem;
    }
    & th {
      text-align: left;
    }
    & th {
      font-size: var(--text-xs);
    }
    & th {
      font-weight: 500;
    }
    & th {
      text-transform: uppercase;
    }
    & th {
      letter-spacing: 0.05em;
    }
    & th {
      color: var(--text-secondary);
    }
    & th {
      color: var(--text-secondary);
    }
    & th {
      border-color: var(--border-color);
    }
  }
  & tbody > :not([hidden]) ~ :not([hidden]) {
    --tw-divide-y-reverse: 0;
    border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
    border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
  }
  & tbody > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--border-color);
  }
  & tbody {
    background-color: var(--bg-surface);
  }
  & tbody {
    background-color: var(--bg-surface);
  }
  & tbody {
    & tr {
      transition: background-color var(--transition-fast) var(--transition-curve);
      &:hover {
        background-color: var(--bg-subtle);
      }
      &:hover {
        background-color: var(--bg-subtle);
      }
    }
    & td {
      white-space: nowrap;
    }
    & td {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
    & td {
      padding-top: 1rem;
      padding-bottom: 1rem;
    }
    & td {
      color: var(--text-primary);
    }
    & td {
      color: var(--text-primary);
    }
  }
}

/* Progress Indicators */

.progress {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  height: 0.5rem;
  & .progress-bar {
    height: 100%
  }
  & .progress-bar {
    border-radius: var(--radius-full);
  }
  & .progress-bar {
    transition: width var(--transition-normal) var(--transition-curve);
    &.progress-primary {
      background: var(--gradient-primary);
    }
    &.progress-accent {
      background: var(--gradient-accent);
    }
    &.progress-success {
      background-color: var(--success-color);
    }
    &.progress-success {
      background-color: var(--success-color);
    }
    &.progress-warning {
      background-color: var(--warning-color);
    }
    &.progress-warning {
      background-color: var(--warning-color);
    }
    &.progress-danger {
      background-color: var(--danger-color);
    }
    &.progress-danger {
      background-color: var(--danger-color);
    }
  }
}

/* Modern Tabs */

.tabs {
  display: flex;
  flex-direction: column;
}

.tab-list {
  display: flex;
  border-bottom-width: 1px;
  border-color: var(--border-color);
}

.tab {
  margin-bottom: -1px;
  cursor: pointer;
  border-bottom-width: 2px;
  border-color: transparent;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast) var(--transition-curve);
  &:hover {
    color: var(--text-primary);
  }
  &:hover {
    color: var(--text-primary);
  }
  &.active {
    border-color: var(--primary-color);
  }
  &.active {
    color: var(--text-primary);
  }
  &.active {
    color: var(--text-primary);
  }
}

.tab-panel {
  display: none;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  &.active {
    display: block;
  }
}

/* Alerts */

.alert {
  display: flex;
  align-items: flex-start;
  border-radius: var(--radius-lg);
  border-width: 1px;
  padding: 1rem;
  transition: all var(--transition-fast) var(--transition-curve);
  & .alert-icon {
    margin-right: 0.75rem;
  }
  & .alert-icon {
    margin-top: 0.125rem;
  }
  & .alert-icon {
    flex-shrink: 0;
  }
  & .alert-content {
    flex: 1 1 0%;
  }
  & .alert-title {
    margin-bottom: 0.25rem;
  }
  & .alert-title {
    font-weight: 600;
  }
  & .alert-close {
    margin-left: 0.75rem;
  }
  & .alert-close {
    flex-shrink: 0;
  }
  & .alert-close {
    color: var(--text-tertiary);
  }
  & .alert-close {
    color: var(--text-tertiary);
  }
  & .alert-close {
    &:hover {
      color: var(--text-secondary);
    }
    &:hover {
      color: var(--text-secondary);
    }
  }
  &.alert-primary {
    background-color: var(--primary-surface);
  }
  &.alert-primary {
    background-color: var(--primary-surface);
  }
  &.alert-primary {
    border-color: hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.20);
    & .alert-title {
      color: var(--text-primary);
    }
    & .alert-title {
      color: var(--text-primary);
    }
  }
  &.alert-success {
    background-color: var(--success-surface);
  }
  &.alert-success {
    background-color: var(--success-surface);
  }
  &.alert-success {
    border-color: hsla(var(--success-hue), 75%, 45%, 0.20);
    & .alert-title {
      color: var(--success-color);
    }
  }
  &.alert-warning {
    background-color: var(--warning-surface);
  }
  &.alert-warning {
    background-color: var(--warning-surface);
  }
  &.alert-warning {
    border-color: hsla(var(--warning-hue), 90%, 55%, 0.20);
    & .alert-title {
      color: var(--warning-color);
    }
  }
  &.alert-danger {
    background-color: var(--danger-surface);
  }
  &.alert-danger {
    background-color: var(--danger-surface);
  }
  &.alert-danger {
    border-color: hsla(var(--danger-hue), 80%, 55%, 0.20);
    & .alert-title {
      color: var(--danger-color);
    }
  }
  &.alert-info {
    background-color: var(--info-surface);
  }
  &.alert-info {
    background-color: var(--info-surface);
  }
  &.alert-info {
    border-color: hsla(var(--info-hue), 85%, 50%, 0.20);
    & .alert-title {
      color: var(--info-color);
    }
  }
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0px;
  background-color: rgb(0 0 0 / 0.5);
  --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);
  z-index: var(--z-modal-backdrop);
  transition: opacity var(--transition-normal) var(--transition-curve);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  --tw-translate-x: -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));
  z-index: var(--z-modal);
  display: flex;
  max-height: 90vh;
  width: 100%;
  max-width: 32rem;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  --tw-shadow: var(--shadow-xl);
  --tw-shadow-colored: var(--shadow-xl);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  background-color: var(--bg-surface);
  transition: all var(--transition-normal) var(--transition-bounce);
  &.modal-entering, &.modal-exiting {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom-width: 1px;
  padding: 1.5rem;
  padding-bottom: 1rem;
  border-color: var(--border-color);
}

.modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top-width: 1px;
  padding: 1.5rem;
  padding-top: 1rem;
  border-color: var(--border-color);
}

/* Skeleton Loading UI */

/* Modern Split Layout */

/* Accordion Component */

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

.accordion {
  border-color: var(--border-color);
}

.accordion-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast) var(--transition-curve);
  &:hover {
    background-color: var(--bg-subtle);
  }
  &:hover {
    background-color: var(--bg-subtle);
  }
  & .accordion-icon {
    transition-property: transform;
    transition-timing-function: var(--transition-curve);
    transition-duration: var(--transition-normal);
  }
  &[aria-expanded="true"] .accordion-icon {
    --tw-rotate: 180deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }
}

.accordion-content {
  display: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: var(--bg-subtle);
  &[aria-hidden="false"] {
    display: block;
  }
}

/* Feature Comparison Table */

/* TRIZ-Specific Components */

.principle-card {
  display: flex;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  text-align: center;
  transition-property: all;
  transition-timing-function: var(--transition-curve);
  transition-duration: var(--transition-normal);
}

@media (min-width: 640px) {
  .principle-card {
    padding: 1.5rem;
  }
}

.principle-card {
  & .principle-icon {
    margin-bottom: 0.75rem;
  }
  & .principle-icon {
    display: flex;
  }
  & .principle-icon {
    height: 3rem;
  }
  & .principle-icon {
    width: 3rem;
  }
  & .principle-icon {
    align-items: center;
  }
  & .principle-icon {
    justify-content: center;
  }
  & .principle-icon {
    border-radius: var(--radius-lg);
  }
  & .principle-icon {
    font-size: var(--text-xl);
  }
  @media (min-width: 640px) {
    & .principle-icon {
      margin-bottom: 1rem;
    }
  }
  @media (min-width: 640px) {
    & .principle-icon {
      height: 4rem;
    }
  }
  @media (min-width: 640px) {
    & .principle-icon {
      width: 4rem;
    }
  }
  @media (min-width: 640px) {
    & .principle-icon {
      border-radius: var(--radius-xl);
    }
  }
  @media (min-width: 640px) {
    & .principle-icon {
      font-size: var(--text-2xl);
    }
  }
  & .principle-icon {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
  }
  & .principle-title {
    margin-bottom: 0.25rem;
  }
  & .principle-title {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  & .principle-title {
    font-weight: 700;
  }
  @media (min-width: 640px) {
    & .principle-title {
      margin-bottom: 0.5rem;
    }
  }
  @media (min-width: 640px) {
    & .principle-title {
      font-size: var(--text-lg);
    }
  }
  & .principle-desc {
    font-size: var(--text-xs);
  }
  & .principle-desc {
    color: var(--text-secondary);
  }
  & .principle-desc {
    color: var(--text-secondary);
  }
  @media (min-width: 640px) {
    & .principle-desc {
      font-size: var(--text-sm);
    }
  }
  &:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    & .principle-icon {
      box-shadow: var(--glow-primary);
    }
  }
}

.workflow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 500;
  & .step-number {
    z-index: var(--z-above);
  }
  & .step-number {
    display: flex;
  }
  & .step-number {
    height: 2rem;
  }
  & .step-number {
    width: 2rem;
  }
  & .step-number {
    align-items: center;
  }
  & .step-number {
    justify-content: center;
  }
  & .step-number {
    border-radius: var(--radius-full);
  }
  & .step-number {
    border-width: 1px;
  }
  & .step-number {
    background-color: var(--bg-subtle);
  }
  & .step-number {
    background-color: var(--bg-subtle);
  }
  & .step-number {
    border-color: var(--border-color);
  }
  & .step-number {
    z-index: var(--z-above);
  }
  & .step-number {
    transition: all var(--transition-fast) var(--transition-curve);
  }
  & .step-label {
    margin-top: 0.25rem;
  }
  & .step-label {
    font-size: var(--text-xs);
  }
  @media (min-width: 640px) {
    & .step-label {
      font-size: var(--text-xs);
    }
  }
  & .step-label {
    font-size: 0.65rem;
  }
  & .step-label {
    line-height: var(--leading-tight);
  }
  &.active .step-number {
    background: var(--gradient-primary);
  }
  &.active .step-number {
    border-color: var(--primary-color);
  }
  &.active .step-number {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  }
  &.active .step-label {
    font-weight: 600;
  }
  &.active .step-label {
    color: var(--text-primary);
  }
  &.active .step-label {
    color: var(--text-primary);
  }
  &.completed .step-number {
    border-color: var(--success-color);
  }
  &.completed .step-number {
    background-color: var(--success-color);
  }
  &.completed .step-number {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  }
  &.completed .step-number {
    background-color: var(--success-color);
  }
}

/* Un-nested media query for .workflow-step .step-label */

@media (max-width: 380px) {
  .workflow-step .step-label {
    display: none;
  }
}

.ai-analysis {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  border-left-width: 4px;
  border-color: var(--accent-color);
  padding: 1.5rem;
  background-color: var(--accent-surface);
  & .ai-analysis-header {
    margin-bottom: 1rem;
  }
  & .ai-analysis-header {
    display: flex;
  }
  & .ai-analysis-header {
    align-items: center;
  }
  & .ai-analysis-header {
    & .ai-icon {
      margin-right: 0.75rem;
    }
    & .ai-icon {
      color: var(--accent-color);
    }
    & .ai-title {
      font-size: var(--text-lg);
    }
    & .ai-title {
      font-weight: 700;
    }
    & .ai-title {
      color: var(--accent-color);
    }
  }
  & .ai-analysis-content {
    color: var(--tw-prose-body);
    max-width: 65ch;
  }
  & .ai-analysis-content :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
  }
  & .ai-analysis-content :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-lead);
    font-size: 1.25em;
    line-height: 1.6;
    margin-top: 1.2em;
    margin-bottom: 1.2em;
  }
  & .ai-analysis-content :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-links);
    text-decoration: underline;
    font-weight: 500;
  }
  & .ai-analysis-content :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-bold);
    font-weight: 600;
  }
  & .ai-analysis-content :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: inherit;
  }
  & .ai-analysis-content :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: inherit;
  }
  & .ai-analysis-content :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: inherit;
  }
  & .ai-analysis-content :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    list-style-type: decimal;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-inline-start: 1.625em;
  }
  & .ai-analysis-content :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    list-style-type: upper-alpha;
  }
  & .ai-analysis-content :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    list-style-type: lower-alpha;
  }
  & .ai-analysis-content :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    list-style-type: upper-alpha;
  }
  & .ai-analysis-content :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    list-style-type: lower-alpha;
  }
  & .ai-analysis-content :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    list-style-type: upper-roman;
  }
  & .ai-analysis-content :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    list-style-type: lower-roman;
  }
  & .ai-analysis-content :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    list-style-type: upper-roman;
  }
  & .ai-analysis-content :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    list-style-type: lower-roman;
  }
  & .ai-analysis-content :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    list-style-type: decimal;
  }
  & .ai-analysis-content :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    list-style-type: disc;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-inline-start: 1.625em;
  }
  & .ai-analysis-content :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
    font-weight: 400;
    color: var(--tw-prose-counters);
  }
  & .ai-analysis-content :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
    color: var(--tw-prose-bullets);
  }
  & .ai-analysis-content :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 600;
    margin-top: 1.25em;
  }
  & .ai-analysis-content :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    border-color: var(--tw-prose-hr);
    border-top-width: 1px;
    margin-top: 3em;
    margin-bottom: 3em;
  }
  & .ai-analysis-content :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-weight: 500;
    font-style: italic;
    color: var(--tw-prose-quotes);
    border-inline-start-width: 0.25rem;
    border-inline-start-color: var(--tw-prose-quote-borders);
    quotes: "\201C""\201D""\2018""\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-inline-start: 1em;
  }
  & .ai-analysis-content :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
    content: open-quote;
  }
  & .ai-analysis-content :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
    content: close-quote;
  }
  & .ai-analysis-content :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 800;
    font-size: 2.25em;
    margin-top: 0;
    margin-bottom: 0.8888889em;
    line-height: 1.1111111;
  }
  & .ai-analysis-content :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-weight: 900;
    color: inherit;
  }
  & .ai-analysis-content :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 700;
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3333333;
  }
  & .ai-analysis-content :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-weight: 800;
    color: inherit;
  }
  & .ai-analysis-content :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 600;
    font-size: 1.25em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.6;
  }
  & .ai-analysis-content :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-weight: 700;
    color: inherit;
  }
  & .ai-analysis-content :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.5;
  }
  & .ai-analysis-content :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-weight: 700;
    color: inherit;
  }
  & .ai-analysis-content :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 2em;
    margin-bottom: 2em;
  }
  & .ai-analysis-content :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    display: block;
    margin-top: 2em;
    margin-bottom: 2em;
  }
  & .ai-analysis-content :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 2em;
    margin-bottom: 2em;
  }
  & .ai-analysis-content :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-weight: 500;
    font-family: inherit;
    color: var(--tw-prose-kbd);
    box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);
    font-size: 0.875em;
    border-radius: 0.3125rem;
    padding-top: 0.1875em;
    padding-inline-end: 0.375em;
    padding-bottom: 0.1875em;
    padding-inline-start: 0.375em;
  }
  & .ai-analysis-content :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-code);
    font-weight: 600;
    font-size: 0.875em;
  }
  & .ai-analysis-content :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
    content: "`";
  }
  & .ai-analysis-content :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
    content: "`";
  }
  & .ai-analysis-content :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: inherit;
  }
  & .ai-analysis-content :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: inherit;
  }
  & .ai-analysis-content :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: inherit;
    font-size: 0.875em;
  }
  & .ai-analysis-content :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: inherit;
    font-size: 0.9em;
  }
  & .ai-analysis-content :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: inherit;
  }
  & .ai-analysis-content :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: inherit;
  }
  & .ai-analysis-content :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: inherit;
  }
  & .ai-analysis-content :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-pre-code);
    background-color: var(--tw-prose-pre-bg);
    overflow-x: auto;
    font-weight: 400;
    font-size: 0.875em;
    line-height: 1.7142857;
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
    border-radius: 0.375rem;
    padding-top: 0.8571429em;
    padding-inline-end: 1.1428571em;
    padding-bottom: 0.8571429em;
    padding-inline-start: 1.1428571em;
  }
  & .ai-analysis-content :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    background-color: transparent;
    border-width: 0;
    border-radius: 0;
    padding: 0;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
  }
  & .ai-analysis-content :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
    content: none;
  }
  & .ai-analysis-content :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
    content: none;
  }
  & .ai-analysis-content :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    width: 100%;
    table-layout: auto;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 0.875em;
    line-height: 1.7142857;
  }
  & .ai-analysis-content :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    border-bottom-width: 1px;
    border-bottom-color: var(--tw-prose-th-borders);
  }
  & .ai-analysis-content :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 600;
    vertical-align: bottom;
    padding-inline-end: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-inline-start: 0.5714286em;
  }
  & .ai-analysis-content :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    border-bottom-width: 1px;
    border-bottom-color: var(--tw-prose-td-borders);
  }
  & .ai-analysis-content :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    border-bottom-width: 0;
  }
  & .ai-analysis-content :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    vertical-align: baseline;
  }
  & .ai-analysis-content :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    border-top-width: 1px;
    border-top-color: var(--tw-prose-th-borders);
  }
  & .ai-analysis-content :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    vertical-align: top;
  }
  & .ai-analysis-content :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    text-align: start;
  }
  & .ai-analysis-content :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
    margin-bottom: 0;
  }
  & .ai-analysis-content :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    color: var(--tw-prose-captions);
    font-size: 0.875em;
    line-height: 1.4285714;
    margin-top: 0.8571429em;
  }
  & .ai-analysis-content {
    --tw-prose-body: #374151;
    --tw-prose-headings: #111827;
    --tw-prose-lead: #4b5563;
    --tw-prose-links: #111827;
    --tw-prose-bold: #111827;
    --tw-prose-counters: #6b7280;
    --tw-prose-bullets: #d1d5db;
    --tw-prose-hr: #e5e7eb;
    --tw-prose-quotes: #111827;
    --tw-prose-quote-borders: #e5e7eb;
    --tw-prose-captions: #6b7280;
    --tw-prose-kbd: #111827;
    --tw-prose-kbd-shadows: 17 24 39;
    --tw-prose-code: #111827;
    --tw-prose-pre-code: #e5e7eb;
    --tw-prose-pre-bg: #1f2937;
    --tw-prose-th-borders: #d1d5db;
    --tw-prose-td-borders: #e5e7eb;
    --tw-prose-invert-body: #d1d5db;
    --tw-prose-invert-headings: #fff;
    --tw-prose-invert-lead: #9ca3af;
    --tw-prose-invert-links: #fff;
    --tw-prose-invert-bold: #fff;
    --tw-prose-invert-counters: #9ca3af;
    --tw-prose-invert-bullets: #4b5563;
    --tw-prose-invert-hr: #374151;
    --tw-prose-invert-quotes: #f3f4f6;
    --tw-prose-invert-quote-borders: #374151;
    --tw-prose-invert-captions: #9ca3af;
    --tw-prose-invert-kbd: #fff;
    --tw-prose-invert-kbd-shadows: 255 255 255;
    --tw-prose-invert-code: #fff;
    --tw-prose-invert-pre-code: #d1d5db;
    --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);
    --tw-prose-invert-th-borders: #4b5563;
    --tw-prose-invert-td-borders: #374151;
    font-size: 1rem;
    line-height: 1.75;
  }
  & .ai-analysis-content :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
    margin-bottom: 0;
  }
  & .ai-analysis-content :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
  }
  & .ai-analysis-content :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-start: 0.375em;
  }
  & .ai-analysis-content :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-start: 0.375em;
  }
  & .ai-analysis-content :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
  }
  & .ai-analysis-content :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
  }
  & .ai-analysis-content :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.25em;
  }
  & .ai-analysis-content :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.25em;
  }
  & .ai-analysis-content :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 1.25em;
  }
  & .ai-analysis-content :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 1.25em;
  }
  & .ai-analysis-content :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.25em;
  }
  & .ai-analysis-content :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.25em;
  }
  & .ai-analysis-content :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 1.25em;
  }
  & .ai-analysis-content :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 1.25em;
  }
  & .ai-analysis-content :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
  }
  & .ai-analysis-content :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
  }
  & .ai-analysis-content :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0.5em;
    padding-inline-start: 1.625em;
  }
  & .ai-analysis-content :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-start: 0;
  }
  & .ai-analysis-content :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-end: 0;
  }
  & .ai-analysis-content :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-top: 0.5714286em;
    padding-inline-end: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-inline-start: 0.5714286em;
  }
  & .ai-analysis-content :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-start: 0;
  }
  & .ai-analysis-content :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-end: 0;
  }
  & .ai-analysis-content :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 2em;
    margin-bottom: 2em;
  }
  & .ai-analysis-content :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 0;
  }
  & .ai-analysis-content :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 0;
  }
  & .ai-analysis-content {
    font-size: 0.875rem;
    line-height: 1.7142857;
  }
  & .ai-analysis-content :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.1428571em;
    margin-bottom: 1.1428571em;
  }
  & .ai-analysis-content :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 1.2857143em;
    line-height: 1.5555556;
    margin-top: 0.8888889em;
    margin-bottom: 0.8888889em;
  }
  & .ai-analysis-content :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.3333333em;
    margin-bottom: 1.3333333em;
    padding-inline-start: 1.1111111em;
  }
  & .ai-analysis-content :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 2.1428571em;
    margin-top: 0;
    margin-bottom: 0.8em;
    line-height: 1.2;
  }
  & .ai-analysis-content :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 1.4285714em;
    margin-top: 1.6em;
    margin-bottom: 0.8em;
    line-height: 1.4;
  }
  & .ai-analysis-content :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 1.2857143em;
    margin-top: 1.5555556em;
    margin-bottom: 0.4444444em;
    line-height: 1.5555556;
  }
  & .ai-analysis-content :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.4285714em;
    margin-bottom: 0.5714286em;
    line-height: 1.4285714;
  }
  & .ai-analysis-content :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
  }
  & .ai-analysis-content :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
  }
  & .ai-analysis-content :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
    margin-bottom: 0;
  }
  & .ai-analysis-content :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
  }
  & .ai-analysis-content :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 0.8571429em;
    border-radius: 0.3125rem;
    padding-top: 0.1428571em;
    padding-inline-end: 0.3571429em;
    padding-bottom: 0.1428571em;
    padding-inline-start: 0.3571429em;
  }
  & .ai-analysis-content :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 0.8571429em;
  }
  & .ai-analysis-content :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 0.9em;
  }
  & .ai-analysis-content :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 0.8888889em;
  }
  & .ai-analysis-content :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 0.8571429em;
    line-height: 1.6666667;
    margin-top: 1.6666667em;
    margin-bottom: 1.6666667em;
    border-radius: 0.25rem;
    padding-top: 0.6666667em;
    padding-inline-end: 1em;
    padding-bottom: 0.6666667em;
    padding-inline-start: 1em;
  }
  & .ai-analysis-content :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.1428571em;
    margin-bottom: 1.1428571em;
    padding-inline-start: 1.5714286em;
  }
  & .ai-analysis-content :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.1428571em;
    margin-bottom: 1.1428571em;
    padding-inline-start: 1.5714286em;
  }
  & .ai-analysis-content :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0.2857143em;
    margin-bottom: 0.2857143em;
  }
  & .ai-analysis-content :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-start: 0.4285714em;
  }
  & .ai-analysis-content :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-start: 0.4285714em;
  }
  & .ai-analysis-content :where(.prose-sm > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0.5714286em;
    margin-bottom: 0.5714286em;
  }
  & .ai-analysis-content :where(.prose-sm > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0.5714286em;
    margin-bottom: 0.5714286em;
  }
  & .ai-analysis-content :where(.prose-sm > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.1428571em;
  }
  & .ai-analysis-content :where(.prose-sm > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.1428571em;
  }
  & .ai-analysis-content :where(.prose-sm > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 1.1428571em;
  }
  & .ai-analysis-content :where(.prose-sm > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 1.1428571em;
  }
  & .ai-analysis-content :where(.prose-sm > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.1428571em;
  }
  & .ai-analysis-content :where(.prose-sm > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.1428571em;
  }
  & .ai-analysis-content :where(.prose-sm > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 1.1428571em;
  }
  & .ai-analysis-content :where(.prose-sm > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 1.1428571em;
  }
  & .ai-analysis-content :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0.5714286em;
    margin-bottom: 0.5714286em;
  }
  & .ai-analysis-content :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.1428571em;
    margin-bottom: 1.1428571em;
  }
  & .ai-analysis-content :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.1428571em;
  }
  & .ai-analysis-content :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0.2857143em;
    padding-inline-start: 1.5714286em;
  }
  & .ai-analysis-content :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 2.8571429em;
    margin-bottom: 2.8571429em;
  }
  & .ai-analysis-content :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 0.8571429em;
    line-height: 1.5;
  }
  & .ai-analysis-content :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-end: 1em;
    padding-bottom: 0.6666667em;
    padding-inline-start: 1em;
  }
  & .ai-analysis-content :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-start: 0;
  }
  & .ai-analysis-content :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-end: 0;
  }
  & .ai-analysis-content :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-top: 0.6666667em;
    padding-inline-end: 1em;
    padding-bottom: 0.6666667em;
    padding-inline-start: 1em;
  }
  & .ai-analysis-content :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-start: 0;
  }
  & .ai-analysis-content :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    padding-inline-end: 0;
  }
  & .ai-analysis-content :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
  }
  & .ai-analysis-content :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
    margin-bottom: 0;
  }
  & .ai-analysis-content :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    font-size: 0.8571429em;
    line-height: 1.3333333;
    margin-top: 0.6666667em;
  }
  & .ai-analysis-content :where(.prose-sm > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(.prose-sm > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-top: 0;
  }
  & .ai-analysis-content :where(.prose-sm > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 0;
  }
  & .ai-analysis-content :where(.prose-sm > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
    margin-bottom: 0;
  }
  & .ai-analysis-content {
    max-width: none;
  }
}

/* Logo Animation Effect */

/* Feature Animation Wrapper */

.feature-animate {
  position: relative;
  overflow: hidden;
  &.feature-float {
    animation: float 5s ease-in-out infinite;
  }
  &.feature-pulse {
    animation: pulse-glow 3s infinite;
  }
  &.feature-morph {
    animation: morph-border 10s ease-in-out infinite;
  }
}

/* Custom Scrollbar */

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--border-color-hover) var(--bg-subtle);
  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  &::-webkit-scrollbar-track {
    background: var(--bg-subtle);
    border-radius: 9999px;
  }
  &::-webkit-scrollbar-thumb {
    background-color: var(--border-color-hover);
    border-radius: 9999px;
  }
}

/* Tool Panels */

/* Landing Page Specific Components */

/* App-Specific Components */

.principle-button {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-lg);
  border-width: 1px;
  padding: 1.5rem;
  transition-property: all;
  transition-timing-function: var(--transition-curve);
  transition-duration: var(--transition-normal);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
  &:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
  }
  &.selected {
    border-color: var(--accent-color);
    background-color: var(--accent-surface);
  }
  & .add-to-report-trigger {
    position: absolute;
  }
  & .add-to-report-trigger {
    top: 0.5rem;
  }
  & .add-to-report-trigger {
    right: 0.5rem;
  }
  & .add-to-report-trigger {
    border-radius: var(--radius-full);
  }
  & .add-to-report-trigger {
    padding: 0.25rem;
  }
  & .add-to-report-trigger {
    opacity: 0.6;
  }
  & .add-to-report-trigger {
    transition-property: all;
    transition-timing-function: var(--transition-curve);
    transition-duration: var(--transition-normal);
  }
  & .add-to-report-trigger {
    background: rgba(var(--card-bg-color-rgb, 255, 255, 255), 0.8);
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
    &:hover {
      --tw-scale-x: 1.1;
      --tw-scale-y: 1.1;
      transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    }
    &:hover {
      transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    }
    &:hover {
      opacity: 1;
    }
    &:hover {
      color: var(--primary-color);
    }
  }
}

.basket-item {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  border-width: 1px;
  padding: 1rem;
  background-color: var(--bg-subtle);
  border-color: var(--border-color);
}

.diagram-modal .modal-content {
  display: flex;
  height: 90vh;
  width: 95%;
  max-width: 72rem;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  --tw-shadow: var(--shadow-xl);
  --tw-shadow-colored: var(--shadow-xl);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  background-color: var(--bg-surface);
}

.ai-analysis-modal .modal-content {
  max-width: 56rem;
}

.ai-loading-indicator {
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
  & .spinner {
    margin-left: auto;
    margin-right: auto;
  }
  & .spinner {
    margin-bottom: 1.5rem;
  }
  & .spinner {
    height: 4rem;
  }
  & .spinner {
    width: 4rem;
  }
  & .spinner {
    border-radius: var(--radius-full);
  }
  & .spinner {
    border-width: 4px;
  }
  & .spinner {
    border-top-color: transparent;
  }
  & .spinner {
    border-color: var(--accent-color);
    border-top-color: transparent;
    animation: spin 1s linear infinite;
  }
}

/* Animated Background Elements */

/* Mobile Menu */

.mobile-menu {
  position: fixed;
  inset: 0px;
  display: none;
  z-index: var(--z-dropdown);
  & .mobile-backdrop {
    position: absolute;
  }
  & .mobile-backdrop {
    inset: 0px;
  }
  & .mobile-backdrop {
    background-color: rgb(0 0 0 / 0.5);
  }
  & .mobile-backdrop {
    --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);
  }
  & .mobile-menu-panel {
    position: absolute;
  }
  & .mobile-menu-panel {
    top: 0px;
  }
  & .mobile-menu-panel {
    right: 0px;
  }
  & .mobile-menu-panel {
    display: flex;
  }
  & .mobile-menu-panel {
    height: 100%;
  }
  & .mobile-menu-panel {
    width: 16rem;
  }
  & .mobile-menu-panel {
    flex-direction: column;
  }
  & .mobile-menu-panel {
    background-color: var(--bg-surface);
  }
  & .mobile-menu-panel {
    --tw-shadow: var(--shadow-xl);
    --tw-shadow-colored: var(--shadow-xl);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
  & .mobile-menu-panel {
    background-color: var(--bg-surface);
  }
  & .mobile-menu-header {
    display: flex;
  }
  & .mobile-menu-header {
    align-items: center;
  }
  & .mobile-menu-header {
    justify-content: space-between;
  }
  & .mobile-menu-header {
    border-bottom-width: 1px;
  }
  & .mobile-menu-header {
    padding: 1rem;
  }
  & .mobile-menu-header {
    border-color: var(--border-color);
  }
  & .mobile-nav {
    display: flex;
  }
  & .mobile-nav {
    flex-direction: column;
  }
  & .mobile-nav > :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));
  }
  & .mobile-nav {
    padding: 1rem;
  }
}

/* Mobile Tools Menu */

.mobile-tools-menu {
  position: fixed;
  inset: 0px;
  display: none;
  z-index: var(--z-dropdown);
  & .mobile-tools-backdrop {
    position: absolute;
  }
  & .mobile-tools-backdrop {
    inset: 0px;
  }
  & .mobile-tools-backdrop {
    background-color: rgb(0 0 0 / 0.5);
  }
  & .mobile-tools-backdrop {
    --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);
  }
  & .mobile-tools-panel {
    position: absolute;
  }
  & .mobile-tools-panel {
    bottom: 0px;
  }
  & .mobile-tools-panel {
    left: 0px;
  }
  & .mobile-tools-panel {
    right: 0px;
  }
  & .mobile-tools-panel {
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
  }
  & .mobile-tools-panel {
    background-color: var(--bg-surface);
  }
  & .mobile-tools-panel {
    padding: 1rem;
  }
  & .mobile-tools-panel {
    --tw-shadow: var(--shadow-xl);
    --tw-shadow-colored: var(--shadow-xl);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
  & .mobile-tools-panel {
    background-color: var(--bg-surface);
  }
  & .mobile-tools-grid {
    display: grid;
  }
  & .mobile-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  & .mobile-tools-grid {
    gap: 0.75rem;
  }
  & .mobile-tool-button {
    display: flex;
  }
  & .mobile-tool-button {
    flex-direction: column;
  }
  & .mobile-tool-button {
    align-items: center;
  }
  & .mobile-tool-button {
    border-radius: var(--radius-lg);
  }
  & .mobile-tool-button {
    background-color: var(--bg-subtle);
  }
  & .mobile-tool-button {
    padding: 1rem;
  }
  & .mobile-tool-button {
    background-color: var(--bg-subtle);
  }
  & .mobile-tool-button:hover {
    background-color: var(--bg-subtle-hover);
  }
  & .mobile-tool-button:hover {
    background-color: var(--bg-subtle-hover);
  }
}

/* Material Design Styles */

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }

  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Print Styles */

@media print {
  @page {
    size: letter portrait;

    margin: 0.5in;
  }

  body {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .app-header, .workflow-nav, .tool-sidebar,
    .sidebar, .navbar, .no-print {
    display: none;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  a {
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
    text-decoration-line: none;
  }

  .card, .table-container, .alert {
    -moz-column-break-inside: avoid;
         break-inside: avoid;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }

  .report-output, 
    .report-section-container,
    .report-item, 
    .principle-report-entry,
    .ai-analysis-report-item,
    .ai-analysis-output-container,
    .ai-formatted-content,
    .ai-section {
    visibility: visible;
    display: block;
    height: auto;
    overflow: visible;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
    opacity: 1;
  }

  #matrix-animation-overlay.report-output,#matrix-animation-overlay 
    .report-section-container,#matrix-animation-overlay
    .report-item,#matrix-animation-overlay 
    .principle-report-entry,#matrix-animation-overlay
    .ai-analysis-report-item,#matrix-animation-overlay
    .ai-analysis-output-container,#matrix-animation-overlay
    .ai-formatted-content,#matrix-animation-overlay
    .ai-section {
    opacity: 1;
    visibility: visible;
  }

  .report-output, 
    .report-section-container,
    .report-item, 
    .principle-report-entry,
    .ai-analysis-report-item,
    .ai-analysis-output-container,
    .ai-formatted-content,
    .ai-section {
    max-height: none !important;
  }

  h1, h2, h3, h4, h5, h6, p, li, span, div {
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
  }

  .button, button {
    visibility: visible;
    display: inline-block;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
    opacity: 1;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }

  #matrix-animation-overlay.button,#matrix-animation-overlay button {
    opacity: 1;
    visibility: visible;
  }

  @page {
    size: letter portrait;

    margin: 0.5in;

    --tw-bg-opacity: 1;

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

    --tw-text-opacity: 1;

    color: rgb(0 0 0 / var(--tw-text-opacity, 1));

    width: 100% !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;

    overflow: visible !important;

    -webkit-print-color-adjust: exact !important;

    print-color-adjust: exact !important;
  }

   .\!navbar {
    display: none;
  }

   {
    max-width: 100% !important;
    padding: 0 !important;
    text-decoration-line: none;
    -moz-column-break-inside: avoid !important;
         break-inside: avoid !important;
    border-width: 1px;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    visibility: visible;
    display: block;
    height: auto;
    overflow: visible;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
    opacity: 1;
  }

  #matrix-animation-overlay {
    opacity: 1;
    visibility: visible;
  }

   {
    max-height: none !important;
    visibility: visible;
    display: inline-block;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
    opacity: 1;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }

  #matrix-animation-overlay {
    opacity: 1;
    visibility: visible;
  }

  @page {
    size: letter portrait;

    margin: 0.5in;

    --tw-bg-opacity: 1;

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

    --tw-text-opacity: 1;

    color: rgb(0 0 0 / var(--tw-text-opacity, 1));

    width: 100% !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;

    overflow: visible !important;

    -webkit-print-color-adjust: exact !important;

    print-color-adjust: exact !important;

    display: none;
  }

  .\!container {
    max-width: 100% !important;
    padding: 0 !important;
  }

   {
    text-decoration-line: none;
    -moz-column-break-inside: avoid !important;
         break-inside: avoid !important;
    border-width: 1px;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    visibility: visible;
    display: block;
    height: auto;
    overflow: visible;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
    opacity: 1;
  }

  #matrix-animation-overlay {
    opacity: 1;
    visibility: visible;
  }

   {
    max-height: none !important;
    visibility: visible;
    display: inline-block;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
    opacity: 1;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }

  #matrix-animation-overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* Logo Items */

.logo-item {
  position: relative;
  display: flex;
  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));
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.7;
  transition-property: all;
  transition-timing-function: var(--transition-curve);
  transition-duration: var(--transition-normal);
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

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

.logo-item img {
  transition-property: transform;
  transition-timing-function: var(--transition-curve);
  transition-duration: var(--transition-normal);
  transition-duration: 300ms;
}

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

.logo-label {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  margin-top: 0.5rem;
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  white-space: nowrap;
  font-size: var(--text-xs);
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: var(--transition-curve);
  transition-duration: var(--transition-normal);
  transition-duration: 300ms;
  color: var(--text-tertiary);
}

.logo-item:hover .logo-label {
  opacity: 1;
}

.modal-dialog {
  width: 100%;
}

.modal-sm {
  max-width: 24rem;
}

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

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

.modal-xl {
  max-width: 36rem;
}

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

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

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

.modal-5xl {
  max-width: 64rem;
}

.modal-6xl {
  max-width: 72rem;
}

/* Styles for the static diagram modal in app.html (Build-Friendly) */

.diagram-modal-local-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  /* Direct replacement for @apply bg-black/50 */
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  /* Uses theme() for blur, with a fallback */
  z-index: 1;
  /* Local z-index */
}

.diagram-modal > .modal-dialog {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  z-index: 2;
  /* Local z-index */
}

.diagram-modal .modal-content {
  display: flex;
  height: 90vh;
  width: 100%;
  max-width: 72rem;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  --tw-shadow: var(--shadow-xl);
  --tw-shadow-colored: var(--shadow-xl);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  background-color: var(--bg-surface);
}

/* End Styles for static diagram modal */

/* Diagram Tool Sidebar Components (Build-Friendly) */

.tool-section {
  margin-bottom: 1.5rem;
  /* Safe */
}

.tool-section-title {
  /* Using theme() for text color if text-text-secondary is a theme color, else var() */
  margin-bottom: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

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

.tool-group {
  /* Safe */
}

.tool-btn {
  width: 100%;
  border-radius: var(--radius-lg);
  border-width: 1px;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  background-color: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--text-primary);
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out, transform 0.05s ease-in-out, box-shadow 0.15s ease-in-out;
}

.tool-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  /* Ensure text color consistency on hover if needed */
}

.tool-btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.5);
  /* Ring with 50% opacity for primary */
}

.tool-btn:active {
  background-color: var(--bg-subtle-hover);
  transform: scale(0.98);
}

.tool-btn.tool-btn-success {
  background-color: var(--success-color);
  border-color: transparent;
  /* Or var(--success-color) if a border is desired */
  color: var(--text-on-primary);
  /* Assuming white or light text on success buttons */
}

.tool-btn.tool-btn-success:hover {
  background-color: var(--success-light);
}

.tool-btn.tool-btn-success:focus {
  border-color: var(--success-light);
  /* Or transparent */
  box-shadow: 0 0 0 2px hsla(var(--success-hue), 75%, 45%, 0.5);
  /* Ring for success */
}

.tool-btn.tool-btn-danger {
  background-color: var(--danger-color);
  border-color: transparent;
  /* Or var(--danger-color) */
  color: var(--text-on-primary);
}

.tool-btn.tool-btn-danger:hover {
  background-color: var(--danger-light);
}

.tool-btn.tool-btn-danger:focus {
  border-color: var(--danger-light);
  /* Or transparent */
  box-shadow: 0 0 0 2px hsla(var(--danger-hue), 80%, 55%, 0.5);
  /* Ring for danger */
}

.tool-btn.tool-btn-secondary {
  background-color: var(--bg-subtle);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.tool-btn.tool-btn-secondary:hover {
  background-color: var(--bg-subtle-hover);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.tool-btn.tool-btn-secondary:focus {
  border-color: hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.7);
  /* Lighter primary for border */
  box-shadow: 0 0 0 2px hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.3);
  /* Dimmer ring for secondary */
}

.tool-btn[data-active="true"] {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-on-primary);
}

.tool-btn[data-active="true"]:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.tool-btn[data-active="true"]:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 2px hsla(var(--primary-hue), var(--primary-saturation), 45%, 0.5);
  /* Ring for active (primary-dark based) */
}

.tool-input,
  .tool-select,
  .tool-textarea {
  width: 100%;
  border-radius: var(--radius-lg);
  border-width: 1px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: var(--text-sm);
  background-color: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--text-primary);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.tool-input::-moz-placeholder, .tool-textarea::-moz-placeholder {
  color: var(--text-tertiary);
  opacity: 0.7;
}

.tool-input::placeholder, /* Explicit placeholder styling */
  .tool-textarea::placeholder {
  color: var(--text-tertiary);
  opacity: 0.7;
}

.tool-input:focus,
  .tool-select:focus,
  .tool-textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.5);
  /* Ring for primary */
}

.tool-color-picker {
  height: 2rem;
  width: 2.5rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  border-width: 1px;
  padding: 0.125rem;
  border-color: var(--border-color);
  -webkit-appearance: none;
  /* Normalize appearance */
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  /* Important for native color picker UI */
}

.tool-color-picker:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.5);
}

/* End Diagram Tool Sidebar Components */

.dark .principle-button .add-to-report-trigger {
  color: var(--primary-light, #fff) !important;
  background: rgba(30, 41, 59, 0.85);
  /* darken the background for contrast */
  border: 1px solid var(--primary-color);
}

.section-icon > i,
  .section-icon > svg,
  .section-icon > .icon {
  color: var(--text-on-primary, #fff) !important;
}

.bg-gradient-primary > i,
  .bg-gradient-primary > svg,
  .bg-gradient-primary > .icon {
  color: #fff !important;
}

.principle-button.selected .add-to-report-trigger {
  color: var(--success-color) !important;
  border: 1.5px solid var(--success-color);
  opacity: 1;
  background: rgba(34,197,94,0.12);
  /* subtle green highlight */
}

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

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

.visible {
  visibility: visible;
}

.invisible {
  visibility: hidden;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.inset-0 {
  inset: 0px;
}

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

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

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

.bottom-0 {
  bottom: 0px;
}

.bottom-6 {
  bottom: 1.5rem;
}

.left-0 {
  left: 0px;
}

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

.right-0 {
  right: 0px;
}

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

.right-2 {
  right: 0.5rem;
}

.right-6 {
  right: 1.5rem;
}

.top-0 {
  top: 0px;
}

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

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

.top-2 {
  top: 0.5rem;
}

.isolate {
  isolation: isolate;
}

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

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

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

.z-above {
  z-index: var(--z-above);
}

.z-below {
  z-index: var(--z-below);
}

.z-dropdown {
  z-index: var(--z-dropdown);
}

.z-header {
  z-index: var(--z-header);
}

.z-modal {
  z-index: var(--z-modal);
}

.z-modal-backdrop {
  z-index: var(--z-modal-backdrop);
}

.z-sidebar {
  z-index: var(--z-sidebar);
}

.z-toast {
  z-index: var(--z-toast);
}

.z-tooltip {
  z-index: var(--z-tooltip);
}

.z-top {
  z-index: var(--z-top);
}

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

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

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

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

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

.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.mb-0 {
  margin-bottom: 0px;
}

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

.mb-10 {
  margin-bottom: 2.5rem;
}

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

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

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

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

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

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

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

.mb-lg {
  margin-bottom: var(--space-lg);
}

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

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

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

.mr-3 {
  margin-right: 0.75rem;
}

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

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

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

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

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

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

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

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

.mt-auto {
  margin-top: auto;
}

.mt-lg {
  margin-top: var(--space-lg);
}

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

.contents {
  display: contents;
}

.hidden {
  display: none;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.h-0\.5 {
  height: 0.125rem;
}

.h-1 {
  height: 0.25rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-16 {
  height: 4rem;
}

.h-2 {
  height: 0.5rem;
}

.h-20 {
  height: 5rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-64 {
  height: 16rem;
}

.h-8 {
  height: 2rem;
}

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

.h-full {
  height: 100%;
}

.h-screen {
  height: 100vh;
}

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

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

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

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

.min-h-\[3em\] {
  min-height: 3em;
}

.w-0 {
  width: 0px;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-16 {
  width: 4rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-60 {
  width: 15rem;
}

.w-64 {
  width: 16rem;
}

.w-8 {
  width: 2rem;
}

.w-auto {
  width: auto;
}

.w-full {
  width: 100%;
}

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

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

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

.max-w-5xl {
  max-width: 64rem;
}

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

.max-w-none {
  max-width: none;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-xs {
  max-width: 20rem;
}

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

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

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

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

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

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

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }

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

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

.animate-gradient-flow {
  animation: gradient-flow 5s ease infinite;
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    filter: brightness(1);
  }

  50% {
    opacity: 0.85;
    filter: brightness(1.2);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 3s infinite;
}

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

  from {
    transform: rotate(0deg);
  }
}

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

.resize-none {
  resize: none;
}

.resize {
  resize: both;
}

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

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

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

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

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

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

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

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

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

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

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

.gap-1 {
  gap: 0.25rem;
}

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

.gap-12 {
  gap: 3rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.space-x-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
  margin-left: calc(0.25rem * 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-hidden {
  overflow: hidden;
}

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

.scroll-smooth {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

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

.rounded-r-lg {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.rounded-t-xl {
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.border {
  border-width: 1px;
}

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

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

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

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

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

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

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

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

.border-danger {
  border-color: var(--danger-color);
}

.border-info {
  border-color: var(--info-color);
}

.border-primary {
  border-color: var(--primary-color);
}

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

.bg-accent {
  background-color: var(--accent-color);
}

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

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

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

.bg-danger {
  background-color: var(--danger-color);
}

.bg-danger-surface {
  background-color: var(--danger-surface);
}

.bg-info {
  background-color: var(--info-color);
}

.bg-info-surface {
  background-color: var(--info-surface);
}

.bg-page {
  background-color: var(--bg-page);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-primary-surface {
  background-color: var(--primary-surface);
}

.bg-subtle {
  background-color: var(--bg-subtle);
}

.bg-subtle-hover {
  background-color: var(--bg-subtle-hover);
}

.bg-success {
  background-color: var(--success-color);
}

.bg-surface {
  background-color: var(--bg-surface);
}

.bg-surface-overlay {
  background-color: var(--bg-surface-overlay);
}

.bg-surface-raised {
  background-color: var(--bg-surface-raised);
}

.bg-warning {
  background-color: var(--warning-color);
}

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

.bg-gradient-accent {
  background-image: var(--gradient-accent);
}

.bg-gradient-primary {
  background-image: var(--gradient-primary);
}

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

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

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

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

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

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

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

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

.px-md {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

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

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

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

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

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

.py-20 {
  padding-top: 5rem;
  padding-bottom: 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;
}

.py-md {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

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

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

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

.pt-6 {
  padding-top: 1.5rem;
}

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

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

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

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

.font-sans {
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: var(--text-3xl);
}

.text-4xl {
  font-size: var(--text-4xl);
}

.text-5xl {
  font-size: var(--text-5xl);
}

.text-\[0\.6rem\] {
  font-size: 0.6rem;
}

.text-lg {
  font-size: var(--text-lg);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-xs {
  font-size: var(--text-xs);
}

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

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

.font-normal {
  font-weight: 400;
}

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

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.italic {
  font-style: italic;
}

.leading-none {
  line-height: var(--leading-none);
}

.tracking-tight {
  letter-spacing: -0.025em;
}

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

.text-accent {
  color: var(--accent-color);
}

.text-accent-color {
  color: var(--accent-color);
}

.text-danger {
  color: var(--danger-color);
}

.text-danger-color {
  color: var(--danger-color);
}

.text-info {
  color: var(--info-color);
}

.text-info-color {
  color: var(--info-color);
}

.text-on-accent {
  color: var(--text-on-accent);
}

.text-on-primary {
  color: var(--text-on-primary);
}

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

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

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

.text-success {
  color: var(--success-color);
}

.text-success-color {
  color: var(--success-color);
}

.text-tertiary {
  color: var(--text-tertiary);
}

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

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

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-90 {
  opacity: 0.9;
}

.shadow-lg {
  --tw-shadow: var(--shadow-lg);
  --tw-shadow-colored: var(--shadow-lg);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-primary {
  --tw-shadow: var(--shadow-primary);
  --tw-shadow-colored: var(--shadow-primary);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-sm {
  --tw-shadow: var(--shadow-sm);
  --tw-shadow-colored: var(--shadow-sm);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-xl {
  --tw-shadow: var(--shadow-xl);
  --tw-shadow-colored: var(--shadow-xl);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-primary {
  --tw-shadow-color: var(--primary-color);
  --tw-shadow: var(--tw-shadow-colored);
}

.invert {
  --tw-invert: invert(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);
}

.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-lg {
  --tw-backdrop-blur: blur(16px);
  -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);
}

.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: var(--transition-curve);
  transition-duration: var(--transition-normal);
}

.transition-all {
  transition-property: all;
  transition-timing-function: var(--transition-curve);
  transition-duration: var(--transition-normal);
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: var(--transition-curve);
  transition-duration: var(--transition-normal);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: var(--transition-curve);
  transition-duration: var(--transition-normal);
}

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

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

.duration-fast {
  transition-duration: var(--transition-fast);
}

/* Glass Effect */

/* Gradient Text */

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-primary {
  background-image: var(--gradient-primary);
}

.text-gradient-accent {
  background-image: var(--gradient-accent);
}

/* Shadow Utilities */

/* Animation Utilities */

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s infinite;
}

.animate-morph {
  animation: morph-border 10s ease-in-out infinite;
}

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

/* Focus Visible Only */

/* Fixed Aspect Ratio */

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Custom color classes to match CSS variables */

.bg-page {
  background-color: var(--bg-page);
}

.bg-surface {
  background-color: var(--bg-surface);
}

.bg-surface-raised {
  background-color: var(--bg-surface-raised);
}

.bg-surface-overlay {
  background-color: var(--bg-surface-overlay);
}

.bg-subtle {
  background-color: var(--bg-subtle);
}

.bg-subtle-hover {
  background-color: var(--bg-subtle-hover);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-primary-surface {
  background-color: var(--primary-surface);
}

.bg-accent {
  background-color: var(--accent-color);
}

.bg-success {
  background-color: var(--success-color);
}

.bg-warning {
  background-color: var(--warning-color);
}

.bg-danger {
  background-color: var(--danger-color);
}

.bg-danger-surface {
  background-color: var(--danger-surface);
}

.bg-info {
  background-color: var(--info-color);
}

.bg-info-surface {
  background-color: var(--info-surface);
}

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

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

.text-tertiary {
  color: var(--text-tertiary);
}

.text-on-primary {
  color: var(--text-on-primary);
}

.text-on-accent {
  color: var(--text-on-accent);
}

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

.text-accent-color {
  color: var(--accent-color);
}

.text-success-color {
  color: var(--success-color);
}

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

.text-danger-color {
  color: var(--danger-color);
}

.text-info-color {
  color: var(--info-color);
}

.border-border {
  border-color: var(--border-color);
}

/* Z-index utilities */

.z-below {
  z-index: var(--z-below);
}

.z-above {
  z-index: var(--z-above);
}

.z-header {
  z-index: var(--z-header);
}

.z-dropdown {
  z-index: var(--z-dropdown);
}

.z-sidebar {
  z-index: var(--z-sidebar);
}

.z-modal-backdrop {
  z-index: var(--z-modal-backdrop);
}

.z-modal {
  z-index: var(--z-modal);
}

.z-tooltip {
  z-index: var(--z-tooltip);
}

.z-toast {
  z-index: var(--z-toast);
}

.z-top {
  z-index: var(--z-top);
}

/* Responsive classes for display */

/* Flash animation class */

.flash {
  animation: points-flash 0.5s ease-in-out;
}

/* Confetti animation class */

.confetti-active {
  visibility: visible !important;
}

/* Modern Glass Effect Background */

.glass-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

.dark .glass-bg {
  background: linear-gradient(
        135deg,
        rgba(17, 24, 39, 0.7),
        rgba(17, 24, 39, 0.5)
    );
}

/* ==========================================================================
   Modern Animation Keyframes
   ========================================================================== */

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    filter: brightness(1);
  }

  50% {
    opacity: 0.85;
    filter: brightness(1.2);
  }
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }

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

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

@keyframes shimmer {
  0% {
    -webkit-mask-position: -200% 0;
            mask-position: -200% 0;
  }

  100% {
    -webkit-mask-position: 300% 0;
            mask-position: 300% 0;
  }
}

@keyframes morph-border {
  0%, 100% {
    border-radius: var(--radius-lg) var(--radius-md) var(--radius-xl) var(--radius-sm);
  }

  33% {
    border-radius: var(--radius-sm) var(--radius-xl) var(--radius-md) var(--radius-lg);
  }

  66% {
    border-radius: var(--radius-xl) var(--radius-sm) var(--radius-lg) var(--radius-md);
  }
}

@keyframes points-flash {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
    color: var(--success-color);
  }
}

/* ==========================================================================
   Base Layer - Design Tokens and Global Styles
   ========================================================================== */

/* ==========================================================================
   Components Layer - Modern UI Elements
   ========================================================================== */

/* ==========================================================================
   Utilities Layer - Custom Extensions
   ========================================================================== */

/* Matrix Animation Overlay Styles */

#matrix-animation-overlay {
  position: fixed;
  inset: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(0 0 0 / 0.7);
  --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);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#matrix-animation-overlay.visible {
  opacity: 1;
  visibility: visible;
}

#matrix-animation-overlay .card {
  /* Assuming .card and .glass-effect are defined elsewhere and provide base styling */
  /* .animate-float might be defined as a keyframe animation */
}

#matrix-grid-visualization {
  display: grid;
  gap: 0.125rem;
  /* Small gap between cells */
  /* JS will set grid-template-columns */
}

.matrix-cell {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  aspect-ratio: 1 / 1;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-tertiary);
  transition: background-color 0.2s ease-in-out;
}

.matrix-cell span {
  opacity: 0.5;
}

.matrix-cell.highlight-search {
  background-color: hsla(var(--primary-hue), var(--primary-saturation), 60%, 0.3);
  border-color: hsla(var(--primary-hue), var(--primary-saturation), 60%, 0.5);
}

.matrix-cell.highlight-found {
  background-color: hsla(var(--primary-hue), var(--primary-saturation), 50%, 0.7);
  border-color: hsla(var(--primary-hue), var(--primary-saturation), 50%, 1);
  color: var(--text-on-primary-accent);
  /* Assuming --text-on-primary-accent is defined or use a fallback */
}

.matrix-cell.highlight-found span {
  font-weight: 700;
  opacity: 1;
}

.animate-float {
  animation: floatAnimation 3s ease-in-out infinite alternate;
}

@keyframes floatAnimation {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* End Matrix Animation Styles */

/* Scrollbar Styles */

/* ... existing code ... */

/* New utility for global modal backdrop styling */

.global-modal-backdrop-style {
  background-color: rgb(0 0 0 / 0.5);
  --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);
}

/* Responsive Visibility Utilities */

.hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hidden-mobile {
    display: block;
  }
}

.confetti {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent-color, #bb33ff);
  opacity: 0.85;
  pointer-events: none;
  z-index: 9999;
  animation: confetti-physics 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

@keyframes confetti-physics {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--confetti-x, 0), var(--confetti-y, 0)) rotate(var(--confetti-rotate, 0deg)) scale(0.8);
  }
}

/* --- AI Analysis SVG Diagram Styles --- */

.ai-diagram-svg {
  width: 100%;
  max-width: 900px;
  height: auto;
  max-height: 500px;
  display: block;
  margin: 0 auto 1.5rem auto;
  background: none;
  overflow: visible;
  padding: 0.5rem 0;
}

.ai-diagram-node-group rect {
  stroke: #fff;
  stroke-width: 3px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
  transition: filter 0.2s, opacity 0.2s;
  cursor: pointer;
  rx: 12px;
}

.ai-diagram-node-group:hover rect {
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.18));
  opacity: 1;
}

.ai-diagram-node-group text, .ai-diagram-node-group foreignObject {
  font-family: 'Inter', 'Plus Jakarta Sans', Arial, sans-serif;
  pointer-events: none;
}

.ai-diagram-labels {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary, #444);
}

.xml-code {
  background: var(--bg-subtle, #f8f8fa);
  color: var(--text-primary, #222);
  border-radius: 6px;
  padding: 1em;
  font-size: 0.98em;
  line-height: 1.5;
  -webkit-user-select: all;
     -moz-user-select: all;
          user-select: all;
  overflow-x: auto;
  margin: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.copy-xml-btn {
  font-size: 0.98em;
  padding: 0.3em 0.9em;
  border-radius: 5px;
  background: var(--accent-color, #bb33ff);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}

.copy-xml-btn:hover {
  background: var(--accent-color-dark, #8e1bbf);
}

.copy-xml-status {
  font-size: 0.95em;
  color: var(--text-secondary, #888);
}

@media (max-width: 900px) {
  .ai-diagram-svg {
    max-width: 98vw;
    min-width: 0;
    max-height: 350px;
  }
}

/* Remove legacy static diagram styles that are not used by SVG renderer */

.ai-diagram-visualization-wrapper, .ai-diagram-nodes-container, .node-type-group, .ai-diagram-node, .ai-diagram-type-badge, .ai-diagram-legend, .ai-diagram-connection {
  display: none !important;
}

.code-block {
  background: var(--bg-subtle, #f8f8fa);
  color: var(--text-primary, #222);
  border-radius: 6px;
  padding: 1em;
  font-size: 0.98em;
  line-height: 1.5;
  -webkit-user-select: all;
     -moz-user-select: all;
          user-select: all;
  overflow-x: auto;
  margin: 1.2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  max-width: calc(100vw - 64px);
  word-break: break-all;
  white-space: pre-wrap;
}

.code-block code {
  background: none;
  color: inherit;
  font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', 'Consolas', monospace;
  font-size: 1em;
  white-space: pre-wrap;
  word-break: break-all;
  display: block;
}

@media (max-width: 600px) {
  .code-block {
    font-size: 0.92em;
    max-width: 98vw;
    padding: 0.7em;
  }
}

.ai-diagram-popup {
  background: #fff;
  color: #222;
  font-size: 1em;
  padding: 0.85em 1.1em;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.08);
  max-width: 90vw;
  min-width: 180px;
  max-height: 40vh;
  overflow-y: auto;
  word-break: break-word;
  z-index: 99999;
  pointer-events: auto;
  text-align: left;
  line-height: 1.5;
  border: 1px solid #e5e7eb;
  transition: opacity 0.18s;
}

@media (max-width: 600px) {
  .ai-diagram-popup {
    font-size: 0.98em;
    min-width: 120px;
    max-width: 98vw;
    padding: 0.7em 0.6em;
  }
}

.ai-diagram-node-group {
  pointer-events: all !important;
}

/* --- Scratchpad --- */

#scratchpad-sidebar {
  position: fixed;
  top: 0px;
  right: 0px;
  z-index: 10000;
  display: flex;
  height: 100%;
  width: 20rem;
  flex-direction: column;
  border-left-width: 1px;
  --tw-shadow: var(--shadow-xl);
  --tw-shadow-colored: var(--shadow-xl);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  background-color: var(--bg-surface);
  border-color: var(--border-color);
}

/* --- Diagram Tool --- */

#diagram-tool-modal {
}

/* --- Overlay --- */

#app-overlay {
  position: fixed;
  inset: 0px;
  z-index: 20;
  background-color: rgb(0 0 0 / 0.3);
  --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);
}

/* --- Main Content --- */

.content-wrapper {
}

/* --- Report Section --- */

.report-output {
}

/* Force light background for diagrams inside the report for visibility, even in dark mode */

.report-output .diagram-canvas,
.report-output .diagram-thumbnail img {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
}

/* --- Principles --- */

.principle-item.active {
}

/* Force light background for AI analysis diagram in modal */

#ai-diagram-thumbnail-container,
#ai-diagram-thumbnail-container img,
.ai-diagram-svg {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
}

.dark\:prose-invert:is(.dark *) {
  --tw-prose-body: var(--tw-prose-invert-body);
  --tw-prose-headings: var(--tw-prose-invert-headings);
  --tw-prose-lead: var(--tw-prose-invert-lead);
  --tw-prose-links: var(--tw-prose-invert-links);
  --tw-prose-bold: var(--tw-prose-invert-bold);
  --tw-prose-counters: var(--tw-prose-invert-counters);
  --tw-prose-bullets: var(--tw-prose-invert-bullets);
  --tw-prose-hr: var(--tw-prose-invert-hr);
  --tw-prose-quotes: var(--tw-prose-invert-quotes);
  --tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);
  --tw-prose-captions: var(--tw-prose-invert-captions);
  --tw-prose-kbd: var(--tw-prose-invert-kbd);
  --tw-prose-kbd-shadows: var(--tw-prose-invert-kbd-shadows);
  --tw-prose-code: var(--tw-prose-invert-code);
  --tw-prose-pre-code: var(--tw-prose-invert-pre-code);
  --tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);
  --tw-prose-th-borders: var(--tw-prose-invert-th-borders);
  --tw-prose-td-borders: var(--tw-prose-invert-td-borders);
}

.hover\:bg-primary:hover {
  background-color: var(--primary-color);
}

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

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

.hover\:bg-primary:hover {
  background-color: var(--primary-color);
}

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

.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.focus\:absolute:focus {
  position: absolute;
}

.focus\:z-top:focus {
  z-index: var(--z-top);
}

.focus\:border-primary:focus {
  border-color: var(--primary-color);
}

.focus\:bg-primary:focus {
  background-color: var(--primary-color);
}

.focus\:p-3:focus {
  padding: 0.75rem;
}

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

.focus\:ring-0:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(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);
}

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

.focus\:ring-primary:focus {
  --tw-ring-color: var(--primary-color);
}

.focus\:bg-primary:focus {
  background-color: var(--primary-color);
}

.focus\:z-top:focus {
  z-index: var(--z-top);
}

.dark\:inline-block:is(.dark *) {
  display: inline-block;
}

.dark\:hidden:is(.dark *) {
  display: none;
}

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

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

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

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

@media (min-width: 768px) {
  .md\:col-span-1 {
    grid-column: span 1 / span 1;
  }

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

  .md\:block {
    display: block;
  }

  .md\:flex {
    display: flex;
  }

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

  .md\:hidden {
    display: none;
  }

  .md\:max-h-full {
    max-height: 100%;
  }

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

  .md\:w-72 {
    width: 18rem;
  }

  .md\:w-80 {
    width: 20rem;
  }

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

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

  .md\:scale-105 {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    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));
  }

  .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\:flex-row {
    flex-direction: row;
  }

  .md\:gap-12 {
    gap: 3rem;
  }

  .md\:border-b-0 {
    border-bottom-width: 0px;
  }

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

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

  .md\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

@media (min-width: 1024px) {
  .lg\:w-96 {
    width: 24rem;
  }

  .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\:gap-16 {
    gap: 4rem;
  }
}
