/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"Inter","arguments":[{"subsets":["latin"]}],"variableName":"inter"} ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Inter_Fallback_f367f3';src: local("Arial");ascent-override: 90.49%;descent-override: 22.56%;line-gap-override: 0.00%;size-adjust: 107.06%
}.__className_f367f3 {font-family: '__Inter_f367f3', '__Inter_Fallback_f367f3';font-style: normal
}

/*!***************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/core/variables.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   SYSTEM FOUNDATION
   Base variables (theme-independent)
   =========================================== */

:root {
  /* Z-index system - from lowest to highest */
  --z-background: -10;
  --z-texture: -9;
  --z-content: 1;
  --z-header: 3200;
  --z-modal: 2000;
  --z-timeline: 2100;
  --z-tooltip: 8000;
  --z-popup: 9999;

  /* Component dimensions */
  --floating-header-height: 60px;
  --timeline-height: 120px;
  --workspace-footer-height: calc(var(--timeline-height) + var(--spacing-lg) * 2);

  /* Border radius system */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;

  /* Transitions & Animations */
  --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.5s ease;

  --motion-duration-fast: 150ms;
  --motion-duration-base: 200ms;
  --motion-duration-slow: 300ms;
  --motion-duration-xslow: 500ms;

  --motion-ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --motion-ease-in: cubic-bezier(0.42, 0, 1, 1);
  --motion-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-ease-linear: linear;

  --motion-scale-small: 0.96;
  --motion-scale-medium: 0.98;

  /* Spacing system */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;

  /* Shadow system */
  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.2);

  /* Texture system */
  --texture-density: 1px;
  --texture-scale: 20px;
  --texture-opacity: 0.3;
  
  /* Blur effects */
  --blur-primary: blur(10px);
  --blur-secondary: blur(10px);
  --blur-modal: blur(15px);
}

/*!************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/core/themes.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   CLIPLIX THEME SYSTEM
   Color schemes for different themes
   =========================================== */

/* ===========================================
   GRAY THEME (Default)
   Professional dark glassmorphism
   =========================================== */
[data-theme="gray"],
:root {
  /* Primary Colors */
  --bg-primary: #151515;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Accent System */
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-muted: rgba(59, 130, 246, 0.3);
  
  /* Glass Surfaces */
  --surface-primary: rgba(255, 255, 255, 0.1);
  --surface-secondary: rgba(255, 255, 255, 0.1);
  --surface-secondary-strong: rgba(0, 0, 0, 0.4);
  --surface-modal: rgba(255, 255, 255, 0.4);
  --surface-border: rgba(255, 255, 255, 0.15);
  
  /* Texture Color */
  --texture-color: rgba(255, 255, 255, 0.08);
  
  /* Semantic Colors */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
}

/* ===========================================
   LIGHT THEME (Future)
   Clean bright glassmorphism
   =========================================== */
[data-theme="light"] {
  /* Implementation planned for future release */
  --bg-primary: #ffffff;
  --text-primary: #1a1a1a;
  --surface-secondary-strong: rgba(255, 255, 255, 0.9);
  /* More variables will be added */
}

/* ===========================================
   DARK THEME (Future)
   Deep dark glassmorphism
   =========================================== */
[data-theme="dark"] {
  /* Implementation planned for future release */
  --bg-primary: #000000;
  --text-primary: #ffffff;
  --surface-secondary-strong: rgba(0, 0, 0, 0.65);
  /* More variables will be added */
}

/*!**************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/core/textures.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   TEXTURE SYSTEM
   6 Beautiful Background Patterns
   =========================================== */

/* Base background for all cases */
html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: var(--z-background);
  background: var(--bg-primary);
}

/* Texture overlay when texture is enabled */
html[data-texture]:not([data-texture="none"])::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: var(--z-texture);
  opacity: var(--texture-opacity);
}

/* Dots texture */
html[data-texture="dots"]::after {
  background-image: radial-gradient(
    circle at center,
    var(--texture-color) var(--texture-density),
    transparent calc(var(--texture-density) + 1px)
  );
  background-size: var(--texture-scale) var(--texture-scale);
}

/* Grid texture */
html[data-texture="grid"]::after {
  background-image: 
    linear-gradient(var(--texture-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--texture-color) 1px, transparent 1px);
  background-size: var(--texture-scale) var(--texture-scale);
}

/* Lines texture */
html[data-texture="lines"]::after {
  background-image: linear-gradient(
    45deg,
    var(--texture-color) 1px,
    transparent 1px,
    transparent calc(var(--texture-scale) - 1px),
    var(--texture-color) var(--texture-scale)
  );
  background-size: calc(var(--texture-scale) * 1.414) calc(var(--texture-scale) * 1.414);
}

/* Hexagon texture */
html[data-texture="hexagon"]::after {
  background-image: 
    radial-gradient(circle at 25% 25%, var(--texture-color) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, var(--texture-color) 2px, transparent 2px);
  background-size: var(--texture-scale) var(--texture-scale);
  background-position: 0 0, calc(var(--texture-scale) / 2) calc(var(--texture-scale) / 2);
}

/* Noise texture */
html[data-texture="noise"]::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/core/glassmorphism.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   GLASSMORPHISM LAYER SYSTEM
   4-Layer Visual Hierarchy
   =========================================== */

/* Layer 0 - Foundation background with textures (no blur) */
.layer-foundation {
  background: var(--bg-primary);
  /* No backdrop-filter - this is the base with textures */
}

/* Layer 1 - Main UI elements (sidebar, header, main cards) */
.layer-primary {
  background: var(--surface-primary);
  backdrop-filter: var(--blur-primary);
  border: 1px solid var(--surface-border);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Layer 2 - Dropdowns, tooltips, small overlays */
.layer-secondary {
  background: var(--surface-secondary);
  backdrop-filter: var(--blur-secondary);
  border: 1px solid var(--surface-border);
}

/* Layer 3 - Modals, notifications, full-screen overlays */
.layer-modal {
  background: var(--surface-modal);
  backdrop-filter: var(--blur-modal);
  border: 1px solid var(--surface-border);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glass-panel-strong {
  background: var(--surface-secondary-strong);
  backdrop-filter: var(--blur-modal);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-strong);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur()) {
  .layer-primary,
  .layer-secondary,
  .layer-modal,
  .glass-panel-strong {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--surface-border);
  }
}

/*!****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/core/animations.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   MOTION SYSTEM
   Shared keyframes, timings, and utility classes
   =========================================== */

/* --- Keyframes ----------------------------------------------------------- */

@keyframes motion-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes motion-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes motion-scale-in {
  from {
    opacity: 0;
    transform: scale(var(--motion-scale-small));
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes motion-scale-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(var(--motion-scale-small));
  }
}

@keyframes motion-slide-up-in {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes motion-slide-up-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
}

@keyframes motion-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.98);
  }
}

@keyframes motion-pulse-soft {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

@keyframes motion-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes motion-dots {
  0%, 80%, 100% {
    transform: scale(0.75);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Utility Classes ----------------------------------------------------- */

.motion-fade-enter {
  animation: motion-fade-in var(--motion-duration-base) var(--motion-ease-out) forwards;
}

.motion-fade-exit {
  animation: motion-fade-out var(--motion-duration-fast) var(--motion-ease-in) forwards;
}

.motion-scale-enter {
  animation: motion-scale-in var(--motion-duration-base) var(--motion-ease-out) forwards;
  transform-origin: center;
}

.motion-scale-exit {
  animation: motion-scale-out var(--motion-duration-fast) var(--motion-ease-in) forwards;
  transform-origin: center;
}

.motion-slide-up-enter {
  animation: motion-slide-up-in var(--motion-duration-base) var(--motion-ease-out) forwards;
}

.motion-slide-up-exit {
  animation: motion-slide-up-out var(--motion-duration-fast) var(--motion-ease-in) forwards;
}

.motion-spin {
  animation: motion-spin var(--motion-duration-base) var(--motion-ease-linear) infinite;
}

.motion-pulse {
  animation: motion-pulse var(--motion-duration-slow) var(--motion-ease-in-out) infinite;
}

.motion-pulse-soft {
  animation: motion-pulse-soft var(--motion-duration-slow) var(--motion-ease-in-out) infinite;
}

.motion-dots {
  animation: motion-dots 1.4s var(--motion-ease-in-out) infinite both;
}

.motion-modal-overlay-enter {
  animation: motion-fade-in var(--motion-duration-base) var(--motion-ease-out) forwards;
}

.motion-modal-overlay-exit {
  animation: motion-fade-out var(--motion-duration-fast) var(--motion-ease-in) forwards;
}

.motion-modal-content-enter {
  animation: motion-scale-in var(--motion-duration-base) var(--motion-ease-out) forwards;
}

.motion-modal-content-exit {
  animation: motion-scale-out var(--motion-duration-fast) var(--motion-ease-in) forwards;
}

/* --- Reduced Motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .motion-fade-enter,
  .motion-fade-exit,
  .motion-scale-enter,
  .motion-scale-exit,
  .motion-slide-up-enter,
  .motion-slide-up-exit,
  .motion-spin,
  .motion-pulse,
  .motion-pulse-soft,
  .motion-dots,
  .motion-modal-overlay-enter,
  .motion-modal-overlay-exit,
  .motion-modal-content-enter,
  .motion-modal-content-exit {
    animation: none !important;
  }
}

/*!****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/core/typography.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   GLOBAL TEXT STYLES & SEMANTIC CLASSES
   Typography and text utility classes
   =========================================== */

/* Base body styles */
body {
  background: transparent;
  color: var(--text-primary);
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

/* Paragraph styles */
p {
  color: var(--text-secondary);
}

/* Text utility classes */
.text-primary {
  color: var(--text-primary);
}

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

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

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

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

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

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

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

/* Background utilities */
.bg-primary {
  background: var(--bg-primary);
}
/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/layout.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   APP LAYOUT SYSTEM
   Floating Header Architecture
   =========================================== */

/* Layout shell */
.app-shell {
  --floating-header-offset: calc(var(--floating-header-height) + var(--spacing-lg));
  --layout-footer-offset: var(--spacing-lg);

  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition-default);
}

.app-shell[data-has-workspace-footer='true'] {
  --layout-footer-offset: 0;
}

.app-content {
  flex: 1;
  padding-top: var(--floating-header-offset);
  padding-bottom: var(--layout-footer-offset);
  transition: var(--transition-default);
}

.app-shell[data-has-workspace-footer='true'] .app-content {
  padding-bottom: 0;
  min-height: calc(100vh - var(--floating-header-offset));
  overflow: hidden;
}

.app-shell[data-page-scroll='true'] .app-content {
  min-height: auto;
  overflow: visible;
  padding-bottom: var(--spacing-lg);
}

.app-shell[data-page-scroll='true'] {
  height: 100%;
  overflow-y: auto;
}

/* Floating header */
.floating-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--floating-header-height);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 var(--spacing-lg);
  gap: var(--spacing-sm);
  z-index: var(--z-header);
  pointer-events: none;
}

.floating-header__tile {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: 100%;
  padding: 0 var(--spacing-sm);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  pointer-events: auto;
  box-shadow: var(--shadow-subtle);
  min-width: 0;
}

.floating-header__tile.layer-secondary {
  background: var(--surface-secondary);
}

.floating-header__tile--nav {
  flex: 0 0 auto;
  padding: 0;
  box-shadow: none;
}

.floating-header__tile--title {
  flex: 0 0 auto;
}

.floating-header__tile--filters {
  flex: 0 1 auto;
  overflow: hidden;
  min-width: 0;
}

.floating-header__tile--summary,
.floating-header__tile--extra,
.floating-header__tile--cost {
  flex: 0 0 auto;
}

.floating-header__tile--games {
  padding: 0;
  box-shadow: none;
  background: transparent;
  align-items: center;
}
.floating-header__tile--cost {
  padding: 0;
  box-shadow: none;
}

.floating-header__filters-scroll {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.floating-header__filters-scroll::-webkit-scrollbar {
  display: none;
}

/* Navigation block */
.navigation-block {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: 100%;
  padding: 0 var(--spacing-sm);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  box-shadow: var(--shadow-subtle);
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--border-radius-md);
  transition: var(--transition-fast);
}

.nav-button:hover {
  background: var(--accent-muted);
  color: var(--text-primary);
  transform: scale(1.05);
}

.nav-button-active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-subtle);
}

