/* assets/fontawesome-free-6.7.2-web/css/kiss.min.css */
.fa {
  font-family: var(--fa-style-family,"Font Awesome 6 Free");
  font-weight: var(--fa-style,900);
}
.fa,
.fa-brands,
.fa-regular,
.fa-solid,
.fab,
.far,
.fas {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: var(--fa-display,inline-block);
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
}
.fa-brands:before,
.fa-regular:before,
.fa-solid:before,
.fa:before,
.fab:before,
.far:before,
.fas:before {
  content: var(--fa);
}
.fa-classic,
.fa-regular,
.fa-solid,
.far,
.fas {
  font-family: "Font Awesome 6 Free";
}
.fa-brands,
.fab {
  font-family: "Font Awesome 6 Brands";
}
.fa-spin {
  animation-name: fa-spin;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1turn);
  }
}
.fa-angle-double-right {
  --fa:"\f101";
}
.fa-arrow-down {
  --fa:"\f063";
}
.fa-arrow-left {
  --fa:"\f060";
}
.fa-arrow-right {
  --fa:"\f061";
}
.fa-arrow-up {
  --fa:"\f062";
}
.fa-ban {
  --fa:"\f05e";
}
.fa-bell {
  --fa:"\f0f3";
}
.fa-bolt {
  --fa:"\f0e7";
}
.fa-book {
  --fa:"\f02d";
}
.fa-brain {
  --fa:"\f5dc";
}
.fa-candy-cane {
  --fa:"\f786";
}
.fa-cat {
  --fa:"\f6be";
}
.fa-check {
  --fa:"\f00c";
}
.fa-check-square {
  --fa:"\f14a";
}
.fa-chevron-down {
  --fa:"\f078";
}
.fa-chevron-left {
  --fa:"\f053";
}
.fa-chevron-right {
  --fa:"\f054";
}
.fa-chevron-up {
  --fa:"\f077";
}
.fa-circle-check {
  --fa:"\f058";
}
.fa-circle-xmark {
  --fa:"\f057";
}
.fa-cloud-rain {
  --fa:"\f73d";
}
.fa-code-branch {
  --fa:"\f126";
}
.fa-cog {
  --fa:"\f013";
}
.fa-comment {
  --fa:"\f075";
}
.fa-comments {
  --fa:"\f086";
}
.fa-comment-dots {
  --fa:"\f4ad";
}
.fa-comment-slash {
  --fa:"\f4b3";
}
.fa-crown {
  --fa:"\f521";
}
.fa-dice {
  --fa:"\f522";
}
.fa-dog {
  --fa:"\f6d3";
}
.fa-dragon {
  --fa:"\f6d5";
}
.fa-download {
  --fa:"\f019";
}
.fa-dove {
  --fa:"\f4ba";
}
.fa-exclamation-triangle {
  --fa:"\f071";
}
.fa-film {
  --fa:"\f008";
}
.fa-flag {
  --fa:"\f024";
}
.fa-photo-film,
.fa-photo-video {
  --fa:"\f87c";
}
.fa-gamepad {
  --fa:"\f11b";
}
.fa-hand-paper {
  --fa:"\f256";
}
.fa-heart {
  --fa:"\f004";
}
.fa-history {
  --fa:"\f1da";
}
.fa-laptop {
  --fa:"\f109";
}
.fa-laugh {
  --fa:"\f599";
}
.fa-list-ul {
  --fa:"\f0ca";
}
.fa-lock {
  --fa:"\f023";
}
.fa-unlock {
  --fa:"\f09c";
}
.fa-magic {
  --fa:"\f0d0";
}
.fa-message {
  --fa:"\f27a";
}
.fa-microphone {
  --fa:"\f130";
}
.fa-moon {
  --fa:"\f186";
}
.fa-music {
  --fa:"\f001";
}
.fa-pause {
  --fa:"\f04c";
}
.fa-plane {
  --fa:"\f072";
}
.fa-play {
  --fa:"\f04b";
}
.fa-question {
  --fa:"\f128";
}
.fa-scroll {
  --fa:"\f70e";
}
.fa-seedling {
  --fa:"\f4d8";
}
.fa-shopping-bag {
  --fa:"\f290";
}
.fa-snowflake {
  --fa:"\f2dc";
}
.fa-spinner {
  --fa:"\f110";
}
.fa-square {
  --fa:"\f0c8";
}
.fa-sun {
  --fa:"\f185";
}
.fa-tag {
  --fa:"\f02b";
}
.fa-thermometer-full {
  --fa:"\f2c8";
}
.fa-thumbs-down {
  --fa:"\f165";
}
.fa-thumbs-up {
  --fa:"\f164";
}
.fa-times {
  --fa:"\f00d";
}
.fa-undo {
  --fa:"\f0e2";
}
.fa-arrows-rotate,
.fa-sync {
  --fa:"\f021";
}
.fa-user {
  --fa:"\f007";
}
.fa-user-circle {
  --fa:"\f2bd";
}
.fa-user-secret {
  --fa:"\f21b";
}
.fa-user-tie {
  --fa:"\f508";
}
.fa-utensils {
  --fa:"\f2e7";
}
.fa-volume-mute {
  --fa:"\f6a9";
}
.fa-volume-up {
  --fa:"\f028";
}
.fa-box {
  --fa:"\f466";
}
.fa-image {
  --fa:"\f03e";
}
.fa-images {
  --fa:"\f302";
}
.fa-at {
  --fa:"@";
}
.fa-bars {
  --fa:"\f0c9";
}
.fa-compress {
  --fa:"\f066";
}
.fa-copy {
  --fa:"\f0c5";
}
.fa-discord {
  --fa:"\f392";
}
.fa-edit {
  --fa:"\f044";
}
.fa-ellipsis-v,
.fa-ellipsis-vertical {
  --fa:"\f142";
}
.fa-envelope {
  --fa:"\f0e0";
}
.fa-expand {
  --fa:"\f065";
}
.fa-f {
  --fa:"F";
}
.fa-gift {
  --fa:"\f06b";
}
.fa-home {
  --fa:"\f015";
}
.fa-id-card {
  --fa:"\f2c2";
}
.fa-newspaper {
  --fa:"\f1ea";
}
.fa-palette {
  --fa:"\f53f";
}
.fa-pen {
  --fa:"\f304";
}
.fa-pen-fancy {
  --fa:"\f5ac";
}
.fa-pencil-alt {
  --fa:"\f303";
}
.fa-plus {
  --fa:"+";
}
.fa-shield-alt {
  --fa:"\f3ed";
}
.fa-spider {
  --fa:"\f717";
}
.fa-tags {
  --fa:"\f02c";
}
.fa-theater-masks {
  --fa:"\f630";
}
.fa-user-plus {
  --fa:"\f234";
}
.fa-users {
  --fa:"\f0c0";
}
.fa-video {
  --fa:"\f03d";
}
.fa-window-maximize {
  --fa:"\f2d0";
}
.fa-trash {
  --fa:"\f1f8";
}
.fa-eye-slash {
  --fa:"\f070";
}
:host,
:root {
  --fa-style-family-brands:"Font Awesome 6 Brands";
  --fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands";
}
@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("./fa-brands-400-Q3XCMWHQ.woff2") format("woff2"), url("./fa-brands-400-R2XQZCET.ttf") format("truetype");
}
.fa-brands,
.fab {
  font-weight: 400;
}
:host,
:root {
  --fa-style-family-regular:"Font Awesome 6 Free";
  --fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free";
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("./fa-regular-400-QSNYFYRT.woff2") format("woff2"), url("./fa-regular-400-XUOPSR7E.ttf") format("truetype");
}
.fa-regular,
.far {
  font-weight: 400;
}
:host,
:root {
  --fa-style-family-classic:"Font Awesome 6 Free";
  --fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free";
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("./fa-solid-900-5ZUYHGA7.woff2") format("woff2"), url("./fa-solid-900-PJNKLK6W.ttf") format("truetype");
}
.fa-solid,
.fas {
  font-weight: 900;
}