/* Cost info block */
.cost-info-wrapper {
  position: relative;
  height: 100%;
}

.cost-info-block {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: 100%;
  padding: 0 var(--spacing-sm);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  font-family: 'JetBrains Mono', monospace;
  min-width: 220px;
  box-shadow: var(--shadow-subtle);
}

.cost-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: default;
}

.cost-item-project { color: var(--success); }
.cost-item-block { color: var(--info); }

.cost-history-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.cost-history-button:hover,
.cost-history-button[aria-pressed="true"] {
  color: var(--text-primary);
  background: var(--surface-secondary);
}

.cost-item-loading {
  font-size: 1.2rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .navigation-block {
    padding: 0 var(--spacing-xs);
  }
}

@media (max-width: 768px) {
  .app-shell {
    --floating-header-offset: calc(var(--floating-header-height) * 2 + var(--spacing-lg));
  }

  .floating-header {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .floating-header__tile {
    width: 100%;
  }

  .navigation-block,
  .cost-info-block {
    height: auto;
    border-radius: var(--border-radius-lg);
    justify-content: center;
  }

  .cost-info-block {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
.cost-info-block {
  display: none;
}
}

.page-header-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 2px;
}

.page-header-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-header-subtitle {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cost-history-panel {
  position: absolute;
  top: calc(100% + var(--spacing-xs));
  right: 0;
  width: 360px;
  max-height: 360px;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease-out;
  pointer-events: none;
  z-index: var(--z-tooltip);
}

.cost-history-panel--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cost-history-panel--closing {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cost-history-panel {
    transition: none;
    transform: translateY(-8px);
  }

  .cost-history-panel--open {
    transform: translateY(0);
  }
}

.cost-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--border-primary);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.cost-history-open {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.cost-history-open:hover {
  color: var(--accent-hover);
}

.cost-history-filter {
  display: flex;
  gap: 4px;
}

.cost-history-filter button {
  padding: 2px 10px;
  border-radius: var(--border-radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cost-history-filter button.active {
  background: var(--surface-secondary);
  border-color: var(--border-primary);
  color: var(--text-primary);
}

.cost-history-filter button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cost-history-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cost-history-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.cost-history-item:hover {
  background: var(--surface-secondary);
  border-color: var(--border-primary);
  color: var(--text-primary);
}

.cost-history-item:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

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

.cost-history-amount {
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.cost-history-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.cost-history-item-title {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
}

.cost-history-item-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-history-meta {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.cost-history-empty,
.cost-history-loading {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.cost-history-sentinel {
  height: 8px;
}

/*!**********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/navigation.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   NAVIGATION SYSTEM
   Enhanced Interactive Navigation
   =========================================== */

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.875rem;
  border-radius: var(--border-radius-lg);
  transition: var(--transition-default);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.nav-item:hover {
  background: var(--surface-primary);
  border-color: var(--surface-border);
  transform: translateX(4px);
  box-shadow: var(--shadow-subtle);
}

.nav-item.active {
  background: var(--surface-secondary);
  border-color: var(--accent-muted);
  color: var(--text-primary);
  box-shadow: var(--shadow-medium);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent-primary);
  border-radius: 0 2px 2px 0;
}

/* Collapsed Navigation */
.nav-item.collapsed {
  justify-content: center;
  padding: 0.875rem 0.5rem;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.sidebar-toggle:hover {
  background: var(--surface-primary);
  border-color: var(--accent-muted);
  color: var(--accent-primary);
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/buttons.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   INTERACTIVE ELEMENTS
   Buttons, inputs, and controls
   =========================================== */

/* Primary Button */
.btn-primary {
  background: var(--surface-primary);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  backdrop-filter: var(--blur-primary);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  background: var(--surface-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Accent Button */
.btn-accent {
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: white;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-subtle);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

/* Selected State */
.btn-selected {
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-selected:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/forms.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   FORM ELEMENTS
   Inputs and form controls
   =========================================== */

/* Form Inputs */
.input-primary {
  background: var(--surface-secondary);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  backdrop-filter: var(--blur-secondary);
  transition: var(--transition-fast);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xs) var(--spacing-sm);
}

.input-primary:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-muted);
}

.input-primary::placeholder {
  color: var(--text-muted);
}
/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/tooltips.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   TOOLTIP SYSTEM
   Sidebar tooltips and general tooltip styles
   =========================================== */

/* Sidebar Tooltip */
.sidebar-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  white-space: nowrap;
  z-index: var(--z-tooltip);
  opacity: 0;
  animation: tooltipFadeIn 0.2s ease-out forwards;
  pointer-events: none;
  /* Styles inherited from layer-modal */
}

/* Universal tooltip animations */
@keyframes tooltipFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Tooltip arrow */
.sidebar-tooltip::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 6px 6px 0;
  border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/spinner.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   UNIVERSAL SPINNER COMPONENT
   Reusable loading indicator
   =========================================== */

.spinner {
  border-radius: 50%;
  border-style: solid;
  border-color: var(--surface-border);
  animation: spin 1s linear infinite;
}

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

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

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

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

/* Accessibility - respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
/*!*********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/scrollbar.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   SCROLLBAR COMPONENT STYLES
   Universal scrollbar styling for all elements
   =========================================== */

/* Modern CSS standards approach (Firefox, Chrome 121+) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-border) transparent;
}

/* WebKit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 6px;
}

*::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: 6px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--accent-muted);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}
/*!*********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/ai-studio.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   AI STUDIO SPECIFIC STYLES
   Minimal additions to existing design system
   =========================================== */


/* Main layout grid for input/result panels - 2:1 proportions */
.ai-studio-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-lg);
  height: 100%;
  overflow: hidden;
}

/* Make panels take full height with independent scroll */
.ai-studio-container > .layer-primary {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-lg);
  overflow-y: auto;
  overflow-x: hidden;
}

.ai-studio-container > .layer-primary > .space-y-6 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Tab content container */
.ai-tab-content {
  flex: 1;
  overflow: hidden;
  /* Height calculation removed - inherit from parent container */
}

/* Upload zone styling */
.ai-upload-zone {
  border: 2px dashed var(--surface-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--surface-secondary);
  backdrop-filter: var(--blur-secondary);
}

.ai-upload-zone:hover {
  border-color: var(--accent-primary);
  background: var(--accent-muted);
}

.ai-upload-zone-active {
  border-color: var(--accent-primary);
  background: var(--accent-muted);
  border-style: solid;
}

/* Result image container */
.ai-result-image {
  flex: 1; /* Занимает всё доступное пространство */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Progress bar */
.ai-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--surface-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.ai-progress-fill {
  height: 100%;
  background: var(--accent-primary);
  transition: width var(--transition-default);
}

/* Timeline workspace uses reserved header/footer offsets */
.timeline-workspace {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: 0 var(--spacing-lg);
  height: calc(100vh - var(--floating-header-offset));
  overflow: hidden;
}

/* Main content area для панелей 2:1 */
.timeline-main-content {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;  /* 2:1 соотношение */
  gap: var(--spacing-lg);
  min-height: 0;
}

/* AI Studio workspace layout - DEPRECATED (legacy tabs system) */
.ai-studio-workspace {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  height: 100%; /* Use parent height instead of viewport calculation */
  padding: var(--spacing-lg) var(--spacing-lg) 0 var(--spacing-lg);
}

/* Timeline panel anchors near the bottom via sticky footer */
.timeline-footer {
  position: sticky;
  bottom: 0;
  z-index: var(--z-timeline);
  margin-top: auto;
  width: 100%;
}

.ai-timeline-panel {
  height: var(--timeline-height);
  background: var(--surface-primary);
  backdrop-filter: var(--blur-primary);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--spacing-md);
  transition: var(--transition-default);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.timeline-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
}

.timeline-controls__group {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--border-radius-md);
}

.timeline-controls__group--zoom {
  order: 1;
}

.timeline-controls__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

.timeline-controls__button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.timeline-controls__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.timeline-controls__label {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 44px;
  text-align: center;
  color: var(--text-secondary);
}

.timeline-controls__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
}

.timeline-controls__toggle--compact {
  padding: 4px 8px;
  font-size: 0.75rem;
  order: 2;
}

.timeline-controls__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.timeline-controls__toggle.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.timeline-panel-scroll {
  position: relative;
}

.timeline-scroll-container {
  overflow-x: auto;
}

.timeline-panel-track {
  --timeline-zoom: 1;
  display: flex;
  align-items: stretch;
  gap: calc(var(--spacing-md) * max(var(--timeline-zoom, 1), 0.75));
  padding: var(--spacing-sm) 0;
  scroll-snap-type: x mandatory;
}

.timeline-block-wrapper {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.timeline-block-wrapper--dragging .timeline-block {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
  opacity: 0.9;
}

.timeline-block-dragging {
  cursor: grabbing;
}

.timeline-block {
  min-width: calc(192px * var(--timeline-zoom, 1));
  min-height: calc(72px * var(--timeline-zoom, 1));
  padding: 0;
  background: var(--surface-secondary);
  backdrop-filter: var(--blur-secondary);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-size: 0.875rem;
  position: relative;
}

.timeline-add-block {
  flex: 0 0 auto;
  min-width: calc(72px * var(--timeline-zoom));
  min-height: calc(72px * var(--timeline-zoom));
  background: var(--surface-secondary);
  backdrop-filter: var(--blur-secondary);
  border: 2px dashed var(--surface-border);
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.timeline-block:hover {
  background: var(--accent-muted);
  border-color: var(--accent-primary);
}

.timeline-block-active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-on-accent);
}

.timeline-add-block:hover {
  background: var(--accent-muted);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.timeline-block__drag-handle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.8);
  cursor: grab;
  transition: var(--transition-fast);
  z-index: 2;
}

.timeline-block__drag-handle:hover,
.timeline-block__drag-handle:focus-visible {
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.95);
  outline: none;
}

.timeline-block__action {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.timeline-block__action:hover,
.timeline-block__action:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  outline: none;
}

.timeline-block-wrapper:hover .timeline-block__action,
.timeline-block-wrapper:focus-within .timeline-block__action {
  opacity: 1;
  pointer-events: auto;
}

.timeline-block__inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: 0;
}

.timeline-block__media {
  width: calc(72px * var(--timeline-zoom, 1));
  height: calc(72px * var(--timeline-zoom, 1));
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.timeline-block__media-image,
.timeline-block__media-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.timeline-block__media-video {
  background: rgba(0, 0, 0, 0.6);
}

.timeline-block__media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
}

.timeline-block__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
}

.timeline-block__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.timeline-block__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.timeline-block__status-count {
  font-variant-numeric: tabular-nums;
}

.timeline-archived {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}


.timeline-archived__header {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: calc(8px * var(--timeline-zoom, 1)) calc(12px * var(--timeline-zoom, 1));
  border-radius: var(--border-radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-archived__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.75rem;
}

.timeline-archived__list {
  display: inline-flex;
  align-items: stretch;
  gap: calc(var(--spacing-sm) * max(var(--timeline-zoom, 1), 0.75));
}

.timeline-archived__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: calc(8px * var(--timeline-zoom, 1)) calc(12px * var(--timeline-zoom, 1));
  border-radius: var(--border-radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: calc(200px * var(--timeline-zoom, 1));
}

.timeline-archived__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-archived__title {
  font-size: calc(0.8125rem * var(--timeline-zoom, 1));
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-archived__subtitle {
  font-size: calc(0.75rem * var(--timeline-zoom, 1));
  color: var(--text-secondary);
}

.timeline-archived__actions {
  display: inline-flex;
  align-items: center;
}

.timeline-archived__restore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: calc(6px * var(--timeline-zoom, 1)) calc(12px * var(--timeline-zoom, 1));
  font-size: calc(0.75rem * var(--timeline-zoom, 1));
  cursor: pointer;
  transition: var(--transition-fast);
}

.timeline-archived__restore:hover,
.timeline-archived__restore:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  outline: none;
}

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

.timeline-block-active .timeline-block__status {
  color: rgba(255, 255, 255, 0.8);
}

.timeline-block__status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline-block-active .timeline-block__media {
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.9);
}

.timeline-panel-modes {
  position: relative;
  width: 100%;
  height: 100%;
}

.timeline-panel-mode {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.timeline-panel-mode--default {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.timeline-panel-mode--overlay {
  display: flex;
}

body[data-workspace-modal='true'] .timeline-panel-mode--default {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

body[data-workspace-modal='true'] .timeline-panel-mode--overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.timeline-overlay-sections {
  display: flex;
  flex: 1;
  align-items: stretch;
  gap: var(--spacing-md);
  min-width: 0;
}

.timeline-overlay-section {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--spacing-xs);
  min-width: 0;
}

.timeline-overlay-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  gap: var(--spacing-xs);
}

.timeline-overlay-section-toggle {
  background: transparent;
  border: none;
  color: inherit;
  font-weight: 600;
  text-transform: inherit;
  letter-spacing: inherit;
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
}

.timeline-overlay-section-toggle:hover {
  color: var(--accent-hover);
  background: rgba(255, 255, 255, 0.04);
}

.timeline-overlay-section-toggle.is-active {
  color: var(--text-on-accent);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.timeline-overlay-section-toggle:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.timeline-overlay-section-count {
  font-weight: 500;
}

.timeline-overlay-section--active .timeline-overlay-section-count {
  color: var(--accent-primary);
}


.timeline-overlay-section--scene .timeline-overlay-section-toggle.is-active {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text-primary);
}

.timeline-overlay-section--scene.timeline-overlay-section--active .timeline-overlay-section-count {
  color: var(--accent-hover);
}

.timeline-overlay-slots {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 4px;
  max-width: 100%;
  width: 100%;
}

.timeline-overlay-slot {
  flex: 0 0 auto;
  width: 70px;
  aspect-ratio: 1 / 1;
  height: auto;
  border: 1px dashed var(--surface-border);
  border-radius: var(--border-radius-sm);
  background: var(--surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.timeline-overlay-slot--filled {
  border-style: solid;
  background: var(--surface-primary);
  color: var(--text-secondary);
  display: block;
  overflow: hidden;
  padding: 0;
}

.timeline-overlay-slot--text {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  background: var(--surface-secondary);
  position: relative;
  overflow: hidden;
}

.timeline-overlay-slot-text {
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-align: left;
  width: 100%;
  white-space: pre-wrap;
}

.timeline-slot-content {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--surface-secondary-strong);
}

.timeline-slot--text .timeline-slot-content {
  padding: 6px;
}

.timeline-slot-content--active {
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-primary) 35%, transparent);
}

.timeline-slot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4px;
  background: linear-gradient(185deg, rgba(0, 0, 0, 0.65) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.timeline-slot--with-actions:hover .timeline-slot-overlay,
.timeline-slot--with-actions:focus-within .timeline-slot-overlay {
  opacity: 1;
}

.timeline-slot--active .timeline-slot-overlay {
  opacity: 1;
}

.timeline-slot-button {
  border-radius: 0.375rem;
  border-width: 1px;
  border-style: solid;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  border-color: var(--surface-border);
  background: var(--surface-primary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  width: 28px;
  height: 28px;
}

.timeline-slot-button:hover,
.timeline-slot-button:focus-visible {
  background: var(--surface-secondary);
  color: var(--text-primary);
}

.timeline-slot-button:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}


.timeline-slot-button.is-danger {
  background: var(--error);
  border-color: transparent;
  color: var(--text-on-accent);
}

.timeline-slot-button.is-danger:hover,
.timeline-slot-button.is-danger:focus-visible {
  background: var(--error);
  color: var(--text-on-accent);
}

.timeline-slot-button.is-danger:focus-visible {
  outline: 2px solid var(--error);
}

.timeline-slot-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.timeline-overlay-slot--upload {
  border-style: dashed;
  background: var(--surface-secondary);
  flex-direction: column;
  gap: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timeline-overlay-slot--upload:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  background: var(--surface-primary);
}

.timeline-overlay-slot--upload:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.timeline-overlay-slot-upload-icon {
  width: 20px;
  height: 20px;
}

.timeline-overlay-slot-upload-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline-overlay-slot-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.timeline-overlay-slot--action {
  border-style: dashed;
  background: var(--surface-secondary);
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  padding: 0;
  color: var(--text-secondary);
}

.timeline-overlay-slot--action.is-active,
.timeline-overlay-slot--action:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

.timeline-overlay-slot-action-button {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
  font-weight: 600;
}

.timeline-overlay-slot-action-button:hover,
.timeline-overlay-slot-action-button:focus-visible {
  color: var(--accent-hover);
}

.timeline-overlay-slot-action-button:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.timeline-overlay-slot-action-icon {
  width: 20px;
  height: 20px;
}

.timeline-overlay-describe-popover {
  position: fixed;
  transform: translate(-50%, calc(-100% - 12px));
  width: 220px;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  z-index: var(--z-tooltip);
}

.timeline-overlay-describe-popover::after {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--surface-secondary-strong) transparent;
}