/* fonts/quicksand.css */
@font-face {
  font-family: "Quicksand";
  src: url("./Quicksand_Light-VRGQRP3U.otf") format("opentype"), url("./Quicksand_Light_Oblique-WJPL7IKE.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Quicksand";
  src: url("./Quicksand_Book-LM6WVIKW.otf") format("opentype"), url("./Quicksand_Book_Oblique-WYGJ3I4H.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Quicksand";
  src: url("./Quicksand_Bold-OFQND5FU.otf") format("opentype"), url("./Quicksand_Bold_Oblique-C43K72FY.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}

/* css/unified-notification.css */
.unified-notification {
  position: fixed;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--text-color);
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  border: 1px solid rgb(var(--accent-pink-rgb), 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-width: 300px;
  word-wrap: break-word;
  opacity: 0;
  transform: scale(0.8);
  transition:
    all 0.2s ease-out,
    top 0.3s ease-out,
    bottom 0.3s ease-out;
  pointer-events: auto;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
@media (max-width: 1024px) {
  .unified-notification {
    max-width: fit-content;
    margin: 0 20px;
    right: 0 !important;
  }
}
.unified-notification-clickable:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  border-color: rgb(var(--accent-pink-rgb), 0.5);
}
.unified-notification-clickable:active {
  transform: scale(0.98);
}
.unified-notification-show {
  opacity: 1;
  transform: scale(1);
  animation: unifiedNotificationFadeInScale 0.2s ease-out;
}
.unified-notification-hide {
  opacity: 0;
  transform: scale(0.8);
  animation: unifiedNotificationFadeOutScale 0.2s ease-in;
}
.unified-notification-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.unified-notification-content > i {
  font-size: 18px;
  color: rgb(var(--accent-pink-rgb), 0.8);
}
.unified-notification-message {
  font-weight: 500;
  line-height: 1.4;
}
.unified-notification-message a {
  color: var(--pink-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.unified-notification-message a:hover {
  color: var(--pink-glow);
}
.unified-notification-message a:focus-visible {
  outline: 2px solid var(--pink-glow);
  outline-offset: 2px;
}
.unified-notification-message a:visited {
  color: var(--pink-primary);
}
.unified-notification-message i {
  margin: 0 4px;
  font-size: 16px;
}
.unified-notification-message i.fa-heart {
  color: var(--color-error);
}
.unified-notification-message i.fa-bolt {
  color: var(--color-warning);
}
.unified-notification-message i.fa-user {
  color: var(--color-accent-purple);
}
.unified-notification-message i.fa-cog {
  color: var(--color-bg-dark-4);
}
.unified-notification-hint {
  font-size: 12px;
  opacity: 0.8;
  font-style: italic;
  margin-top: 4px;
}
.unified-notification-close {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--text-color);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  padding: 0;
}
.unified-notification-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.unified-notification-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.unified-notification-btn {
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
}
.unified-notification-btn.yes {
  background-color: rgba(244, 67, 54, 0.9);
  color: var(--text-color);
}
.unified-notification-btn.no {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-color);
}
.unified-notification-btn:hover {
  filter: brightness(1.1);
}
.unified-notification-success {
  border-color: rgba(76, 175, 80, 0.4);
}
.unified-notification-success i {
  color: rgba(76, 175, 80, 0.8);
}
.unified-notification-error {
  border-color: rgba(244, 67, 54, 0.4);
}
.unified-notification-error i {
  color: rgba(244, 67, 54, 0.8);
}
.unified-notification-warning {
  border-color: rgba(255, 193, 7, 0.4);
}
.unified-notification-warning i {
  color: rgba(255, 193, 7, 0.8);
}
.unified-notification-info {
  border-color: rgba(33, 150, 243, 0.4);
}
.unified-notification-info i {
  color: rgba(33, 150, 243, 0.8);
}
.unified-notification-locked {
  border-color: rgb(var(--accent-pink-rgb), 0.3);
}
.unified-notification-locked i {
  color: rgb(var(--accent-pink-rgb), 0.8);
}
@keyframes unifiedNotificationFadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes unifiedNotificationFadeOutScale {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}
.unified-notification[style*="translate(-50%, -50%)"].unified-notification-show {
  animation: unifiedNotificationFadeInScaleCenter 0.2s ease-out;
}
.unified-notification[style*="translate(-50%, -50%)"].unified-notification-hide {
  animation: unifiedNotificationFadeOutScaleCenter 0.2s ease-in;
}
.unified-notification-clickable[style*="translate(-50%, -50%)"]:hover {
  transform: translate(-50%, -50%) scale(1.02) !important;
}
.unified-notification-clickable[style*="translate(-50%, -50%)"]:active {
  transform: translate(-50%, -50%) scale(0.98) !important;
}
@keyframes unifiedNotificationFadeInScaleCenter {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes unifiedNotificationFadeOutScaleCenter {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* css/error-modal.css */
.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  margin: 1rem;
}
.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.error-details {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 1rem 0;
  font-family: monospace;
  background: var(--color-bg-light-1);
  padding: 0.5rem;
  border-radius: 4px;
}
.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}
.btn-primary {
  background: var(--color-accent-purple);
  color: var(--text-color);
}
.btn-secondary {
  background: #6c757d;
  color: var(--text-color);
}
.btn:hover {
  opacity: 0.9;
}

/* css/main.css */
:root {
  --pink-primary: #e2477f;
  --pink-hover: #f779a4;
  --pink-glow: #ff80ab;
  --pink-subtle: #fce4ec;
  --text-color: #fff5f8;
  --border-color: #251016;
  --bg-dark: #180a0f;
  --text-grey: rgb(212, 163, 190);
  --text-grey-dark: #8a7a82;
  --black-01: rgb(24, 10, 15, 0.1);
  --black-02: rgb(24, 10, 15, 0.2);
  --black-03: rgb(24, 10, 15, 0.3);
  --black-04: rgb(24, 10, 15, 0.4);
  --black-05: rgb(24, 10, 15, 0.5);
  --black-07: rgb(24, 10, 15, 0.7);
  --black-08: rgb(24, 10, 15, 0.8);
  --black-09: rgb(24, 10, 15, 0.9);
  --black-10: rgb(24, 10, 15, 1.0);
  --white-01: rgb(255, 245, 248, 0.1);
  --white-02: rgb(255, 245, 248, 0.2);
  --white-03: rgb(255, 245, 248, 0.3);
  --white-05: rgb(255, 245, 248, 0.5);
  --white-06: rgb(255, 245, 248, 0.6);
  --white-07: rgb(255, 245, 248, 0.7);
  --white-08: rgb(255, 245, 248, 0.8);
  --white-09: rgb(255, 245, 248, 0.9);
  --white-10: rgb(255, 245, 248, 1.0);
  --color-error: #ff5252;
  --color-success: #4caf50;
  --color-warning: #ffeb3b;
  --color-warning-dark: #ffc107;
  --why-color: rgb(21, 170, 191);
  --technical-color: rgb(130, 201, 30);
  --warning-color: rgb(250, 82, 82);
  --title-color: rgb(250, 176, 5);
  --color-text-muted: #666;
  --color-text-light: #ccc;
  --color-text-medium: #999;
  --color-text-dark: #888;
  --color-border-light: #777;
  --color-bg-dark-1: #374151;
  --color-bg-dark-2: #6b7280;
  --color-bg-dark-3: #111827;
  --color-bg-dark-4: #95a5a6;
  --color-bg-dark-5: #3a3a3a;
  --color-bg-dark-6: #2a2a2a;
  --color-bg-dark-7: #333;
  --color-bg-light-1: #f5f5f5;
  --color-error-light: #E57373;
  --color-accent-pink: #ff6b9d;
  --color-accent-light: #ff69b4;
  --color-accent-lighter: #faf;
  --color-accent-purple: #9d4edd;
  --pink-blush: #f8a5c2;
  --pink-mist: #ffd1dc;
  --pink-pressed: #c2185b;
  --pink-deep: #e91e63;
  --pink-vivid: #ff4081;
  --pink-vivid-deep: #f50057;
  --pink-soft: #ff8da1;
  --pink-lift: #ff85b3;
  --pink-lift-hover: #ff7fb1;
  --pink-lift-end: #ff98c4;
  --pink-violet: #c45bff;
  --pink-heading: #a166d8;
  --pink-mauve: #d168c3;
  --pink-mauve-hover: #b058a3;
  --pink-hot: #ff005c;
  --surface-rose: #2d1820;
  --accent-pink-rgb:
    255,
    107,
    157;
  --accent-light-rgb:
    255,
    105,
    180;
  --pink-primary-rgb:
    226,
    71,
    127;
  --pink-ink-rgb:
    216,
    27,
    96;
  --pink-blush-rgb:
    248,
    165,
    194;
  --pink-vivid-rgb:
    255,
    64,
    129;
  --pink-vivid-deep-rgb:
    245,
    0,
    87;
  --pink-hot-rgb:
    255,
    0,
    92;
  --pink-mauve-rgb:
    209,
    104,
    195;
  --surface-rose-rgb:
    45,
    24,
    32;
  --pink-primary-01: rgb(216, 27, 96, 0.1);
  --pink-primary-02: rgb(216, 27, 96, 0.2);
  --pink-primary-03: rgb(216, 27, 96, 0.3);
  --pink-primary-04: rgb(216, 27, 96, 0.4);
  --pink-primary-05: rgb(216, 27, 96, 0.5);
  --pink-primary-06: rgb(216, 27, 96, 0.6);
  --pink-primary-07: rgb(216, 27, 96, 0.7);
  --pink-primary-08: rgb(216, 27, 96, 0.8);
  --heart-color-1: var(--pink-primary);
  --heart-color-2: #9d4edd;
}
html[data-site=sfw] {
  --pink-primary: #2f6feb;
  --pink-hover: #5b8def;
  --pink-glow: #8eb4ff;
  --pink-subtle: #dbe7ff;
  --text-color: #f3f6fb;
  --text-grey: #9aa8c3;
  --text-grey-dark: #7d8da8;
  --border-color: #1a2744;
  --bg-dark: #0c1222;
  --black-01: rgb(12, 18, 34, 0.1);
  --black-02: rgb(12, 18, 34, 0.2);
  --black-03: rgb(12, 18, 34, 0.3);
  --black-04: rgb(12, 18, 34, 0.4);
  --black-05: rgb(12, 18, 34, 0.5);
  --black-07: rgb(12, 18, 34, 0.7);
  --black-08: rgb(12, 18, 34, 0.8);
  --black-09: rgb(12, 18, 34, 0.9);
  --black-10: rgb(12, 18, 34, 1.0);
  --white-01: rgb(243, 246, 251, 0.1);
  --white-02: rgb(243, 246, 251, 0.2);
  --white-03: rgb(243, 246, 251, 0.3);
  --white-05: rgb(243, 246, 251, 0.5);
  --white-06: rgb(243, 246, 251, 0.6);
  --white-07: rgb(243, 246, 251, 0.7);
  --white-08: rgb(243, 246, 251, 0.8);
  --white-09: rgb(243, 246, 251, 0.9);
  --white-10: rgb(243, 246, 251, 1.0);
  --color-accent-pink: #2f6feb;
  --color-accent-light: #5b8def;
  --color-accent-lighter: #8eb4ff;
  --color-accent-purple: #2f6feb;
  --pink-blush: #a8c4f8;
  --pink-mist: #d6e4ff;
  --pink-pressed: #1e4fd0;
  --pink-deep: #2563eb;
  --pink-vivid: #3b82f6;
  --pink-vivid-deep: #1d4ed8;
  --pink-soft: #9eb6ff;
  --pink-lift: #85b6ff;
  --pink-lift-hover: #7fb6ff;
  --pink-lift-end: #98c4ff;
  --pink-violet: #5b8cff;
  --pink-heading: #6684e0;
  --pink-mauve: #6894d1;
  --pink-mauve-hover: #5878c4;
  --pink-hot: #3b82f6;
  --surface-rose: #121c30;
  --accent-pink-rgb:
    47,
    111,
    235;
  --accent-light-rgb:
    91,
    141,
    239;
  --pink-primary-rgb:
    47,
    111,
    235;
  --pink-ink-rgb:
    47,
    111,
    235;
  --pink-blush-rgb:
    168,
    196,
    248;
  --pink-vivid-rgb:
    59,
    130,
    246;
  --pink-vivid-deep-rgb:
    29,
    78,
    216;
  --pink-hot-rgb:
    59,
    130,
    246;
  --pink-mauve-rgb:
    104,
    148,
    209;
  --surface-rose-rgb:
    18,
    28,
    48;
  --pink-primary-01: rgb(47, 111, 235, 0.1);
  --pink-primary-02: rgb(47, 111, 235, 0.2);
  --pink-primary-03: rgb(47, 111, 235, 0.3);
  --pink-primary-04: rgb(47, 111, 235, 0.4);
  --pink-primary-05: rgb(47, 111, 235, 0.5);
  --pink-primary-06: rgb(47, 111, 235, 0.6);
  --pink-primary-07: rgb(47, 111, 235, 0.7);
  --pink-primary-08: rgb(47, 111, 235, 0.8);
  --heart-color-1: var(--pink-primary);
  --heart-color-2: #2f6feb;
}
html[data-site=sfw] body {
  background-color: var(--bg-dark);
  color: var(--text-color);
}
* {
  font-family: Quicksand, sans-serif;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #111;
  color: var(--text-color);
}
main {
  max-width: 1800px;
  margin: 0 auto;
}
h1 {
  text-align: center;
}
#chat-container {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  background: rgb(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 20px;
  gap: 10px;
}
.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message {
  max-width: 80%;
  padding: 10px;
  border-radius: 10px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}
.message::before {
  content: attr(data-character-name);
  position: absolute;
  top: -20px;
  font-size: 0.8em;
  color: var(--text-color);
}
.user-message {
  background: #2c3e50;
  color: var(--text-color);
  align-self: flex-end;
  margin-left: 20%;
}
.character-message {
  background: #3498db;
  color: var(--text-color);
  align-self: flex-start;
  margin-right: 20%;
}
#chat-input-container {
  display: flex;
  gap: 10px;
}
#chat-input {
  flex-grow: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: rgb(255, 255, 255, 0.9);
}
button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  color: var(--text-color);
  background-color: #1a1a1a;
  cursor: pointer;
  transition: background 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgb(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgb(255, 255, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(255, 255, 255, 0.5);
}

/* css/side-nav.css */
#side-navigation-container {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 280px;
  background: rgb(26, 26, 26, 0.98);
  border-right: 1px solid rgb(255, 255, 255, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  overflow: hidden;
  transform: translateX(-100%);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#side-navigation-container.show {
  transform: translateX(0);
  box-shadow: 4px 0 16px rgb(0, 0, 0, 0.3);
}
#side-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.side-nav-logo {
  --side-nav-header-control-width: 96px;
  padding: 12px 16px 22px;
  border-bottom: 1px solid rgb(255, 255, 255, 0.1);
  margin-bottom: 10px;
  flex-shrink: 0;
}
.side-nav-header-controls-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: 1.1rem 0 0 0;
}
.side-nav-header-controls-left:empty {
  display: none;
}
.side-nav-header-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgb(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgb(255, 255, 255, 0.06);
  color: rgb(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.side-nav-header-btn:hover {
  background: rgb(255, 255, 255, 0.12);
  border-color: rgb(255, 255, 255, 0.2);
}
.side-nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 4px;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.side-nav-logo a:hover {
  opacity: 0.8;
}
.side-nav-logo .dropdown {
  padding: 0;
  position: relative;
  flex-shrink: 0;
}
.side-nav-logo .lang-dropbtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: var(--side-nav-header-control-width);
  padding: 6px 10px;
  background: rgb(255, 255, 255, 0.05);
  border: 1px solid rgb(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-color);
  font-size: 12px;
  font-weight: 600;
}
.side-nav-logo .lang-dropbtn:hover {
  background: rgb(255, 255, 255, 0.1);
}
.side-nav-logo .lang-code {
  color: var(--text-color);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.side-nav-logo .dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: rgb(26, 26, 26, 0.98);
  border: 1px solid rgb(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgb(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 9999;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}
.dropdown-content > button:hover {
  background: rgb(255, 255, 255, 1);
  color: var(--text-color);
  transform: translateX(2px);
}
.side-nav-logo .dropdown:hover .dropdown-content,
.side-nav-logo .dropdown-content.show {
  display: block;
}
.side-nav-logo .dropdown:hover .lang-dropbtn .fa-chevron-down,
.side-nav-logo .dropdown-content.show ~ .lang-dropbtn .fa-chevron-down {
  transform: rotate(180deg);
}
.side-nav-logo .lang-dropbtn .fa-chevron-down {
  transition: transform 0.2s ease;
}
.side-nav-logo .flag-icon {
  width: 20px;
  height: 15px;
}
.side-nav-logo .dropdown-content button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 15px;
  border: none;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: background 0.2s ease;
}
.side-nav-logo .dropdown-content button:hover {
  background: rgb(var(--accent-pink-rgb), 0.2);
}
.side-nav-logo .dropdown-content .flag-icon {
  width: 20px;
  height: 15px;
  flex-shrink: 0;
}
.side-nav-logo .dropdown-content .lang-text {
  font-size: 14px;
  white-space: nowrap;
}
.side-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  flex: 1;
  min-height: 0;
  overflow: hidden auto;
}
.side-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  min-height: 44px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.side-nav-links a:hover {
  background: rgb(255, 255, 255, 0.08);
  color: var(--text-color);
  transform: translateX(2px);
}
.side-nav-links a.active,
.side-nav-links a[aria-current=page] {
  background:
    linear-gradient(
      135deg,
      rgb(var(--pink-hot-rgb), 0.18) 0%,
      rgb(var(--accent-pink-rgb), 0.22) 55%,
      rgb(255, 255, 255, 0.06) 100%);
  border-color: rgb(var(--pink-hot-rgb), 0.34);
  box-shadow: 0 6px 18px rgb(var(--pink-hot-rgb), 0.12);
  color: var(--text-color);
}
.side-nav-links a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.side-nav-links a i {
  width: 18px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
  color: rgb(255, 255, 255, 0.9);
}
.side-nav-links a:hover i {
  color: var(--text-color);
}
.side-nav-links a.active i {
  color: var(--pink-primary);
}
.side-nav-links a[data-page-id=season_pass] {
  background:
    linear-gradient(
      135deg,
      rgb(255, 214, 0, 0.10) 0%,
      rgb(255, 170, 0, 0.12) 55%,
      rgb(255, 255, 255, 0.04) 100%);
  border-color: rgb(255, 214, 0, 0.20);
  box-shadow: 0 6px 18px rgb(255, 193, 7, 0.07);
  color: rgb(255, 255, 255, 0.92);
}
.side-nav-links a[data-page-id=season_pass] i {
  color: rgb(255, 214, 0, 0.86);
}
.side-nav-links a[data-page-id=season_pass]:hover {
  background:
    linear-gradient(
      135deg,
      rgb(255, 214, 0, 0.14) 0%,
      rgb(255, 170, 0, 0.16) 55%,
      rgb(255, 255, 255, 0.06) 100%);
  border-color: rgb(255, 214, 0, 0.28);
  box-shadow: 0 10px 24px rgb(255, 193, 7, 0.11);
}
.side-nav-links a[data-page-id=season_pass].active,
.side-nav-links a[data-page-id=season_pass][aria-current=page] {
  background:
    linear-gradient(
      135deg,
      rgb(255, 214, 0, 0.16) 0%,
      rgb(255, 170, 0, 0.18) 55%,
      rgb(255, 255, 255, 0.08) 100%);
  border-color: rgb(255, 214, 0, 0.32);
  box-shadow: 0 10px 28px rgb(255, 193, 7, 0.13);
  color: var(--text-color);
}
.side-nav-links a[data-page-id=season_pass].active i,
.side-nav-links a[data-page-id=season_pass][aria-current=page] i {
  color: rgb(255, 226, 92, 0.92);
}
.side-nav-guest-callouts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1100;
}
.side-nav-guest-callouts.side-nav-guest-callouts--hidden {
  visibility: hidden;
}
.side-nav-guest-callout {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateY(-50%);
  animation: sideNavGuestCalloutNudge 1.35s ease-in-out infinite;
  filter: drop-shadow(0 10px 22px rgb(0, 0, 0, 0.45));
}
.side-nav-guest-callout.is-theatre {
  animation-delay: 0.35s;
}
.side-nav-guest-callout-arrow {
  position: relative;
  width: 12px;
  height: 14px;
}
.side-nav-guest-callout-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 10px solid rgb(var(--accent-pink-rgb), 0.98);
}
.side-nav-guest-callout-label {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-color);
  background: var(--pink-primary);
  border: 1px solid rgb(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgb(var(--accent-pink-rgb), 0.32);
}
@keyframes sideNavGuestCalloutNudge {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-50%) translateX(-6px);
    opacity: 1;
  }
}
.side-nav-links a .nav-sticker {
  margin-left: auto;
  margin-right: auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255, 255, 255, 0.14);
  background: rgb(255, 255, 255, 0.08);
  color: rgb(255, 255, 255, 0.95);
  flex-shrink: 0;
}
.side-nav-links a .nav-sticker--new {
  border-color: rgb(var(--accent-pink-rgb), 0.35);
  background: rgb(var(--accent-pink-rgb), 0.18);
  color: var(--text-color);
  box-shadow: 0 2px 10px rgb(var(--accent-pink-rgb), 0.18);
}
.side-nav-user {
  padding: 12px 16px 16px;
  border-top: 1px solid rgb(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.side-nav-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-color);
}
.side-nav-user-profile:hover {
  background: rgb(255, 255, 255, 0.05);
}
.side-nav-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--pink-primary);
}
.side-nav-user-info {
  flex: 1;
  min-width: 0;
}
.side-nav-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-nav-user-row > .side-nav-user-profile {
  flex: 1;
  min-width: 0;
}
.side-nav-username {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-nav-user-tier {
  font-size: 12px;
  color: var(--text-grey);
}
.side-nav-discord-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--text-grey);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.side-nav-discord-link:hover {
  background: rgb(88, 101, 242, 0.2);
  color: rgb(88, 101, 242);
}
.side-nav-discord-link i {
  font-size: 15px;
}
.side-nav-actions {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.side-nav-action-btn {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  background: rgb(255, 255, 255, 0.05);
  border: 1px solid rgb(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
#side-navigation-container .side-nav-action-btn.notification-button {
  width: auto;
  height: auto;
  border-radius: 8px;
  background: rgb(255, 255, 255, 0.05);
}
.side-nav-action-btn:hover {
  background: rgb(255, 255, 255, 0.1);
  color: var(--text-color);
}
.side-nav-action-btn i {
  font-size: 16px;
}
.side-nav-energy-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgb(0, 0, 0, 0.4);
  border: 1px solid rgb(255, 255, 255, 0.1);
  border-radius: 8px;
  width: auto;
  flex: none;
}
.side-nav-energy-icon {
  color: var(--color-warning);
  font-size: 16px;
  filter: drop-shadow(0 0 2px rgb(255, 235, 59, 0.5));
}
.energy-count {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 700;
  font-family: "Courier New", monospace;
}
.side-nav-energy-container .energy-count:first-child {
  margin-right: 0;
}
.side-nav-energy-timer {
  color: var(--color-text-light);
  font-size: 11px;
  font-family: "Courier New", monospace;
  min-width: 35px;
  text-align: right;
}
.mobile-menu-btn {
  display: flex;
  position: fixed !important;
  top: 10px;
  left: 10px;
  width: 42px;
  height: 42px;
  background: rgb(26, 26, 26, 0.95);
  border: 1px solid rgb(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-color);
  cursor: pointer;
  z-index: 999;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgb(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.mobile-menu-btn:hover {
  background: rgb(26, 26, 26, 1);
  transform: scale(1.05);
}
body.modal-open .mobile-menu-btn {
  display: none !important;
}
@media (width <= 1024px) {
  body.modal-open {
    padding-left: 0 !important;
  }
}
.mobile-menu-btn i {
  font-size: 20px;
}
.side-nav-overlay {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgb(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  will-change: opacity;
}
.side-nav-overlay.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  touch-action: pan-y;
}
@media (width <= 1024px) {
  #side-navigation-container {
    width: 260px;
    height: 100% !important;
    top: 0 !important;
    bottom: 0 !important;
  }
  .side-nav-logo {
    padding: 12px 12px 20px;
  }
  .side-nav-logo a {
    font-size: 14px;
  }
  .side-nav-logo .lang-dropbtn {
    padding: 5px 8px;
    gap: 4px;
    width: 90px;
  }
  .side-nav-logo .lang-code {
    font-size: 11px;
  }
  .side-nav-logo .dropdown-content {
    right: -8px;
  }
}
@media (width <= 480px) {
  #side-navigation-container {
    width: 80%;
    max-width: 280px;
  }
  .side-nav-links a {
    padding: 3px 12px;
    font-size: 14px;
    gap: 12px;
  }
}
@media (width >= 1025px) {
  #side-navigation-container {
    transform: translateX(0) !important;
    box-shadow: 4px 0 16px rgb(0, 0, 0, 0.3);
  }
  body {
    padding-left: 280px;
  }
  body.no-side-nav-padding,
  body.no-side-nav-padding.side-nav-open {
    padding-left: 0;
  }
  body.no-side-nav-padding #side-navigation-container {
    transform: translateX(-100%) !important;
    box-shadow: none;
  }
  body.no-side-nav-padding.side-nav-open #side-navigation-container {
    transform: translateX(0) !important;
    box-shadow: 4px 0 16px rgb(0, 0, 0, 0.3);
  }
  .mobile-menu-btn {
    display: none !important;
  }
  .side-nav-overlay.show {
    display: none;
  }
  body.no-side-nav-padding .side-nav-overlay.show {
    display: block;
  }
  body:not(.no-side-nav-padding) .side-nav-header-controls-left {
    display: none;
  }
}
.side-nav-action-btn .notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--pink-primary);
  color: var(--text-color);
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid rgb(26, 26, 26, 0.95);
  box-shadow: 0 2px 4px rgb(0, 0, 0, 0.2);
}
.side-nav-action-btn .notification-badge:not(:empty) {
  display: flex;
}
.side-nav-auth {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-nav-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-size: 14px;
}
.side-nav-auth-btn.primary {
  background:
    linear-gradient(
      135deg,
      var(--pink-hover) 0%,
      var(--pink-primary) 100%);
  color: var(--text-color);
  box-shadow: 0 2px 8px var(--pink-primary-03);
}
.side-nav-auth-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--pink-primary-05);
}
.side-nav-auth-btn.secondary {
  background: rgb(255, 255, 255, 0.05);
  color: var(--text-color);
  border: 1px solid rgb(255, 255, 255, 0.1);
}
.side-nav-auth-btn.secondary:hover {
  background: rgb(255, 255, 255, 0.1);
  color: var(--text-color);
}
#side-navigation-container::-webkit-scrollbar {
  width: 6px;
}
#side-navigation-container::-webkit-scrollbar-track {
  background: rgb(0, 0, 0, 0.2);
}
#side-navigation-container::-webkit-scrollbar-thumb {
  background: rgb(255, 255, 255, 0.2);
  border-radius: 3px;
}
#side-navigation-container::-webkit-scrollbar-thumb:hover {
  background: rgb(255, 255, 255, 0.3);
}
.side-nav-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.side-nav-logo-row .logo-link {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
}
.side-nav-logo-row .dropdown {
  flex-shrink: 0;
  margin-top: 1.1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 8px;
  transition: opacity 0.2s ease;
}
.logo-link:hover {
  opacity: 0.8;
}
.text-logo {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  position: relative;
}
.text-logo-name {
  color: var(--text-color);
}
.text-logo-tld {
  color: var(--pink-primary);
  margin-left: 1px;
  font-weight: 700;
}
.text-logo-beta {
  position: absolute;
  margin-top: 2.2rem;
  margin-left: 10%;
  font-weight: normal;
  font-size: 0.75rem;
  color: var(--text-color);
}
.lang-dropdown-arrow {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.7;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  text-align: left;
  background: none;
  color: var(--text-color);
  transition: background-color 0.2s ease;
}
.lang-option:hover {
  background-color: rgb(var(--accent-pink-rgb), 0.2);
}
.notification-panel {
  position: fixed;
  display: flex;
  flex-direction: column;
  max-height: min(400px, calc(100vh - 24px));
  background: #1a1a1a;
  border: 1px solid var(--color-bg-dark-7);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  overflow: hidden;
}
.notification-panel-header {
  padding: 16px;
  padding-right: 44px;
  border-bottom: 1px solid var(--color-bg-dark-7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.notification-panel-title {
  margin: 0;
  color: var(--text-color);
  font-size: 16px;
  flex: 1;
}
.notification-panel-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--text-color);
  cursor: pointer;
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.notification-panel-close-btn--hover,
.notification-panel-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}
.notification-panel-content {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.notification-panel-empty {
  padding: 20px;
  text-align: center;
  color: var(--color-text-medium);
}
.notification-panel-sentinel {
  height: 1px;
  flex-shrink: 0;
  pointer-events: none;
}
.notification-panel-footer {
  flex-shrink: 0;
}
.notification-panel-loader {
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 0;
  overflow: hidden;
  padding: 0;
  color: var(--color-text-medium);
  font-size: 13px;
}
.notification-panel-loader.is-visible {
  visibility: visible;
  height: auto;
  padding: 12px 16px;
}
.notification-panel-loader-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--pink-primary);
  border-radius: 50%;
  animation: notification-panel-spin 0.7s linear infinite;
}
@keyframes notification-panel-spin {
  to {
    transform: rotate(360deg);
  }
}
.notification-item {
  padding: 16px;
  border-bottom: 1px solid var(--color-bg-dark-7);
  cursor: pointer;
  transition: background-color 0.2s;
}
.notification-item--read {
  opacity: 0.7;
}
.notification-item--hover,
.notification-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.notification-item-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.notification-priority-bar {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}
.notification-item-body {
  flex: 1;
}
.notification-item-title {
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 4px;
}
.notification-item-message {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.4;
}
.notification-item-date {
  color: var(--color-text-dark);
  font-size: 12px;
  margin-top: 8px;
}
.notification-item--actionable {
  position: relative;
}
.notification-action-indicator {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink-primary);
  font-weight: bold;
  font-size: 18px;
}