.timeline-describe-panel {
  box-shadow: var(--shadow-strong);
  border-radius: var(--border-radius-lg);
  color: var(--text-on-accent);
}

.timeline-overlay-describe-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-accent);
}

.timeline-overlay-describe-textarea {
  width: 100%;
  min-height: 56px;
  resize: none;
  overflow: hidden;
  background: var(--surface-secondary-strong);
  color: var(--text-on-accent);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-xs);
  font-size: 0.75rem;
  line-height: 1.3;
}

.timeline-overlay-describe-textarea:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 0;
  border-color: transparent;
}

.timeline-overlay-describe-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xs);
}

.timeline-overlay-describe-counter {
  font-size: 0.65rem;
  color: var(--text-on-accent);
}

.timeline-overlay-describe-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  border: none;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.timeline-overlay-describe-submit:hover {
  background: var(--accent-hover);
}

.timeline-overlay-describe-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.timeline-custom-edit-popover {
  position: fixed;
  transform: translate(-50%, calc(-100% - 12px));
  width: min(448px, calc(100vw - 48px));
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  z-index: var(--z-tooltip);
}

.timeline-custom-edit-preview {
  width: 100%;
  max-width: 400px;
  height: 400px;
  margin: 0 auto;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--surface-secondary-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-custom-edit-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-custom-edit-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-on-accent);
}

.timeline-custom-edit-textarea {
  width: 100%;
  min-height: 72px;
  resize: none;
  overflow: hidden;
  background: var(--surface-secondary-strong);
  color: var(--text-on-accent);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-sm);
  font-size: 0.8rem;
  line-height: 1.35;
}

.timeline-custom-edit-textarea:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 0;
  border-color: transparent;
}

.timeline-custom-edit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.timeline-custom-edit-counter {
  font-size: 0.7rem;
  color: var(--text-on-accent);
}

.timeline-custom-edit-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.timeline-custom-edit-cancel,
.timeline-custom-edit-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.timeline-custom-edit-cancel {
  border: 1px solid color-mix(in srgb, var(--surface-border) 75%, transparent);
  background: transparent;
  color: var(--text-on-accent);
}

.timeline-custom-edit-cancel:hover,
.timeline-custom-edit-cancel:focus-visible {
  background: color-mix(in srgb, var(--surface-secondary-strong) 85%, transparent);
  border-color: var(--surface-border);
  color: var(--text-primary);
}

.timeline-custom-edit-cancel:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.timeline-custom-edit-save {
  border: none;
  background: var(--accent-primary);
  color: var(--text-on-accent);
}

.timeline-custom-edit-save:hover {
  background: var(--accent-hover);
}

.timeline-custom-edit-save:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.timeline-custom-canvas {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
  width: 100%;
}

.timeline-custom-edit-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xs);
  flex-wrap: nowrap;
  width: 100%;
  max-width: 400px;
}

.timeline-custom-tools-section {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-xs) * 0.75);
  min-width: 0;
  flex: 1 1 0;
}

.timeline-custom-tools-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-on-accent);
}

.timeline-custom-tools-swatches,
.timeline-custom-tools-sizes {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacing-xs) * 0.8);
}

.timeline-custom-tools-swatch,
.timeline-custom-tools-size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--surface-border) 70%, transparent);
  background: color-mix(in srgb, var(--surface-secondary-strong) 65%, transparent);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.timeline-custom-tools-swatch {
  width: 26px;
  height: 26px;
  background: var(--timeline-custom-swatch-color, var(--surface-border));
  position: relative;
}

.timeline-custom-tools-swatch::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 2px solid color-mix(in srgb, var(--surface-secondary-strong) 40%, transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.timeline-custom-tools-swatch:focus-visible,
.timeline-custom-tools-size:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.timeline-custom-tools-swatch--active {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--surface-secondary-strong) 60%, transparent);
}

.timeline-custom-tools-swatch--active::after {
  opacity: 1;
}

.timeline-custom-tools-swatch:hover {
  border-color: var(--accent-muted);
}

.timeline-custom-tools-size {
  width: 30px;
  height: 30px;
}

.timeline-custom-tools-size-dot {
  display: block;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--surface-border) 65%, transparent);
}

.timeline-custom-tools-size--active {
  transform: translateY(-1px);
  border-color: var(--accent-primary);
}

.timeline-custom-edit-canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: crosshair;
}

.timeline-overlay-slot-label {
  display: block;
  padding: 6px;
  text-align: center;
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--text-secondary);
  word-break: break-word;
}

.timeline-overlay-slot-placeholder {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-overlay-divider {
  width: 1px;
  align-self: stretch;
  background: var(--surface-border);
  opacity: 0.4;
}


.timeline-overlay-custom {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  width: 320px;
  flex: 0 0 320px;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  margin-top: calc(-1 * var(--spacing-md));
}

.timeline-overlay-custom-textarea {
  flex: 1;
  min-height: 56px;
  font-size: 0.875rem;
  line-height: 1.4;
  resize: none;
}

.timeline-overlay-custom-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.timeline-overlay-custom-error {
  margin: var(--spacing-xs) 0 0;
  font-size: 0.75rem;
  color: var(--text-error);
}

.prompt-builder-panel-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.prompt-builder-panel-custom,
.prompt-builder-panel-final {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.prompt-builder-panel-textarea {
  min-height: 8rem;
  resize: none;
}

.prompt-builder-panel-custom-actions {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: nowrap;
}

.prompt-builder-panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
  white-space: nowrap;
  border-radius: var(--border-radius-md);
}

.prompt-builder-panel-custom-actions .prompt-builder-panel-button {
  flex: 1 1 0;
}

.prompt-builder-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.prompt-builder-panel-select {
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.prompt-builder-panel-error {
  font-size: 0.875rem;
  color: var(--text-error);
}

@media (min-width: 1024px) {
  .prompt-builder-panel-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .prompt-builder-panel-custom {
    flex: 0 0 280px;
    max-width: 300px;
  }

  .prompt-builder-panel-final {
    flex: 1 1 auto;
    align-self: stretch;
  }
}

.prompt-builder-panel-generate {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .timeline-overlay-custom {
    width: 100%;
    flex: 0 0 auto;
    align-self: auto;
    height: auto;
    min-height: 0;
  }

  .timeline-overlay-custom-textarea {
    min-height: 160px;
    height: auto;
  }

  .timeline-overlay-custom-button {
    min-height: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .ai-studio-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .timeline-main-content {
    grid-template-columns: 1fr;  /* Stack панели вертикально */
    gap: var(--spacing-md);
  }
  
  .ai-timeline-panel {
    height: 100px;
  }
  
  .timeline-block {
    width: 100px;
    height: 60px;
    font-size: 0.75rem;
  }
  
  .timeline-add-block {
    width: 50px;
    height: 60px;
    font-size: 1.25rem;
  }
}

/* Prompt Builder selection summary */
.prompt-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

@media (max-width: 1024px) {
  .prompt-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .prompt-summary {
    grid-template-columns: 1fr;
  }
}

.prompt-summary-section {
  background: var(--surface-secondary);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

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

.prompt-summary-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prompt-summary-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-base);
  border-radius: var(--border-radius-sm);
  padding: 2px 8px;
}

.prompt-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-xs);
}

.prompt-summary-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-md);
  background: var(--surface-base);
  padding: calc(var(--spacing-xs) + 2px);
  text-align: left;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.prompt-summary-card:hover,
.prompt-summary-card:focus-visible {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.prompt-summary-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.prompt-summary-card__media {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-secondary);
  flex-shrink: 0;
}

.prompt-summary-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prompt-summary-card__icon {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.prompt-summary-card__content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.prompt-summary-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-summary-card__subtitle {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-summary-card--empty {
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  text-align: left;
  background: transparent;
  border-style: dashed;
  color: var(--text-secondary);
  gap: var(--spacing-xs);
}

.prompt-summary-card--empty:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.prompt-summary-card--empty .prompt-summary-card__media {
  background: rgba(255, 255, 255, 0.04);
}

.prompt-summary-card--empty .prompt-summary-card__title {
  color: var(--text-secondary);
}

.prompt-summary-card--empty .prompt-summary-card__subtitle {
  color: var(--text-muted);
}

.prompt-summary-toggle-group {
  display: inline-flex;
  gap: calc(var(--spacing-xs) / 2);
  align-items: center;
}

.prompt-summary-toggle {
  border: none;
  background: transparent;
  padding: calc(var(--spacing-xs) / 2) var(--spacing-xs);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  border-radius: var(--border-radius-md);
}

.prompt-summary-toggle:hover,
.prompt-summary-toggle:focus-visible {
  transform: translateY(-1px);
}

.prompt-summary-toggle:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.prompt-summary-toggle--active {
  border: 1px solid var(--accent-primary);
}

.prompt-summary-toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.prompt-settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacing-xs) / 2);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-md);
  background: var(--surface-secondary);
  padding: calc(var(--spacing-xs) / 3) calc(var(--spacing-xs) * 0.85);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.prompt-settings-toggle:hover,
.prompt-settings-toggle:focus-visible {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.prompt-settings-toggle:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.prompt-settings-toggle--active {
  border-color: var(--accent-primary);
  background: var(--accent-muted);
  color: var(--accent-primary);
}

.prompt-settings-toggle__label {
  font-weight: 500;
  font-size: 0.7rem;
}

.prompt-settings-toggle__status {
  font-weight: 600;
  font-size: 0.7rem;
  color: inherit;
}

.prompt-summary-upload-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-xs) / 2);
}