/* css/create.css */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hidden {
  display: none !important;
}
.form-actions--right {
  justify-content: flex-end;
  margin-top: 12px;
  gap: 10px;
}
.preview-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
}
.preview-placeholder--lg {
  font-size: 1.2em;
}
.preview-surface {
  width: 100%;
  margin-top: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.preview-surface--bg {
  min-height: 500px;
}
.preview-surface--banner {
  aspect-ratio: 1 / 1;
  min-height: 400px;
}
.preview-surface--card {
  width: 224px;
  height: 288px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
  position: relative;
}
.character-card-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.character-card-slot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview-surface-clear {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.7);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.preview-surface-clear::before {
  content: "\d7";
  font-size: 18px;
  line-height: 1;
}
.preview-surface-clear:focus-visible {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
}
.preview-surface--card.is-cropping .preview-placeholder,
.preview-surface--card.is-cropping .preview-img,
.preview-surface--card.is-cropping .character-card-video-preview,
.preview-surface--card.is-cropping .preview-surface-clear {
  visibility: hidden;
}
.preview-surface--card.is-cropping .media-crop-viewport--portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.preview-img,
.cast-preview-img {
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.preview-img--banner {
  height: auto;
  max-height: 100%;
}
.preview-surface.has-bg-image {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
#custom-bg-name {
  width: 28%;
  margin-top: 10px;
  display: block;
}
#custom-bg-generate-btn {
  margin-top: 8px;
  display: inline-block;
}
.outfit-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: none;
}
.outfit-tooltip.is-visible {
  display: block;
  opacity: 1;
}
.form-field--spaced {
  margin-top: 10px;
}
.cast-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 15px;
}
.cast-column {
  min-width: 0;
}
.cast-hscroll {
  width: 100%;
  min-width: 0;
}
.cast-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.search-root {
  margin-top: 8px;
  width: 100%;
}
.search-root.is-disabled {
  pointer-events: none;
}
.search-dropdown-host {
  position: relative;
}
.search-dropdown {
  position: relative;
  width: 100%;
}
.search-dropdown__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgb(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgb(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.95rem;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.search-dropdown__trigger:focus {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
  border-color: var(--pink-primary-04);
}
.search-dropdown__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-dropdown__label--unavailable {
  color: var(--color-error);
}
.search-dropdown__chevron {
  margin-left: 12px;
  color: var(--text-grey);
  transition: transform 0.15s ease;
}
[data-open=true] .search-dropdown__chevron {
  transform: rotate(180deg);
}
.search-dropdown__panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 40;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid rgb(255, 255, 255, 0.15);
  background: rgb(7, 14, 30, 0.95);
  padding: 12px;
  box-shadow: 0 20px 60px rgb(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}
.search-dropdown__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgb(255, 255, 255, 0.1);
  background: rgb(255, 255, 255, 0.05);
}
.search-dropdown__input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
}
.search-dropdown__input:focus {
  outline: none;
}
.search-dropdown__input::placeholder {
  color: rgb(255, 255, 255, 0.5);
}
.search-dropdown__options {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgb(255, 255, 255, 0.05);
  background: rgb(0, 0, 0, 0.4);
}
.search-dropdown__option {
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #fff;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
}
.search-dropdown__option--active,
.search-dropdown__option:hover,
.search-dropdown__option:focus {
  background: rgb(255, 255, 255, 0.12);
}
.search-dropdown__option--disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.search-dropdown__option--unavailable {
  color: var(--color-error);
}
.search-dropdown__empty {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: rgb(255, 255, 255, 0.7);
}
.recruit-page {
  background: #0b1220;
  color: #e5e7eb;
  min-height: 100vh;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}