.prompt-summary-upload {
  width: 100%;
  min-height: calc(var(--spacing-lg) * 3.5);
  border-radius: var(--border-radius-md);
  border: 1px dashed var(--surface-border);
  background: var(--surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.prompt-summary-upload:hover,
.prompt-summary-upload:focus-visible {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.prompt-summary-upload:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.prompt-summary-upload--filled {
  border-style: solid;
  background: var(--surface-base);
}

.prompt-summary-upload--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.prompt-summary-upload__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prompt-summary-upload__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--spacing-xs) / 4);
}

.prompt-summary-upload__placeholder-icon {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  font-weight: 300;
}

.prompt-summary-upload__placeholder-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.prompt-summary-upload__remove {
  position: absolute;
  top: var(--spacing-xs);
  right: var(--spacing-xs);
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.prompt-summary-upload__remove:hover,
.prompt-summary-upload__remove:focus-visible {
  background: rgba(0, 0, 0, 0.75);
}

.prompt-summary-upload__remove:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.prompt-summary-upload__error {
  margin-top: calc(var(--spacing-xs) / 4);
}

@media (max-width: 768px) {
  .ai-studio-container {
    gap: var(--spacing-sm);
  }
  
  .timeline-main-content {
    gap: var(--spacing-sm);
    grid-template-columns: 1fr;
  }
  
  .timeline-workspace {
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
  }

  .timeline-footer {
    bottom: 0;
  }
  
  .ai-upload-zone {
    padding: var(--spacing-md);
  }
  
  .ai-studio-workspace {
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-md) 0 var(--spacing-md);
  }
  
  .ai-timeline-panel {
    height: 80px;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
  }
  
  .timeline-block {
    width: 80px;
    height: 50px;
    font-size: 0.75rem;
  }
  
  .timeline-add-block {
    width: 40px;
    height: 50px;
    font-size: 1rem;
  }
}

/* Timeline panels - правильная прокрутка содержимого */
.timeline-panel-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.timeline-panel-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Обеспечиваем правильную высоту для grid элементов */
.timeline-main-content > .layer-primary {
  height: 100%;
  overflow: hidden;
}

/* Generation Gallery Styles */
.generation-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.generation-gallery-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  overflow-y: visible;
}

.generation-gallery-empty {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
}

/* Generation Thumbnail Styles */
.generation-thumbnail {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 0.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  background: var(--surface-secondary);
  border: 2px solid transparent;
  overflow: hidden;
}

/* 9:16 aspect ratio containers */
.generation-thumbnail-md {
  width: 60px;
  height: 106px; /* 60 * (16/9) ≈ 106px for 9:16 ratio */
}

.generation-thumbnail-sm {
  width: 48px;
  height: 85px; /* 48 * (16/9) ≈ 85px for 9:16 ratio */
}

/* Image positioning inside thumbnail */
.generation-thumbnail img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.generation-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.generation-thumbnail-active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-primary);
}

.generation-thumbnail-loading {
  pointer-events: none;
}

.generation-thumbnail-error {
  opacity: 0.75;
}

/* Pending/Empty Frame Styles */
.generation-thumbnail-pending {
  opacity: 0.9;
  border-color: var(--accent-primary);
  border-style: dashed;
}

.generation-thumbnail-pending:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-hover);
}

/* Add New Frame Button Styles */
.generation-thumbnail-add {
  border-width: 2px;
  border-style: dashed;
  border-color: var(--surface-border);
  background: var(--surface-primary);
}

.generation-thumbnail-add:hover {
  border-color: var(--accent-primary);
  background: var(--surface-secondary);
  transform: scale(1.05);
}

/* Active Image Display Styles */
.active-image-display {
  position: relative;
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
}
.media-action-overlay.active-image-display::before,
.active-image-archive-overlay.active-image-display::before {
  background: radial-gradient(circle at bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 75%);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45) 0%, transparent 65%);
}
.active-image-display {
  background: var(--surface-secondary);
  min-height: 300px;
}

.active-image-placeholder {
  text-align: center;
}

.active-image-loading {
  text-align: center;
}

/* Hover action overlay */
.active-image-archive-overlay,
.media-action-overlay {
  position: absolute;
  inset: 0px;
  display: flex;
  opacity: 0;
  transition: opacity 0.2s ease;
  --media-overlay-padding: 12px;
  padding: var(--media-overlay-padding);
  overflow: hidden;
  pointer-events: none;
}

.active-image-display:hover .active-image-archive-overlay,
.active-image-display:hover .media-action-overlay {
  opacity: 1;
}

.active-image-archive-overlay::before,
.media-action-overlay::before {
  content: '';
  position: absolute;
  inset: calc(var(--media-overlay-padding) * -1);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: linear-gradient(225deg, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  z-index: 0;
}

.active-image-display:hover .active-image-archive-overlay::before,
.active-image-display:hover .media-action-overlay::before {
  opacity: 1;
}

.media-action-overlay.justify-start::before,
.active-image-archive-overlay.justify-start::before {
  background: linear-gradient(225deg, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
}

.media-action-overlay.justify-center::before,
.active-image-archive-overlay.justify-center::before {
  background: radial-gradient(circle at bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 75%);
}

.media-action-overlay.items-start::before,
.active-image-archive-overlay.items-start::before {
  background: linear-gradient(315deg, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}

.media-action-overlay.items-center::before,
.active-image-archive-overlay.items-center::before {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45) 0%, transparent 65%);
}

.media-action-overlay.items-start.justify-end::before,
.active-image-archive-overlay.items-start.justify-end::before {
  background: radial-gradient(circle at top right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 35%, transparent 70%);
}

.media-action-overlay-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.media-action-overlay.media-action-overlay-content::before,
.active-image-archive-overlay.media-action-overlay-content::before {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45) 0%, transparent 65%);
}

.media-action-overlay-content {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.active-image-archive-btn,
.media-action-btn {
  border-radius: 0.5rem;
  border-width: 1px;
  border-style: solid;
  padding: 0.5rem;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  border-color: var(--surface-border);
  background: var(--surface-primary);
  color: var(--text-secondary);
}

.media-action-btn:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent-primary) 60%, var(--surface-border) 40%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-primary) 20%, transparent);
}

.active-image-archive-btn:hover,
.media-action-btn:hover {
  background: var(--surface-secondary);
}

.media-action-btn.is-danger:hover {
  color: var(--text-error);
}

/* Gradient overlay for thumbnail version label readability */
.thumbnail-with-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
  border-radius: inherit;
}

/* Module Selector Portal Overlay Styles */
.module-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  border-radius: inherit;
  opacity: 0;
  transition: all 0.2s ease-out;
  transform: scale(0.95);
}

.module-overlay.active {
  opacity: 1;
  transform: scale(1);
}

/* Info button styles */
.info-button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-out;
  background: var(--surface-secondary);
  backdrop-filter: var(--blur-secondary);
  border: 1px solid var(--surface-border);
  opacity: 0.9;
}

.info-button:hover {
  opacity: 1;
  transform: scale(1.1);
  background: var(--surface-primary);
}

/* Confirm selection button */
.confirm-selection-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-out;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.confirm-selection-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: var(--accent-hover);
}

/* Animation keyframes for overlay */
@keyframes overlayFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes overlayFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Classes for animation states */
.animate-overlay-in {
  animation: overlayFadeIn 0.2s ease-out forwards;
}

.animate-overlay-out {
  animation: overlayFadeOut 0.15s ease-in forwards;
}
.settings-scroll {
  overflow-x: auto;
  padding-bottom: var(--spacing-xs);
}

.settings-scroll::-webkit-scrollbar {
  height: 6px;
}

.settings-scroll::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: var(--border-radius-md);
}

/* Prompt variant strip inside selection modal */

.prompt-variant-strip {
  background: var(--surface-secondary);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-sm) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  box-shadow: var(--shadow-subtle);
  --prompt-variant-card-size: clamp(140px, calc((100% - (4 * var(--spacing-sm))) / 5), 220px);
  --prompt-variant-card-label-height: 2.5rem;
  --prompt-variant-scroller-height: calc(
    var(--prompt-variant-card-size) +
    var(--spacing-xs) +
    var(--prompt-variant-card-label-height)
  );
  min-height: calc(var(--prompt-variant-scroller-height) + var(--spacing-sm));
}

.prompt-variant-strip__content {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--prompt-variant-scroller-height));
}

.prompt-variant-strip__fallback {
  padding: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  min-height: var(--prompt-variant-scroller-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-variant-strip__scroller {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: calc(var(--spacing-xs) + 6px);
  width: 100%;
  min-height: var(--prompt-variant-scroller-height);
  scrollbar-gutter: stable;
}

.prompt-variant-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  flex: 0 0 var(--prompt-variant-card-size);
  width: var(--prompt-variant-card-size);
  max-width: var(--prompt-variant-card-size);
}

.prompt-variant-card__preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
  background: transparent;
}

.prompt-variant-card__preview--active {
  border-color: var(--accent-primary);
}

.prompt-variant-card__preview--selected {
  border-color: var(--accent-primary);
}

.prompt-variant-card__preview--selected .media-action-overlay,
.prompt-variant-card__preview--selected .media-action-overlay::before {
  opacity: 1;
}

.prompt-variant-card__preview--selected .media-action-overlay .media-action-btn {
  opacity: 0;
}

.prompt-variant-card__preview--selected .media-action-overlay .prompt-variant-overlay-actions__confirm {
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: color-mix(in srgb, rgba(0, 0, 0, 0.45) 65%, rgba(255, 255, 255, 0.35));
  color: rgba(255, 255, 255, 0.95);
}

.prompt-variant-card__preview--selected .media-action-overlay .media-action-btn:hover,
.prompt-variant-card__preview--selected .media-action-overlay .media-action-btn:focus-visible {
  opacity: 1;
}

.prompt-variant-card__media {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: var(--surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.prompt-variant-card__placeholder {
  padding: var(--spacing-xs);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.prompt-variant-card__placeholder--custom {
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.35;
  padding: calc(var(--spacing-xs) * 0.75);
}

.prompt-variant-card__name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  min-height: var(--prompt-variant-card-label-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-variant-card__preview:hover .media-action-overlay,
.prompt-variant-card__preview:focus-within .media-action-overlay {
  opacity: 1;
}

.prompt-variant-card__preview:hover .media-action-overlay::before,
.prompt-variant-card__preview:focus-within .media-action-overlay::before {
  opacity: 1;
}

.prompt-variant-card__preview .media-action-overlay {
  --media-overlay-padding: 0;
  align-items: flex-start;
  padding: var(--spacing-sm);
  overflow: hidden;
  inset: 0;
}

.prompt-variant-card__preview .media-action-overlay::before {
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 70%);
  border-radius: inherit;
}

.prompt-variant-overlay-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  width: 100%;
  justify-content: space-between;
}

.prompt-variant-overlay-actions .media-action-btn {
  padding: var(--spacing-xs);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.media-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.prompt-variant-overlay-actions__confirm {
  margin-left: auto;
}

.prompt-variant-params-popover {
  position: fixed;
  width: min(400px, 80vw);
  max-height: 360px;
  overflow-y: auto;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  opacity: 0;
  transform: translate(-100%, -8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: var(--z-tooltip);
  color: var(--text-primary);
}

.prompt-variant-params-popover.is-visible {
  opacity: 1;
  transform: translate(-100%, 0);
  pointer-events: auto;
}

.prompt-variant-params-popover__log {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.35;
}

.prompt-variant-params-popover__line {
  display: block;
}

.prompt-variant-params-popover__key {
  color: var(--text-primary);
  font-weight: 500;
}

.prompt-variant-params-popover__key.is-invisible {
  opacity: 0;
}

.prompt-variant-params-popover__value {
  color: var(--text-primary);
}

.prompt-variant-params-popover__value.is-removed {
  color: var(--error);
  text-decoration: line-through;
}

.prompt-variant-params-popover__value.is-added {
  color: var(--success);
}

.prompt-variant-params-popover__value.is-none {
  color: var(--text-secondary);
}

/* Active group card link indicator */
.prompt-builder-group-card {
  position: relative;
}

.prompt-builder-group-card--active {
  border-color: var(--accent-primary);
}

.prompt-builder-group-card__badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: color-mix(in srgb, rgba(0, 0, 0, 0.45) 70%, rgba(255, 255, 255, 0.3));
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.prompt-builder-group-card[data-selected='true']::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

.prompt-builder-group-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-xs) 0;
}

.prompt-builder-group-bridge {
  width: 100%;
  background: transparent;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: var(--spacing-xs);
}

.prompt-builder-group-bridge.is-active {
  background: var(--surface-secondary);
  box-shadow: var(--shadow-subtle);
  border: none;
  margin-bottom: -4px;
  padding-bottom: 8px;
}

.prompt-builder-group-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  width: 100%;
  padding: 0;
  border-radius: var(--border-radius-lg);
  border: none;
  background: transparent;
}

.prompt-builder-group-bridge.is-active .prompt-builder-group-button {
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.prompt-builder-group-label {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 var(--spacing-xs);
  min-height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-builder-modal-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  width: 100%;
  height: 100%;
  align-items: center;
  padding: 0 var(--spacing-lg);
}

.prompt-builder-modal-columns {
  display: grid;
  grid-template-columns: minmax(260px, max-content) minmax(0, 2fr);
  gap: var(--spacing-lg);
  height: 100%;
  width: min(100%, calc(1560px + var(--spacing-lg)));
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
  align-items: stretch;
}

.prompt-builder-modal-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}



.prompt-builder-modal-shell--inspector {
  max-width: 360px;
  display: flex;
  justify-content: center;
  width: min(340px, 40vh);
}

.prompt-builder-inspector-panel {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  height: 100%;
  padding: var(--spacing-lg);
  padding-bottom: 0;
  width: 100%;
}

.prompt-builder-inspector-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  min-height: 0;
  align-items: center;
}

.prompt-builder-inspector__params-header-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: calc(var(--spacing-xs) * 0.5);
}

.prompt-builder-inspector__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-xs);
}

.prompt-builder-inspector__action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1;
  transition: color var(--transition-default), border-color var(--transition-default),
    background var(--transition-default);
}

.prompt-builder-inspector__action-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: var(--surface-primary);
}

.prompt-builder-inspector__action-btn[data-active='true'] {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--surface-primary);
}

.prompt-builder-inspector__action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prompt-builder-inspector__action-btn--confirm {
  border-color: var(--success);
  color: var(--success);
}

.prompt-builder-inspector__action-btn--confirm:hover {
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
}

.prompt-builder-inspector__action-btn--confirm:disabled {
  border-color: var(--surface-border);
  color: var(--text-secondary);
  background: var(--surface-secondary);
  opacity: 0.5;
}

.prompt-builder-inspector__actions svg {
  width: 1rem;
  height: 1rem;
}

.prompt-builder-inspector__preview {
  width: min(340px, 40vh);
  min-width: min(340px, 40vh);
  max-width: min(340px, 40vh);
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.prompt-builder-inspector__preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prompt-builder-inspector__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  width: 100%;
  height: 100%;
  text-align: center;
  border-radius: inherit;
  border: 1px dashed var(--surface-border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.prompt-builder-inspector__placeholder--custom {
  flex-direction: column;
  gap: var(--spacing-sm);
}

.prompt-builder-inspector__placeholder-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.prompt-builder-inspector__placeholder-hint {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 240px;
}

.prompt-builder-custom-textarea {
  width: 100%;
  min-height: 36px;
  resize: none;
  overflow: hidden;
  background: var(--surface-secondary);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm);
  font-size: 0.85rem;
  line-height: 1.35;
  transition: border-color 0.2s ease;
}

.prompt-builder-custom-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-primary) 40%, transparent);
}

.prompt-builder-custom-title-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: var(--spacing-sm);
}

.prompt-builder-custom-title-input {
  padding: calc(var(--spacing-xs) * 0.75) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-primary);
  color: var(--text-primary);
  font-size: 0.85rem;
  line-height: 1.35;
  transition: border-color 0.2s ease;
}

.prompt-builder-custom-title-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-primary) 40%, transparent);
}

.prompt-builder-custom-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.prompt-builder-custom-footer .timeline-overlay-describe-counter {
  color: var(--text-secondary);
}

.prompt-builder-custom-actions {
  display: flex;
  gap: calc(var(--spacing-xs) * 0.75);
}

.prompt-builder-custom-submit {
  min-width: 0;
  padding-inline: 12px;
}

.prompt-builder-custom-progress {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  align-items: flex-end;
}

.prompt-builder-custom-progress-message {
  text-align: right;
}

.prompt-builder-custom-save-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.prompt-builder-custom-save-btn {
  background: color-mix(in srgb, var(--success) 82%, var(--surface-secondary) 18%);
  border: none;
  color: var(--text-on-accent);
}

.prompt-builder-custom-save-btn:hover:not([disabled]) {
  background: color-mix(in srgb, var(--success) 92%, var(--surface-secondary) 8%);
}

.prompt-builder-custom-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prompt-builder-custom-save-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.prompt-builder-custom-save-success {
  font-size: 0.75rem;
  color: var(--success);
}

.prompt-builder-custom-save-error {
  font-size: 0.75rem;
  color: var(--error);
}

.prompt-builder-custom-saved-presets {
  margin-top: var(--spacing-md);
  border-top: 1px solid var(--surface-border);
  padding-top: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.prompt-builder-custom-saved-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.prompt-builder-custom-saved-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-xs) * 0.5);
}

.prompt-builder-custom-saved-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  background: var(--surface-secondary);
  border-radius: var(--border-radius-sm);
  padding: calc(var(--spacing-xs) * 0.75) var(--spacing-sm);
}

.prompt-builder-custom-saved-title {
  font-weight: 500;
  color: var(--text-primary);
}

.prompt-builder-custom-saved-count {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.prompt-builder-inspector__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  min-height: 0;
  width: 100%;
  max-width: min(340px, 40vh);
  margin: 0 auto;
}

.prompt-builder-inspector__notice {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  width: 100%;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-md);
  background: var(--surface-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
}

.prompt-builder-inspector__notice-icon {
  color: var(--accent-primary);
  margin-top: 0.125rem;
}

.prompt-builder-inspector__notice-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.15;
}

.prompt-builder-inspector__notice-line + .prompt-builder-inspector__notice-line {
  margin-top: calc(var(--spacing-xs) * 0.5);
}

.prompt-builder-inspector__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.prompt-builder-inspector__params {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  min-height: 0;
  overflow-y: auto;
  overflow-x: visible;
  padding-top: var(--spacing-xs);
  padding-bottom: var(--spacing-md);
}

.prompt-builder-inspector__params-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.6fr);
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.6875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prompt-builder-inspector__params-header-label--key {
  font-weight: 600;
}

.prompt-builder-inspector__params-header-label--value {
  text-align: left;
}

.prompt-builder-inspector__param-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.prompt-builder-inspector__param-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.prompt-builder-inspector__param-input {
  width: 100%;
  padding: calc(var(--spacing-xs) * 0.75) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface-primary);
  color: var(--text-primary);
  font-size: 0.75rem;
  line-height: 1.3;
}

.prompt-builder-inspector__param-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-primary) 40%, transparent);
}

.prompt-builder-inspector__param-input[readonly] {
  background: var(--surface-secondary);
  color: var(--text-secondary);
}

.prompt-builder-inspector__param-textarea {
  resize: none;
  overflow: hidden;
  min-height: 32px;
  max-height: 160px;
  transition: height 0.1s ease;
  scrollbar-width: none;
}

.prompt-builder-inspector__param-textarea::-webkit-scrollbar {
  display: none;
}

.prompt-builder-inspector__param-input--key {
  font-weight: 600;
  flex: 1;
}