.create-page-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
  min-height: 42px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 16px;
  box-sizing: border-box;
}
.create-page-title {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--text-color, #e2e8f0);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 4px rgb(0, 0, 0);
  white-space: normal;
  overflow-wrap: anywhere;
}
.create-page-header > :not(.create-page-title) {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}
.create-gallery-link {
  flex-shrink: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgb(255, 255, 255, 0.14);
  background: rgb(8, 10, 18, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.create-gallery-link:hover,
.create-gallery-link:focus {
  color: #fff;
  border-color: var(--pink-primary);
  outline: none;
}
.create-gallery-link:focus-visible {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
}
.create-gallery-link span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.create-page-header .clear-draft-btn {
  position: static;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
}
.recruit-main {
  width: 100%;
  padding: 32px 16px 48px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}
@media (width <= 1024px) {
  .create-page-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    column-gap: 4px;
  }
  .create-page-title {
    font-size: 1.05rem;
  }
  .recruit-main {
    padding: 10px 10px 48px;
  }
}
.recruit-page #character-form {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin: 0 auto;
}
.recruit-progress {
  margin-bottom: 24px;
}
.recruit-chip--active {
  opacity: 1;
  border-color: var(--pink-primary);
  background: #0b1726;
}
.recruit-chip--active .recruit-chip__dot,
.recruit-chip--done .recruit-chip__dot {
  background: var(--pink-primary);
}
.recruit-chip--done {
  opacity: 1;
  border-color: #16a34a;
}
.recruit-chip--inactive {
  opacity: 0.65;
}
.recruit-panel {
  border: 1px solid #1f2937;
  background: rgb(15, 23, 42, 0.6);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}
.recruit-panel--active {
  background: rgb(13, 13, 13, 0.95);
}
.owned-edit-panel {
  margin-top: 8px;
}
.owned-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.owned-edit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  color: #e2e8f0;
  cursor: pointer;
  padding: 0;
}
.owned-edit-card .picker-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.owned-edit-card:focus-visible {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
}
.owned-edit-card.is-selected {
  border-color: var(--pink-primary);
}
.owned-edit-card img {
  width: 100%;
  object-fit: cover;
  display: block;
}
#owned-character-edit-panel .owned-edit-card img {
  aspect-ratio: 7 / 9;
}
#owned-scenario-edit-panel .owned-edit-card img {
  aspect-ratio: 1;
}
.owned-edit-card-name {
  padding: 8px;
  font-size: 13px;
  text-align: center;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
}
.recruit-panel.create-panel > .panel-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.recruit-panel.create-panel > .panel-header > .panel-title {
  margin: 0;
}
.panel-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.panel-title-group > .panel-title {
  margin: 0;
}
.panel-title-info {
  position: static;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 4px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-color, #fff);
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}
.panel-title-info:hover,
.panel-title-info:focus-visible {
  opacity: 1;
  transform: scale(1.15);
  background: rgba(0, 0, 0, 0.8);
  outline: none;
}
section[data-step="4"].recruit-panel.create-panel {
  justify-self: center;
  width: 80%;
  margin-inline: auto;
}
#step4-form {
  align-items: center;
}
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row {
  display: grid;
  gap: 12px;
}
.form-row--two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0 10px;
}
label.form-field.ai-wand-enabled {
  position: relative;
}
label.form-field.ai-wand-enabled > .form-label {
  padding-right: 44px;
}
label.form-field.ai-wand-enabled > .ai-wand-btn {
  position: absolute;
  top: 0;
  right: 0;
}
.ai-wand-btn {
  border: 1px solid rgb(255, 255, 255, 0.14);
  background: rgb(255, 255, 255, 0.06);
  color: rgb(255, 255, 255, 0.85);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.ai-wand-btn:hover {
  background: rgb(255, 255, 255, 0.10);
  border-color: rgb(255, 255, 255, 0.22);
}
.ai-wand-btn:active {
  transform: translateY(1px);
}
.ai-wand-btn:focus {
  outline: 2px solid rgb(var(--accent-pink-rgb), 0.6);
  outline-offset: 2px;
}
.ai-field-edit-modal .ai-field-modal-content {
  width: min(92vw, 560px);
  height: auto;
  max-height: 85vh;
  overflow: hidden;
}
.ai-field-edit-modal .ai-field-modal-content .close-btn {
  left: auto;
  right: 14px;
  top: 14px;
}
.ai-field-modal-body {
  padding: 18px 18px 16px;
}
.ai-field-modal-title {
  margin: 0 0 8px 0;
  color: var(--text-color);
  font-size: 1.15rem;
  font-weight: 700;
}
.ai-field-modal-subtitle {
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}
.ai-field-modal-body .form-field {
  margin: 0;
}
.ai-field-modal-body .form-label {
  margin-bottom: 8px;
}
.form-textarea--taller {
  min-height: 120px;
}
.form-input,
.form-select,
.form-textarea {
  border: 1px solid #1f2937;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 1px var(--pink-primary);
}
.form-textarea {
  min-height: 72px;
  resize: vertical;
}
.form-textarea--tall {
  min-height: 96px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.form-actions--center {
  justify-content: center;
}
.skip-assistant-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}
.skip-assistant-link:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}
.skip-assistant-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
  border-radius: 2px;
}
.step2-kv-wand-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}
.step2-kv-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step2-kv-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 8px;
  align-items: start;
}
.step2-kv-row .kv-value {
  resize: vertical;
}
.step2-kv-row .kv-key,
.step2-kv-row .kv-value {
  line-height: 1.25;
}
.step2-kv-row .step2-kv-delete {
  margin-top: 1px;
}
.step2-kv-delete {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 29, 29, 0.7);
  border: 1px solid #991b1b;
  color: #f87171;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.step2-kv-delete:hover {
  background: #991b1b;
  border-color: #b91c1c;
}
.step2-add-row-btn {
  align-self: flex-start;
  background: rgba(132, 204, 22, 0.1);
  border: 1px solid rgba(132, 204, 22, 0.3);
  color: #a3e635;
  font-size: 13px;
  padding: 7px 14px;
}
.step2-add-row-btn:hover {
  background: rgba(132, 204, 22, 0.18);
  border-color: rgba(132, 204, 22, 0.5);
}
.step2-advanced {
  margin-top: 4px;
}
.step2-advanced-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #94a3b8;
  padding: 4px 0;
  width: fit-content;
}
.step2-advanced-toggle::-webkit-details-marker {
  display: none;
}
.step2-advanced-chevron {
  font-size: 11px;
  transition: transform 0.2s ease;
}
details[open] .step2-advanced-chevron {
  transform: rotate(90deg);
}
.step2-advanced-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}
.step2-advanced-title {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0;
}
.step2-lora-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.step2-lora-row .form-input {
  flex: 1;
  min-width: 0;
}
.step2-lora-note {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}
.step2-lora-note span {
  color: var(--text-color);
}
.step2-advanced.is-sfw-lora-locked > .step2-advanced-content > .step2-advanced-title,
.step2-advanced.is-sfw-lora-locked .step2-lora-row input,
.step2-advanced.is-sfw-lora-locked #free-image-add-lora {
  opacity: 0.5;
  cursor: not-allowed;
}
.premium-appearance-warning {
  margin: 0 0 12px;
  padding: 10px 12px;
  text-align: center;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.premium-appearance-warning[hidden] {
  display: none;
}
.character-prompt-warnings {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
  color: #fbbf24;
  font-size: 0.9rem;
  line-height: 1.4;
}
.character-prompt-warnings[hidden] {
  display: none;
}
.prompt-helper__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.scenario-cast-previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
  width: 100%;
}
.scenario-cast-party-stage {
  position: relative;
  width: 100%;
  --party-header-h: 0px;
  --party-image-h: 420px;
}
.scenario-cast-party-stage .character-party-shared-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  z-index: 0;
  pointer-events: none;
}
.scenario-cast-party-stage .character-party-columns {
  position: relative;
  z-index: 1;
  width: 100%;
  gap: 5%;
}
.scenario-cast-party-stage .character-preview-wrapper {
  position: relative;
  z-index: 1;
}
.scenario-cast-party-stage .character-preview-card {
  background-color: transparent;
  border: none;
}
.scenario-cast-fields {
  position: relative;
}
.scenario-cast-fields > .ai-wand-btn.character-goals-wand {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}
.greeting-intents-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}
.greeting-intent-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
  position: relative;
}
.greeting-intent-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgb(255, 255, 255, 0.2);
  background: rgb(127, 29, 29, 0.55);
  color: #fecaca;
  cursor: pointer;
  padding: 0;
}
.greeting-intent-row > .greeting-intent-wand {
  position: absolute;
  top: 0;
  right: 36px;
  width: 28px;
  height: 28px;
}
.greeting-intent-row:not(:has(.greeting-intent-remove)) > .greeting-intent-wand {
  right: 0;
}
.greeting-intent-remove:hover {
  background: #991b1b;
}
.scenario-cast-previews > * {
  min-width: 0;
}
.scenario-queued-card {
  width: min(720px, 100%);
  border: 1px solid rgb(255, 255, 255, 0.12);
  background: rgb(15, 23, 42, 0.95);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 70px rgb(0, 0, 0, 0.6);
}
.scenario-queued-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.scenario-queued-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: #e2e8f0;
}
.scenario-queued-sub {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #cbd5e1;
}
.scenario-queued-media {
  margin-top: 12px;
  width: 100%;
  height: 320px;
  border-radius: 12px;
  background: rgb(0, 0, 0, 0.2);
  border: 1px dashed rgb(255, 255, 255, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scenario-queued-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.scenario-queued-media-placeholder {
  color: var(--text-grey);
  font-style: italic;
}
.scenario-queued-progress {
  margin-top: 12px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.scenario-queued-progress-fill {
  height: 100%;
  width: 5%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--pink-primary) 0%,
      var(--pink-hover) 50%,
      var(--pink-primary) 100%);
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
  transition: width 0.4s ease;
}
.scenario-queued-ready-eta,
.scenario-queued-hires-eta {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-grey, #94a3b8);
  line-height: 1.4;
}
.scenario-queued-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.form-help {
  font-size: 13px;
  color: #94a3b8;
}
.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn-primary {
  background: var(--pink-primary);
  color: #0b1220;
}
.btn-primary:hover {
  background: var(--pink-hover);
}
.btn-primary.disabled,
.btn-primary:disabled,
.btn-primary[aria-disabled=true] {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}
.btn-primary.disabled:hover,
.btn-primary:disabled:hover,
.btn-primary[aria-disabled=true]:hover {
  background: #334155;
}
.btn-primary.disabled:active,
.btn-primary:disabled:active,
.btn-primary[aria-disabled=true]:active {
  transform: none;
}
.btn:active {
  transform: translateY(1px);
}
.is-hidden {
  display: none !important;
}
.ai-progress-status {
  margin-top: 12px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-color);
  min-height: 1.4em;
}
.panel-header + .ai-progress-status {
  margin-top: 0;
}
.recruit-panel :is(input, textarea, select, button):disabled,
.rich-prompt-editor[aria-disabled=true] {
  cursor: not-allowed;
}
#step1-form.is-assistant-locked {
  opacity: 0.75;
}
.ai-progress-status__ellipsis {
  display: inline-block;
  min-width: 1.25em;
  text-align: left;
}
.ai-progress-status__kaomoji {
  display: inline-block;
  white-space: nowrap;
}
.create-bg {
  background-image: url(/assets/images/bg/create-background.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  width: 100%;
}
.recruit-main {
  background-image: url(/assets/images/recruit-character-background.webp);
}
.preview-wrapper {
  margin: 12px 0;
}
.preview-card .card-front {
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-grey);
  font-style: italic;
  padding: 12px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.preview-card {
  min-height: 320px;
}
.create-video-background {
  background-image:
    url(/assets/images/create_video_background.webp),
    url(/assets/images/createvideobackground.webp),
    url(/assets/images/bg/create-background.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
#create-video-panel.create-panel {
  max-width: 1600px;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.create-container {
  position: fixed;
  height: 100vh;
  width: 100%;
  margin: 0;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  z-index: 1;
}
body {
  margin: 0;
  padding: 0;
  background: #1a1a1a;
  font-family: Arial, sans-serif;
}
.create-panel {
  padding: 30px;
  width: 100%;
  max-width: 920px;
  min-width: 0;
  overflow: hidden visible;
  box-sizing: border-box;
}
#character-queued-panel.create-panel,
#character-queued-panel.recruit-panel {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  max-width: 920px;
  margin: 8px auto 0;
}
#character-queued-root {
  padding: 0;
  display: flex;
  justify-content: center;
}
#character-queued-panel .scenario-queued-card {
  width: min(620px, 100%);
  margin: 0 auto;
  height: fit-content;
}
#character-queued-panel .scenario-queued-media {
  height: 75%;
}
#character-queued-panel .scenario-queued-media img {
  object-fit: cover;
  object-position: 50% 50%;
}
#character-queued-panel .scenario-queued-heading {
  font-size: 1rem;
}
#character-queued-panel .scenario-queued-sub {
  font-size: 0.9rem;
}
#scenario-queued-root {
  display: flex;
  justify-content: center;
}
#scenario-queued-panel .scenario-queued-card {
  width: min(720px, 100%);
}
#scenario-queued-panel .scenario-queued-media {
  height: 70%;
}
#scenario-queued-panel .scenario-queued-media img {
  object-fit: cover;
  object-position: 50% 50%;
}
.scenario-queued-countdown.is-hidden,
.scenario-queued-start-btn.is-hidden {
  display: none !important;
}
#scenario-queued-panel.recruit-panel,
#scenario-queued-panel.recruit-panel--active {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0;
}
#ai-character-panel {
  display: block;
}
.create-panel::-webkit-scrollbar {
  width: 8px;
}
.create-panel::-webkit-scrollbar-track {
  background: rgb(26, 26, 26, 0.5);
}
.create-panel::-webkit-scrollbar-thumb {
  background-color: rgb(255, 255, 255, 0.3);
  border-radius: 4px;
}
.form-row {
  display: flex;
  margin-bottom: 20px;
}
.form-row:first-of-type {
  gap: 20px;
  display: inline-flex;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}