.prompt-builder-inspector__param-input--value {
  color: var(--text-primary);
  flex: 1.6;
}

.prompt-builder-inspector__param-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  transition: color var(--transition-default), border-color var(--transition-default),
    background var(--transition-default);
}

.prompt-builder-inspector__param-remove:hover {
  background: color-mix(in srgb, var(--error) 16%, transparent);
  border-color: color-mix(in srgb, var(--error) 32%, transparent);
  color: var(--error);
}

.prompt-builder-inspector__param-remove svg {
  width: 0.9rem;
  height: 0.9rem;
}

.prompt-builder-inspector__add-param {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: var(--spacing-xs);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  border: 1px solid var(--success);
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
  transition: color var(--transition-default), border-color var(--transition-default),
    background var(--transition-default);
}

.prompt-builder-inspector__add-param:hover {
  background: color-mix(in srgb, var(--success) 28%, transparent);
}

.prompt-builder-inspector__add-param svg {
  width: 0.95rem;
  height: 0.95rem;
}

.prompt-builder-inspector__empty {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.prompt-builder-modal-shell--main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.prompt-builder-modal-shell--main .workspace-modal-content {
  height: 100%;
}

.prompt-builder-modal-main {
  height: 100%;
  width: 100%;
  min-width: 0;
}

.prompt-builder-modal-main__placeholder {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.prompt-builder-modal-main__scroller {
  height: 100%;
  width: 100%;
  overflow: auto;
}

@media (max-width: 1280px) {
  .prompt-builder-modal-columns {
    grid-template-columns: minmax(260px, max-content) minmax(0, 1.5fr);
  }
}

@media (max-width: 1024px) {
  .prompt-builder-modal-columns {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    width: 100%;
    margin: 0;
  }

  .prompt-builder-modal-shell--inspector {
    max-width: none;
  }

  .prompt-builder-modal-wrapper {
    gap: var(--spacing-md);
  }
}

.prompt-builder-modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: calc(-1 * var(--spacing-lg));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: color var(--transition-default), transform var(--transition-default), opacity var(--transition-default);
}

.prompt-builder-modal-close:hover,
.prompt-builder-modal-close:focus-visible {
  color: var(--accent-primary);
  transform: scale(1.05);
  opacity: 1;
}

.prompt-builder-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-primary);
  border-radius: 9999px;
}

.prompt-variant-strip {
  border: none;
}

/*!***************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/workspace-modal.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   WORKSPACE MODAL SYSTEM
   Portal modal constrained to workspace area
   =========================================== */

/* Base workspace modal overlay */
.workspace-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--floating-header-height) + var(--spacing-lg)) var(--spacing-lg)
    calc(var(--timeline-height) + var(--spacing-lg)) var(--spacing-lg);
  pointer-events: auto;
  z-index: var(--z-modal);
}

.workspace-modal-shell {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  max-height: 100%;
}

.workspace-modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  max-height: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .workspace-modal-overlay {
    padding: calc(var(--floating-header-height) + var(--spacing-lg)) var(--spacing-lg)
      calc(80px + var(--spacing-lg)) var(--spacing-lg);
  }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .workspace-modal-overlay {
    padding-bottom: calc(100px + var(--spacing-lg)); /* Tablet timeline height */
  }
}

/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/presets.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   PRESET GALLERY STYLES
   AI Studio presets and token calculator
   =========================================== */

/* Preset Gallery Container */
.preset-gallery {
  margin-bottom: var(--spacing-lg);
}

/* Preset Grid Layout - 2x4 grid with horizontal scroll */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  grid-template-rows: repeat(2, 1fr);    /* 2 rows */
  gap: var(--spacing-md);
  max-height: 280px;
  overflow-x: auto;  /* Horizontal scroll if needed */
  overflow-y: hidden;
  padding: var(--spacing-xs);
}

/* Individual Preset Card */
.preset-card {
  background: var(--surface-secondary);
  backdrop-filter: var(--blur-secondary);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  min-height: 120px;
}

.preset-card:hover {
  background: var(--accent-muted);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.preset-card:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Active preset card */
.preset-card-active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-on-accent);
}

.preset-card-active:hover {
  background: var(--accent-primary);
  opacity: 0.9;
}

/* Preset thumbnail container */
.preset-thumbnail {
  aspect-ratio: 1; /* Square thumbnails 1:1 */
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--spacing-xs);
  background: var(--surface-primary);
  flex-shrink: 0;
}

.preset-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Line clamp utility for descriptions */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Token Calculator Styles */
.token-calculator {
  padding: var(--spacing-md);
  background: var(--surface-secondary);
  backdrop-filter: var(--blur-secondary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--surface-border);
  margin-bottom: var(--spacing-md);
}

.token-display {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.token-display span:first-child {
  font-size: 1rem;
}

/* Cost breakdown styles */
.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.cost-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.cost-item-total {
  font-weight: 600;
  color: var(--text-primary);
  border-top: 1px solid var(--surface-border);
  padding-top: var(--spacing-xs);
  margin-top: var(--spacing-xs);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .preset-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    grid-template-rows: repeat(4, 1fr);    /* 4 rows */
    max-height: 400px;
    gap: var(--spacing-sm);
  }

  .preset-card {
    min-height: 100px;
    padding: var(--spacing-xs);
  }

  .preset-thumbnail {
    aspect-ratio: 1; /* Square thumbnails on mobile */
  }

  .token-calculator {
    padding: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .preset-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
  }

  .preset-card {
    min-height: 80px;
  }

  .token-display {
    font-size: 0.8125rem;
  }
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/llm-status.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   LLM STATUS COMPONENTS
   Semantic classes for LLM processing UI
   =========================================== */

/* LLM Model Selector (используется стиль btn-primary + btn-selected) */

/* LLM Progress Bar */
.llm-progress-container {
  background: var(--surface-secondary);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-sm);
  backdrop-filter: var(--blur-secondary);
}

.llm-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--surface-primary);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: var(--spacing-xs);
}

.llm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
  border-radius: var(--border-radius-sm);
  transition: width 0.3s ease;
  min-width: 4px;
}

.llm-progress-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

/* LLM Status States */
.llm-status {
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-sm);
  border-left: 4px solid;
  margin-bottom: var(--spacing-sm);
}

.llm-status-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgb(34, 197, 94);
  color: rgb(22, 163, 74);
}

.llm-status-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgb(239, 68, 68);
  color: rgb(220, 38, 38);
}

.llm-status-processing {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgb(59, 130, 246);
  color: rgb(37, 99, 235);
}

.llm-status-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgb(245, 158, 11);
  color: rgb(217, 119, 6);
}

/* LLM Cost Display */
.llm-cost-info {
  background: var(--surface-secondary);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.llm-cost-total {
  font-weight: 600;
  color: var(--text-primary);
}

.llm-cost-breakdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.llm-cost-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
}

.llm-cost-label {
  color: var(--text-muted);
  margin-bottom: 2px;
}

.llm-cost-value {
  color: var(--text-secondary);
  font-weight: 500;
}

/* LLM Action Buttons */
.llm-action-group {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
}

.llm-retry-button {
  background: var(--surface-primary);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  backdrop-filter: var(--blur-primary);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  cursor: pointer;
}

.llm-retry-button:hover {
  background: var(--surface-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.llm-use-prompt-button {
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: white;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  cursor: pointer;
}

.llm-use-prompt-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.llm-cancel-button {
  background: var(--surface-primary);
  border: 1px solid rgb(239, 68, 68);
  color: rgb(220, 38, 38);
  backdrop-filter: var(--blur-primary);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  cursor: pointer;
}

.llm-cancel-button:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgb(220, 38, 38);
  transform: translateY(-1px);
}

/* LLM Animation Effects */
.llm-processing-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.llm-processing-dots {
  display: flex;
  gap: 2px;
}

.llm-processing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: llm-pulse 1.4s ease-in-out infinite both;
}

.llm-processing-dot:nth-child(1) { animation-delay: -0.32s; }
.llm-processing-dot:nth-child(2) { animation-delay: -0.16s; }
.llm-processing-dot:nth-child(3) { animation-delay: 0; }

@keyframes llm-pulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .llm-status-success {
  background: rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .llm-status-error {
  background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .llm-status-processing {
  background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .llm-status-warning {
  background: rgba(245, 158, 11, 0.15);
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/billing.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************/

.billing-history-wrapper {
  width: 100%;
  padding: 0 var(--spacing-lg) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.billing-header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.billing-header-filters {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0;
}

.billing-header-summary {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  white-space: nowrap;
}

.billing-header-summary-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.billing-header-summary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--border-radius-md);
  background: var(--surface-primary);
  color: var(--text-secondary);
}

.billing-history-select {
  background: var(--surface-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  padding: 4px 10px;
  font-size: 0.8rem;
}

.billing-history-grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1399px) {
  .billing-history-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .billing-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .billing-history-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}


.billing-card {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  background: var(--surface-primary);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.billing-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.billing-card__io {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-sm);
}

.billing-card__io-cell {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.billing-card__io-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

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

.billing-card__io-token {
  margin-left: auto;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

.billing-card__io-content {
  flex: 1 1 auto;
  background: var(--surface-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-md);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

.billing-card__io-cell--media {
  gap: var(--spacing-xs);
}

.billing-card__io-content--image img,
.billing-card__io-content--media img,
.billing-card__io-content--media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.billing-card__io-media {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.billing-card__io-text {
  margin: 0;
  padding: var(--spacing-xs);
  width: 100%;
  height: 100%;
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow: auto;
  color: var(--text-primary);
}

.billing-card__io-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs);
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}


.billing-card__details-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: stretch;
}

.billing-card__details-container {
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-primary);
  background: var(--surface-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  display: flex;
  flex-direction: column;
}

.billing-card__details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 260px;
  min-width: 0;
}

.billing-card__detail {
  font-size: 0.6rem;
  color: var(--text-tertiary);
  line-height: 1.2;
}

.billing-card__detail-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-right: var(--spacing-xs);
}

.billing-card__detail-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: var(--text-primary);
  word-break: break-word;
}

.billing-card__detail-link {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline;
}

.billing-card__detail-value--link {
  color: var(--accent-primary);
  transition: color var(--transition-fast);
}

.billing-card__detail-value--link:hover {
  color: var(--accent-hover);
}

.billing-card__action {
  background: transparent;
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-sm);
  padding: 4px 8px;
  color: var(--text-secondary);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.billing-card__action:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.billing-history-empty {
  text-align: center;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  border: 1px dashed var(--border-primary);
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.billing-history-load-more {
  margin: var(--spacing-md) auto 0;
  padding: 6px 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.billing-history-load-more:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

@media (max-width: 1023px) {
  .billing-card__meta {
    flex: 1 1 100%;
    min-width: 0;
    align-items: flex-start;
  }

  .billing-card__meta-footer {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .billing-history-wrapper {
    padding: var(--spacing-md);
  }

  .billing-card__io {
    grid-template-columns: 1fr;
  }
}

/*!*****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/components/games.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************/
/* ===========================================
   HEADER GAME DOCK
   Glassmorphism mini-game container
   =========================================== */

.header-game-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.header-game-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-sm);
  height: 100%;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.header-game-launch {
  position: relative;
  outline: none;
  background: transparent;
  border-color: transparent;
}

.header-game-launch:focus {
  outline: none;
  box-shadow: none;
}

.header-game-launch:hover {
  background: transparent;
  color: var(--text-secondary);
  transform: none;
}

.header-game-dock {
  position: absolute;
  top: calc(100% + var(--spacing-xs));
  right: 0;
  width: 280px;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease-out;
  will-change: transform, opacity;
  z-index: var(--z-tooltip);
  overflow: hidden;
}

.header-game-dock:focus {
  outline: none;
}

.header-game-dock--open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.header-game-dock--hidden {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .header-game-dock {
    transition: none;
    transform: translateY(-8px);
  }
  .header-game-dock--open {
    transform: translateY(0);
  }
}

.header-game-dock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--border-primary);
}

.header-game-dock__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--text-secondary);
}

.header-game-dock__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
}

.header-game-dock__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.header-game-dock__auto-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.header-game-dock__auto-control {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.header-game-dock__auto-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-game-auto-toggle {
  position: relative;
  width: 40px;
  height: 20px;
  border-radius: 9999px;
  border: 1px solid var(--border-primary);
  background: color-mix(in srgb, var(--surface-secondary) 70%, transparent);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.header-game-auto-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: var(--surface-primary);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast);
}

.header-game-auto-toggle--on {
  background: color-mix(in srgb, var(--accent-primary) 35%, transparent);
  border-color: color-mix(in srgb, var(--accent-primary) 60%, transparent);
}

.header-game-auto-toggle--on .header-game-auto-toggle__thumb {
  transform: translateX(20px);
}

/* Toggle button */

.header-game-toggle {
  position: relative;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.header-game-toggle:hover:not(:disabled) {
  color: var(--text-primary);
  transform: scale(1.05);
}

.header-game-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.header-game-toggle--small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--border-radius-md);
  background: transparent;
  cursor: pointer;
}

.header-game-toggle--small.header-game-toggle--active {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}

@keyframes header-game-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-primary) 45%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

/* Snake UI */

.snake-game {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.snake-game__board-wrapper {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
  background: color-mix(in srgb, var(--surface-secondary) 85%, transparent);
  overflow: hidden;
}

.snake-game__board {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  display: block;
}

.snake-game__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--spacing-sm);
  background: color-mix(in srgb, var(--surface-secondary-strong) 65%, transparent);
  backdrop-filter: blur(var(--blur-secondary));
  color: var(--text-primary);
  font-size: 0.85rem;
  text-align: center;
}

.snake-game__overlay--interactive {
  gap: var(--spacing-md);
}

.snake-game__overlay--countdown {
  gap: 0;
}

.snake-game__countdown-number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.snake-game__restart {
  padding: 0 var(--spacing-md);
  height: 32px;
  font-size: 0.8rem;
  border-radius: var(--border-radius-md);
}

.snake-game__stats {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.snake-game__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.snake-game__stat-value {
  color: var(--text-primary);
  font-size: 1rem;
}

.snake-game__hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .header-game-dock {
    width: min(280px, 80vw);
  }
}

/*!********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/globals.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************/
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

b,
strong {
  font-weight: bolder;
}

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

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

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

small {
  font-size: 80%;
}

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

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

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

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

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

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

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

button,
select {
  text-transform: none;
}

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

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

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

:-moz-focusring {
  outline: auto;
}

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

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

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

progress {
  vertical-align: baseline;
}

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

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

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

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

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

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

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

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

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

summary {
  display: list-item;
}

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

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

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

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

input::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;
}
.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;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.bottom-1 {
  bottom: 0.25rem;
}
.left-1 {
  left: 0.25rem;
}
.right-1 {
  right: 0.25rem;
}
.right-2 {
  right: 0.5rem;
}
.right-4 {
  right: 1rem;
}
.top-1 {
  top: 0.25rem;
}
.top-2 {
  top: 0.5rem;
}
.top-4 {
  top: 1rem;
}
.-z-10 {
  z-index: -10;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}
.col-span-6 {
  grid-column: span 6 / span 6;
}
.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-0 {
  margin-bottom: 0px;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-3 {
  margin-left: 0.75rem;
}
.ml-4 {
  margin-left: 1rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mt-0 {
  margin-top: 0px;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.\!block {
  display: block !important;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.contents {
  display: contents;
}
.hidden {
  display: none;
}
.aspect-\[3\/4\] {
  aspect-ratio: 3/4;
}
.aspect-\[9\/16\] {
  aspect-ratio: 9/16;
}
.aspect-square {
  aspect-ratio: 1 / 1;
}
.h-1 {
  height: 0.25rem;
}
.h-2 {
  height: 0.5rem;
}
.h-20 {
  height: 5rem;
}
.h-3 {
  height: 0.75rem;
}
.h-32 {
  height: 8rem;
}
.h-4 {
  height: 1rem;
}
.h-48 {
  height: 12rem;
}
.h-6 {
  height: 1.5rem;
}
.h-64 {
  height: 16rem;
}
.h-8 {
  height: 2rem;
}
.h-\[90\%\] {
  height: 90%;
}
.h-full {
  height: 100%;
}
.min-h-\[128px\] {
  min-height: 128px;
}
.min-h-\[48px\] {
  min-height: 48px;
}
.min-h-screen {
  min-height: 100vh;
}
.w-1\/2 {
  width: 50%;
}
.w-11 {
  width: 2.75rem;
}
.w-16 {
  width: 4rem;
}
.w-2 {
  width: 0.5rem;
}
.w-20 {
  width: 5rem;
}
.w-3\/4 {
  width: 75%;
}
.w-32 {
  width: 8rem;
}
.w-4 {
  width: 1rem;
}
.w-6 {
  width: 1.5rem;
}
.w-8 {
  width: 2rem;
}
.w-\[90\%\] {
  width: 90%;
}
.w-full {
  width: 100%;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-\[200px\] {
  min-width: 200px;
}
.min-w-max {
  min-width: max-content;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-\[120px\] {
  max-width: 120px;
}
.max-w-md {
  max-width: 28rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-none {
  flex: none;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink-0 {
  flex-shrink: 0;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes pulse {

  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.resize-none {
  resize: none;
}
.resize {
  resize: both;
}
.appearance-none {
  appearance: none;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-x-4 {
  column-gap: 1rem;
}
.gap-y-0 {
  row-gap: 0px;
}
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.75rem * var(--tw-space-x-reverse));
  margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-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-x-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(2rem * var(--tw-space-x-reverse));
  margin-left: calc(2rem * 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));
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-pre-line {
  white-space: pre-line;
}
.break-words {
  overflow-wrap: break-word;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.border {
  border-width: 1px;
}
.border-2 {
  border-width: 2px;
}
.border-4 {
  border-width: 4px;
}
.border-l-4 {
  border-left-width: 4px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}
.border-t-transparent {
  border-top-color: transparent;
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-black\/20 {
  background-color: rgb(0 0 0 / 0.2);
}
.bg-black\/60 {
  background-color: rgb(0 0 0 / 0.6);
}
.bg-current {
  background-color: currentColor;
}
.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}
.bg-opacity-70 {
  --tw-bg-opacity: 0.7;
}
.object-contain {
  object-fit: contain;
}
.object-cover {
  object-fit: cover;
}
.p-1 {
  padding: 0.25rem;
}
.p-12 {
  padding: 3rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-\[6px\] {
  padding-top: 6px;
  padding-bottom: 6px;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-4 {
  padding-top: 1rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-75 {
  opacity: 0.75;
}
.ring-2 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-offset-2 {
  --tw-ring-offset-width: 2px;
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.sepia {
  --tw-sepia: sepia(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-3xl {
  --tw-backdrop-blur: blur(64px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.backdrop-blur-sm {
  --tw-backdrop-blur: blur(4px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.backdrop-filter {
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* ===========================================
   CLIPLIX DESIGN SYSTEM v2.0
   Modern Glassmorphism with Modular Architecture
   =========================================== */

/* Global overflow control - prevent page scrolling */
html, body {
  overflow: hidden;
  height: 100%;
}

/* Core System */

/* Components */
.hover\:translate-y-\[-1px\]:hover {
  --tw-translate-y: -1px;
  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: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\:underline:hover {
  text-decoration-line: underline;
}
.hover\:shadow-lg:hover {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
@media (min-width: 640px) {

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

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

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

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

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

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

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

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

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