.form-row:first-of-type .form-group {
  margin: 0;
  flex: none;
}
.form-row .form-group {
  min-width: auto;
}
.creation-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
#adventure-title,
#scenario-description,
#adventure-banner-prompt,
#ai-request {
  display: block;
  width: 95%;
}
#custom-bg-textarea {
  display: block;
  width: 95%;
  margin-top: 10px;
}
#message-1,
#message-2,
#message-3 {
  display: block;
  width: 100%;
}
#adventure-title {
  width: 250px;
}
#scenario-description,
#adventure-banner-prompt {
  min-height: 60px;
}
.required {
  color: var(--pink-vivid);
  margin-left: 4px;
  font-weight: bold;
}
h1 {
  color: var(--text-color);
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  text-shadow: 0 2px 4px rgb(0, 0, 0, 0.3);
}
.form-group {
  position: relative;
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: rgb(255, 255, 255, 0.9);
  font-weight: 500;
  user-select: text;
}
.form-group input[type=text],
.form-group input[type=number],
.form-group input[type=date],
.form-group select,
.form-group textarea {
  padding: 10px;
  background: rgb(255, 255, 255, 0.1);
  border: 1px solid rgb(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-color);
  font-size: 1em;
  transition: all 0.3s ease;
  padding-right: 30px;
  margin-bottom: 2px;
}
#character-name {
  width: 120px;
}
#character-age {
  width: 50px;
}
#character-height {
  width: 70px;
}
#character-ethnicity {
  width: 120px;
}
#character-occupation {
  width: 130px;
}
.form-group input[type=text]:focus,
.form-group input[type=number]:focus,
.form-group input[type=date]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-light);
  background: rgb(255, 255, 255, 0.15);
}
.form-group select option {
  background: #1a1a1a;
  color: var(--text-color);
}
.image-preview {
  margin-top: 10px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgb(255, 255, 255, 0.1);
  border: 2px solid rgb(255, 255, 255, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.save-btn {
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-weight: bold;
  background:
    linear-gradient(
      45deg,
      var(--color-accent-light),
      var(--pink-soft));
  color: var(--text-color);
}
.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgb(var(--accent-light-rgb), 0.3);
}
.preview-container {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.close-preview {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #666;
}
.close-preview:hover {
  color: #333;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: rgb(26, 26, 26, 0.98);
  min-width: 160px;
  box-shadow: 0 8px 16px rgb(0, 0, 0, 0.2);
  border-radius: 4px;
  border: 1px solid rgb(255, 255, 255, 0.1);
  z-index: 1;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px !important;
  white-space: nowrap;
}
.flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}
.lang-text {
  margin-left: 8px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.panel-header h3 {
  color: var(--text-color);
  font-size: 1.8em;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.back-btn {
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 12px;
  background: rgb(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: background-color 0.3s ease;
  z-index: 1;
}
.back-btn:hover {
  background: rgb(255, 255, 255, 0.2);
}
.back-btn i {
  margin-right: 8px;
}
input[type=file]::-webkit-file-upload-button {
  visibility: hidden;
}
input[type=file]::before {
  color: rgb(255, 255, 255, 0.9);
}
input[type=file] {
  color: rgb(255, 255, 255, 0.9);
}
@document url-prefix() {
  input[type=file] {
    color: rgb(255, 255, 255, 0.9);
  }
}
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
#character-info-confirmation.modal,
#scenario-info-confirmation.modal {
  position: fixed;
  inset: 0;
  background: rgb(0, 0, 0, 0.8);
  z-index: 1100;
  display: none;
}
#character-info-confirmation .modal-content,
#scenario-info-confirmation .modal-content {
  background: rgb(26, 26, 26, 0.98);
  padding: 30px;
  border-radius: 12px;
  max-width: 800px;
  margin: 60px auto;
  position: relative;
  border: 1px solid rgb(255, 255, 255, 0.1);
  color: var(--text-color);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgb(255, 255, 255, 0.1);
}
.visibility-buttons {
  display: flex;
  gap: 10px;
}
.close-confirmation-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgb(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-confirmation-modal:hover {
  color: var(--text-color);
}
.modal-footer {
  margin-top: 30px;
  text-align: right;
}
#character-description {
  min-height: 100px;
  resize: vertical;
  padding: 10px;
  background: rgb(255, 255, 255, 0.05);
  border: 1px solid rgb(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-color);
  font-size: 1em;
  transition: all 0.3s ease;
}
#character-description:focus {
  outline: none;
  border-color: var(--pink-primary);
  background: rgb(255, 255, 255, 0.15);
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(10%);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tags-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  background: rgb(26, 26, 26, 0.98);
  border: 1px solid rgb(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-top: 5px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 15px rgb(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 6px;
}
.tags-dropdown .tag-item {
  padding: 8px 12px;
  background: #1a1a1a;
  color: var(--text-color);
  cursor: pointer;
  border-bottom: 1px solid rgb(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}
.tags-dropdown .tag-item:hover {
  background: rgb(40, 40, 40, 0.98);
  transform: translateX(4px);
}
.tags-dropdown .tag-item.new-tag {
  margin-top: 6px;
  color: var(--color-accent-light);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgb(255, 255, 255, 0.1);
  padding-top: 8px;
}
.tags-dropdown .tag-item.new-tag::before {
  content: "+";
  font-size: 1.2em;
  font-style: normal;
  opacity: 0.8;
  color: var(--color-accent-light);
}
.tags-dropdown .tag-item.new-tag:hover {
  background: rgb(var(--accent-light-rgb), 0.15);
  transform: translateX(4px);
}
.tags-dropdown::-webkit-scrollbar {
  width: 6px;
}
.tags-dropdown::-webkit-scrollbar-track {
  background: rgb(0, 0, 0, 0.2);
  border-radius: 3px;
}
.tags-dropdown::-webkit-scrollbar-thumb {
  background: rgb(255, 255, 255, 0.2);
  border-radius: 3px;
}
.tags-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgb(255, 255, 255, 0.3);
}
.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 10px;
  min-height: 35px;
}
.create-character-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px auto;
  padding: 15px 30px;
  font-size: 1.2em;
  border: 1px solid rgb(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgb(0, 0, 0, 0.95);
  color: var(--text-color);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: text;
}
.create-character-btn i {
  font-size: 1.1em;
}
.create-character-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgb(0, 0, 0, 0.3);
}
.create-character-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgb(0, 0, 0, 0.3);
}
.form-group textarea,
#character-description,
#character-example-dialogue,
.character-details {
  padding: 20px;
}
.info-section {
  margin-bottom: 25px;
  background: rgb(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
}
.info-section h3 {
  color: var(--color-accent-light);
  margin: 0 0 15px;
  font-size: 1.2em;
  border-bottom: 1px solid rgb(255, 255, 255, 0.1);
  padding-bottom: 8px;
}
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags-list span {
  background: rgb(var(--accent-light-rgb), 0.1);
  padding: 4px 12px;
  border-radius: 15px;
  color: var(--text-color);
  font-size: 0.9em;
}
.character-image {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}
.character-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-track {
  background: rgb(0, 0, 0, 0.2);
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgb(var(--accent-light-rgb), 0.3);
  border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--accent-light-rgb), 0.5);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding-right: 30px;
}
.character-counter {
  font-size: 0.8em;
  color: #888;
  margin-top: 2px;
  text-align: right;
  opacity: 0.8;
}
.character-counter {
  display: block;
  font-size: 0.8em;
  text-align: right;
  color: rgb(255, 255, 255, 0.5);
  margin-top: 5px;
}
.character-counter.warning {
  color: #fc0;
}
.character-counter.error {
  color: #f44;
}
.character-counter.limit-reached {
  color: #f44;
  font-weight: bold;
  animation: blink 0.5s infinite alternate;
}
@keyframes blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.5;
  }
}
.generate-btn {
  margin: 15px 0;
  padding: 10px 20px;
  background: #2a3f5f;
  color: var(--text-color);
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgb(0, 0, 0, 0.2);
}
.generate-btn:hover {
  background: #3a526f;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgb(0, 0, 0, 0.25);
}
.generate-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgb(0, 0, 0, 0.2);
}
.generate-btn i {
  font-size: 1.1em;
}
.generate-btn.generating {
  background:
    linear-gradient(
      135deg,
      #2a3f5f,
      #4a6384);
  background-size: 200% 200%;
  animation: gradient-animation 2s ease infinite;
  pointer-events: none;
  opacity: 0.8;
}
@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
}
.form-group h3 {
  color: var(--text-color);
  font-size: 1.8em;
  margin: 0;
  flex: 1;
  text-align: center;
  margin-right: 45px;
  margin-bottom: 45px;
  margin-top: 45px;
  user-select: text;
}
.form-group h4 {
  color: rgb(255, 255, 255, 0.9);
}
#ai-character-prompt-preview {
  perspective: 1000px;
  transition: transform 0.3s ease;
  grid-column: span 4;
  width: 100%;
  min-width: 400px;
  height: 620px;
  margin: 0 auto;
}
#ai-character-prompt-preview:hover {
  transform: translateY(-5px);
}
#ai-character-prompt-preview .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
#ai-character-prompt-preview .card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: rgb(13, 13, 13, 0.95);
}
#ai-character-prompt-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  z-index: -1;
  transition: transform 0.3s ease;
}
#ai-character-prompt-preview:hover img {
  transform: scale(1.05);
}
#ai-character-prompt-preview h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#ai-character-prompt-preview .belongs-to-bar {
  position: absolute;
  background-color: rgb(var(--pink-mauve-rgb), 0.75);
  bottom: -8.25%;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  left: 15%;
  right: 15%;
  color: var(--text-color);
  z-index: 3;
}
#ai-character-prompt-preview span {
  position: relative;
  z-index: 2;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}
textarea {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
textarea::-webkit-scrollbar {
  display: none;
}
#ai-character-example-dialogue {
  max-width: 251px !important;
  width: 251px !important;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow-wrap: break-word;
}
.scenario-tags-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0 4px;
}
.scenario-tag-pill {
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.85em;
  text-transform: capitalize;
  user-select: none;
  line-height: 1.4;
}
.scenario-tag-pill:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}
.scenario-tag-pill.is-selected {
  background: rgba(236, 72, 153, 0.2);
  border-color: var(--pink-primary);
  color: var(--text-color);
}
.scenario-tag-pill.is-selected:hover:not(:disabled) {
  background: rgba(236, 72, 153, 0.3);
}
.scenario-tag-pill.is-disabled,
.scenario-tag-pill:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.scenario-tags-picker.is-collapsed {
  max-height: 72px;
  overflow: hidden;
}
.scenario-tags-meta {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}
.scenario-tags-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}
.scenario-tags-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
}
.scenario-tags-count {
  position: absolute;
  right: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}
.scenario-tags-count--max {
  color: var(--pink-primary);
}
.visibility-btn {
  padding: 6px 14px;
  border: 1px solid rgb(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text-grey);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9em;
}
.visibility-btn:hover {
  background: rgb(255, 255, 255, 0.05);
  color: var(--text-color);
}
.visibility-btn.active {
  background: rgb(255, 255, 255, 0.1);
  color: var(--text-color);
  border-color: rgb(255, 255, 255, 0.2);
}
#voice-sample-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgb(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
}
.play-sample-btn {
  padding: 6px 12px;
  background-color: #2a3f5f;
  color: var(--text-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}
.play-sample-btn:hover {
  background-color: var(--pink-mauve-hover);
}
.play-sample-btn.playing {
  background-color: #666;
}
.rich-prompt-editor-source {
  display: none !important;
}
.rich-prompt-editor {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
}
.rich-prompt-editor:empty::before {
  content: attr(data-placeholder);
  color: rgb(255, 255, 255, 0.45);
}
.rich-prompt-editor-tag--forbidden {
  color: rgb(248, 113, 113, 0.95);
}
.rich-prompt-editor-tag--unrecognized {
  color: rgb(248, 113, 113, 0.95);
}
.prompt-suggestions-host {
  position: relative;
  width: 100%;
  margin-top: 2px;
  overflow: visible;
}
.prompt-suggestions {
  position: absolute;
  background: rgb(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  width: calc(100% - 20px);
  max-width: fit-content;
  z-index: 1000;
  margin-top: 2px;
}
.prompt-suggestions .suggestion-item {
  padding: 6px 10px;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
  line-height: 1.2;
}
.prompt-suggestions .suggestion-item:hover,
.prompt-suggestions .suggestion-item.selected {
  background: rgb(255, 255, 255, 0.1);
}
.prompt-suggestions .suggestion-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prompt-suggestions .suggestion-description {
  color: var(--text-grey);
  font-style: italic;
  margin-left: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.prompt-suggestions .suggestion-usage {
  color: rgb(255, 255, 255, 0.5);
  font-size: 0.8em;
  margin-left: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.prompt-suggestions .suggestion-item.forbidden {
  background: rgb(220, 38, 38, 0.2);
  border-left: 3px solid rgb(220, 38, 38, 0.6);
}
.prompt-suggestions .suggestion-item.forbidden:hover,
.prompt-suggestions .suggestion-item.forbidden.selected {
  background: rgb(220, 38, 38, 0.3);
}
.prompt-suggestions .suggestion-item.forbidden .suggestion-text {
  color: rgb(248, 113, 113, 0.9);
}
.prompt-suggestions .suggestion-item.forbidden .suggestion-description {
  color: rgb(248, 113, 113, 0.6);
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.show {
  display: flex;
}
.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  max-width: 1045px;
  height: 74vh;
  max-height: 695px;
  margin: 0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: rgb(15, 15, 25, 0.98);
  backdrop-filter: blur(8px);
  border: 2px solid var(--pink-primary);
  overflow: hidden;
  box-shadow: 0 10px 30px rgb(0, 0, 0, 0.5);
}
.close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgb(255, 255, 255, 0.1);
  border: none;
  color: var(--text-color);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}
.close-btn:hover {
  background-color: rgb(255, 255, 255, 0.2);
  transform: scale(1.1);
}
.character-details {
  width: 100%;
  height: 100%;
  padding: 10px;
  overflow: hidden;
}
.character-modal-body {
  display: flex;
  flex-direction: row;
  height: 100%;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 20px;
  position: relative;
  padding: 10px 20px;
}
.character-modal-left {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 10px 10px 0;
  overflow-x: hidden;
}
.character-modal-right {
  flex: 0 0 60%;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 10px 0;
  position: relative;
  height: 100%;
}
.character-header {
  width: 100%;
  margin-bottom: 1rem;
  text-align: center;
  margin-top: 10px;
}
.character-header h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--pink-heading);
}
.outfit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 10px 0;
}
.outfit-tag {
  background-color: rgb(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.outfit-tag:hover {
  background-color: rgb(255, 255, 255, 0.2);
}
.outfit-tag.active {
  background-color: var(--pink-primary);
}
.character-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(transparent, rgb(0, 0, 0, 0.8));
  color: var(--text-color);
  text-align: center;
}
.character-info h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-color);
}
.character-info p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}
.spot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 1rem;
  padding-right: 15px;
  width: 80%;
}
.confirm-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}
.confirm-btn.yes {
  background:
    linear-gradient(
      90deg,
      var(--pink-primary) 0%,
      var(--pink-hover) 50%,
      var(--pink-primary) 100%);
  background-size: 200% 100%;
  color: var(--text-color);
  animation: gradientMove 3s linear infinite;
}
.confirm-btn.no {
  background-color: rgb(255, 255, 255, 0.15);
  color: var(--text-color);
}
.confirm-btn:hover {
  transform: translateY(-2px);
}
.confirm-btn.no:hover {
  background-color: rgb(255, 255, 255, 0.25);
}
.char-outfits-section {
  margin: 30px 0;
}
.char-outfits-section .form-label {
  display: block;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-color);
}
.char-outfits {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  padding: 10px 0;
  overflow: hidden auto;
  border: 1px solid rgb(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgb(26, 26, 26, 0.3);
  max-height: 520px;
}
.char-outfits-item {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background-color: var(--white-01);
}
.char-outfits-item.selected {
  border-color: var(--pink-primary);
  box-shadow: 0 0 10px rgb(var(--accent-light-rgb), 0.3);
}
.char-outfits-item--locked {
  cursor: default;
}
.char-outfits-item--locked::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6b9d'%3E%3Cpath d='M12 17a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm6-7h-1V7a5 5 0 0 0-10 0v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zM9 7a3 3 0 0 1 6 0v3H9V7z'/%3E%3C/svg%3E") center / 12px no-repeat;
  pointer-events: none;
  z-index: 2;
}
.char-outfits-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.char-outfits-label {
  font-size: 11px;
  text-align: center;
  padding: 4px 2px;
  background-color: rgb(0, 0, 0, 0.7);
  color: white;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.char-outfit-prompt-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.char-outfit-prompt-label {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}
.char-outfits-section .step2-advanced {
  margin-top: 12px;
}
.char-outfits-section #char-outfit-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.outfits-credit-info {
  margin: 10px 0;
  padding: 8px 12px;
  background: rgb(var(--accent-light-rgb), 0.1);
  border: 1px solid rgb(var(--accent-light-rgb), 0.3);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-color);
  text-align: center;
}
.outfits-credit-info.insufficient {
  background: rgb(255, 59, 48, 0.1);
  border-color: rgb(255, 59, 48, 0.3);
  color: #ff3b30;
}
.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(11, 18, 32, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.preview-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}
.preview-modal__content {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 20px;
  padding: 24px;
  width: 90%;
  max-width: 500px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.preview-modal.is-active .preview-modal__content {
  transform: scale(1);
}
.preview-modal__image-wrapper {
  width: 100%;
  aspect-ratio: 1/1.4;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-modal__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.preview-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}
#preview-modal-title {
  text-align: center;
}
#preview-quality-warning {
  text-align: center;
  display: block;
}
.btn--large {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 4px 15px rgb(var(--accent-light-rgb), 0.3);
}
.prompt-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prompt-guide-link {
  display: inline-flex;
  align-self: flex-start;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(219, 234, 254, 0.6);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.prompt-guide-link:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.95);
}
.prompt-guide-link:focus-visible {
  outline: 2px solid var(--pink-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
#voice-sample-container {
  position: relative;
  z-index: 0;
}
#create-location-picker-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
}
#create-location-picker-modal.show {
  display: flex;
}
#create-location-picker-modal .picker-panel.search-dropdown__panel {
  width: min(820px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  left: auto;
  right: auto;
  margin-top: 0;
  z-index: auto;
  padding: 14px;
  overflow: hidden;
}
#create-location-picker-modal .picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#create-location-picker-modal .picker-title {
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.3px;
}
#create-location-picker-modal .picker-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}
#create-location-picker-modal .picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
#create-location-picker-modal .picker-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  min-width: 0;
}
#create-location-picker-modal .picker-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}
#create-location-picker-modal .picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}
#create-location-picker-modal .location-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 136px;
  overflow: hidden;
}
#create-location-picker-modal .location-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
#create-location-picker-modal .location-card.location-card--selected {
  border-color: rgba(173, 123, 255, 0.80);
  box-shadow: 0 0 0 2px rgba(173, 123, 255, 0.22);
}
#create-location-picker-modal .location-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 12px 11px;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82),
      rgba(0, 0, 0, 0.05));
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
#create-location-picker-modal .location-name {
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
#create-location-picker-modal .location-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
#create-location-picker-modal .create-background-card {
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  background-image: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
#create-location-picker-modal .create-background-card:hover {
  border-color: rgba(173, 123, 255, 0.65);
  background: rgba(173, 123, 255, 0.08);
}
#create-location-picker-modal .create-background-card:focus-visible {
  outline: 2px solid rgba(173, 123, 255, 0.8);
  outline-offset: 2px;
}
#create-location-picker-modal .create-background-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
#create-location-picker-modal .create-background-plus {
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}
#create-location-picker-modal .create-background-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  letter-spacing: 0.02em;
}
@media (max-width: 600px) {
  .step2-kv-table {
    gap: 20px;
  }
  .step2-kv-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas: "key    delete" "value  value";
  }
  .step2-kv-row .kv-key {
    grid-area: key;
  }
  .step2-kv-row .kv-value {
    grid-area: value;
  }
  .step2-kv-row .step2-kv-delete {
    grid-area: delete;
    align-self: center;
    margin-top: 0;
  }
  .preview-surface--card,
  .media-crop-viewport--portrait {
    width: 176px;
    height: 226px;
  }
}
@media (max-width: 768px) {
  .btn--large {
    font-size: 14px;
    padding: 10px 20px;
  }
  .create-page-header .clear-draft-btn {
    margin: 0;
    font-size: small;
  }
  section[data-step="4"].recruit-panel.create-panel {
    width: 100%;
    margin-inline: 0;
  }
  section[data-step="4"] .character-card-slots {
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgb(255, 255, 255, 0.3) transparent;
  }
  section[data-step="4"] .character-card-slots::-webkit-scrollbar {
    height: 6px;
  }
  section[data-step="4"] .character-card-slots::-webkit-scrollbar-thumb {
    background-color: rgb(255, 255, 255, 0.3);
    border-radius: 4px;
  }
  section[data-step="4"] .character-card-slot {
    flex: 0 0 auto;
  }
  .owned-edit-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
@media (width >= 1025px) {
  body.side-nav-open .create-container {
    width: calc(100% - 280px);
    left: 280px;
  }
  body.side-nav-open {
    padding-left: 280px;
  }
}
@media (width <= 1024px) and (orientation: portrait) {
  html,
  body {
    overflow-x: hidden;
  }
  .create-container {
    left: 0;
    right: 0;
  }
  .create-panel {
    padding: 10px 8px 20px 8px;
    margin: 0;
  }
  section[data-step="3"] .cast-hscroll {
    container-type: inline-size;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgb(255, 255, 255, 0.3) transparent;
  }
  section[data-step="3"] .cast-hscroll::-webkit-scrollbar {
    height: 6px;
  }
  section[data-step="3"] .cast-hscroll::-webkit-scrollbar-thumb {
    background-color: rgb(255, 255, 255, 0.3);
    border-radius: 4px;
  }
  section[data-step="3"] .cast-hscroll .cast-row,
  section[data-step="3"] .cast-hscroll .scenario-cast-previews,
  section[data-step="3"] .cast-hscroll .greeting-intent-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
    min-width: 100%;
    grid-template-columns: none;
  }
  section[data-step="3"] .cast-hscroll .cast-row {
    padding-bottom: 8px;
  }
  section[data-step="3"] .cast-hscroll .cast-column,
  section[data-step="3"] .cast-hscroll .scenario-cast-slot,
  section[data-step="3"] .cast-hscroll .scenario-cast-slot-fields,
  section[data-step="3"] .cast-hscroll .greeting-intent-cell {
    flex: 1 0 88cqi;
    min-width: 88cqi;
    width: 88cqi;
    max-width: none;
    box-sizing: border-box;
  }
  section[data-step="3"] .cast-hscroll .scenario-cast-party-stage {
    min-width: 100%;
    width: max-content;
    height: 350px;
  }
  section[data-step="3"] .cast-hscroll .greeting-intents-grid {
    min-width: 100%;
    width: max-content;
  }
  section[data-step="3"] .cast-hscroll .scenario-cast-party-stage .character-party-shared-bg {
    width: 100%;
    height: stretch;
    left: 0;
    right: 0;
  }
  section[data-step="3"] .cast-hscroll #message-1,
  section[data-step="3"] .cast-hscroll #message-2,
  section[data-step="3"] .cast-hscroll #message-3,
  section[data-step="3"] .cast-hscroll .form-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  section[data-step="3"] .cast-hscroll .search-dropdown,
  section[data-step="3"] .cast-hscroll .search-dropdown__panel {
    max-width: 100%;
  }
  .create-panel > .panel-header {
    justify-self: anchor-center;
    gap: 4px;
  }
  #banner-image-preview {
    min-height: 240px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
  }
  #banner-image-preview img,
  #banner-image-preview video {
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: 4px;
  }
  #bg-preview-1 {
    min-height: 240px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .create-character-btn,
  .selection-btn {
    text-align: left;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: auto;
    display: flex;
    align-items: center;
    width: fit-content;
  }
  .panel-header h3 {
    font-size: 1.2rem;
  }
  div[style*="display: flex"][style*="gap: 20px"][style*="margin-bottom: 20px"] {
    flex-direction: column !important;
    gap: 0 !important;
    align-items: flex-start !important;
  }
  div[style*="display: flex"][style*="gap: 20px"][style*="margin-bottom: 20px"] .form-group:nth-child(1),
  div[style*="display: flex"][style*="gap: 20px"][style*="margin-bottom: 20px"] .form-group:nth-child(2),
  div[style*="display: flex"][style*="gap: 20px"][style*="margin-bottom: 20px"] .form-group:nth-child(3) {
    display: inline-block;
    width: auto;
    margin-right: 15px;
    margin-bottom: 15px;
  }
  div[style*="display: flex"][style*="gap: 20px"][style*="margin-bottom: 20px"] .form-group:nth-child(4),
  div[style*="display: flex"][style*="gap: 20px"][style*="margin-bottom: 20px"] .form-group:nth-child(5),
  div[style*="display: flex"][style*="gap: 20px"][style*="margin-bottom: 20px"] .form-group:nth-child(6) {
    display: inline-block;
    width: auto;
    margin-right: 15px;
    margin-top: 0;
  }
  div[style*="display: flex"][style*="gap: 40px"] {
    flex-direction: column !important;
    gap: 20px !important;
  }
  div[style*="display: flex"][style*="gap: 40px"] > div {
    flex: none !important;
    width: 100% !important;
  }
  div[style*="display: flex"][style*="gap: 10px"][style*="flex: 1"] {
    flex-direction: column !important;
    gap: 20px !important;
  }
  div[style*="display: flex"][style*="gap: 10px"][style*="flex: 1"] > div {
    flex: none !important;
    width: 100% !important;
  }
  div[style*="display: flex"][style*="gap: 60px"] {
    flex-direction: column !important;
    gap: 20px !important;
  }
  div[style*="display: flex"][style*="gap: 60px"] > div {
    flex: none !important;
    width: 100% !important;
  }
  .form-row .form-group > div[style*="display: flex"] {
    flex-direction: column !important;
  }
  textarea#ai-character-example-dialogue {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  #ai-character-description,
  #ai-character-prompt,
  #ai-outfit-prompt {
    width: 80%;
    display: block;
  }
  #message-1,
  #message-2,
  #message-3 {
    width: 75%;
  }
  .form-row,
  .form-row:first-of-type {
    flex-direction: column;
    gap: 15px;
  }
  .form-row .form-group {
    width: 100%;
  }
  #ai-request,
  #scenario-description,
  #adventure-banner-prompt,
  #custom-bg-textarea {
    width: 85%;
  }
  .form-actions {
    flex-direction: row;
  }
}
@media (width <= 1024px) {
  .form-group textarea,
  #character-description,
  #character-example-dialogue,
  .character-details {
    padding: 10px;
  }
}
@media (width <= 1024px) {
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding-right: 10px;
  }
}
@media (width <= 1024px) {
  .form-group h3 {
    margin-right: 25px;
    margin-bottom: 25px;
    margin-top: 0;
  }
}
@media (width <= 1024px) and (orientation: portrait) {
  .modal-content {
    width: 95%;
    height: 90vh;
  }
  .character-modal-body {
    flex-direction: column;
    padding: 10px;
  }
  .character-modal-left,
  .character-modal-right {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }
}
@media (width <= 520px) and (orientation: portrait) {
  .char-outfits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 392px;
  }
}
@media (width <= 600px) and (orientation: portrait) {
  #create-location-picker-modal .picker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
  #create-location-picker-modal .picker-panel.search-dropdown__panel {
    max-height: 86vh;
    width: 96vw;
  }
}
.slow-gen-overtime-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.slow-gen-overtime-loader-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--pink-primary);
  border-radius: 50%;
  animation: slow-gen-overtime-spin 0.7s linear infinite;
}
@keyframes slow-gen-overtime-spin {
  to {
    transform: rotate(360deg);
  }
}
.media-upload-btn {
  cursor: pointer;
}
.form-actions.is-crop-locked {
  cursor: not-allowed;
}
.media-upload-btn[aria-disabled=true] {
  opacity: 0.7;
  pointer-events: none;
}
.media-crop-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
#character-card-crop-viewport-host:empty {
  display: none;
}
.media-crop-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
}
.media-crop-viewport {
  overflow: hidden;
  position: relative;
  touch-action: none;
  cursor: grab;
  border: 2px solid var(--pink-primary);
  background: rgb(0 0 0 / 0.45);
  border-radius: 8px;
}
.media-crop-viewport--square {
  width: min(420px, calc(100vw - 48px));
  aspect-ratio: 1 / 1;
}
.media-crop-viewport--portrait {
  width: 224px;
  height: 288px;
  box-sizing: border-box;
}
.media-crop-viewport.is-dragging {
  cursor: grabbing;
}
.media-crop-viewport img,
.media-crop-viewport video {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  transform-origin: 0 0;
}
.media-crop-zoom-row {
  width: min(420px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.media-crop-zoom-row label {
  flex: 0 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.media-crop-zoom-row input {
  flex: 1;
  min-width: 0;
}
.character-card-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.media-upload-or {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
  align-self: center;
}

/* css/custom-voice-dropdown.css */
.voice-flags {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.voice-flags-selected {
  margin-left: 8px;
}
.voice-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.custom-voice-select {
  position: relative;
  width: 100%;
}
.form-group:has(.custom-voice-select.active) {
  position: relative;
  z-index: 10001;
}
select[id*=voice].replacing {
  opacity: 0;
  pointer-events: none;
}
.custom-voice-display {
  width: 100%;
  min-width: 140px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 0.95em;
  line-height: 1.3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-height: 36px;
}
.custom-voice-display:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
.custom-voice-display.open {
  border-color: rgb(var(--accent-pink-rgb), 0.5);
  background: rgba(40, 40, 40, 0.95);
}
.voice-display-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}
.voice-display-arrow {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  opacity: 0.7;
  margin-left: 8px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.custom-voice-display.open .voice-display-arrow {
  transform: rotate(180deg);
}
.custom-voice-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: rgb(20, 20, 20);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}
.custom-voice-select.active .custom-voice-dropdown {
  display: flex;
  flex-direction: column;
}
.custom-voice-options {
  overflow-y: auto;
  max-height: 200px;
}
.custom-voice-option {
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 36px;
  display: flex;
  align-items: center;
  background: rgb(30, 30, 30);
}
.custom-voice-option:last-child {
  border-bottom: none;
}
.custom-voice-option:hover {
  background: rgba(255, 255, 255, 0.08);
}
.custom-voice-option.selected {
  background: rgb(var(--accent-pink-rgb), 0.15);
}
.voice-option-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.voice-name {
  flex: 1;
  margin-right: 10px;
  color: var(--text-color);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  line-height: 1.2;
}
.credit-multiplier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}
.credit-multiplier-badge.is-cheaper {
  color: #81C784;
  border-color: rgba(129, 199, 132, 0.35);
}
.credit-multiplier-badge.is-premium {
  color: var(--pink-primary);
  border-color: rgb(var(--accent-pink-rgb), 0.35);
}
.voice-controls-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.voice-controls-group .custom-voice-select,
.voice-controls-group .character-voice-language-control,
.voice-controls-group .elevenlabs-voice-id-input {
  width: 100%;
  box-sizing: border-box;
}
.voice-controls-group .elevenlabs-voice-id-error {
  margin: 0;
  font-size: 12px;
  color: #ef4444;
}
.voice-controls-group .elevenlabs-voice-id-error[hidden] {
  display: none;
}
.voice-controls-group .elevenlabs-voice-id-note {
  margin: 0;
  font-size: 12px;
  opacity: 0.85;
}
.voice-controls-group .elevenlabs-voice-id-note[hidden] {
  display: none;
}
.voice-controls-group .elevenlabs-voice-id-note a {
  color: var(--pink-primary);
}
.custom-voice-search {
  width: calc(100% - 16px);
  box-sizing: border-box;
  margin: 8px;
  flex-shrink: 0;
}
.voice-preview-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
}
.voice-preview-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.custom-voice-dropdown::-webkit-scrollbar {
  width: 6px;
}
.custom-voice-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}
.custom-voice-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.custom-voice-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* css/create-video.css */
.create-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  min-width: 0;
  overflow: hidden;
  background: rgb(8, 10, 18, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgb(255, 255, 255, 0.1);
}
.create-mode-tabs--nested {
  margin-bottom: 16px;
  padding: 0;
  gap: 6px 18px;
  justify-content: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}
@media (width > 768px) {
  .create-mode-tabs--compact {
    margin-bottom: 0;
    padding: 3px;
    gap: 6px;
  }
  .create-mode-tabs--compact .create-mode-tab {
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.85rem;
    gap: 4px;
  }
}
.free-image-lora-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.create-submit-wrap {
  position: relative;
  display: inline-flex;
}
.create-submit-wrap[data-lora-limit=true] {
  cursor: not-allowed;
}
.create-submit-wrap[data-lora-limit=true] #validate-free-image {
  pointer-events: none;
}
.create-submit-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(280px, 80vw);
  padding: 8px 12px;
  border-radius: 4px;
  background-color: rgb(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.create-submit-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}
.create-mode-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--white-07);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.create-mode-tab:focus-visible {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
}
.create-mode-tab--active {
  background: var(--pink-primary-03);
  border-color: transparent;
  color: var(--text-color);
  box-shadow: none;
}
.create-mode-tab i {
  font-size: 1rem;
}
.create-mode-tabs--nested .create-mode-tab {
  flex: 0 1 auto;
  min-width: 0;
  padding: 8px 2px 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--white-07);
  font-size: 0.88rem;
  box-shadow: none;
}
.create-mode-tabs--nested .create-mode-tab--active {
  background: transparent;
  color: var(--text-color);
  box-shadow: inset 0 -2px 0 var(--pink-primary);
}
.composer-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255, 255, 255, 0.62);
}
.composer-style-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}
.composer-style-label {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(255, 255, 255, 0.7);
}
.composer-size-row {
  margin-top: 12px;
}
#create-video-panel .create-size-segment .create-mode-tab {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  padding: 7px 6px;
  font-size: 0.82rem;
}
.composer-size-custom {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.composer-size-field {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgb(255, 255, 255, 0.7);
}
.composer-size-field .form-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.composer-size-ratio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.composer-size-ratio__value {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgb(255, 255, 255, 0.7);
  min-height: 1.1em;
}
.composer-size-lock {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--white-01);
  background: var(--black-05);
  color: rgb(255, 255, 255, 0.78);
  cursor: pointer;
  padding: 0;
}
.composer-size-lock[aria-pressed=true] {
  background: var(--pink-primary-03);
  color: var(--text-color);
}
.composer-seed {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 14px;
}
.composer-seed .composer-size-field {
  flex: 1;
}
.composer-seed-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.composer-size-error {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fca5a5;
}
.composer-size-error.hidden {
  display: none;
}
.create-style-segment {
  display: flex;
  flex: 1;
  min-width: 0;
  padding: 3px;
  gap: 3px;
  border-radius: 999px;
  background: var(--black-05);
  border: 1px solid var(--white-01);
}
#create-video-panel .create-style-segment .create-mode-tab {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 50%;
  width: auto;
  padding: 7px 10px;
  font-size: 0.82rem;
  border-radius: 999px;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-direction: row;
}
.create-style-segment .create-mode-tab--active,
#create-video-panel .create-style-segment .create-mode-tab--active {
  background: var(--pink-primary-03);
  color: var(--text-color);
  border: none;
  box-shadow: none;
}
#create-video-panel .create-tool-panel,
#panel-image-free,
#panel-image-sprite,
#create-video-panel .tool-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.create-tool-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  animation: fadeInPanel 0.25s ease-out;
}
.create-tool-panel > .form-actions {
  margin-top: auto;
}
#create-video-form-4 {
  display: flex;
  flex-direction: column;
  flex: 1;
}
#create-video-form-4 > .form-actions {
  margin-top: auto;
}
#create-video-form-4 .step2-lora-group + .step2-lora-group {
  margin-top: 12px;
}
@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tool-section {
  margin-bottom: 16px;
  padding: 18px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: rgb(8, 10, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgb(255, 255, 255, 0.12);
  border-radius: 16px;
}
.tool-section-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.tool-section--composer .step2-advanced {
  margin-top: 12px;
}
.composer-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(255, 255, 255, 0.78);
  cursor: pointer;
}
.composer-option-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--pink-primary);
  flex-shrink: 0;
}
.tool-section .composer-option-row + .step2-advanced {
  margin-top: 12px;
}
.tool-section-subtitle {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-grey);
}
#prompt-text-3,
#free-image-prompt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
  min-height: 140px;
  border: 1px solid #1f2937;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#prompt-text-3:focus,
#free-image-prompt:focus {
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 1px var(--pink-primary);
}
#camera-text-4 {
  display: block;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
  min-height: 192px;
  border: 1px solid #1f2937;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#camera-text-4:focus {
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 1px var(--pink-primary);
}
.rich-prompt-editor-source {
  display: none !important;
}
.rich-prompt-editor {
  display: block;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
  border: 1px solid #1f2937;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
}
.rich-prompt-editor:focus {
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 1px var(--pink-primary);
}
.rich-prompt-editor:empty::before {
  content: attr(data-placeholder);
  color: rgb(255, 255, 255, 0.45);
}
.rich-prompt-editor-tag--forbidden {
  color: rgb(248, 113, 113, 0.95);
}
.rich-prompt-editor-tag--unrecognized {
  color: rgb(248, 113, 113, 0.95);
}
.pro-tip-text {
  margin: 10px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: rgb(255, 255, 255, 0.7);
  font-size: 14px;
  text-align: left;
}
.pro-tip-text__label {
  font-weight: 700;
  color: rgb(255, 255, 255, 0.9);
  margin-right: 6px;
}
.pro-tip-text.insufficient {
  color: #ff3b30;
}
.prompt-helper {
  margin-top: 12px;
}
#prompt-helper-banner {
  margin-top: 0;
}
.prompt-helper__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.prompt-helper__button {
  appearance: none;
  border: 0;
  background: rgb(255, 255, 255, 0.08);
  color: rgb(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.prompt-helper__button:hover {
  background: rgb(255, 255, 255, 0.14);
}
.prompt-helper__button:focus {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
}
.prompt-helper__button.is-active {
  background: var(--pink-primary-03);
  color: var(--text-color);
}
.prompt-helper__pills {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.prompt-helper__pill {
  appearance: none;
  border: 0;
  background: rgb(0, 0, 0, 0.35);
  color: rgb(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.prompt-helper__pill:hover {
  background: rgb(255, 255, 255, 0.06);
}
.prompt-helper__pill:focus {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
}
.banner-chat-btn {
  padding: 12px 24px;
  background:
    linear-gradient(
      90deg,
      var(--pink-primary) 0%,
      var(--pink-glow) 50%,
      var(--pink-primary) 100%);
  background-size: 200% 100%;
  color: var(--text-color);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--pink-primary-03);
  animation: gradientMove 3s linear infinite;
}
.banner-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--pink-primary-05);
  animation: gradientMove 1s linear infinite;
}
.banner-chat-btn:active {
  transform: translateY(0);
}
.banner-chat-btn:focus {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
}
.banner-chat-btn:disabled,
.banner-chat-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
  animation: none;
}
.banner-take-me-anywhere-btn {
  background:
    linear-gradient(
      90deg,
      #5b21b6 0%,
      #a78bfa 50%,
      #5b21b6 100%);
  background-size: 200% 100%;
  box-shadow: 0 4px 14px rgb(91, 33, 182, 0.18);
  animation: gradientMove 6s linear infinite;
  transition: all 0.3s ease;
}
.banner-take-me-anywhere-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgb(91, 33, 182, 0.28);
  animation: gradientMove 3s linear infinite;
}
.banner-take-me-anywhere-btn:active {
  transform: translateY(0);
}
@media (width <= 480px) {
  .banner-chat-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 18px;
    letter-spacing: 0.5px;
  }
}
.dropdown-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.dropdown-field {
  flex: 1 1 220px;
  min-width: 0;
}
.dropdown-field .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-color);
}
.sprite-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  background: rgb(0, 0, 0, 0.28);
  border-radius: 10px;
  border: 1px solid rgb(255, 255, 255, 0.06);
}
.sprite-comparison-grid::-webkit-scrollbar {
  width: 6px;
}
.sprite-comparison-grid::-webkit-scrollbar-track {
  background: rgb(0, 0, 0, 0.2);
  border-radius: 3px;
}
.sprite-comparison-grid::-webkit-scrollbar-thumb {
  background: var(--pink-primary);
  border-radius: 3px;
}
#sprite-grid-for-video .sprite-item--missing .sprite-comparison-image {
  filter: none;
  opacity: 1;
}
#sprite-grid-for-video .sprite-item--missing:hover .sprite-comparison-image {
  filter: none;
  opacity: 1;
}
.sprite-action-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid rgb(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgb(0, 0, 0, 0.35);
  color: var(--text-color, #fff);
  font-size: 0.9rem;
}
.sprite-action-search::placeholder {
  color: rgb(255, 255, 255, 0.45);
}
.sprite-action-search:focus {
  outline: none;
  border-color: rgb(255, 255, 255, 0.4);
}
.sprite-grid-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: rgb(255, 255, 255, 0.5);
  font-style: italic;
}
.sprite-grid-status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgb(255, 255, 255, 0.7);
  text-align: center;
}
.custom-image-flow--disabled {
  pointer-events: none;
  user-select: none;
}
.custom-image-flow--disabled > :not(.custom-image-flow__bridge) {
  opacity: 0.45;
}
.custom-image-flow__bridge {
  opacity: 1;
  color: var(--text-color);
  text-align: center;
}
.sprite-comparison-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  border: 2px solid rgb(255, 255, 255, 0.1);
  background: rgb(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}
.sprite-comparison-item[hidden] {
  display: none !important;
}
.sprite-comparison-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(0, 0, 0, 0.3);
}
.sprite-comparison-item:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgb(var(--pink-primary-rgb), 0.4);
}
.sprite-item--exists {
  border-color: var(--color-success);
  background: rgb(76, 175, 80, 0.1);
  cursor: default;
}
.sprite-item--exists:hover {
  transform: none;
  box-shadow: none;
}
.sprite-item--missing {
  border-color: var(--text-grey-dark);
}
.sprite-item--missing .sprite-comparison-image {
  filter: grayscale(1);
  opacity: 0.7;
}
.sprite-item--missing:hover .sprite-comparison-image {
  filter: grayscale(0.5);
  opacity: 0.85;
}
.sprite-item--selected {
  border-color: var(--pink-primary);
  background: rgb(var(--pink-primary-rgb), 0.15);
  box-shadow: 0 0 12px rgb(var(--pink-primary-rgb), 0.25);
}
.sprite-item--selected .sprite-comparison-image {
  filter: none;
  opacity: 1;
}
.sprite-item--forced {
  border-color: var(--color-warning-dark);
  background: rgb(255, 193, 7, 0.1);
}
.sprite-item--forced::after {
  content: "Required";
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  background: var(--color-warning-dark);
  border-radius: 4px;
}
.sprite-comparison-image {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 6px;
  background: rgb(0, 0, 0, 0.4);
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.sprite-comparison-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.sprite-label-action {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgb(255, 255, 255, 0.7);
}
.sprite-has-video-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-success);
  border-radius: 4px;
  z-index: 1;
}
.character-preview-wrapper {
  position: relative;
  width: 100%;
}
.character-preview-card {
  position: relative;
  width: 100%;
  min-height: 150px;
  border-radius: 8px;
  background-color: rgb(0, 0, 0, 0.95);
  border: 1px dashed rgb(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  touch-action: none;
}
.character-preview-card img {
  width: auto;
  max-width: 100%;
  height: 400px;
  margin-top: auto;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}
.character-preview-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.character-preview-card__media {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.character-preview-card__icon {
  font-size: 24px;
  color: rgb(255, 255, 255, 0.3);
  margin-bottom: 10px;
}
.character-preview-card__placeholder {
  color: rgb(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
  padding: 0 14px;
}
#free-image-preview-section .character-preview-wrapper {
  display: grid;
}
#free-image-preview-card {
  justify-self: center;
  box-sizing: border-box;
  width: min(var(--free-image-preview-width, 896px), 100%);
  height: auto;
  min-height: 0;
  aspect-ratio: var(--free-image-preview-ratio, 896 / 1152);
}
#free-image-preview-card .character-preview-card__media {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}
.free-image-eta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgb(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
}
.free-image-eta.hidden {
  display: none;
}
.character-preview-card:has(.free-image-eta:not(.hidden)) .three-dots-loader {
  display: none;
}
.free-image-eta__countdown {
  font-size: 2.2em;
  font-weight: 700;
  line-height: 1;
  color: var(--text-color, #fff);
}
.free-image-eta__label {
  font-size: 0.85em;
  opacity: 0.85;
  text-align: center;
  padding: 0 12px;
}
.free-image-hd-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.free-image-hd-actions.hidden {
  display: none;
}
.free-image-hd-done {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.free-image-hd-done.hidden,
#free-image-upgrade-hd.hidden,
#free-image-upgrade-credits.hidden {
  display: none;
}
.preview-arrow {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgb(255, 255, 255, 0.3);
  background: rgb(0, 0, 0, 0.5);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 12;
  padding: 0;
  line-height: 1;
}
.preview-arrow:focus {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
}
.preview-arrow:hover {
  background: rgb(0, 0, 0, 0.65);
  border-color: rgb(255, 255, 255, 0.45);
}
.preview-arrow--left {
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
}
.preview-arrow--right {
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}
.dropdown-row--spaced {
  margin-bottom: 12px;
}
.tool-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tool-section-title-row .tool-section-title {
  margin: 0;
}
.form-actions--mt {
  margin: 7px 0;
}
.form-actions--gap {
  gap: 10px;
  margin-top: 14px;
}
option.option--unavailable {
  color: var(--color-error);
}
.three-dots-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 100%;
  color: var(--text-color);
}
.three-dots-loader.hidden {
  display: none;
}
.three-dots-loader .dot {
  width: 16px;
  height: 16px;
  background: var(--pink-primary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
.three-dots-loader .dot:nth-child(1) {
  animation-delay: -0.32s;
}
.three-dots-loader .dot:nth-child(2) {
  animation-delay: -0.16s;
}
.is-busy .btn-idle {
  display: none;
}
.btn-busy {
  display: none;
  align-items: center;
  gap: 8px;
}
.is-busy .btn-busy {
  display: inline-flex;
}
.ai-wand-btn.is-busy {
  pointer-events: none;
}
.free-video-wand-loop-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}
.free-video-wand-loop-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.free-video-duration {
  max-width: 8rem;
}
@media (width <= 768px) and (orientation: portrait) {
  .create-mode-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .create-mode-tabs:not(.create-mode-tabs--nested) .create-mode-tab {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 10px 6px;
    justify-content: center;
    font-size: 0.75rem;
    letter-spacing: 0.2px;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .create-mode-tabs:not(.create-mode-tabs--nested) .create-mode-tab i {
    font-size: 0.85rem;
  }
  .create-mode-tabs:not(.create-mode-tabs--nested) .create-mode-tab span {
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.05;
    word-break: break-word;
  }
  .create-mode-tabs--nested {
    gap: 10px;
  }
  .create-mode-tabs--nested .create-mode-tab {
    flex-direction: row;
    padding: 8px 2px 10px;
    font-size: 0.78rem;
    gap: 5px;
  }
}
@media (width <= 768px) {
  .tool-section {
    padding: 12px;
  }
  .create-mode-tabs:not(.create-mode-tabs--nested) {
    min-width: 0;
  }
  .create-mode-tabs:not(.create-mode-tabs--nested) .create-mode-tab {
    min-width: 0;
    flex: 1 1 0;
  }
  .composer-style-row {
    flex-wrap: nowrap;
    min-width: 0;
  }
  .create-style-segment {
    min-width: 0;
    overflow: hidden;
  }
  .create-style-segment .create-mode-tab {
    min-width: 0;
    flex: 1 1 0;
  }
  .sprite-comparison-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 4px;
    padding: 0;
  }
  .sprite-comparison-image {
    height: 80px;
  }
  .dropdown-row {
    flex-direction: column;
  }
  .dropdown-field {
    flex: 1 1 100%;
  }
  .character-preview-card img {
    height: 350px;
  }
}
#create-video-character-picker-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
}
#create-video-character-picker-modal.show {
  display: flex;
}
#create-video-character-picker-modal .picker-panel {
  width: min(820px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
#create-video-character-picker-modal .picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#create-video-character-picker-modal .picker-title {
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.3px;
}
#create-video-character-picker-modal .picker-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}
#create-video-character-picker-modal .picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
#create-video-character-picker-modal .picker-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  min-width: 0;
}
#create-video-character-picker-modal .picker-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}
#create-video-character-picker-modal .picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}
@media (width <= 600px) and (orientation: portrait) {
  #create-video-character-picker-modal .picker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
  #create-video-character-picker-modal .picker-panel {
    max-height: 86vh;
    width: 96vw;
  }
  #create-video-character-picker-modal .character-card {
    height: 190px;
  }
  #create-video-character-picker-modal .card-front h3 {
    font-size: 12px;
  }
}
@media (width <= 1024px) and (orientation: landscape) {
  #create-video-character-picker-modal .picker-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
}
#create-video-character-picker-modal .character-card {
  height: 280px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  min-width: 0;
  color: inherit;
}
#create-video-character-picker-modal .character-card[disabled],
#create-video-character-picker-modal .character-card[aria-disabled=true] {
  cursor: default;
}
#create-video-character-picker-modal .character-card[aria-disabled=true] .card-front,
#create-video-character-picker-modal .character-card[aria-disabled=true] .picker-badge,
#create-video-character-picker-modal .character-card[aria-disabled=true] .picker-selected {
  opacity: 0.45;
  cursor: not-allowed;
}
#create-video-character-picker-modal .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  min-width: 0;
}
#create-video-character-picker-modal .card-front {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 10px 12px;
  box-sizing: border-box;
  min-width: 0;
}
#create-video-character-picker-modal .card-front img,
#create-video-character-picker-modal .card-front video,
#create-video-character-picker-modal .card-front .card-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  z-index: 0;
  -webkit-user-drag: none;
  image-rendering: auto;
  pointer-events: none;
}
#create-video-character-picker-modal .card-front::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.52),
      rgba(0, 0, 0, 0));
  z-index: 1;
  pointer-events: none;
}
#create-video-character-picker-modal .card-front h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  position: relative;
  z-index: 2;
  align-self: center;
}
#create-video-character-picker-modal .message-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}
#create-video-character-picker-modal .picker-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
#create-video-character-picker-modal .picker-selected {
  position: absolute;
  top: 46px;
  right: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(173, 123, 255, 0.45);
  border: 1px solid rgba(173, 123, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(10px);
}
#create-video-character-picker-modal .description-expand-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color, #fff);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  padding: 4px 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: bold;
}
#create-video-character-picker-modal .description-expand-icon:hover,
#create-video-character-picker-modal .description-expand-icon:focus-visible {
  opacity: 1;
  transform: scale(1.15);
  background: rgba(0, 0, 0, 0.8);
  outline: none;
}
#create-video-character-picker-modal .character-card[aria-disabled=true] .description-expand-icon {
  cursor: pointer;
  pointer-events: auto;
}
.description-tooltip {
  position: fixed;
  z-index: 10000;
  opacity: 0;
  background: rgba(0, 0, 0, 0.95);
  color: var(--text-color, #fff);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 400px;
  max-height: 70vh;
  overflow-y: auto;
  word-wrap: break-word;
  cursor: default;
  transition: opacity 0.2s ease-out;
}
.description-tooltip.is-visible {
  opacity: 1;
}
.description-tooltip-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px 0;
}
.description-tooltip-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color, #fff);
  text-align: left;
  flex: 1;
}
.description-tooltip-info {
  margin: 0 0 12px;
}
.description-tooltip-info dt {
  margin: 8px 0 2px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.72;
}
.description-tooltip-info dd {
  margin: 0;
  font-size: 0.95rem;
}
.description-tooltip-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color, #fff);
}
#create-video-character-picker-modal .create-character-card .card-front {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#create-video-character-picker-modal .create-character-card:hover .card-front {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 33, 134, 0.55);
}
#create-video-character-picker-modal .create-character-card:focus-visible {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
}
#create-video-character-picker-modal .create-character-card .create-character-plus {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  color: var(--text-color, #fff);
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}
#create-video-character-picker-modal .create-character-card .create-character-title {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  color: var(--text-color, #fff);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  z-index: 3;
  pointer-events: none;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}
#create-video-image-picker-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
}
#create-video-image-picker-modal.show {
  display: flex;
}
#create-video-image-picker-modal .picker-panel {
  width: min(820px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
#create-video-image-picker-modal .picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#create-video-image-picker-modal .picker-title {
  font-weight: 800;
  color: #fff;
  font-size: 14px;
}
#create-video-image-picker-modal .picker-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
#create-video-image-picker-modal .picker-list {
  overflow: auto;
  min-height: 0;
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
}
#create-video-image-picker-modal .image-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}
#create-video-image-picker-modal .image-picker-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 416 / 544;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
#create-video-image-picker-modal .image-picker-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#create-video-image-picker-modal .image-picker-card.is-selected {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
}
#create-video-image-picker-modal .image-picker-card--lowres {
  opacity: 0.45;
  cursor: help;
}
#create-video-image-picker-modal .image-picker-card:focus-visible {
  outline: 2px solid var(--pink-primary);
  outline-offset: 2px;
}
#create-video-image-picker-modal .picker-status {
  grid-column: 1 / -1;
  padding: 24px 12px;
  text-align: center;
}
#create-video-image-picker-modal .picker-status__message {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.8);
}
.picker-hd-required-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: 240px;
}
.preview-surface--video-frame {
  --video-frame-ratio: 0.7647058824;
  width: min(100%, calc(272px * var(--video-frame-ratio)));
  max-height: 272px;
  aspect-ratio: var(--video-frame-ratio);
  height: auto;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
  position: relative;
  margin-top: 12px;
}
.preview-surface--video-frame .preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  text-align: center;
}
.preview-surface--video-frame .preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-surface--video-frame:has(.preview-img:not(.is-hidden)) .preview-placeholder {
  display: none;
}
.preview-surface--video-frame.is-cropping .preview-placeholder,
.preview-surface--video-frame.is-cropping .preview-img {
  visibility: hidden;
}
.media-crop-viewport--video-frame {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.preview-surface--video-frame.is-cropping .media-crop-viewport--video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  box-sizing: border-box;
}
#free-video-crop-viewport-host:empty {
  display: none;
}
#free-video-crop-panel:not(.is-hidden) {
  margin: 12px 0 0;
}
.tool-section--composer .prompt-guide-link {
  margin: 0 0 12px;
}
#prompt-image-picker-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
}
#prompt-image-picker-modal.show {
  display: flex;
}
#prompt-image-picker-modal .picker-panel {
  width: min(820px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
#prompt-image-picker-modal .picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#prompt-image-picker-modal .picker-title {
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.3px;
}
#prompt-image-picker-modal .picker-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}
#prompt-image-picker-modal .picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
#prompt-image-picker-modal .picker-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  min-width: 0;
}
#prompt-image-picker-modal .picker-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 2px;
  min-height: 48px;
}
#prompt-image-picker-modal .picker-filter {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
#prompt-image-picker-modal .picker-filter.is-active {
  border-color: var(--pink-primary);
  color: #fff;
  background: rgb(var(--accent-light-rgb), 0.2);
}
#prompt-image-picker-modal .picker-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}
#prompt-image-picker-modal .picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}
#prompt-image-picker-modal .picker-empty {
  grid-column: 1 / -1;
  margin: 12px;
  color: rgba(255, 255, 255, 0.7);
}
#prompt-image-picker-modal .prompt-image-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}
#prompt-image-picker-modal .prompt-image-card:focus-visible,
#prompt-image-picker-modal .prompt-image-card.is-selected {
  border-color: var(--pink-primary);
  outline: none;
}
#prompt-image-picker-modal .prompt-image-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
#prompt-image-picker-modal .prompt-image-card__label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (width <= 600px) and (orientation: portrait) {
  #prompt-image-picker-modal .picker-panel {
    width: 96vw;
    max-height: 86vh;
  }
  #prompt-image-picker-modal .picker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
}
/*# sourceMappingURL=create-character-styles.bundle.css.map */
